diff --git a/_config.yml b/_config.yml index 2d08b7f30..9ee496a1a 100755 --- a/_config.yml +++ b/_config.yml @@ -160,7 +160,7 @@ settings: enabled: true, config: { apiKey: 'AIzaSyA3-YBkywbzpstijvMqUwn_a0GQTi3EZQc', - authDomain: 'auth.somiibo.com', + authDomain: 'somiibo.com', databaseURL: 'https://somiibo-91d13.firebaseio.com', projectId: 'somiibo-91d13', storageBucket: 'somiibo-91d13.appspot.com', diff --git a/_includes/master/global/foot.html b/_includes/master/global/foot.html index dde71bcac..d3d28a8ca 100644 --- a/_includes/master/global/foot.html +++ b/_includes/master/global/foot.html @@ -114,8 +114,7 @@

Redirecting...

@@ -107,7 +106,7 @@

Redirecting...

redirect.url.searchParams.set(pair[0], pair[1]); } } - + // Set final URL var finalURL = redirect.url.toString(); diff --git a/_layouts/master/placeholder/404.html b/_layouts/master/placeholder/404.html index 42c4554ed..231d7b91d 100644 --- a/_layouts/master/placeholder/404.html +++ b/_layouts/master/placeholder/404.html @@ -9,7 +9,7 @@ title: "Oops! This page doesn't exist" description: "This page doesn't exist. Please let us know so we can fix the broken link." breadcrumb: "404" - index: false + index: false ---
@@ -18,7 +18,7 @@
- +

Oops!

This page doesn't exist. Please let us know so we can fix the broken link.

@@ -43,3 +43,5 @@

Oops!

// Set page URL document.getElementById('page-url').innerHTML = window.location.href; + +{{ content | liquify | markdownify }} diff --git a/_layouts/master/placeholder/about.md b/_layouts/master/placeholder/about.md index bee27c15a..290170e7e 100644 --- a/_layouts/master/placeholder/about.md +++ b/_layouts/master/placeholder/about.md @@ -45,3 +45,5 @@ Behind {{ site.brand.name }} is a team of dedicated professionals, each bringing We invite you to join us on our journey as we continue to revolutionize the digital landscape. With {{ site.brand.name }}, the future is in your hands. Thank you for choosing {{ site.brand.name }}. We look forward to being a part of your success story. + +{{ content | liquify | markdownify }} diff --git a/_layouts/master/placeholder/app.html b/_layouts/master/placeholder/app.html index 09cd29da7..eac9e580e 100644 --- a/_layouts/master/placeholder/app.html +++ b/_layouts/master/placeholder/app.html @@ -8,7 +8,7 @@ meta: title: "{{ site.brand.name }} - App Launcher" description: "{{ site.brand.name }} app launcher" - breadcrumb: "Launcher" + breadcrumb: "Launcher" --- {% assign download = null %} @@ -31,7 +31,7 @@
- +

Welcome to the {{ site.brand.name }} app launcher!

Launch {{ site.brand.name }} Download {{ site.brand.name }} @@ -46,7 +46,7 @@ var launchButton = document.getElementById('launch-button'); var downloadButton = document.getElementById('download-button'); var newUrl; - + if (split[1]) { split.shift(); newUrl = '{{ site.app }}://dashboard?' + split.join('?'); @@ -63,3 +63,6 @@ }, 5e3) } + +{{ content | liquify | markdownify }} + diff --git a/_layouts/master/placeholder/blog/index.html b/_layouts/master/placeholder/blog/index.html index 43ca67091..55492be74 100644 --- a/_layouts/master/placeholder/blog/index.html +++ b/_layouts/master/placeholder/blog/index.html @@ -73,7 +73,7 @@

{{ post.post.title }}

{% endfor %} -
+
@@ -121,3 +121,5 @@

Elsewhere

Back to top

--> + +{{ content | liquify | markdownify }} diff --git a/_layouts/master/placeholder/blog/post.html b/_layouts/master/placeholder/blog/post.html index fc855a45d..bce76c65e 100644 --- a/_layouts/master/placeholder/blog/post.html +++ b/_layouts/master/placeholder/blog/post.html @@ -3,7 +3,7 @@ layout: master/placeholder/global/default sitemap: include: true - + ### REGULAR PAGES ### ---
@@ -75,18 +75,18 @@

{{ page.post.title }}

{%- include /master/modules/engagement/social-share-kit.html -%} -
+
@@ -142,3 +142,5 @@

Elsewhere

Back to top

--> + +{{ content | liquify | markdownify }} diff --git a/_layouts/master/placeholder/careers.md b/_layouts/master/placeholder/careers.md index bfc99d703..d1daa9f54 100644 --- a/_layouts/master/placeholder/careers.md +++ b/_layouts/master/placeholder/careers.md @@ -14,3 +14,5 @@ meta: redirect: url: "https://docs.google.com/forms/d/e/1FAIpQLSeLELeP0Om3stwaxM3HbzirXxleuPpEPDVsZ19ubFzozbxKOw/viewform?usp=pp_url&entry.1492864166={{ site.brand.name }}" --- + +{{ content | liquify | markdownify }} diff --git a/_layouts/master/placeholder/contact.html b/_layouts/master/placeholder/contact.html index 24a7cecc6..295b2f40d 100644 --- a/_layouts/master/placeholder/contact.html +++ b/_layouts/master/placeholder/contact.html @@ -12,11 +12,11 @@ foot: post-bundle-script: ' - + ' @@ -52,3 +52,5 @@

{{ site.brand.name }}

+ +{{ content | liquify | markdownify }} diff --git a/_layouts/master/placeholder/download.md b/_layouts/master/placeholder/download.md index 4bf8c5ddf..79c28aa92 100644 --- a/_layouts/master/placeholder/download.md +++ b/_layouts/master/placeholder/download.md @@ -8,7 +8,7 @@ sitemap: meta: title: "{{ site.brand.name }} - Download" description: "{{ site.brand.name }} is free to use on Windows, Mac & Linux. Get started for free today!" - breadcrumb: "Download" + breadcrumb: "Download" --- # Download {{ site.brand.name }} Free {{ layout.meta.description }} @@ -46,3 +46,5 @@ If you encounter any issues during the download or have any questions about the # Get Started with {{ site.brand.name }} Desktop App Today Elevate your productivity and take your {{ site.brand.name }} experience to the next level with our desktop app. Download now and unlock the full potential of our tools and services right from your desktop. + +{{ content | liquify | markdownify }} diff --git a/_layouts/master/placeholder/extension.md b/_layouts/master/placeholder/extension.md index d678dd52b..b2f2397f8 100644 --- a/_layouts/master/placeholder/extension.md +++ b/_layouts/master/placeholder/extension.md @@ -8,7 +8,7 @@ sitemap: meta: title: "{{ site.brand.name }} - Browser Extension" description: "The {{ site.brand.name }} browser extension is free to use on Chrome, Firefox & Opera. Get started for free today!" - breadcrumb: "Extension" + breadcrumb: "Extension" --- # {{ site.brand.name }} Browser Extension {{ layout.meta.description }} @@ -44,3 +44,5 @@ Having trouble with installation or have any questions? Our support team is avai # Enhance Your {{ site.brand.name }} Experience Today Upgrade your {{ site.brand.name }} experience with our powerful browser extension. Install now and explore the extended functionality of our services right from your browser. Welcome to a more efficient and integrated browsing experience with {{ site.brand.name }}. + +{{ content | liquify | markdownify }} diff --git a/_layouts/master/placeholder/global/default.html b/_layouts/master/placeholder/global/default.html index fdc6da0d4..974bc9066 100644 --- a/_layouts/master/placeholder/global/default.html +++ b/_layouts/master/placeholder/global/default.html @@ -5,12 +5,12 @@ ### REGULAR PAGES ### head: pre-bundle-css: ' - + ' foot: pre-bundle-script: ' - + ' settings: diff --git a/_layouts/master/placeholder/index.md b/_layouts/master/placeholder/index.md index 9470c02df..62a6c15b4 100644 --- a/_layouts/master/placeholder/index.md +++ b/_layouts/master/placeholder/index.md @@ -8,7 +8,7 @@ sitemap: meta: title: "{{ site.meta.title }}" description: "{{ site.meta.description }}" - breadcrumb: "Home" + breadcrumb: "Home" --- # Welcome to {{ site.brand.name }} {{ site.meta.description }} @@ -65,4 +65,6 @@ Our team is committed to your success. We provide round-the-clock support to ens Ready to take the first step towards streamlined success? Join the {{ site.brand.name }} community today. Our friendly customer service team is on hand to answer any questions and help you get started. -Your journey towards greater efficiency starts here. Welcome to {{ site.brand.name }}. +Your journey towards greater efficiency starts here. Welcome to {{ site.brand.name }}. + +{{ content | liquify | markdownify }} diff --git a/_layouts/master/placeholder/legal/cookies.md b/_layouts/master/placeholder/legal/cookies.md index cfde49b39..aeed69d68 100644 --- a/_layouts/master/placeholder/legal/cookies.md +++ b/_layouts/master/placeholder/legal/cookies.md @@ -114,3 +114,6 @@ Effective date: May 1, 2018
  • Email: {{ site.contact.email-support }}
  • + +{{ content | liquify | markdownify }} + diff --git a/_layouts/master/placeholder/legal/privacy.md b/_layouts/master/placeholder/legal/privacy.md index 9dbd8b722..874812354 100644 --- a/_layouts/master/placeholder/legal/privacy.md +++ b/_layouts/master/placeholder/legal/privacy.md @@ -14,7 +14,7 @@ Effective date: May 1, 2018 Welcome to {{ site.brand.name }} ("{{ site.brand.name }}," "we," "us" or "our"). {{ site.brand.name }} is a platform/service/application that can be described as: {{ site.meta.description }}. By visiting our website ("the website", "the site"), using the {{ site.brand.name }} application ("the software"," "the application," "our software" or "our application"), accessing the information, resources, services, and tools that we provide, you acknowledge, understand, and agree to accept and adhere to the following {{ page.meta.breadcrumb }} as stated in this policy. Our {{ page.meta.breadcrumb }} applies to all visitors, users, and others who access the Service ("Users"). -This {{ page.meta.breadcrumb }} describes how {{ site.brand.name }} and our affiliated entities collect, use, process, and share your personally identifiable information. Our {{ page.meta.breadcrumb }} is designed to provide transparency into our privacy practices and principles, in a format that our users can easily navigate, read, and understand. +This {{ page.meta.breadcrumb }} describes how {{ site.brand.name }} and our affiliated entities collect, use, process, and share your personally identifiable information. Our {{ page.meta.breadcrumb }} is designed to provide transparency into our privacy practices and principles, in a format that our users can easily navigate, read, and understand. We are dedicated to treating your personal information with care and respect. If there is anything that is not clear from this {{ page.meta.breadcrumb }} please feel free to contact our support team: [{{ site.url }}/contact]({{ site.url }}/contact). @@ -75,3 +75,5 @@ Use of our site signifies your acceptance of this policy. If you do not accept t ## How to Contact Us: You can contact us at: [{{ site.url }}/contact]({{ site.url }}/contact) +{{ content | liquify | markdownify }} + diff --git a/_layouts/master/placeholder/legal/terms.md b/_layouts/master/placeholder/legal/terms.md index fe89cd307..9ebd2fd69 100644 --- a/_layouts/master/placeholder/legal/terms.md +++ b/_layouts/master/placeholder/legal/terms.md @@ -165,3 +165,5 @@ Unless otherwise expressed, {{ brand }} expressly disclaims all warranties and c ## Contact Information If you have any questions, comments, or concerns, please contact us: [{{ site.url }}/contact]({{ site.url }}/contact) +{{ content | liquify | markdownify }} + diff --git a/_layouts/master/placeholder/pricing.md b/_layouts/master/placeholder/pricing.md index 422c6aafd..593b9e6c6 100644 --- a/_layouts/master/placeholder/pricing.md +++ b/_layouts/master/placeholder/pricing.md @@ -68,3 +68,5 @@ We understand that needs can change. That's why we make it easy to adjust your p We prioritize your security. Trust in {{ site.brand.name }}'s robust data protection measures and state-of-the-art encryption technologies to keep your information safe. Are you ready to experience the {{ site.brand.name }} difference? Don't hesitate to reach out to our friendly customer service team if you have any questions. Your success is our success. Let's grow together with {{ site.brand.name }}. + +{{ content | liquify | markdownify }} diff --git a/_layouts/master/placeholder/team/index.html b/_layouts/master/placeholder/team/index.html index e3ab11a06..608e18c63 100644 --- a/_layouts/master/placeholder/team/index.html +++ b/_layouts/master/placeholder/team/index.html @@ -31,9 +31,11 @@
    {{ member.member.name }}
    - + {% endfor %} + +{{ content | liquify | markdownify }} diff --git a/_layouts/master/placeholder/team/profile.html b/_layouts/master/placeholder/team/profile.html index bad72bdce..a546c3b94 100644 --- a/_layouts/master/placeholder/team/profile.html +++ b/_layouts/master/placeholder/team/profile.html @@ -26,7 +26,7 @@
    {{ page.member.name }}

    Joined: {{ page.member.joined }}

    Skills: {{ page.member.skills }}

    Location: {{ page.member.location }}

    - +
    About Me
    {{ content }} @@ -35,9 +35,9 @@
    Socials
    LinkedIn Instagram - + - - + +{{ content | liquify | markdownify }} diff --git a/_layouts/master/reference/main.html b/_layouts/master/reference/main.html index abbdaa138..4853e2846 100644 --- a/_layouts/master/reference/main.html +++ b/_layouts/master/reference/main.html @@ -63,7 +63,7 @@ foot: post-bundle-script: ' - + diff --git a/_websrc/gulp_tasks/master/_prefill.js b/_websrc/gulp_tasks/master/_prefill.js index 53b65436f..48cf53c88 100644 --- a/_websrc/gulp_tasks/master/_prefill.js +++ b/_websrc/gulp_tasks/master/_prefill.js @@ -239,6 +239,50 @@ gulp.task('_prefill', () => { // process.exit(1) // }) + // Get firebase-auth + const firebaseAuthFiles = [ + 'handler.html', + 'handler.js', + 'experiments.js', + 'iframe.html', + 'iframe.js', + ] + const firebaseAuthPrefix = '__/auth'; + const firebaseAuthPromises = []; + + // Clear files + fs.remove('./special/master/scripts/firebase-auth'); + + for (var i = 0; i < firebaseAuthFiles.length; i++) { + const file = firebaseAuthFiles[i]; + const fileNoHTML = file.replace('.html', ''); + const remoteFile = `https://ultimate-jekyll.firebaseapp.com/${firebaseAuthPrefix}/${fileNoHTML}`; + + // console.log(`Fetching ${remoteFile}`); + + firebaseAuthPromises.push( + fetch(remoteFile) + .then(async (res) => { + if (res.ok) { + fs.write(`./special/master/scripts/firebase-auth/${file}`, + '---\n' + + `permalink: /${firebaseAuthPrefix}/${fileNoHTML}\n` + + '---\n' + + '\n' + + await res.text() + ) + } else { + throw new Error(`Failed to get ${file}`) + } + }) + // .catch(e => { + // console.error(e); + // }) + ) + } + + await Promise.all(firebaseAuthPromises); + Global.set('prefillStatus', 'done'); return resolve(); } catch (e) { diff --git a/_websrc/gulp_tasks/master/browsersync.js b/_websrc/gulp_tasks/master/browsersync.js index c7d884673..fc67b2dc2 100644 --- a/_websrc/gulp_tasks/master/browsersync.js +++ b/_websrc/gulp_tasks/master/browsersync.js @@ -1,11 +1,13 @@ const argv = require('yargs').argv; const browsersync = require('browser-sync').create(); -const config = require('../../master.config.js'); const fs = require('fs-jetpack'); const gulp = require('gulp'); +const path = require('path'); const tools = new (require('../../libraries/tools.js')); const Global = require('../../libraries/global.js'); +const config = require('../../master.config.js'); + const browser = (config.browsersync.browsers[0] != null) ? config.browsersync.browsers : 'default'; const urlType = 'external'; // local or external let externalUrl; @@ -32,14 +34,27 @@ gulp.task('browsersync', async () => { server: { baseDir: config.jekyll.dest, middleware: async function (req, res, next) { - if (/_post.json/.test(req.url)) { + // console.log(`[Browsersync] Request ${req.url}`); + + if (req.url.match(/_post.json/)) { const createPost = require('./create-post.js'); - let post = new createPost(); + const post = new createPost(); + return await post.create({ req: req, res: res, }) } + + // Check if the URL is missing a trailing slash and does not have an extension + if (!req.url.endsWith('/') && !path.extname(req.url)) { + const newURL = `${req.url}.html`; + console.log(`[Browsersync] Rewriting ${req.url} to ${newURL}`); + + // Rewrite it to serve the .html extension + req.url = newURL; + } + next(); } }, diff --git a/package.json b/package.json index 0342914a2..a05d09a36 100755 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "through2": "4.0.2", "ultimate-jekyll-poster": "0.0.15", "vinyl-named": "1.1.0", - "web-manager": "3.2.5", + "web-manager": "3.2.8", "webpack": "5.88.0", "webpack-stream": "6.1.2", "yargs": "16.2.0", diff --git a/special/master/pages/authentication/oauth2.html b/special/master/pages/authentication/oauth2.html index 699c1b4ff..bbb3fee83 100644 --- a/special/master/pages/authentication/oauth2.html +++ b/special/master/pages/authentication/oauth2.html @@ -19,7 +19,7 @@ foot: post-bundle-script: ' - + ' settings: diff --git a/special/master/pages/checkout/checkout.html b/special/master/pages/checkout/checkout.html index 600983304..91974cea3 100644 --- a/special/master/pages/checkout/checkout.html +++ b/special/master/pages/checkout/checkout.html @@ -14,7 +14,7 @@ foot: post-bundle-script: ' - + ' settings: diff --git a/special/master/pages/email-subscription.html b/special/master/pages/email-subscription.html index fe2a4c127..66807cde4 100644 --- a/special/master/pages/email-subscription.html +++ b/special/master/pages/email-subscription.html @@ -14,7 +14,7 @@ foot: post-bundle-script: ' - + ' settings: diff --git a/special/master/pages/feedback/feedback.html b/special/master/pages/feedback/feedback.html index 39c86f7da..3631ae107 100644 --- a/special/master/pages/feedback/feedback.html +++ b/special/master/pages/feedback/feedback.html @@ -81,7 +81,7 @@ #rating-system input[type=radio].love { background: url("https://cdn.itwcreativeworks.com/assets/general/images/emojis/discord/heart_eyes.svg") center; background-size: cover; - } + } ' @@ -103,7 +103,7 @@ - + {%- include /master/misc/embed-manager.html -%} ' @@ -123,7 +123,7 @@ sends: { required: '/signup/', }, - }, + }, libraries: { cookieconsent: { enabled: false, @@ -143,7 +143,7 @@ title: "Feedback - {{ site.brand.name }}" description: "Provide feedback to the {{ site.brand.name }} team and help us improve our product for you." breadcrumb: "Feedback" - index: false + index: false ---
    @@ -195,7 +195,7 @@

    {{ site.brand.name }} Feedback

    -
    +
    @@ -218,7 +218,7 @@

    {{ site.brand.name }} Feedback

    Submit Feedback -
    + @@ -274,9 +274,9 @@ Copy - + - + @@ -153,7 +153,7 @@

    {{ site.brand.name }} Tools

    Manager.auth().ready(function () { var select = Manager.dom().select; - + // When changes are made to form, trigger function $('#tools-form input, #tools-form textarea, #tools-form select').on('keydown change copy paste cut', function (event) { if (event.target.matches('#url-opener')) { diff --git a/special/master/scripts/firebase-auth/experiments.js b/special/master/scripts/firebase-auth/experiments.js new file mode 100644 index 000000000..204922e55 --- /dev/null +++ b/special/master/scripts/firebase-auth/experiments.js @@ -0,0 +1,6 @@ +--- +permalink: /__/auth/experiments.js +--- + +(function(){window.EXPERIMENTS={DISPLAY_CONTINUE_BUTTON_IF_NOT_REDIRECT:{id:1000003,rollout:1,defaultValue:!0,expiration:new Date("April 1, 2020"),stagingRollout:1},CHECK_CONTINUE_URL_IS_AUTHORIZED:{id:1000004,rollout:1,defaultValue:!0,expiration:new Date("September 1, 2020"),stagingRollout:1},POPUP_POST_MESSAGE_TO_IFRAME:{id:1000005,rollout:1,defaultValue:!0,expiration:new Date("October 1, 2020"),stagingRollout:1},CHECK_OAUTH_STATE_STORED_BEFORE_REDIRECT:{id:1000006,rollout:1,defaultValue:!0,expiration:new Date("April 1, 2021"), +stagingRollout:1}};}).call(this); diff --git a/special/master/scripts/firebase-auth/handler.html b/special/master/scripts/firebase-auth/handler.html new file mode 100644 index 000000000..c3f4399f6 --- /dev/null +++ b/special/master/scripts/firebase-auth/handler.html @@ -0,0 +1,19 @@ +--- +permalink: /__/auth/handler.html +--- + + + + + + + + + + + + + diff --git a/special/master/scripts/firebase-auth/handler.js b/special/master/scripts/firebase-auth/handler.js new file mode 100644 index 000000000..1af0cbc17 --- /dev/null +++ b/special/master/scripts/firebase-auth/handler.js @@ -0,0 +1,562 @@ +--- +permalink: /__/auth/handler.js +--- + +/*! @license Firebase v3.7.5 + Build: 3.7.5-rc.1 + Terms: https://firebase.google.com/terms/ */ +var firebase = null; (function() { var aa=function(a){var b=0;return function(){return b>>0)+"_",d=0,e=function(g){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(g||"")+"_"+d++,g)};return e}); +var fa=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");},ha=function(){for(var a=Number(this),b=[],c=a;c"});c=this.ia+": "+c+" ("+a+").";c=new U(a,c);for(var d in b)b.hasOwnProperty(d)&&"_"!==d.slice(-1)&&(c[d]=b[d]);return c};var ab=Za;function bb(a,b){a=new V(a,b);return a.subscribe.bind(a)}var V=function(a,b){var c=this;this.h=[];this.T=0;this.task=ab.resolve();this.A=!1;this.J=b;this.task.then(function(){a(c)}).catch(function(d){c.error(d)})};V.prototype.next=function(a){cb(this,function(b){b.next(a)})};V.prototype.error=function(a){cb(this,function(b){b.error(a)});this.close(a)};V.prototype.complete=function(){cb(this,function(a){a.complete()});this.close()}; +V.prototype.subscribe=function(a,b,c){var d=this;if(void 0===a&&void 0===b&&void 0===c)throw Error("Missing Observer.");var e=db(a)?a:{next:a,error:b,complete:c};void 0===e.next&&(e.next=eb);void 0===e.error&&(e.error=eb);void 0===e.complete&&(e.complete=eb);a=this.la.bind(this,this.h.length);this.A&&this.task.then(function(){try{d.P?e.error(d.P):e.complete()}catch(g){}});this.h.push(e);return a}; +V.prototype.la=function(a){void 0!==this.h&&void 0!==this.h[a]&&(delete this.h[a],--this.T,0===this.T&&void 0!==this.J&&this.J(this))};var cb=function(a,b){if(!a.A)for(var c=0;c>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e}); +m("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;cc&&(c=Math.max(c+e,0));c")&&(a=a.replace(Sa,">"));-1!=a.indexOf('"')&&(a=a.replace(Ta,"""));-1!=a.indexOf("'")&&(a=a.replace(Ua,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Va,"�"));return a},Qa=/&/g,Ra=//g,Ta=/"/g,Ua=/'/g,Va=/\x00/g,Pa= +/[\x00&<>"']/,A=function(a,b){return-1!=a.indexOf(b)};var Xa,Ya;a:{for(var Za=["CLOSURE_FLAGS"],$a=u,ab=0;abparseFloat(Db)){Cb=String(Fb);break a}}Cb=Db}var Gb=Cb,Hb;if(u.document&&wb){var Ib=Bb();Hb=Ib?Ib:parseInt(Gb,10)||void 0}else Hb=void 0;var Jb=Hb;!B("Android")||ib();ib();B("Safari")&&(ib()||(gb()?0:B("Coast"))||(gb()?0:B("Opera"))||(gb()?0:B("Edge"))||(gb()?fb("Microsoft Edge"):B("Edg/"))||gb()&&fb("Opera"));var Kb=null,Mb=function(a){var b=[];Lb(a,function(c){b.push(c)});return b},Lb=function(a,b){function c(k){for(;d>4);64!=g&&(b(f<<4&240|g>>2),64!=h&&b(g<<6&192|h))}},Nb=function(){if(!Kb){Kb={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), +b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++)for(var d=a.concat(b[c].split("")),e=0;e>14&1023;return 0===a?536870912:a};var Sb=[];(Ob?function(a,b){La(a,"state is only maintained on arrays.");y((b&16777215)==b);a[Ob]=b}:function(a,b){La(a,"state is only maintained on arrays.");y((b&16777215)==b);void 0!==a.Nf?a.Nf=b:Object.defineProperties(a,{Nf:{value:b,configurable:!0,writable:!0,enumerable:!1}})})(Sb,55);Object.freeze(Sb);var Tb=function(){throw Error("please construct maps as mutable then call toImmutable");}; +if("undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance){var Ub=function(){throw Error("Cannot perform instanceof checks on ImmutableMap: please use isImmutableMap or isMutableMap to assert on the mutability of a map. See go/jspb-api-gotchas#immutable-classes for more information");},Vb={};Object.defineProperties(Tb,(Vb[Symbol.hasInstance]={value:Ub,configurable:!1,writable:!1,enumerable:!1},Vb));y(Tb[Symbol.hasInstance]===Ub,"defineProperties did not work: was it monkey-patched?")};Object.freeze({});if("undefined"!==typeof Proxy){var Xb=Wb;new Proxy({},{getPrototypeOf:Xb,setPrototypeOf:Xb,isExtensible:Xb,preventExtensions:Xb,getOwnPropertyDescriptor:Xb,defineProperty:Xb,has:Xb,get:Xb,set:Xb,deleteProperty:Xb,apply:Xb,construct:Xb})}function Wb(){throw Error("this array or object is owned by JSPB and should not be reused, did you mean to copy it with copyJspbArray? See go/jspb-api-gotchas#construct_from_array");throw Error();};function Yb(){};(function(){var a=u.jspbGetTypeName;u.jspbGetTypeName=a?function(b){return a(b)||void 0}:Yb})();/* + SPDX-License-Identifier: Apache-2.0 */ +(function(){}).prototype=Object.create(null);var Zb=function(a,b){if(!v(a)||!v(a)||!v(a)||1!==a.nodeType||a.namespaceURI&&"http://www.w3.org/1999/xhtml"!==a.namespaceURI||a.tagName.toUpperCase()!==b.toString()){b=b.toString()+"; got: ";if(v(a))try{var c=a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a)}catch(d){c=""}else c=void 0===a?"undefined":null===a?"null":typeof a;Ha("Argument is not an HTML Element with tag name "+(b+c))}};var $b=function(){},ac=function(a){return"function"===typeof a};function bc(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function cc(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function dc(a){for(var b in a)return!1;return!0}function ec(a){var b={},c;for(c in a)b[c]=a[c];return b}var fc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); +function gc(a,b){for(var c,d,e=1;eb)throw Error("Bad port number "+b);a.Ua=b}else a.Ua=null},fd=function(a,b,c){cd(a);a.fb=c?id(b,!0):b;return a},gd=function(a,b,c){cd(a);b instanceof jd?(a.xa=b,a.xa.vg(a.Aa)):(c||(b=kd(b,pd)),a.xa=new jd(b,a.Aa));return a};ad.prototype.getQuery=function(){return this.xa.toString()}; +var D=function(a,b,c){cd(a);a.xa.set(b,c)},E=function(a,b){return a.xa.get(b)},hd=function(a,b,c){cd(a);a.kc=c?id(b):b;return a};ad.prototype.removeParameter=function(a){cd(this);this.xa.remove(a);return this};var cd=function(a){if(a.Ej)throw Error("Tried to modify a read-only Uri");};ad.prototype.vg=function(a){this.Aa=a;this.xa&&this.xa.vg(a)}; +var F=function(a){return a instanceof ad?a.clone():new ad(a)},qd=function(a,b,c,d,e,f){var g=new ad(null);a&&bd(g,a);b&&dd(g,b);c&&ed(g,c);d&&fd(g,d);e&&gd(g,e);f&&hd(g,f);return g},id=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},kd=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,rd),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},rd=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},ld=/[#\/\?@]/g, +nd=/[#\?:]/g,md=/[#\?]/g,pd=/[#\?@]/g,od=/#/g,jd=function(a,b){this.ea=this.K=null;this.ua=a||null;this.Aa=!!b},sd=function(a){a.K||(a.K=new Map,a.ea=0,a.ua&&$c(a.ua,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))},ud=function(a){var b=Xc(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new jd(null);a=Wc(a);for(var d=0;d=e.value}if(d){b=b||Od;d=ae(be(),a.getName());"function"===typeof c&&(c=c());Ud||(Ud=new Td);e=Ud;a=a.getName();if(0":">","`":"`","\u0085":"…","\u00a0":" ","\u2028":"
","\u2029":"
"},te=function(a){return De[a]},se=/[\x00\x22\x26\x27\x3c\x3e]/g,ye=/[\x00\x22\x27\x3c\x3e]/g,we=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,xe=//i,Ze={};ae(be(),"api_idom");var $e=function(a,b){return ve["fireauth.oauthhelper.ui.soy.pendingScreen"]?ve["fireauth.oauthhelper.ui.soy.pendingScreen"](a,b):re('
    ')},af=function(a,b){a=a||{};a=a.appName;Ce();ve["fireauth.oauthhelper.ui.soy.continueScreen"]?b=ve["fireauth.oauthhelper.ui.soy.continueScreen"]({appName:a},b):(a=ze(null==a||"string"=== +typeof a,"appName",a,"null|string|undefined"),b='
    "));return b},bf=function(a,b){a=a.errorMessage;Ce();ve["fireauth.oauthhelper.ui.soy.errorScreen"]?b=ve["fireauth.oauthhelper.ui.soy.errorScreen"]({errorMessage:a}, +b):(b=ze("string"===typeof a,"errorMessage",a,"string"),b=re('
    '+ue(b)+"
    "));return b},cf=function(a,b){if(ve["fireauth.oauthhelper.ui.soy.appVerificationScreen"])return ve["fireauth.oauthhelper.ui.soy.appVerificationScreen"](a,b);a='

    Verifying you\'re not a robot...

    ')};var df=function(){this.blockSize=-1};var gf=function(a,b){this.blockSize=-1;this.blockSize=64;this.Td=u.Uint8Array?new Uint8Array(this.blockSize):Array(this.blockSize);this.Se=this.pc=0;this.F=[];this.Nj=a;this.Bh=b;this.Hk=u.Int32Array?new Int32Array(64):Array(64);void 0===ef&&(ef=u.Int32Array?new Int32Array(ff):ff);this.reset()},ef;x(gf,df);for(var hf=[],jf=0;63>jf;jf++)hf[jf]=0;var kf=[].concat(128,hf);gf.prototype.reset=function(){this.Se=this.pc=0;this.F=u.Int32Array?new Int32Array(this.Bh):tb(this.Bh)}; +var lf=function(a){var b=a.Td;y(b.length==a.blockSize);for(var c=a.Hk,d=0,e=0;eb;b++){e=c[b-15]|0;d=c[b-2]|0;var f=(c[b-16]|0)+((e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)|0,g=(c[b-7]|0)+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)|0;c[b]=f+g|0}d=a.F[0]|0;e=a.F[1]|0;var h=a.F[2]|0,k=a.F[3]|0,n=a.F[4]|0,p=a.F[5]|0,r=a.F[6]|0;f=a.F[7]|0;for(b=0;64>b;b++){var t=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&e^d&h^e&h)|0;g=n&p^~n&r;f=f+((n>>> +6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))|0;g=g+(ef[b]|0)|0;g=f+(g+(c[b]|0)|0)|0;f=r;r=p;p=n;n=k+g|0;k=h;h=e;e=d;d=g+t|0}a.F[0]=a.F[0]+d|0;a.F[1]=a.F[1]+e|0;a.F[2]=a.F[2]+h|0;a.F[3]=a.F[3]+k|0;a.F[4]=a.F[4]+n|0;a.F[5]=a.F[5]+p|0;a.F[6]=a.F[6]+r|0;a.F[7]=a.F[7]+f|0}; +gf.prototype.update=function(a,b){void 0===b&&(b=a.length);var c=0,d=this.pc;if("string"===typeof a)for(;c=e&&e==(e|0)))throw Error("message must be a byte array");this.Td[d++]=e;d==this.blockSize&&(lf(this),d=0)}else throw Error("message must be string or array");this.pc=d;this.Se+=b}; +gf.prototype.digest=function(){var a=[],b=8*this.Se;56>this.pc?this.update(kf,56-this.pc):this.update(kf,this.blockSize-(this.pc-56));for(var c=63;56<=c;c--)this.Td[c]=b&255,b/=256;lf(this);for(c=b=0;c>d&255;return a}; +var ff=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804, +4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var nf=function(){gf.call(this,8,mf)};x(nf,gf);var mf=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];var of=function(){this.Vc=this.Vc;this.xe=this.xe};of.prototype.Vc=!1;of.prototype.isDisposed=function(){return this.Vc};of.prototype.Gb=function(){this.Vc||(this.Vc=!0,this.Uc())};of.prototype.Uc=function(){if(this.xe)for(;this.xe.length;)this.xe.shift()()};var H=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.pd=!1};H.prototype.stopPropagation=function(){this.pd=!0};H.prototype.preventDefault=function(){this.defaultPrevented=!0};var pf=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};u.addEventListener("test",c,b);u.removeEventListener("test",c,b)}catch(d){}return a}();var qf=function(a,b){H.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.qa=null;a&&this.init(a,b)};x(qf,H);var rf=Md({2:"touch",3:"pen",4:"mouse"}); +qf.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(zb){a:{try{ub(b.nodeName);var e=!0;break a}catch(f){}e=!1}e||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY= +d.screenY||0):(this.offsetX=Ab||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=Ab||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId= +a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:rf[a.pointerType]||"";this.state=a.state;this.qa=a;a.defaultPrevented&&qf.Fc.preventDefault.call(this)};qf.prototype.stopPropagation=function(){qf.Fc.stopPropagation.call(this);this.qa.stopPropagation?this.qa.stopPropagation():this.qa.cancelBubble=!0};qf.prototype.preventDefault=function(){qf.Fc.preventDefault.call(this);var a=this.qa;a.preventDefault?a.preventDefault():a.returnValue=!1};qf.prototype.fj=function(){return this.qa};var sf="closure_listenable_"+(1E6*Math.random()|0);var tf=0;var uf=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ee=e;this.key=++tf;this.ud=this.Pd=!1},vf=function(a){a.ud=!0;a.listener=null;a.proxy=null;a.src=null;a.ee=null};var wf=function(a){this.src=a;this.ia={};this.Dd=0};wf.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.ia[f];a||(a=this.ia[f]=[],this.Dd++);var g=xf(a,b,d,e);-1>>0),Ef=function(a){y(a,"Listener can not be null.");if("function"===typeof a)return a;y(a.handleEvent,"An object listener must have handleEvent method.");a[Nf]||(a[Nf]= +function(b){return a.handleEvent(b)});return a[Nf]};var Of=function(){of.call(this);this.Da=new wf(this);this.Oi=this;this.ag=null};x(Of,of);Of.prototype[sf]=!0;l=Of.prototype;l.addEventListener=function(a,b,c,d){Df(this,a,b,c,d)};l.removeEventListener=function(a,b,c,d){Lf(this,a,b,c,d)}; +l.dispatchEvent=function(a){Pf(this);var b=this.ag;if(b){var c=[];for(var d=1;b;b=b.ag)c.push(b),y(1E3>++d,"infinite loop")}b=this.Oi;d=a.type||a;if("string"===typeof a)a=new H(a,b);else if(a instanceof H)a.target=a.target||b;else{var e=a;a=new H(d,b);gc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.pd&&0<=f;f--){var g=a.currentTarget=c[f];e=Qf(g,d,!0,a)&&e}a.pd||(g=a.currentTarget=b,e=Qf(g,d,!0,a)&&e,a.pd||(e=Qf(g,d,!1,a)&&e));if(c)for(f=0;!a.pd&&f=b.jf&&b.cancel())}this.Ph?this.Ph.call(this.gh,this):this.yg=!0;this.jc||Pg(this,new Qg(this))}};Og.prototype.Yg=function(a,b){this.hf=!1;Rg(this,a,b)}; +var Rg=function(a,b,c){a.jc=!0;a.ma=c;a.bd=!b;Sg(a)},Ug=function(a){if(a.jc){if(!a.yg)throw new Tg(a);a.yg=!1}};Og.prototype.callback=function(a){Ug(this);Vg(a);Rg(this,!0,a)};var Pg=function(a,b){Ug(a);Vg(b);Rg(a,!1,b)},Vg=function(a){y(!(a instanceof Og),"An execution sequence may not be initiated with a blocking Deferred.")};Og.prototype.addCallback=function(a,b){return Wg(this,a,null,b)}; +var Xg=function(a,b){Wg(a,null,b)},Wg=function(a,b,c,d){y(!a.Mg,"Blocking Deferreds can not be re-used");a.Le.push([b,c,d]);a.jc&&Sg(a);return a};Og.prototype.then=function(a,b,c){var d,e,f=new I(function(g,h){e=g;d=h});Wg(this,e,function(g){g instanceof Qg?f.cancel():d(g);return Yg},this);return f.then(a,b,c)};Og.prototype.$goog_Thenable=!0; +var Zg=function(a){return ob(a.Le,function(b){return"function"===typeof b[1]})},Yg={},Sg=function(a){if(a.Te&&a.jc&&Zg(a)){var b=a.Te,c=$g[b];c&&(u.clearTimeout(c.Ea),delete $g[b]);a.Te=0}a.sa&&(a.sa.jf--,delete a.sa);b=a.ma;for(var d=c=!1;a.Le.length&&!a.hf;){var e=a.Le.shift(),f=e[0],g=e[1];e=e[2];if(f=a.bd?g:f)try{var h=f.call(e||a.gh,b);h===Yg&&(h=void 0);void 0!==h&&(a.bd=a.bd&&(h==b||h instanceof Error),a.ma=b=h);if(tg(b)||"function"===typeof u.Promise&&b instanceof u.Promise)d=!0,a.hf=!0}catch(k){b= +k,a.bd=!0,Zg(a)||(c=!0)}}a.ma=b;d&&(h=w(a.Yg,a,!0),d=w(a.Yg,a,!1),b instanceof Og?(Wg(b,h,d),b.Mg=!0):b.then(h,d));c&&(b=new ah(b),$g[b.Ea]=b,a.Te=b.Ea)},Tg=function(){Ca.call(this)};x(Tg,Ca);Tg.prototype.message="Deferred has already fired";Tg.prototype.name="AlreadyCalledError";var Qg=function(){Ca.call(this)};x(Qg,Ca);Qg.prototype.message="Deferred was canceled";Qg.prototype.name="CanceledError";var ah=function(a){this.Ea=u.setTimeout(w(this.Bk,this),0);this.Y=a}; +ah.prototype.Bk=function(){y($g[this.Ea],"Cannot throw an error that is not scheduled.");delete $g[this.Ea];throw this.Y;};var $g={};var fh=function(a){var b={},c=b.document||document,d=pc(a).toString(),e=(new We(c)).createElement("SCRIPT"),f={gi:e,Cd:void 0},g=new Og(bh,f),h=null,k=null!=b.timeout?b.timeout:5E3;0a?!1:!wb||!Jb||9'),(d=h.document)&&d.write&&(d.write(Lc(a)),d.close()))):((h=Tc(c,a,b,h))&&d.noopener&&(h.opener=null),h&&d.noreferrer&&(h.opener=null));if(h)try{h.focus()}catch(k){}return h},Ih=function(){var a=M().match(/OS (\d+)_.*CriOS\/(\d+)\./i);return a&&2b)throw Error("Short delay should be less than long delay!"); +this.ri=a;this.Lj=b;a=M();b=Uh();this.Cj=Fh(a)||"ReactNative"===b};ji.prototype.get=function(){var a=u.navigator;return(a&&"boolean"===typeof a.onLine&&(ai()||"chrome-extension:"===Qh()||"undefined"!==typeof a.connection)?a.onLine:1)?this.Cj?this.Lj:this.ri:Math.min(5E3,this.ri)}; +var ki=function(){var a=u.document;return a&&"undefined"!==typeof a.visibilityState?"visible"==a.visibilityState:!0},li=function(){var a=u.document,b=null;return ki()||!a?J():(new I(function(c){b=function(){ki()&&(a.removeEventListener("visibilitychange",b,!1),c())};a.addEventListener("visibilitychange",b,!1)})).h(function(c){a.removeEventListener("visibilitychange",b,!1);throw c;})},mi=function(a){"undefined"!==typeof console&&"function"===typeof console.error&&console.error(a)},ni=function(a){try{var b= +new Date(parseInt(a,10));if(!isNaN(b.getTime())&&!/[^0-9]/.test(a))return b.toUTCString()}catch(c){}return null},oi=function(){return!(!N("fireauth.oauthhelper",u)&&!N("fireauth.iframe",u))},pi=function(){if(u.document)try{var a=Je("META",{name:"referrer",content:"no-referrer"}),b=document.getElementsByTagName("HEAD");b.length&&b[0].appendChild(a)}catch(c){}},qi=function(){var a=u.navigator;return a&&a.serviceWorker&&a.serviceWorker.controller||null},ri=function(){var a=u.navigator;return a&&a.serviceWorker? +J().then(function(){return a.serviceWorker.ready}).then(function(b){return b.active||null}).h(function(){return null}):J(null)},si=function(a){var b={};a.split("&").forEach(function(c){c=c.split("=");1 Auth section -> Sign in method tab.",a):"http"==d||"https"==d?c=Vc("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",a):b= +"operation-not-supported-in-this-environment";P.call(this,b,c)};q(Zi,P);var aj=function(a){var b=$i(a);if(!(b&&b.sub&&b.iss&&b.aud&&b.exp))throw Error("Invalid JWT");this.Hj=a;this.zf=b.exp;this.Jj=b.sub;a=Date.now()/1E3;this.vj=b.iat||(a>this.zf?this.zf:a);this.Hb=b.email||null;this.yc=b.provider_id||b.firebase&&b.firebase.sign_in_provider||null;this.C=b.firebase&&b.firebase.tenant||null;this.Qi=!!b.is_anonymous||"anonymous"==this.yc;this.tf=b.display_name||null};aj.prototype.getEmail=function(){return this.Hb};aj.prototype.isAnonymous=function(){return this.Qi}; +aj.prototype.toString=function(){return this.Hj}; +var bj=function(a){try{return new aj(a)}catch(b){return null}},$i=function(a){if(!a)return null;a=a.split(".");if(3!=a.length)return null;a=a[1];for(var b=(4-a.length%4)%4,c=0;ce)a[c++]=String.fromCharCode(e);else if(191e){var f=d[b++];a[c++]=String.fromCharCode((e&31)<<6|f&63)}else if(239e){f=d[b++];var g=d[b++],h=d[b++],k=((e&7)<<18|(f&63)<<12|(g&63)<<6|h&63)-65536;a[c++]=String.fromCharCode(55296+(k>> +10));a[c++]=String.fromCharCode(56320+(k&1023))}else f=d[b++],g=d[b++],a[c++]=String.fromCharCode((e&15)<<12|(f&63)<<6|g&63)}return JSON.parse(a.join(""))}catch(n){}return null};var cj=function(a){var b=$i(a);if(!(b&&b.exp&&b.auth_time&&b.iat))throw new P("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");xi(this,{token:a,expirationTime:ni(1E3*b.exp),authTime:ni(1E3*b.auth_time),issuedAtTime:ni(1E3*b.iat),signInProvider:b.firebase&&b.firebase.sign_in_provider?b.firebase.sign_in_provider:null,signInSecondFactor:b.firebase&&b.firebase.sign_in_second_factor?b.firebase.sign_in_second_factor:null, +claims:b})};var dj=function(a,b){if(!a&&!b)throw new P("internal-error","Internal assert: no raw session string available");if(a&&b)throw new P("internal-error","Internal assert: unable to determine the session type");this.ge=a||null;this.Nh=b||null;this.type=this.ge?"enroll":"signin"};dj.prototype.Zc=function(){return this.ge?J(this.ge):J(this.Nh)};dj.prototype.m=function(){return"enroll"==this.type?{multiFactorSession:{idToken:this.ge}}:{multiFactorSession:{pendingCredential:this.Nh}}};var ej=function(){};ej.prototype.Mb=function(){};ej.prototype.rc=function(){};ej.prototype.hd=function(){};ej.prototype.m=function(){}; +var fj=function(a,b){return a.then(function(c){if(c.idToken){var d=bj(c.idToken);if(!d||b!=d.Jj)throw new P("user-mismatch");return c}throw new P("user-mismatch");}).h(function(c){throw c&&c.code&&"auth/user-not-found"==c.code?new P("user-mismatch"):c;})},gj=function(a,b){if(b)this.gb=b;else throw new P("internal-error","failed to construct a credential");O(this,"providerId",a);O(this,"signInMethod",a)};l=gj.prototype;l.Mb=function(a){return hj(a,this.Pb())}; +l.rc=function(a,b){var c=this.Pb();c.idToken=b;return ij(a,c)};l.hd=function(a,b){var c=this.Pb();return fj(jj(a,c),b)};l.Pb=function(){return{pendingToken:this.gb,requestUri:"http://localhost"}};l.m=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.gb}}; +var kj=function(a){if(a&&a.providerId&&a.signInMethod&&0==a.providerId.indexOf("saml.")&&a.pendingToken)try{return new gj(a.providerId,a.pendingToken)}catch(b){}return null},lj=function(a,b,c){this.gb=null;if(b.idToken||b.accessToken)b.idToken&&O(this,"idToken",b.idToken),b.accessToken&&O(this,"accessToken",b.accessToken),b.nonce&&!b.pendingToken&&O(this,"nonce",b.nonce),b.pendingToken&&(this.gb=b.pendingToken);else if(b.oauthToken&&b.oauthTokenSecret)O(this,"accessToken",b.oauthToken),O(this,"secret", +b.oauthTokenSecret);else throw new P("internal-error","failed to construct a credential");O(this,"providerId",a);O(this,"signInMethod",c)};l=lj.prototype;l.Mb=function(a){return hj(a,this.Pb())};l.rc=function(a,b){var c=this.Pb();c.idToken=b;return ij(a,c)};l.hd=function(a,b){var c=this.Pb();return fj(jj(a,c),b)}; +l.Pb=function(){var a={};this.idToken&&(a.id_token=this.idToken);this.accessToken&&(a.access_token=this.accessToken);this.secret&&(a.oauth_token_secret=this.secret);a.providerId=this.providerId;this.nonce&&!this.gb&&(a.nonce=this.nonce);a={postBody:ud(a).toString(),requestUri:"http://localhost"};this.gb&&(delete a.postBody,a.pendingToken=this.gb);return a}; +l.m=function(){var a={providerId:this.providerId,signInMethod:this.signInMethod};this.idToken&&(a.oauthIdToken=this.idToken);this.accessToken&&(a.oauthAccessToken=this.accessToken);this.secret&&(a.oauthTokenSecret=this.secret);this.nonce&&(a.nonce=this.nonce);this.gb&&(a.pendingToken=this.gb);return a}; +var mj=function(a){if(a&&a.providerId&&a.signInMethod){var b={idToken:a.oauthIdToken,accessToken:a.oauthTokenSecret?null:a.oauthAccessToken,oauthTokenSecret:a.oauthTokenSecret,oauthToken:a.oauthTokenSecret&&a.oauthAccessToken,nonce:a.nonce,pendingToken:a.pendingToken};try{return new lj(a.providerId,b,a.signInMethod)}catch(c){}}return null},nj=function(a,b){this.ak=b||[];xi(this,{providerId:a,isOAuthProvider:!0});this.eh={};this.Pf=(Ei(a)||{}).fd||null;this.sf=null}; +nj.prototype.setCustomParameters=function(a){this.eh=ec(a);return this};var oj=function(a){if(!Gi(a))throw new P("argument-error",'SAML provider IDs must be prefixed with "saml."');nj.call(this,a,[])};x(oj,nj);var pj=function(a){nj.call(this,a,Ci);this.qg=[]};x(pj,nj);pj.prototype.addScope=function(a){pb(this.qg,a)||this.qg.push(a);return this};pj.prototype.sh=function(){return tb(this.qg)}; +pj.prototype.credential=function(a,b){a=v(a)?{idToken:a.idToken||null,accessToken:a.accessToken||null,nonce:a.rawNonce||null}:{idToken:a||null,accessToken:b||null};if(!a.idToken&&!a.accessToken)throw new P("argument-error","credential failed: must provide the ID token and/or the access token.");return new lj(this.providerId,a,this.providerId)};var qj=function(){pj.call(this,"facebook.com")};x(qj,pj);O(qj,"PROVIDER_ID","facebook.com");O(qj,"FACEBOOK_SIGN_IN_METHOD","facebook.com"); +var rj=function(a){if(!a)throw new P("argument-error","credential failed: expected 1 argument (the OAuth access token).");var b=a;v(a)&&(b=a.accessToken);return(new qj).credential({accessToken:b})},sj=function(){pj.call(this,"github.com")};x(sj,pj);O(sj,"PROVIDER_ID","github.com");O(sj,"GITHUB_SIGN_IN_METHOD","github.com"); +var tj=function(a){if(!a)throw new P("argument-error","credential failed: expected 1 argument (the OAuth access token).");var b=a;v(a)&&(b=a.accessToken);return(new sj).credential({accessToken:b})},uj=function(){pj.call(this,"google.com");this.addScope("profile")};x(uj,pj);O(uj,"PROVIDER_ID","google.com");O(uj,"GOOGLE_SIGN_IN_METHOD","google.com"); +var vj=function(a,b){var c=a;v(a)&&(c=a.idToken,b=a.accessToken);return(new uj).credential({idToken:c,accessToken:b})},wj=function(){nj.call(this,"twitter.com",Bi)};x(wj,nj);O(wj,"PROVIDER_ID","twitter.com");O(wj,"TWITTER_SIGN_IN_METHOD","twitter.com"); +var xj=function(a,b){var c=a;v(c)||(c={oauthToken:a,oauthTokenSecret:b});if(!c.oauthToken||!c.oauthTokenSecret)throw new P("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new lj("twitter.com",c,"twitter.com")},zj=function(a,b,c){this.Hb=a;this.jd=b;O(this,"providerId","password");O(this,"signInMethod",c===yj.EMAIL_LINK_SIGN_IN_METHOD?yj.EMAIL_LINK_SIGN_IN_METHOD:yj.EMAIL_PASSWORD_SIGN_IN_METHOD)}; +zj.prototype.Mb=function(a){return this.signInMethod==yj.EMAIL_LINK_SIGN_IN_METHOD?Q(a,Aj,{email:this.Hb,oobCode:this.jd}):Q(a,Bj,{email:this.Hb,password:this.jd})};zj.prototype.rc=function(a,b){return this.signInMethod==yj.EMAIL_LINK_SIGN_IN_METHOD?Q(a,Cj,{idToken:b,email:this.Hb,oobCode:this.jd}):Q(a,Dj,{idToken:b,email:this.Hb,password:this.jd})};zj.prototype.hd=function(a,b){return fj(this.Mb(a),b)};zj.prototype.m=function(){return{email:this.Hb,password:this.jd,signInMethod:this.signInMethod}}; +var Ej=function(a){return a&&a.email&&a.password?new zj(a.email,a.password,a.signInMethod):null},yj=function(){xi(this,{providerId:"password",isOAuthProvider:!1})},Gj=function(a,b){b=Fj(b);if(!b)throw new P("argument-error","Invalid email link!");return new zj(a,b.code,yj.EMAIL_LINK_SIGN_IN_METHOD)},Fj=function(a){a=Xi(a);return(a=Ti(a))&&"EMAIL_SIGNIN"===a.operation?a:null};xi(yj,{PROVIDER_ID:"password"});xi(yj,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"});xi(yj,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}); +var Hj=function(a){if(!(a.verificationId&&a.Ve||a.Bd&&a.phoneNumber))throw new P("internal-error");this.V=a;O(this,"providerId","phone");this.providerId="phone";O(this,"signInMethod","phone")};Hj.prototype.Mb=function(a){return a.verifyPhoneNumber(Ij(this))};Hj.prototype.rc=function(a,b){var c=Ij(this);c.idToken=b;return Q(a,Jj,c)};Hj.prototype.hd=function(a,b){var c=Ij(this);c.operation="REAUTH";a=Q(a,Kj,c);return fj(a,b)}; +Hj.prototype.m=function(){var a={providerId:"phone"};this.V.verificationId&&(a.verificationId=this.V.verificationId);this.V.Ve&&(a.verificationCode=this.V.Ve);this.V.Bd&&(a.temporaryProof=this.V.Bd);this.V.phoneNumber&&(a.phoneNumber=this.V.phoneNumber);return a}; +var Lj=function(a){if(a&&"phone"===a.providerId&&(a.verificationId&&a.verificationCode||a.temporaryProof&&a.phoneNumber)){var b={};C(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(c){a[c]&&(b[c]=a[c])});return new Hj(b)}return null},Ij=function(a){return a.V.Bd&&a.V.phoneNumber?{temporaryProof:a.V.Bd,phoneNumber:a.V.phoneNumber}:{sessionInfo:a.V.verificationId,code:a.V.Ve}},Mj=function(a){try{this.Md=a||firebase.auth()}catch(b){throw new P("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp()."); +}xi(this,{providerId:"phone",isOAuthProvider:!1})}; +Mj.prototype.verifyPhoneNumber=function(a,b){var c=this.Md.i;return J(b.verify()).then(function(d){if("string"!==typeof d)throw new P("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(b.type){case "recaptcha":var e=v(a)?a.session:null,f=v(a)?a.phoneNumber:a;return(e&&"enroll"==e.type?e.Zc().then(function(g){return Nj(c,{idToken:g,phoneEnrollmentInfo:{phoneNumber:f,recaptchaToken:d}})}):e&& +"signin"==e.type?e.Zc().then(function(g){return Oj(c,{mfaPendingCredential:g,mfaEnrollmentId:a.multiFactorHint&&a.multiFactorHint.uid||a.multiFactorUid,phoneSignInInfo:{recaptchaToken:d}})}):Pj(c,{phoneNumber:f,recaptchaToken:d})).then(function(g){"function"===typeof b.reset&&b.reset();return g},function(g){"function"===typeof b.reset&&b.reset();throw g;});default:throw new P("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.');}})}; +var Qj=function(a,b){if(!a)throw new P("missing-verification-id");if(!b)throw new P("missing-verification-code");return new Hj({verificationId:a,Ve:b})};xi(Mj,{PROVIDER_ID:"phone"});xi(Mj,{PHONE_SIGN_IN_METHOD:"phone"}); +var Rj=function(a){if(a.temporaryProof&&a.phoneNumber)return new Hj({Bd:a.temporaryProof,phoneNumber:a.phoneNumber});var b=a&&a.providerId;if(!b||"password"===b)return null;var c=a&&a.oauthAccessToken,d=a&&a.oauthTokenSecret,e=a&&a.nonce,f=a&&a.oauthIdToken,g=a&&a.pendingToken;try{switch(b){case "google.com":return vj(f,c);case "facebook.com":return rj(c);case "github.com":return tj(c);case "twitter.com":return xj(c,d);default:return c||d||f||g?g?0==b.indexOf("saml.")?new gj(b,g):new lj(b,{pendingToken:g, +idToken:a.oauthIdToken,accessToken:a.oauthAccessToken},b):(new pj(b)).credential({idToken:f,accessToken:c,rawNonce:e}):null}}catch(h){return null}},Sj=function(a){if(!a.isOAuthProvider)throw new P("invalid-oauth-provider");};var Tj=function(a,b,c){P.call(this,a,c);a=b||{};a.email&&O(this,"email",a.email);a.phoneNumber&&O(this,"phoneNumber",a.phoneNumber);a.credential&&O(this,"credential",a.credential);a.tenantId&&O(this,"tenantId",a.tenantId)};q(Tj,P);Tj.prototype.m=function(){var a={code:this.code,message:this.message};this.email&&(a.email=this.email);this.phoneNumber&&(a.phoneNumber=this.phoneNumber);this.tenantId&&(a.tenantId=this.tenantId);var b=this.credential&&this.credential.m();b&&gc(a,b);return a}; +Tj.prototype.toJSON=function(){return this.m()};var Uj=function(a){if(a.code){var b=a.code||"";0==b.indexOf("auth/")&&(b=b.substring(5));var c={credential:Rj(a),tenantId:a.tenantId};if(a.email)c.email=a.email;else if(a.phoneNumber)c.phoneNumber=a.phoneNumber;else if(!c.credential)return new P(b,a.message||void 0);return new Tj(b,c,a.message)}return null};var Vj=ha(["https://apis.google.com/js/client.js?onload=",""]),Wj=function(a){this.Kk=a};q(Wj,Rf);Wj.prototype.Qc=function(){return new this.Kk};Wj.prototype.le=function(){return{}}; +var bk=function(a,b,c,d){this.A=a;b=b||{};this.ii=b.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token";this.mk=b.secureTokenTimeout||Xj;this.Je=ec(b.secureTokenHeaders||Yj);this.nh=b.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/";this.yh=b.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/";this.ej=b.firebaseTimeout||Zj;this.Kb=ec(b.firebaseHeaders||ak);c&&(this.Kb["X-Client-Version"]=c,this.Je["X-Client-Version"]=c);d&&(this.Kb["X-Firebase-AppCheck"]= +d);a="Node"==Uh();a=u.XMLHttpRequest||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.XMLHttpRequest;if(!a&&!Th())throw new P("internal-error","The XMLHttpRequest compatibility library was not found.");this.He=void 0;Th()?this.He=new Zf({Jk:self}):Vh()?this.He=new Wj(a):this.He=new Wf;this.C=null},ck,dk=function(a,b){b?a.Kb["X-Firebase-Locale"]=b:delete a.Kb["X-Firebase-Locale"]},fk=function(a,b){b&&(a.ii=ek("https://securetoken.googleapis.com/v1/token",b),a.nh=ek("https://www.googleapis.com/identitytoolkit/v3/relyingparty/", +b),a.yh=ek("https://identitytoolkit.googleapis.com/v2/",b))},ek=function(a,b){a=F(a);b=F(b.url);fd(a,a.ga+a.fb);bd(a,b.ta);dd(a,b.ga);ed(a,b.Ua);return a.toString()},gk=function(a,b){b?(a.Kb["X-Client-Version"]=b,a.Je["X-Client-Version"]=b):(delete a.Kb["X-Client-Version"],delete a.Je["X-Client-Version"])},ik=function(a,b,c,d,e,f,g){Eh()||Th()?a=w(a.pk,a):(ck||(ck=new I(function(h,k){hk(h,k)})),a=w(a.nk,a));a(b,c,d,e,f,g)}; +bk.prototype.pk=function(a,b,c,d,e,f){if(Th()&&("undefined"===typeof u.fetch||"undefined"===typeof u.Headers||"undefined"===typeof u.Request))throw new P("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var g=new L(this.He);if(f){g.Gc=Math.max(0,f);var h=setTimeout(function(){g.dispatchEvent("timeout")},f)}g.listen("complete",function(){h&&clearTimeout(h);var k=null; +try{var n=JSON,p=n.parse;try{var r=this.j?this.j.responseText:""}catch(t){ee(this.O,"Can not get responseText: "+t.message),r=""}k=p.call(n,r)||null}catch(t){k=null}b&&b(k)});Kf(g,"ready",function(){h&&clearTimeout(h);this.Gb()});Kf(g,"timeout",function(){h&&clearTimeout(h);this.Gb();b&&b(null)});g.send(a,c,d,e)}; +var hk=function(a,b){if(((window.gapi||{}).client||{}).request)a();else{u[jk]=function(){((window.gapi||{}).client||{}).request?a():b(Error("CORS_UNSUPPORTED"))};var c=he(Vj,jk);Xg(fh(c),function(){b(Error("CORS_UNSUPPORTED"))})}}; +bk.prototype.nk=function(a,b,c,d,e){var f=this;ck.then(function(){window.gapi.client.setApiKey(f.A);var g=window.gapi.auth.getToken();window.gapi.auth.setToken(null);window.gapi.client.request({path:a,method:c,body:d,headers:e,authType:"none",callback:function(h){window.gapi.auth.setToken(g);b&&b(h)}})}).h(function(g){b&&b({error:{message:g&&g.message||"CORS_UNSUPPORTED"}})})}; +var lk=function(a,b){return new I(function(c,d){"refresh_token"==b.grant_type&&b.refresh_token||"authorization_code"==b.grant_type&&b.code?ik(a,a.ii+"?key="+encodeURIComponent(a.A),function(e){e?e.error?d(kk(e)):e.access_token&&e.refresh_token?c(e):d(new P("internal-error")):d(new P("network-request-failed"))},"POST",ud(b).toString(),a.Je,a.mk.get()):d(new P("internal-error"))})},mk=function(a,b,c,d,e,f,g){var h=F(b+c);D(h,"key",a.A);g&&D(h,"cb",Date.now().toString());var k="GET"==d;if(k)for(var n in e)e.hasOwnProperty(n)&& +D(h,n,e[n]);return new I(function(p,r){ik(a,h.toString(),function(t){t?t.error?r(kk(t,f||{})):p(t):r(new P("network-request-failed"))},d,k?void 0:JSON.stringify(ei(e)),a.Kb,a.ej.get())})},nk=function(a){a=a.email;if("string"!==typeof a||!Mh.test(a))throw new P("invalid-email");},ok=function(a){"email"in a&&nk(a)},qk=function(a,b,c,d,e,f){var g=Gi(b);var h={};e&&e.length?(h[b]=e.join(","),e=JSON.stringify(h)):e=null;c={identifier:null,providerId:b,continueUri:c,customParameter:d||{},oauthScope:e,sessionId:f}; +g&&(delete c.customParameter,delete c.oauthScope);f&&"google.com"==b&&(c.authFlowType="CODE_FLOW");return Q(a,pk,c)},sk=function(a,b){return Q(a,rk,{identifier:b,continueUri:ai()?xh():"http://localhost"}).then(function(c){return c.signinMethods||[]})},uk=function(a){return Q(a,tk,{}).then(function(b){return b.authorizedDomains||[]})},vk=function(a,b){return Q(a,tk,{iosBundleId:b}).then(function(){})},wk=function(a,b,c){b={androidPackageName:b};c&&(b.sha1Cert=c);return Q(a,tk,b).then(function(){})}, +xk=function(a,b){return Q(a,tk,{clientId:b}).then(function(){})},yk=function(a,b){return Q(a,tk,{firebaseAppId:b}).then(function(){})},zk=function(a){if(!a.idToken){if(a.mfaPendingCredential)throw new P("multi-factor-auth-required",null,ec(a));throw new P("internal-error");}},Ak=function(a){if(a.phoneNumber||a.temporaryProof){if(!a.phoneNumber||!a.temporaryProof)throw new P("internal-error");}else{if(!a.sessionInfo)throw new P("missing-verification-id");if(!a.code)throw new P("missing-verification-code"); +}};l=bk.prototype;l.signInAnonymously=function(){return Q(this,Bk,{})};l.updateEmail=function(a,b){return Q(this,Ck,{idToken:a,email:b})};l.updatePassword=function(a,b){return Q(this,Dj,{idToken:a,password:b})};l.updateProfile=function(a,b){var c={idToken:a},d=[];bc(Dk,function(e,f){var g=b[f];null===g?d.push(e):f in b&&(c[f]=g)});d.length&&(c.deleteAttribute=d);return Q(this,Ck,c)};l.sendPasswordResetEmail=function(a,b){a={requestType:"PASSWORD_RESET",email:a};gc(a,b);return Q(this,Ek,a)}; +l.sendSignInLinkToEmail=function(a,b){a={requestType:"EMAIL_SIGNIN",email:a};gc(a,b);return Q(this,Fk,a)};l.sendEmailVerification=function(a,b){a={requestType:"VERIFY_EMAIL",idToken:a};gc(a,b);return Q(this,Gk,a)};l.verifyBeforeUpdateEmail=function(a,b,c){a={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:a,newEmail:b};gc(a,c);return Q(this,Hk,a)};var Pj=function(a,b){return Q(a,Ik,b)};bk.prototype.verifyPhoneNumber=function(a){return Q(this,Jk,a)}; +var Nj=function(a,b){return Q(a,Kk,b).then(function(c){return c.phoneSessionInfo.sessionInfo})},Lk=function(a){if(!a.phoneVerificationInfo)throw new P("internal-error");if(!a.phoneVerificationInfo.sessionInfo)throw new P("missing-verification-id");if(!a.phoneVerificationInfo.code)throw new P("missing-verification-code");},Oj=function(a,b){return Q(a,Mk,b).then(function(c){return c.phoneResponseInfo.sessionInfo})},Ok=function(a,b,c){return Q(a,Nk,{idToken:b,deleteProvider:c})},Pk=function(a){if(!a.requestUri|| +!a.sessionId&&!a.postBody&&!a.pendingToken)throw new P("internal-error");},Qk=function(a,b){b.oauthIdToken&&b.providerId&&0==b.providerId.indexOf("oidc.")&&!b.pendingToken&&(a.sessionId?b.nonce=a.sessionId:a.postBody&&(a=new jd(a.postBody),a.Pc("nonce")&&(b.nonce=a.get("nonce"))));return b},Sk=function(a){var b=null;a.needConfirmation?(a.code="account-exists-with-different-credential",b=Uj(a)):"FEDERATED_USER_ID_ALREADY_LINKED"==a.errorMessage?(a.code="credential-already-in-use",b=Uj(a)):"EMAIL_EXISTS"== +a.errorMessage?(a.code="email-already-in-use",b=Uj(a)):a.errorMessage&&(b=Rk(a.errorMessage));if(b)throw b;zk(a)},hj=function(a,b){b.returnIdpCredential=!0;return Q(a,Tk,b)},ij=function(a,b){b.returnIdpCredential=!0;return Q(a,Uk,b)},jj=function(a,b){b.returnIdpCredential=!0;b.autoCreate=!1;return Q(a,Vk,b)},Wk=function(a){if(!a.oobCode)throw new P("invalid-action-code");};bk.prototype.confirmPasswordReset=function(a,b){return Q(this,Xk,{oobCode:a,newPassword:b})}; +bk.prototype.checkActionCode=function(a){return Q(this,Yk,{oobCode:a})};bk.prototype.applyActionCode=function(a){return Q(this,Zk,{oobCode:a})}; +var Q=function(a,b,c){if(!zi(c,b.ba))return K(new P("internal-error"));var d=!!b.Ed,e=b.httpMethod||"POST",f;return J(c).then(b.G).then(function(){b.Ja&&(c.returnSecureToken=!0);b.I&&a.C&&"undefined"===typeof c.tenantId&&(c.tenantId=a.C);return d?mk(a,a.yh,b.endpoint,e,c,b.dh,b.Od||!1):mk(a,a.nh,b.endpoint,e,c,b.dh,b.Od||!1)}).then(function(g){f=g;return b.Ee?b.Ee(c,f):f}).then(b.P).then(function(){if(!b.Va)return f;if(!(b.Va in f))throw new P("internal-error");return f[b.Va]})},Rk=function(a){return kk({error:{errors:[{message:a}], +code:400,reason:a}})},kk=function(a,b){var c=(a.error&&a.error.errors&&a.error.errors[0]||{}).reason||"";var d={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(c=d[c]?new P(d[c]):null)return c;c=a.error&&(a.error.reason||a.error.message)||"";d={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password", +USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found", +RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests", +WEAK_PASSWORD:"weak-password",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",INVALID_TENANT_ID:"invalid-tenant-id",MISSING_APP_CREDENTIAL:"missing-app-credential", +MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id", +INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use", +SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email",API_KEY_SERVICE_BLOCKED:"api-key-service-blocked"};b=b||{};gc(d,b);b=(b=c.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1d)throw f;return Tl(a,b,c,d-g)})}; +Sl.prototype.send=function(a,b,c){b=void 0===b?null:b;c=void 0===c?!1:c;var d=this,e;b=b||{};var f,g,h,k=null;if(this.Ug)return K(Error("connection_unavailable"));var n=c?800:50,p="undefined"!==typeof MessageChannel?new MessageChannel:null;return(new I(function(r,t){p?(e=""+Math.floor(Math.random()*Math.pow(10,20)).toString(),p.port1.start(),g=setTimeout(function(){t(Error("unsupported_event"))},n),f=function(z){z.data.eventId===e&&("ack"===z.data.status?(clearTimeout(g),h=setTimeout(function(){t(Error("timeout"))}, +3E3)):"done"===z.data.status?(clearTimeout(h),"undefined"!==typeof z.data.response?r(z.data.response):t(Error("unknown_error"))):(clearTimeout(g),clearTimeout(h),t(Error("invalid_response"))))},k={messageChannel:p,onMessage:f},d.se.push(k),p.port1.addEventListener("message",f),d.Uj.postMessage({eventType:a,eventId:e,data:b},[p.port2])):t(Error("connection_unavailable"))})).then(function(r){Ul(d,k);return r}).h(function(r){Ul(d,k);throw r;})}; +var Ul=function(a,b){if(b){var c=b.messageChannel,d=b.onMessage;c&&(c.port1.removeEventListener("message",d),c.port1.close());sb(a.se,function(e){return e==b})}};Sl.prototype.close=function(){for(;0a.Gg&&(a.Qb=a.Gg);return b},Fm=function(a,b){a.stop();a.uc=hh(Gm(a,b)).then(function(){return a.gk?J():li()}).then(function(){return a.Sj()}).then(function(){Fm(a,!0)}).h(function(c){a.fk(c)&&Fm(a,!1)})};Em.prototype.stop=function(){this.uc&&(this.uc.cancel(),this.uc=null)};var Nm=function(a){var b={};b["facebook.com"]=Hm;b["google.com"]=Im;b["github.com"]=Jm;b["twitter.com"]=Km;var c=a&&a.providerId;try{if(c)return b[c]?new b[c](a):new Lm(a);if("undefined"!==typeof a.idToken)return new Mm(a)}catch(d){}return null},Mm=function(a){var b=a.providerId;if(!b&&a.idToken){var c=bj(a.idToken);c&&c.yc&&(b=c.yc)}if(!b)throw Error("Invalid additional user info!");if("anonymous"==b||"custom"==b)b=null;c=!1;"undefined"!==typeof a.isNewUser?c=!!a.isNewUser:"identitytoolkit#SignupNewUserResponse"=== +a.kind&&(c=!0);O(this,"providerId",b);O(this,"isNewUser",c)},Lm=function(a){Mm.call(this,a);a=gi(a.rawUserInfo||"{}");O(this,"profile",Ai(a||{}))};q(Lm,Mm);var Hm=function(a){Lm.call(this,a);if("facebook.com"!=this.providerId)throw Error("Invalid provider ID!");};q(Hm,Lm);var Jm=function(a){Lm.call(this,a);if("github.com"!=this.providerId)throw Error("Invalid provider ID!");O(this,"username",this.profile&&this.profile.login||null)};q(Jm,Lm); +var Im=function(a){Lm.call(this,a);if("google.com"!=this.providerId)throw Error("Invalid provider ID!");};q(Im,Lm);var Km=function(a){Lm.call(this,a);if("twitter.com"!=this.providerId)throw Error("Invalid provider ID!");O(this,"username",a.screenName||null)};q(Km,Lm);var Om={LOCAL:"local",NONE:"none",SESSION:"session"},Pm=function(a){var b=new P("invalid-persistence-type"),c=new P("unsupported-persistence-type");a:{for(d in Om)if(Om[d]==a){var d=!0;break a}d=!1}if(!d||"string"!==typeof a)throw b;switch(Uh()){case "ReactNative":if("session"===a)throw c;break;case "Node":if("none"!==a)throw c;break;case "Worker":if("session"===a||!gm()&&"none"!==a)throw c;break;default:if(!$h()&&"none"!==a)throw c;}},Qm=function(){var a=!hi(M())&&Rh()?!0:!1,b=ci(),c=$h();this.Oh= +"firebase";this.rg=":";this.hk=a;this.ei=b;this.Ii=c;this.ra={};ym||(ym=new xm);a=ym;try{this.Xh=!wh()&&oi()||!u.indexedDB?new a.vf.M:new sm(Th()?new Zl:new a.vf.M)}catch(d){this.Xh=new Zl,this.ei=!0}try{this.xi=new a.vf.Oe}catch(d){this.xi=new Zl}this.wj=new Zl;this.Ag=w(this.ui,this);this.ka={}},Rm,Sm=function(){Rm||(Rm=new Qm);return Rm},Tm=function(a,b){switch(b){case "session":return a.xi;case "none":return a.wj;default:return a.Xh}}; +Qm.prototype.va=function(a,b){return this.Oh+this.rg+a.name+(b?this.rg+b:"")};var Um=function(a,b,c){var d=a.va(b,c),e=Tm(a,b.M);return a.get(b,c).then(function(f){var g=null;try{g=gi(u.localStorage.getItem(d))}catch(h){}if(g&&!f)return u.localStorage.removeItem(d),a.set(b,g,c);g&&f&&"localStorage"!=e.type&&u.localStorage.removeItem(d)})};l=Qm.prototype;l.get=function(a,b){return Tm(this,a.M).get(this.va(a,b))};l.remove=function(a,b){b=this.va(a,b);"local"==a.M&&(this.ka[b]=null);return Tm(this,a.M).remove(b)}; +l.set=function(a,b,c){var d=this.va(a,c),e=this,f=Tm(this,a.M);return f.set(d,b).then(function(){return f.get(d)}).then(function(g){"local"==a.M&&(e.ka[d]=g)})};l.addListener=function(a,b,c){a=this.va(a,b);this.Ii&&(this.ka[a]=u.localStorage.getItem(a));dc(this.ra)&&this.zg();this.ra[a]||(this.ra[a]=[]);this.ra[a].push(c)};l.removeListener=function(a,b,c){a=this.va(a,b);this.ra[a]&&(sb(this.ra[a],function(d){return d==c}),0==this.ra[a].length&&delete this.ra[a]);dc(this.ra)&&this.Ne()}; +l.zg=function(){Tm(this,"local").mb(this.Ag);this.ei||(wh()||!oi())&&u.indexedDB||!this.Ii||Vm(this)};var Vm=function(a){Wm(a);a.Sf=setInterval(function(){for(var b in a.ra){var c=u.localStorage.getItem(b),d=a.ka[b];c!=d&&(a.ka[b]=c,c=new qf({type:"storage",key:b,target:window,oldValue:d,newValue:c,cg:!0}),a.ui(c))}},1E3)},Wm=function(a){a.Sf&&(clearInterval(a.Sf),a.Sf=null)};Qm.prototype.Ne=function(){Tm(this,"local").yb(this.Ag);Wm(this)}; +Qm.prototype.ui=function(a){if(a&&a.fj){var b=a.qa.key;if(null==b)for(var c in this.ra){var d=this.ka[c];"undefined"===typeof d&&(d=null);var e=u.localStorage.getItem(c);e!==d&&(this.ka[c]=e,this.kf(c))}else if(0==b.indexOf(this.Oh+this.rg)&&this.ra[b]){"undefined"!==typeof a.qa.cg?Tm(this,"local").yb(this.Ag):Wm(this);if(this.hk)if(c=u.localStorage.getItem(b),d=a.qa.newValue,d!==c)null!==d?u.localStorage.setItem(b,d):u.localStorage.removeItem(b);else if(this.ka[b]===d&&"undefined"===typeof a.qa.cg)return; +var f=this;c=function(){if("undefined"!==typeof a.qa.cg||f.ka[b]!==u.localStorage.getItem(b))f.ka[b]=u.localStorage.getItem(b),f.kf(b)};wb&&Jb&&10==Jb&&u.localStorage.getItem(b)!==a.qa.newValue&&a.qa.newValue!==a.qa.oldValue?setTimeout(c,10):c()}}else C(a,w(this.kf,this))};Qm.prototype.kf=function(a){this.ra[a]&&C(this.ra[a],function(b){b()})};var Xm=function(a){this.D=a;this.o=Sm()},Zm=function(a){return a.o.get(Ym,a.D).then(function(b){return Ki(b)})};Xm.prototype.bc=function(a){this.o.addListener(Ym,this.D,a)};Xm.prototype.td=function(a){this.o.removeListener(Ym,this.D,a)};var Ym={name:"authEvent",M:"local"},$m={name:"redirectEvent",M:"session"};var an=function(){this.o=Sm()};an.prototype.mc=function(a){return this.o.get(bn,a)};var dn=function(a){return a.o.get(cn).then(function(b){b=b||{};return b.type&&b.apiKey?new Li(b.apiKey,b.appName||"",b.type,b.eventId,b.redirectUrl,b.clientVersion,b.displayName,b.apn,b.ibi,b.eid,b.fw,b.clientId,b.sha1Cert,b.tenantId,b.providerId,b.appId,b.publicKey):null})},en=function(a,b,c){return a.o.set(Ym,c.m(),b)},cn={name:"oauthHelperState",M:"session"},bn={name:"sessionId",M:"session"};var fn=function(){this.Uf=null;this.Sd=[]};fn.prototype.subscribe=function(a){var b=this;this.Sd.push(a);this.Uf||(this.Uf=function(c){for(var d=0;dthis.ic-3E4?this.la?ao(this,{grant_type:"refresh_token",refresh_token:this.la}):J(null):J({accessToken:this.na.toString(),refreshToken:this.la})};var bo=function(a,b){this.ah=a||null;this.Ih=b||null;xi(this,{lastSignInTime:ni(b||null),creationTime:ni(a||null)})};bo.prototype.clone=function(){return new bo(this.ah,this.Ih)};bo.prototype.m=function(){return{lastLoginAt:this.Ih,createdAt:this.ah}}; +var co=function(a,b,c,d,e,f){xi(this,{uid:a,displayName:d||null,photoURL:e||null,email:c||null,phoneNumber:f||null,providerId:b})},R=function(a,b,c){Of.call(this);this.Z=[];this.A=a.apiKey;this.B=a.appName;this.J=a.authDomain||null;var d=firebase.SDK_VERSION?Yh("JsCore",firebase.SDK_VERSION):null;this.i=new bk(this.A,uh(vh),d);(this.s=a.emulatorConfig||null)&&fk(this.i,this.s);this.Ka=new Yn(this.i);eo(this,b.idToken);$n(this.Ka,b);O(this,"refreshToken",this.Ka.la);fo(this,c||{});this.md=!1;this.J&& +bi()&&(this.v=Fn(this.J,this.A,this.B,this.s));this.Me=[];this.La=null;this.xc=go(this);this.Kc=w(this.If,this);var e=this;this.Fa=null;this.Th=function(f){e.Ec(f.languageCode)};this.Of=null;this.Rh=function(f){ho(e,f.emulatorConfig)};this.uf=null;this.U=[];this.Sh=function(f){io(e,f.Wc)};this.Df=null;this.te=new Vn(this,c);O(this,"multiFactor",this.te)};q(R,Of);R.prototype.Ec=function(a){this.Fa=a;dk(this.i,a)}; +var ho=function(a,b){a.s=b;fk(a.i,b);a.v&&(b=a.v,a.v=Fn(a.J,a.A,a.B,a.s),a.md&&(b.unsubscribe(a),a.v.subscribe(a)))},jo=function(a,b){a.Of&&Lf(a.Of,"languageCodeChanged",a.Th);(a.Of=b)&&Df(b,"languageCodeChanged",a.Th)},ko=function(a,b){a.uf&&Lf(a.uf,"emulatorConfigChanged",a.Rh);(a.uf=b)&&Df(b,"emulatorConfigChanged",a.Rh)},io=function(a,b){a.U=b;gk(a.i,firebase.SDK_VERSION?Yh("JsCore",firebase.SDK_VERSION,a.U):null)},lo=function(a,b){a.Df&&Lf(a.Df,"frameworkChanged",a.Sh);(a.Df=b)&&Df(b,"frameworkChanged", +a.Sh)};R.prototype.If=function(){this.xc.uc&&(this.xc.stop(),this.xc.start())}; +var mo=function(a){try{return firebase.app(a.B).auth()}catch(b){throw new P("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+a.B+"'!");}},go=function(a){return new Em(function(){return a.getIdToken(!0)},function(b){return b&&"auth/network-request-failed"==b.code?!0:!1},function(){var b=a.Ka.ic-Date.now()-3E5;return 0this.Lb&&(this.Lb=0);0==this.Lb&&T(this)&&oo(T(this));this.removeAuthTokenListener(a)};l.addAuthTokenListener=function(a){var b=this;this.Db.push(a);this.l(this.Ia.then(function(){b.za||pb(b.Db,a)&&a(lp(b))}))};l.removeAuthTokenListener=function(a){sb(this.Db,function(b){return b==a})};var kp=function(a,b){a.Jc.push(b);a.l(a.Ia.then(function(){!a.za&&pb(a.Jc,b)&&a.Fd!==a.getUid()&&(a.Fd=a.getUid(),b(lp(a)))}))};l=S.prototype; +l.delete=function(){this.za=!0;for(var a=0;ae||e>=mp.length)throw new P("internal-error", +"Argument validator received an unsupported number of arguments.");c=mp[e];d=(d?"":c+" argument ")+(b.name?'"'+b.name+'" ':"")+"must be "+b.W+".";break a}d=null}}if(d)throw new P("argument-error",a+" failed: "+d);},mp="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" "),U=function(a,b){return{name:a||"",W:"a valid string",optional:!!b,X:function(c){return"string"===typeof c}}},op=function(a,b){return{name:a||"",W:"a boolean",optional:!!b,X:function(c){return"boolean"===typeof c}}}, +V=function(a,b){return{name:a||"",W:"a valid object",optional:!!b,X:v}},pp=function(a,b){return{name:a||"",W:"a function",optional:!!b,X:ac}},qp=function(a,b){return{name:a||"",W:"null",optional:!!b,X:function(c){return null===c}}},rp=function(){return{name:"",W:"an HTML element",optional:!1,X:function(a){return!!(a&&a instanceof Element)}}},sp=function(){return{name:"auth",W:"an instance of Firebase Auth",optional:!0,X:function(a){return!!(a&&a instanceof S)}}},tp=function(){return{name:"app",W:"an instance of Firebase App", +optional:!0,X:function(a){return!!(a&&a instanceof firebase.app.App)}}},up=function(a){return{name:a?a+"Credential":"credential",W:a?"a valid "+a+" credential":"a valid credential",optional:!1,X:function(b){if(!b)return!1;var c=!a||b.providerId===a;return!(!b.Mb||!c)}}},vp=function(){return{name:"multiFactorAssertion",W:"a valid multiFactorAssertion",optional:!1,X:function(a){return a?!!a.process:!1}}},wp=function(){return{name:"authProvider",W:"a valid Auth provider",optional:!1,X:function(a){return!!(a&& +a.providerId&&a.hasOwnProperty&&a.hasOwnProperty("isOAuthProvider"))}}},xp=function(a,b){return v(a)&&"string"===typeof a.type&&a.type===b&&"function"===typeof a.Zc},yp=function(a){return v(a)&&"string"===typeof a.uid},zp=function(){return{name:"applicationVerifier",W:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,X:function(a){return!(!a||"string"!==typeof a.type||"function"!==typeof a.verify)}}},W=function(a,b,c,d){return{name:c||"",W:a.W+" or "+b.W,optional:!!d,X:function(e){return a.X(e)|| +b.X(e)}}};var X=function(a,b){for(var c in b){var d=b[c].name;a[d]=Ap(d,a[c],b[c].g)}},Bp=function(a,b){for(var c in b){var d=b[c].name;d!==c&&Object.defineProperty(a,d,{get:Aa(function(e){return this[e]},c),set:Aa(function(e,f,g,h){np(e,[g],[h],!0);this[f]=h},d,c,b[c].df),enumerable:!0})}},Y=function(a,b,c,d){a[b]=Ap(b,c,d)},Ap=function(a,b,c){if(!c)return b;var d=Cp(a);a=function(){var g=Array.prototype.slice.call(arguments);np(d,c,g);return b.apply(this,g)};for(var e in b)a[e]=b[e];for(var f in b.prototype)a.prototype[f]= +b.prototype[f];return a},Cp=function(a){a=a.split(".");return a[a.length-1]};function Dp(){}O(Dp,"FACTOR_ID","phone");X(S.prototype,{applyActionCode:{name:"applyActionCode",g:[U("code")]},checkActionCode:{name:"checkActionCode",g:[U("code")]},confirmPasswordReset:{name:"confirmPasswordReset",g:[U("code"),U("newPassword")]},createUserWithEmailAndPassword:{name:"createUserWithEmailAndPassword",g:[U("email"),U("password")]},fetchSignInMethodsForEmail:{name:"fetchSignInMethodsForEmail",g:[U("email")]},getRedirectResult:{name:"getRedirectResult",g:[]},isSignInWithEmailLink:{name:"isSignInWithEmailLink",g:[U("emailLink")]}, +onAuthStateChanged:{name:"onAuthStateChanged",g:[W(V(),pp(),"nextOrObserver"),pp("opt_error",!0),pp("opt_completed",!0)]},onIdTokenChanged:{name:"onIdTokenChanged",g:[W(V(),pp(),"nextOrObserver"),pp("opt_error",!0),pp("opt_completed",!0)]},sendPasswordResetEmail:{name:"sendPasswordResetEmail",g:[U("email"),W(V("opt_actionCodeSettings",!0),qp(null,!0),"opt_actionCodeSettings",!0)]},sendSignInLinkToEmail:{name:"sendSignInLinkToEmail",g:[U("email"),V("actionCodeSettings")]},setPersistence:{name:"setPersistence", +g:[U("persistence")]},signInAndRetrieveDataWithCredential:{name:"signInAndRetrieveDataWithCredential",g:[up()]},signInAnonymously:{name:"signInAnonymously",g:[]},signInWithCredential:{name:"signInWithCredential",g:[up()]},signInWithCustomToken:{name:"signInWithCustomToken",g:[U("token")]},signInWithEmailAndPassword:{name:"signInWithEmailAndPassword",g:[U("email"),U("password")]},signInWithEmailLink:{name:"signInWithEmailLink",g:[U("email"),U("emailLink",!0)]},signInWithPhoneNumber:{name:"signInWithPhoneNumber", +g:[U("phoneNumber"),zp()]},signInWithPopup:{name:"signInWithPopup",g:[wp()]},signInWithRedirect:{name:"signInWithRedirect",g:[wp()]},updateCurrentUser:{name:"updateCurrentUser",g:[W(function(a){return{name:"user",W:"an instance of Firebase User",optional:!!a,X:function(b){return!!(b&&b instanceof R)}}}(),qp(),"user")]},signOut:{name:"signOut",g:[]},toJSON:{name:"toJSON",g:[U(null,!0)]},useDeviceLanguage:{name:"useDeviceLanguage",g:[]},useEmulator:{name:"useEmulator",g:[U("url"),V("options",!0)]}, +verifyPasswordResetCode:{name:"verifyPasswordResetCode",g:[U("code")]}});Bp(S.prototype,{lc:{name:"languageCode",df:W(U(),qp(),"languageCode")},ti:{name:"tenantId",df:W(U(),qp(),"tenantId")}});S.Persistence=Om;S.Persistence.LOCAL="local";S.Persistence.SESSION="session";S.Persistence.NONE="none"; +X(R.prototype,{"delete":{name:"delete",g:[]},getIdTokenResult:{name:"getIdTokenResult",g:[op("opt_forceRefresh",!0)]},getIdToken:{name:"getIdToken",g:[op("opt_forceRefresh",!0)]},linkAndRetrieveDataWithCredential:{name:"linkAndRetrieveDataWithCredential",g:[up()]},linkWithCredential:{name:"linkWithCredential",g:[up()]},linkWithPhoneNumber:{name:"linkWithPhoneNumber",g:[U("phoneNumber"),zp()]},linkWithPopup:{name:"linkWithPopup",g:[wp()]},linkWithRedirect:{name:"linkWithRedirect",g:[wp()]},reauthenticateAndRetrieveDataWithCredential:{name:"reauthenticateAndRetrieveDataWithCredential", +g:[up()]},reauthenticateWithCredential:{name:"reauthenticateWithCredential",g:[up()]},reauthenticateWithPhoneNumber:{name:"reauthenticateWithPhoneNumber",g:[U("phoneNumber"),zp()]},reauthenticateWithPopup:{name:"reauthenticateWithPopup",g:[wp()]},reauthenticateWithRedirect:{name:"reauthenticateWithRedirect",g:[wp()]},reload:{name:"reload",g:[]},sendEmailVerification:{name:"sendEmailVerification",g:[W(V("opt_actionCodeSettings",!0),qp(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",g:[U(null, +!0)]},unlink:{name:"unlink",g:[U("provider")]},updateEmail:{name:"updateEmail",g:[U("email")]},updatePassword:{name:"updatePassword",g:[U("password")]},updatePhoneNumber:{name:"updatePhoneNumber",g:[up("phone")]},updateProfile:{name:"updateProfile",g:[V("profile")]},verifyBeforeUpdateEmail:{name:"verifyBeforeUpdateEmail",g:[U("email"),W(V("opt_actionCodeSettings",!0),qp(null,!0),"opt_actionCodeSettings",!0)]}});X(El.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}); +X(zl.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}});X(I.prototype,{Ab:{name:"finally"},h:{name:"catch"},then:{name:"then"}});Bp(zm.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",df:op("appVerificationDisabledForTesting")}});X(Cm.prototype,{confirm:{name:"confirm",g:[U("verificationCode")]}}); +Y(ej,"fromJSON",function(a){a="string"===typeof a?JSON.parse(a):a;for(var b,c=[mj,Ej,Lj,kj],d=0;dh?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*h)).toUTCString())+(d?";secure":"")+(null!=e?";samesite="+e:""))}; +l.get=function(a,b){for(var c=a+"=",d=(this.Yc()||"").split(";"),e=0,f;ethis.N[c].stagingRollout&&(this.N[c].stagingRollout=0),1this.N[c].rollout&&(this.N[c].rollout=0),1, as required by soy internals. Consider using goog.soy.renderElement instead.\nTemplate output: %s",e&& +e[0],d);d=c;if(Qc())for(;d.lastChild;)d.removeChild(d.lastChild);d.innerHTML=Lc(b)}1==c.childNodes.length&&(b=c.firstChild,1==b.nodeType&&(c=b));this.S=c;Me(a,this.S);this.Id()};Vp.prototype.Id=function(){};Vp.prototype.Nd=function(){};Vp.prototype.Gb=function(){this.S&&(this.Nd(),Oe(this.S),this.S=null)};var Wp=function(){Vp.call(this,$e)};q(Wp,Vp);Wp.prototype.Id=function(){var a=Fe("progressBar");window.componentHandler&&window.componentHandler.upgradeElement&&window.componentHandler.upgradeElement(a)}; +Wp.prototype.Nd=function(){var a=Fe("progressBar");window.componentHandler&&window.componentHandler.downgradeElements&&window.componentHandler.downgradeElements(a)};var Xp=function(a,b){Vp.call(this,af,{appName:a});this.we=b;this.ab=null};q(Xp,Vp);Xp.prototype.Id=function(){var a=Fe("continue"),b=this;this.ab=Df(a,"click",function(){b.we()})};Xp.prototype.Nd=function(){this.ab&&(Mf(this.ab),this.ab=null)};var Yp=function(a){Vp.call(this,bf,{errorMessage:a})};q(Yp,Vp); +var Zp=function(a,b){Vp.call(this,cf,{});this.we=a||null;this.oc=b||null;this.ab=null};q(Zp,Vp);Zp.prototype.Id=function(){var a=Fe("verify"),b=this;this.we&&(this.ab=Df(a,"click",function(){b.we()}));a=Fe("app-verification-progress-bar");window.componentHandler&&window.componentHandler.upgradeElement&&window.componentHandler.upgradeElement(a);if((a=Fe("status-container-label"))&&this.oc){var c=Up(Ve(a),this.oc);Re(a,c);pb(Tp,this.oc.replace("-","_").toLowerCase())&&Pp(a,"firebase-rtl")}}; +var $p=function(){var a=Fe("status-container");Pp(a,"firebase-hidden")};Zp.prototype.Nd=function(){this.ab&&(Mf(this.ab),this.ab=null);var a=Fe("app-verification-progress-bar");window.componentHandler&&window.componentHandler.downgradeElements&&window.componentHandler.downgradeElements(a)};var aq=function(a){this.mg=Je("DIV",{id:"progressBarContainer"});var b=this;this.zb=new an;this.uri=F(a);this.apiKey=E(this.uri,"apiKey")||null;this.appName=E(this.uri,"appName")||"";this.authType=E(this.uri,"authType")||null;this.Ib=E(this.uri,"eventId")||null;this.Ba=E(this.uri,"redirectUrl")||null;this.ye=E(this.uri,"v")||null;this.kk=(a=E(this.uri,"scopes"))?a.split(","):[];this.Ud={};this.sessionId=E(this.uri,"sessionId")||null;this.bf=E(this.uri,"appDisplayName")||null;this.Oa=E(this.uri,"apn")|| +null;this.sb=E(this.uri,"ibi")||null;this.Vd=E(this.uri,"eid")||null;this.clientId=E(this.uri,"clientId")||null;this.pb=E(this.uri,"appId")||null;(this.Ig=(new jd(this.uri.kc)).get("fac")||null)&&console.log("App Check token found.");this.xh=E(this.uri,"hl")||null;this.Wb=E(this.uri,"sha1Cert")||null;this.publicKey=E(this.uri,"publicKey")||null;this.Pe=E(this.uri,"tid")||null;a=gi(E(this.uri,"customParameters")||"{}");this.Ud="object"==typeof a?a||{}:{};this.providerId=E(this.uri,"providerId")||null; +this.Ce="string"===typeof u.POST_BODY&&"{{POST_BODY}}"!=u.POST_BODY&&0!=u.POST_BODY.length?u.POST_BODY:null;this.providerId&&(this.Ud=fi(this.Ud,Fi(this.providerId)));this.Wc=(a=E(this.uri,"fw"))?a.split(","):[];this.mode="oauth";this.Tb=null;this.Uh=this.Xf=Nh().then(function(){document.body.appendChild(b.mg);b.Tb=new Wp;b.Tb.render(b.mg)});this.ib=null},bq={},cq={gf:["facebook.com"]},dq={},eq={gf:["facebook.com","apple.com"]},fq={},gq=function(a){if(a.Ba)try{return gd(hd(fd(F(a.Ba),""),""),"").toString()}catch(b){}else{if(a.Oa)return"file://asset/www/index.html?apn="+ +encodeURIComponent(a.Oa);if(a.sb)return"file://asset/www/index.html?ibi="+encodeURIComponent(a.sb)}return null},hq=function(a,b){return E(a,b)},iq=function(a){if(!a.apiKey)throw mi("No API key available"),new P("bad-request");a.ib=new bk(a.apiKey,uh(a.Vd),Yh("Handler","2.20.2",a.Wc),a.Ig);a.ib.C=a.Pe},kq=function(a){jq(a);a.Xf.then(function(){a.Tb=new Wp;a.Tb.render(a.mg)})},jq=function(a){a.Uh&&a.Uh.cancel();a.Tb&&(a.Tb.Gb(),a.Tb=null)}; +aq.prototype.nc=function(){return this.apiKey?this.apiKey+":"+(this.appName||""):null};aq.prototype.handleError=function(a){var b=this;if("auth/bad-request"===a.code)return Nh().then(function(){jq(b);(new Yp(a.message)).render(document.body)});var c=new Ji(this.authType||"unknown",this.Ib,null,null,a);return lq(this,c)}; +var mq=function(a,b,c,d){b=new Ji(a.authType,a.Ib,b,c,null,d,a.Pe);return lq(a,b)},lq=function(a,b){var c=a.nc(),d=!1,e=J();Ih()&&!a.Ba&&(e=hh(500));return e.then(function(){if((a.Oa||a.sb)&&a.ib)return d=!0,nq(a.ib,b,a.Oa,a.sb,a.clientId,a.Wb,a.bf,a.Ib,a.pb,a.publicKey);if("verifyApp"===a.authType&&b.Y)return d=!0,oq(b.getError());if(c){var f=a.zb;return b.getType().match(/Redirect$/)?f.o.set($m,b.m(),c):qq(f,c,b)}}).then(function(){return a.zb.o.remove(cn)}).then(function(){if(c)return a.zb.o.remove(bn, +c)}).Ab(function(){d?jq(a):/redirect/i.test(a.authType||"")?(jq(a),pi(),zh(a.Ba)):a.ye&&ci()&&!Sh()?a.apiKey?setTimeout(function(){jq(a);Gh()},15E3):(jq(a),Gh()):(jq(a),Gh())})},nq=function(a,b,c,d,e,f,g,h,k,n){return J().then(function(){if("verifyApp"===b.getType()&&d){if(!e&&!k)throw new P("invalid-app-id");rq(null,b,c,d,e,f,g,h,k,n)}else return"verifyApp"===b.getType()&&c?rq(null,b,c,d,e,f,g,h,k,n):c?wk(a,c,f).then(function(){var p=null;p=f?J("playservices.app.goo.gl"):Q(a,fl,{returnDynamicLink:!0}); +return p.then(function(r){rq(r,b,c,d,e,f,g,h,k,n)})}):(e?xk(a,e):k?yk(a,k):vk(a,d)).then(function(){rq(null,b,c,d,e,f,g,h,k,n)})}).h(function(p){return oq(p)})},oq=function(a){var b=!a||"auth/dynamic-link-not-activated"!=a.code&&"auth/invalid-app-id"!=a.code&&"auth/invalid-oauth-client-id"!=a.code&&"auth/invalid-api-key"!=a.code&&"auth/internal-error"!=a.code&&"auth/invalid-cert-hash"!=a.code?(ve["fireauth.oauthhelper.ui.soy.temporaryErrorMessage"]?ve["fireauth.oauthhelper.ui.soy.temporaryErrorMessage"](void 0, +void 0):"An error occurred. Please try again later.").toString():a.message;return Nh().then(function(){(new Yp(b)).render(document.body)})},rq=function(a,b,c,d,e,f,g,h,k,n){n=n?"android_non_gmscore":c?"android":"ios";var p=c?c:d,r=null;f?(r=sq(b,c,h,n),p="com.google.android.gms"):(e||k)&&d&&"verifyApp"!==b.getType()&&!b.Y?(r=window.location.protocol+"//"+window.location.host+"/__/auth/callback?authType="+encodeURIComponent(b.getType())+"&link="+encodeURIComponent(b.Xa),h&&(r+="&eventId="+h)):b.Y? +(r=window.location.protocol+"//"+window.location.host+"/__/auth/callback?firebaseError="+encodeURIComponent(di(b.getError().m()))+"&authType="+encodeURIComponent(b.getType()),h&&(r+="&eventId="+h)):r=b.Xa.replace("/handler","/callback");a=new Ui(a,n,p,window.location.host,r,e,k);"android"==n?(Vi(a,g),zh(a.toString(!f))):zh(a.toString(),void 0,!0);setTimeout(function(){yh(null)},4E3)},sq=function(a,b,c,d){if("android_non_gmscore"===d){d=a.Xa;var e=window.location.protocol+"//"+window.location.host+ +"/__/auth/handler";b="intent://firebase.auth/#Intent;scheme="+("verifyApp"===a.getType()?"recaptcha":"genericidp")+";package="+b+";S.authType="+a.getType()+";";c&&(b+="S.eventId="+c+";");a.Y?b+="S.firebaseError="+encodeURIComponent(di(a.getError().m()))+";":(b+="S.link="+encodeURIComponent(d)+";",b+="B.encryptionEnabled=false;");b+="S.browser_fallback_url="+encodeURIComponent(e)+";";a=b+"end;"}else d=qd("https","fir-auth-gms.firebaseapp.com",null,"/",null,null),D(d,"authType",a.getType()),D(d,"cpn", +b),c&&D(d,"eventId",c),a.Y?D(d,"firebaseError",di(a.getError().m())):D(d,"link",a.Xa),a=d.toString();return a},qq=function(a,b,c){var d=u.window&&u.window.opener||null;if(Mp()&&d&&/popup/i.test(c.getType()||"")){for(var e=[],f=b.split(":"),g=0;gp.width&&"facebook.com"==b&&!a.Ba&&D(k,"display","popup");n&&D(k,"context_uri",n);h=k.toString();k=a.nc();return a.zb.o.set(bn,f.sessionId,k)}).then(function(){return yq(a)}).then(function(){jq(a); +var k=xh();zh(h);Lp()&&"Safari"===Bh(M())&&setTimeout(function(){k===xh()&&(new Xp(null,function(){a.handleError(new P("user-cancelled"))})).render(document.body)},1E3)})},yq=function(a){if(!Np())return J();var b=0;return new I(function(c,d){var e=function(){10<=b++?(mi("Unable to save initial state."),d(new P("bad-request","Unable to save initial state. This may happen if browser sessionStorage is inaccessible."))):dn(a.zb).then(function(f){f?c():setTimeout(e,1)})};e()})};var zq=function(a){aq.call(this,a)};q(zq,aq);zq.prototype.start=function(){var a=this;return this.cb().then(function(){return Aq(a)}).h(function(b){return b instanceof P?a.handleError(b):a.handleError(new P("internal-error"))})}; +zq.prototype.cb=function(){var a=this;return dn(this.zb).then(function(b){if(!b)throw mi("Unable to process request due to missing initial state."),new P("bad-request","Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared. Some specific scenarios are - 1) Using IDP-Initiated SAML SSO. 2) Using signInWithRedirect in a storage-partitioned browser environment.");var c=b&&b.A,d=b&&b.getType();if(!c)throw new P("invalid-api-key"); +if(!d)throw new P("internal-error");a.apiKey=b.A;a.Vd=b.ih;a.Wc=b.U;iq(a);a.appName=b.B;a.authType=b.getType();a.Ib=b.T;a.Ba=b.Bc;a.ye=b.Pa;a.bf=b.tf;a.Oa=b.cc;a.sb=b.cd;a.clientId=b.Eb;a.Wb=b.pi;a.Pe=b.C;a.providerId=b.yc;a.pb=b.Jb;a.publicKey=b.bi})}; +var Bq=function(a,b){if(a.Ce&&"apple.com"===a.providerId){b=F(b);var c=si(a.Ce);a.Ce=null;for(var d in c)c.hasOwnProperty(d)&&D(b,d,c[d]);return b.toString()}return b},Aq=function(a){var b=Bq(a,a.uri.toString()),c=a.nc();return a.zb.mc(c).then(function(d){if(!d)throw new P("internal-error");return mq(a,b,d,a.Ce)})};var Cq=null;function Dq(a){Eq();Nh().then(function(){var b=new Xp(a.appName,function(){b.Gb();zh(a.toString());setTimeout(function(){yh(null)},4E3)});b.render(document.body)})}function Fq(a){var b=a;try{var c=Ii(gi(a));c&&c.message&&(b=c.message)}catch(d){}Eq();Nh().then(function(){(new Yp(b)).render(document.body)})} +function Eq(){var a=mc(new lc(jc,'.mdl-card{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;font-size:16px;font-weight:400;min-height:200px;overflow:hidden;width:330px;z-index:1;position:relative;background:#fff;border-radius:2px;-moz-box-sizing:border-box;box-sizing:border-box}.mdl-card__media{background-color:#ff4081;background-repeat:repeat;background-position:50% 50%;background-size:cover;background-origin:padding-box;background-attachment:scroll;-moz-box-sizing:border-box;box-sizing:border-box}.mdl-card__title{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;color:#000;display:block;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:stretch;-webkit-justify-content:stretch;-moz-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;line-height:normal;padding:16px 16px;-webkit-perspective-origin:165px 56px;perspective-origin:165px 56px;-webkit-transform-origin:165px 56px;transform-origin:165px 56px;-moz-box-sizing:border-box;box-sizing:border-box}.mdl-card__title.mdl-card--border{border-bottom:1px solid rgba(0,0,0,.1)}.mdl-card__title-text{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;color:inherit;display:block;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;font-size:24px;font-weight:300;line-height:normal;overflow:hidden;-webkit-transform-origin:149px 48px;transform-origin:149px 48px;margin:0}.mdl-card__subtitle-text{font-size:14px;color:rgba(0,0,0,.54);margin:0}.mdl-card__supporting-text{color:rgba(0,0,0,.54);font-size:1rem;line-height:18px;overflow:hidden;padding:16px 16px;width:90%}.mdl-card__supporting-text.mdl-card--border{border-bottom:1px solid rgba(0,0,0,.1)}.mdl-card__actions{font-size:16px;line-height:normal;width:100%;background-color:transparent;padding:8px;-moz-box-sizing:border-box;box-sizing:border-box}.mdl-card__actions.mdl-card--border{border-top:1px solid rgba(0,0,0,.1)}.mdl-card--expand{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}.mdl-card__menu{position:absolute;right:16px;top:16px}.mdl-button{background:transparent;border:none;border-radius:2px;color:#000;position:relative;height:36px;margin:0;min-width:64px;padding:0 16px;display:inline-block;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:14px;font-weight:500;text-transform:uppercase;line-height:1;letter-spacing:0;overflow:hidden;will-change:box-shadow;-webkit-transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);outline:none;cursor:pointer;text-decoration:none;text-align:center;line-height:36px;vertical-align:middle}.mdl-button::-moz-focus-inner{border:0}.mdl-button:hover{background-color:hsla(0,0%,62%,.2)}.mdl-button:focus:not(:active){background-color:rgba(0,0,0,.12)}.mdl-button:active{background-color:hsla(0,0%,62%,.4)}.mdl-button.mdl-button--colored{color:#3f51b5}.mdl-button.mdl-button--colored:focus:not(:active){background-color:rgba(0,0,0,.12)}input.mdl-button[type=submit]{-webkit-appearance:none}.mdl-button--raised{background:hsla(0,0%,62%,.2);box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12)}.mdl-button--raised:active{box-shadow:0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12),0 2px 4px -1px rgba(0,0,0,.2);background-color:hsla(0,0%,62%,.4)}.mdl-button--raised:focus:not(:active){box-shadow:0 0 8px rgba(0,0,0,.18),0 8px 16px rgba(0,0,0,.36);background-color:hsla(0,0%,62%,.4)}.mdl-button--raised.mdl-button--colored{background:#3f51b5;color:#fff}.mdl-button--raised.mdl-button--colored:hover{background-color:#3f51b5}.mdl-button--raised.mdl-button--colored:active{background-color:#3f51b5}.mdl-button--raised.mdl-button--colored:focus:not(:active){background-color:#3f51b5}.mdl-button--raised.mdl-button--colored .mdl-ripple{background:#fff}.mdl-button--fab{border-radius:50%;font-size:24px;height:56px;margin:auto;min-width:56px;width:56px;padding:0;overflow:hidden;background:hsla(0,0%,62%,.2);box-shadow:0 1px 1.5px 0 rgba(0,0,0,.12),0 1px 1px 0 rgba(0,0,0,.24);position:relative;line-height:normal}.mdl-button--fab .material-icons{position:absolute;top:50%;left:50%;-webkit-transform:translate(-12px,-12px);transform:translate(-12px,-12px);line-height:24px;width:24px}.mdl-button--fab.mdl-button--mini-fab{height:40px;min-width:40px;width:40px}.mdl-button--fab .mdl-button__ripple-container{border-radius:50%;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-button--fab:active{box-shadow:0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12),0 2px 4px -1px rgba(0,0,0,.2);background-color:hsla(0,0%,62%,.4)}.mdl-button--fab:focus:not(:active){box-shadow:0 0 8px rgba(0,0,0,.18),0 8px 16px rgba(0,0,0,.36);background-color:hsla(0,0%,62%,.4)}.mdl-button--fab.mdl-button--colored{background:#ff4081;color:#fff}.mdl-button--fab.mdl-button--colored:hover{background-color:#ff4081}.mdl-button--fab.mdl-button--colored:focus:not(:active){background-color:#ff4081}.mdl-button--fab.mdl-button--colored:active{background-color:#ff4081}.mdl-button--fab.mdl-button--colored .mdl-ripple{background:#fff}.mdl-button--icon{border-radius:50%;font-size:24px;height:32px;margin-left:0;margin-right:0;min-width:32px;width:32px;padding:0;overflow:hidden;color:inherit;line-height:normal}.mdl-button--icon .material-icons{position:absolute;top:50%;left:50%;-webkit-transform:translate(-12px,-12px);transform:translate(-12px,-12px);line-height:24px;width:24px}.mdl-button--icon.mdl-button--mini-icon{height:24px;min-width:24px;width:24px}.mdl-button--icon.mdl-button--mini-icon .material-icons{top:0;left:0}.mdl-button--icon .mdl-button__ripple-container{border-radius:50%;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-button__ripple-container{display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:0;overflow:hidden}.mdl-button.mdl-button--disabled .mdl-button__ripple-container .mdl-ripple,.mdl-button[disabled] .mdl-button__ripple-container .mdl-ripple{background-color:transparent}.mdl-button--primary.mdl-button--primary{color:#3f51b5}.mdl-button--primary.mdl-button--primary .mdl-ripple{background:#fff}.mdl-button--primary.mdl-button--primary.mdl-button--fab,.mdl-button--primary.mdl-button--primary.mdl-button--raised{color:#fff;background-color:#3f51b5}.mdl-button--accent.mdl-button--accent{color:#ff4081}.mdl-button--accent.mdl-button--accent .mdl-ripple{background:#fff}.mdl-button--accent.mdl-button--accent.mdl-button--fab,.mdl-button--accent.mdl-button--accent.mdl-button--raised{color:#fff;background-color:#ff4081}.mdl-button.mdl-button--disabled.mdl-button--disabled,.mdl-button[disabled][disabled]{color:rgba(0,0,0,.26);cursor:default;background-color:transparent}.mdl-button--fab.mdl-button--disabled.mdl-button--disabled,.mdl-button--fab[disabled][disabled]{background-color:rgba(0,0,0,.12);color:rgba(0,0,0,.26)}.mdl-button--raised.mdl-button--disabled.mdl-button--disabled,.mdl-button--raised[disabled][disabled]{background-color:rgba(0,0,0,.12);color:rgba(0,0,0,.26);box-shadow:none}.mdl-button--colored.mdl-button--disabled.mdl-button--disabled,.mdl-button--colored[disabled][disabled]{color:rgba(0,0,0,.26)}.mdl-button .material-icons{vertical-align:middle}.mdl-progress{display:block;position:relative;height:4px;width:500px;max-width:100%}.mdl-progress>.bar{display:block;position:absolute;top:0;bottom:0;width:0;-webkit-transition:width .2s cubic-bezier(.4,0,.2,1);transition:width .2s cubic-bezier(.4,0,.2,1)}.mdl-progress>.progressbar{background-color:#3f51b5;z-index:1;left:0}.mdl-progress>.bufferbar{background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,.7)),to(hsla(0,0%,100%,.7))),-webkit-gradient(linear,left top,right top,from(#3f51b5),to(#3f51b5));background-image:-webkit-linear-gradient(left,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),-webkit-linear-gradient(left,#3f51b5,#3f51b5);background-image:linear-gradient(90deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),linear-gradient(90deg,#3f51b5,#3f51b5);z-index:0;left:0}.mdl-progress>.auxbar{right:0}@supports (-webkit-appearance:none){.mdl-progress:not(.mdl-progress--indeterminate):not(.mdl-progress--indeterminate)>.auxbar,.mdl-progress:not(.mdl-progress__indeterminate):not(.mdl-progress__indeterminate)>.auxbar{background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,.7)),to(hsla(0,0%,100%,.7))),-webkit-gradient(linear,left top,right top,from(#3f51b5),to(#3f51b5));background-image:-webkit-linear-gradient(left,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),-webkit-linear-gradient(left,#3f51b5,#3f51b5);background-image:linear-gradient(90deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),linear-gradient(90deg,#3f51b5,#3f51b5);-webkit-mask:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxzdmcgd2lkdGg9IjEyIiBoZWlnaHQ9IjQiIHZpZXdQb3J0PSIwIDAgMTIgNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxlbGxpcHNlIGN4PSIyIiBjeT0iMiIgcng9IjIiIHJ5PSIyIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4IiBmcm9tPSIyIiB0bz0iLTEwIiBkdXI9IjAuNnMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPgogIDwvZWxsaXBzZT4KICA8ZWxsaXBzZSBjeD0iMTQiIGN5PSIyIiByeD0iMiIgcnk9IjIiIGNsYXNzPSJsb2FkZXIiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giIGZyb209IjE0IiB0bz0iMiIgZHVyPSIwLjZzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz4KICA8L2VsbGlwc2U+Cjwvc3ZnPgo=");mask:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxzdmcgd2lkdGg9IjEyIiBoZWlnaHQ9IjQiIHZpZXdQb3J0PSIwIDAgMTIgNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxlbGxpcHNlIGN4PSIyIiBjeT0iMiIgcng9IjIiIHJ5PSIyIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4IiBmcm9tPSIyIiB0bz0iLTEwIiBkdXI9IjAuNnMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPgogIDwvZWxsaXBzZT4KICA8ZWxsaXBzZSBjeD0iMTQiIGN5PSIyIiByeD0iMiIgcnk9IjIiIGNsYXNzPSJsb2FkZXIiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giIGZyb209IjE0IiB0bz0iMiIgZHVyPSIwLjZzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz4KICA8L2VsbGlwc2U+Cjwvc3ZnPgo=")}}.mdl-progress:not(.mdl-progress--indeterminate)>.auxbar,.mdl-progress:not(.mdl-progress__indeterminate)>.auxbar{background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,.9)),to(hsla(0,0%,100%,.9))),-webkit-gradient(linear,left top,right top,from(#3f51b5),to(#3f51b5));background-image:-webkit-linear-gradient(left,hsla(0,0%,100%,.9),hsla(0,0%,100%,.9)),-webkit-linear-gradient(left,#3f51b5,#3f51b5);background-image:linear-gradient(90deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.9)),linear-gradient(90deg,#3f51b5,#3f51b5)}.mdl-progress.mdl-progress--indeterminate>.bar1,.mdl-progress.mdl-progress__indeterminate>.bar1{background-color:#3f51b5;-webkit-animation-name:indeterminate1;animation-name:indeterminate1;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.mdl-progress.mdl-progress--indeterminate>.bar3,.mdl-progress.mdl-progress__indeterminate>.bar3{background-image:none;background-color:#3f51b5;-webkit-animation-name:indeterminate2;animation-name:indeterminate2;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes indeterminate1{0%{left:0;width:0}50%{left:25%;width:75%}75%{left:100%;width:0}}@keyframes indeterminate1{0%{left:0;width:0}50%{left:25%;width:75%}75%{left:100%;width:0}}@-webkit-keyframes indeterminate2{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}to{left:100%;width:0}}@keyframes indeterminate2{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}to{left:100%;width:0}}body{margin:0}.firebase-container{background-color:#fff;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;color:rgba(0,0,0,.87);direction:ltr;font:16px Roboto,arial,sans-serif;margin:0 auto;max-width:360px;overflow:hidden;padding-top:8px;position:relative;width:100%}.firebase-progress-bar{height:5px;left:0;position:absolute;top:0;width:100%}.firebase-hidden-button{height:1px;visibility:hidden;width:1px}.firebase-container#app-verification-screen{top:100px}.firebase-title{color:rgba(0,0,0,.87);direction:ltr;font-size:24px;font-weight:500;line-height:24px;margin:0;padding:0;text-align:center}.firebase-middle-progress-bar{height:5px;margin-left:auto;margin-right:auto;top:20px;width:250px}.firebase-hidden{display:none}.firebase-rtl{direction:rtl;text-align:right}@media (max-width:520px){.firebase-container{box-shadow:none;max-width:none;width:100%}}'));0=== +a.length?a=Ic:(y(!A(a,"<"),"Forbidden '<' character in style sheet string: "+a),a=new Hc(a,Gc));var b=Da||(Da=new We),c=b.Qa;if(wb&&c.createStyleSheet)b=c.createStyleSheet(),Qp(b,a);else{c=Xe(b,"HEAD")[0];if(!c){var d=Xe(b,"BODY")[0];c=b.Zg("HEAD");d.parentNode.insertBefore(c,d)}d=b.Zg("STYLE");var e=Rc('style[nonce],link[rel="stylesheet"][nonce]');e&&d.setAttribute("nonce",e);Qp(d,a);b.appendChild(c,d)}};var Gq=function(){var a=xh();switch(E(F(a),"blank")?"blank":"verifyApp"===hq(F(a),"authType")?"verifyApp":Wi(a)?"dynamicLink":E(F(a),"firebaseError")?"error":hq(F(a),"apiKey")?"starter":"finisher"){case "blank":yh(null);return;case "dynamicLink":a=Wi(a);Dq(a);return;case "error":a=E(F(a),"firebaseError")||null;Fq(a);return;case "starter":Cq=new vq(a);break;case "finisher":Cq=new zq(a);break;case "verifyApp":Cq=new tq(a)}Eq();Cq.start()},Hq=["fireauth","oauthhelper","widget","initialize"],Iq=u; +Hq[0]in Iq||"undefined"==typeof Iq.execScript||Iq.execScript("var "+Hq[0]);for(var Jq;Hq.length&&(Jq=Hq.shift());)Hq.length||void 0===Gq?Iq=Iq[Jq]&&Iq[Jq]!==Object.prototype[Jq]?Iq[Jq]:Iq[Jq]={}:Iq[Jq]=Gq;}).call(this); diff --git a/special/master/scripts/firebase-auth/iframe.html b/special/master/scripts/firebase-auth/iframe.html new file mode 100644 index 000000000..f03b3e292 --- /dev/null +++ b/special/master/scripts/firebase-auth/iframe.html @@ -0,0 +1,17 @@ +--- +permalink: /__/auth/iframe.html +--- + + + + + + + + + + + + diff --git a/special/master/scripts/firebase-auth/iframe.js b/special/master/scripts/firebase-auth/iframe.js new file mode 100644 index 000000000..f9a1583d9 --- /dev/null +++ b/special/master/scripts/firebase-auth/iframe.js @@ -0,0 +1,577 @@ +--- +permalink: /__/auth/iframe.js +--- + +/*! @license Firebase v3.7.5 + Build: 3.7.5-rc.1 + Terms: https://firebase.google.com/terms/ */ +var firebase = null; (function() { var aa=function(a){var b=0;return function(){return b>>0)+"_",d=0,e=function(g){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(g||"")+"_"+d++,g)};return e}); +var fa=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");},ha=function(){for(var a=Number(this),b=[],c=a;c"});c=this.ia+": "+c+" ("+a+").";c=new U(a,c);for(var d in b)b.hasOwnProperty(d)&&"_"!==d.slice(-1)&&(c[d]=b[d]);return c};var ab=Za;function bb(a,b){a=new V(a,b);return a.subscribe.bind(a)}var V=function(a,b){var c=this;this.h=[];this.T=0;this.task=ab.resolve();this.A=!1;this.J=b;this.task.then(function(){a(c)}).catch(function(d){c.error(d)})};V.prototype.next=function(a){cb(this,function(b){b.next(a)})};V.prototype.error=function(a){cb(this,function(b){b.error(a)});this.close(a)};V.prototype.complete=function(){cb(this,function(a){a.complete()});this.close()}; +V.prototype.subscribe=function(a,b,c){var d=this;if(void 0===a&&void 0===b&&void 0===c)throw Error("Missing Observer.");var e=db(a)?a:{next:a,error:b,complete:c};void 0===e.next&&(e.next=eb);void 0===e.error&&(e.error=eb);void 0===e.complete&&(e.complete=eb);a=this.la.bind(this,this.h.length);this.A&&this.task.then(function(){try{d.P?e.error(d.P):e.complete()}catch(g){}});this.h.push(e);return a}; +V.prototype.la=function(a){void 0!==this.h&&void 0!==this.h[a]&&(delete this.h[a],--this.T,0===this.T&&void 0!==this.J&&this.J(this))};var cb=function(a,b){if(!a.A)for(var c=0;c>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e}); +ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=f}}); +ea("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});ea("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g>>1);var g=b.call(void 0,a[f],f,a);0/g,zb=/"/g,Ab=/'/g,Bb=/\x00/g,Cb=/[\x00&<>"']/,z=function(a,b){return-1!=a.indexOf(b)};var Eb=function(a,b){if(b!==Db)throw Error("SafeUrl is not meant to be built directly");this.mh=a};Eb.prototype.toString=function(){return this.mh.toString()};Eb.prototype.tc=!0;Eb.prototype.oc=function(){return this.mh.toString()};var Fb=function(a){if(a instanceof Eb&&a.constructor===Eb)return a.mh;Ia("expected object of type SafeUrl, got '"+a+"' of type "+va(a));return"type_error:SafeUrl"},Gb=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Hb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Ib; +try{new URL("s://g"),Ib=!0}catch(a){Ib=!1}var Jb=Ib,Lb=function(a){if(a instanceof Eb)return a;a="object"==typeof a&&a.tc?a.oc():String(a);a:{var b=a;if(Jb){try{var c=new URL(b)}catch(d){b="https:";break a}b=c.protocol}else b:{c=document.createElement("a");try{c.href=b}catch(d){b=void 0;break b}b=c.protocol;b=":"===b||""===b?"https:":b}}w("javascript:"!==b,"%s is a javascript: URL",a)||(a="about:invalid#zClosurez");return Kb(a)},Db={},Kb=function(a){return new Eb(a,Db)},Mb=Kb("about:invalid#zClosurez"); +Kb("about:blank");var Nb={},Ob=function(){if(Nb!==Nb)throw Error("SafeStyle is not meant to be built directly");this.xj="";this.tc=!0};Ob.prototype.oc=function(){return this.xj};Ob.prototype.toString=function(){return this.xj.toString()};new Ob;var Pb={},Qb=function(){if(Pb!==Pb)throw Error("SafeStyleSheet is not meant to be built directly");this.wj="";this.tc=!0};Qb.prototype.toString=function(){return this.wj.toString()};Qb.prototype.oc=function(){return this.wj};new Qb;function Rb(){var a=p.navigator;return a&&(a=a.userAgent)?a:""}var Sb,Tb=p.navigator;Sb=Tb?Tb.userAgentData||null:null;function Ub(a){return db?Sb?Sb.brands.some(function(b){return(b=b.brand)&&z(b,a)}):!1:!1}function A(a){return z(Rb(),a)};function Vb(){return db?!!Sb&&0=(a?lc(pc(qc(),null)):cc).value){b=b||cc;a=pc(qc(),null);"function"===typeof c&&(c=c());ic||(ic=new hc);var d=ic;if(0"}else c=void 0===a?"undefined":null===a?"null":typeof a;Ia("Argument is not an HTML Element with tag name "+(b+c))}};function Rc(){return A("iPhone")&&!A("iPod")&&!A("iPad")};var Sc=function(a){Sc[" "](a);return a};Sc[" "]=function(){};var Tc=Vb()?!1:A("Opera"),Uc=Wb(),Vc=A("Edge"),Wc=Vc||Uc,Xc=A("Gecko")&&!(z(Rb().toLowerCase(),"webkit")&&!A("Edge"))&&!(A("Trident")||A("MSIE"))&&!A("Edge"),Yc=z(Rb().toLowerCase(),"webkit")&&!A("Edge"),Zc=Yc&&A("Mobile"),$c=function(){var a=p.document;return a?a.documentMode:void 0},ad; +a:{var bd="",cd=function(){var a=Rb();if(Xc)return/rv:([^\);]+)(\)|;)/.exec(a);if(Vc)return/Edge\/([\d\.]+)/.exec(a);if(Uc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Yc)return/WebKit\/(\S+)/.exec(a);if(Tc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();cd&&(bd=cd?cd[1]:"");if(Uc){var dd=$c();if(null!=dd&&dd>parseFloat(bd)){ad=String(dd);break a}}ad=bd}var ed=ad,fd;if(p.document&&Uc){var gd=$c();fd=gd?gd:parseInt(ed,10)||void 0}else fd=void 0;var hd=fd;try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){};var id=function(){},jd=function(a){return"function"===typeof a};var ld=function(a,b){Qc(a,"SCRIPT");a:{var c=(a.ownerDocument&&a.ownerDocument.defaultView||p).document;if(c.querySelector&&(c=c.querySelector("script[nonce]"))&&(c=c.nonce||c.getAttribute("nonce"))&&kd.test(c))break a;c=""}c&&a.setAttribute("nonce",c);a.src=rb(b)},md=function(a,b,c,d){a=a instanceof Eb?a:Lb(a);b=b||p;c=c instanceof nb?ob(c):c||"";return void 0!==d?b.open(Fb(a),c,d):b.open(Fb(a),c)},kd=/^[\w+/_-]+[=]{0,2}$/;var nd=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1/g,Jd=/"/g,Kd=/'/g,Ld=function(a){return String(a).replace(Gd,"&").replace(Hd,"<").replace(Id,">").replace(Jd,""").replace(Kd,"'")},Md=function(){var a;if((a=Object.create)&&Ad.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a},Ed=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},Nd=function(a,b){a=a||{};for(var c in a)Ed(a,c)&&(b[c]=a[c])},D=function(a,b){if(!a)throw Error(b||"");},Od=Bd(C,"gapi",{});function Pd(a,b,c,d){b=Ic(b);return void 0!==b?a.open(b,c,d):null};var Qd=function(a,b,c){var d=new RegExp("([#].*&|[#])"+b+"=([^&#]*)","g");b=new RegExp("([?#].*&|[?#])"+b+"=([^&#]*)","g");if(a=a&&(d.exec(a)||b.exec(a)))try{c=decodeURIComponent(a[2])}catch(e){}return c},Rd=new RegExp(/^/.source+/([a-zA-Z][-+.a-zA-Z0-9]*:)?/.source+/(\/\/[^\/?#]*)?/.source+/([^?#]*)?/.source+/(\?([^#]*))?/.source+/(#((#|[^#])*))?/.source+/$/.source),Sd=/[\ud800-\udbff][\udc00-\udfff]|[^!-~]/g,Td=new RegExp(/(%([^0-9a-fA-F%]|[0-9a-fA-F]([^0-9a-fA-F%])?)?)*/.source+/%($|[^0-9a-fA-F]|[0-9a-fA-F]($|[^0-9a-fA-F]))/.source, +"g"),Ud=/%([a-f]|[0-9a-fA-F][a-f])/g,Vd=/^(https?|ftp|file|chrome-extension):$/i,Wd=function(a){a=String(a);a=a.replace(Sd,function(e){try{return encodeURIComponent(e)}catch(f){return encodeURIComponent(e.replace(/^[^%]+$/g,"\ufffd"))}}).replace(Td,function(e){return e.replace(/%/g,"%25")}).replace(Ud,function(e){return e.toUpperCase()});a=a.match(Rd)||[];var b=Md(),c=function(e){return e.replace(/\\/g,"%5C").replace(/\^/g,"%5E").replace(/`/g,"%60").replace(/\{/g,"%7B").replace(/\|/g,"%7C").replace(/\}/g, +"%7D")},d=!!(a[1]||"").match(Vd);b.Sd=c((a[1]||"")+(a[2]||"")+(a[3]||(a[2]&&d?"/":"")));d=function(e){return c(e.replace(/\?/g,"%3F").replace(/#/g,"%23"))};b.query=a[5]?[d(a[5])]:[];b.Rb=a[7]?[d(a[7])]:[];return b},Xd=function(a){return a.Sd+(01/a&&(a="-0"),b[b.length]=String(a);else if(e===se)b[b.length]=String(!!Number(a));else{if(e===qe)return we(a.toISOString.call(a),c);if(e===ve&&oe(a.length)===pe){b[b.length]="[";var f=0;for(d=Number(a.length)>>0;f>0;f=e?"\\u"+(e+65536).toString(16).substr(1):32<=e&&65535>=e?d:"\ufffd";b[b.length]='"'}else if("object"===d){b[b.length]="{";d=0;for(f in a)Object.prototype.hasOwnProperty.call(a, +f)&&(e=we(a[f],c),void 0!==e&&(d++&&(b[b.length]=","),b[b.length]=we(f),b[b.length]=":",b[b.length]=e));b[b.length]="}"}else return}return b.join("")}},xe=/[\0-\x07\x0b\x0e-\x1f]/,ye=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*[\0-\x1f]/,ze=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*\\[^\\\/"bfnrtu]/,Ae=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*\\u([0-9a-fA-F]{0,3}[^0-9a-fA-F])/,Be=/"([^\0-\x1f\\"]|\\[\\\/"bfnrt]|\\u[0-9a-fA-F]{4})*"/g,Ce=/-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][-+]?[0-9]+)?/g,De=/[ \t\n\r]+/g, +Ee=/[^"]:/,Fe=/""/g,Ge=/true|false|null/g,He=/00/,Ie=/[\{]([^0\}]|0[^:])/,Je=/(^|\[)[,:]|[,:](\]|\}|[,:]|$)/,Ke=/[^\[,:][\[\{]/,Le=/^(\{|\}|\[|\]|,|:|0)+/,Me=/\u2028/g,Ne=/\u2029/g,Oe=function(a){a=String(a);if(xe.test(a)||ye.test(a)||ze.test(a)||Ae.test(a))return!1;var b=a.replace(Be,'""');b=b.replace(Ce,"0");b=b.replace(De,"");if(Ee.test(b))return!1;b=b.replace(Fe,"0");b=b.replace(Ge,"0");if(He.test(b)||Ie.test(b)||Je.test(b)||Ke.test(b)||!b||(b=b.replace(Le,"")))return!1;a=a.replace(Me,"\\u2028").replace(Ne, +"\\u2029");b=void 0;try{b=me?[ne(a)]:eval("(function (var_args) {\n return Array.prototype.slice.call(arguments, 0);\n})(\n"+a+"\n)")}catch(c){return!1}return b&&1===b.length?b[0]:!1},Pe=function(){var a=((p.document||{}).scripts||[]).length;if((void 0===ke||void 0===me||le!==a)&&-1!==le){ke=me=!1;le=-1;try{try{me=!!p.JSON&&'{"a":[3,true,"1970-01-01T00:00:00.000Z"]}'===p.JSON.stringify.call(p.JSON,{a:[3,!0,new Date(0)],c:function(){}})&&!0===ne("true")&&3===ne('[{"a":3}]')[0].a}catch(b){}ke=me&& +!ne("[00]")&&!ne('"\u0007"')&&!ne('"\\0"')&&!ne('"\\v"')}finally{le=a}}},Qe=function(a){if(-1===le)return!1;Pe();return(ke?ne:Oe)(a)},Re=function(a){if(-1!==le)return Pe(),me?p.JSON.stringify.call(p.JSON,a):we(a)},Se=!Date.prototype.toISOString||"function"!==typeof Date.prototype.toISOString||"1970-01-01T00:00:00.000Z"!==(new Date(0)).toISOString(),Te=function(){var a=Date.prototype.getUTCFullYear.call(this);return[0>a?"-"+String(1E6-a).substr(1):9999>=a?String(1E4+a).substr(1):"+"+String(1E6+a).substr(1), +"-",String(101+Date.prototype.getUTCMonth.call(this)).substr(1),"-",String(100+Date.prototype.getUTCDate.call(this)).substr(1),"T",String(100+Date.prototype.getUTCHours.call(this)).substr(1),":",String(100+Date.prototype.getUTCMinutes.call(this)).substr(1),":",String(100+Date.prototype.getUTCSeconds.call(this)).substr(1),".",String(1E3+Date.prototype.getUTCMilliseconds.call(this)).substr(1),"Z"].join("")};Date.prototype.toISOString=Se?Te:Date.prototype.toISOString;var Ue=function(){this.blockSize=-1};var Ve=function(){this.blockSize=-1;this.blockSize=64;this.va=[];this.og=[];this.jk=[];this.Cf=[];this.Cf[0]=128;for(var a=1;ae;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.va[0];c=a.va[1];var g=a.va[2],h=a.va[3],l=a.va[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=h^c&(g^h);var m=1518500249}else f=c^g^h,m=1859775393;else 60>e?(f=c&g|h&(c|g), +m=2400959708):(f=c^g^h,m=3395469782);f=(b<<5|b>>>27)+f+l+m+d[e]&4294967295;l=h;h=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.va[0]=a.va[0]+b&4294967295;a.va[1]=a.va[1]+c&4294967295;a.va[2]=a.va[2]+g&4294967295;a.va[3]=a.va[3]+h&4294967295;a.va[4]=a.va[4]+l&4294967295}; +Ve.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.og,f=this.ud;dthis.ud?this.update(this.Cf,56-this.ud):this.update(this.Cf,this.blockSize-(this.ud-56));for(var c=this.blockSize-1;56<=c;c--)this.og[c]=b&255,b/=256;We(this,this.og);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.va[c]>>d&255,++b;return a};var Xe=function(){this.Ih=new Ve};k=Xe.prototype;k.reset=function(){this.Ih.reset()};k.updateByteArray=function(a){this.Ih.update(a)};k.digestByteArray=function(){return this.Ih.digest()};k.updateString=function(a){a=unescape(encodeURIComponent(a));for(var b=[],c=0,d=a.length;c++c);D(5>c,"Error creating iframe id");return d},pf=function(a,b){return a?b+"/"+a:""},qf=function(a,b,c,d){var e={},f={};a.documentMode&&9>a.documentMode&&(e.hostiemode=a.documentMode);Nd(d.queryParams|| +{},e);Nd(d.fragmentParams||{},f);var g=d.pfname;var h=Md();Ca("iframes/dropLegacyIdParam")||(h.id=c);h._gfid=c;h.parent=a.location.protocol+"//"+a.location.host;c=Qd(a.location.href,"parent");g=g||"";!g&&c&&(g=Qd(a.location.href,"_gfid","")||Qd(a.location.href,"id",""),g=pf(g,Qd(a.location.href,"pfname","")));g||(c=Qe(Qd(a.location.href,"jcp","")))&&"object"==typeof c&&(g=pf(c.id,c.pfname));h.pfname=g;d.connectWithJsonParam&&(g={},g.jcp=Re(h),h=g);g=Qd(b,"rpctoken")||e.rpctoken||f.rpctoken;if(!g){if(!(g= +d.rpctoken)){g=String;c=Math;var l=c.round;if(Ze){var m=new C.Uint32Array(1);Ye.getRandomValues(m);m=Number("0."+m[0])}else m=bf,m+=parseInt(df.substr(0,20),16),df=ff(df),m/=cf+Math.pow(16,20);g=g(l.call(c,1E8*m))}h.rpctoken=g}d.rpctoken=g;Nd(h,d.connectWithQueryParams?e:f);h=a.location.href;a=Md();(g=Qd(h,"_bsh",je.bsh))&&(a._bsh=g);(h=je.dpo?je.h:Qd(h,"jsh",je.h))&&(a.jsh=h);d.hintInFragment?Nd(a,f):Nd(a,e);d=d.paramsSerializer;b=Wd(b);b.query.push.apply(b.query,Yd(e,d));b.Rb.push.apply(b.Rb,Yd(f, +d));return Xd(b)},rf=function(a){D(!a||ae.test(a),"Illegal url for new iframe - "+a)},sf=function(a,b,c,d,e){rf(c.src);var f,g=hf(d,c),h=g?jf(d):"";try{document.all&&(f=a.createElement('