Files
monkeygg2.github.io/games/sandspiel/1.ff6acf5ba628effc9c16.js
T
2023-08-25 13:31:04 +05:30

806 lines
810 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[,,function(e,t,n){"use strict";e.exports=n(31)},,function(e,t,n){"use strict";n.d(t,"a",function(){return f}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return h});var i=n(17),r=n(2),o=n.n(r),a=n(12),s=n(22),u=(n(9),n(10)),l=n(18),c=n(11),f=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).history=Object(s.a)(t.props),t}return Object(i.a)(t,e),t.prototype.render=function(){return o.a.createElement(a.b,{history:this.history,children:this.props.children})},t}(o.a.Component);o.a.Component;var d=function(e){function t(){return e.apply(this,arguments)||this}Object(i.a)(t,e);var n=t.prototype;return n.handleClick=function(e,t){(this.props.onClick&&this.props.onClick(e),e.defaultPrevented||0!==e.button||this.props.target&&"_self"!==this.props.target||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))||(e.preventDefault(),(this.props.replace?t.replace:t.push)(this.props.to))},n.render=function(){var e=this,t=this.props,n=t.innerRef,i=(t.replace,t.to),r=Object(l.a)(t,["innerRef","replace","to"]);return o.a.createElement(a.c.Consumer,null,function(t){t||Object(c.a)(!1);var a="string"==typeof i?Object(s.c)(i,null,null,t.location):i,l=a?t.history.createHref(a):"";return o.a.createElement("a",Object(u.a)({},r,{onClick:function(n){return e.handleClick(n,t.history)},href:l,ref:n}))})},t}(o.a.Component);function h(e){var t=e["aria-current"],n=void 0===t?"page":t,i=e.activeClassName,r=void 0===i?"active":i,s=e.activeStyle,c=e.className,f=e.exact,h=e.isActive,p=e.location,m=e.strict,b=e.style,g=e.to,v=Object(l.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to"]),y="object"==typeof g?g.pathname:g,w=y&&y.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1");return o.a.createElement(a.a,{path:w,exact:f,strict:m,location:p,children:function(e){var t=e.location,i=e.match,a=!!(h?h(i,t):i),l=a?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e}).join(" ")}(c,r):c,f=a?Object(u.a)({},b,s):b;return o.a.createElement(d,Object(u.a)({"aria-current":a&&n||null,className:l,style:f,to:g},v))}})}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(7),o=n(23),a=n(24),s=((i={})["no-app"]="No Firebase App '{$name}' has been created - call Firebase App.initializeApp()",i["bad-app-name"]="Illegal App name: '{$name}",i["duplicate-app"]="Firebase App named '{$name}' already exists",i["app-deleted"]="Firebase App named '{$name}' already deleted",i["duplicate-service"]="Firebase service named '{$name}' already registered",i["invalid-app-argument"]="firebase.{$name}() takes either no argument or a Firebase App instance.",i),u=new o.ErrorFactory("app","Firebase",s),l="[DEFAULT]",c=[],f=function(){function e(e,t,n){this.firebase_=n,this.isDeleted_=!1,this.services_={},this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=o.deepCopy(e),this.INTERNAL={getUid:function(){return null},getToken:function(){return Promise.resolve(null)},addAuthTokenListener:function(e){c.push(e),setTimeout(function(){return e(null)},0)},removeAuthTokenListener:function(e){c=c.filter(function(t){return t!==e})}}}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise(function(t){e.checkDestroyed_(),t()}).then(function(){e.firebase_.INTERNAL.removeApp(e.name_);for(var t=[],n=0,i=Object.keys(e.services_);n<i.length;n++)for(var r=i[n],o=0,a=Object.keys(e.services_[r]);o<a.length;o++){var s=a[o];t.push(e.services_[r][s])}return Promise.all(t.filter(function(e){return"INTERNAL"in e}).map(function(e){return e.INTERNAL.delete()}))}).then(function(){e.isDeleted_=!0,e.services_={}})},e.prototype._getService=function(e,t){if(void 0===t&&(t=l),this.checkDestroyed_(),this.services_[e]||(this.services_[e]={}),!this.services_[e][t]){var n=t!==l?t:void 0,i=this.firebase_.INTERNAL.factories[e](this,this.extendApp.bind(this),n);this.services_[e][t]=i}return this.services_[e][t]},e.prototype.extendApp=function(e){var t=this;o.deepExtend(this,e),e.INTERNAL&&e.INTERNAL.addAuthTokenListener&&(c.forEach(function(e){t.INTERNAL.addAuthTokenListener(e)}),c=[])},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw u.create("app-deleted",{name:this.name_})},e}();f.prototype.name&&f.prototype.options||f.prototype.delete||console.log("dc");var d="6.2.0";
/**
* @license
* Copyright 2019 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var h=new a.Logger("@firebase/app");if(o.isBrowser()&&"firebase"in self){h.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var p=self.firebase.SDK_VERSION;p&&p.indexOf("LITE")>=0&&h.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var m=
/**
* @license
* Copyright 2019 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
function e(){var t=function(e){var t={},n={},i={},r={__esModule:!0,initializeApp:function(n,i){if(void 0===i&&(i={}),"object"!=typeof i||null===i){var a=i;i={name:a}}var s=i;void 0===s.name&&(s.name=l);var f=s.name;if("string"!=typeof f||!f)throw u.create("bad-app-name",{name:String(f)});if(o.contains(t,f))throw u.create("duplicate-app",{name:f});var d=new e(n,s,r);return t[f]=d,c(d,"create"),d},app:a,apps:null,SDK_VERSION:d,INTERNAL:{registerService:function(t,l,c,f,d){if(void 0===d&&(d=!1),n[t])throw u.create("duplicate-service",{name:t});function h(e){if(void 0===e&&(e=a()),"function"!=typeof e[t])throw u.create("invalid-app-argument",{name:t});return e[t]()}return n[t]=l,f&&(i[t]=f,s().forEach(function(e){f("create",e)})),void 0!==c&&o.deepExtend(h,c),r[t]=h,e.prototype[t]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this._getService.bind(this,t).apply(this,d?e:[])},h},removeApp:function(e){c(t[e],"delete"),delete t[e]},factories:n,useAsService:f}};function a(e){if(e=e||l,!o.contains(t,e))throw u.create("no-app",{name:e});return t[e]}function s(){return Object.keys(t).map(function(e){return t[e]})}function c(e,t){for(var r=0,o=Object.keys(n);r<o.length;r++){var a=f(0,o[r]);if(null===a)return;i[a]&&i[a](t,e)}}function f(e,t){return"serverAuth"===t?null:t}return r.default=r,Object.defineProperty(r,"apps",{get:s}),a.App=e,r}(f);return t.INTERNAL=r.__assign({},t.INTERNAL,{createFirebaseNamespace:e,extendNamespace:function(e){o.deepExtend(t,e)},createSubscribe:o.createSubscribe,ErrorFactory:o.ErrorFactory,deepExtend:o.deepExtend}),t}(),b=m.initializeApp;m.initializeApp=function(){return o.isNode()&&h.warn('\n Warning: This is a browser-targeted Firebase bundle but it appears it is being\n run in a Node environment. If running in a Node environment, make sure you\n are using the bundle specified by the "main" field in package.json.\n \n If you are using Webpack, you can specify "main" as the first item in\n "resolve.mainFields":\n https://webpack.js.org/configuration/resolve/#resolvemainfields\n \n If using Rollup, use the rollup-plugin-node-resolve plugin and set "module"\n to false and "main" to true:\n https://github.com/rollup/rollup-plugin-node-resolve\n '),b.apply(void 0,arguments)};var g=m;t.default=g,t.firebase=g},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return r}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return s}),n.d(t,"__param",function(){return u}),n.d(t,"__metadata",function(){return l}),n.d(t,"__awaiter",function(){return c}),n.d(t,"__generator",function(){return f}),n.d(t,"__exportStar",function(){return d}),n.d(t,"__values",function(){return h}),n.d(t,"__read",function(){return p}),n.d(t,"__spread",function(){return m}),n.d(t,"__await",function(){return b}),n.d(t,"__asyncGenerator",function(){return g}),n.d(t,"__asyncDelegator",function(){return v}),n.d(t,"__asyncValues",function(){return y}),n.d(t,"__makeTemplateObject",function(){return w}),n.d(t,"__importStar",function(){return _}),n.d(t,"__importDefault",function(){return x});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,i){t(n,i,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,s)}u((i=i.apply(e,t||[])).next())})}function f(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function d(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function h(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){r[e]&&(i[e]=function(t){return new Promise(function(n,i){o.push([e,t,n,i])>1||s(e,t)})})}function s(e,t){try{(n=r[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(e){c(o[0][3],e)}var n}function u(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function v(e){var t,n;return t={},i("next"),i("throw",function(e){throw e}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:b(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function y(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise(function(i,r){(function(e,t,n,i){Promise.resolve(i).then(function(t){e({value:t,done:n})},t)})(i,r,(t=e[n](t)).done,t.value)})}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}},,function(e,t,n){e.exports=n(32)()},function(e,t,n){"use strict";function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";var i=!0,r="Invariant failed";t.a=function(e,t){if(!e)throw i?new Error(r):new Error(r+": "+(t||""))}},function(e,t,n){"use strict";n.d(t,"a",function(){return x}),n.d(t,"b",function(){return g}),n.d(t,"d",function(){return A}),n.d(t,"c",function(){return b});var i=n(34),r=n.n(i),o=n(17),a=n(2),s=n.n(a),u=(n(9),n(22)),l=n(11),c=n(39),f=n.n(c),d=n(10),h=(n(19),n(18)),p=n(42),m=n.n(p),b=function(e){var t=r()();return t.Provider.displayName=e+".Provider",t.Consumer.displayName=e+".Consumer",t}("Router"),g=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e})),n}Object(o.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return s.a.createElement(b.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(s.a.Component);s.a.Component;s.a.Component;var v={},y=1e4,w=0;function _(e,t){void 0===t&&(t={}),"string"==typeof t&&(t={path:t});var n=t,i=n.path,r=n.exact,o=void 0!==r&&r,a=n.strict,s=void 0!==a&&a,u=n.sensitive,l=void 0!==u&&u;return[].concat(i).reduce(function(t,n){if(t)return t;var i=function(e,t){var n=""+t.end+t.strict+t.sensitive,i=v[n]||(v[n]={});if(i[e])return i[e];var r=[],o={regexp:f()(e,r,t),keys:r};return w<y&&(i[e]=o,w++),o}(n,{end:o,strict:s,sensitive:l}),r=i.regexp,a=i.keys,u=r.exec(e);if(!u)return null;var c=u[0],d=u.slice(1),h=e===c;return o&&!h?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:h,params:a.reduce(function(e,t,n){return e[t.name]=d[n],e},{})}},null)}var x=function(e){function t(){return e.apply(this,arguments)||this}return Object(o.a)(t,e),t.prototype.render=function(){var e=this;return s.a.createElement(b.Consumer,null,function(t){t||Object(l.a)(!1);var n=e.props.location||t.location,i=e.props.computedMatch?e.props.computedMatch:e.props.path?_(n.pathname,e.props):t.match,r=Object(d.a)({},t,{location:n,match:i}),o=e.props,a=o.children,u=o.component,c=o.render;(Array.isArray(a)&&0===a.length&&(a=null),"function"==typeof a)&&(void 0===(a=a(r))&&(a=null));return s.a.createElement(b.Provider,{value:r},a&&!function(e){return 0===s.a.Children.count(e)}(a)?a:r.match?u?s.a.createElement(u,r):c?c(r):null:null)})},t}(s.a.Component);function k(e){return"/"===e.charAt(0)?e:"/"+e}function E(e,t){if(!e)return t;var n=k(e);return 0!==t.pathname.indexOf(n)?t:Object(d.a)({},t,{pathname:t.pathname.substr(n.length)})}function S(e){return"string"==typeof e?e:Object(u.e)(e)}function T(e){return function(){Object(l.a)(!1)}}function C(){}s.a.Component;s.a.Component;function A(e){var t=function(t){var n=t.wrappedComponentRef,i=Object(h.a)(t,["wrappedComponentRef"]);return s.a.createElement(x,{children:function(t){return s.a.createElement(e,Object(d.a)({},i,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,m()(t,e)}},,function(e,t,n){"use strict";var i,r=(i=n(6))&&"object"==typeof i&&"default"in i?i.default:i;
/**
* @license
* Copyright 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/e.exports=r},function(e,t,n){"use strict";n.r(t);n(25);
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))r.call(n,l)&&(s[l]=n[l]);if(i){a=i(n);for(var c=0;c<a.length;c++)o.call(n,a[c])&&(s[a[c]]=n[a[c]])}}return s}},function(e,t,n){"use strict";function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function i(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";e.exports=n(41)},function(e,t,n){var i,r;i="undefined"!=typeof window?window:this,r=function(){function e(e){return e instanceof Date?e:isNaN(e)?/^\d+$/.test(e)?new Date(t(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),new Date(e)):new Date(t(e))}function t(e){return parseInt(e)}function n(e,n,i){n=c[n]?n:c[i]?i:"en";for(var r=0,o=e<0?1:0,a=e=Math.abs(e);e>=f[r]&&r<d;r++)e/=f[r];return(e=t(e))>(0===(r*=2)?9:1)&&(r+=1),c[n](e,r,a)[o].replace("%s",e)}function i(t,n){return((n=n?e(n):new Date)-e(t))/1e3}function r(e){return o(e,"data-timeago")||o(e,"datetime")}function o(e,t){return e.getAttribute?e.getAttribute(t):e.attr?e.attr(t):void 0}function a(e,t){this.nowDate=e,this.defaultLocale=t||"en"}function s(e,t){return new a(e,t)}var u="second_minute_hour_day_week_month_year".split("_"),l="秒_分钟_小时_天_周_月_年".split("_"),c={en:function(e,t){if(0===t)return["just now","right now"];var n=u[parseInt(t/2)];return e>1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]},zh_CN:function(e,t){if(0===t)return["刚刚","片刻后"];var n=l[parseInt(t/2)];return[e+n+"前",e+n+"后"]}},f=[60,60,24,7,365/7/12,12],d=6,h="data-tid",p={};return a.prototype.doRender=function(e,t,r){var o,a=i(t,this.nowDate),s=this;e.innerHTML=n(a,r,this.defaultLocale),p[o=setTimeout(function(){s.doRender(e,t,r),delete p[o]},Math.min(1e3*function(e){for(var t=1,n=0,i=Math.abs(e);e>=f[n]&&n<d;n++)e/=f[n],t*=f[n];return i=(i%=t)?t-i:t,Math.ceil(i)}(a),2147483647))]=0,function(e,t){e.setAttribute?e.setAttribute(h,t):e.attr&&e.attr(h,t)}(e,o)},a.prototype.format=function(e,t){return n(i(e,this.nowDate),t,this.defaultLocale)},a.prototype.render=function(e,t){void 0===e.length&&(e=[e]);for(var n=0,i=e.length;n<i;n++)this.doRender(e[n],r(e[n]),t)},a.prototype.setLocale=function(e){this.defaultLocale=e},s.register=function(e,t){c[e]=t},s.cancel=function(e){var t;if(e)(t=o(e,h))&&(clearTimeout(t),delete p[t]);else{for(t in p)clearTimeout(t);p={}}},s},e.exports?(e.exports=r(),e.exports.default=e.exports):i.timeago=r()},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){"use strict";var i=n(10);function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,i=n+1,r=e.length;i<r;n+=1,i+=1)e[n]=e[i];e.pop()}var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&r(e),s=t&&r(t),u=a||s;if(e&&r(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var l=void 0;if(i.length){var c=i[i.length-1];l="."===c||".."===c||""===c}else l=!1;for(var f=0,d=i.length;d>=0;d--){var h=i[d];"."===h?o(i,d):".."===h?(o(i,d),f++):f&&(o(i,d),f--)}if(!u)for(;f--;f)i.unshift("..");!u||""===i[0]||i[0]&&r(i[0])||i.unshift("");var p=i.join("/");return l&&"/"!==p.substr(-1)&&(p+="/"),p},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,i){return e(t,n[i])});var i=void 0===t?"undefined":s(t);if(i!==(void 0===n?"undefined":s(n)))return!1;if("object"===i){var r=t.valueOf(),o=n.valueOf();if(r!==t||o!==n)return e(r,o);var a=Object.keys(t),u=Object.keys(n);return a.length===u.length&&a.every(function(i){return e(t[i],n[i])})}return!1},l=n(11);function c(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)}(e,t)?e.substr(t.length):e}function h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,i=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}function m(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",i="",r=t.indexOf("#");-1!==r&&(i=t.substr(r),t=t.substr(0,r));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===i?"":i}}(e)).state=t:(void 0===(o=Object(i.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function b(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function g(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,i,r){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof i?i(o,r):r(!0):r(!1!==o)}else r(!0)},appendListener:function(e){var n=!0;function i(){n&&e.apply(void 0,arguments)}return t.push(i),function(){n=!1,t=t.filter(function(e){return e!==i})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.forEach(function(e){return e.apply(void 0,n)})}}}n.d(t,"a",function(){return k}),n.d(t,"b",function(){return A}),n.d(t,"d",function(){return O}),n.d(t,"c",function(){return m}),n.d(t,"f",function(){return b}),n.d(t,"e",function(){return p});var v=!("undefined"==typeof window||!window.document||!window.document.createElement);function y(e,t){t(window.confirm(e))}var w="popstate",_="hashchange";function x(){try{return window.history.state||{}}catch(e){return{}}}function k(e){void 0===e&&(e={}),v||Object(l.a)(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,s=a.forceRefresh,u=void 0!==s&&s,f=a.getUserConfirmation,b=void 0===f?y:f,k=a.keyLength,E=void 0===k?6:k,S=e.basename?h(c(e.basename)):"";function T(e){var t=e||{},n=t.key,i=t.state,r=window.location,o=r.pathname+r.search+r.hash;return S&&(o=d(o,S)),m(o,i,n)}function C(){return Math.random().toString(36).substr(2,E)}var A=g();function I(e){Object(i.a)(z,e),z.length=n.length,A.notifyListeners(z.location,z.action)}function O(e){(function(e){void 0===e.state&&navigator.userAgent.indexOf("CriOS")})(e)||R(T(e.state))}function N(){R(T(x()))}var P=!1;function R(e){if(P)P=!1,I();else{A.confirmTransitionTo(e,"POP",b,function(t){t?I({action:"POP",location:e}):function(e){var t=z.location,n=L.indexOf(t.key);-1===n&&(n=0);var i=L.indexOf(e.key);-1===i&&(i=0);var r=n-i;r&&(P=!0,j(r))}(e)})}}var D=T(x()),L=[D.key];function M(e){return S+p(e)}function j(e){n.go(e)}var U=0;function F(e){1===(U+=e)&&1===e?(window.addEventListener(w,O),o&&window.addEventListener(_,N)):0===U&&(window.removeEventListener(w,O),o&&window.removeEventListener(_,N))}var B=!1;var z={length:n.length,action:"POP",location:D,createHref:M,push:function(e,t){var i=m(e,t,C(),z.location);A.confirmTransitionTo(i,"PUSH",b,function(e){if(e){var t=M(i),o=i.key,a=i.state;if(r)if(n.pushState({key:o,state:a},null,t),u)window.location.href=t;else{var s=L.indexOf(z.location.key),l=L.slice(0,-1===s?0:s+1);l.push(i.key),L=l,I({action:"PUSH",location:i})}else window.location.href=t}})},replace:function(e,t){var i=m(e,t,C(),z.location);A.confirmTransitionTo(i,"REPLACE",b,function(e){if(e){var t=M(i),o=i.key,a=i.state;if(r)if(n.replaceState({key:o,state:a},null,t),u)window.location.replace(t);else{var s=L.indexOf(z.location.key);-1!==s&&(L[s]=i.key),I({action:"REPLACE",location:i})}else window.location.replace(t)}})},go:j,goBack:function(){j(-1)},goForward:function(){j(1)},block:function(e){void 0===e&&(e=!1);var t=A.setPrompt(e);return B||(F(1),B=!0),function(){return B&&(B=!1,F(-1)),t()}},listen:function(e){var t=A.appendListener(e);return F(1),function(){F(-1),t()}}};return z}var E="hashchange",S={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+f(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:f,decodePath:c},slash:{encodePath:c,decodePath:c}};function T(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function C(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)}function A(e){void 0===e&&(e={}),v||Object(l.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?y:r,a=n.hashType,s=void 0===a?"slash":a,u=e.basename?h(c(e.basename)):"",f=S[s],w=f.encodePath,_=f.decodePath;function x(){var e=_(T());return u&&(e=d(e,u)),m(e)}var k=g();function A(e){Object(i.a)(B,e),B.length=t.length,k.notifyListeners(B.location,B.action)}var I=!1,O=null;function N(){var e=T(),t=w(e);if(e!==t)C(t);else{var n=x(),i=B.location;if(!I&&b(i,n))return;if(O===p(n))return;O=null,function(e){if(I)I=!1,A();else{k.confirmTransitionTo(e,"POP",o,function(t){t?A({action:"POP",location:e}):function(e){var t=B.location,n=L.lastIndexOf(p(t));-1===n&&(n=0);var i=L.lastIndexOf(p(e));-1===i&&(i=0);var r=n-i;r&&(I=!0,M(r))}(e)})}}(n)}}var P=T(),R=w(P);P!==R&&C(R);var D=x(),L=[p(D)];function M(e){t.go(e)}var j=0;function U(e){1===(j+=e)&&1===e?window.addEventListener(E,N):0===j&&window.removeEventListener(E,N)}var F=!1;var B={length:t.length,action:"POP",location:D,createHref:function(e){return"#"+w(u+p(e))},push:function(e,t){var n=m(e,void 0,void 0,B.location);k.confirmTransitionTo(n,"PUSH",o,function(e){if(e){var t=p(n),i=w(u+t);if(T()!==i){O=t,function(e){window.location.hash=e}(i);var r=L.lastIndexOf(p(B.location)),o=L.slice(0,-1===r?0:r+1);o.push(t),L=o,A({action:"PUSH",location:n})}else A()}})},replace:function(e,t){var n=m(e,void 0,void 0,B.location);k.confirmTransitionTo(n,"REPLACE",o,function(e){if(e){var t=p(n),i=w(u+t);T()!==i&&(O=t,C(i));var r=L.indexOf(p(B.location));-1!==r&&(L[r]=t),A({action:"REPLACE",location:n})}})},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return F||(U(1),F=!0),function(){return F&&(F=!1,U(-1)),t()}},listen:function(e){var t=k.appendListener(e);return U(1),function(){U(-1),t()}}};return B}function I(e,t,n){return Math.min(Math.max(e,t),n)}function O(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,a=t.initialIndex,s=void 0===a?0:a,u=t.keyLength,l=void 0===u?6:u,c=g();function f(e){Object(i.a)(w,e),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function d(){return Math.random().toString(36).substr(2,l)}var h=I(s,0,o.length-1),b=o.map(function(e){return m(e,void 0,"string"==typeof e?d():e.key||d())}),v=p;function y(e){var t=I(w.index+e,0,w.entries.length-1),i=w.entries[t];c.confirmTransitionTo(i,"POP",n,function(e){e?f({action:"POP",location:i,index:t}):f()})}var w={length:b.length,action:"POP",location:b[h],index:h,entries:b,createHref:v,push:function(e,t){var i=m(e,t,d(),w.location);c.confirmTransitionTo(i,"PUSH",n,function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),f({action:"PUSH",location:i,index:t,entries:n})}})},replace:function(e,t){var i=m(e,t,d(),w.location);c.confirmTransitionTo(i,"REPLACE",n,function(e){e&&(w.entries[w.index]=i,f({action:"REPLACE",location:i}))})},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return w}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(e,t){if(!e)throw a(t)},a=function(e){return new Error("Firebase Database ("+r.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},s=function(e){for(var t=[],n=0,i=0;i<e.length;i++){var r=e.charCodeAt(i);r<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296==(64512&r)&&i+1<e.length&&56320==(64512&e.charCodeAt(i+1))?(r=65536+((1023&r)<<10)+(1023&e.charCodeAt(++i)),t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t},u={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[],r=0;r<e.length;r+=3){var o=e[r],a=r+1<e.length,s=a?e[r+1]:0,u=r+2<e.length,l=u?e[r+2]:0,c=o>>2,f=(3&o)<<4|s>>4,d=(15&s)<<2|l>>6,h=63&l;u||(h=64,a||(d=64)),i.push(n[c],n[f],n[d],n[h])}return i.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(s(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,i=0;n<e.length;){var r=e[n++];if(r<128)t[i++]=String.fromCharCode(r);else if(r>191&&r<224){var o=e[n++];t[i++]=String.fromCharCode((31&r)<<6|63&o)}else if(r>239&&r<365){var a=((7&r)<<18|(63&(o=e[n++]))<<12|(63&(s=e[n++]))<<6|63&e[n++])-65536;t[i++]=String.fromCharCode(55296+(a>>10)),t[i++]=String.fromCharCode(56320+(1023&a))}else{o=e[n++];var s=e[n++];t[i++]=String.fromCharCode((15&r)<<12|(63&o)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[],r=0;r<e.length;){var o=n[e.charAt(r++)],a=r<e.length?n[e.charAt(r)]:0,s=++r<e.length?n[e.charAt(r)]:64,u=++r<e.length?n[e.charAt(r)]:64;if(++r,null==o||null==a||null==s||null==u)throw Error();var l=o<<2|a>>4;if(i.push(l),64!==s){var c=a<<4&240|s>>2;if(i.push(c),64!==u){var f=s<<6&192|u;i.push(f)}}}return i},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},l=function(e){try{return u.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function c(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=c(e[n],t[n]));return e}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var f=function(){function e(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return e.prototype.wrapCallback=function(e){var t=this;return function(n,i){n?t.reject(n):t.resolve(i),"function"==typeof e&&(t.promise.catch(function(){}),1===e.length?e(n):e(n,i))}},e}();
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function d(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var h="FirebaseError",p=function(e){function t(n,i){var r=e.call(this,i)||this;return r.code=n,r.name=h,Object.setPrototypeOf(r,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(r,m.prototype.create),r}return i.__extends(t,e),t}(Error),m=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=t[0]||{},r=this.service+"/"+e,o=this.errors[e],a=o?function(e,t){return e.replace(b,function(e,n){var i=t[n];return null!=i?i.toString():"<"+n+"?>"})}(o,i):"Error",s=this.serviceName+": "+a+" ("+r+").",u=new p(r,s),l=0,c=Object.keys(i);l<c.length;l++){var f=c[l];"_"!==f.slice(-1)&&(f in u&&console.warn('Overwriting FirebaseError base field "'+f+'" can cause unexpected behavior.'),u[f]=i[f])}return u},e}();var b=/\{\$([^}]+)}/g;
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function g(e){return JSON.parse(e)}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var v=function(e){var t={},n={},i={},r="";try{var o=e.split(".");t=g(l(o[0])||""),n=g(l(o[1])||""),r=o[2],i=n.d||{},delete n.d}catch(e){}return{header:t,claims:n,data:i,signature:r}},y=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])},w=function(e,t){return y(t,function(t,n){e[t]=n}),e},_=function(e,t,n){for(var i in e)if(t.call(n,e[i],i,e))return i},x=function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}return e.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},e.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"==typeof e)for(var i=0;i<16;i++)n[i]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(i=0;i<16;i++)n[i]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(i=16;i<80;i++){var r=n[i-3]^n[i-8]^n[i-14]^n[i-16];n[i]=4294967295&(r<<1|r>>>31)}var o,a,s=this.chain_[0],u=this.chain_[1],l=this.chain_[2],c=this.chain_[3],f=this.chain_[4];for(i=0;i<80;i++){i<40?i<20?(o=c^u&(l^c),a=1518500249):(o=u^l^c,a=1859775393):i<60?(o=u&l|c&(u|l),a=2400959708):(o=u^l^c,a=3395469782);r=(s<<5|s>>>27)+o+f+a+n[i]&4294967295;f=c,c=l,l=4294967295&(u<<30|u>>>2),u=s,s=r}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+l&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+f&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,i=0,r=this.buf_,o=this.inbuf_;i<t;){if(0===o)for(;i<=n;)this.compress_(e,i),i+=this.blockSize;if("string"==typeof e){for(;i<t;)if(r[o]=e.charCodeAt(i),++i,++o===this.blockSize){this.compress_(r),o=0;break}}else for(;i<t;)if(r[o]=e[i],++i,++o===this.blockSize){this.compress_(r),o=0;break}}this.inbuf_=o,this.total_+=t}},e.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var i=0;for(n=0;n<5;n++)for(var r=24;r>=0;r-=8)e[i]=this.chain_[n]>>r&255,++i;return e},e}();var k=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(function(){e(n)}).catch(function(e){n.error(e)})}return e.prototype.next=function(e){this.forEachObserver(function(t){t.next(e)})},e.prototype.error=function(e){this.forEachObserver(function(t){t.error(e)}),this.close(e)},e.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},e.prototype.subscribe=function(e,t,n){var i,r=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(i=function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=0,i=t;n<i.length;n++){var r=i[n];if(r in e&&"function"==typeof e[r])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(i.next=E),void 0===i.error&&(i.error=E),void 0===i.complete&&(i.complete=E);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{r.finalError?i.error(r.finalError):i.complete()}catch(e){}}),this.observers.push(i),o},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(function(){t.observers=void 0,t.onNoObservers=void 0}))},e}();function E(){}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function S(e,t,n){var i="";switch(t){case 1:i=n?"first":"First";break;case 2:i=n?"second":"Second";break;case 3:i=n?"third":"Third";break;case 4:i=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4. Need to update it?")}var r=e+" failed: ";return r+=i+" argument "}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
t.CONSTANTS=r,t.Deferred=f,t.ErrorFactory=m,t.FirebaseError=p,t.Sha1=x,t.assert=o,t.assertionError=a,t.async=function(e,t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];Promise.resolve(!0).then(function(){e.apply(void 0,n)}).catch(function(e){t&&t(e)})}},t.base64=u,t.base64Decode=l,t.base64Encode=function(e){var t=s(e);return u.encodeByteArray(t,!0)},t.clone=function(e){return w({},e)},t.contains=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.createSubscribe=function(e,t){var n=new k(e,t);return n.subscribe.bind(n)},t.decode=v,t.deepCopy=
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
function(e){return c(void 0,e)},t.deepExtend=c,t.errorPrefix=S,t.every=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!t(n,e[n]))return!1;return!0},t.extend=w,t.findKey=_,t.findValue=function(e,t,n){var i=_(e,t,n);return i&&e[i]},t.forEach=y,t.getAnyKey=function(e){for(var t in e)return t},t.getCount=function(e){var t=0;for(var n in e)t++;return t},t.getUA=d,t.getValues=function(e){var t=[],n=0;for(var i in e)t[n++]=e[i];return t},t.isAdmin=function(e){var t=v(e).claims;return"object"==typeof t&&!0===t.admin},t.isBrowser=function(){return"object"==typeof self&&self.self===self},t.isEmpty=function(e){for(var t in e)return!1;return!0},t.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(d())},t.isNode=function(){try{return"[object process]"===Object.prototype.toString.call(e.process)}catch(e){return!1}},t.isNodeSdk=function(){return!0===r.NODE_CLIENT||!0===r.NODE_ADMIN},t.isNonNullObject=function(e){return"object"==typeof e&&null!==e},t.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},t.isValidFormat=function(e){var t=v(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")},t.isValidTimestamp=function(e){var t,n,i=v(e).claims,r=Math.floor((new Date).getTime()/1e3);return"object"==typeof i&&(i.hasOwnProperty("nbf")?t=i.nbf:i.hasOwnProperty("iat")&&(t=i.iat),n=i.hasOwnProperty("exp")?i.exp:t+86400),r&&t&&n&&r>=t&&r<=n},t.issuedAtTime=function(e){var t=v(e).claims;return"object"==typeof t&&t.hasOwnProperty("iat")?t.iat:null},t.jsonEval=g,t.map=function(e,t,n){var i={};for(var r in e)i[r]=t.call(n,e[r],r,e);return i},t.querystring=function(e){var t=[];return y(e,function(e,n){Array.isArray(n)?n.forEach(function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}),t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){var t={};return e.replace(/^\?/,"").split("&").forEach(function(e){if(e){var n=e.split("=");t[n[0]]=n[1]}}),t},t.safeGet=function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},t.stringLength=function(e){for(var t=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t++:i<2048?t+=2:i>=55296&&i<=56319?(t+=4,n++):t+=3}return t},t.stringToByteArray=function(e){for(var t=[],n=0,i=0;i<e.length;i++){var r=e.charCodeAt(i);if(r>=55296&&r<=56319){var a=r-55296;o(++i<e.length,"Surrogate pair missing trail surrogate."),r=65536+(a<<10)+(e.charCodeAt(i)-56320)}r<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):r<65536?(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t},t.stringify=function(e){return JSON.stringify(e)},t.validateArgCount=function(e,t,n,i){var r;if(i<t?r="at least "+t:i>n&&(r=0===n?"none":"no more than "+n),r)throw new Error(e+" failed: Was called with "+i+(1===i?" argument.":" arguments.")+" Expects "+r+".")},t.validateCallback=function(e,t,n,i){if((!i||n)&&"function"!=typeof n)throw new Error(S(e,t,i)+"must be a valid function.")},t.validateContextObject=function(e,t,n,i){if((!i||n)&&("object"!=typeof n||null===n))throw new Error(S(e,t,i)+"must be a valid context object.")}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/,t.validateNamespace=function(e,t,n,i){if((!i||n)&&"string"!=typeof n)throw new Error(S(e,t,i)+"must be a valid firebase namespace.")}}).call(this,n(5))},function(e,t,n){"use strict";n.r(t),n.d(t,"LogLevel",function(){return i}),n.d(t,"Logger",function(){return s}),n.d(t,"setLogLevel",function(){return u});
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var i,r=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(i||(i={}));var o=i.INFO,a=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(t<e.logLevel)){var o=(new Date).toISOString();switch(t){case i.DEBUG:case i.VERBOSE:console.log.apply(console,["["+o+"] "+e.name+":"].concat(n));break;case i.INFO:console.info.apply(console,["["+o+"] "+e.name+":"].concat(n));break;case i.WARN:console.warn.apply(console,["["+o+"] "+e.name+":"].concat(n));break;case i.ERROR:console.error.apply(console,["["+o+"] "+e.name+":"].concat(n));break;default:throw new Error("Attempted to log a message with an invalid logType (value: "+t+")")}}},s=function(){function e(e){this.name=e,this._logLevel=o,this._logHandler=a,r.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in i))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!0,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,i.DEBUG].concat(e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,i.VERBOSE].concat(e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,i.INFO].concat(e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,i.WARN].concat(e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,i.ERROR].concat(e))},e}();
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
function u(e){r.forEach(function(t){t.logLevel=e})}},function(e,t,n){"use strict";(function(e){var t=n(6),i=n.n(t);(function(){var t,n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},r="undefined"!=typeof window&&window===this?this:void 0!==e&&null!=e?e:this;function o(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function a(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:o(e)}}!function(e,t){if(t){var i=r;e=e.split(".");for(var o=0;o<e.length-1;o++){var a=e[o];a in i||(i[a]={}),i=i[a]}(t=t(o=i[e=e[e.length-1]]))!=o&&null!=t&&n(i,e,{configurable:!0,writable:!0,value:t})}}("Promise",function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.a=null}function i(e){return e instanceof t?e:new t(function(t){t(e)})}if(e)return e;n.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c(function(){t.g()})}this.a.push(e)};var o=r.setTimeout;n.prototype.c=function(e){o(e,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.f(e)}}}this.a=null},n.prototype.f=function(e){this.c(function(){throw e})},t.prototype.f=function(){function e(e){return function(i){n||(n=!0,e.call(t,i))}}var t=this,n=!1;return{resolve:e(this.o),reject:e(this.g)}},t.prototype.o=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.u(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.l(e):this.h(e)}},t.prototype.l=function(e){var t=void 0;try{t=e.then}catch(e){return void this.g(e)}"function"==typeof t?this.v(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.m()},t.prototype.m=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)s.b(this.a[e]);this.a=null}};var s=new n;return t.prototype.u=function(e){var t=this.f();e.Ja(t.resolve,t.reject)},t.prototype.v=function(e,t){var n=this.f();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function i(e,t){return"function"==typeof e?function(t){try{r(e(t))}catch(e){o(e)}}:t}var r,o,a=new t(function(e,t){r=e,o=t});return this.Ja(i(e,r),i(n,o)),a},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Ja=function(e,t){function n(){switch(i.b){case 1:e(i.c);break;case 2:t(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?s.b(n):this.a.push(n)},t.resolve=i,t.reject=function(e){return new t(function(t,n){n(e)})},t.race=function(e){return new t(function(t,n){for(var r=a(e),o=r.next();!o.done;o=r.next())i(o.value).Ja(t,n)})},t.all=function(e){var n=a(e),r=n.next();return r.done?i([]):new t(function(e,t){function o(t){return function(n){a[t]=n,0==--s&&e(a)}}var a=[],s=0;do{a.push(void 0),s++,i(r.value).Ja(o(a.length-1),t),r=n.next()}while(!r.done)})},t});var s=s||{},u=this;function l(e){return"string"==typeof e}function c(e){return"boolean"==typeof e}var f=/^[\w+\/_-]+[=]{0,2}$/,d=null;function h(){}function p(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function m(e){return null===e}function b(e){return"array"==p(e)}function g(e){var t=p(e);return"array"==t||"object"==t&&"number"==typeof e.length}function v(e){return"function"==p(e)}function y(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var w="closure_uid_"+(1e9*Math.random()>>>0),_=0;function x(e,t,n){return e.call.apply(e.bind,arguments)}function k(e,t,n){if(!e)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function E(e,t,n){return(E=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?x:k).apply(null,arguments)}function S(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var T=Date.now||function(){return+new Date};function C(e,t){function n(){}n.prototype=t.prototype,e.qb=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.cd=function(e,n,i){for(var r=Array(arguments.length-2),o=2;o<arguments.length;o++)r[o-2]=arguments[o];return t.prototype[n].apply(e,r)}}function A(e){if(!e)return!1;try{return!!e.$goog_Thenable}catch(e){return!1}}function I(e){if(Error.captureStackTrace)Error.captureStackTrace(this,I);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function O(e,t){for(var n="",i=(e=e.split("%s")).length-1,r=0;r<i;r++)n+=e[r]+(r<t.length?t[r]:"%s");I.call(this,n+e[i])}function N(e,t){throw new O("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function P(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function R(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function D(){this.b=this.a=null}C(I,Error),I.prototype.name="CustomError",C(O,I),O.prototype.name="AssertionError",P.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var L=new P(function(){return new j},function(e){e.reset()});function M(){var e=ye,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function j(){this.next=this.b=this.a=null}D.prototype.add=function(e,t){var n=L.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},j.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},j.prototype.reset=function(){this.next=this.b=this.a=null};var U=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if(l(e))return l(t)&&1==t.length?e.indexOf(t,0):-1;for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},F=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var i=e.length,r=l(e)?e.split(""):e,o=0;o<i;o++)o in r&&t.call(n,r[o],o,e)};var B=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,i=Array(n),r=l(e)?e.split(""):e,o=0;o<n;o++)o in r&&(i[o]=t.call(void 0,r[o],o,e));return i},z=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,i=l(e)?e.split(""):e,r=0;r<n;r++)if(r in i&&t.call(void 0,i[r],r,e))return!0;return!1};function H(e,t){return 0<=U(e,t)}function V(e,t){var n;return(n=0<=(t=U(e,t)))&&Array.prototype.splice.call(e,t,1),n}function W(e,t){!function(e,t){for(var n=l(e)?e.split(""):e,i=e.length-1;0<=i;--i)i in n&&t.call(void 0,n[i],i,e)}(e,function(n,i){t.call(void 0,n,i,e)&&1==Array.prototype.splice.call(e,i,1).length&&0})}function G(e){return Array.prototype.concat.apply([],arguments)}function K(e){var t=e.length;if(0<t){for(var n=Array(t),i=0;i<t;i++)n[i]=e[i];return n}return[]}var q,X=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},Y=/&/g,J=/</g,$=/>/g,Z=/"/g,Q=/'/g,ee=/\x00/g,te=/[\x00&<>"']/;function ne(e,t){return-1!=e.indexOf(t)}function ie(e,t){return e<t?-1:e>t?1:0}e:{var re=u.navigator;if(re){var oe=re.userAgent;if(oe){q=oe;break e}}q=""}function ae(e){return ne(q,e)}function se(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function ue(e){for(var t in e)return!1;return!0}function le(e){var t,n={};for(t in e)n[t]=e[t];return n}var ce,fe,de="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function he(e,t){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])e[n]=i[n];for(var o=0;o<de.length;o++)n=de[o],Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}}function pe(e,t){for(var n=e.split("%s"),i="",r=Array.prototype.slice.call(arguments,1);r.length&&1<n.length;)i+=n.shift()+r.shift();return i+n.join("%s")}function me(e){return te.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(Y,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(J,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace($,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(Z,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(Q,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(ee,"&#0;"))),e}function be(e){u.setTimeout(function(){throw e},0)}function ge(e,t){fe||function(){if(u.Promise&&u.Promise.resolve){var e=u.Promise.resolve(void 0);fe=function(){e.then(we)}}else fe=function(){var e=we;!v(u.setImmediate)||u.Window&&u.Window.prototype&&!ae("Edge")&&u.Window.prototype.setImmediate==u.setImmediate?(ce||(ce=function(){var e=u.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!ae("Presto")&&(e=function(){var e=document.createElement("IFRAME");e.style.display="none",e.src="",document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.write(""),e.close();var n="callImmediate"+Math.random(),i="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=E(function(e){"*"!=i&&e.origin!=i||e.data!=n||this.port1.onmessage()},this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,i)}}}),void 0!==e&&!ae("Trident")&&!ae("MSIE")){var t=new e,n={},i=n;return t.port1.onmessage=function(){if(void 0!==n.next){var e=(n=n.next).yb;n.yb=null,e()}},function(e){i.next={yb:e},i=i.next,t.port2.postMessage(0)}}return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(e){var t=document.createElement("SCRIPT");t.onreadystatechange=function(){t.onreadystatechange=null,t.parentNode.removeChild(t),t=null,e(),e=null},document.documentElement.appendChild(t)}:function(e){u.setTimeout(e,0)}}()),ce(e)):u.setImmediate(e)}}(),ve||(fe(),ve=!0),ye.add(e,t)}var ve=!1,ye=new D;function we(){for(var e;e=M();){try{e.a.call(e.b)}catch(e){be(e)}R(L,e)}ve=!1}function _e(e,t){if(this.a=xe,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=h)try{var n=this;e.call(t,function(e){De(n,ke,e)},function(e){if(!(e instanceof ze))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(e){}De(n,Ee,e)})}catch(e){De(this,Ee,e)}}var xe=0,ke=2,Ee=3;function Se(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Se.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Te=new P(function(){return new Se},function(e){e.reset()});function Ce(e,t,n){var i=Te.get();return i.g=e,i.b=t,i.f=n,i}function Ae(e){if(e instanceof _e)return e;var t=new _e(h);return De(t,ke,e),t}function Ie(e){return new _e(function(t,n){n(e)})}function Oe(e,t,n){Le(e,t,n,null)||ge(S(t,e))}function Ne(e){return new _e(function(t){var n=e.length,i=[];if(n)for(var r=function(e,r,o){n--,i[e]=r?{Eb:!0,value:o}:{Eb:!1,reason:o},0==n&&t(i)},o=0;o<e.length;o++)Oe(e[o],S(r,o,!0),S(r,o,!1));else t(i)})}function Pe(e,t){e.b||e.a!=ke&&e.a!=Ee||Me(e),e.f?e.f.next=t:e.b=t,e.f=t}function Re(e,t,n,i){var r=Ce(null,null,null);return r.a=new _e(function(e,o){r.g=t?function(n){try{var r=t.call(i,n);e(r)}catch(e){o(e)}}:e,r.b=n?function(t){try{var r=n.call(i,t);void 0===r&&t instanceof ze?o(t):e(r)}catch(e){o(e)}}:o}),r.a.c=e,Pe(e,r),r.a}function De(e,t,n){e.a==xe&&(e===n&&(t=Ee,n=new TypeError("Promise cannot resolve to itself")),e.a=1,Le(n,e.Lc,e.Mc,e)||(e.i=n,e.a=t,e.c=null,Me(e),t!=Ee||n instanceof ze||function(e,t){e.g=!0,ge(function(){e.g&&Be.call(null,t)})}(e,n)))}function Le(e,t,n,i){if(e instanceof _e)return Pe(e,Ce(t||h,n||null,i)),!0;if(A(e))return e.then(t,n,i),!0;if(y(e))try{var r=e.then;if(v(r))return function(e,t,n,i,r){function o(e){a||(a=!0,i.call(r,e))}var a=!1;try{t.call(e,function(e){a||(a=!0,n.call(r,e))},o)}catch(e){o(e)}}(e,r,t,n,i),!0}catch(e){return n.call(i,e),!0}return!1}function Me(e){e.h||(e.h=!0,ge(e.Xb,e))}function je(e){var t=null;return e.b&&(t=e.b,e.b=t.next,t.next=null),e.b||(e.f=null),t}function Ue(e,t,n,i){if(n==Ee&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,Fe(t,n,i);else try{t.c?t.g.call(t.f):Fe(t,n,i)}catch(e){Be.call(null,e)}R(Te,t)}function Fe(e,t,n){t==ke?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}_e.prototype.then=function(e,t,n){return Re(this,v(e)?e:null,v(t)?t:null,n)},_e.prototype.$goog_Thenable=!0,(t=_e.prototype).ia=function(e,t){return(e=Ce(e,e,t)).c=!0,Pe(this,e),this},t.s=function(e,t){return Re(this,null,e,t)},t.cancel=function(e){this.a==xe&&ge(function(){!function e(t,n){if(t.a==xe)if(t.c){var i=t.c;if(i.b){for(var r=0,o=null,a=null,s=i.b;s&&(s.c||(r++,s.a==t&&(o=s),!(o&&1<r)));s=s.next)o||(a=s);o&&(i.a==xe&&1==r?e(i,n):(a?((r=a).next==i.f&&(i.f=r),r.next=r.next.next):je(i),Ue(i,o,Ee,n)))}t.c=null}else De(t,Ee,n)}(this,new ze(e))},this)},t.Lc=function(e){this.a=xe,De(this,ke,e)},t.Mc=function(e){this.a=xe,De(this,Ee,e)},t.Xb=function(){for(var e;e=je(this);)Ue(this,e,this.a,this.i);this.h=!1};var Be=be;function ze(e){I.call(this,e)}function He(){0!=Ve&&(We[this[w]||(this[w]=++_)]=this),this.qa=this.qa,this.ja=this.ja}C(ze,I),ze.prototype.name="cancel";var Ve=0,We={};function Ge(e){if(!e.qa&&(e.qa=!0,e.va(),0!=Ve)){var t=e[w]||(e[w]=++_);if(0!=Ve&&e.ja&&0<e.ja.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete We[t]}}function Ke(e){return Ke[" "](e),e}He.prototype.qa=!1,He.prototype.va=function(){if(this.ja)for(;this.ja.length;)this.ja.shift()()},Ke[" "]=h;var qe,Xe,Ye=ae("Opera"),Je=ae("Trident")||ae("MSIE"),$e=ae("Edge"),Ze=$e||Je,Qe=ae("Gecko")&&!(ne(q.toLowerCase(),"webkit")&&!ae("Edge"))&&!(ae("Trident")||ae("MSIE"))&&!ae("Edge"),et=ne(q.toLowerCase(),"webkit")&&!ae("Edge");function tt(){var e=u.document;return e?e.documentMode:void 0}e:{var nt="",it=(Xe=q,Qe?/rv:([^\);]+)(\)|;)/.exec(Xe):$e?/Edge\/([\d\.]+)/.exec(Xe):Je?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Xe):et?/WebKit\/(\S+)/.exec(Xe):Ye?/(?:Version)[ \/]?(\S+)/.exec(Xe):void 0);if(it&&(nt=it?it[1]:""),Je){var rt=tt();if(null!=rt&&rt>parseFloat(nt)){qe=String(rt);break e}}qe=nt}var ot,at={};function st(e){return function(e,t){var n=at;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,function(){for(var t=0,n=X(String(qe)).split("."),i=X(String(e)).split("."),r=Math.max(n.length,i.length),o=0;0==t&&o<r;o++){var a=n[o]||"",s=i[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;t=ie(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||ie(0==a[2].length,0==s[2].length)||ie(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t})}var ut=u.document;ot=ut&&Je?tt()||("CSS1Compat"==ut.compatMode?parseInt(qe,10):5):void 0;var lt=Object.freeze||function(e){return e},ct=!Je||9<=Number(ot),ft=Je&&!st("9"),dt=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{u.addEventListener("test",h,t),u.removeEventListener("test",h,t)}catch(e){}return e}();function ht(e,t){this.type=e,this.b=this.target=t,this.Kb=!0}function pt(e,t){if(ht.call(this,e?e.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,e){var n=this.type=e.type,i=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=t,t=e.relatedTarget){if(Qe){e:{try{Ke(t.nodeName);var r=!0;break e}catch(e){}r=!1}r||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=l(e.pointerType)?e.pointerType:mt[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}ht.prototype.preventDefault=function(){this.Kb=!1},C(pt,ht);var mt=lt({2:"touch",3:"pen",4:"mouse"});pt.prototype.preventDefault=function(){pt.qb.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,ft)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}},pt.prototype.f=function(){return this.a};var bt="closure_listenable_"+(1e6*Math.random()|0),gt=0;function vt(e,t,n,i,r){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!i,this.Na=r,this.key=++gt,this.oa=this.Ia=!1}function yt(e){e.oa=!0,e.listener=null,e.proxy=null,e.src=null,e.Na=null}function wt(e){this.src=e,this.a={},this.b=0}function _t(e,t){var n=t.type;n in e.a&&V(e.a[n],t)&&(yt(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function xt(e,t,n,i){for(var r=0;r<e.length;++r){var o=e[r];if(!o.oa&&o.listener==t&&o.capture==!!n&&o.Na==i)return r}return-1}wt.prototype.add=function(e,t,n,i,r){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var a=xt(e,t,i,r);return-1<a?(t=e[a],n||(t.Ia=!1)):((t=new vt(t,this.src,o,!!i,r)).Ia=n,e.push(t)),t};var kt="closure_lm_"+(1e6*Math.random()|0),Et={};function St(e,t,n,i,r){if(i&&i.once)Ct(e,t,n,i,r);else if(b(t))for(var o=0;o<t.length;o++)St(e,t[o],n,i,r);else n=Mt(n),e&&e[bt]?Ut(e,t,n,y(i)?!!i.capture:!!i,r):Tt(e,t,n,!1,i,r)}function Tt(e,t,n,i,r,o){if(!t)throw Error("Invalid event type");var a=y(r)?!!r.capture:!!r,s=Dt(e);if(s||(e[kt]=s=new wt(e)),!(n=s.add(t,n,i,a,o)).proxy){if(i=function(){var e=Rt,t=ct?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=i,i.src=e,i.listener=n,e.addEventListener)dt||(r=a),void 0===r&&(r=!1),e.addEventListener(t.toString(),i,r);else if(e.attachEvent)e.attachEvent(Ot(t.toString()),i);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(i)}0}}function Ct(e,t,n,i,r){if(b(t))for(var o=0;o<t.length;o++)Ct(e,t[o],n,i,r);else n=Mt(n),e&&e[bt]?Ft(e,t,n,y(i)?!!i.capture:!!i,r):Tt(e,t,n,!0,i,r)}function At(e,t,n,i,r){if(b(t))for(var o=0;o<t.length;o++)At(e,t[o],n,i,r);else i=y(i)?!!i.capture:!!i,n=Mt(n),e&&e[bt]?(e=e.m,(t=String(t).toString())in e.a&&(-1<(n=xt(o=e.a[t],n,i,r))&&(yt(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.a[t],e.b--)))):e&&(e=Dt(e))&&(t=e.a[t.toString()],e=-1,t&&(e=xt(t,n,i,r)),(n=-1<e?t[e]:null)&&It(n))}function It(e){if("number"!=typeof e&&e&&!e.oa){var t=e.src;if(t&&t[bt])_t(t.m,e);else{var n=e.type,i=e.proxy;t.removeEventListener?t.removeEventListener(n,i,e.capture):t.detachEvent?t.detachEvent(Ot(n),i):t.addListener&&t.removeListener&&t.removeListener(i),0,(n=Dt(t))?(_t(n,e),0==n.b&&(n.src=null,t[kt]=null)):yt(e)}}}function Ot(e){return e in Et?Et[e]:Et[e]="on"+e}function Nt(e,t,n,i){var r=!0;if((e=Dt(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var o=t[e];o&&o.capture==n&&!o.oa&&(o=Pt(o,i),r=r&&!1!==o)}return r}function Pt(e,t){var n=e.listener,i=e.Na||e.src;return e.Ia&&It(e),n.call(i,t)}function Rt(e,t){if(e.oa)return!0;if(!ct){if(!t)e:{t=["window","event"];for(var n=u,i=0;i<t.length;i++)if(null==(n=n[t[i]])){t=null;break e}t=n}if(t=new pt(i=t,this),n=!0,!(0>i.keyCode||null!=i.returnValue)){e:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break e}catch(e){r=!0}(r||null==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=t.b;r;r=r.parentNode)i.push(r);for(e=e.type,r=i.length-1;0<=r;r--){t.b=i[r];var o=Nt(i[r],e,!0,t);n=n&&o}for(r=0;r<i.length;r++)t.b=i[r],o=Nt(i[r],e,!1,t),n=n&&o}return n}return Pt(e,new pt(t,this))}function Dt(e){return(e=e[kt])instanceof wt?e:null}var Lt="__closure_events_fn_"+(1e9*Math.random()>>>0);function Mt(e){return v(e)?e:(e[Lt]||(e[Lt]=function(t){return e.handleEvent(t)}),e[Lt])}function jt(){He.call(this),this.m=new wt(this),this.Qb=this,this.Va=null}function Ut(e,t,n,i,r){e.m.add(String(t),n,!1,i,r)}function Ft(e,t,n,i,r){e.m.add(String(t),n,!0,i,r)}function Bt(e,t,n,i){if(!(t=e.m.a[String(t)]))return!0;t=t.concat();for(var r=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.oa&&a.capture==n){var s=a.listener,u=a.Na||a.src;a.Ia&&_t(e.m,a),r=!1!==s.call(u,i)&&r}}return r&&0!=i.Kb}function zt(e,t,n){if(v(e))n&&(e=E(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=E(e.handleEvent,e)}return 2147483647<Number(t)?-1:u.setTimeout(e,t||0)}function Ht(e){var t=null;return new _e(function(n,i){-1==(t=zt(function(){n(void 0)},e))&&i(Error("Failed to schedule timer."))}).s(function(e){throw u.clearTimeout(t),e})}function Vt(e){if(e.S&&"function"==typeof e.S)return e.S();if(l(e))return e.split("");if(g(e)){for(var t=[],n=e.length,i=0;i<n;i++)t.push(e[i]);return t}for(i in t=[],n=0,e)t[n++]=e[i];return t}function Wt(e){if(e.U&&"function"==typeof e.U)return e.U();if(!e.S||"function"!=typeof e.S){if(g(e)||l(e)){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var i in t=[],n=0,e)t[n++]=i;return t}}function Gt(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(e)if(e instanceof Gt)for(n=e.U(),i=0;i<n.length;i++)this.set(n[i],e.get(n[i]));else for(i in e)this.set(i,e[i])}function Kt(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var i=e.a[t];qt(e.b,i)&&(e.a[n++]=i),t++}e.a.length=n}if(e.c!=e.a.length){var r={};for(n=t=0;t<e.a.length;)qt(r,i=e.a[t])||(e.a[n++]=i,r[i]=1),t++;e.a.length=n}}function qt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}C(jt,He),jt.prototype[bt]=!0,jt.prototype.addEventListener=function(e,t,n,i){St(this,e,t,n,i)},jt.prototype.removeEventListener=function(e,t,n,i){At(this,e,t,n,i)},jt.prototype.dispatchEvent=function(e){var t,n=this.Va;if(n)for(t=[];n;n=n.Va)t.push(n);n=this.Qb;var i=e.type||e;if(l(e))e=new ht(e,n);else if(e instanceof ht)e.target=e.target||n;else{var r=e;he(e=new ht(i,n),r)}if(r=!0,t)for(var o=t.length-1;0<=o;o--){var a=e.b=t[o];r=Bt(a,i,!0,e)&&r}if(r=Bt(a=e.b=n,i,!0,e)&&r,r=Bt(a,i,!1,e)&&r,t)for(o=0;o<t.length;o++)r=Bt(a=e.b=t[o],i,!1,e)&&r;return r},jt.prototype.va=function(){if(jt.qb.va.call(this),this.m){var e,t=this.m;for(e in t.a){for(var n=t.a[e],i=0;i<n.length;i++)0,yt(n[i]);delete t.a[e],t.b--}}this.Va=null},(t=Gt.prototype).S=function(){Kt(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},t.U=function(){return Kt(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(e,t){return qt(this.b,e)?this.b[e]:t},t.set=function(e,t){qt(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},t.forEach=function(e,t){for(var n=this.U(),i=0;i<n.length;i++){var r=n[i],o=this.get(r);e.call(t,o,r,this)}};var Xt=/^(?:([^:\/?#.]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/#?]*?)(?::([0-9]+))?(?=[\/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Yt(e,t){var n;this.b=this.i=this.f="",this.m=null,this.g=this.c="",this.h=!1,e instanceof Yt?(this.h=void 0!==t?t:e.h,Jt(this,e.f),this.i=e.i,this.b=e.b,$t(this,e.m),this.c=e.c,Zt(this,vn(e.a)),this.g=e.g):e&&(n=String(e).match(Xt))?(this.h=!!t,Jt(this,n[1]||"",!0),this.i=rn(n[2]||""),this.b=rn(n[3]||"",!0),$t(this,n[4]),this.c=rn(n[5]||"",!0),Zt(this,n[6]||"",!0),this.g=rn(n[7]||"")):(this.h=!!t,this.a=new dn(null,this.h))}function Jt(e,t,n){e.f=n?rn(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function $t(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.m=t}else e.m=null}function Zt(e,t,n){t instanceof dn?(e.a=t,function(e,t){t&&!e.f&&(hn(e),e.c=null,e.a.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(mn(this,t),gn(this,n,e))},e)),e.f=t}(e.a,e.h)):(n||(t=on(t,cn)),e.a=new dn(t,e.h))}function Qt(e,t,n){e.a.set(t,n)}function en(e,t){return e.a.get(t)}function tn(e){return e instanceof Yt?new Yt(e):new Yt(e,void 0)}function nn(e,t){var n=new Yt(null,void 0);return Jt(n,"https"),e&&(n.b=e),t&&(n.c=t),n}function rn(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function on(e,t,n){return l(e)?(e=encodeURI(e).replace(t,an),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function an(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Yt.prototype.toString=function(){var e=[],t=this.f;t&&e.push(on(t,sn,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.i)&&e.push(on(t,sn,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&e.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(on(n,"/"==n.charAt(0)?ln:un,!0))),(n=this.a.toString())&&e.push("?",n),(n=this.g)&&e.push("#",on(n,fn)),e.join("")},Yt.prototype.resolve=function(e){var t=new Yt(this),n=!!e.f;n?Jt(t,e.f):n=!!e.i,n?t.i=e.i:n=!!e.b,n?t.b=e.b:n=null!=e.m;var i=e.c;if(n)$t(t,e.m);else if(n=!!e.c){if("/"!=i.charAt(0))if(this.b&&!this.c)i="/"+i;else{var r=t.c.lastIndexOf("/");-1!=r&&(i=t.c.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(ne(r,"./")||ne(r,"/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a<r.length;){var s=r[a++];"."==s?i&&a==r.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&a==r.length&&o.push("")):(o.push(s),i=!0)}i=o.join("/")}else i=r}return n?t.c=i:n=""!==e.a.toString(),n?Zt(t,vn(e.a)):n=!!e.g,n&&(t.g=e.g),t};var sn=/[#\/\?@]/g,un=/[#\?:]/g,ln=/[#\?]/g,cn=/[#\?@]/g,fn=/#/g;function dn(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function hn(e){e.a||(e.a=new Gt,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var i=e[n].indexOf("="),r=null;if(0<=i){var o=e[n].substring(0,i);r=e[n].substring(i+1)}else o=e[n];t(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(e.c,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function pn(e){var t=Wt(e);if(void 0===t)throw Error("Keys are undefined");var n=new dn(null,void 0);e=Vt(e);for(var i=0;i<t.length;i++){var r=t[i],o=e[i];b(o)?gn(n,r,o):n.add(r,o)}return n}function mn(e,t){hn(e),t=yn(e,t),qt(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,qt((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&Kt(e)))}function bn(e,t){return hn(e),t=yn(e,t),qt(e.a.b,t)}function gn(e,t,n){mn(e,t),0<n.length&&(e.c=null,e.a.set(yn(e,t),K(n)),e.b+=n.length)}function vn(e){var t=new dn;return t.c=e.c,e.a&&(t.a=new Gt(e.a),t.b=e.b),t}function yn(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}(t=dn.prototype).add=function(e,t){hn(this),this.c=null,e=yn(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},t.clear=function(){this.a=this.c=null,this.b=0},t.forEach=function(e,t){hn(this),this.a.forEach(function(n,i){F(n,function(n){e.call(t,n,i,this)},this)},this)},t.U=function(){hn(this);for(var e=this.a.S(),t=this.a.U(),n=[],i=0;i<t.length;i++)for(var r=e[i],o=0;o<r.length;o++)n.push(t[i]);return n},t.S=function(e){hn(this);var t=[];if(l(e))bn(this,e)&&(t=G(t,this.a.get(yn(this,e))));else{e=this.a.S();for(var n=0;n<e.length;n++)t=G(t,e[n])}return t},t.set=function(e,t){return hn(this),this.c=null,bn(this,e=yn(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},t.get=function(e,t){return e&&0<(e=this.S(e)).length?String(e[0]):t},t.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.U(),n=0;n<t.length;n++){var i=t[n],r=encodeURIComponent(String(i));i=this.S(i);for(var o=0;o<i.length;o++){var a=r;""!==i[o]&&(a+="="+encodeURIComponent(String(i[o]))),e.push(a)}}return this.c=e.join("&")};var wn=!Je||9<=Number(ot);function _n(e,t){this.a=e===En&&t||"",this.b=kn}function xn(e){return e instanceof _n&&e.constructor===_n&&e.b===kn?e.a:(N("expected object of type Const, got '"+e+"'"),"type_error:Const")}_n.prototype.na=!0,_n.prototype.ma=function(){return this.a},_n.prototype.toString=function(){return"Const{"+this.a+"}"};var kn={},En={};function Sn(){this.a="",this.b=On}function Tn(e){return e instanceof Sn&&e.constructor===Sn&&e.b===On?e.a:(N("expected object of type TrustedResourceUrl, got '"+e+"' of type "+p(e)),"type_error:TrustedResourceUrl")}function Cn(e,t){var n=xn(e);if(!In.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return function(e){var t=new Sn;return t.a=e,t}(e=n.replace(An,function(e,i){if(!Object.prototype.hasOwnProperty.call(t,i))throw Error('Found marker, "'+i+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[i])instanceof _n?xn(e):encodeURIComponent(String(e))}))}Sn.prototype.na=!0,Sn.prototype.ma=function(){return this.a.toString()},Sn.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var An=/%{(\w+)}/g,In=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^\/\\]|[^:\/\\%]+\/|[^:\/\\%]*[?#]|about:blank#)/i,On={};function Nn(){this.a="",this.b=Ln}function Pn(e){return e instanceof Nn&&e.constructor===Nn&&e.b===Ln?e.a:(N("expected object of type SafeUrl, got '"+e+"' of type "+p(e)),"type_error:SafeUrl")}Nn.prototype.na=!0,Nn.prototype.ma=function(){return this.a.toString()},Nn.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Rn=/^(?:(?:https?|mailto|ftp):|[^:\/?#]*(?:[\/?#]|$))/i;function Dn(e){return e instanceof Nn?e:(e="object"==typeof e&&e.na?e.ma():String(e),Rn.test(e)||(e="about:invalid#zClosurez"),Mn(e))}var Ln={};function Mn(e){var t=new Nn;return t.a=e,t}function jn(){this.a="",this.b=Un}Mn("about:blank"),jn.prototype.na=!0,jn.prototype.ma=function(){return this.a.toString()},jn.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Un={};function Fn(e){var t=new jn;return t.a=e,t}function Bn(e){var t=document;return l(e)?t.getElementById(e):e}function zn(e,t){se(t,function(t,n){t&&"object"==typeof t&&t.na&&(t=t.ma()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:Hn.hasOwnProperty(n)?e.setAttribute(Hn[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t})}Fn("<!DOCTYPE html>"),Fn(""),Fn("<br>");var Hn={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Vn(e,t,n){var i=arguments,r=document,o=String(i[0]),a=i[1];if(!wn&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',me(a.name),'"'),a.type){o.push(' type="',me(a.type),'"');var s={};he(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=r.createElement(o),a&&(l(a)?o.className=a:b(a)?o.className=a.join(" "):zn(o,a)),2<i.length&&function(e,t,n){function i(n){n&&t.appendChild(l(n)?e.createTextNode(n):n)}for(var r=2;r<n.length;r++){var o=n[r];!g(o)||y(o)&&0<o.nodeType?i(o):F(Wn(o)?K(o):o,i)}}(r,o,i),o}function Wn(e){if(e&&"number"==typeof e.length){if(y(e))return"function"==typeof e.item||"string"==typeof e.item;if(v(e))return"function"==typeof e.item}return!1}function Gn(e){var t=[];return function e(t,n,i){if(null==n)i.push("null");else{if("object"==typeof n){if(b(n)){var r=n;n=r.length,i.push("[");for(var o="",a=0;a<n;a++)i.push(o),e(t,r[a],i),o=",";return void i.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(r in i.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,r)&&("function"!=typeof(a=n[r])&&(i.push(o),Yn(r,i),i.push(":"),e(t,a,i),o=","));return void i.push("}")}n=n.valueOf()}switch(typeof n){case"string":Yn(n,i);break;case"number":i.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":i.push(String(n));break;case"function":i.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new Kn,e,t),t.join("")}function Kn(){}var qn={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Xn=/\uffff/.test("￿")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function Yn(e,t){t.push('"',e.replace(Xn,function(e){var t=qn[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),qn[e]=t),t}),'"')}function Jn(){var e=mi();return Je&&!!ot&&11==ot||/Edge\/\d+/.test(e)}function $n(){return u.window&&u.window.location.href||self&&self.location&&self.location.href||""}function Zn(e,t){t=t||u.window;var n="about:blank";e&&(n=Pn(Dn(e)).toString()),t.location.href=n}function Qn(e){return!!((e=(e||mi()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function ei(e){e=e||u.window;try{e.close()}catch(e){}}function ti(e,t,n){var i=Math.floor(1e9*Math.random()).toString();t=t||500,n=n||600;var r=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-t)/2;for(a in t={width:t,height:n,top:0<r?r:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=mi().toLowerCase(),i&&(t.target=i,ne(n,"crios/")&&(t.target="_blank")),di(mi())==ci&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),i=window,t=n instanceof Nn?n:Dn(void 0!==n.href?n.href:String(n)),n=e.target||n.target,r=[],e)switch(a){case"width":case"height":case"top":case"left":r.push(a+"="+e[a]);break;case"target":case"noopener":case"noreferrer":break;default:r.push(a+"="+(e[a]?1:0))}var a=r.join(",");if((ae("iPhone")&&!ae("iPod")&&!ae("iPad")||ae("iPad")||ae("iPod"))&&i.navigator&&i.navigator.standalone&&n&&"_self"!=n?(a=i.document.createElement("A"),t instanceof Nn||t instanceof Nn||(t="object"==typeof t&&t.na?t.ma():String(t),Rn.test(t)||(t="about:invalid#zClosurez"),t=Mn(t)),a.href=Pn(t),a.setAttribute("target",n),e.noreferrer&&a.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,i,1),a.dispatchEvent(e),a={}):e.noreferrer?(a=i.open("",n,a),e=Pn(t).toString(),a&&(Ze&&ne(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),a.opener=null,e=Fn('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+me(e)+'">'),a.document.write(function(e){return e instanceof jn&&e.constructor===jn&&e.b===Un?e.a:(N("expected object of type SafeHtml, got '"+e+"' of type "+p(e)),"type_error:SafeHtml")}(e)),a.document.close())):(a=i.open(Pn(t).toString(),n,a))&&e.noopener&&(a.opener=null),a)try{a.focus()}catch(e){}return a}var ni=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,ii=/^[^@]+@[^@]+$/;function ri(){var e=null;return new _e(function(t){"complete"==u.document.readyState?t():(e=function(){t()},Ct(window,"load",e))}).s(function(t){throw At(window,"load",e),t})}function oi(e){return e=e||mi(),!("file:"!==wi()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function ai(){var e=u.window;try{return!(!e||e==e.top)}catch(e){return!1}}function si(){return void 0!==u.WorkerGlobalScope&&"function"==typeof u.importScripts}function ui(){return i.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":i.a.INTERNAL.hasOwnProperty("node")?"Node":si()?"Worker":"Browser"}function li(){var e=ui();return"ReactNative"===e||"Node"===e}var ci="Firefox",fi="Chrome";function di(e){var t=e.toLowerCase();return ne(t,"opera/")||ne(t,"opr/")||ne(t,"opios/")?"Opera":ne(t,"iemobile")?"IEMobile":ne(t,"msie")||ne(t,"trident/")?"IE":ne(t,"edge/")?"Edge":ne(t,"firefox/")?ci:ne(t,"silk/")?"Silk":ne(t,"blackberry")?"Blackberry":ne(t,"webos")?"Webos":!ne(t,"safari/")||ne(t,"chrome/")||ne(t,"crios/")||ne(t,"android")?!ne(t,"chrome/")&&!ne(t,"crios/")||ne(t,"edge/")?ne(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":fi:"Safari"}var hi={Sc:"FirebaseCore-web",Uc:"FirebaseUI-web"};function pi(e,t){t=t||[];var n,i=[],r={};for(n in hi)r[hi[n]]=!0;for(n=0;n<t.length;n++)void 0!==r[t[n]]&&(delete r[t[n]],i.push(t[n]));return i.sort(),(t=i).length||(t=["FirebaseCore-web"]),"Browser"===(i=ui())?i=di(r=mi()):"Worker"===i&&(i=di(r=mi())+"-"+i),i+"/JsCore/"+e+"/"+t.join(",")}function mi(){return u.navigator&&u.navigator.userAgent||""}function bi(e,t){e=e.split("."),t=t||u;for(var n=0;n<e.length&&"object"==typeof t&&null!=t;n++)t=t[e[n]];return n!=e.length&&(t=void 0),t}function gi(){try{var e=u.localStorage,t=Si();if(e)return e.setItem(t,"1"),e.removeItem(t),!Jn()||!!u.indexedDB}catch(e){return si()&&!!u.indexedDB}return!1}function vi(){return(yi()||"chrome-extension:"===wi()||oi())&&!li()&&gi()&&!si()}function yi(){return"http:"===wi()||"https:"===wi()}function wi(){return u.location&&u.location.protocol||null}function _i(e){return!Qn(e=e||mi())&&di(e)!=ci}function xi(e){return void 0===e?null:Gn(e)}function ki(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(n[t]=e[t]);return n}function Ei(e){if(null!==e)return JSON.parse(e)}function Si(e){return e||Math.floor(1e9*Math.random()).toString()}function Ti(e){return"Safari"!=di(e=e||mi())&&!e.toLowerCase().match(/iphone|ipad|ipod/)}function Ci(){var e=u.___jsl;if(e&&e.H)for(var t in e.H)if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=e.H[t].L.concat(),e.CP)for(var n=0;n<e.CP.length;n++)e.CP[n]=null}function Ai(e,t){if(e>t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=mi(),t=ui(),this.b=Qn(e)||"ReactNative"===t}function Ii(){var e=u.document;return!e||void 0===e.visibilityState||"visible"==e.visibilityState}function Oi(e){try{var t=new Date(parseInt(e,10));if(!isNaN(t.getTime())&&!/[^0-9]/.test(e))return t.toUTCString()}catch(e){}return null}function Ni(){return!(!bi("fireauth.oauthhelper",u)&&!bi("fireauth.iframe",u))}Ai.prototype.get=function(){var e=u.navigator;return!e||"boolean"!=typeof e.onLine||!yi()&&"chrome-extension:"!==wi()&&void 0===e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Pi,Ri={};function Di(e){Ri[e]||(Ri[e]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e))}try{var Li={};Object.defineProperty(Li,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Li,"abcd",{configurable:!0,enumerable:!0,value:2}),Pi=2==Li.abcd}catch(Xe){Pi=!1}function Mi(e,t,n){Pi?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function ji(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&Mi(e,n,t[n])}function Ui(e){var t={};return ji(t,e),t}function Fi(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)Mi(t,n,Fi(e[n]));return t}function Bi(e){var t={},n=e[Hi],i=e[Vi];if(!(e=e[Wi])||e!=zi&&!n)throw Error("Invalid provider user info!");t[Ki]=i||null,t[Gi]=n||null,Mi(this,Xi,e),Mi(this,qi,Fi(t))}var zi="EMAIL_SIGNIN",Hi="email",Vi="newEmail",Wi="requestType",Gi="email",Ki="fromEmail",qi="data",Xi="operation";function Yi(e,t){this.code=$i+e,this.message=t||Zi[e]||""}function Ji(e){var t=e&&e.code;return t?new Yi(t.substring($i.length),e.message):null}C(Yi,Error),Yi.prototype.w=function(){return{code:this.code,message:this.message}},Yi.prototype.toJSON=function(){return this.w()};var $i="auth/",Zi={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The OIDC ID token requires a valid unhashed nonce.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","user-cancelled":"User did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."};function Qi(e){var t=e[rr];if(void 0===t)throw new Yi("missing-continue-uri");if("string"!=typeof t||"string"==typeof t&&!t.length)throw new Yi("invalid-continue-uri");this.h=t,this.b=this.a=null,this.g=!1;var n=e[er];if(n&&"object"==typeof n){t=n[sr];var i=n[or];if(n=n[ar],"string"==typeof t&&t.length){if(this.a=t,void 0!==i&&"boolean"!=typeof i)throw new Yi("argument-error",or+" property must be a boolean when specified.");if(this.g=!!i,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new Yi("argument-error",ar+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==t)throw new Yi("argument-error",sr+" property must be a non empty string when specified.");if(void 0!==i||void 0!==n)throw new Yi("missing-android-pkg-name")}}else if(void 0!==n)throw new Yi("argument-error",er+" property must be a non null object when specified.");if(this.f=null,(t=e[ir])&&"object"==typeof t){if("string"==typeof(t=t[ur])&&t.length)this.f=t;else if(void 0!==t)throw new Yi("argument-error",ur+" property must be a non empty string when specified.")}else if(void 0!==t)throw new Yi("argument-error",ir+" property must be a non null object when specified.");if(void 0!==(t=e[nr])&&"boolean"!=typeof t)throw new Yi("argument-error",nr+" property must be a boolean when specified.");if(this.c=!!t,void 0!==(e=e[tr])&&("string"!=typeof e||"string"==typeof e&&!e.length))throw new Yi("argument-error",tr+" property must be a non empty string when specified.");this.i=e||null}var er="android",tr="dynamicLinkDomain",nr="handleCodeInApp",ir="iOS",rr="url",or="installApp",ar="minimumVersion",sr="packageName",ur="bundleId";function lr(e){var t={};for(var n in t.continueUrl=e.h,t.canHandleCodeInApp=e.c,(t.androidPackageName=e.a)&&(t.androidMinimumVersion=e.b,t.androidInstallApp=e.g),t.iOSBundleId=e.f,t.dynamicLinkDomain=e.i,t)null===t[n]&&delete t[n];return t}var cr=null,fr=null;function dr(e){var t="";return function(e,t){function n(t){for(;i<e.length;){var n=e.charAt(i++),r=fr[n];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}!function(){if(!cr){cr={},fr={};for(var e=0;65>e;e++)cr[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e),fr[cr[e]]=e,62<=e&&(fr["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(e)]=e)}}();for(var i=0;;){var r=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===r)break;t(r<<2|o>>4),64!=a&&(t(o<<4&240|a>>2),64!=s&&t(a<<6&192|s))}}(e,function(e){t+=String.fromCharCode(e)}),t}function hr(e){this.c=e.sub,T(),this.a=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.b=!!e.is_anonymous||"anonymous"==this.a}function pr(e){return(e=mr(e))&&e.sub&&e.iss&&e.aud&&e.exp?new hr(e):null}function mr(e){if(!e)return null;if(3!=(e=e.split(".")).length)return null;for(var t=(4-(e=e[1]).length%4)%4,n=0;n<t;n++)e+=".";try{return JSON.parse(dr(e))}catch(e){}return null}hr.prototype.f=function(){return this.b};var br,gr={Yc:{ab:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",ib:"https://securetoken.googleapis.com/v1/token",id:"p"},$c:{ab:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",ib:"https://staging-securetoken.sandbox.googleapis.com/v1/token",id:"s"},ad:{ab:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",ib:"https://test-securetoken.sandbox.googleapis.com/v1/token",id:"t"}};function vr(e){for(var t in gr)if(gr[t].id===e)return{firebaseEndpoint:(e=gr[t]).ab,secureTokenEndpoint:e.ib};return null}br=vr("__EID__")?"__EID__":void 0;var yr="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),wr=["client_id","response_type","scope","redirect_uri","state"],_r={Tc:{Oa:"locale",Ba:500,Aa:600,Pa:"facebook.com",hb:wr},Vc:{Oa:null,Ba:500,Aa:620,Pa:"github.com",hb:wr},Wc:{Oa:"hl",Ba:515,Aa:680,Pa:"google.com",hb:wr},bd:{Oa:"lang",Ba:485,Aa:705,Pa:"twitter.com",hb:yr}};function xr(e){for(var t in _r)if(_r[t].Pa==e)return _r[t];return null}function kr(e){var t={};t["facebook.com"]=Ar,t["google.com"]=Or,t["github.com"]=Ir,t["twitter.com"]=Nr;var n=e&&e[Sr];try{if(n)return t[n]?new t[n](e):new Cr(e);if(void 0!==e[Er])return new Tr(e)}catch(e){}return null}var Er="idToken",Sr="providerId";function Tr(e){var t=e[Sr];if(!t&&e[Er]){var n=pr(e[Er]);n&&n.a&&(t=n.a)}if(!t)throw Error("Invalid additional user info!");"anonymous"!=t&&"custom"!=t||(t=null),n=!1,void 0!==e.isNewUser?n=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(n=!0),Mi(this,"providerId",t),Mi(this,"isNewUser",n)}function Cr(e){Tr.call(this,e),Mi(this,"profile",Fi((e=Ei(e.rawUserInfo||"{}"))||{}))}function Ar(e){if(Cr.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Ir(e){if(Cr.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Mi(this,"username",this.profile&&this.profile.login||null)}function Or(e){if(Cr.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function Nr(e){if(Cr.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Mi(this,"username",e.screenName||null)}function Pr(e){this.a=tn(e)}function Rr(e){var t=tn(e),n=en(t,"link"),i=en(tn(n),"link");return t=en(t,"deep_link_id"),en(tn(t),"link")||t||i||n||e}function Dr(){}function Lr(e,t){return e.then(function(e){if(e[ka]){var n=pr(e[ka]);if(!n||t!=n.c)throw new Yi("user-mismatch");return e}throw new Yi("user-mismatch")}).s(function(e){throw e&&e.code&&e.code==$i+"user-not-found"?new Yi("user-mismatch"):e})}function Mr(e,t){if(!t)throw new Yi("internal-error","failed to construct a credential");this.a=t,Mi(this,"providerId",e),Mi(this,"signInMethod",e)}function jr(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function Ur(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new Mr(e.providerId,e.pendingToken)}catch(e){}return null}function Fr(e,t,n){if(this.a=null,t.idToken||t.accessToken)t.idToken&&Mi(this,"idToken",t.idToken),t.accessToken&&Mi(this,"accessToken",t.accessToken),t.nonce&&!t.pendingToken&&Mi(this,"nonce",t.nonce),t.pendingToken&&(this.a=t.pendingToken);else{if(!t.oauthToken||!t.oauthTokenSecret)throw new Yi("internal-error","failed to construct a credential");Mi(this,"accessToken",t.oauthToken),Mi(this,"secret",t.oauthTokenSecret)}Mi(this,"providerId",e),Mi(this,"signInMethod",n)}function Br(e){var t={};return e.idToken&&(t.id_token=e.idToken),e.accessToken&&(t.access_token=e.accessToken),e.secret&&(t.oauth_token_secret=e.secret),t.providerId=e.providerId,e.nonce&&!e.a&&(t.nonce=e.nonce),t={postBody:pn(t).toString(),requestUri:"http://localhost"},e.a&&(delete t.postBody,t.pendingToken=e.a),t}function zr(e){if(e&&e.providerId&&e.signInMethod){var t={idToken:e.oauthIdToken,accessToken:e.oauthTokenSecret?null:e.oauthAccessToken,oauthTokenSecret:e.oauthTokenSecret,oauthToken:e.oauthTokenSecret&&e.oauthAccessToken,nonce:e.nonce,pendingToken:e.pendingToken};try{return new Fr(e.providerId,t,e.signInMethod)}catch(e){}}return null}function Hr(e,t){this.Dc=t||[],ji(this,{providerId:e,isOAuthProvider:!0}),this.zb={},this.cb=(xr(e)||{}).Oa||null,this.$a=null}function Vr(e){if("string"!=typeof e||0!=e.indexOf("saml."))throw new Yi("argument-error",'SAML provider IDs must be prefixed with "saml."');Hr.call(this,e,[])}function Wr(e){Hr.call(this,e,wr),this.a=[]}function Gr(){Wr.call(this,"facebook.com")}function Kr(e){if(!e)throw new Yi("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return y(e)&&(t=e.accessToken),(new Gr).credential({accessToken:t})}function qr(){Wr.call(this,"github.com")}function Xr(e){if(!e)throw new Yi("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return y(e)&&(t=e.accessToken),(new qr).credential({accessToken:t})}function Yr(){Wr.call(this,"google.com"),this.ua("profile")}function Jr(e,t){var n=e;return y(e)&&(n=e.idToken,t=e.accessToken),(new Yr).credential({idToken:n,accessToken:t})}function $r(){Hr.call(this,"twitter.com",yr)}function Zr(e,t){var n=e;if(y(n)||(n={oauthToken:e,oauthTokenSecret:t}),!n.oauthToken||!n.oauthTokenSecret)throw new Yi("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new Fr("twitter.com",n,"twitter.com")}function Qr(e,t,n){this.a=e,this.c=t,Mi(this,"providerId","password"),Mi(this,"signInMethod",n===to.EMAIL_LINK_SIGN_IN_METHOD?to.EMAIL_LINK_SIGN_IN_METHOD:to.EMAIL_PASSWORD_SIGN_IN_METHOD)}function eo(e){return e&&e.email&&e.password?new Qr(e.email,e.password,e.signInMethod):null}function to(){ji(this,{providerId:"password",isOAuthProvider:!1})}function no(e,t){if(!(t=io(t)))throw new Yi("argument-error","Invalid email link!");return new Qr(e,t,to.EMAIL_LINK_SIGN_IN_METHOD)}function io(e){var t=en((e=new Pr(e=Rr(e))).a,"oobCode")||null;return"signIn"===(en(e.a,"mode")||null)&&t?t:null}function ro(e){if(!(e.Ta&&e.Sa||e.Fa&&e.$))throw new Yi("internal-error");this.a=e,Mi(this,"providerId","phone"),Mi(this,"signInMethod","phone")}function oo(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var t={};return F(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(n){e[n]&&(t[n]=e[n])}),new ro(t)}return null}function ao(e){return e.a.Fa&&e.a.$?{temporaryProof:e.a.Fa,phoneNumber:e.a.$}:{sessionInfo:e.a.Ta,code:e.a.Sa}}function so(e){try{this.a=e||i.a.auth()}catch(e){throw new Yi("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().")}ji(this,{providerId:"phone",isOAuthProvider:!1})}function uo(e,t){if(!e)throw new Yi("missing-verification-id");if(!t)throw new Yi("missing-verification-code");return new ro({Ta:e,Sa:t})}function lo(e){if(e.temporaryProof&&e.phoneNumber)return new ro({Fa:e.temporaryProof,$:e.phoneNumber});var t=e&&e.providerId;if(!t||"password"===t)return null;var n=e&&e.oauthAccessToken,i=e&&e.oauthTokenSecret,r=e&&e.nonce,o=e&&e.oauthIdToken,a=e&&e.pendingToken;try{switch(t){case"google.com":return Jr(o,n);case"facebook.com":return Kr(n);case"github.com":return Xr(n);case"twitter.com":return Zr(n,i);default:return n||i||o||a?a?0==t.indexOf("saml.")?new Mr(t,a):new Fr(t,{pendingToken:a,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},t):new Wr(t).credential({idToken:o,accessToken:n,rawNonce:r}):null}}catch(e){return null}}function co(e){if(!e.isOAuthProvider)throw new Yi("invalid-oauth-provider")}function fo(e,t,n,i,r,o){if(this.c=e,this.b=t||null,this.g=n||null,this.f=i||null,this.h=o||null,this.a=r||null,!this.g&&!this.a)throw new Yi("invalid-auth-event");if(this.g&&this.a)throw new Yi("invalid-auth-event");if(this.g&&!this.f)throw new Yi("invalid-auth-event")}function ho(e){return(e=e||{}).type?new fo(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&Ji(e.error),e.postBody):null}function po(){this.b=null,this.a=[]}C(Cr,Tr),C(Ar,Cr),C(Ir,Cr),C(Or,Cr),C(Nr,Cr),Mr.prototype.la=function(e){return za(e,jr(this))},Mr.prototype.b=function(e,t){var n=jr(this);return n.idToken=t,Ha(e,n)},Mr.prototype.f=function(e,t){return Lr(Va(e,jr(this)),t)},Mr.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},Fr.prototype.la=function(e){return za(e,Br(this))},Fr.prototype.b=function(e,t){var n=Br(this);return n.idToken=t,Ha(e,n)},Fr.prototype.f=function(e,t){return Lr(Va(e,Br(this)),t)},Fr.prototype.w=function(){var e={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),this.nonce&&(e.nonce=this.nonce),this.a&&(e.pendingToken=this.a),e},Hr.prototype.Da=function(e){return this.zb=le(e),this},C(Vr,Hr),C(Wr,Hr),Wr.prototype.ua=function(e){return H(this.a,e)||this.a.push(e),this},Wr.prototype.Fb=function(){return K(this.a)},Wr.prototype.credential=function(e,t){var n;if(!(n=y(e)?{idToken:e.idToken||null,accessToken:e.accessToken||null,nonce:e.rawNonce||null}:{idToken:e||null,accessToken:t||null}).idToken&&!n.accessToken)throw new Yi("argument-error","credential failed: must provide the ID token and/or the access token.");return new Fr(this.providerId,n,this.providerId)},C(Gr,Wr),Mi(Gr,"PROVIDER_ID","facebook.com"),Mi(Gr,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),C(qr,Wr),Mi(qr,"PROVIDER_ID","github.com"),Mi(qr,"GITHUB_SIGN_IN_METHOD","github.com"),C(Yr,Wr),Mi(Yr,"PROVIDER_ID","google.com"),Mi(Yr,"GOOGLE_SIGN_IN_METHOD","google.com"),C($r,Hr),Mi($r,"PROVIDER_ID","twitter.com"),Mi($r,"TWITTER_SIGN_IN_METHOD","twitter.com"),Qr.prototype.la=function(e){return this.signInMethod==to.EMAIL_LINK_SIGN_IN_METHOD?vs(e,$a,{email:this.a,oobCode:this.c}):vs(e,ps,{email:this.a,password:this.c})},Qr.prototype.b=function(e,t){return this.signInMethod==to.EMAIL_LINK_SIGN_IN_METHOD?vs(e,Za,{idToken:t,email:this.a,oobCode:this.c}):vs(e,us,{idToken:t,email:this.a,password:this.c})},Qr.prototype.f=function(e,t){return Lr(this.la(e),t)},Qr.prototype.w=function(){return{email:this.a,password:this.c,signInMethod:this.signInMethod}},ji(to,{PROVIDER_ID:"password"}),ji(to,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),ji(to,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),ro.prototype.la=function(e){return e.Ua(ao(this))},ro.prototype.b=function(e,t){var n=ao(this);return n.idToken=t,vs(e,bs,n)},ro.prototype.f=function(e,t){var n=ao(this);return n.operation="REAUTH",Lr(e=vs(e,gs,n),t)},ro.prototype.w=function(){var e={providerId:"phone"};return this.a.Ta&&(e.verificationId=this.a.Ta),this.a.Sa&&(e.verificationCode=this.a.Sa),this.a.Fa&&(e.temporaryProof=this.a.Fa),this.a.$&&(e.phoneNumber=this.a.$),e},so.prototype.Ua=function(e,t){var n=this.a.c;return Ae(t.verify()).then(function(i){if(!l(i))throw new Yi("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(t.type){case"recaptcha":return function(e,t){return vs(e,as,t)}(n,{phoneNumber:e,recaptchaToken:i}).then(function(e){return"function"==typeof t.reset&&t.reset(),e},function(e){throw"function"==typeof t.reset&&t.reset(),e});default:throw new Yi("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}})},ji(so,{PROVIDER_ID:"phone"}),ji(so,{PHONE_SIGN_IN_METHOD:"phone"}),fo.prototype.getUid=function(){var e=[];return e.push(this.c),this.b&&e.push(this.b),this.f&&e.push(this.f),this.i&&e.push(this.i),e.join("-")},fo.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.h,error:this.a&&this.a.w()}};var mo,bo=null;function go(e){var t="unauthorized-domain",n=void 0,i=tn(e);e=i.b,"chrome-extension"==(i=i.f)?n=pe("This chrome extension ID (chrome-extension://%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.",e):"http"==i||"https"==i?n=pe("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.",e):t="operation-not-supported-in-this-environment",Yi.call(this,t,n)}function vo(e,t,n){Yi.call(this,e,n),(e=t||{}).Ab&&Mi(this,"email",e.Ab),e.$&&Mi(this,"phoneNumber",e.$),e.credential&&Mi(this,"credential",e.credential)}function yo(e){if(e.code){var t=e.code||"";0==t.indexOf($i)&&(t=t.substring($i.length));var n={credential:lo(e)};if(e.email)n.Ab=e.email;else if(e.phoneNumber)n.$=e.phoneNumber;else if(!n.credential)return new Yi(t,e.message||void 0);return new vo(t,n,e.message)}return null}function wo(){}function _o(e){return e.c||(e.c=e.b())}function xo(){}function ko(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var i=t[n];try{return new ActiveXObject(i),e.f=i}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function Eo(){}function So(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=E(this.dc,this),this.a.onerror=E(this.Gb,this),this.a.onprogress=E(this.ec,this),this.a.ontimeout=E(this.ic,this)}function To(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function Co(e,t,n){this.reset(e,t,n,void 0,void 0)}po.prototype.subscribe=function(e){var t=this;this.a.push(e),this.b||(this.b=function(e){for(var n=0;n<t.a.length;n++)t.a[n](e)},"function"==typeof(e=bi("universalLinks.subscribe",u))&&e(null,this.b))},po.prototype.unsubscribe=function(e){W(this.a,function(t){return t==e})},C(go,Yi),C(vo,Yi),vo.prototype.w=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber);var t=this.credential&&this.credential.w();return t&&he(e,t),e},vo.prototype.toJSON=function(){return this.w()},wo.prototype.c=null,C(xo,wo),xo.prototype.a=function(){var e=ko(this);return e?new ActiveXObject(e):new XMLHttpRequest},xo.prototype.b=function(){var e={};return ko(this)&&(e[0]=!0,e[1]=!0),e},mo=new xo,C(Eo,wo),Eo.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new So;throw Error("Unsupported browser")},Eo.prototype.b=function(){return{}},(t=So.prototype).open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},t.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},t.abort=function(){this.a.abort()},t.setRequestHeader=function(){},t.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},t.dc=function(){this.status=200,this.response=this.responseText=this.a.responseText,To(this,4)},t.Gb=function(){this.status=500,this.response=this.responseText="",To(this,4)},t.ic=function(){this.Gb()},t.ec=function(){this.status=200,To(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Co.prototype.a=null;function Ao(e){this.f=e,this.b=this.c=this.a=null}function Io(e,t){this.name=e,this.value=t}Co.prototype.reset=function(e,t,n,i,r){"number"==typeof r||0,i||T(),delete this.a},Io.prototype.toString=function(){return this.name};var Oo=new Io("SEVERE",1e3),No=new Io("WARNING",900),Po=new Io("CONFIG",700),Ro=new Io("FINE",500);Ao.prototype.log=function(e,t,n){if(e.value>=function e(t){return t.c?t.c:t.a?e(t.a):(N("Root logger has no level set."),null)}(this).value)for(v(t)&&(t=t()),e=new Co(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var Do={},Lo=null;function Mo(e){var t;if(Lo||(Lo=new Ao(""),Do[""]=Lo,Lo.c=Po),!(t=Do[e])){t=new Ao(e);var n=e.lastIndexOf("."),i=e.substr(n+1);(n=Mo(e.substr(0,n))).b||(n.b={}),n.b[i]=t,t.a=n,Do[e]=t}return t}function jo(e,t){e&&e.log(Ro,t,void 0)}function Uo(e){this.f=e}function Fo(e){jt.call(this),this.u=e,this.readyState=Bo,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.o="GET",this.g="",this.a=!1,this.h=Mo("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}C(Uo,wo),Uo.prototype.a=function(){return new Fo(this.f)},Uo.prototype.b=function(e){return function(){return e}}({}),C(Fo,jt);var Bo=0;function zo(e){e.c.read().then(e.cc.bind(e)).catch(e.Ma.bind(e))}function Ho(e,t){t&&e.f&&(e.status=e.f.status,e.statusText=e.f.statusText),e.readyState=4,e.f=null,e.c=null,e.l=null,Vo(e)}function Vo(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Wo(e){jt.call(this),this.headers=new Gt,this.D=e||null,this.c=!1,this.A=this.a=null,this.h=this.N=this.l="",this.f=this.I=this.i=this.G=!1,this.g=0,this.u=null,this.o=Go,this.v=this.O=!1}(t=Fo.prototype).open=function(e,t){if(this.readyState!=Bo)throw this.abort(),Error("Error reopening a connection");this.o=e,this.g=t,this.readyState=1,Vo(this)},t.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.i,method:this.o,credentials:void 0,cache:void 0};e&&(t.body=e),this.u.fetch(new Request(this.g,t)).then(this.hc.bind(this),this.Ma.bind(this))},t.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,Ho(this,!1)),this.readyState=Bo},t.hc=function(e){this.a&&(this.f=e,this.b||(this.b=e.headers,this.readyState=2,Vo(this)),this.a&&(this.readyState=3,Vo(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.fc.bind(this),this.Ma.bind(this)):void 0!==u.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.l=new TextDecoder,zo(this)):e.text().then(this.gc.bind(this),this.Ma.bind(this)))))},t.cc=function(e){if(this.a){var t=this.l.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});t&&(this.response=this.responseText+=t),e.done?Ho(this,!0):Vo(this),3==this.readyState&&zo(this)}},t.gc=function(e){this.a&&(this.response=this.responseText=e,Ho(this,!0))},t.fc=function(e){this.a&&(this.response=e,Ho(this,!0))},t.Ma=function(e){var t=this.h;t&&t.log(No,"Failed to fetch url "+this.g,e instanceof Error?e:Error(e)),this.a&&Ho(this,!0)},t.setRequestHeader=function(e,t){this.i.append(e,t)},t.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.h)&&e.log(No,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var e=this.h;return e&&e.log(No,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}e=[];for(var t=this.b.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},C(Wo,jt);var Go="";Wo.prototype.b=Mo("goog.net.XhrIo");var Ko=/^https?$/i,qo=["POST","PUT"];function Xo(e,t,n,i,r){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);n=n?n.toUpperCase():"GET",e.l=t,e.h="",e.N=n,e.G=!1,e.c=!0,e.a=e.D?e.D.a():mo.a(),e.A=e.D?_o(e.D):_o(mo),e.a.onreadystatechange=E(e.Jb,e);try{jo(e.b,ia(e,"Opening Xhr")),e.I=!0,e.a.open(n,String(t),!0),e.I=!1}catch(t){return jo(e.b,ia(e,"Error opening Xhr: "+t.message)),void Jo(e,t)}t=i||"";var o=new Gt(e.headers);r&&function(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(g(e)||l(e))F(e,t,void 0);else for(var n=Wt(e),i=Vt(e),r=i.length,o=0;o<r;o++)t.call(void 0,i[o],n&&n[o],e)}(r,function(e,t){o.set(t,e)}),r=function(e){e:{for(var t=Yo,n=e.length,i=l(e)?e.split(""):e,r=0;r<n;r++)if(r in i&&t.call(void 0,i[r],r,e)){t=r;break e}t=-1}return 0>t?null:l(e)?e.charAt(t):e[t]}(o.U()),i=u.FormData&&t instanceof u.FormData,!H(qo,n)||r||i||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach(function(e,t){this.a.setRequestHeader(t,e)},e),e.o&&(e.a.responseType=e.o),"withCredentials"in e.a&&e.a.withCredentials!==e.O&&(e.a.withCredentials=e.O);try{ea(e),0<e.g&&(e.v=function(e){return Je&&st(9)&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(e.a),jo(e.b,ia(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.v)),e.v?(e.a.timeout=e.g,e.a.ontimeout=E(e.Ga,e)):e.u=zt(e.Ga,e.g,e)),jo(e.b,ia(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(t){jo(e.b,ia(e,"Send error: "+t.message)),Jo(e,t)}}function Yo(e){return"content-type"==e.toLowerCase()}function Jo(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,$o(e),Qo(e)}function $o(e){e.G||(e.G=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function Zo(e){if(e.c&&void 0!==s)if(e.A[1]&&4==ta(e)&&2==na(e))jo(e.b,ia(e,"Local request error detected and ignored"));else if(e.i&&4==ta(e))zt(e.Jb,0,e);else if(e.dispatchEvent("readystatechange"),4==ta(e)){jo(e.b,ia(e,"Request complete")),e.c=!1;try{var t,n=na(e);e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break e;default:i=!1}if(!(t=i)){var r;if(r=0===n){var o=String(e.l).match(Xt)[1]||null;if(!o&&u.self&&u.self.location){var a=u.self.location.protocol;o=a.substr(0,a.length-1)}r=!Ko.test(o?o.toLowerCase():"")}t=r}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var l=2<ta(e)?e.a.statusText:""}catch(t){jo(e.b,"Can not get status: "+t.message),l=""}e.h=l+" ["+na(e)+"]",$o(e)}}finally{Qo(e)}}}function Qo(e,t){if(e.a){ea(e);var n=e.a,i=e.A[0]?h:null;e.a=null,e.A=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=i}catch(t){(e=e.b)&&e.log(Oo,"Problem encountered resetting onreadystatechange: "+t.message,void 0)}}}function ea(e){e.a&&e.v&&(e.a.ontimeout=null),e.u&&(u.clearTimeout(e.u),e.u=null)}function ta(e){return e.a?e.a.readyState:0}function na(e){try{return 2<ta(e)?e.a.status:-1}catch(e){return-1}}function ia(e,t){return t+" ["+e.N+" "+e.l+" "+na(e)+"]"}function ra(e){var t=ma;this.g=[],this.v=t,this.u=e||null,this.f=this.a=!1,this.c=void 0,this.l=this.A=this.i=!1,this.h=0,this.b=null,this.m=0}function oa(e,t,n){e.a=!0,e.c=n,e.f=!t,la(e)}function aa(e){if(e.a){if(!e.l)throw new ca(e);e.l=!1}}function sa(e,t,n,i){e.g.push([t,n,i]),e.a&&la(e)}function ua(e){return z(e.g,function(e){return v(e[1])})}function la(e){if(e.h&&e.a&&ua(e)){var t=e.h,n=ha[t];n&&(u.clearTimeout(n.a),delete ha[t]),e.h=0}e.b&&(e.b.m--,delete e.b),t=e.c;for(var i=n=!1;e.g.length&&!e.i;){var r=e.g.shift(),o=r[0],a=r[1];if(r=r[2],o=e.f?a:o)try{var s=o.call(r||e.u,t);void 0!==s&&(e.f=e.f&&(s==t||s instanceof Error),e.c=t=s),(A(t)||"function"==typeof u.Promise&&t instanceof u.Promise)&&(i=!0,e.i=!0)}catch(i){t=i,e.f=!0,ua(e)||(n=!0)}}e.c=t,i&&(s=E(e.o,e,!0),i=E(e.o,e,!1),t instanceof ra?(sa(t,s,i),t.A=!0):t.then(s,i)),n&&(t=new da(t),ha[t.a]=t,e.h=t.a)}function ca(){I.call(this)}function fa(){I.call(this)}function da(e){this.a=u.setTimeout(E(this.c,this),0),this.b=e}(t=Wo.prototype).Ga=function(){void 0!==s&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",jo(this.b,ia(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(jo(this.b,ia(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Qo(this))},t.va=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Qo(this,!0)),Wo.qb.va.call(this)},t.Jb=function(){this.qa||(this.I||this.i||this.f?Zo(this):this.wc())},t.wc=function(){Zo(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.o){case Go:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(Oo,"Response type "+this.o+" is not supported on this browser",void 0),null}catch(e){return jo(this.b,"Can not get response: "+e.message),null}},ra.prototype.cancel=function(e){if(this.a)this.c instanceof ra&&this.c.cancel();else{if(this.b){var t=this.b;delete this.b,e?t.cancel(e):(t.m--,0>=t.m&&t.cancel())}this.v?this.v.call(this.u,this):this.l=!0,this.a||(e=new fa(this),aa(this),oa(this,!1,e))}},ra.prototype.o=function(e,t){this.i=!1,oa(this,e,t)},ra.prototype.then=function(e,t,n){var i,r,o=new _e(function(e,t){i=e,r=t});return sa(this,i,function(e){e instanceof fa?o.cancel():r(e)}),o.then(e,t,n)},ra.prototype.$goog_Thenable=!0,C(ca,I),ca.prototype.message="Deferred has already fired",ca.prototype.name="AlreadyCalledError",C(fa,I),fa.prototype.message="Deferred was canceled",fa.prototype.name="CanceledError",da.prototype.c=function(){throw delete ha[this.a],this.b};var ha={};function pa(e){var t={},n=t.document||document,i=Tn(e).toString(),r=document.createElement("SCRIPT"),o={Lb:r,Ga:void 0},a=new ra(o),s=null,l=null!=t.timeout?t.timeout:5e3;return 0<l&&(s=window.setTimeout(function(){ba(r,!0);var e=new ya(va,"Timeout reached for loading script "+i);aa(a),oa(a,!1,e)},l),o.Ga=s),r.onload=r.onreadystatechange=function(){r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(ba(r,t.dd||!1,s),aa(a),oa(a,!0,null))},r.onerror=function(){ba(r,!0,s);var e=new ya(ga,"Error while loading script "+i);aa(a),oa(a,!1,e)},he(o=t.attributes||{},{type:"text/javascript",charset:"UTF-8"}),zn(r,o),function(e,t){e.src=Tn(t),null===d&&(d=(t=(t=u.document).querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&f.test(t)?t:""),(t=d)&&e.setAttribute("nonce",t)}(r,e),function(e){var t;return(t=(e||document).getElementsByTagName("HEAD"))&&0!=t.length?t[0]:e.documentElement}(n).appendChild(r),a}function ma(){if(this&&this.Lb){var e=this.Lb;e&&"SCRIPT"==e.tagName&&ba(e,!0,this.Ga)}}function ba(e,t,n){null!=n&&u.clearTimeout(n),e.onload=h,e.onerror=h,e.onreadystatechange=h,t&&window.setTimeout(function(){e&&e.parentNode&&e.parentNode.removeChild(e)},0)}var ga=0,va=1;function ya(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),I.call(this,n),this.code=e}function wa(e){this.f=e}function _a(e,t,n){if(this.b=e,e=t||{},this.i=e.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=e.secureTokenTimeout||Ea,this.f=le(e.secureTokenHeaders||Sa),this.g=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.h=e.firebaseTimeout||Ta,this.a=le(e.firebaseHeaders||Ca),n&&(this.a["X-Client-Version"]=n,this.f["X-Client-Version"]=n),n="Node"==ui(),!(n=u.XMLHttpRequest||n&&i.a.INTERNAL.node&&i.a.INTERNAL.node.XMLHttpRequest)&&!si())throw new Yi("internal-error","The XMLHttpRequest compatibility library was not found.");this.c=void 0,si()?this.c=new Uo(self):li()?this.c=new wa(n):this.c=new Eo}C(ya,I),C(wa,wo),wa.prototype.a=function(){return new this.f},wa.prototype.b=function(){return{}};var xa,ka="idToken",Ea=new Ai(3e4,6e4),Sa={"Content-Type":"application/x-www-form-urlencoded"},Ta=new Ai(3e4,6e4),Ca={"Content-Type":"application/json"};function Aa(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function Ia(e,t){t?(e.a["X-Client-Version"]=t,e.f["X-Client-Version"]=t):(delete e.a["X-Client-Version"],delete e.f["X-Client-Version"])}function Oa(e,t,n,i,r,o,a){(function(){var e=mi();return!((e=di(e)!=fi?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e||Je&&ot&&!(9<ot))})()||si()?e=E(e.o,e):(xa||(xa=new _e(function(e,t){!function(e,t){if(((window.gapi||{}).client||{}).request)e();else{u[Pa]=function(){((window.gapi||{}).client||{}).request?e():t(Error("CORS_UNSUPPORTED"))};var n=Cn(Na,{onload:Pa});!function(e,t){sa(e,null,t,void 0)}(pa(n),function(){t(Error("CORS_UNSUPPORTED"))})}}(e,t)})),e=E(e.l,e)),e(t,n,i,r,o,a)}_a.prototype.o=function(e,t,n,i,r,o){if(si()&&(void 0===u.fetch||void 0===u.Headers||void 0===u.Request))throw new Yi("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 a=new Wo(this.c);if(o){a.g=Math.max(0,o);var s=setTimeout(function(){a.dispatchEvent("timeout")},o)}Ut(a,"complete",function(){s&&clearTimeout(s);var e=null;try{e=JSON.parse(function(e){try{return e.a?e.a.responseText:""}catch(t){return jo(e.b,"Can not get responseText: "+t.message),""}}(this))||null}catch(t){e=null}t&&t(e)}),Ft(a,"ready",function(){s&&clearTimeout(s),Ge(this)}),Ft(a,"timeout",function(){s&&clearTimeout(s),Ge(this),t&&t(null)}),Xo(a,e,n,i,r)};var Na=new _n(En,"https://apis.google.com/js/client.js?onload=%{onload}"),Pa="__fcb"+Math.floor(1e6*Math.random()).toString();function Ra(e){if(!l(e=e.email)||!ii.test(e))throw new Yi("invalid-email")}function Da(e){"email"in e&&Ra(e)}function La(e){if(!e[ka])throw new Yi("internal-error")}function Ma(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new Yi("internal-error")}else{if(!e.sessionInfo)throw new Yi("missing-verification-id");if(!e.code)throw new Yi("missing-verification-code")}}_a.prototype.l=function(e,t,n,i,r){var o=this;xa.then(function(){window.gapi.client.setApiKey(o.b);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:n,body:i,headers:r,authType:"none",callback:function(e){window.gapi.auth.setToken(a),t&&t(e)}})}).s(function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})})},_a.prototype.ob=function(){return vs(this,ls,{})},_a.prototype.rb=function(e,t){return vs(this,ss,{idToken:e,email:t})},_a.prototype.sb=function(e,t){return vs(this,us,{idToken:e,password:t})};var ja={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function Ua(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new Yi("internal-error")}function Fa(e,t){return t.oauthIdToken&&t.providerId&&0==t.providerId.indexOf("oidc.")&&!t.pendingToken&&(e.sessionId?t.nonce=e.sessionId:e.postBody&&(bn(e=new dn(e.postBody),"nonce")&&(t.nonce=e.get("nonce")))),t}function Ba(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=yo(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=yo(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=yo(e)):e.errorMessage&&(t=ys(e.errorMessage)),t)throw t;if(!e[ka])throw new Yi("internal-error")}function za(e,t){return t.returnIdpCredential=!0,vs(e,cs,t)}function Ha(e,t){return t.returnIdpCredential=!0,vs(e,ds,t)}function Va(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,vs(e,fs,t)}function Wa(e){if(!e.oobCode)throw new Yi("invalid-action-code")}(t=_a.prototype).tb=function(e,t){var n={idToken:e},i=[];return se(ja,function(e,r){var o=t[r];null===o?i.push(e):r in t&&(n[r]=o)}),i.length&&(n.deleteAttribute=i),vs(this,ss,n)},t.kb=function(e,t){return he(e={requestType:"PASSWORD_RESET",email:e},t),vs(this,ns,e)},t.lb=function(e,t){return he(e={requestType:"EMAIL_SIGNIN",email:e},t),vs(this,es,e)},t.jb=function(e,t){return he(e={requestType:"VERIFY_EMAIL",idToken:e},t),vs(this,ts,e)},t.Ua=function(e){return vs(this,ms,e)},t.Za=function(e,t){return vs(this,os,{oobCode:e,newPassword:t})},t.Ka=function(e){return vs(this,Ka,{oobCode:e})},t.Wa=function(e){return vs(this,Ga,{oobCode:e})};var Ga={endpoint:"setAccountInfo",C:Wa,da:"email"},Ka={endpoint:"resetPassword",C:Wa,J:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t)throw new Yi("internal-error")}},qa={endpoint:"signupNewUser",C:function(e){if(Ra(e),!e.password)throw new Yi("weak-password")},J:La,R:!0},Xa={endpoint:"createAuthUri"},Ya={endpoint:"deleteAccount",T:["idToken"]},Ja={endpoint:"setAccountInfo",T:["idToken","deleteProvider"],C:function(e){if(!b(e.deleteProvider))throw new Yi("internal-error")}},$a={endpoint:"emailLinkSignin",T:["email","oobCode"],C:Ra,J:La,R:!0},Za={endpoint:"emailLinkSignin",T:["idToken","email","oobCode"],C:Ra,J:La,R:!0},Qa={endpoint:"getAccountInfo"},es={endpoint:"getOobConfirmationCode",T:["requestType"],C:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new Yi("internal-error");Ra(e)},da:"email"},ts={endpoint:"getOobConfirmationCode",T:["idToken","requestType"],C:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new Yi("internal-error")},da:"email"},ns={endpoint:"getOobConfirmationCode",T:["requestType"],C:function(e){if("PASSWORD_RESET"!=e.requestType)throw new Yi("internal-error");Ra(e)},da:"email"},is={wb:!0,endpoint:"getProjectConfig",Ib:"GET"},rs={wb:!0,endpoint:"getRecaptchaParam",Ib:"GET",J:function(e){if(!e.recaptchaSiteKey)throw new Yi("internal-error")}},os={endpoint:"resetPassword",C:Wa,da:"email"},as={endpoint:"sendVerificationCode",T:["phoneNumber","recaptchaToken"],da:"sessionInfo"},ss={endpoint:"setAccountInfo",T:["idToken"],C:Da,R:!0},us={endpoint:"setAccountInfo",T:["idToken"],C:function(e){if(Da(e),!e.password)throw new Yi("weak-password")},J:La,R:!0},ls={endpoint:"signupNewUser",J:La,R:!0},cs={endpoint:"verifyAssertion",C:Ua,Qa:Fa,J:Ba,R:!0},fs={endpoint:"verifyAssertion",C:Ua,Qa:Fa,J:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new Yi("user-not-found");if(e.errorMessage)throw ys(e.errorMessage);if(!e[ka])throw new Yi("internal-error")},R:!0},ds={endpoint:"verifyAssertion",C:function(e){if(Ua(e),!e.idToken)throw new Yi("internal-error")},Qa:Fa,J:Ba,R:!0},hs={endpoint:"verifyCustomToken",C:function(e){if(!e.token)throw new Yi("invalid-custom-token")},J:La,R:!0},ps={endpoint:"verifyPassword",C:function(e){if(Ra(e),!e.password)throw new Yi("wrong-password")},J:La,R:!0},ms={endpoint:"verifyPhoneNumber",C:Ma,J:La},bs={endpoint:"verifyPhoneNumber",C:function(e){if(!e.idToken)throw new Yi("internal-error");Ma(e)},J:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",yo(e);La(e)}},gs={Wb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",C:Ma,J:La};function vs(e,t,n){if(!function(e,t){if(!t||!t.length)return!0;if(!e)return!1;for(var n=0;n<t.length;n++){var i=e[t[n]];if(null==i||""===i)return!1}return!0}(n,t.T))return Ie(new Yi("internal-error"));var i,r=t.Ib||"POST";return Ae(n).then(t.C).then(function(){return t.R&&(n.returnSecureToken=!0),function(e,t,n,i,r,o){var a=tn(e.g+t);Qt(a,"key",e.b),o&&Qt(a,"cb",T().toString());var s="GET"==n;if(s)for(var u in i)i.hasOwnProperty(u)&&Qt(a,u,i[u]);return new _e(function(t,o){Oa(e,a.toString(),function(e){e?e.error?o(ws(e,r||{})):t(e):o(new Yi("network-request-failed"))},n,s?void 0:Gn(ki(i)),e.a,e.h.get())})}(e,t.endpoint,r,n,t.Wb,t.wb||!1)}).then(function(e){return i=e,t.Qa?t.Qa(n,i):i}).then(t.J).then(function(){if(!t.da)return i;if(!(t.da in i))throw new Yi("internal-error");return i[t.da]})}function ys(e){return ws({error:{errors:[{message:e}],code:400,message:e}})}function ws(e,t){var n=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",i={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=i[n]?new Yi(i[n]):null)return n;for(var r in n=e.error&&e.error.message||"",he(i={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",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",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",ADMIN_ONLY_OPERATION:"admin-restricted-operation"},t||{}),t=(t=n.match(/^[^\s]+\s*:\s*(.*)$/))&&1<t.length?t[1]:void 0,i)if(0===n.indexOf(r))return new Yi(i[r],t);return!t&&e&&(t=xi(e)),new Yi("internal-error",t)}function _s(e){this.b=e,this.a=null,this.fb=function(e){return(Ss||(Ss=new _e(function(e,t){function n(){Ci(),bi("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){Ci(),t(Error("Network Error"))},timeout:ks.get()})}if(bi("gapi.iframes.Iframe"))e();else if(bi("gapi.load"))n();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();u[i]=function(){bi("gapi.load")?n():t(Error("Network Error"))},Ae(pa(i=Cn(xs,{onload:i}))).s(function(){t(Error("Network Error"))})}}).s(function(e){throw Ss=null,e}))).then(function(){return new _e(function(t,n){bi("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:bi("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(i){function r(){clearTimeout(o),t()}e.a=i,e.a.restyle({setHideOnLeave:!1});var o=setTimeout(function(){n(Error("Network Error"))},Es.get());i.ping(r).then(r,function(){n(Error("Network Error"))})})})})}(this)}var xs=new _n(En,"https://apis.google.com/js/api.js?onload=%{onload}"),ks=new Ai(3e4,6e4),Es=new Ai(5e3,15e3),Ss=null;function Ts(e,t,n){this.i=e,this.g=t,this.h=n,this.f=null,this.a=nn(this.i,"/__/auth/iframe"),Qt(this.a,"apiKey",this.g),Qt(this.a,"appName",this.h),this.b=null,this.c=[]}function Cs(e,t,n,i,r){this.o=e,this.l=t,this.c=n,this.m=i,this.h=this.g=this.i=null,this.a=r,this.f=null}function As(e){try{return i.a.app(e).auth().ya()}catch(e){return[]}}function Is(e,t,n,i,r){this.l=e,this.f=t,this.b=n,this.c=i||null,this.h=r||null,this.o=this.u=this.v=null,this.g=[],this.m=this.a=null}function Os(e){var t=$n();return function(e){return vs(e,is,{}).then(function(e){return e.authorizedDomains||[]})}(e).then(function(e){e:{var n=tn(t),i=n.f;n=n.b;for(var r=0;r<e.length;r++){var o=e[r],a=n,s=i;if(0==o.indexOf("chrome-extension://")?a=tn(o).b==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:ni.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){e=!0;break e}}e=!1}if(!e)throw new go($n())})}function Ns(e){return e.m?e.m:(e.m=ri().then(function(){if(!e.u){var t=e.c,n=e.h,i=As(e.b),r=new Ts(e.l,e.f,e.b);r.f=t,r.b=n,r.c=K(i||[]),e.u=r.toString()}e.i=new _s(e.u),function(e){if(!e.i)throw Error("IfcHandler must be initialized!");!function(e,t){e.fb.then(function(){e.a.register("authEvent",t,bi("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}(e.i,function(t){var n={};if(t&&t.authEvent){var i=!1;for(t=ho(t.authEvent),n=0;n<e.g.length;n++)i=e.g[n](t)||i;return(n={}).status=i?"ACK":"ERROR",Ae(n)}return n.status="ERROR",Ae(n)})}(e)}),e.m)}function Ps(e){return e.o||(e.v=e.c?pi(e.c,As(e.b)):null,e.o=new _a(e.f,vr(e.h),e.v)),e.o}function Rs(e,t,n,i,r,o,a,s,u,l){return(e=new Cs(e,t,n,i,r)).i=o,e.g=a,e.h=s,e.b=le(u||null),e.f=l,e.toString()}function Ds(e){if(this.a=e||i.a.INTERNAL.reactNative&&i.a.INTERNAL.reactNative.AsyncStorage,!this.a)throw new Yi("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function Ls(e){this.b=e,this.a={},this.c=E(this.f,this)}Ts.prototype.toString=function(){return this.f?Qt(this.a,"v",this.f):mn(this.a.a,"v"),this.b?Qt(this.a,"eid",this.b):mn(this.a.a,"eid"),this.c.length?Qt(this.a,"fw",this.c.join(",")):mn(this.a.a,"fw"),this.a.toString()},Cs.prototype.toString=function(){var e=nn(this.o,"/__/auth/handler");if(Qt(e,"apiKey",this.l),Qt(e,"appName",this.c),Qt(e,"authType",this.m),this.a.isOAuthProvider){var t=this.a;try{var n=i.a.app(this.c).auth().ea()}catch(e){n=null}for(var r in t.$a=n,Qt(e,"providerId",this.a.providerId),n=ki((t=this.a).zb))n[r]=n[r].toString();r=t.Dc,n=le(n);for(var o=0;o<r.length;o++){var a=r[o];a in n&&delete n[a]}t.cb&&t.$a&&!n[t.cb]&&(n[t.cb]=t.$a),ue(n)||Qt(e,"customParameters",xi(n))}if("function"==typeof this.a.Fb&&((t=this.a.Fb()).length&&Qt(e,"scopes",t.join(","))),this.i?Qt(e,"redirectUrl",this.i):mn(e.a,"redirectUrl"),this.g?Qt(e,"eventId",this.g):mn(e.a,"eventId"),this.h?Qt(e,"v",this.h):mn(e.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!en(e,s)&&Qt(e,s,this.b[s]);return this.f?Qt(e,"eid",this.f):mn(e.a,"eid"),(s=As(this.c)).length&&Qt(e,"fw",s.join(",")),e.toString()},(t=Is.prototype).Ea=function(e,t,n){var i=new Yi("popup-closed-by-user"),r=new Yi("web-storage-unsupported"),o=this,a=!1;return this.ga().then(function(){(function(e){var t={type:"webStorageSupport"};return Ns(e).then(function(){return function(e,t){return e.fb.then(function(){return new _e(function(n){e.a.send(t.type,t,n,bi("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}(e.i,t)}).then(function(e){if(e&&e.length&&void 0!==e[0].webStorageSupport)return e[0].webStorageSupport;throw Error()})})(o).then(function(n){n||(e&&ei(e),t(r),a=!0)})}).s(function(){}).then(function(){if(!a)return function(e){return new _e(function(t){return function n(){Ht(2e3).then(function(){if(e&&!e.closed)return n();t()})}()})}(e)}).then(function(){if(!a)return Ht(n).then(function(){t(i)})})},t.Mb=function(){var e=mi();return!_i(e)&&!Ti(e)},t.Hb=function(){return!1},t.Db=function(e,t,n,i,r,o,a){if(!e)return Ie(new Yi("popup-blocked"));if(a&&!_i())return this.ga().s(function(t){ei(e),r(t)}),i(),Ae();this.a||(this.a=Os(Ps(this)));var s=this;return this.a.then(function(){var t=s.ga().s(function(t){throw ei(e),r(t),t});return i(),t}).then(function(){(co(n),a)||Zn(Rs(s.l,s.f,s.b,t,n,null,o,s.c,void 0,s.h),e)}).s(function(e){throw"auth/network-request-failed"==e.code&&(s.a=null),e})},t.Ca=function(e,t,n){this.a||(this.a=Os(Ps(this)));var i=this;return this.a.then(function(){co(t),Zn(Rs(i.l,i.f,i.b,e,t,$n(),n,i.c,void 0,i.h))}).s(function(e){throw"auth/network-request-failed"==e.code&&(i.a=null),e})},t.ga=function(){var e=this;return Ns(this).then(function(){return e.i.fb}).s(function(){throw e.a=null,new Yi("network-request-failed")})},t.Pb=function(){return!0},t.wa=function(e){this.g.push(e)},t.La=function(e){W(this.g,function(t){return t==e})},(t=Ds.prototype).get=function(e){return Ae(this.a.getItem(e)).then(function(e){return e&&Ei(e)})},t.set=function(e,t){return Ae(this.a.setItem(e,xi(t)))},t.P=function(e){return Ae(this.a.removeItem(e))},t.Y=function(){},t.ca=function(){};var Ms,js=[];function Us(e){this.a=e}function Fs(e){this.c=e,this.b=!1,this.a=[]}function Bs(e,t,n,i){var r,o,a,s,u=n||{},l=null;if(e.b)return Ie(Error("connection_unavailable"));var c=i?800:50,f="undefined"!=typeof MessageChannel?new MessageChannel:null;return new _e(function(n,i){f?(r=Math.floor(Math.random()*Math.pow(10,20)).toString(),f.port1.start(),a=setTimeout(function(){i(Error("unsupported_event"))},c),l={messageChannel:f,onMessage:o=function(e){e.data.eventId===r&&("ack"===e.data.status?(clearTimeout(a),s=setTimeout(function(){i(Error("timeout"))},3e3)):"done"===e.data.status?(clearTimeout(s),void 0!==e.data.response?n(e.data.response):i(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),i(Error("invalid_response"))))}},e.a.push(l),f.port1.addEventListener("message",o),e.c.postMessage({eventType:t,eventId:r,data:u},[f.port2])):i(Error("connection_unavailable"))}).then(function(t){return zs(e,l),t}).s(function(t){throw zs(e,l),t})}function zs(e,t){if(t){var n=t.messageChannel,i=t.onMessage;n&&(n.port1.removeEventListener("message",i),n.port1.close()),W(e.a,function(e){return e==t})}}function Hs(){if(!Gs())throw new Yi("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.l=u.indexedDB,this.type="indexedDB",this.g=this.m=this.f=this.i=null,this.u=!1,this.h=null;var e=this;si()&&self?(this.m=function(){var e=si()?self:null;if(F(js,function(n){n.b==e&&(t=n)}),!t){var t=new Ls(e);js.push(t)}return t}(),this.m.subscribe("keyChanged",function(t,n){return Js(e).then(function(t){return 0<t.length&&F(e.a,function(e){e(t)}),{keyProcessed:H(t,n.key)}})}),this.m.subscribe("ping",function(){return Ae(["keyChanged"])})):function(){var e=u.navigator;return e&&e.serviceWorker?Ae().then(function(){return e.serviceWorker.ready}).then(function(e){return e.active||null}).s(function(){return null}):Ae(null)}().then(function(t){(e.h=t)&&(e.g=new Fs(new Us(t)),Bs(e.g,"ping",null,!0).then(function(t){t[0].fulfilled&&H(t[0].value,"keyChanged")&&(e.u=!0)}).s(function(){}))})}function Vs(e){return new _e(function(t,n){var i=e.l.open("firebaseLocalStorageDb",1);i.onerror=function(e){try{e.preventDefault()}catch(e){}n(Error(e.target.error))},i.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){n(e)}},i.onsuccess=function(i){(i=i.target.result).objectStoreNames.contains("firebaseLocalStorage")?t(i):function(e){return new _e(function(t,n){var i=e.l.deleteDatabase("firebaseLocalStorageDb");i.onsuccess=function(){t()},i.onerror=function(e){n(Error(e.target.error))}})}(e).then(function(){return Vs(e)}).then(function(e){t(e)}).s(function(e){n(e)})}})}function Ws(e){return e.o||(e.o=Vs(e)),e.o}function Gs(){try{return!!u.indexedDB}catch(e){return!1}}function Ks(e){return e.objectStore("firebaseLocalStorage")}function qs(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function Xs(e){return new _e(function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(e.target.error)}})}function Ys(e,t){return e.g&&e.h&&function(){var e=u.navigator;return e&&e.serviceWorker&&e.serviceWorker.controller||null}()===e.h?Bs(e.g,"keyChanged",{key:t},e.u).then(function(){}).s(function(){}):Ae()}function Js(e){return Ws(e).then(function(e){var t=Ks(qs(e,!1));return t.getAll?Xs(t.getAll()):new _e(function(e,n){var i=[],r=t.openCursor();r.onsuccess=function(t){(t=t.target.result)?(i.push(t.value),t.continue()):e(i)},r.onerror=function(e){n(e.target.error)}})}).then(function(t){var n={},i=[];if(0==e.b){for(i=0;i<t.length;i++)n[t[i].fbase_key]=t[i].value;i=function e(t,n){var i,r=[];for(i in t)i in n?typeof t[i]!=typeof n[i]?r.push(i):"object"==typeof t[i]&&null!=t[i]&&null!=n[i]?0<e(t[i],n[i]).length&&r.push(i):t[i]!==n[i]&&r.push(i):r.push(i);for(i in n)i in t||r.push(i);return r}(e.c,n),e.c=n}return i})}function $s(e){e.i&&e.i.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function Zs(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=Ae().then(function(){if(Gs()){var e=Si(),i="__sak"+e;return Ms||(Ms=new Hs),(n=Ms).set(i,e).then(function(){return n.get(i)}).then(function(t){if(t!==e)throw Error("indexedDB not supported!");return n.P(i)}).then(function(){return n}).s(function(){return t.c})}return t.c}).then(function(e){return t.type=e.type,e.Y(function(e){F(t.a,function(t){t(e)})}),e})}function Qs(){this.a={},this.type="inMemory"}function eu(){if(!function(){var e="Node"==ui();if(!(e=tu()||e&&i.a.INTERNAL.node&&i.a.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==ui())throw new Yi("internal-error","The LocalStorage compatibility library was not found.");throw new Yi("web-storage-unsupported")}this.a=tu()||i.a.INTERNAL.node.localStorage,this.type="localStorage"}function tu(){try{var e=u.localStorage,t=Si();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function nu(){this.type="nullStorage"}function iu(){if(!function(){var e="Node"==ui();if(!(e=ru()||e&&i.a.INTERNAL.node&&i.a.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==ui())throw new Yi("internal-error","The SessionStorage compatibility library was not found.");throw new Yi("web-storage-unsupported")}this.a=ru()||i.a.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function ru(){try{var e=u.sessionStorage,t=Si();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function ou(){var e={};e.Browser=uu,e.Node=lu,e.ReactNative=cu,e.Worker=fu,this.a=e[ui()]}Ls.prototype.f=function(e){var t=e.data.eventType,n=e.data.eventId,i=this.a[t];if(i&&0<i.length){e.ports[0].postMessage({status:"ack",eventId:n,eventType:t,response:null});var r=[];F(i,function(t){r.push(Ae().then(function(){return t(e.origin,e.data.data)}))}),Ne(r).then(function(i){var r=[];F(i,function(e){r.push({fulfilled:e.Eb,value:e.value,reason:e.reason?e.reason.message:void 0})}),F(r,function(e){for(var t in e)void 0===e[t]&&delete e[t]}),e.ports[0].postMessage({status:"done",eventId:n,eventType:t,response:r})})}},Ls.prototype.subscribe=function(e,t){ue(this.a)&&this.b.addEventListener("message",this.c),void 0===this.a[e]&&(this.a[e]=[]),this.a[e].push(t)},Ls.prototype.unsubscribe=function(e,t){void 0!==this.a[e]&&t?(W(this.a[e],function(e){return e==t}),0==this.a[e].length&&delete this.a[e]):t||delete this.a[e],ue(this.a)&&this.b.removeEventListener("message",this.c)},Us.prototype.postMessage=function(e,t){this.a.postMessage(e,t)},Fs.prototype.close=function(){for(;0<this.a.length;)zs(this,this.a[0]);this.b=!0},(t=Hs.prototype).set=function(e,t){var n,i=!1,r=this;return Ws(this).then(function(t){return Xs((t=Ks(qs(n=t,!0))).get(e))}).then(function(o){var a=Ks(qs(n,!0));return o?(o.value=t,Xs(a.put(o))):(r.b++,i=!0,(o={}).fbase_key=e,o.value=t,Xs(a.add(o)))}).then(function(){return r.c[e]=t,Ys(r,e)}).ia(function(){i&&r.b--})},t.get=function(e){return Ws(this).then(function(t){return Xs(Ks(qs(t,!1)).get(e))}).then(function(e){return e&&e.value})},t.P=function(e){var t=!1,n=this;return Ws(this).then(function(i){return t=!0,n.b++,Xs(Ks(qs(i,!0)).delete(e))}).then(function(){return delete n.c[e],Ys(n,e)}).ia(function(){t&&n.b--})},t.Y=function(e){0==this.a.length&&function(e){$s(e),function t(){e.f=setTimeout(function(){e.i=Js(e).then(function(t){0<t.length&&F(e.a,function(e){e(t)})}).then(function(){t()}).s(function(e){"STOP_EVENT"!=e.message&&t()})},800)}()}(this),this.a.push(e)},t.ca=function(e){W(this.a,function(t){return t==e}),0==this.a.length&&$s(this)},(t=Zs.prototype).get=function(e){return this.b.then(function(t){return t.get(e)})},t.set=function(e,t){return this.b.then(function(n){return n.set(e,t)})},t.P=function(e){return this.b.then(function(t){return t.P(e)})},t.Y=function(e){this.a.push(e)},t.ca=function(e){W(this.a,function(t){return t==e})},(t=Qs.prototype).get=function(e){return Ae(this.a[e])},t.set=function(e,t){return this.a[e]=t,Ae()},t.P=function(e){return delete this.a[e],Ae()},t.Y=function(){},t.ca=function(){},(t=eu.prototype).get=function(e){var t=this;return Ae().then(function(){return Ei(t.a.getItem(e))})},t.set=function(e,t){var n=this;return Ae().then(function(){var i=xi(t);null===i?n.P(e):n.a.setItem(e,i)})},t.P=function(e){var t=this;return Ae().then(function(){t.a.removeItem(e)})},t.Y=function(e){u.window&&St(u.window,"storage",e)},t.ca=function(e){u.window&&At(u.window,"storage",e)},(t=nu.prototype).get=function(){return Ae(null)},t.set=function(){return Ae()},t.P=function(){return Ae()},t.Y=function(){},t.ca=function(){},(t=iu.prototype).get=function(e){var t=this;return Ae().then(function(){return Ei(t.a.getItem(e))})},t.set=function(e,t){var n=this;return Ae().then(function(){var i=xi(t);null===i?n.P(e):n.a.setItem(e,i)})},t.P=function(e){var t=this;return Ae().then(function(){t.a.removeItem(e)})},t.Y=function(){},t.ca=function(){};var au,su,uu={B:eu,Ra:iu},lu={B:eu,Ra:iu},cu={B:Ds,Ra:nu},fu={B:eu,Ra:nu},du={Xc:"local",NONE:"none",Zc:"session"};function hu(){var e=!(Ti(mi())||!ai()),t=_i(),n=gi();this.o=e,this.h=t,this.m=n,this.a={},au||(au=new ou),e=au;try{this.g=!Jn()&&Ni()||!u.indexedDB?new e.a.B:new Zs(si()?new Qs:new e.a.B)}catch(e){this.g=new Qs,this.h=!0}try{this.i=new e.a.Ra}catch(e){this.i=new Qs}this.l=new Qs,this.f=E(this.Ob,this),this.b={}}function pu(){return su||(su=new hu),su}function mu(e,t){switch(t){case"session":return e.i;case"none":return e.l;default:return e.g}}function bu(e,t){return"firebase:"+e.name+(t?":"+t:"")}function gu(e,t,n){return n=bu(t,n),"local"==t.B&&(e.b[n]=null),mu(e,t.B).P(n)}function vu(e){e.c&&(clearInterval(e.c),e.c=null)}function yu(e){this.a=e,this.b=pu()}(t=hu.prototype).get=function(e,t){return mu(this,e.B).get(bu(e,t))},t.set=function(e,t,n){var i=bu(e,n),r=this,o=mu(this,e.B);return o.set(i,t).then(function(){return o.get(i)}).then(function(t){"local"==e.B&&(r.b[i]=t)})},t.addListener=function(e,t,n){e=bu(e,t),this.m&&(this.b[e]=u.localStorage.getItem(e)),ue(this.a)&&(mu(this,"local").Y(this.f),this.h||(Jn()||!Ni())&&u.indexedDB||!this.m||function(e){vu(e),e.c=setInterval(function(){for(var t in e.a){var n=u.localStorage.getItem(t),i=e.b[t];n!=i&&(e.b[t]=n,n=new pt({type:"storage",key:t,target:window,oldValue:i,newValue:n,a:!0}),e.Ob(n))}},1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(n)},t.removeListener=function(e,t,n){e=bu(e,t),this.a[e]&&(W(this.a[e],function(e){return e==n}),0==this.a[e].length&&delete this.a[e]),ue(this.a)&&(mu(this,"local").ca(this.f),vu(this))},t.Ob=function(e){if(e&&e.f){var t=e.a.key;if(null==t)for(var n in this.a){var i=this.b[n];void 0===i&&(i=null);var r=u.localStorage.getItem(n);r!==i&&(this.b[n]=r,this.Xa(n))}else if(0==t.indexOf("firebase:")&&this.a[t]){if(void 0!==e.a.a?mu(this,"local").ca(this.f):vu(this),this.o)if(n=u.localStorage.getItem(t),(i=e.a.newValue)!==n)null!==i?u.localStorage.setItem(t,i):u.localStorage.removeItem(t);else if(this.b[t]===i&&void 0===e.a.a)return;var o=this;n=function(){void 0===e.a.a&&o.b[t]===u.localStorage.getItem(t)||(o.b[t]=u.localStorage.getItem(t),o.Xa(t))},Je&&ot&&10==ot&&u.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(n,10):n()}}else F(e,E(this.Xa,this))},t.Xa=function(e){this.a[e]&&F(this.a[e],function(e){e()})};var wu,_u={name:"authEvent",B:"local"};function xu(){this.a=pu()}function ku(e,t){this.b=Eu,this.f=u.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.m=u.Int32Array?new Int32Array(64):Array(64),void 0!==wu||(wu=u.Int32Array?new Int32Array(Nu):Nu),this.reset()}C(ku,function(){this.b=-1});for(var Eu=64,Su=Eu-1,Tu=[],Cu=0;Cu<Su;Cu++)Tu[Cu]=0;var Au=G(128,Tu);function Iu(e){for(var t=e.f,n=e.m,i=0,r=0;r<t.length;)n[i++]=t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3],r=4*i;for(t=16;64>t;t++){r=0|n[t-15],i=0|n[t-2];var o=(0|n[t-16])+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3)|0,a=(0|n[t-7])+((i>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;n[t]=o+a|0}i=0|e.a[0],r=0|e.a[1];var s=0|e.a[2],u=0|e.a[3],l=0|e.a[4],c=0|e.a[5],f=0|e.a[6];for(o=0|e.a[7],t=0;64>t;t++){var d=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r^i&s^r&s)|0;a=(o=o+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))|0)+((a=(a=l&c^~l&f)+(0|wu[t])|0)+(0|n[t])|0)|0,o=f,f=c,c=l,l=u+a|0,u=s,s=r,r=i,i=a+d|0}e.a[0]=e.a[0]+i|0,e.a[1]=e.a[1]+r|0,e.a[2]=e.a[2]+s|0,e.a[3]=e.a[3]+u|0,e.a[4]=e.a[4]+l|0,e.a[5]=e.a[5]+c|0,e.a[6]=e.a[6]+f|0,e.a[7]=e.a[7]+o|0}function Ou(e,t,n){void 0===n&&(n=t.length);var i=0,r=e.c;if(l(t))for(;i<n;)e.f[r++]=t.charCodeAt(i++),r==e.b&&(Iu(e),r=0);else{if(!g(t))throw Error("message must be string or array");for(;i<n;){var o=t[i++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");e.f[r++]=o,r==e.b&&(Iu(e),r=0)}}e.c=r,e.g+=n}ku.prototype.reset=function(){this.g=this.c=0,this.a=u.Int32Array?new Int32Array(this.h):K(this.h)};var Nu=[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];function Pu(){ku.call(this,8,Ru)}C(Pu,ku);var Ru=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function Du(e,t,n,i,r){this.l=e,this.i=t,this.m=n,this.o=i||null,this.u=r||null,this.h=t+":"+n,this.v=new xu,this.g=new yu(this.h),this.f=null,this.b=[],this.a=this.c=null}function Lu(e){return new Yi("invalid-cordova-configuration",e)}function Mu(e){var t=new Pu;Ou(t,e),e=[];var n=8*t.g;56>t.c?Ou(t,Au,56-t.c):Ou(t,Au,t.b-(t.c-56));for(var i=63;56<=i;i--)t.f[i]=255&n,n/=256;for(Iu(t),i=n=0;i<t.i;i++)for(var r=24;0<=r;r-=8)e[n++]=t.a[i]>>r&255;return function(e){return B(e,function(e){return 1<(e=e.toString(16)).length?e:"0"+e}).join("")}(e)}function ju(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(e){}}function Uu(e){return e.f||(e.f=e.ga().then(function(){return new _e(function(t){e.wa(function n(i){return t(i),e.La(n),!1}),function(e){function t(t){i=!0,r&&r.cancel(),Fu(e).then(function(i){var r=n;if(i&&t&&t.url){var o=null;-1!=(r=Rr(t.url)).indexOf("/__/auth/callback")&&(o=(o="object"==typeof(o=Ei(en(o=tn(r),"firebaseError")||null))?Ji(o):null)?new fo(i.c,i.b,null,null,o):new fo(i.c,i.b,r,i.f)),r=o||n}ju(e,r)})}var n=new fo("unknown",null,null,null,new Yi("no-auth-event")),i=!1,r=Ht(500).then(function(){return Fu(e).then(function(){i||ju(e,n)})}),o=u.handleOpenURL;u.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(bi("BuildInfo.packageName",u).toLowerCase()+"://")&&t({url:e}),"function"==typeof o)try{o(e)}catch(e){console.error(e)}},bo||(bo=new po),bo.subscribe(t)}(e)})})),e.f}function Fu(e){var t=null;return function(e){return e.b.get(_u,e.a).then(function(e){return ho(e)})}(e.g).then(function(n){return t=n,gu((n=e.g).b,_u,n.a)}).then(function(){return t})}function Bu(e){this.a=e,this.b=pu()}(t=Du.prototype).ga=function(){return this.za?this.za:this.za=(oi(void 0)?ri().then(function(){return new _e(function(e,t){var n=u.document,i=setTimeout(function(){t(Error("Cordova framework is not ready."))},1e3);n.addEventListener("deviceready",function(){clearTimeout(i),e()},!1)})}):Ie(Error("Cordova must run in an Android or iOS file scheme."))).then(function(){if("function"!=typeof bi("universalLinks.subscribe",u))throw Lu("cordova-universal-links-plugin-fix is not installed");if(void 0===bi("BuildInfo.packageName",u))throw Lu("cordova-plugin-buildinfo is not installed");if("function"!=typeof bi("cordova.plugins.browsertab.openUrl",u))throw Lu("cordova-plugin-browsertab is not installed");if("function"!=typeof bi("cordova.InAppBrowser.open",u))throw Lu("cordova-plugin-inappbrowser is not installed")},function(){throw new Yi("cordova-not-ready")})},t.Ea=function(e,t){return t(new Yi("operation-not-supported-in-this-environment")),Ae()},t.Db=function(){return Ie(new Yi("operation-not-supported-in-this-environment"))},t.Pb=function(){return!1},t.Mb=function(){return!0},t.Hb=function(){return!0},t.Ca=function(e,t,n){if(this.c)return Ie(new Yi("redirect-operation-pending"));var i=this,r=u.document,o=null,a=null,s=null,l=null;return this.c=Ae().then(function(){return co(t),Uu(i)}).then(function(){return function(e,t,n,i){var r=function(){for(var e=20,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}(),o=new fo(t,i,null,r,new Yi("no-auth-event")),a=bi("BuildInfo.packageName",u);if("string"!=typeof a)throw new Yi("invalid-cordova-configuration");var s=bi("BuildInfo.displayName",u),l={};if(mi().toLowerCase().match(/iphone|ipad|ipod/))l.ibi=a;else{if(!mi().toLowerCase().match(/android/))return Ie(new Yi("operation-not-supported-in-this-environment"));l.apn=a}s&&(l.appDisplayName=s),r=Mu(r),l.sessionId=r;var c=Rs(e.l,e.i,e.m,t,n,null,i,e.o,l,e.u);return e.ga().then(function(){var t=e.h;return e.v.a.set(_u,o.w(),t)}).then(function(){var t=bi("cordova.plugins.browsertab.isAvailable",u);if("function"!=typeof t)throw new Yi("invalid-cordova-configuration");var n=null;t(function(t){if(t){if("function"!=typeof(n=bi("cordova.plugins.browsertab.openUrl",u)))throw new Yi("invalid-cordova-configuration");n(c)}else{if("function"!=typeof(n=bi("cordova.InAppBrowser.open",u)))throw new Yi("invalid-cordova-configuration");t=mi(),e.a=n(c,t.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}})})}(i,e,t,n)}).then(function(){return new _e(function(e,t){a=function(){var t=bi("cordova.plugins.browsertab.close",u);return e(),"function"==typeof t&&t(),i.a&&"function"==typeof i.a.close&&(i.a.close(),i.a=null),!1},i.wa(a),s=function(){o||(o=Ht(2e3).then(function(){t(new Yi("redirect-cancelled-by-user"))}))},l=function(){Ii()&&s()},r.addEventListener("resume",s,!1),mi().toLowerCase().match(/android/)||r.addEventListener("visibilitychange",l,!1)}).s(function(e){return Fu(i).then(function(){throw e})})}).ia(function(){s&&r.removeEventListener("resume",s,!1),l&&r.removeEventListener("visibilitychange",l,!1),o&&o.cancel(),a&&i.La(a),i.c=null})},t.wa=function(e){this.b.push(e),Uu(this).s(function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new fo("unknown",null,null,null,new Yi("no-auth-event")),e(t))})},t.La=function(e){W(this.b,function(t){return t==e})};var zu={name:"pendingRedirect",B:"session"};function Hu(e){return gu(e.b,zu,e.a)}function Vu(e,t,n){this.i={},this.u=0,this.A=e,this.l=t,this.o=n,this.h=[],this.f=!1,this.m=E(this.bb,this),this.b=new Qu,this.v=new il,this.g=new Bu(this.l+":"+this.o),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.v,this.c.linkViaPopup=this.v,this.c.reauthViaPopup=this.v,this.a=Wu(this.A,this.l,this.o,br)}function Wu(e,t,n,r){var o=i.a.SDK_VERSION||null;return oi()?new Du(e,t,n,o,r):new Is(e,t,n,o,r)}function Gu(e){e.f||(e.f=!0,e.a.wa(e.m));var t=e.a;return e.a.ga().s(function(n){throw e.a==t&&e.reset(),n})}function Ku(e){e.a.Mb()&&Gu(e).s(function(t){var n=new fo("unknown",null,null,null,new Yi("operation-not-supported-in-this-environment"));Ju(t)&&e.bb(n)}),e.a.Hb()||el(e.b)}(t=Vu.prototype).reset=function(){this.f=!1,this.a.La(this.m),this.a=Wu(this.A,this.l,this.o),this.i={}},t.Ya=function(){this.b.Ya()},t.subscribe=function(e){if(H(this.h,e)||this.h.push(e),!this.f){var t=this;(function(e){return e.b.get(zu,e.a).then(function(e){return"pending"==e})})(this.g).then(function(e){e?Hu(t.g).then(function(){Gu(t).s(function(e){var n=new fo("unknown",null,null,null,new Yi("operation-not-supported-in-this-environment"));Ju(e)&&t.bb(n)})}):Ku(t)}).s(function(){Ku(t)})}},t.unsubscribe=function(e){W(this.h,function(t){return t==e})},t.bb=function(e){if(!e)throw new Yi("invalid-auth-event");if(6e5<=T()-this.u&&(this.i={},this.u=0),e&&e.getUid()&&this.i.hasOwnProperty(e.getUid()))return!1;for(var t=!1,n=0;n<this.h.length;n++){var i=this.h[n];if(i.xb(e.c,e.b)){(t=this.c[e.c])&&(t.h(e,i),e&&(e.f||e.b)&&(this.i[e.getUid()]=!0,this.u=T())),t=!0;break}}return el(this.b),t};var qu=new Ai(2e3,1e4),Xu=new Ai(3e4,6e4);function Yu(e,t,n,i,r,o){return e.a.Db(t,n,i,function(){e.f||(e.f=!0,e.a.wa(e.m))},function(){e.reset()},r,o)}function Ju(e){return!(!e||"auth/cordova-not-ready"!=e.code)}Vu.prototype.fa=function(){return this.b.fa()},Vu.prototype.Ca=function(e,t,n){var i,r=this;return function(e){return e.b.set(zu,"pending",e.a)}(this.g).then(function(){return r.a.Ca(e,t,n).s(function(e){if(Ju(e))throw new Yi("operation-not-supported-in-this-environment");return i=e,Hu(r.g).then(function(){throw i})}).then(function(){return r.a.Pb()?new _e(function(){}):Hu(r.g).then(function(){return r.fa()}).then(function(){}).s(function(){})})})},Vu.prototype.Ea=function(e,t,n,i){return this.a.Ea(n,function(n){e.ha(t,null,n,i)},qu.get())};var $u={};function Zu(e,t,n){var i=t+":"+n;return $u[i]||($u[i]=new Vu(e,t,n)),$u[i]}function Qu(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function el(e){e.g||(e.g=!0,nl(e,!1,null,null))}function tl(e,t){if(e.b=function(){return Ae(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function nl(e,t,n,i){t?i?function(e,t){if(e.b=function(){return Ie(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}(e,i):tl(e,n):tl(e,{user:null}),e.f=[],e.c=[]}function il(){}function rl(){this.ub=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.ub},set:function(e){this.ub=e},enumerable:!1})}function ol(e,t){this.a=t,Mi(this,"verificationId",e)}function al(e,t,n,i){return new so(e).Ua(t,n).then(function(e){return new ol(e,i)})}function sl(e){var t=mr(e);if(!(t&&t.exp&&t.auth_time&&t.iat))throw new Yi("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");ji(this,{token:e,expirationTime:Oi(1e3*t.exp),authTime:Oi(1e3*t.auth_time),issuedAtTime:Oi(1e3*t.iat),signInProvider:t.firebase&&t.firebase.sign_in_provider?t.firebase.sign_in_provider:null,claims:t})}function ul(e,t,n){if(this.h=e,this.i=t,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function ll(e){this.f=e,this.b=this.a=null,this.c=0}function cl(e,t){var n=t[ka],i=t.refreshToken;t=fl(t.expiresIn),e.b=n,e.c=t,e.a=i}function fl(e){return T()+1e3*parseInt(e,10)}function dl(e,t){return function(e,t){return new _e(function(n,i){"refresh_token"==t.grant_type&&t.refresh_token||"authorization_code"==t.grant_type&&t.code?Oa(e,e.i+"?key="+encodeURIComponent(e.b),function(e){e?e.error?i(ws(e)):e.access_token&&e.refresh_token?n(e):i(new Yi("internal-error")):i(new Yi("network-request-failed"))},"POST",pn(t).toString(),e.f,e.m.get()):i(new Yi("internal-error"))})}(e.f,t).then(function(t){return e.b=t.access_token,e.c=fl(t.expires_in),e.a=t.refresh_token,{accessToken:e.b,expirationTime:e.c,refreshToken:e.a}}).s(function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t})}function hl(e,t){this.a=e||null,this.b=t||null,ji(this,{lastSignInTime:Oi(t||null),creationTime:Oi(e||null)})}function pl(e,t,n,i,r,o){ji(this,{uid:e,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:o||null,providerId:t})}function ml(e,t){for(var n in ht.call(this,e),t)this[n]=t[n]}function bl(e,t,n){this.G=[],this.l=e.apiKey,this.o=e.appName,this.u=e.authDomain||null,e=i.a.SDK_VERSION?pi(i.a.SDK_VERSION):null,this.c=new _a(this.l,vr(br),e),this.h=new ll(this.c),kl(this,t[ka]),cl(this.h,t),Mi(this,"refreshToken",this.h.a),Tl(this,n||{}),jt.call(this),this.I=!1,this.u&&vi()&&(this.a=Zu(this.u,this.l,this.o)),this.N=[],this.i=null,this.A=function(e){return new ul(function(){return e.F(!0)},function(e){return!(!e||"auth/network-request-failed"!=e.code)},function(){var t=e.h.c-T()-3e5;return 0<t?t:0})}(this),this.V=E(this.Ha,this);var r=this;this.ka=null,this.ta=function(e){r.pa(e.g)},this.X=null,this.O=[],this.sa=function(e){vl(r,e.c)},this.W=null}function gl(e,t){e.X&&At(e.X,"languageCodeChanged",e.ta),(e.X=t)&&St(t,"languageCodeChanged",e.ta)}function vl(e,t){e.O=t,Ia(e.c,i.a.SDK_VERSION?pi(i.a.SDK_VERSION,e.O):null)}function yl(e,t){e.W&&At(e.W,"frameworkChanged",e.sa),(e.W=t)&&St(t,"frameworkChanged",e.sa)}function wl(e){try{return i.a.app(e.o).auth()}catch(t){throw new Yi("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.o+"'!")}}function _l(e){e.D||e.A.b||(e.A.start(),At(e,"tokenChanged",e.V),St(e,"tokenChanged",e.V))}function xl(e){At(e,"tokenChanged",e.V),e.A.stop()}function kl(e,t){e.ra=t,Mi(e,"_lat",t)}function El(e){for(var t=[],n=0;n<e.N.length;n++)t.push(e.N[n](e));return Ne(t).then(function(){return e})}function Sl(e){e.a&&!e.I&&(e.I=!0,e.a.subscribe(e))}function Tl(e,t){ji(e,{uid:t.uid,displayName:t.displayName||null,photoURL:t.photoURL||null,email:t.email||null,emailVerified:t.emailVerified||!1,phoneNumber:t.phoneNumber||null,isAnonymous:t.isAnonymous||!1,metadata:new hl(t.createdAt,t.lastLoginAt),providerData:[]})}function Cl(){}function Al(e){return Ae().then(function(){if(e.D)throw new Yi("app-deleted")})}function Il(e){return B(e.providerData,function(e){return e.providerId})}function Ol(e,t){t&&(Nl(e,t.providerId),e.providerData.push(t))}function Nl(e,t){W(e.providerData,function(e){return e.providerId==t})}function Pl(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&Mi(e,t,n)}function Rl(e,t){e!=t&&(ji(e,{uid:t.uid,displayName:t.displayName,photoURL:t.photoURL,email:t.email,emailVerified:t.emailVerified,phoneNumber:t.phoneNumber,isAnonymous:t.isAnonymous,providerData:[]}),t.metadata?Mi(e,"metadata",function(e){return new hl(e.a,e.b)}(t.metadata)):Mi(e,"metadata",new hl),F(t.providerData,function(t){Ol(e,t)}),function(e,t){e.b=t.b,e.a=t.a,e.c=t.c}(e.h,t.h),Mi(e,"refreshToken",e.h.a))}function Dl(e){return e.F().then(function(t){var n=e.isAnonymous;return function(e,t){return vs(e.c,Qa,{idToken:t}).then(E(e.xc,e))}(e,t).then(function(){return n||Pl(e,"isAnonymous",!1),t})})}function Ll(e,t){t[ka]&&e.ra!=t[ka]&&(cl(e.h,t),e.dispatchEvent(new ml("tokenChanged")),kl(e,t[ka]),Pl(e,"refreshToken",e.h.a))}function Ml(e,t){return Dl(e).then(function(){if(H(Il(e),t))return El(e).then(function(){throw new Yi("provider-already-linked")})})}function jl(e,t,n){return Ui({user:e,credential:lo(t),additionalUserInfo:t=kr(t),operationType:n})}function Ul(e,t){return Ll(e,t),e.reload().then(function(){return e})}function Fl(e,t,n,r,o){if(!vi())return Ie(new Yi("operation-not-supported-in-this-environment"));if(e.i&&!o)return Ie(e.i);var a=xr(n.providerId),s=Si(e.uid+":::"),u=null;(!_i()||ai())&&e.u&&n.isOAuthProvider&&(u=Rs(e.u,e.l,e.o,t,n,null,s,i.a.SDK_VERSION||null));var l=ti(u,a&&a.Ba,a&&a.Aa);return r=r().then(function(){if(zl(e),!o)return e.F().then(function(){})}).then(function(){return Yu(e.a,l,t,n,s,!!u)}).then(function(){return new _e(function(n,i){e.ha(t,null,new Yi("cancelled-popup-request"),e.g||null),e.f=n,e.v=i,e.g=s,e.b=e.a.Ea(e,t,l,s)})}).then(function(e){return l&&ei(l),e?Ui(e):null}).s(function(e){throw l&&ei(l),e}),Hl(e,r,o)}function Bl(e,t,n,i,r){if(!vi())return Ie(new Yi("operation-not-supported-in-this-environment"));if(e.i&&!r)return Ie(e.i);var o=null,a=Si(e.uid+":::");return i=i().then(function(){if(zl(e),!r)return e.F().then(function(){})}).then(function(){return e.aa=a,El(e)}).then(function(t){return e.ba&&(t=(t=e.ba).b.set(Gl,e.w(),t.a)),t}).then(function(){return e.a.Ca(t,n,a)}).s(function(t){if(o=t,e.ba)return Kl(e.ba);throw o}).then(function(){if(o)throw o}),Hl(e,i,r)}function zl(e){if(!e.a||!e.I){if(e.a&&!e.I)throw new Yi("internal-error");throw new Yi("auth-domain-config-required")}}function Hl(e,t,n){var i=function(e,t,n){return e.i&&!n?(t.cancel(),Ie(e.i)):t.s(function(t){throw!t||"auth/user-disabled"!=t.code&&"auth/user-token-expired"!=t.code||(e.i||e.dispatchEvent(new ml("userInvalidated")),e.i=t),t})}(e,t,n);return e.G.push(i),i.ia(function(){V(e.G,i)}),i}function Vl(e){if(!e.apiKey)return null;var t={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName},n={};if(!(e.stsTokenManager&&e.stsTokenManager.accessToken&&e.stsTokenManager.expirationTime))return null;n[ka]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null,n.expiresIn=(e.stsTokenManager.expirationTime-T())/1e3;var i=new bl(t,n,e);return e.providerData&&F(e.providerData,function(e){e&&Ol(i,Ui(e))}),e.redirectEventId&&(i.aa=e.redirectEventId),i}function Wl(e){this.a=e,this.b=pu()}Qu.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Qu.prototype.h=function(e,t){if(e){this.reset(),this.g=!0;var n=e.c,i=e.b,r=e.a&&"auth/web-storage-unsupported"==e.a.code,o=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;this.i=!(!r&&!o),"unknown"!=n||r||o?e.a?(nl(this,!0,null,e.a),Ae()):t.xa(n,i)?function(e,t,n){n=n.xa(t.c,t.b);var i=t.g,r=t.f,o=t.h,a=!!t.c.match(/Redirect$/);n(i,r,o).then(function(t){nl(e,a,t,null)}).s(function(t){nl(e,a,null,t)})}(this,e,t):Ie(new Yi("invalid-auth-event")):(nl(this,!1,null,null),Ae())}else Ie(new Yi("invalid-auth-event"))},Qu.prototype.Ya=function(){this.g&&!this.i&&nl(this,!1,null,null)},Qu.prototype.fa=function(){var e=this;return new _e(function(t,n){e.b?e.b().then(t,n):(e.f.push(t),e.c.push(n),function(e){var t=new Yi("timeout");e.a&&e.a.cancel(),e.a=Ht(Xu.get()).then(function(){e.b||(e.g=!0,nl(e,!0,null,t))})}(e))})},il.prototype.h=function(e,t){if(e){var n=e.c,i=e.b;e.a?(t.ha(e.c,null,e.a,e.b),Ae()):t.xa(n,i)?function(e,t){var n=e.b,i=e.c;t.xa(i,n)(e.g,e.f,e.h).then(function(e){t.ha(i,e,null,n)}).s(function(e){t.ha(i,null,e,n)})}(e,t):Ie(new Yi("invalid-auth-event"))}else Ie(new Yi("invalid-auth-event"))},ol.prototype.confirm=function(e){return e=uo(this.verificationId,e),this.a(e)},ul.prototype.start=function(){this.a=this.c,function e(t,n){t.stop();t.b=Ht(function(e,t){return t?(e.a=e.c,e.g()):(t=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),t)}(t,n)).then(function(){return e=u.document,t=null,Ii()||!e?Ae():new _e(function(n){t=function(){Ii()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)}).s(function(n){throw e.removeEventListener("visibilitychange",t,!1),n});var e,t}).then(function(){return t.h()}).then(function(){e(t,!0)}).s(function(n){t.i(n)&&e(t,!1)})}(this,!0)},ul.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},ll.prototype.w=function(){return{apiKey:this.f.b,refreshToken:this.a,accessToken:this.b,expirationTime:this.c}},ll.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?Ie(new Yi("user-token-expired")):e||!this.b||T()>this.c-3e4?this.a?dl(this,{grant_type:"refresh_token",refresh_token:this.a}):Ae(null):Ae({accessToken:this.b,expirationTime:this.c,refreshToken:this.a})},hl.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},C(ml,ht),C(bl,jt),bl.prototype.pa=function(e){this.ka=e,Aa(this.c,e)},bl.prototype.ea=function(){return this.ka},bl.prototype.ya=function(){return K(this.O)},bl.prototype.Ha=function(){this.A.b&&(this.A.stop(),this.A.start())},Mi(bl.prototype,"providerId","firebase"),(t=bl.prototype).reload=function(){var e=this;return Hl(this,Al(this).then(function(){return Dl(e).then(function(){return El(e)}).then(Cl)}))},t.bc=function(e){return this.F(e).then(function(e){return new sl(e)})},t.F=function(e){var t=this;return Hl(this,Al(this).then(function(){return t.h.getToken(e)}).then(function(e){if(!e)throw new Yi("internal-error");return e.accessToken!=t.ra&&(kl(t,e.accessToken),t.dispatchEvent(new ml("tokenChanged"))),Pl(t,"refreshToken",e.refreshToken),e.accessToken}))},t.xc=function(e){if(!(e=e.users)||!e.length)throw new Yi("internal-error");Tl(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt});for(var t=function(e){return(e=e.providerUserInfo)&&e.length?B(e,function(e){return new pl(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)}):[]}(e),n=0;n<t.length;n++)Ol(this,t[n]);Pl(this,"isAnonymous",!(this.email&&e.passwordHash||this.providerData&&this.providerData.length))},t.yc=function(e){return Di("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.gb(e)},t.gb=function(e){var t=this,n=null;return Hl(this,e.f(this.c,this.uid).then(function(e){return Ll(t,e),n=jl(t,e,"reauthenticate"),t.i=null,t.reload()}).then(function(){return n}),!0)},t.pc=function(e){return Di("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.eb(e)},t.eb=function(e){var t=this,n=null;return Hl(this,Ml(this,e.providerId).then(function(){return t.F()}).then(function(n){return e.b(t.c,n)}).then(function(e){return n=jl(t,e,"link"),Ul(t,e)}).then(function(){return n}))},t.qc=function(e,t){var n=this;return Hl(this,Ml(this,"phone").then(function(){return al(wl(n),e,t,E(n.eb,n))}))},t.zc=function(e,t){var n=this;return Hl(this,Ae().then(function(){return al(wl(n),e,t,E(n.gb,n))}),!0)},t.rb=function(e){var t=this;return Hl(this,this.F().then(function(n){return t.c.rb(n,e)}).then(function(e){return Ll(t,e),t.reload()}))},t.Pc=function(e){var t=this;return Hl(this,this.F().then(function(n){return e.b(t.c,n)}).then(function(e){return Ll(t,e),t.reload()}))},t.sb=function(e){var t=this;return Hl(this,this.F().then(function(n){return t.c.sb(n,e)}).then(function(e){return Ll(t,e),t.reload()}))},t.tb=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Al(this);var t=this;return Hl(this,this.F().then(function(n){return t.c.tb(n,{displayName:e.displayName,photoUrl:e.photoURL})}).then(function(e){return Ll(t,e),Pl(t,"displayName",e.displayName||null),Pl(t,"photoURL",e.photoUrl||null),F(t.providerData,function(e){"password"===e.providerId&&(Mi(e,"displayName",t.displayName),Mi(e,"photoURL",t.photoURL))}),El(t)}).then(Cl))},t.Nc=function(e){var t=this;return Hl(this,Dl(this).then(function(n){return H(Il(t),e)?function(e,t,n){return vs(e,Ja,{idToken:t,deleteProvider:n})}(t.c,n,[e]).then(function(e){var n={};return F(e.providerUserInfo||[],function(e){n[e.providerId]=!0}),F(Il(t),function(e){n[e]||Nl(t,e)}),n[so.PROVIDER_ID]||Mi(t,"phoneNumber",null),El(t)}):El(t).then(function(){throw new Yi("no-such-provider")})}))},t.delete=function(){var e=this;return Hl(this,this.F().then(function(t){return vs(e.c,Ya,{idToken:t})}).then(function(){e.dispatchEvent(new ml("userDeleted"))})).then(function(){for(var t=0;t<e.G.length;t++)e.G[t].cancel("app-deleted");gl(e,null),yl(e,null),e.G=[],e.D=!0,xl(e),Mi(e,"refreshToken",null),e.a&&e.a.unsubscribe(e)})},t.xb=function(e,t){return!!("linkViaPopup"==e&&(this.g||null)==t&&this.f||"reauthViaPopup"==e&&(this.g||null)==t&&this.f||"linkViaRedirect"==e&&(this.aa||null)==t||"reauthViaRedirect"==e&&(this.aa||null)==t)},t.ha=function(e,t,n,i){"linkViaPopup"!=e&&"reauthViaPopup"!=e||i!=(this.g||null)||(n&&this.v?this.v(n):t&&!n&&this.f&&this.f(t),this.b&&(this.b.cancel(),this.b=null),delete this.f,delete this.v)},t.xa=function(e,t){return"linkViaPopup"==e&&t==(this.g||null)?E(this.Bb,this):"reauthViaPopup"==e&&t==(this.g||null)?E(this.Cb,this):"linkViaRedirect"==e&&(this.aa||null)==t?E(this.Bb,this):"reauthViaRedirect"==e&&(this.aa||null)==t?E(this.Cb,this):null},t.rc=function(e){var t=this;return Fl(this,"linkViaPopup",e,function(){return Ml(t,e.providerId).then(function(){return El(t)})},!1)},t.Ac=function(e){return Fl(this,"reauthViaPopup",e,function(){return Ae()},!0)},t.sc=function(e){var t=this;return Bl(this,"linkViaRedirect",e,function(){return Ml(t,e.providerId)},!1)},t.Bc=function(e){return Bl(this,"reauthViaRedirect",e,function(){return Ae()},!0)},t.Bb=function(e,t,n){var i=this;this.b&&(this.b.cancel(),this.b=null);var r=null;return Hl(this,this.F().then(function(r){return Ha(i.c,{requestUri:e,postBody:n,sessionId:t,idToken:r})}).then(function(e){return r=jl(i,e,"link"),Ul(i,e)}).then(function(){return r}))},t.Cb=function(e,t,n){var i=this;this.b&&(this.b.cancel(),this.b=null);var r=null;return Hl(this,Ae().then(function(){return Lr(Va(i.c,{requestUri:e,sessionId:t,postBody:n}),i.uid)}).then(function(e){return r=jl(i,e,"reauthenticate"),Ll(i,e),i.i=null,i.reload()}).then(function(){return r}),!0)},t.jb=function(e){var t=this,n=null;return Hl(this,this.F().then(function(t){return n=t,void 0===e||ue(e)?{}:lr(new Qi(e))}).then(function(e){return t.c.jb(n,e)}).then(function(e){if(t.email!=e)return t.reload()}).then(function(){}))},t.toJSON=function(){return this.w()},t.w=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,providerData:[],apiKey:this.l,appName:this.o,authDomain:this.u,stsTokenManager:this.h.w(),redirectEventId:this.aa||null};return this.metadata&&he(e,this.metadata.w()),F(this.providerData,function(t){e.providerData.push(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(t))}),e};var Gl={name:"redirectUser",B:"session"};function Kl(e){return gu(e.b,Gl,e.a)}function ql(e){this.a=e,this.b=pu(),this.c=null,this.f=function(e){var t=Jl("local"),n=Jl("session"),i=Jl("none");return function(e,t,n){var i=bu(t,n),r=mu(e,t.B);return e.get(t,n).then(function(o){var a=null;try{a=Ei(u.localStorage.getItem(i))}catch(e){}if(a&&!o)return u.localStorage.removeItem(i),e.set(t,a,n);a&&o&&"localStorage"!=r.type&&u.localStorage.removeItem(i)})}(e.b,t,e.a).then(function(){return e.b.get(n,e.a)}).then(function(r){return r?n:e.b.get(i,e.a).then(function(n){return n?i:e.b.get(t,e.a).then(function(n){return n?t:e.b.get(Yl,e.a).then(function(e){return e?Jl(e):t})})})}).then(function(t){return e.c=t,Xl(e,t.B)}).s(function(){e.c||(e.c=t)})}(this),this.b.addListener(Jl("local"),this.a,E(this.g,this))}function Xl(e,t){var n,i=[];for(n in du)du[n]!==t&&i.push(gu(e.b,Jl(du[n]),e.a));return i.push(gu(e.b,Yl,e.a)),function(e){return new _e(function(t,n){var i=e.length,r=[];if(i)for(var o=function(e,n){i--,r[e]=n,0==i&&t(r)},a=function(e){n(e)},s=0;s<e.length;s++)Oe(e[s],S(o,s),a);else t(r)})}(i)}ql.prototype.g=function(){var e=this,t=Jl("local");ec(this,function(){return Ae().then(function(){return e.c&&"local"!=e.c.B?e.b.get(t,e.a):null}).then(function(n){if(n)return Xl(e,"local").then(function(){e.c=t})})})};var Yl={name:"persistence",B:"session"};function Jl(e){return{name:"authUser",B:e}}function $l(e,t){return ec(e,function(){return e.b.set(e.c,t.w(),e.a)})}function Zl(e){return ec(e,function(){return gu(e.b,e.c,e.a)})}function Ql(e,t){return ec(e,function(){return e.b.get(e.c,e.a).then(function(e){return e&&t&&(e.authDomain=t),Vl(e||{})})})}function ec(e,t){return e.f=e.f.then(t,t),e.f}function tc(e){if(this.l=!1,Mi(this,"settings",new rl),Mi(this,"app",e),!uc(this).options||!uc(this).options.apiKey)throw new Yi("invalid-api-key");e=i.a.SDK_VERSION?pi(i.a.SDK_VERSION):null,this.c=new _a(uc(this).options&&uc(this).options.apiKey,vr(br),e),this.N=[],this.o=[],this.I=[],this.Sb=i.a.INTERNAL.createSubscribe(E(this.mc,this)),this.O=void 0,this.Tb=i.a.INTERNAL.createSubscribe(E(this.nc,this)),ac(this,null),this.h=new ql(uc(this).options.apiKey+":"+uc(this).name),this.A=new Wl(uc(this).options.apiKey+":"+uc(this).name),this.V=dc(this,function(e){var t=uc(e).options.authDomain,n=function(e){var t=function(e,t){return e.b.get(Gl,e.a).then(function(e){return e&&t&&(e.authDomain=t),Vl(e||{})})}(e.A,uc(e).options.authDomain).then(function(t){return(e.D=t)&&(t.ba=e.A),Kl(e.A)});return dc(e,t)}(e).then(function(){return Ql(e.h,t)}).then(function(t){return t?(t.ba=e.A,e.D&&(e.D.aa||null)==(t.aa||null)?t:t.reload().then(function(){return $l(e.h,t).then(function(){return t})}).s(function(n){return"auth/network-request-failed"==n.code?t:Zl(e.h)})):null}).then(function(t){ac(e,t||null)});return dc(e,n)}(this)),this.i=dc(this,function(e){return e.V.then(function(){return e.fa()}).s(function(){}).then(function(){if(!e.l)return e.ka()}).s(function(){}).then(function(){if(!e.l){e.X=!0;var t=e.h;t.b.addListener(Jl("local"),t.a,e.ka)}})}(this)),this.X=!1,this.ka=E(this.Kc,this),this.Ha=E(this.Z,this),this.ra=E(this.$b,this),this.sa=E(this.jc,this),this.ta=E(this.kc,this),function(e){var t=uc(e).options.authDomain,n=uc(e).options.apiKey;t&&vi()&&(e.Rb=e.V.then(function(){if(!e.l){if(e.a=Zu(t,n,uc(e).name),e.a.subscribe(e),lc(e)&&Sl(lc(e)),e.D){Sl(e.D);var i=e.D;i.pa(e.ea()),gl(i,e),vl(i=e.D,e.G),yl(i,e),e.D=null}return e.a}}))}(this),this.INTERNAL={},this.INTERNAL.delete=E(this.delete,this),this.INTERNAL.logFramework=E(this.tc,this),this.u=0,jt.call(this),function(e){Object.defineProperty(e,"lc",{get:function(){return this.ea()},set:function(e){this.pa(e)},enumerable:!1}),e.W=null}(this),this.G=[]}function nc(e){ht.call(this,"languageCodeChanged"),this.g=e}function ic(e){ht.call(this,"frameworkChanged"),this.c=e}function rc(e){return e.Rb||Ie(new Yi("auth-domain-config-required"))}function oc(e,t){var n={};return n.apiKey=uc(e).options.apiKey,n.authDomain=uc(e).options.authDomain,n.appName=uc(e).name,e.V.then(function(){return function(e,t,n,i){var r=new bl(e,t);return n&&(r.ba=n),i&&vl(r,i),r.reload().then(function(){return r})}(n,t,e.A,e.ya())}).then(function(t){return lc(e)&&t.uid==lc(e).uid?(Rl(lc(e),t),e.Z(t)):(ac(e,t),Sl(t),e.Z(t))}).then(function(){fc(e)})}function ac(e,t){lc(e)&&(function(e,t){W(e.N,function(e){return e==t})}(lc(e),e.Ha),At(lc(e),"tokenChanged",e.ra),At(lc(e),"userDeleted",e.sa),At(lc(e),"userInvalidated",e.ta),xl(lc(e))),t&&(t.N.push(e.Ha),St(t,"tokenChanged",e.ra),St(t,"userDeleted",e.sa),St(t,"userInvalidated",e.ta),0<e.u&&_l(t)),Mi(e,"currentUser",t),t&&(t.pa(e.ea()),gl(t,e),vl(t,e.G),yl(t,e))}function sc(e,t){var n=null,i=null;return dc(e,t.then(function(t){return n=lo(t),i=kr(t),oc(e,t)}).then(function(){return Ui({user:lc(e),credential:n,additionalUserInfo:i,operationType:"signIn"})}))}function uc(e){return e.app}function lc(e){return e.currentUser}function cc(e){return lc(e)&&lc(e)._lat||null}function fc(e){if(e.X){for(var t=0;t<e.o.length;t++)e.o[t]&&e.o[t](cc(e));if(e.O!==e.getUid()&&e.I.length)for(e.O=e.getUid(),t=0;t<e.I.length;t++)e.I[t]&&e.I[t](cc(e))}}function dc(e,t){return e.N.push(t),t.ia(function(){V(e.N,t)}),t}function hc(){}function pc(){this.a={},this.b=1e12}ql.prototype.mb=function(e){var t=null,n=this;return function(e){var t=new Yi("invalid-persistence-type"),n=new Yi("unsupported-persistence-type");e:{for(i in du)if(du[i]==e){var i=!0;break e}i=!1}if(!i||"string"!=typeof e)throw t;switch(ui()){case"ReactNative":if("session"===e)throw n;break;case"Node":if("none"!==e)throw n;break;default:if(!gi()&&"none"!==e)throw n}}(e),ec(this,function(){return e!=n.c.B?n.b.get(n.c,n.a).then(function(i){return t=i,Xl(n,e)}).then(function(){if(n.c=Jl(e),t)return n.b.set(n.c,t,n.a)}):Ae()})},C(tc,jt),C(nc,ht),C(ic,ht),(t=tc.prototype).mb=function(e){return dc(this,e=this.h.mb(e))},t.pa=function(e){this.W===e||this.l||(this.W=e,Aa(this.c,this.W),this.dispatchEvent(new nc(this.ea())))},t.ea=function(){return this.W},t.Qc=function(){var e=u.navigator;this.pa(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},t.tc=function(e){this.G.push(e),Ia(this.c,i.a.SDK_VERSION?pi(i.a.SDK_VERSION,this.G):null),this.dispatchEvent(new ic(this.G))},t.ya=function(){return K(this.G)},t.toJSON=function(){return{apiKey:uc(this).options.apiKey,authDomain:uc(this).options.authDomain,appName:uc(this).name,currentUser:lc(this)&&lc(this).w()}},t.xb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==t&&!!this.f;default:return!1}},t.ha=function(e,t,n,i){"signInViaPopup"==e&&this.g==i&&(n&&this.v?this.v(n):t&&!n&&this.f&&this.f(t),this.b&&(this.b.cancel(),this.b=null),delete this.f,delete this.v)},t.xa=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.g==t&&this.f?E(this.Zb,this):null},t.Zb=function(e,t,n){var i=this;e={requestUri:e,postBody:n,sessionId:t},this.b&&(this.b.cancel(),this.b=null);var r=null,o=null,a=za(i.c,e).then(function(e){return r=lo(e),o=kr(e),e});return dc(this,e=i.V.then(function(){return a}).then(function(e){return oc(i,e)}).then(function(){return Ui({user:lc(i),credential:r,additionalUserInfo:o,operationType:"signIn"})}))},t.Ic=function(e){if(!vi())return Ie(new Yi("operation-not-supported-in-this-environment"));var t=this,n=xr(e.providerId),r=Si(),o=null;(!_i()||ai())&&uc(this).options.authDomain&&e.isOAuthProvider&&(o=Rs(uc(this).options.authDomain,uc(this).options.apiKey,uc(this).name,"signInViaPopup",e,null,r,i.a.SDK_VERSION||null));var a=ti(o,n&&n.Ba,n&&n.Aa);return dc(this,n=rc(this).then(function(t){return Yu(t,a,"signInViaPopup",e,r,!!o)}).then(function(){return new _e(function(e,n){t.ha("signInViaPopup",null,new Yi("cancelled-popup-request"),t.g),t.f=e,t.v=n,t.g=r,t.b=t.a.Ea(t,"signInViaPopup",a,r)})}).then(function(e){return a&&ei(a),e?Ui(e):null}).s(function(e){throw a&&ei(a),e}))},t.Jc=function(e){if(!vi())return Ie(new Yi("operation-not-supported-in-this-environment"));var t=this;return dc(this,rc(this).then(function(){return ec(e=t.h,function(){return e.b.set(Yl,e.c.B,e.a)});var e}).then(function(){return t.a.Ca("signInViaRedirect",e)}))},t.fa=function(){if(!vi())return Ie(new Yi("operation-not-supported-in-this-environment"));var e=this;return dc(this,rc(this).then(function(){return e.a.fa()}).then(function(e){return e?Ui(e):null}))},t.Oc=function(e){if(!e)return Ie(new Yi("null-user"));var t=this,n={};n.apiKey=uc(this).options.apiKey,n.authDomain=uc(this).options.authDomain,n.appName=uc(this).name;var i=function(e,t,n,i){t=t||{apiKey:e.l,authDomain:e.u,appName:e.o};var r=e.h,o={};return o[ka]=r.b,o.refreshToken=r.a,o.expiresIn=(r.c-T())/1e3,t=new bl(t,o),n&&(t.ba=n),i&&vl(t,i),Rl(t,e),t}(e,n,t.A,t.ya());return dc(this,this.i.then(function(){if(uc(t).options.apiKey!=e.l)return i.reload()}).then(function(){return lc(t)&&e.uid==lc(t).uid?(Rl(lc(t),e),t.Z(e)):(ac(t,i),Sl(i),t.Z(i))}).then(function(){fc(t)}))},t.pb=function(){var e=this;return dc(this,this.i.then(function(){return lc(e)?(ac(e,null),Zl(e.h).then(function(){fc(e)})):Ae()}))},t.Kc=function(){var e=this;return Ql(this.h,uc(this).options.authDomain).then(function(t){if(!e.l){var n;if(n=lc(e)&&t){n=lc(e).uid;var i=t.uid;n=null!=n&&""!==n&&null!=i&&""!==i&&n==i}if(n)return Rl(lc(e),t),lc(e).F();(lc(e)||t)&&(ac(e,t),t&&(Sl(t),t.ba=e.A),e.a&&e.a.subscribe(e),fc(e))}})},t.Z=function(e){return $l(this.h,e)},t.$b=function(){fc(this),this.Z(lc(this))},t.jc=function(){this.pb()},t.kc=function(){this.pb()},t.mc=function(e){var t=this;this.addAuthTokenListener(function(){e.next(lc(t))})},t.nc=function(e){var t=this;!function(e,t){e.I.push(t),dc(e,e.i.then(function(){!e.l&&H(e.I,t)&&e.O!==e.getUid()&&(e.O=e.getUid(),t(cc(e)))}))}(this,function(){e.next(lc(t))})},t.vc=function(e,t,n){var i=this;return this.X&&Promise.resolve().then(function(){v(e)?e(lc(i)):v(e.next)&&e.next(lc(i))}),this.Sb(e,t,n)},t.uc=function(e,t,n){var i=this;return this.X&&Promise.resolve().then(function(){i.O=i.getUid(),v(e)?e(lc(i)):v(e.next)&&e.next(lc(i))}),this.Tb(e,t,n)},t.ac=function(e){var t=this;return dc(this,this.i.then(function(){return lc(t)?lc(t).F(e).then(function(e){return{accessToken:e}}):null}))},t.Ec=function(e){var t=this;return this.i.then(function(){return sc(t,vs(t.c,hs,{token:e}))}).then(function(e){var n=e.user;return Pl(n,"isAnonymous",!1),t.Z(n),e})},t.Fc=function(e,t){var n=this;return this.i.then(function(){return sc(n,vs(n.c,ps,{email:e,password:t}))})},t.Vb=function(e,t){var n=this;return this.i.then(function(){return sc(n,vs(n.c,qa,{email:e,password:t}))})},t.Nb=function(e){var t=this;return this.i.then(function(){return sc(t,e.la(t.c))})},t.nb=function(e){return Di("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Nb(e)},t.ob=function(){var e=this;return this.i.then(function(){var t=lc(e);if(t&&t.isAnonymous){var n=Ui({providerId:null,isNewUser:!1});return Ui({user:t,credential:null,additionalUserInfo:n,operationType:"signIn"})}return sc(e,e.c.ob()).then(function(t){var n=t.user;return Pl(n,"isAnonymous",!0),e.Z(n),t})})},t.getUid=function(){return lc(this)&&lc(this).uid||null},t.Ub=function(e){this.addAuthTokenListener(e),this.u++,0<this.u&&lc(this)&&_l(lc(this))},t.Cc=function(e){var t=this;F(this.o,function(n){n==e&&t.u--}),0>this.u&&(this.u=0),0==this.u&&lc(this)&&xl(lc(this)),this.removeAuthTokenListener(e)},t.addAuthTokenListener=function(e){var t=this;this.o.push(e),dc(this,this.i.then(function(){t.l||H(t.o,e)&&e(cc(t))}))},t.removeAuthTokenListener=function(e){W(this.o,function(t){return t==e})},t.delete=function(){this.l=!0;for(var e=0;e<this.N.length;e++)this.N[e].cancel("app-deleted");return this.N=[],this.h&&(e=this.h).b.removeListener(Jl("local"),e.a,this.ka),this.a&&(this.a.unsubscribe(this),this.a.Ya()),Promise.resolve()},t.Yb=function(e){return dc(this,function(e,t){return vs(e,Xa,{identifier:t,continueUri:yi()?$n():"http://localhost"}).then(function(e){return e.signinMethods||[]})}(this.c,e))},t.oc=function(e){return!!io(e)},t.lb=function(e,t){var n=this;return dc(this,Ae().then(function(){var e=new Qi(t);if(!e.c)throw new Yi("argument-error",nr+" must be true when sending sign in link to email");return lr(e)}).then(function(t){return n.c.lb(e,t)}).then(function(){}))},t.Rc=function(e){return this.Ka(e).then(function(e){return e.data.email})},t.Za=function(e,t){return dc(this,this.c.Za(e,t).then(function(){}))},t.Ka=function(e){return dc(this,this.c.Ka(e).then(function(e){return new Bi(e)}))},t.Wa=function(e){return dc(this,this.c.Wa(e).then(function(){}))},t.kb=function(e,t){var n=this;return dc(this,Ae().then(function(){return void 0===t||ue(t)?{}:lr(new Qi(t))}).then(function(t){return n.c.kb(e,t)}).then(function(){}))},t.Hc=function(e,t){return dc(this,al(this,e,t,E(this.nb,this)))},t.Gc=function(e,t){var n=this;return dc(this,Ae().then(function(){var i=no(e,t||$n());return n.nb(i)}))},hc.prototype.render=function(){},hc.prototype.reset=function(){},hc.prototype.getResponse=function(){},hc.prototype.execute=function(){};var mc=null;function bc(e,t){return(t=gc(t))&&e.a[t]||null}function gc(e){return(e=void 0===e?1e12:e)?e.toString():null}function vc(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=Bn(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():St(this.f,"click",this.i)}function yc(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function wc(){}pc.prototype.render=function(e,t){return this.a[this.b.toString()]=new vc(e,t),this.b++},pc.prototype.reset=function(e){var t=bc(this,e);e=gc(e),t&&e&&(t.delete(),delete this.a[e])},pc.prototype.getResponse=function(e){return(e=bc(this,e))?e.getResponse():null},pc.prototype.execute=function(e){(e=bc(this,e))&&e.execute()},vc.prototype.getResponse=function(){return yc(this),this.b},vc.prototype.execute=function(){yc(this);var e=this;this.a||(this.a=setTimeout(function(){e.b=function(){for(var e=50,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}();var t=e.c.callback,n=e.c["expired-callback"];if(t)try{t(e.b)}catch(e){}e.a=setTimeout(function(){if(e.a=null,e.b=null,n)try{n()}catch(e){}e.h&&e.execute()},6e4)},500))},vc.prototype.delete=function(){yc(this),this.g=!0,clearTimeout(this.a),this.a=null,At(this.f,"click",this.i)},wc.prototype.g=function(){return mc||(mc=new pc),Ae(mc)},wc.prototype.c=function(){};var _c=null;function xc(){this.b=u.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var kc=new _n(En,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Ec=new Ai(3e4,6e4);xc.prototype.g=function(e){var t=this;return new _e(function(n,i){var r=setTimeout(function(){i(new Yi("network-request-failed"))},Ec.get());!u.grecaptcha||e!==t.f&&!t.b?(u[t.a]=function(){if(u.grecaptcha){t.f=e;var o=u.grecaptcha.render;u.grecaptcha.render=function(e,n){return e=o(e,n),t.b++,e},clearTimeout(r),n(u.grecaptcha)}else clearTimeout(r),i(new Yi("internal-error"));delete u[t.a]},Ae(pa(Cn(kc,{onload:t.a,hl:e||""}))).s(function(){clearTimeout(r),i(new Yi("internal-error","Unable to load external reCAPTCHA dependencies!"))})):(clearTimeout(r),n(u.grecaptcha))})},xc.prototype.c=function(){this.b--};var Sc=null;function Tc(e,t,n,i,r,o,a){if(Mi(this,"type","recaptcha"),this.c=this.f=null,this.D=!1,this.l=t,this.g=null,a?(_c||(_c=new wc),a=_c):(Sc||(Sc=new xc),a=Sc),this.o=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Ic])throw new Yi("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Oc],!u.document)throw new Yi("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!Bn(t)||!this.i&&Bn(t).hasChildNodes())throw new Yi("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.u=new _a(e,o||null,r||null),this.v=i||function(){return null};var s=this;this.m=[];var l=this.a[Cc];this.a[Cc]=function(e){if(Nc(s,e),"function"==typeof l)l(e);else if("string"==typeof l){var t=bi(l,u);"function"==typeof t&&t(e)}};var c=this.a[Ac];this.a[Ac]=function(){if(Nc(s,null),"function"==typeof c)c();else if("string"==typeof c){var e=bi(c,u);"function"==typeof e&&e()}}}var Cc="callback",Ac="expired-callback",Ic="sitekey",Oc="size";function Nc(e,t){for(var n=0;n<e.m.length;n++)try{e.m[n](t)}catch(e){}}function Pc(e,t){return e.h.push(t),t.ia(function(){V(e.h,t)}),t}function Rc(e){if(e.D)throw new Yi("internal-error","RecaptchaVerifier instance has been destroyed.")}function Dc(e,t,n){var r=!1;try{this.b=n||i.a.app()}catch(e){throw new Yi("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new Yi("invalid-api-key");n=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().ya()}catch(e){}try{r=this.b.auth().settings.appVerificationDisabledForTesting}catch(e){}a=i.a.SDK_VERSION?pi(i.a.SDK_VERSION,a):null,Tc.call(this,n,e,t,function(){try{var e=o.b.auth().ea()}catch(t){e=null}return e},a,vr(br),r)}function Lc(e,t,n,i){e:{n=Array.prototype.slice.call(n);for(var r=0,o=!1,a=0;a<t.length;a++)if(t[a].optional)o=!0;else{if(o)throw new Yi("internal-error","Argument validator encountered a required argument after an optional argument.");r++}if(o=t.length,n.length<r||o<n.length)i="Expected "+(r==o?1==r?"1 argument":r+" arguments":r+"-"+o+" arguments")+" but got "+n.length+".";else{for(r=0;r<n.length;r++)if(o=t[r].optional&&void 0===n[r],!t[r].M(n[r])&&!o){if(t=t[r],0>r||r>=Mc.length)throw new Yi("internal-error","Argument validator received an unsupported number of arguments.");n=Mc[r],i=(i?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.K+".";break e}i=null}}if(i)throw new Yi("argument-error",e+" failed: "+i)}(t=Tc.prototype).za=function(){var e=this;return this.f?this.f:this.f=Pc(this,Ae().then(function(){if(yi()&&!si())return ri();throw new Yi("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return e.o.g(e.v())}).then(function(t){return e.g=t,vs(e.u,rs,{})}).then(function(t){e.a[Ic]=t.recaptchaSiteKey}).s(function(t){throw e.f=null,t}))},t.render=function(){Rc(this);var e=this;return Pc(this,this.za().then(function(){if(null===e.c){var t=e.l;if(!e.i){var n=Bn(t);t=Vn("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c}))},t.verify=function(){Rc(this);var e=this;return Pc(this,this.render().then(function(t){return new _e(function(n){var i=e.g.getResponse(t);if(i)n(i);else{var r=function(t){t&&(function(e,t){W(e.m,function(e){return e==t})}(e,r),n(t))};e.m.push(r),e.i&&e.g.execute(e.c)}})}))},t.reset=function(){Rc(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){Rc(this),this.D=!0,this.o.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=Bn(this.l);for(var t;t=e.firstChild;)e.removeChild(t)}},C(Dc,Tc);var Mc="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function jc(e,t){return{name:e||"",K:"a valid string",optional:!!t,M:l}}function Uc(e,t){return{name:e||"",K:"a boolean",optional:!!t,M:c}}function Fc(e,t){return{name:e||"",K:"a valid object",optional:!!t,M:y}}function Bc(e,t){return{name:e||"",K:"a function",optional:!!t,M:v}}function zc(e,t){return{name:e||"",K:"null",optional:!!t,M:m}}function Hc(e){return{name:e?e+"Credential":"credential",K:e?"a valid "+e+" credential":"a valid credential",optional:!1,M:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.la||!n)}}}function Vc(){return{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(e){return!!(e&&l(e.type)&&v(e.verify))}}}function Wc(e,t,n,i){return{name:n||"",K:e.K+" or "+t.K,optional:!!i,M:function(n){return e.M(n)||t.M(n)}}}function Gc(e,t){for(var n in t){var i=t[n].name;e[i]=Xc(i,e[n],t[n].j)}}function Kc(e,t){for(var n in t){var i=t[n].name;i!==n&&Object.defineProperty(e,i,{get:S(function(e){return this[e]},n),set:S(function(e,t,n,i){Lc(e,[n],[i],!0),this[t]=i},i,n,t[n].vb),enumerable:!0})}}function qc(e,t,n,i){e[t]=Xc(t,n,i)}function Xc(e,t,n){function i(){var e=Array.prototype.slice.call(arguments);return Lc(o,n,e),t.apply(this,e)}if(!n)return t;var r,o=function(e){return(e=e.split("."))[e.length-1]}(e);for(r in t)i[r]=t[r];for(r in t.prototype)i.prototype[r]=t.prototype[r];return i}Gc(tc.prototype,{Wa:{name:"applyActionCode",j:[jc("code")]},Ka:{name:"checkActionCode",j:[jc("code")]},Za:{name:"confirmPasswordReset",j:[jc("code"),jc("newPassword")]},Vb:{name:"createUserWithEmailAndPassword",j:[jc("email"),jc("password")]},Yb:{name:"fetchSignInMethodsForEmail",j:[jc("email")]},fa:{name:"getRedirectResult",j:[]},oc:{name:"isSignInWithEmailLink",j:[jc("emailLink")]},uc:{name:"onAuthStateChanged",j:[Wc(Fc(),Bc(),"nextOrObserver"),Bc("opt_error",!0),Bc("opt_completed",!0)]},vc:{name:"onIdTokenChanged",j:[Wc(Fc(),Bc(),"nextOrObserver"),Bc("opt_error",!0),Bc("opt_completed",!0)]},kb:{name:"sendPasswordResetEmail",j:[jc("email"),Wc(Fc("opt_actionCodeSettings",!0),zc(null,!0),"opt_actionCodeSettings",!0)]},lb:{name:"sendSignInLinkToEmail",j:[jc("email"),Fc("actionCodeSettings")]},mb:{name:"setPersistence",j:[jc("persistence")]},nb:{name:"signInAndRetrieveDataWithCredential",j:[Hc()]},ob:{name:"signInAnonymously",j:[]},Nb:{name:"signInWithCredential",j:[Hc()]},Ec:{name:"signInWithCustomToken",j:[jc("token")]},Fc:{name:"signInWithEmailAndPassword",j:[jc("email"),jc("password")]},Gc:{name:"signInWithEmailLink",j:[jc("email"),jc("emailLink",!0)]},Hc:{name:"signInWithPhoneNumber",j:[jc("phoneNumber"),Vc()]},Ic:{name:"signInWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Jc:{name:"signInWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Oc:{name:"updateCurrentUser",j:[Wc({name:"user",K:"an instance of Firebase User",optional:!1,M:function(e){return!!(e&&e instanceof bl)}},zc(),"user")]},pb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[jc(null,!0)]},Qc:{name:"useDeviceLanguage",j:[]},Rc:{name:"verifyPasswordResetCode",j:[jc("code")]}}),Kc(tc.prototype,{lc:{name:"languageCode",vb:Wc(jc(),zc(),"languageCode")}}),tc.Persistence=du,tc.Persistence.LOCAL="local",tc.Persistence.SESSION="session",tc.Persistence.NONE="none",Gc(bl.prototype,{delete:{name:"delete",j:[]},bc:{name:"getIdTokenResult",j:[Uc("opt_forceRefresh",!0)]},F:{name:"getIdToken",j:[Uc("opt_forceRefresh",!0)]},pc:{name:"linkAndRetrieveDataWithCredential",j:[Hc()]},eb:{name:"linkWithCredential",j:[Hc()]},qc:{name:"linkWithPhoneNumber",j:[jc("phoneNumber"),Vc()]},rc:{name:"linkWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},sc:{name:"linkWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},yc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Hc()]},gb:{name:"reauthenticateWithCredential",j:[Hc()]},zc:{name:"reauthenticateWithPhoneNumber",j:[jc("phoneNumber"),Vc()]},Ac:{name:"reauthenticateWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Bc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},jb:{name:"sendEmailVerification",j:[Wc(Fc("opt_actionCodeSettings",!0),zc(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[jc(null,!0)]},Nc:{name:"unlink",j:[jc("provider")]},rb:{name:"updateEmail",j:[jc("email")]},sb:{name:"updatePassword",j:[jc("password")]},Pc:{name:"updatePhoneNumber",j:[Hc("phone")]},tb:{name:"updateProfile",j:[Fc("profile")]}}),Gc(pc.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Gc(hc.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Gc(_e.prototype,{ia:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),Kc(rl.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",vb:Uc("appVerificationDisabledForTesting")}}),Gc(ol.prototype,{confirm:{name:"confirm",j:[jc("verificationCode")]}}),qc(Dr,"fromJSON",function(e){e=l(e)?JSON.parse(e):e;for(var t,n=[zr,eo,oo,Ur],i=0;i<n.length;i++)if(t=n[i](e))return t;return null},[Wc(jc(),Fc(),"json")]),qc(to,"credential",function(e,t){return new Qr(e,t)},[jc("email"),jc("password")]),Gc(Qr.prototype,{w:{name:"toJSON",j:[jc(null,!0)]}}),Gc(Gr.prototype,{ua:{name:"addScope",j:[jc("scope")]},Da:{name:"setCustomParameters",j:[Fc("customOAuthParameters")]}}),qc(Gr,"credential",Kr,[Wc(jc(),Fc(),"token")]),qc(to,"credentialWithLink",no,[jc("email"),jc("emailLink")]),Gc(qr.prototype,{ua:{name:"addScope",j:[jc("scope")]},Da:{name:"setCustomParameters",j:[Fc("customOAuthParameters")]}}),qc(qr,"credential",Xr,[Wc(jc(),Fc(),"token")]),Gc(Yr.prototype,{ua:{name:"addScope",j:[jc("scope")]},Da:{name:"setCustomParameters",j:[Fc("customOAuthParameters")]}}),qc(Yr,"credential",Jr,[Wc(jc(),Wc(Fc(),zc()),"idToken"),Wc(jc(),zc(),"accessToken",!0)]),Gc($r.prototype,{Da:{name:"setCustomParameters",j:[Fc("customOAuthParameters")]}}),qc($r,"credential",Zr,[Wc(jc(),Fc(),"token"),jc("secret",!0)]),Gc(Wr.prototype,{ua:{name:"addScope",j:[jc("scope")]},credential:{name:"credential",j:[Wc(jc(),Wc(Fc(),zc()),"optionsOrIdToken"),Wc(jc(),zc(),"accessToken",!0)]},Da:{name:"setCustomParameters",j:[Fc("customOAuthParameters")]}}),Gc(Fr.prototype,{w:{name:"toJSON",j:[jc(null,!0)]}}),Gc(Mr.prototype,{w:{name:"toJSON",j:[jc(null,!0)]}}),qc(so,"credential",uo,[jc("verificationId"),jc("verificationCode")]),Gc(so.prototype,{Ua:{name:"verifyPhoneNumber",j:[jc("phoneNumber"),Vc()]}}),Gc(ro.prototype,{w:{name:"toJSON",j:[jc(null,!0)]}}),Gc(Yi.prototype,{toJSON:{name:"toJSON",j:[jc(null,!0)]}}),Gc(vo.prototype,{toJSON:{name:"toJSON",j:[jc(null,!0)]}}),Gc(go.prototype,{toJSON:{name:"toJSON",j:[jc(null,!0)]}}),Gc(Dc.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),function(){if(void 0===i.a||!i.a.INTERNAL||!i.a.INTERNAL.registerService)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={Auth:tc,AuthCredential:Dr,Error:Yi};qc(e,"EmailAuthProvider",to,[]),qc(e,"FacebookAuthProvider",Gr,[]),qc(e,"GithubAuthProvider",qr,[]),qc(e,"GoogleAuthProvider",Yr,[]),qc(e,"TwitterAuthProvider",$r,[]),qc(e,"OAuthProvider",Wr,[jc("providerId")]),qc(e,"SAMLAuthProvider",Vr,[jc("providerId")]),qc(e,"PhoneAuthProvider",so,[{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(e){return!!(e&&e instanceof tc)}}]),qc(e,"RecaptchaVerifier",Dc,[Wc(jc(),{name:"",K:"an HTML element",optional:!1,M:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),Fc("recaptchaParameters",!0),{name:"app",K:"an instance of Firebase App",optional:!0,M:function(e){return!!(e&&e instanceof i.a.app.App)}}]),i.a.INTERNAL.registerService("auth",function(e,t){return t({INTERNAL:{getUid:E((e=new tc(e)).getUid,e),getToken:E(e.ac,e),addAuthTokenListener:E(e.Ub,e),removeAuthTokenListener:E(e.Cc,e)}}),e},e,function(e,t){if("create"===e)try{t.auth()}catch(e){}}),i.a.INTERNAL.extendNamespace({User:bl})}()}).apply(void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}).call(this,n(5))},function(e,t,n){"use strict";n(27)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=(i=n(6))&&"object"==typeof i&&"default"in i?i.default:i,o=n(7),a={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},s=function(e){function t(n,i,r){var o=e.call(this,i)||this;return Object.setPrototypeOf(o,t.prototype),o.code=n,o.details=r,o}return o.__extends(t,e),t}(Error);var u=function(){function e(e){this.app=e}return e.prototype.getAuthToken=function(){return o.__awaiter(this,void 0,void 0,function(){var e;return o.__generator(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.app.INTERNAL.getToken()];case 1:return(e=t.sent())?[2,e.accessToken]:[2,void 0];case 2:return t.sent(),[2,void 0];case 3:return[2]}})})},e.prototype.getInstanceIdToken=function(){return o.__awaiter(this,void 0,void 0,function(){var e;return o.__generator(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),this.app.messaging?[4,this.app.messaging().getToken()]:[2,void 0];case 1:return(e=t.sent())?[2,e]:[2,void 0];case 2:return t.sent(),[2,void 0];case 3:return[2]}})})},e.prototype.getContext=function(){return o.__awaiter(this,void 0,void 0,function(){var e,t;return o.__generator(this,function(n){switch(n.label){case 0:return[4,this.getAuthToken()];case 1:return e=n.sent(),[4,this.getInstanceIdToken()];case 2:return t=n.sent(),[2,{authToken:e,instanceIdToken:t}]}})})},e}();
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function l(e,t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=t(e[i]));return n}var c=function(){function e(){}return e.prototype.encode=function(e){var t=this;if(null==e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&isFinite(e))return e;if(!0===e||!1===e)return e;if("[object String]"===Object.prototype.toString.call(e))return e;if(Array.isArray(e))return e.map(function(e){return t.encode(e)});if("function"==typeof e||"object"==typeof e)return l(e,function(e){return t.encode(e)});throw new Error("Data cannot be encoded in JSON: "+e)},e.prototype.decode=function(e){var t=this;if(null===e)return e;if(e["@type"])switch(e["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":var n=parseFloat(e.value);if(isNaN(n))throw new Error("Data cannot be decoded from JSON: "+e);return n;default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map(function(e){return t.decode(e)}):"function"==typeof e||"object"==typeof e?l(e,function(e){return t.decode(e)}):e},e}();
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var f=function(){function e(e,t){var n=this;void 0===t&&(t="us-central1"),this.app_=e,this.region_=t,this.serializer=new c,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return n.deleteService()}},this.contextProvider=new u(e),this.cancelAllRequests=new Promise(function(e){n.deleteService=function(){return e()}})}return Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),e.prototype._url=function(e){var t=this.app_.options.projectId,n=this.region_;return null!==this.emulatorOrigin?this.emulatorOrigin+"/"+t+"/"+n+"/"+e:"https://"+n+"-"+t+".cloudfunctions.net/"+e},e.prototype.useFunctionsEmulator=function(e){this.emulatorOrigin=e},e.prototype.httpsCallable=function(e,t){var n=this;return function(i){return n.call(e,i,t||{})}},e.prototype.postJSON=function(e,t,n){return o.__awaiter(this,void 0,void 0,function(){var i,r;return o.__generator(this,function(o){switch(o.label){case 0:n.append("Content-Type","application/json"),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,fetch(e,{method:"POST",body:JSON.stringify(t),headers:n})];case 2:return i=o.sent(),[3,4];case 3:return o.sent(),[2,{status:0,json:null}];case 4:r=null,o.label=5;case 5:return o.trys.push([5,7,,8]),[4,i.json()];case 6:return r=o.sent(),[3,8];case 7:return o.sent(),[3,8];case 8:return[2,{status:i.status,json:r}]}})})},e.prototype.call=function(e,t,n){return o.__awaiter(this,void 0,void 0,function(){var i,r,u,l,c,f,d,h;return o.__generator(this,function(o){switch(o.label){case 0:return i=this._url(e),t=this.serializer.encode(t),r={data:t},u=new Headers,[4,this.contextProvider.getContext()];case 1:return(l=o.sent()).authToken&&u.append("Authorization","Bearer "+l.authToken),l.instanceIdToken&&u.append("Firebase-Instance-ID-Token",l.instanceIdToken),c=n.timeout||7e4,[4,Promise.race([this.postJSON(i,r,u),(p=c,new Promise(function(e,t){setTimeout(function(){t(new s("deadline-exceeded","deadline-exceeded"))},p)})),this.cancelAllRequests])];case 2:if(!(f=o.sent()))throw new s("cancelled","Firebase Functions instance was deleted.");if(d=function(e,t,n){var i=function(e){if(e>=200&&e<300)return"ok";switch(e){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(e),r=i,o=void 0;try{var u=t.error;if(u){var l=u.status;if("string"==typeof l){if(!a[l])return new s("internal","internal");i=a[l]}r=l;var c=u.message;"string"==typeof c&&(r=c),void 0!==(o=u.details)&&(o=n.decode(o))}}catch(e){}return"ok"===i?null:new s(i,r,o)}(f.status,f.json,this.serializer))throw d;if(!f.json)throw new s("internal","Response is not valid JSON object.");if(void 0===(h=f.json.data)&&(h=f.json.result),void 0===h)throw new s("internal","Response is missing data field.");return[2,{data:this.serializer.decode(h)}]}var p})})},e}(),d="functions";
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function h(e,t,n){return new f(e,n)}function p(e){var t={Functions:f};e.INTERNAL.registerService(d,h,t,void 0,!0)}p(r),t.registerFunctions=p},function(e,t,n){e.exports=function(){"use strict";var e=function(e){return e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array||e instanceof Uint8ClampedArray},t=function(e,t){for(var n=Object.keys(t),i=0;i<n.length;++i)e[n[i]]=t[n[i]];return e},n="\n";function i(e){var t=new Error("(regl) "+e);throw console.error(t),t}function r(e,t){e||i(t)}function o(e){return e?": "+e:""}function a(e,t,n){t.indexOf(e)<0&&i("invalid value"+o(n)+". must be one of: "+t)}var s=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function u(e,t){for(e+="";e.length<t;)e=" "+e;return e}function l(){this.name="unknown",this.lines=[],this.index={},this.hasErrors=!1}function c(e,t){this.number=e,this.line=t,this.errors=[]}function f(e,t,n){this.file=e,this.line=t,this.message=n}function d(){var e=new Error,t=(e.stack||e).toString(),n=/compileProcedure.*\n\s*at.*\((.*)\)/.exec(t);if(n)return n[1];var i=/compileProcedure.*\n\s*at\s+(.*)(\n|$)/.exec(t);return i?i[1]:"unknown"}function h(){var e=new Error,t=(e.stack||e).toString(),n=/at REGLCommand.*\n\s+at.*\((.*)\)/.exec(t);if(n)return n[1];var i=/at REGLCommand.*\n\s+at\s+(.*)\n/.exec(t);return i?i[1]:"unknown"}function p(e,t){var n,i=e.split("\n"),r=1,o=0,a={unknown:new l,0:new l};a.unknown.name=a[0].name=t||d(),a.unknown.lines.push(new c(0,""));for(var s=0;s<i.length;++s){var u=i[s],f=/^\s*\#\s*(\w+)\s+(.+)\s*$/.exec(u);if(f)switch(f[1]){case"line":var h=/(\d+)(\s+\d+)?/.exec(f[2]);h&&(r=0|h[1],h[2]&&((o=0|h[2])in a||(a[o]=new l)));break;case"define":var p=/SHADER_NAME(_B64)?\s+(.*)$/.exec(f[2]);p&&(a[o].name=p[1]?(n=p[2],"undefined"!=typeof atob?atob(n):"base64:"+n):p[2])}a[o].lines.push(new c(r++,u))}return Object.keys(a).forEach(function(e){var t=a[e];t.lines.forEach(function(e){t.index[e.number]=e})}),a}function m(e){e._commandRef=d()}function b(e,t){var n=h();i(e+" in command "+(t||d())+("unknown"===n?"":" called from "+n))}function g(e,t,n,i){typeof e!==t&&b("invalid parameter type"+o(n)+". expected "+t+", got "+typeof e,i||d())}var v=33071,y=9728,w=9984,_=9985,x=9986,k=9987,E=5126,S=32819,T=32820,C=33635,A=34042,I={};function O(e,t){return e===T||e===S||e===C?2:e===A?4:I[e]*t}function N(e){return!(e&e-1||!e)}I[5120]=I[5121]=1,I[5122]=I[5123]=I[36193]=I[C]=I[S]=I[T]=2,I[5124]=I[5125]=I[E]=I[A]=4;var P=t(r,{optional:function(e){e()},raise:i,commandRaise:b,command:function(e,t,n){e||b(t,n||d())},parameter:function(e,t,n){e in t||i("unknown parameter ("+e+")"+o(n)+". possible values: "+Object.keys(t).join())},commandParameter:function(e,t,n,i){e in t||b("unknown parameter ("+e+")"+o(n)+". possible values: "+Object.keys(t).join(),i||d())},constructor:function(e){Object.keys(e).forEach(function(e){s.indexOf(e)<0&&i('invalid regl constructor argument "'+e+'". must be one of '+s)})},type:function(e,t,n){typeof e!==t&&i("invalid parameter type"+o(n)+". expected "+t+", got "+typeof e)},commandType:g,isTypedArray:function(t,n){e(t)||i("invalid parameter type"+o(n)+". must be a typed array")},nni:function(e,t){e>=0&&(0|e)===e||i("invalid parameter type, ("+e+")"+o(t)+". must be a nonnegative integer")},oneOf:a,shaderError:function(e,t,i,o,a){if(!e.getShaderParameter(t,e.COMPILE_STATUS)){var s=e.getShaderInfoLog(t),l=o===e.FRAGMENT_SHADER?"fragment":"vertex";g(i,"string",l+" shader source must be a string",a);var c=p(i,a),d=function(e){var t=[];return e.split("\n").forEach(function(e){if(!(e.length<5)){var n=/^ERROR\:\s+(\d+)\:(\d+)\:\s*(.*)$/.exec(e);n?t.push(new f(0|n[1],0|n[2],n[3].trim())):e.length>0&&t.push(new f("unknown",0,e))}}),t}(s);!function(e,t){t.forEach(function(t){var n=e[t.file];if(n){var i=n.index[t.line];if(i)return i.errors.push(t),void(n.hasErrors=!0)}e.unknown.hasErrors=!0,e.unknown.lines[0].errors.push(t)})}(c,d),Object.keys(c).forEach(function(e){var t=c[e];if(t.hasErrors){var i=[""],r=[""];o("file number "+e+": "+t.name+"\n","color:red;text-decoration:underline;font-weight:bold"),t.lines.forEach(function(e){if(e.errors.length>0){o(u(e.number,4)+"| ","background-color:yellow; font-weight:bold"),o(e.line+n,"color:red; background-color:yellow; font-weight:bold");var t=0;e.errors.forEach(function(i){var r=i.message,a=/^\s*\'(.*)\'\s*\:\s*(.*)$/.exec(r);if(a){var s=a[1];switch(r=a[2],s){case"assign":s="="}t=Math.max(e.line.indexOf(s,t),0)}else t=0;o(u("| ",6)),o(u("^^^",t+3)+n,"font-weight:bold"),o(u("| ",6)),o(r+n,"font-weight:bold")}),o(u("| ",6)+n)}else o(u(e.number,4)+"| "),o(e.line+n,"color:red")}),"undefined"==typeof document||window.chrome?console.log(i.join("")):(r[0]=i.join("%c"),console.log.apply(console,r))}function o(e,t){i.push(e),r.push(t||"")}}),r.raise("Error compiling "+l+" shader, "+c[0].name)}},linkError:function(e,t,i,o,a){if(!e.getProgramParameter(t,e.LINK_STATUS)){var s=e.getProgramInfoLog(t),u=p(i,a),l=p(o,a),c='Error linking program with vertex shader, "'+l[0].name+'", and fragment shader "'+u[0].name+'"';"undefined"!=typeof document?console.log("%c"+c+n+"%c"+s,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(c+n+s),r.raise(c)}},callSite:h,saveCommandRef:m,saveDrawInfo:function(e,t,n,i){function r(e){return e?i.id(e):0}function o(e,t){Object.keys(t).forEach(function(t){e[i.id(t)]=!0})}m(e),e._fragId=r(e.static.frag),e._vertId=r(e.static.vert);var a=e._uniformSet={};o(a,t.static),o(a,t.dynamic);var s=e._attributeSet={};o(s,n.static),o(s,n.dynamic),e._hasCount="count"in e.static||"count"in e.dynamic||"elements"in e.static||"elements"in e.dynamic},framebufferFormat:function(e,t,n){e.texture?a(e.texture._texture.internalformat,t,"unsupported texture format for attachment"):a(e.renderbuffer._renderbuffer.format,n,"unsupported renderbuffer format for attachment")},guessCommand:d,texture2D:function(e,t,n){var i,o=t.width,a=t.height,s=t.channels;r(o>0&&o<=n.maxTextureSize&&a>0&&a<=n.maxTextureSize,"invalid texture shape"),(e.wrapS!==v||e.wrapT!==v)&&r(N(o)&&N(a),"incompatible wrap mode for texture, both width and height must be power of 2"),1===t.mipmask?1!==o&&1!==a&&r(e.minFilter!==w&&e.minFilter!==x&&e.minFilter!==_&&e.minFilter!==k,"min filter requires mipmap"):(r(N(o)&&N(a),"texture must be a square power of 2 to support mipmapping"),r(t.mipmask===(o<<1)-1,"missing or incomplete mipmap data")),t.type===E&&(n.extensions.indexOf("oes_texture_float_linear")<0&&r(e.minFilter===y&&e.magFilter===y,"filter not supported, must enable oes_texture_float_linear"),r(!e.genMipmaps,"mipmap generation not supported with float textures"));var u=t.images;for(i=0;i<16;++i)if(u[i]){var l=o>>i,c=a>>i;r(t.mipmask&1<<i,"missing mipmap data");var f=u[i];if(r(f.width===l&&f.height===c,"invalid shape for mip images"),r(f.format===t.format&&f.internalformat===t.internalformat&&f.type===t.type,"incompatible type for mip image"),f.compressed);else if(f.data){var d=Math.ceil(O(f.type,s)*l/f.unpackAlignment)*f.unpackAlignment;r(f.data.byteLength===d*c,"invalid data for image, buffer size is inconsistent with image format")}else f.element||f.copy}else e.genMipmaps||r(0==(t.mipmask&1<<i),"extra mipmap data");t.compressed&&r(!e.genMipmaps,"mipmap generation for compressed images not supported")},textureCube:function(e,t,n,i){var o=e.width,a=e.height,s=e.channels;r(o>0&&o<=i.maxTextureSize&&a>0&&a<=i.maxTextureSize,"invalid texture shape"),r(o===a,"cube map must be square"),r(t.wrapS===v&&t.wrapT===v,"wrap mode not supported by cube map");for(var u=0;u<n.length;++u){var l=n[u];r(l.width===o&&l.height===a,"inconsistent cube map face shape"),t.genMipmaps&&(r(!l.compressed,"can not generate mipmap for compressed textures"),r(1===l.mipmask,"can not specify mipmaps and generate mipmaps"));for(var c=l.images,f=0;f<16;++f){var d=c[f];if(d){var h=o>>f,p=a>>f;r(l.mipmask&1<<f,"missing mipmap data"),r(d.width===h&&d.height===p,"invalid shape for mip images"),r(d.format===e.format&&d.internalformat===e.internalformat&&d.type===e.type,"incompatible type for mip image"),d.compressed||(d.data?r(d.data.byteLength===h*p*Math.max(O(d.type,s),d.unpackAlignment),"invalid data for image, buffer size is inconsistent with image format"):d.element||d.copy)}}}}}),R=0,D=0;function L(e,t){this.id=R++,this.type=e,this.data=t}function M(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function j(e){return"["+function e(t){if(0===t.length)return[];var n=t.charAt(0),i=t.charAt(t.length-1);if(t.length>1&&n===i&&('"'===n||"'"===n))return['"'+M(t.substr(1,t.length-2))+'"'];var r=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(t);if(r)return e(t.substr(0,r.index)).concat(e(r[1])).concat(e(t.substr(r.index+r[0].length)));var o=t.split(".");if(1===o.length)return['"'+M(t)+'"'];for(var a=[],s=0;s<o.length;++s)a=a.concat(e(o[s]));return a}(e).join("][")+"]"}var U={DynamicVariable:L,define:function(e,t){return new L(e,j(t+""))},isDynamic:function(e){return"function"==typeof e&&!e._reglType||e instanceof L},unbox:function(e,t){return"function"==typeof e?new L(D,e):e},accessor:j},F={next:"function"==typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,16)},cancel:"function"==typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:clearTimeout},B="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date};function z(e){return"string"==typeof e?e.split():(P(Array.isArray(e),"invalid extension array"),e)}function H(e){return"string"==typeof e?(P("undefined"!=typeof document,"not supported outside of DOM"),document.querySelector(e)):e}function V(e){var n,i,r,o,a,s=e||{},u={},l=[],c=[],f="undefined"==typeof window?1:window.devicePixelRatio,d=!1,h=function(e){e&&P.raise(e)},p=function(){};if("string"==typeof s?(P("undefined"!=typeof document,"selector queries only supported in DOM enviroments"),n=document.querySelector(s),P(n,"invalid query string for element")):"object"==typeof s?"string"==typeof(a=s).nodeName&&"function"==typeof a.appendChild&&"function"==typeof a.getBoundingClientRect?n=s:function(e){return"function"==typeof e.drawArrays||"function"==typeof e.drawElements}(s)?r=(o=s).canvas:(P.constructor(s),"gl"in s?o=s.gl:"canvas"in s?r=H(s.canvas):"container"in s&&(i=H(s.container)),"attributes"in s&&(u=s.attributes,P.type(u,"object","invalid context attributes")),"extensions"in s&&(l=z(s.extensions)),"optionalExtensions"in s&&(c=z(s.optionalExtensions)),"onDone"in s&&(P.type(s.onDone,"function","invalid or missing onDone callback"),h=s.onDone),"profile"in s&&(d=!!s.profile),"pixelRatio"in s&&(f=+s.pixelRatio,P(f>0,"invalid pixel ratio"))):P.raise("invalid arguments to regl"),n&&("canvas"===n.nodeName.toLowerCase()?r=n:i=n),!o){if(!r){P("undefined"!=typeof document,"must manually specify webgl context outside of DOM environments");var m=function(e,n,i){var r=document.createElement("canvas");function o(){var n=window.innerWidth,o=window.innerHeight;if(e!==document.body){var a=e.getBoundingClientRect();n=a.right-a.left,o=a.bottom-a.top}r.width=i*n,r.height=i*o,t(r.style,{width:n+"px",height:o+"px"})}return t(r.style,{border:0,margin:0,padding:0,top:0,left:0}),e.appendChild(r),e===document.body&&(r.style.position="absolute",t(e.style,{margin:0,padding:0})),window.addEventListener("resize",o,!1),o(),{canvas:r,onDestroy:function(){window.removeEventListener("resize",o),e.removeChild(r)}}}(i||document.body,0,f);if(!m)return null;r=m.canvas,p=m.onDestroy}o=function(e,t){function n(n){try{return e.getContext(n,t)}catch(e){return null}}return n("webgl")||n("experimental-webgl")||n("webgl-experimental")}(r,u)}return o?{gl:o,canvas:r,container:i,extensions:l,optionalExtensions:c,pixelRatio:f,profile:d,onDone:h,onDestroy:p}:(p(),h("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function W(e,t){for(var n=Array(e),i=0;i<e;++i)n[i]=t(i);return n}var G=5120,K=5121,q=5122,X=5123,Y=5124,J=5125,$=5126;function Z(e){var t,n;return t=(e>65535)<<4,t|=n=((e>>>=t)>255)<<3,t|=n=((e>>>=n)>15)<<2,(t|=n=((e>>>=n)>3)<<1)|(e>>>=n)>>1}function Q(){var e=W(8,function(){return[]});function t(t){var n=function(e){for(var t=16;t<=1<<28;t*=16)if(e<=t)return t;return 0}(t),i=e[Z(n)>>2];return i.length>0?i.pop():new ArrayBuffer(n)}function n(t){e[Z(t.byteLength)>>2].push(t)}return{alloc:t,free:n,allocType:function(e,n){var i=null;switch(e){case G:i=new Int8Array(t(n),0,n);break;case K:i=new Uint8Array(t(n),0,n);break;case q:i=new Int16Array(t(2*n),0,n);break;case X:i=new Uint16Array(t(2*n),0,n);break;case Y:i=new Int32Array(t(4*n),0,n);break;case J:i=new Uint32Array(t(4*n),0,n);break;case $:i=new Float32Array(t(4*n),0,n);break;default:return null}return i.length!==n?i.subarray(0,n):i},freeType:function(e){n(e.buffer)}}}var ee=Q();ee.zero=Q();var te=function(e,t){var n=1;t.ext_texture_filter_anisotropic&&(n=e.getParameter(34047));var i=1,r=1;t.webgl_draw_buffers&&(i=e.getParameter(34852),r=e.getParameter(36063));var o=!!t.oes_texture_float;if(o){var a=e.createTexture();e.bindTexture(3553,a),e.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var s=e.createFramebuffer();if(e.bindFramebuffer(36160,s),e.framebufferTexture2D(36160,36064,3553,a,0),e.bindTexture(3553,null),36053!==e.checkFramebufferStatus(36160))o=!1;else{e.viewport(0,0,1,1),e.clearColor(1,0,0,1),e.clear(16384);var u=ee.allocType(5126,4);e.readPixels(0,0,1,1,6408,5126,u),e.getError()?o=!1:(e.deleteFramebuffer(s),e.deleteTexture(a),o=1===u[0]),ee.freeType(u)}}var l="undefined"!=typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),c=!0;if(!l){var f=e.createTexture(),d=ee.allocType(5121,36);e.activeTexture(33984),e.bindTexture(34067,f),e.texImage2D(34069,0,6408,3,3,0,6408,5121,d),ee.freeType(d),e.bindTexture(34067,null),e.deleteTexture(f),c=!e.getError()}return{colorBits:[e.getParameter(3410),e.getParameter(3411),e.getParameter(3412),e.getParameter(3413)],depthBits:e.getParameter(3414),stencilBits:e.getParameter(3415),subpixelBits:e.getParameter(3408),extensions:Object.keys(t).filter(function(e){return!!t[e]}),maxAnisotropic:n,maxDrawbuffers:i,maxColorAttachments:r,pointSizeDims:e.getParameter(33901),lineWidthDims:e.getParameter(33902),maxViewportDims:e.getParameter(3386),maxCombinedTextureUnits:e.getParameter(35661),maxCubeMapSize:e.getParameter(34076),maxRenderbufferSize:e.getParameter(34024),maxTextureUnits:e.getParameter(34930),maxTextureSize:e.getParameter(3379),maxAttributes:e.getParameter(34921),maxVertexUniforms:e.getParameter(36347),maxVertexTextureUnits:e.getParameter(35660),maxVaryingVectors:e.getParameter(36348),maxFragmentUniforms:e.getParameter(36349),glsl:e.getParameter(35724),renderer:e.getParameter(7937),vendor:e.getParameter(7936),version:e.getParameter(7938),readFloat:o,npotTextureCube:c}};function ne(t){return!!t&&"object"==typeof t&&Array.isArray(t.shape)&&Array.isArray(t.stride)&&"number"==typeof t.offset&&t.shape.length===t.stride.length&&(Array.isArray(t.data)||e(t.data))}var ie=function(e){return Object.keys(e).map(function(t){return e[t]})},re={shape:function(e){for(var t=[],n=e;n.length;n=n[0])t.push(n.length);return t},flatten:function(e,t,n,i){var r=1;if(t.length)for(var o=0;o<t.length;++o)r*=t[o];else r=0;var a=i||ee.allocType(n,r);switch(t.length){case 0:break;case 1:!function(e,t,n){for(var i=0;i<t;++i)n[i]=e[i]}(e,t[0],a);break;case 2:!function(e,t,n,i){for(var r=0,o=0;o<t;++o)for(var a=e[o],s=0;s<n;++s)i[r++]=a[s]}(e,t[0],t[1],a);break;case 3:oe(e,t[0],t[1],t[2],a,0);break;default:!function e(t,n,i,r,o){for(var a=1,s=i+1;s<n.length;++s)a*=n[s];var u=n[i];if(n.length-i==4){var l=n[i+1],c=n[i+2],f=n[i+3];for(s=0;s<u;++s)oe(t[s],l,c,f,r,o),o+=a}else for(s=0;s<u;++s)e(t[s],n,i+1,r,o),o+=a}(e,t,0,a,0)}return a}};function oe(e,t,n,i,r,o){for(var a=o,s=0;s<t;++s)for(var u=e[s],l=0;l<n;++l)for(var c=u[l],f=0;f<i;++f)r[a++]=c[f]}var ae={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},se={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ue={dynamic:35048,stream:35040,static:35044},le=re.flatten,ce=re.shape,fe=35044,de=35040,he=5121,pe=5126,me=[];function be(e){return 0|ae[Object.prototype.toString.call(e)]}function ge(e,t){for(var n=0;n<t.length;++n)e[n]=t[n]}function ve(e,t,n,i,r,o,a){for(var s=0,u=0;u<n;++u)for(var l=0;l<i;++l)e[s++]=t[r*u+o*l+a]}me[5120]=1,me[5122]=2,me[5124]=4,me[5121]=1,me[5123]=2,me[5125]=4,me[5126]=4;var ye={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},we=0,_e=1,xe=4,ke=5120,Ee=5121,Se=5122,Te=5123,Ce=5124,Ae=5125,Ie=34963,Oe=35040,Ne=35044,Pe=new Float32Array(1),Re=new Uint32Array(Pe.buffer),De=5123;function Le(e){for(var t=ee.allocType(De,e.length),n=0;n<e.length;++n)if(isNaN(e[n]))t[n]=65535;else if(e[n]===1/0)t[n]=31744;else if(e[n]===-1/0)t[n]=64512;else{Pe[0]=e[n];var i=Re[0],r=i>>>31<<15,o=(i<<1>>>24)-127,a=i>>13&1023;if(o<-24)t[n]=r;else if(o<-14){var s=-14-o;t[n]=r+(a+1024>>s)}else t[n]=o>15?r+31744:r+(o+15<<10)+a}return t}function Me(t){return Array.isArray(t)||e(t)}var je=function(e){return!(e&e-1||!e)},Ue=34467,Fe=3553,Be=34067,ze=34069,He=6408,Ve=6406,We=6407,Ge=6409,Ke=6410,qe=32854,Xe=32855,Ye=36194,Je=32819,$e=32820,Ze=33635,Qe=34042,et=6402,tt=34041,nt=35904,it=35906,rt=36193,ot=33776,at=33777,st=33778,ut=33779,lt=35986,ct=35987,ft=34798,dt=35840,ht=35841,pt=35842,mt=35843,bt=36196,gt=5121,vt=5123,yt=5125,wt=5126,_t=10242,xt=10243,kt=10497,Et=33071,St=33648,Tt=10240,Ct=10241,At=9728,It=9729,Ot=9984,Nt=9985,Pt=9986,Rt=9987,Dt=33170,Lt=4352,Mt=4353,jt=4354,Ut=34046,Ft=3317,Bt=37440,zt=37441,Ht=37443,Vt=37444,Wt=33984,Gt=[Ot,Pt,Nt,Rt],Kt=[0,Ge,Ke,We,He],qt={};function Xt(e){return"[object "+e+"]"}qt[Ge]=qt[Ve]=qt[et]=1,qt[tt]=qt[Ke]=2,qt[We]=qt[nt]=3,qt[He]=qt[it]=4;var Yt=Xt("HTMLCanvasElement"),Jt=Xt("CanvasRenderingContext2D"),$t=Xt("ImageBitmap"),Zt=Xt("HTMLImageElement"),Qt=Xt("HTMLVideoElement"),en=Object.keys(ae).concat([Yt,Jt,$t,Zt,Qt]),tn=[];tn[gt]=1,tn[wt]=4,tn[rt]=2,tn[vt]=2,tn[yt]=4;var nn=[];function rn(e){return Array.isArray(e)&&(0===e.length||"number"==typeof e[0])}function on(e){if(!Array.isArray(e))return!1;var t=e.length;return!(0===t||!Me(e[0]))}function an(e){return Object.prototype.toString.call(e)}function sn(e){return an(e)===Yt}function un(e){if(!e)return!1;var t=an(e);return en.indexOf(t)>=0||rn(e)||on(e)||ne(e)}function ln(e){return 0|ae[Object.prototype.toString.call(e)]}function cn(e,t){return ee.allocType(e.type===rt?wt:e.type,t)}function fn(e,t){e.type===rt?(e.data=Le(t),ee.freeType(t)):e.data=t}function dn(e,t,n,i,r,o){var a;if(a=void 0!==nn[e]?nn[e]:qt[e]*tn[t],o&&(a*=6),r){for(var s=0,u=n;u>=1;)s+=a*u*u,u/=2;return s}return a*n*i}function hn(n,i,r,o,a,s,u){var l={"don't care":Lt,"dont care":Lt,nice:jt,fast:Mt},c={repeat:kt,clamp:Et,mirror:St},f={nearest:At,linear:It},d=t({mipmap:Rt,"nearest mipmap nearest":Ot,"linear mipmap nearest":Nt,"nearest mipmap linear":Pt,"linear mipmap linear":Rt},f),h={none:0,browser:Vt},p={uint8:gt,rgba4:Je,rgb565:Ze,"rgb5 a1":$e},m={alpha:Ve,luminance:Ge,"luminance alpha":Ke,rgb:We,rgba:He,rgba4:qe,"rgb5 a1":Xe,rgb565:Ye},b={};i.ext_srgb&&(m.srgb=nt,m.srgba=it),i.oes_texture_float&&(p.float32=p.float=wt),i.oes_texture_half_float&&(p.float16=p["half float"]=rt),i.webgl_depth_texture&&(t(m,{depth:et,"depth stencil":tt}),t(p,{uint16:vt,uint32:yt,"depth stencil":Qe})),i.webgl_compressed_texture_s3tc&&t(b,{"rgb s3tc dxt1":ot,"rgba s3tc dxt1":at,"rgba s3tc dxt3":st,"rgba s3tc dxt5":ut}),i.webgl_compressed_texture_atc&&t(b,{"rgb atc":lt,"rgba atc explicit alpha":ct,"rgba atc interpolated alpha":ft}),i.webgl_compressed_texture_pvrtc&&t(b,{"rgb pvrtc 4bppv1":dt,"rgb pvrtc 2bppv1":ht,"rgba pvrtc 4bppv1":pt,"rgba pvrtc 2bppv1":mt}),i.webgl_compressed_texture_etc1&&(b["rgb etc1"]=bt);var g=Array.prototype.slice.call(n.getParameter(Ue));Object.keys(b).forEach(function(e){var t=b[e];g.indexOf(t)>=0&&(m[e]=t)});var v=Object.keys(m);r.textureFormats=v;var y=[];Object.keys(m).forEach(function(e){var t=m[e];y[t]=e});var w=[];Object.keys(p).forEach(function(e){var t=p[e];w[t]=e});var _=[];Object.keys(f).forEach(function(e){var t=f[e];_[t]=e});var x=[];Object.keys(d).forEach(function(e){var t=d[e];x[t]=e});var k=[];Object.keys(c).forEach(function(e){var t=c[e];k[t]=e});var E=v.reduce(function(e,t){var n=m[t];return n===Ge||n===Ve||n===Ge||n===Ke||n===et||n===tt?e[n]=n:n===Xe||t.indexOf("rgba")>=0?e[n]=He:e[n]=We,e},{});function S(){this.internalformat=He,this.format=He,this.type=gt,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Vt,this.width=0,this.height=0,this.channels=0}function T(e,t){e.internalformat=t.internalformat,e.format=t.format,e.type=t.type,e.compressed=t.compressed,e.premultiplyAlpha=t.premultiplyAlpha,e.flipY=t.flipY,e.unpackAlignment=t.unpackAlignment,e.colorSpace=t.colorSpace,e.width=t.width,e.height=t.height,e.channels=t.channels}function C(e,t){if("object"==typeof t&&t){if("premultiplyAlpha"in t&&(P.type(t.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),e.premultiplyAlpha=t.premultiplyAlpha),"flipY"in t&&(P.type(t.flipY,"boolean","invalid texture flip"),e.flipY=t.flipY),"alignment"in t&&(P.oneOf(t.alignment,[1,2,4,8],"invalid texture unpack alignment"),e.unpackAlignment=t.alignment),"colorSpace"in t&&(P.parameter(t.colorSpace,h,"invalid colorSpace"),e.colorSpace=h[t.colorSpace]),"type"in t){var n=t.type;P(i.oes_texture_float||!("float"===n||"float32"===n),"you must enable the OES_texture_float extension in order to use floating point textures."),P(i.oes_texture_half_float||!("half float"===n||"float16"===n),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),P(i.webgl_depth_texture||!("uint16"===n||"uint32"===n||"depth stencil"===n),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),P.parameter(n,p,"invalid texture type"),e.type=p[n]}var o=e.width,a=e.height,s=e.channels,u=!1;"shape"in t?(P(Array.isArray(t.shape)&&t.shape.length>=2,"shape must be an array"),o=t.shape[0],a=t.shape[1],3===t.shape.length&&(s=t.shape[2],P(s>0&&s<=4,"invalid number of channels"),u=!0),P(o>=0&&o<=r.maxTextureSize,"invalid width"),P(a>=0&&a<=r.maxTextureSize,"invalid height")):("radius"in t&&(o=a=t.radius,P(o>=0&&o<=r.maxTextureSize,"invalid radius")),"width"in t&&(o=t.width,P(o>=0&&o<=r.maxTextureSize,"invalid width")),"height"in t&&(a=t.height,P(a>=0&&a<=r.maxTextureSize,"invalid height")),"channels"in t&&(s=t.channels,P(s>0&&s<=4,"invalid number of channels"),u=!0)),e.width=0|o,e.height=0|a,e.channels=0|s;var l=!1;if("format"in t){var c=t.format;P(i.webgl_depth_texture||!("depth"===c||"depth stencil"===c),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),P.parameter(c,m,"invalid texture format");var f=e.internalformat=m[c];e.format=E[f],c in p&&("type"in t||(e.type=p[c])),c in b&&(e.compressed=!0),l=!0}!u&&l?e.channels=qt[e.format]:u&&!l?e.channels!==Kt[e.format]&&(e.format=e.internalformat=Kt[e.channels]):l&&u&&P(e.channels===qt[e.format],"number of channels inconsistent with specified format")}}function A(e){n.pixelStorei(Bt,e.flipY),n.pixelStorei(zt,e.premultiplyAlpha),n.pixelStorei(Ht,e.colorSpace),n.pixelStorei(Ft,e.unpackAlignment)}function I(){S.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function O(t,n){var i=null;if(un(n)?i=n:n&&(P.type(n,"object","invalid pixel data type"),C(t,n),"x"in n&&(t.xOffset=0|n.x),"y"in n&&(t.yOffset=0|n.y),un(n.data)&&(i=n.data)),P(!t.compressed||i instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),n.copy){P(!i,"can not specify copy and data field for the same texture");var o=a.viewportWidth,s=a.viewportHeight;t.width=t.width||o-t.xOffset,t.height=t.height||s-t.yOffset,t.needsCopy=!0,P(t.xOffset>=0&&t.xOffset<o&&t.yOffset>=0&&t.yOffset<s&&t.width>0&&t.width<=o&&t.height>0&&t.height<=s,"copy texture read out of bounds")}else if(i){if(e(i))t.channels=t.channels||4,t.data=i,"type"in n||t.type!==gt||(t.type=ln(i));else if(rn(i))t.channels=t.channels||4,function(e,t){var n=t.length;switch(e.type){case gt:case vt:case yt:case wt:var i=ee.allocType(e.type,n);i.set(t),e.data=i;break;case rt:e.data=Le(t);break;default:P.raise("unsupported texture type, must specify a typed array")}}(t,i),t.alignment=1,t.needsFree=!0;else if(ne(i)){var u=i.data;Array.isArray(u)||t.type!==gt||(t.type=ln(u));var l,c,f,d,h,p,m=i.shape,b=i.stride;3===m.length?(f=m[2],p=b[2]):(P(2===m.length,"invalid ndarray pixel data, must be 2 or 3D"),f=1,p=1),l=m[0],c=m[1],d=b[0],h=b[1],t.alignment=1,t.width=l,t.height=c,t.channels=f,t.format=t.internalformat=Kt[f],t.needsFree=!0,function(e,t,n,i,r,o){for(var a=e.width,s=e.height,u=e.channels,l=cn(e,a*s*u),c=0,f=0;f<s;++f)for(var d=0;d<a;++d)for(var h=0;h<u;++h)l[c++]=t[n*d+i*f+r*h+o];fn(e,l)}(t,u,d,h,p,i.offset)}else if(sn(i)||an(i)===Jt)sn(i)?t.element=i:t.element=i.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(function(e){return an(e)===$t}(i))t.element=i,t.width=i.width,t.height=i.height,t.channels=4;else if(function(e){return an(e)===Zt}(i))t.element=i,t.width=i.naturalWidth,t.height=i.naturalHeight,t.channels=4;else if(function(e){return an(e)===Qt}(i))t.element=i,t.width=i.videoWidth,t.height=i.videoHeight,t.channels=4;else if(on(i)){var g=t.width||i[0].length,v=t.height||i.length,y=t.channels;y=Me(i[0][0])?y||i[0][0].length:y||1;for(var w=re.shape(i),_=1,x=0;x<w.length;++x)_*=w[x];var k=cn(t,_);re.flatten(i,w,"",k),fn(t,k),t.alignment=1,t.width=g,t.height=v,t.channels=y,t.format=t.internalformat=Kt[y],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4;t.type===wt?P(r.extensions.indexOf("oes_texture_float")>=0,"oes_texture_float extension not enabled"):t.type===rt&&P(r.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function N(e,t,i){var r=e.element,a=e.data,s=e.internalformat,u=e.format,l=e.type,c=e.width,f=e.height,d=e.channels;if(A(e),r)n.texImage2D(t,i,u,u,l,r);else if(e.compressed)n.compressedTexImage2D(t,i,s,c,f,0,a);else if(e.needsCopy)o(),n.copyTexImage2D(t,i,u,e.xOffset,e.yOffset,c,f,0);else{var h=!a;h&&(a=ee.zero.allocType(l,c*f*d)),n.texImage2D(t,i,u,c,f,0,u,l,a),h&&a&&ee.zero.freeType(a)}}function R(e,t,i,r,a){var s=e.element,u=e.data,l=e.internalformat,c=e.format,f=e.type,d=e.width,h=e.height;A(e),s?n.texSubImage2D(t,a,i,r,c,f,s):e.compressed?n.compressedTexSubImage2D(t,a,i,r,l,d,h,u):e.needsCopy?(o(),n.copyTexSubImage2D(t,a,i,r,e.xOffset,e.yOffset,d,h)):n.texSubImage2D(t,a,i,r,d,h,c,f,u)}var D=[];function L(){return D.pop()||new I}function M(e){e.needsFree&&ee.freeType(e.data),I.call(e),D.push(e)}function j(){S.call(this),this.genMipmaps=!1,this.mipmapHint=Lt,this.mipmask=0,this.images=Array(16)}function U(e,t,n){var i=e.images[0]=L();e.mipmask=1,i.width=e.width=t,i.height=e.height=n,i.channels=e.channels=4}function F(e,t){var n=null;if(un(t))T(n=e.images[0]=L(),e),O(n,t),e.mipmask=1;else if(C(e,t),Array.isArray(t.mipmap))for(var i=t.mipmap,r=0;r<i.length;++r)T(n=e.images[r]=L(),e),n.width>>=r,n.height>>=r,O(n,i[r]),e.mipmask|=1<<r;else T(n=e.images[0]=L(),e),O(n,t),e.mipmask=1;T(e,e.images[0]),(e.compressed&&e.internalformat===ot||e.internalformat===at||e.internalformat===st||e.internalformat===ut)&&P(e.width%4==0&&e.height%4==0,"for compressed texture formats, mipmap level 0 must have width and height that are a multiple of 4")}function B(e,t){for(var n=e.images,i=0;i<n.length;++i){if(!n[i])return;N(n[i],t,i)}}var z=[];function H(){var e=z.pop()||new j;S.call(e),e.mipmask=0;for(var t=0;t<16;++t)e.images[t]=null;return e}function V(e){for(var t=e.images,n=0;n<t.length;++n)t[n]&&M(t[n]),t[n]=null;z.push(e)}function W(){this.minFilter=At,this.magFilter=At,this.wrapS=Et,this.wrapT=Et,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=Lt}function G(e,t){if("min"in t){var n=t.min;P.parameter(n,d),e.minFilter=d[n],Gt.indexOf(e.minFilter)>=0&&!("faces"in t)&&(e.genMipmaps=!0)}if("mag"in t){var i=t.mag;P.parameter(i,f),e.magFilter=f[i]}var o=e.wrapS,a=e.wrapT;if("wrap"in t){var s=t.wrap;"string"==typeof s?(P.parameter(s,c),o=a=c[s]):Array.isArray(s)&&(P.parameter(s[0],c),P.parameter(s[1],c),o=c[s[0]],a=c[s[1]])}else{if("wrapS"in t){var u=t.wrapS;P.parameter(u,c),o=c[u]}if("wrapT"in t){var h=t.wrapT;P.parameter(h,c),a=c[h]}}if(e.wrapS=o,e.wrapT=a,"anisotropic"in t){var p=t.anisotropic;P("number"==typeof p&&p>=1&&p<=r.maxAnisotropic,"aniso samples must be between 1 and "),e.anisotropic=t.anisotropic}if("mipmap"in t){var m=!1;switch(typeof t.mipmap){case"string":P.parameter(t.mipmap,l,"invalid mipmap hint"),e.mipmapHint=l[t.mipmap],e.genMipmaps=!0,m=!0;break;case"boolean":m=e.genMipmaps=t.mipmap;break;case"object":P(Array.isArray(t.mipmap),"invalid mipmap type"),e.genMipmaps=!1,m=!0;break;default:P.raise("invalid mipmap type")}!m||"min"in t||(e.minFilter=Ot)}}function K(e,t){n.texParameteri(t,Ct,e.minFilter),n.texParameteri(t,Tt,e.magFilter),n.texParameteri(t,_t,e.wrapS),n.texParameteri(t,xt,e.wrapT),i.ext_texture_filter_anisotropic&&n.texParameteri(t,Ut,e.anisotropic),e.genMipmaps&&(n.hint(Dt,e.mipmapHint),n.generateMipmap(t))}var q=0,X={},Y=r.maxTextureUnits,J=Array(Y).map(function(){return null});function $(e){S.call(this),this.mipmask=0,this.internalformat=He,this.id=q++,this.refCount=1,this.target=e,this.texture=n.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new W,u.profile&&(this.stats={size:0})}function Z(e){n.activeTexture(Wt),n.bindTexture(e.target,e.texture)}function Q(){var e=J[0];e?n.bindTexture(e.target,e.texture):n.bindTexture(Fe,null)}function te(e){var t=e.texture;P(t,"must not double destroy texture");var i=e.unit,r=e.target;i>=0&&(n.activeTexture(Wt+i),n.bindTexture(r,null),J[i]=null),n.deleteTexture(t),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete X[e.id],s.textureCount--}return t($.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(e<0){for(var t=0;t<Y;++t){var i=J[t];if(i){if(i.bindCount>0)continue;i.unit=-1}J[t]=this,e=t;break}e>=Y&&P.raise("insufficient number of texture units"),u.profile&&s.maxTextureUnits<e+1&&(s.maxTextureUnits=e+1),this.unit=e,n.activeTexture(Wt+e),n.bindTexture(this.target,this.texture)}return e},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&te(this)}}),u.profile&&(s.getTotalTextureSize=function(){var e=0;return Object.keys(X).forEach(function(t){e+=X[t].stats.size}),e}),{create2D:function(e,t){var i=new $(Fe);function o(e,t){var n=i.texInfo;W.call(n);var a=H();return"number"==typeof e?U(a,0|e,"number"==typeof t?0|t:0|e):e?(P.type(e,"object","invalid arguments to regl.texture"),G(n,e),F(a,e)):U(a,1,1),n.genMipmaps&&(a.mipmask=(a.width<<1)-1),i.mipmask=a.mipmask,T(i,a),P.texture2D(n,a,r),i.internalformat=a.internalformat,o.width=a.width,o.height=a.height,Z(i),B(a,Fe),K(n,Fe),Q(),V(a),u.profile&&(i.stats.size=dn(i.internalformat,i.type,a.width,a.height,n.genMipmaps,!1)),o.format=y[i.internalformat],o.type=w[i.type],o.mag=_[n.magFilter],o.min=x[n.minFilter],o.wrapS=k[n.wrapS],o.wrapT=k[n.wrapT],o}return X[i.id]=i,s.textureCount++,o(e,t),o.subimage=function(e,t,n,r){P(!!e,"must specify image data");var a=0|t,s=0|n,u=0|r,l=L();return T(l,i),l.width=0,l.height=0,O(l,e),l.width=l.width||(i.width>>u)-a,l.height=l.height||(i.height>>u)-s,P(i.type===l.type&&i.format===l.format&&i.internalformat===l.internalformat,"incompatible format for texture.subimage"),P(a>=0&&s>=0&&a+l.width<=i.width&&s+l.height<=i.height,"texture.subimage write out of bounds"),P(i.mipmask&1<<u,"missing mipmap data"),P(l.data||l.element||l.needsCopy,"missing image data"),Z(i),R(l,Fe,a,s,u),Q(),M(l),o},o.resize=function(e,t){var r,a=0|e,s=0|t||a;if(a===i.width&&s===i.height)return o;o.width=i.width=a,o.height=i.height=s,Z(i);for(var l=i.channels,c=i.type,f=0;i.mipmask>>f;++f){var d=a>>f,h=s>>f;if(!d||!h)break;r=ee.zero.allocType(c,d*h*l),n.texImage2D(Fe,f,i.format,d,h,0,i.format,i.type,r),r&&ee.zero.freeType(r)}return Q(),u.profile&&(i.stats.size=dn(i.internalformat,i.type,a,s,!1,!1)),o},o._reglType="texture2d",o._texture=i,u.profile&&(o.stats=i.stats),o.destroy=function(){i.decRef()},o},createCube:function(e,t,i,o,a,l){var c=new $(Be);X[c.id]=c,s.cubeCount++;var f=new Array(6);function d(e,t,n,i,o,a){var s,l=c.texInfo;for(W.call(l),s=0;s<6;++s)f[s]=H();if("number"!=typeof e&&e)if("object"==typeof e)if(t)F(f[0],e),F(f[1],t),F(f[2],n),F(f[3],i),F(f[4],o),F(f[5],a);else if(G(l,e),C(c,e),"faces"in e){var h=e.faces;for(P(Array.isArray(h)&&6===h.length,"cube faces must be a length 6 array"),s=0;s<6;++s)P("object"==typeof h[s]&&!!h[s],"invalid input for cube map face"),T(f[s],c),F(f[s],h[s])}else for(s=0;s<6;++s)F(f[s],e);else P.raise("invalid arguments to cube map");else{var p=0|e||1;for(s=0;s<6;++s)U(f[s],p,p)}for(T(c,f[0]),r.npotTextureCube||P(je(c.width)&&je(c.height),"your browser does not support non power or two texture dimensions"),l.genMipmaps?c.mipmask=(f[0].width<<1)-1:c.mipmask=f[0].mipmask,P.textureCube(c,l,f,r),c.internalformat=f[0].internalformat,d.width=f[0].width,d.height=f[0].height,Z(c),s=0;s<6;++s)B(f[s],ze+s);for(K(l,Be),Q(),u.profile&&(c.stats.size=dn(c.internalformat,c.type,d.width,d.height,l.genMipmaps,!0)),d.format=y[c.internalformat],d.type=w[c.type],d.mag=_[l.magFilter],d.min=x[l.minFilter],d.wrapS=k[l.wrapS],d.wrapT=k[l.wrapT],s=0;s<6;++s)V(f[s]);return d}return d(e,t,i,o,a,l),d.subimage=function(e,t,n,i,r){P(!!t,"must specify image data"),P("number"==typeof e&&e===(0|e)&&e>=0&&e<6,"invalid face");var o=0|n,a=0|i,s=0|r,u=L();return T(u,c),u.width=0,u.height=0,O(u,t),u.width=u.width||(c.width>>s)-o,u.height=u.height||(c.height>>s)-a,P(c.type===u.type&&c.format===u.format&&c.internalformat===u.internalformat,"incompatible format for texture.subimage"),P(o>=0&&a>=0&&o+u.width<=c.width&&a+u.height<=c.height,"texture.subimage write out of bounds"),P(c.mipmask&1<<s,"missing mipmap data"),P(u.data||u.element||u.needsCopy,"missing image data"),Z(c),R(u,ze+e,o,a,s),Q(),M(u),d},d.resize=function(e){var t=0|e;if(t!==c.width){d.width=c.width=t,d.height=c.height=t,Z(c);for(var i=0;i<6;++i)for(var r=0;c.mipmask>>r;++r)n.texImage2D(ze+i,r,c.format,t>>r,t>>r,0,c.format,c.type,null);return Q(),u.profile&&(c.stats.size=dn(c.internalformat,c.type,d.width,d.height,!1,!0)),d}},d._reglType="textureCube",d._texture=c,u.profile&&(d.stats=c.stats),d.destroy=function(){c.decRef()},d},clear:function(){for(var e=0;e<Y;++e)n.activeTexture(Wt+e),n.bindTexture(Fe,null),J[e]=null;ie(X).forEach(te),s.cubeCount=0,s.textureCount=0},getTexture:function(e){return null},restore:function(){for(var e=0;e<Y;++e){var t=J[e];t&&(t.bindCount=0,t.unit=-1,J[e]=null)}ie(X).forEach(function(e){e.texture=n.createTexture(),n.bindTexture(e.target,e.texture);for(var t=0;t<32;++t)if(0!=(e.mipmask&1<<t))if(e.target===Fe)n.texImage2D(Fe,t,e.internalformat,e.width>>t,e.height>>t,0,e.internalformat,e.type,null);else for(var i=0;i<6;++i)n.texImage2D(ze+i,t,e.internalformat,e.width>>t,e.height>>t,0,e.internalformat,e.type,null);K(e.texInfo,e.target)})}}}nn[qe]=2,nn[Xe]=2,nn[Ye]=2,nn[tt]=4,nn[ot]=.5,nn[at]=.5,nn[st]=1,nn[ut]=1,nn[lt]=.5,nn[ct]=1,nn[ft]=1,nn[dt]=.5,nn[ht]=.25,nn[pt]=.5,nn[mt]=.25,nn[bt]=.5;var pn=36161,mn=32854,bn=[];function gn(e,t,n){return bn[e]*t*n}bn[mn]=2,bn[32855]=2,bn[36194]=2,bn[33189]=2,bn[36168]=1,bn[34041]=4,bn[35907]=4,bn[34836]=16,bn[34842]=8,bn[34843]=6;var vn=function(e,t,n,i,r){var o={rgba4:mn,rgb565:36194,"rgb5 a1":32855,depth:33189,stencil:36168,"depth stencil":34041};t.ext_srgb&&(o.srgba=35907),t.ext_color_buffer_half_float&&(o.rgba16f=34842,o.rgb16f=34843),t.webgl_color_buffer_float&&(o.rgba32f=34836);var a=[];Object.keys(o).forEach(function(e){var t=o[e];a[t]=e});var s=0,u={};function l(e){this.id=s++,this.refCount=1,this.renderbuffer=e,this.format=mn,this.width=0,this.height=0,r.profile&&(this.stats={size:0})}function c(t){var n=t.renderbuffer;P(n,"must not double destroy renderbuffer"),e.bindRenderbuffer(pn,null),e.deleteRenderbuffer(n),t.renderbuffer=null,t.refCount=0,delete u[t.id],i.renderbufferCount--}return l.prototype.decRef=function(){--this.refCount<=0&&c(this)},r.profile&&(i.getTotalRenderbufferSize=function(){var e=0;return Object.keys(u).forEach(function(t){e+=u[t].stats.size}),e}),{create:function(t,s){var c=new l(e.createRenderbuffer());function f(t,i){var s=0,u=0,l=mn;if("object"==typeof t&&t){var d=t;if("shape"in d){var h=d.shape;P(Array.isArray(h)&&h.length>=2,"invalid renderbuffer shape"),s=0|h[0],u=0|h[1]}else"radius"in d&&(s=u=0|d.radius),"width"in d&&(s=0|d.width),"height"in d&&(u=0|d.height);"format"in d&&(P.parameter(d.format,o,"invalid renderbuffer format"),l=o[d.format])}else"number"==typeof t?(s=0|t,u="number"==typeof i?0|i:s):t?P.raise("invalid arguments to renderbuffer constructor"):s=u=1;if(P(s>0&&u>0&&s<=n.maxRenderbufferSize&&u<=n.maxRenderbufferSize,"invalid renderbuffer size"),s!==c.width||u!==c.height||l!==c.format)return f.width=c.width=s,f.height=c.height=u,c.format=l,e.bindRenderbuffer(pn,c.renderbuffer),e.renderbufferStorage(pn,l,s,u),P(0===e.getError(),"invalid render buffer format"),r.profile&&(c.stats.size=gn(c.format,c.width,c.height)),f.format=a[c.format],f}return u[c.id]=c,i.renderbufferCount++,f(t,s),f.resize=function(t,i){var o=0|t,a=0|i||o;return o===c.width&&a===c.height?f:(P(o>0&&a>0&&o<=n.maxRenderbufferSize&&a<=n.maxRenderbufferSize,"invalid renderbuffer size"),f.width=c.width=o,f.height=c.height=a,e.bindRenderbuffer(pn,c.renderbuffer),e.renderbufferStorage(pn,c.format,o,a),P(0===e.getError(),"invalid render buffer format"),r.profile&&(c.stats.size=gn(c.format,c.width,c.height)),f)},f._reglType="renderbuffer",f._renderbuffer=c,r.profile&&(f.stats=c.stats),f.destroy=function(){c.decRef()},f},clear:function(){ie(u).forEach(c)},restore:function(){ie(u).forEach(function(t){t.renderbuffer=e.createRenderbuffer(),e.bindRenderbuffer(pn,t.renderbuffer),e.renderbufferStorage(pn,t.format,t.width,t.height)}),e.bindRenderbuffer(pn,null)}}},yn=36160,wn=36161,_n=3553,xn=34069,kn=36064,En=36096,Sn=36128,Tn=33306,Cn=36053,An=6402,In=[6407,6408],On=[];On[6408]=4,On[6407]=3;var Nn=[];Nn[5121]=1,Nn[5126]=4,Nn[36193]=2;var Pn=33189,Rn=36168,Dn=34041,Ln=[32854,32855,36194,35907,34842,34843,34836],Mn={};Mn[Cn]="complete",Mn[36054]="incomplete attachment",Mn[36057]="incomplete dimensions",Mn[36055]="incomplete, missing attachment",Mn[36061]="unsupported";var jn=5126;function Un(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=jn,this.offset=0,this.stride=0,this.divisor=0}var Fn=35632,Bn=35633,zn=35718,Hn=35721,Vn=6408,Wn=5121,Gn=3333,Kn=5126;function qn(t,n,i,r,o,a,s){function u(u){var l;null===n.next?(P(o.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),l=Wn):(P(null!==n.next.colorAttachments[0].texture,"You cannot read from a renderbuffer"),l=n.next.colorAttachments[0].texture._texture.type,a.oes_texture_float?(P(l===Wn||l===Kn,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),l===Kn&&P(s.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):P(l===Wn,"Reading from a framebuffer is only allowed for the type 'uint8'"));var c=0,f=0,d=r.framebufferWidth,h=r.framebufferHeight,p=null;e(u)?p=u:u&&(P.type(u,"object","invalid arguments to regl.read()"),c=0|u.x,f=0|u.y,P(c>=0&&c<r.framebufferWidth,"invalid x offset for regl.read"),P(f>=0&&f<r.framebufferHeight,"invalid y offset for regl.read"),d=0|(u.width||r.framebufferWidth-c),h=0|(u.height||r.framebufferHeight-f),p=u.data||null),p&&(l===Wn?P(p instanceof Uint8Array,"buffer must be 'Uint8Array' when reading from a framebuffer of type 'uint8'"):l===Kn&&P(p instanceof Float32Array,"buffer must be 'Float32Array' when reading from a framebuffer of type 'float'")),P(d>0&&d+c<=r.framebufferWidth,"invalid width for read pixels"),P(h>0&&h+f<=r.framebufferHeight,"invalid height for read pixels"),i();var m=d*h*4;return p||(l===Wn?p=new Uint8Array(m):l===Kn&&(p=p||new Float32Array(m))),P.isTypedArray(p,"data buffer for regl.read() must be a typedarray"),P(p.byteLength>=m,"data buffer for regl.read() too small"),t.pixelStorei(Gn,4),t.readPixels(c,f,d,h,Vn,l,p),p}return function(e){return e&&"framebuffer"in e?function(e){var t;return n.setFBO({framebuffer:e.framebuffer},function(){t=u(e)}),t}(e):u(e)}}function Xn(e){return Array.prototype.slice.call(e)}function Yn(e){return Xn(e).join("")}var Jn="xyzw".split(""),$n=5121,Zn=1,Qn=2,ei=0,ti=1,ni=2,ii=3,ri=4,oi="dither",ai="blend.enable",si="blend.color",ui="blend.equation",li="blend.func",ci="depth.enable",fi="depth.func",di="depth.range",hi="depth.mask",pi="colorMask",mi="cull.enable",bi="cull.face",gi="frontFace",vi="lineWidth",yi="polygonOffset.enable",wi="polygonOffset.offset",_i="sample.alpha",xi="sample.enable",ki="sample.coverage",Ei="stencil.enable",Si="stencil.mask",Ti="stencil.func",Ci="stencil.opFront",Ai="stencil.opBack",Ii="scissor.enable",Oi="scissor.box",Ni="viewport",Pi="profile",Ri="framebuffer",Di="vert",Li="frag",Mi="elements",ji="primitive",Ui="count",Fi="offset",Bi="instances",zi=Ri+"Width",Hi=Ri+"Height",Vi=Ni+"Width",Wi=Ni+"Height",Gi="drawingBufferWidth",Ki="drawingBufferHeight",qi=[li,ui,Ti,Ci,Ai,ki,Ni,Oi,wi],Xi=34962,Yi=34963,Ji=3553,$i=34067,Zi=2884,Qi=3042,er=3024,tr=2960,nr=2929,ir=3089,rr=32823,or=32926,ar=32928,sr=5126,ur=35664,lr=35665,cr=35666,fr=5124,dr=35667,hr=35668,pr=35669,mr=35670,br=35671,gr=35672,vr=35673,yr=35674,wr=35675,_r=35676,xr=35678,kr=35680,Er=4,Sr=1028,Tr=1029,Cr=2304,Ar=2305,Ir=32775,Or=32776,Nr=519,Pr=7680,Rr=0,Dr=1,Lr=32774,Mr=513,jr=36160,Ur=36064,Fr={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Br=["constant color, constant alpha","one minus constant color, constant alpha","constant color, one minus constant alpha","one minus constant color, one minus constant alpha","constant alpha, constant color","constant alpha, one minus constant color","one minus constant alpha, constant color","one minus constant alpha, one minus constant color"],zr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Hr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Vr={frag:35632,vert:35633},Wr={cw:Cr,ccw:Ar};function Gr(t){return Array.isArray(t)||e(t)||ne(t)}function Kr(e){return e.sort(function(e,t){return e===Ni?-1:t===Ni?1:e<t?-1:1})}function qr(e,t,n,i){this.thisDep=e,this.contextDep=t,this.propDep=n,this.append=i}function Xr(e){return e&&!(e.thisDep||e.contextDep||e.propDep)}function Yr(e){return new qr(!1,!1,!1,e)}function Jr(e,t){var n=e.type;if(n===ei){var i=e.data.length;return new qr(!0,i>=1,i>=2,t)}if(n===ri){var r=e.data;return new qr(r.thisDep,r.contextDep,r.propDep,t)}return new qr(n===ii,n===ni,n===ti,t)}var $r=new qr(!1,!1,!1,function(){});function Zr(e,n,i,r,o,a,s,u,l,c,f,d,h,p,m){var b=c.Record,g={add:32774,subtract:32778,"reverse subtract":32779};i.ext_blend_minmax&&(g.min=Ir,g.max=Or);var v=i.angle_instanced_arrays,y=i.webgl_draw_buffers,w={dirty:!0,profile:m.profile},_={},x=[],k={},E={};function S(e){return e.replace(".","_")}function T(e,t,n){var i=S(e);x.push(e),_[i]=w[i]=!!n,k[i]=t}function C(e,t,n){var i=S(e);x.push(e),Array.isArray(n)?(w[i]=n.slice(),_[i]=n.slice()):w[i]=_[i]=n,E[i]=t}T(oi,er),T(ai,Qi),C(si,"blendColor",[0,0,0,0]),C(ui,"blendEquationSeparate",[Lr,Lr]),C(li,"blendFuncSeparate",[Dr,Rr,Dr,Rr]),T(ci,nr,!0),C(fi,"depthFunc",Mr),C(di,"depthRange",[0,1]),C(hi,"depthMask",!0),C(pi,pi,[!0,!0,!0,!0]),T(mi,Zi),C(bi,"cullFace",Tr),C(gi,gi,Ar),C(vi,vi,1),T(yi,rr),C(wi,"polygonOffset",[0,0]),T(_i,or),T(xi,ar),C(ki,"sampleCoverage",[1,!1]),T(Ei,tr),C(Si,"stencilMask",-1),C(Ti,"stencilFunc",[Nr,0,-1]),C(Ci,"stencilOpSeparate",[Sr,Pr,Pr,Pr]),C(Ai,"stencilOpSeparate",[Tr,Pr,Pr,Pr]),T(Ii,ir),C(Oi,"scissor",[0,0,e.drawingBufferWidth,e.drawingBufferHeight]),C(Ni,Ni,[0,0,e.drawingBufferWidth,e.drawingBufferHeight]);var A={gl:e,context:h,strings:n,next:_,current:w,draw:d,elements:a,buffer:o,shader:f,attributes:c.state,uniforms:l,framebuffer:u,extensions:i,timer:p,isBufferArgs:Gr},I={primTypes:ye,compareFuncs:zr,blendFuncs:Fr,blendEquations:g,stencilOps:Hr,glTypes:se,orientationType:Wr};P.optional(function(){A.isArrayLike=Me}),y&&(I.backBuffer=[Tr],I.drawBuffer=W(r.maxDrawbuffers,function(e){return 0===e?[0]:W(e,function(e){return Ur+e})}));var O=0;function N(){var e=function(){var e=0,n=[],i=[];function r(){var n=[],i=[];return t(function(){n.push.apply(n,Xn(arguments))},{def:function(){var t="v"+e++;return i.push(t),arguments.length>0&&(n.push(t,"="),n.push.apply(n,Xn(arguments)),n.push(";")),t},toString:function(){return Yn([i.length>0?"var "+i+";":"",Yn(n)])}})}function o(){var e=r(),n=r(),i=e.toString,o=n.toString;function a(t,i){n(t,i,"=",e.def(t,i),";")}return t(function(){e.apply(e,Xn(arguments))},{def:e.def,entry:e,exit:n,save:a,set:function(t,n,i){a(t,n),e(t,n,"=",i,";")},toString:function(){return i()+o()}})}var a=r(),s={};return{global:a,link:function(t){for(var r=0;r<i.length;++r)if(i[r]===t)return n[r];var o="g"+e++;return n.push(o),i.push(t),o},block:r,proc:function(e,n){var i=[];function r(){var e="a"+i.length;return i.push(e),e}n=n||0;for(var a=0;a<n;++a)r();var u=o(),l=u.toString;return s[e]=t(u,{arg:r,toString:function(){return Yn(["function(",i.join(),"){",l(),"}"])}})},scope:o,cond:function(){var e=Yn(arguments),n=o(),i=o(),r=n.toString,a=i.toString;return t(n,{then:function(){return n.apply(n,Xn(arguments)),this},else:function(){return i.apply(i,Xn(arguments)),this},toString:function(){var t=a();return t&&(t="else{"+t+"}"),Yn(["if(",e,"){",r(),"}",t])}})},compile:function(){var e=['"use strict";',a,"return {"];Object.keys(s).forEach(function(t){e.push('"',t,'":',s[t].toString(),",")}),e.push("}");var t=Yn(e).replace(/;/g,";\n").replace(/}/g,"}\n").replace(/{/g,"{\n");return Function.apply(null,n.concat(t)).apply(null,i)}}}(),i=e.link,r=e.global;e.id=O++,e.batchId="0";var o=i(A),a=e.shared={props:"a0"};Object.keys(A).forEach(function(e){a[e]=r.def(o,".",e)}),P.optional(function(){e.CHECK=i(P),e.commandStr=P.guessCommand(),e.command=i(e.commandStr),e.assert=function(e,t,n){e("if(!(",t,"))",this.CHECK,".commandRaise(",i(n),",",this.command,");")},I.invalidBlendCombinations=Br});var s=e.next={},u=e.current={};Object.keys(E).forEach(function(e){Array.isArray(w[e])&&(s[e]=r.def(a.next,".",e),u[e]=r.def(a.current,".",e))});var l=e.constants={};Object.keys(I).forEach(function(e){l[e]=r.def(JSON.stringify(I[e]))}),e.invoke=function(t,n){switch(n.type){case ei:var r=["this",a.context,a.props,e.batchId];return t.def(i(n.data),".call(",r.slice(0,Math.max(n.data.length+1,4)),")");case ti:return t.def(a.props,n.data);case ni:return t.def(a.context,n.data);case ii:return t.def("this",n.data);case ri:return n.data.append(e,t),n.data.ref}},e.attribCache={};var f={};return e.scopeAttrib=function(e){var t=n.id(e);if(t in f)return f[t];var r=c.scope[t];r||(r=c.scope[t]=new b);var o=f[t]=i(r);return o},e}function R(e,t,i,s,l){var c=e.static,d=e.dynamic;P.optional(function(){var e=[Ri,Di,Li,Mi,ji,Fi,Ui,Bi,Pi].concat(x);function t(t){Object.keys(t).forEach(function(t){P.command(e.indexOf(t)>=0,'unknown parameter "'+t+'"',l.commandStr)})}t(c),t(d)});var h=function(e,t){var n=e.static,i=e.dynamic;if(Ri in n){var r=n[Ri];return r?(r=u.getFramebuffer(r),P.command(r,"invalid framebuffer object"),Yr(function(e,t){var n=e.link(r),i=e.shared;t.set(i.framebuffer,".next",n);var o=i.context;return t.set(o,"."+zi,n+".width"),t.set(o,"."+Hi,n+".height"),n})):Yr(function(e,t){var n=e.shared;t.set(n.framebuffer,".next","null");var i=n.context;return t.set(i,"."+zi,i+"."+Gi),t.set(i,"."+Hi,i+"."+Ki),"null"})}if(Ri in i){var o=i[Ri];return Jr(o,function(e,t){var n=e.invoke(t,o),i=e.shared,r=i.framebuffer,a=t.def(r,".getFramebuffer(",n,")");P.optional(function(){e.assert(t,"!"+n+"||"+a,"invalid framebuffer object")}),t.set(r,".next",a);var s=i.context;return t.set(s,"."+zi,a+"?"+a+".width:"+s+"."+Gi),t.set(s,"."+Hi,a+"?"+a+".height:"+s+"."+Ki),a})}return null}(e),p=function(e,t,n){var i=e.static,r=e.dynamic;function o(e){if(e in i){var o=i[e];P.commandType(o,"object","invalid "+e,n.commandStr);var a,s,u=!0,l=0|o.x,c=0|o.y;return"width"in o?(a=0|o.width,P.command(a>=0,"invalid "+e,n.commandStr)):u=!1,"height"in o?(s=0|o.height,P.command(s>=0,"invalid "+e,n.commandStr)):u=!1,new qr(!u&&t&&t.thisDep,!u&&t&&t.contextDep,!u&&t&&t.propDep,function(e,t){var n=e.shared.context,i=a;"width"in o||(i=t.def(n,".",zi,"-",l));var r=s;return"height"in o||(r=t.def(n,".",Hi,"-",c)),[l,c,i,r]})}if(e in r){var f=r[e],d=Jr(f,function(t,n){var i=t.invoke(n,f);P.optional(function(){t.assert(n,i+"&&typeof "+i+'==="object"',"invalid "+e)});var r=t.shared.context,o=n.def(i,".x|0"),a=n.def(i,".y|0"),s=n.def('"width" in ',i,"?",i,".width|0:","(",r,".",zi,"-",o,")"),u=n.def('"height" in ',i,"?",i,".height|0:","(",r,".",Hi,"-",a,")");return P.optional(function(){t.assert(n,s+">=0&&"+u+">=0","invalid "+e)}),[o,a,s,u]});return t&&(d.thisDep=d.thisDep||t.thisDep,d.contextDep=d.contextDep||t.contextDep,d.propDep=d.propDep||t.propDep),d}return t?new qr(t.thisDep,t.contextDep,t.propDep,function(e,t){var n=e.shared.context;return[0,0,t.def(n,".",zi),t.def(n,".",Hi)]}):null}var a=o(Ni);if(a){var s=a;a=new qr(a.thisDep,a.contextDep,a.propDep,function(e,t){var n=s.append(e,t),i=e.shared.context;return t.set(i,"."+Vi,n[2]),t.set(i,"."+Wi,n[3]),n})}return{viewport:a,scissor_box:o(Oi)}}(e,h,l),m=function(e,t){var n=e.static,i=e.dynamic,r=function(){if(Mi in n){var e=n[Mi];Gr(e)?e=a.getElements(a.create(e,!0)):e&&(e=a.getElements(e),P.command(e,"invalid elements",t.commandStr));var r=Yr(function(t,n){if(e){var i=t.link(e);return t.ELEMENTS=i,i}return t.ELEMENTS=null,null});return r.value=e,r}if(Mi in i){var o=i[Mi];return Jr(o,function(e,t){var n=e.shared,i=n.isBufferArgs,r=n.elements,a=e.invoke(t,o),s=t.def("null"),u=t.def(i,"(",a,")"),l=e.cond(u).then(s,"=",r,".createStream(",a,");").else(s,"=",r,".getElements(",a,");");return P.optional(function(){e.assert(l.else,"!"+a+"||"+s,"invalid elements")}),t.entry(l),t.exit(e.cond(u).then(r,".destroyStream(",s,");")),e.ELEMENTS=s,s})}return null}();function o(e,o){if(e in n){var a=0|n[e];return P.command(!o||a>=0,"invalid "+e,t.commandStr),Yr(function(e,t){return o&&(e.OFFSET=a),a})}if(e in i){var s=i[e];return Jr(s,function(t,n){var i=t.invoke(n,s);return o&&(t.OFFSET=i,P.optional(function(){t.assert(n,i+">=0","invalid "+e)})),i})}return o&&r?Yr(function(e,t){return e.OFFSET="0",0}):null}var s=o(Fi,!0);return{elements:r,primitive:function(){if(ji in n){var e=n[ji];return P.commandParameter(e,ye,"invalid primitve",t.commandStr),Yr(function(t,n){return ye[e]})}if(ji in i){var o=i[ji];return Jr(o,function(e,t){var n=e.constants.primTypes,i=e.invoke(t,o);return P.optional(function(){e.assert(t,i+" in "+n,"invalid primitive, must be one of "+Object.keys(ye))}),t.def(n,"[",i,"]")})}return r?Xr(r)?r.value?Yr(function(e,t){return t.def(e.ELEMENTS,".primType")}):Yr(function(){return Er}):new qr(r.thisDep,r.contextDep,r.propDep,function(e,t){var n=e.ELEMENTS;return t.def(n,"?",n,".primType:",Er)}):null}(),count:function(){if(Ui in n){var e=0|n[Ui];return P.command("number"==typeof e&&e>=0,"invalid vertex count",t.commandStr),Yr(function(){return e})}if(Ui in i){var o=i[Ui];return Jr(o,function(e,t){var n=e.invoke(t,o);return P.optional(function(){e.assert(t,"typeof "+n+'==="number"&&'+n+">=0&&"+n+"===("+n+"|0)","invalid vertex count")}),n})}if(r){if(Xr(r)){if(r)return s?new qr(s.thisDep,s.contextDep,s.propDep,function(e,t){var n=t.def(e.ELEMENTS,".vertCount-",e.OFFSET);return P.optional(function(){e.assert(t,n+">=0","invalid vertex offset/element buffer too small")}),n}):Yr(function(e,t){return t.def(e.ELEMENTS,".vertCount")});var a=Yr(function(){return-1});return P.optional(function(){a.MISSING=!0}),a}var u=new qr(r.thisDep||s.thisDep,r.contextDep||s.contextDep,r.propDep||s.propDep,function(e,t){var n=e.ELEMENTS;return e.OFFSET?t.def(n,"?",n,".vertCount-",e.OFFSET,":-1"):t.def(n,"?",n,".vertCount:-1")});return P.optional(function(){u.DYNAMIC=!0}),u}return null}(),instances:o(Bi,!1),offset:s}}(e,l),y=function(e,t){var n=e.static,i=e.dynamic,o={};return x.forEach(function(e){var a=S(e);function s(t,r){if(e in n){var s=t(n[e]);o[a]=Yr(function(){return s})}else if(e in i){var u=i[e];o[a]=Jr(u,function(e,t){return r(e,t,e.invoke(t,u))})}}switch(e){case mi:case ai:case oi:case Ei:case ci:case Ii:case yi:case _i:case xi:case hi:return s(function(n){return P.commandType(n,"boolean",e,t.commandStr),n},function(t,n,i){return P.optional(function(){t.assert(n,"typeof "+i+'==="boolean"',"invalid flag "+e,t.commandStr)}),i});case fi:return s(function(n){return P.commandParameter(n,zr,"invalid "+e,t.commandStr),zr[n]},function(t,n,i){var r=t.constants.compareFuncs;return P.optional(function(){t.assert(n,i+" in "+r,"invalid "+e+", must be one of "+Object.keys(zr))}),n.def(r,"[",i,"]")});case di:return s(function(e){return P.command(Me(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]&&e[0]<=e[1],"depth range is 2d array",t.commandStr),e},function(e,t,n){return P.optional(function(){e.assert(t,e.shared.isArrayLike+"("+n+")&&"+n+".length===2&&typeof "+n+'[0]==="number"&&typeof '+n+'[1]==="number"&&'+n+"[0]<="+n+"[1]","depth range must be a 2d array")}),[t.def("+",n,"[0]"),t.def("+",n,"[1]")]});case li:return s(function(e){P.commandType(e,"object","blend.func",t.commandStr);var n="srcRGB"in e?e.srcRGB:e.src,i="srcAlpha"in e?e.srcAlpha:e.src,r="dstRGB"in e?e.dstRGB:e.dst,o="dstAlpha"in e?e.dstAlpha:e.dst;return P.commandParameter(n,Fr,a+".srcRGB",t.commandStr),P.commandParameter(i,Fr,a+".srcAlpha",t.commandStr),P.commandParameter(r,Fr,a+".dstRGB",t.commandStr),P.commandParameter(o,Fr,a+".dstAlpha",t.commandStr),P.command(-1===Br.indexOf(n+", "+r),"unallowed blending combination (srcRGB, dstRGB) = ("+n+", "+r+")",t.commandStr),[Fr[n],Fr[r],Fr[i],Fr[o]]},function(t,n,i){var r=t.constants.blendFuncs;function o(o,a){var s=n.def('"',o,a,'" in ',i,"?",i,".",o,a,":",i,".",o);return P.optional(function(){t.assert(n,s+" in "+r,"invalid "+e+"."+o+a+", must be one of "+Object.keys(Fr))}),s}P.optional(function(){t.assert(n,i+"&&typeof "+i+'==="object"',"invalid blend func, must be an object")});var a=o("src","RGB"),s=o("dst","RGB");P.optional(function(){var e=t.constants.invalidBlendCombinations;t.assert(n,e+".indexOf("+a+'+", "+'+s+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var u=n.def(r,"[",a,"]"),l=n.def(r,"[",o("src","Alpha"),"]");return[u,n.def(r,"[",s,"]"),l,n.def(r,"[",o("dst","Alpha"),"]")]});case ui:return s(function(n){return"string"==typeof n?(P.commandParameter(n,g,"invalid "+e,t.commandStr),[g[n],g[n]]):"object"==typeof n?(P.commandParameter(n.rgb,g,e+".rgb",t.commandStr),P.commandParameter(n.alpha,g,e+".alpha",t.commandStr),[g[n.rgb],g[n.alpha]]):void P.commandRaise("invalid blend.equation",t.commandStr)},function(t,n,i){var r=t.constants.blendEquations,o=n.def(),a=n.def(),s=t.cond("typeof ",i,'==="string"');return P.optional(function(){function n(e,n,i){t.assert(e,i+" in "+r,"invalid "+n+", must be one of "+Object.keys(g))}n(s.then,e,i),t.assert(s.else,i+"&&typeof "+i+'==="object"',"invalid "+e),n(s.else,e+".rgb",i+".rgb"),n(s.else,e+".alpha",i+".alpha")}),s.then(o,"=",a,"=",r,"[",i,"];"),s.else(o,"=",r,"[",i,".rgb];",a,"=",r,"[",i,".alpha];"),n(s),[o,a]});case si:return s(function(e){return P.command(Me(e)&&4===e.length,"blend.color must be a 4d array",t.commandStr),W(4,function(t){return+e[t]})},function(e,t,n){return P.optional(function(){e.assert(t,e.shared.isArrayLike+"("+n+")&&"+n+".length===4","blend.color must be a 4d array")}),W(4,function(e){return t.def("+",n,"[",e,"]")})});case Si:return s(function(e){return P.commandType(e,"number",a,t.commandStr),0|e},function(e,t,n){return P.optional(function(){e.assert(t,"typeof "+n+'==="number"',"invalid stencil.mask")}),t.def(n,"|0")});case Ti:return s(function(n){P.commandType(n,"object",a,t.commandStr);var i=n.cmp||"keep",r=n.ref||0,o="mask"in n?n.mask:-1;return P.commandParameter(i,zr,e+".cmp",t.commandStr),P.commandType(r,"number",e+".ref",t.commandStr),P.commandType(o,"number",e+".mask",t.commandStr),[zr[i],r,o]},function(e,t,n){var i=e.constants.compareFuncs;return P.optional(function(){function r(){e.assert(t,Array.prototype.join.call(arguments,""),"invalid stencil.func")}r(n+"&&typeof ",n,'==="object"'),r('!("cmp" in ',n,")||(",n,".cmp in ",i,")")}),[t.def('"cmp" in ',n,"?",i,"[",n,".cmp]",":",Pr),t.def(n,".ref|0"),t.def('"mask" in ',n,"?",n,".mask|0:-1")]});case Ci:case Ai:return s(function(n){P.commandType(n,"object",a,t.commandStr);var i=n.fail||"keep",r=n.zfail||"keep",o=n.zpass||"keep";return P.commandParameter(i,Hr,e+".fail",t.commandStr),P.commandParameter(r,Hr,e+".zfail",t.commandStr),P.commandParameter(o,Hr,e+".zpass",t.commandStr),[e===Ai?Tr:Sr,Hr[i],Hr[r],Hr[o]]},function(t,n,i){var r=t.constants.stencilOps;function o(o){return P.optional(function(){t.assert(n,'!("'+o+'" in '+i+")||("+i+"."+o+" in "+r+")","invalid "+e+"."+o+", must be one of "+Object.keys(Hr))}),n.def('"',o,'" in ',i,"?",r,"[",i,".",o,"]:",Pr)}return P.optional(function(){t.assert(n,i+"&&typeof "+i+'==="object"',"invalid "+e)}),[e===Ai?Tr:Sr,o("fail"),o("zfail"),o("zpass")]});case wi:return s(function(e){P.commandType(e,"object",a,t.commandStr);var n=0|e.factor,i=0|e.units;return P.commandType(n,"number",a+".factor",t.commandStr),P.commandType(i,"number",a+".units",t.commandStr),[n,i]},function(t,n,i){return P.optional(function(){t.assert(n,i+"&&typeof "+i+'==="object"',"invalid "+e)}),[n.def(i,".factor|0"),n.def(i,".units|0")]});case bi:return s(function(e){var n=0;return"front"===e?n=Sr:"back"===e&&(n=Tr),P.command(!!n,a,t.commandStr),n},function(e,t,n){return P.optional(function(){e.assert(t,n+'==="front"||'+n+'==="back"',"invalid cull.face")}),t.def(n,'==="front"?',Sr,":",Tr)});case vi:return s(function(e){return P.command("number"==typeof e&&e>=r.lineWidthDims[0]&&e<=r.lineWidthDims[1],"invalid line width, must be a positive number between "+r.lineWidthDims[0]+" and "+r.lineWidthDims[1],t.commandStr),e},function(e,t,n){return P.optional(function(){e.assert(t,"typeof "+n+'==="number"&&'+n+">="+r.lineWidthDims[0]+"&&"+n+"<="+r.lineWidthDims[1],"invalid line width")}),n});case gi:return s(function(e){return P.commandParameter(e,Wr,a,t.commandStr),Wr[e]},function(e,t,n){return P.optional(function(){e.assert(t,n+'==="cw"||'+n+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),t.def(n+'==="cw"?'+Cr+":"+Ar)});case pi:return s(function(e){return P.command(Me(e)&&4===e.length,"color.mask must be length 4 array",t.commandStr),e.map(function(e){return!!e})},function(e,t,n){return P.optional(function(){e.assert(t,e.shared.isArrayLike+"("+n+")&&"+n+".length===4","invalid color.mask")}),W(4,function(e){return"!!"+n+"["+e+"]"})});case ki:return s(function(e){P.command("object"==typeof e&&e,a,t.commandStr);var n="value"in e?e.value:1,i=!!e.invert;return P.command("number"==typeof n&&n>=0&&n<=1,"sample.coverage.value must be a number between 0 and 1",t.commandStr),[n,i]},function(e,t,n){return P.optional(function(){e.assert(t,n+"&&typeof "+n+'==="object"',"invalid sample.coverage")}),[t.def('"value" in ',n,"?+",n,".value:1"),t.def("!!",n,".invert")]})}}),o}(e,l),w=function(e){var t=e.static,i=e.dynamic;function r(e){if(e in t){var r=n.id(t[e]);P.optional(function(){f.shader(Vr[e],r,P.guessCommand())});var o=Yr(function(){return r});return o.id=r,o}if(e in i){var a=i[e];return Jr(a,function(t,n){var i=t.invoke(n,a),r=n.def(t.shared.strings,".id(",i,")");return P.optional(function(){n(t.shared.shader,".shader(",Vr[e],",",r,",",t.command,");")}),r})}return null}var o,a=r(Li),s=r(Di),u=null;return Xr(a)&&Xr(s)?(u=f.program(s.id,a.id),o=Yr(function(e,t){return e.link(u)})):o=new qr(a&&a.thisDep||s&&s.thisDep,a&&a.contextDep||s&&s.contextDep,a&&a.propDep||s&&s.propDep,function(e,t){var n,i,r=e.shared.shader;n=a?a.append(e,t):t.def(r,".",Li),i=s?s.append(e,t):t.def(r,".",Di);var o=r+".program("+i+","+n;return P.optional(function(){o+=","+e.command}),t.def(o+")")}),{frag:a,vert:s,progVar:o,program:u}}(e);function _(e){var t=p[e];t&&(y[e]=t)}_(Ni),_(S(Oi));var k=Object.keys(y).length>0,E={framebuffer:h,draw:m,shader:w,state:y,dirty:k};return E.profile=function(e){var t,n=e.static,i=e.dynamic;if(Pi in n){var r=!!n[Pi];(t=Yr(function(e,t){return r})).enable=r}else if(Pi in i){var o=i[Pi];t=Jr(o,function(e,t){return e.invoke(t,o)})}return t}(e),E.uniforms=function(e,t){var n=e.static,i=e.dynamic,r={};return Object.keys(n).forEach(function(e){var i,o=n[e];if("number"==typeof o||"boolean"==typeof o)i=Yr(function(){return o});else if("function"==typeof o){var a=o._reglType;"texture2d"===a||"textureCube"===a?i=Yr(function(e){return e.link(o)}):"framebuffer"===a||"framebufferCube"===a?(P.command(o.color.length>0,'missing color attachment for framebuffer sent to uniform "'+e+'"',t.commandStr),i=Yr(function(e){return e.link(o.color[0])})):P.commandRaise('invalid data for uniform "'+e+'"',t.commandStr)}else Me(o)?i=Yr(function(t){return t.global.def("[",W(o.length,function(n){return P.command("number"==typeof o[n]||"boolean"==typeof o[n],"invalid uniform "+e,t.commandStr),o[n]}),"]")}):P.commandRaise('invalid or missing data for uniform "'+e+'"',t.commandStr);i.value=o,r[e]=i}),Object.keys(i).forEach(function(e){var t=i[e];r[e]=Jr(t,function(e,n){return e.invoke(n,t)})}),r}(i,l),E.attributes=function(e,t){var i=e.static,r=e.dynamic,a={};return Object.keys(i).forEach(function(e){var r=i[e],s=n.id(e),u=new b;if(Gr(r))u.state=Zn,u.buffer=o.getBuffer(o.create(r,Xi,!1,!0)),u.type=0;else{var l=o.getBuffer(r);if(l)u.state=Zn,u.buffer=l,u.type=0;else if(P.command("object"==typeof r&&r,"invalid data for attribute "+e,t.commandStr),"constant"in r){var c=r.constant;u.buffer="null",u.state=Qn,"number"==typeof c?u.x=c:(P.command(Me(c)&&c.length>0&&c.length<=4,"invalid constant for attribute "+e,t.commandStr),Jn.forEach(function(e,t){t<c.length&&(u[e]=c[t])}))}else{l=Gr(r.buffer)?o.getBuffer(o.create(r.buffer,Xi,!1,!0)):o.getBuffer(r.buffer),P.command(!!l,'missing buffer for attribute "'+e+'"',t.commandStr);var f=0|r.offset;P.command(f>=0,'invalid offset for attribute "'+e+'"',t.commandStr);var d=0|r.stride;P.command(d>=0&&d<256,'invalid stride for attribute "'+e+'", must be integer betweeen [0, 255]',t.commandStr);var h=0|r.size;P.command(!("size"in r)||h>0&&h<=4,'invalid size for attribute "'+e+'", must be 1,2,3,4',t.commandStr);var p=!!r.normalized,m=0;"type"in r&&(P.commandParameter(r.type,se,"invalid type for attribute "+e,t.commandStr),m=se[r.type]);var g=0|r.divisor;"divisor"in r&&(P.command(0===g||v,'cannot specify divisor for attribute "'+e+'", instancing not supported',t.commandStr),P.command(g>=0,'invalid divisor for attribute "'+e+'"',t.commandStr)),P.optional(function(){var n=t.commandStr,i=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(r).forEach(function(t){P.command(i.indexOf(t)>=0,'unknown parameter "'+t+'" for attribute pointer "'+e+'" (valid parameters are '+i+")",n)})}),u.buffer=l,u.state=Zn,u.size=h,u.normalized=p,u.type=m||l.dtype,u.offset=f,u.stride=d,u.divisor=g}}a[e]=Yr(function(e,t){var n=e.attribCache;if(s in n)return n[s];var i={isStream:!1};return Object.keys(u).forEach(function(e){i[e]=u[e]}),u.buffer&&(i.buffer=e.link(u.buffer),i.type=i.type||i.buffer+".dtype"),n[s]=i,i})}),Object.keys(r).forEach(function(e){var t=r[e];a[e]=Jr(t,function(n,i){var r=n.invoke(i,t),o=n.shared,a=o.isBufferArgs,s=o.buffer;P.optional(function(){n.assert(i,r+"&&(typeof "+r+'==="object"||typeof '+r+'==="function")&&('+a+"("+r+")||"+s+".getBuffer("+r+")||"+s+".getBuffer("+r+".buffer)||"+a+"("+r+'.buffer)||("constant" in '+r+"&&(typeof "+r+'.constant==="number"||'+o.isArrayLike+"("+r+".constant))))",'invalid dynamic attribute "'+e+'"')});var u={isStream:i.def(!1)},l=new b;l.state=Zn,Object.keys(l).forEach(function(e){u[e]=i.def(""+l[e])});var c=u.buffer,f=u.type;function d(e){i(u[e],"=",r,".",e,"|0;")}return i("if(",a,"(",r,")){",u.isStream,"=true;",c,"=",s,".createStream(",Xi,",",r,");",f,"=",c,".dtype;","}else{",c,"=",s,".getBuffer(",r,");","if(",c,"){",f,"=",c,".dtype;",'}else if("constant" in ',r,"){",u.state,"=",Qn,";","if(typeof "+r+'.constant === "number"){',u[Jn[0]],"=",r,".constant;",Jn.slice(1).map(function(e){return u[e]}).join("="),"=0;","}else{",Jn.map(function(e,t){return u[e]+"="+r+".constant.length>"+t+"?"+r+".constant["+t+"]:0;"}).join(""),"}}else{","if(",a,"(",r,".buffer)){",c,"=",s,".createStream(",Xi,",",r,".buffer);","}else{",c,"=",s,".getBuffer(",r,".buffer);","}",f,'="type" in ',r,"?",o.glTypes,"[",r,".type]:",c,".dtype;",u.normalized,"=!!",r,".normalized;"),d("size"),d("offset"),d("stride"),d("divisor"),i("}}"),i.exit("if(",u.isStream,"){",s,".destroyStream(",c,");","}"),u})}),a}(t,l),E.context=function(e){var t=e.static,n=e.dynamic,i={};return Object.keys(t).forEach(function(e){var n=t[e];i[e]=Yr(function(e,t){return"number"==typeof n||"boolean"==typeof n?""+n:e.link(n)})}),Object.keys(n).forEach(function(e){var t=n[e];i[e]=Jr(t,function(e,n){return e.invoke(n,t)})}),i}(s),E}function D(e,t,n){var i=e.shared,r=i.context,o=e.scope();Object.keys(n).forEach(function(i){t.save(r,"."+i);var a=n[i];o(r,".",i,"=",a.append(e,t),";")}),t(o)}function L(e,t,n,i){var r,o=e.shared,a=o.gl,s=o.framebuffer;y&&(r=t.def(o.extensions,".webgl_draw_buffers"));var u,l=e.constants,c=l.drawBuffer,f=l.backBuffer;u=n?n.append(e,t):t.def(s,".next"),i||t("if(",u,"!==",s,".cur){"),t("if(",u,"){",a,".bindFramebuffer(",jr,",",u,".framebuffer);"),y&&t(r,".drawBuffersWEBGL(",c,"[",u,".colorAttachments.length]);"),t("}else{",a,".bindFramebuffer(",jr,",null);"),y&&t(r,".drawBuffersWEBGL(",f,");"),t("}",s,".cur=",u,";"),i||t("}")}function M(e,t,n){var i=e.shared,r=i.gl,o=e.current,a=e.next,s=i.current,u=i.next,l=e.cond(s,".dirty");x.forEach(function(t){var i,c,f=S(t);if(!(f in n.state))if(f in a){i=a[f],c=o[f];var d=W(w[f].length,function(e){return l.def(i,"[",e,"]")});l(e.cond(d.map(function(e,t){return e+"!=="+c+"["+t+"]"}).join("||")).then(r,".",E[f],"(",d,");",d.map(function(e,t){return c+"["+t+"]="+e}).join(";"),";"))}else{i=l.def(u,".",f);var h=e.cond(i,"!==",s,".",f);l(h),f in k?h(e.cond(i).then(r,".enable(",k[f],");").else(r,".disable(",k[f],");"),s,".",f,"=",i,";"):h(r,".",E[f],"(",i,");",s,".",f,"=",i,";")}}),0===Object.keys(n.state).length&&l(s,".dirty=false;"),t(l)}function j(e,t,n,i){var r=e.shared,o=e.current,a=r.current,s=r.gl;Kr(Object.keys(n)).forEach(function(r){var u=n[r];if(!i||i(u)){var l=u.append(e,t);if(k[r]){var c=k[r];Xr(u)?t(s,l?".enable(":".disable(",c,");"):t(e.cond(l).then(s,".enable(",c,");").else(s,".disable(",c,");")),t(a,".",r,"=",l,";")}else if(Me(l)){var f=o[r];t(s,".",E[r],"(",l,");",l.map(function(e,t){return f+"["+t+"]="+e}).join(";"),";")}else t(s,".",E[r],"(",l,");",a,".",r,"=",l,";")}})}function F(e,t){v&&(e.instancing=t.def(e.shared.extensions,".angle_instanced_arrays"))}function B(e,t,n,i,r){var o,a,s,u=e.shared,l=e.stats,c=u.current,f=u.timer,d=n.profile;function h(){return"undefined"==typeof performance?"Date.now()":"performance.now()"}function m(e){o=t.def(),e(o,"=",h(),";"),"string"==typeof r?e(l,".count+=",r,";"):e(l,".count++;"),p&&(i?(a=t.def(),e(a,"=",f,".getNumPendingQueries();")):e(f,".beginQuery(",l,");"))}function b(e){e(l,".cpuTime+=",h(),"-",o,";"),p&&(i?e(f,".pushScopeStats(",a,",",f,".getNumPendingQueries(),",l,");"):e(f,".endQuery();"))}function g(e){var n=t.def(c,".profile");t(c,".profile=",e,";"),t.exit(c,".profile=",n,";")}if(d){if(Xr(d))return void(d.enable?(m(t),b(t.exit),g("true")):g("false"));g(s=d.append(e,t))}else s=t.def(c,".profile");var v=e.block();m(v),t("if(",s,"){",v,"}");var y=e.block();b(y),t.exit("if(",s,"){",y,"}")}function z(e,t,n,i,r){var o=e.shared;i.forEach(function(i){var a,s=i.name,u=n.attributes[s];if(u){if(!r(u))return;a=u.append(e,t)}else{if(!r($r))return;var l=e.scopeAttrib(s);P.optional(function(){e.assert(t,l+".state","missing attribute "+s)}),a={},Object.keys(new b).forEach(function(e){a[e]=t.def(l,".",e)})}!function(n,i,r){var a=o.gl,s=t.def(n,".location"),u=t.def(o.attributes,"[",s,"]"),l=r.state,c=r.buffer,f=[r.x,r.y,r.z,r.w],d=["buffer","normalized","offset","stride"];function h(){t("if(!",u,".buffer){",a,".enableVertexAttribArray(",s,");}");var n,o=r.type;if(n=r.size?t.def(r.size,"||",i):i,t("if(",u,".type!==",o,"||",u,".size!==",n,"||",d.map(function(e){return u+"."+e+"!=="+r[e]}).join("||"),"){",a,".bindBuffer(",Xi,",",c,".buffer);",a,".vertexAttribPointer(",[s,n,o,r.normalized,r.stride,r.offset],");",u,".type=",o,";",u,".size=",n,";",d.map(function(e){return u+"."+e+"="+r[e]+";"}).join(""),"}"),v){var l=r.divisor;t("if(",u,".divisor!==",l,"){",e.instancing,".vertexAttribDivisorANGLE(",[s,l],");",u,".divisor=",l,";}")}}function p(){t("if(",u,".buffer){",a,".disableVertexAttribArray(",s,");","}if(",Jn.map(function(e,t){return u+"."+e+"!=="+f[t]}).join("||"),"){",a,".vertexAttrib4f(",s,",",f,");",Jn.map(function(e,t){return u+"."+e+"="+f[t]+";"}).join(""),"}")}l===Zn?h():l===Qn?p():(t("if(",l,"===",Zn,"){"),h(),t("}else{"),p(),t("}"))}(e.link(i),function(e){switch(e){case ur:case dr:case br:return 2;case lr:case hr:case gr:return 3;case cr:case pr:case vr:return 4;default:return 1}}(i.info.type),a)})}function H(e,t,i,r,o){for(var a,s=e.shared,u=s.gl,l=0;l<r.length;++l){var c,f=r[l],d=f.name,h=f.info.type,p=i.uniforms[d],m=e.link(f),b=m+".location";if(p){if(!o(p))continue;if(Xr(p)){var g=p.value;if(P.command(null!=g,'missing uniform "'+d+'"',e.commandStr),h===xr||h===kr){P.command("function"==typeof g&&(h===xr&&("texture2d"===g._reglType||"framebuffer"===g._reglType)||h===kr&&("textureCube"===g._reglType||"framebufferCube"===g._reglType)),"invalid texture for uniform "+d,e.commandStr);var v=e.link(g._texture||g.color[0]._texture);t(u,".uniform1i(",b,",",v+".bind());"),t.exit(v,".unbind();")}else if(h===yr||h===wr||h===_r){P.optional(function(){P.command(Me(g),"invalid matrix for uniform "+d,e.commandStr),P.command(h===yr&&4===g.length||h===wr&&9===g.length||h===_r&&16===g.length,"invalid length for matrix uniform "+d,e.commandStr)});var y=e.global.def("new Float32Array(["+Array.prototype.slice.call(g)+"])"),w=2;h===wr?w=3:h===_r&&(w=4),t(u,".uniformMatrix",w,"fv(",b,",false,",y,");")}else{switch(h){case sr:P.commandType(g,"number","uniform "+d,e.commandStr),a="1f";break;case ur:P.command(Me(g)&&2===g.length,"uniform "+d,e.commandStr),a="2f";break;case lr:P.command(Me(g)&&3===g.length,"uniform "+d,e.commandStr),a="3f";break;case cr:P.command(Me(g)&&4===g.length,"uniform "+d,e.commandStr),a="4f";break;case mr:P.commandType(g,"boolean","uniform "+d,e.commandStr),a="1i";break;case fr:P.commandType(g,"number","uniform "+d,e.commandStr),a="1i";break;case br:case dr:P.command(Me(g)&&2===g.length,"uniform "+d,e.commandStr),a="2i";break;case gr:case hr:P.command(Me(g)&&3===g.length,"uniform "+d,e.commandStr),a="3i";break;case vr:case pr:P.command(Me(g)&&4===g.length,"uniform "+d,e.commandStr),a="4i"}t(u,".uniform",a,"(",b,",",Me(g)?Array.prototype.slice.call(g):g,");")}continue}c=p.append(e,t)}else{if(!o($r))continue;c=t.def(s.uniforms,"[",n.id(d),"]")}h===xr?t("if(",c,"&&",c,'._reglType==="framebuffer"){',c,"=",c,".color[0];","}"):h===kr&&t("if(",c,"&&",c,'._reglType==="framebufferCube"){',c,"=",c,".color[0];","}"),P.optional(function(){function n(n,i){e.assert(t,n,'bad data or missing for uniform "'+d+'". '+i)}function i(e){n("typeof "+c+'==="'+e+'"',"invalid type, expected "+e)}function r(t,i){n(s.isArrayLike+"("+c+")&&"+c+".length==="+t,"invalid vector, should have length "+t,e.commandStr)}function o(t){n("typeof "+c+'==="function"&&'+c+'._reglType==="texture'+(t===Ji?"2d":"Cube")+'"',"invalid texture type",e.commandStr)}switch(h){case fr:i("number");break;case dr:r(2);break;case hr:r(3);break;case pr:r(4);break;case sr:i("number");break;case ur:r(2);break;case lr:r(3);break;case cr:r(4);break;case mr:i("boolean");break;case br:r(2);break;case gr:r(3);break;case vr:case yr:r(4);break;case wr:r(9);break;case _r:r(16);break;case xr:o(Ji);break;case kr:o($i)}});var _=1;switch(h){case xr:case kr:var x=t.def(c,"._texture");t(u,".uniform1i(",b,",",x,".bind());"),t.exit(x,".unbind();");continue;case fr:case mr:a="1i";break;case dr:case br:a="2i",_=2;break;case hr:case gr:a="3i",_=3;break;case pr:case vr:a="4i",_=4;break;case sr:a="1f";break;case ur:a="2f",_=2;break;case lr:a="3f",_=3;break;case cr:a="4f",_=4;break;case yr:a="Matrix2fv";break;case wr:a="Matrix3fv";break;case _r:a="Matrix4fv"}if(t(u,".uniform",a,"(",b,","),"M"===a.charAt(0)){var k=Math.pow(h-yr+2,2),E=e.global.def("new Float32Array(",k,")");t("false,(Array.isArray(",c,")||",c," instanceof Float32Array)?",c,":(",W(k,function(e){return E+"["+e+"]="+c+"["+e+"]"}),",",E,")")}else t(_>1?W(_,function(e){return c+"["+e+"]"}):c);t(");")}}function V(e,t,n,i){var r=e.shared,o=r.gl,a=r.draw,s=i.draw,u=function(){var r,u=s.elements,l=t;return u?((u.contextDep&&i.contextDynamic||u.propDep)&&(l=n),r=u.append(e,l)):r=l.def(a,".",Mi),r&&l("if("+r+")"+o+".bindBuffer("+Yi+","+r+".buffer.buffer);"),r}();function l(r){var o=s[r];return o?o.contextDep&&i.contextDynamic||o.propDep?o.append(e,n):o.append(e,t):t.def(a,".",r)}var c,f,d=l(ji),h=l(Fi),p=function(){var r,o=s.count,u=t;return o?((o.contextDep&&i.contextDynamic||o.propDep)&&(u=n),r=o.append(e,u),P.optional(function(){o.MISSING&&e.assert(t,"false","missing vertex count"),o.DYNAMIC&&e.assert(u,r+">=0","missing vertex count")})):(r=u.def(a,".",Ui),P.optional(function(){e.assert(u,r+">=0","missing vertex count")})),r}();if("number"==typeof p){if(0===p)return}else n("if(",p,"){"),n.exit("}");v&&(c=l(Bi),f=e.instancing);var m=u+".type",b=s.elements&&Xr(s.elements);function g(){function e(){n(f,".drawElementsInstancedANGLE(",[d,p,m,h+"<<(("+m+"-"+$n+")>>1)",c],");")}function t(){n(f,".drawArraysInstancedANGLE(",[d,h,p,c],");")}u?b?e():(n("if(",u,"){"),e(),n("}else{"),t(),n("}")):t()}function y(){function e(){n(o+".drawElements("+[d,p,m,h+"<<(("+m+"-"+$n+")>>1)"]+");")}function t(){n(o+".drawArrays("+[d,h,p]+");")}u?b?e():(n("if(",u,"){"),e(),n("}else{"),t(),n("}")):t()}v&&("number"!=typeof c||c>=0)?"string"==typeof c?(n("if(",c,">0){"),g(),n("}else if(",c,"<0){"),y(),n("}")):g():y()}function G(e,t,n,i,r){var o=N(),a=o.proc("body",r);return P.optional(function(){o.commandStr=t.commandStr,o.command=o.link(t.commandStr)}),v&&(o.instancing=a.def(o.shared.extensions,".angle_instanced_arrays")),e(o,a,n,i),o.compile().body}function K(e,t,n,i){F(e,t),z(e,t,n,i.attributes,function(){return!0}),H(e,t,n,i.uniforms,function(){return!0}),V(e,t,t,n)}function q(e,t,n,i){function r(){return!0}e.batchId="a1",F(e,t),z(e,t,n,i.attributes,r),H(e,t,n,i.uniforms,r),V(e,t,t,n)}function X(e,t,n,i){F(e,t);var r=n.contextDep,o=t.def(),a=t.def();e.shared.props=a,e.batchId=o;var s=e.scope(),u=e.scope();function l(e){return e.contextDep&&r||e.propDep}function c(e){return!l(e)}if(t(s.entry,"for(",o,"=0;",o,"<","a1",";++",o,"){",a,"=","a0","[",o,"];",u,"}",s.exit),n.needsContext&&D(e,u,n.context),n.needsFramebuffer&&L(e,u,n.framebuffer),j(e,u,n.state,l),n.profile&&l(n.profile)&&B(e,u,n,!1,!0),i)z(e,s,n,i.attributes,c),z(e,u,n,i.attributes,l),H(e,s,n,i.uniforms,c),H(e,u,n,i.uniforms,l),V(e,s,u,n);else{var f=e.global.def("{}"),d=n.shader.progVar.append(e,u),h=u.def(d,".id"),p=u.def(f,"[",h,"]");u(e.shared.gl,".useProgram(",d,".program);","if(!",p,"){",p,"=",f,"[",h,"]=",e.link(function(t){return G(q,e,n,t,2)}),"(",d,");}",p,".call(this,a0[",o,"],",o,");")}}function Y(e,t,n){var i=t.static[n];if(i&&function(e){if("object"==typeof e&&!Me(e)){for(var t=Object.keys(e),n=0;n<t.length;++n)if(U.isDynamic(e[t[n]]))return!0;return!1}}(i)){var r=e.global,o=Object.keys(i),a=!1,s=!1,u=!1,l=e.global.def("{}");o.forEach(function(t){var n=i[t];if(U.isDynamic(n)){"function"==typeof n&&(n=i[t]=U.unbox(n));var o=Jr(n,null);a=a||o.thisDep,u=u||o.propDep,s=s||o.contextDep}else{switch(r(l,".",t,"="),typeof n){case"number":r(n);break;case"string":r('"',n,'"');break;case"object":Array.isArray(n)&&r("[",n.join(),"]");break;default:r(e.link(n))}r(";")}}),t.dynamic[n]=new U.DynamicVariable(ri,{thisDep:a,contextDep:s,propDep:u,ref:l,append:function(e,t){o.forEach(function(n){var r=i[n];if(U.isDynamic(r)){var o=e.invoke(t,r);t(l,".",n,"=",o,";")}})}}),delete t.static[n]}}return{next:_,current:w,procs:function(){var e=N(),t=e.proc("poll"),n=e.proc("refresh"),i=e.block();t(i),n(i);var o,a=e.shared,s=a.gl,u=a.next,l=a.current;i(l,".dirty=false;"),L(e,t),L(e,n,null,!0),v&&(o=e.link(v));for(var c=0;c<r.maxAttributes;++c){var f=n.def(a.attributes,"[",c,"]"),d=e.cond(f,".buffer");d.then(s,".enableVertexAttribArray(",c,");",s,".bindBuffer(",Xi,",",f,".buffer.buffer);",s,".vertexAttribPointer(",c,",",f,".size,",f,".type,",f,".normalized,",f,".stride,",f,".offset);").else(s,".disableVertexAttribArray(",c,");",s,".vertexAttrib4f(",c,",",f,".x,",f,".y,",f,".z,",f,".w);",f,".buffer=null;"),n(d),v&&n(o,".vertexAttribDivisorANGLE(",c,",",f,".divisor);")}return Object.keys(k).forEach(function(r){var o=k[r],a=i.def(u,".",r),c=e.block();c("if(",a,"){",s,".enable(",o,")}else{",s,".disable(",o,")}",l,".",r,"=",a,";"),n(c),t("if(",a,"!==",l,".",r,"){",c,"}")}),Object.keys(E).forEach(function(r){var o,a,c=E[r],f=w[r],d=e.block();if(d(s,".",c,"("),Me(f)){var h=f.length;o=e.global.def(u,".",r),a=e.global.def(l,".",r),d(W(h,function(e){return o+"["+e+"]"}),");",W(h,function(e){return a+"["+e+"]="+o+"["+e+"];"}).join("")),t("if(",W(h,function(e){return o+"["+e+"]!=="+a+"["+e+"]"}).join("||"),"){",d,"}")}else o=i.def(u,".",r),a=i.def(l,".",r),d(o,");",l,".",r,"=",o,";"),t("if(",o,"!==",a,"){",d,"}");n(d)}),e.compile()}(),compile:function(e,t,i,r,o){var a=N();a.stats=a.link(o),Object.keys(t.static).forEach(function(e){Y(a,t,e)}),qi.forEach(function(t){Y(a,e,t)});var s=R(e,t,i,r,a);return function(e,t){var n=e.proc("draw",1);F(e,n),D(e,n,t.context),L(e,n,t.framebuffer),M(e,n,t),j(e,n,t.state),B(e,n,t,!1,!0);var i=t.shader.progVar.append(e,n);if(n(e.shared.gl,".useProgram(",i,".program);"),t.shader.program)K(e,n,t,t.shader.program);else{var r=e.global.def("{}"),o=n.def(i,".id"),a=n.def(r,"[",o,"]");n(e.cond(a).then(a,".call(this,a0);").else(a,"=",r,"[",o,"]=",e.link(function(n){return G(K,e,t,n,1)}),"(",i,");",a,".call(this,a0);"))}Object.keys(t.state).length>0&&n(e.shared.current,".dirty=true;")}(a,s),function(e,t){var i=e.proc("scope",3);e.batchId="a2";var r=e.shared,o=r.current;function a(n){var o=t.shader[n];o&&i.set(r.shader,"."+n,o.append(e,i))}D(e,i,t.context),t.framebuffer&&t.framebuffer.append(e,i),Kr(Object.keys(t.state)).forEach(function(n){var o=t.state[n].append(e,i);Me(o)?o.forEach(function(t,r){i.set(e.next[n],"["+r+"]",t)}):i.set(r.next,"."+n,o)}),B(e,i,t,!0,!0),[Mi,Fi,Ui,Bi,ji].forEach(function(n){var o=t.draw[n];o&&i.set(r.draw,"."+n,""+o.append(e,i))}),Object.keys(t.uniforms).forEach(function(o){i.set(r.uniforms,"["+n.id(o)+"]",t.uniforms[o].append(e,i))}),Object.keys(t.attributes).forEach(function(n){var r=t.attributes[n].append(e,i),o=e.scopeAttrib(n);Object.keys(new b).forEach(function(e){i.set(o,"."+e,r[e])})}),a(Di),a(Li),Object.keys(t.state).length>0&&(i(o,".dirty=true;"),i.exit(o,".dirty=true;")),i("a1(",e.shared.context,",a0,",e.batchId,");")}(a,s),function(e,t){var n=e.proc("batch",2);e.batchId="0",F(e,n);var i=!1,r=!0;Object.keys(t.context).forEach(function(e){i=i||t.context[e].propDep}),i||(D(e,n,t.context),r=!1);var o=t.framebuffer,a=!1;function s(e){return e.contextDep&&i||e.propDep}o?(o.propDep?i=a=!0:o.contextDep&&i&&(a=!0),a||L(e,n,o)):L(e,n,null),t.state.viewport&&t.state.viewport.propDep&&(i=!0),M(e,n,t),j(e,n,t.state,function(e){return!s(e)}),t.profile&&s(t.profile)||B(e,n,t,!1,"a1"),t.contextDep=i,t.needsContext=r,t.needsFramebuffer=a;var u=t.shader.progVar;if(u.contextDep&&i||u.propDep)X(e,n,t,null);else{var l=u.append(e,n);if(n(e.shared.gl,".useProgram(",l,".program);"),t.shader.program)X(e,n,t,t.shader.program);else{var c=e.global.def("{}"),f=n.def(l,".id"),d=n.def(c,"[",f,"]");n(e.cond(d).then(d,".call(this,a0,a1);").else(d,"=",c,"[",f,"]=",e.link(function(n){return G(X,e,t,n,2)}),"(",l,");",d,".call(this,a0,a1);"))}}Object.keys(t.state).length>0&&n(e.shared.current,".dirty=true;")}(a,s),a.compile()}}}var Qr=34918,eo=34919,to=35007,no=function(e,t){if(!t.ext_disjoint_timer_query)return null;var n=[];function i(e){n.push(e)}var r=[];function o(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var a=[];function s(e){a.push(e)}var u=[];function l(e,t,n){var i=a.pop()||new o;i.startQueryIndex=e,i.endQueryIndex=t,i.sum=0,i.stats=n,u.push(i)}var c=[],f=[];return{beginQuery:function(e){var i=n.pop()||t.ext_disjoint_timer_query.createQueryEXT();t.ext_disjoint_timer_query.beginQueryEXT(to,i),r.push(i),l(r.length-1,r.length,e)},endQuery:function(){t.ext_disjoint_timer_query.endQueryEXT(to)},pushScopeStats:l,update:function(){var e,n,o=r.length;if(0!==o){f.length=Math.max(f.length,o+1),c.length=Math.max(c.length,o+1),c[0]=0,f[0]=0;var a=0;for(e=0,n=0;n<r.length;++n){var l=r[n];t.ext_disjoint_timer_query.getQueryObjectEXT(l,eo)?(a+=t.ext_disjoint_timer_query.getQueryObjectEXT(l,Qr),i(l)):r[e++]=l,c[n+1]=a,f[n+1]=e}for(r.length=e,e=0,n=0;n<u.length;++n){var d=u[n],h=d.startQueryIndex,p=d.endQueryIndex;d.sum+=c[p]-c[h];var m=f[h],b=f[p];b===m?(d.stats.gpuTime+=d.sum/1e6,s(d)):(d.startQueryIndex=m,d.endQueryIndex=b,u[e++]=d)}u.length=e}},getNumPendingQueries:function(){return r.length},clear:function(){n.push.apply(n,r);for(var e=0;e<n.length;e++)t.ext_disjoint_timer_query.deleteQueryEXT(n[e]);r.length=0,n.length=0},restore:function(){r.length=0,n.length=0}}},io=16384,ro=256,oo=1024,ao=34962,so="webglcontextlost",uo="webglcontextrestored",lo=1,co=2,fo=3;function ho(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}return function(n){var i=V(n);if(!i)return null;var r=i.gl,o=r.getContextAttributes(),a=r.isContextLost(),s=function(e,t){var n={};function i(t){P.type(t,"string","extension name must be string");var i,r=t.toLowerCase();try{i=n[r]=e.getExtension(r)}catch(e){}return!!i}for(var r=0;r<t.extensions.length;++r){var o=t.extensions[r];if(!i(o))return t.onDestroy(),t.onDone('"'+o+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return t.optionalExtensions.forEach(i),{extensions:n,restore:function(){Object.keys(n).forEach(function(e){if(n[e]&&!i(e))throw new Error("(regl): error restoring extension "+e)})}}}(r,i);if(!s)return null;var u,l,c=(u={"":0},l=[""],{id:function(e){var t=u[e];return t||(t=u[e]=l.length,l.push(e),t)},str:function(e){return l[e]}}),f={bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},d=s.extensions,h=no(r,d),p=B(),m=r.drawingBufferWidth,b=r.drawingBufferHeight,g={tick:0,time:0,viewportWidth:m,viewportHeight:b,framebufferWidth:m,framebufferHeight:b,drawingBufferWidth:m,drawingBufferHeight:b,pixelRatio:i.pixelRatio},v=te(r,d),y=function(e,t,n,i){for(var r=n.maxAttributes,o=new Array(r),a=0;a<r;++a)o[a]=new Un;return{Record:Un,scope:{},state:o}}(0,0,v),w=function(t,n,i,r){var o=0,a={};function s(e){this.id=o++,this.buffer=t.createBuffer(),this.type=e,this.usage=fe,this.byteLength=0,this.dimension=1,this.dtype=he,this.persistentData=null,i.profile&&(this.stats={size:0})}s.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},s.prototype.destroy=function(){f(this)};var u=[];function l(e,n,i){e.byteLength=n.byteLength,t.bufferData(e.type,n,i)}function c(t,n,i,r,o,a){var s,u;if(t.usage=i,Array.isArray(n)){if(t.dtype=r||pe,n.length>0)if(Array.isArray(n[0])){s=ce(n);for(var c=1,f=1;f<s.length;++f)c*=s[f];t.dimension=c,u=le(n,s,t.dtype),l(t,u,i),a?t.persistentData=u:ee.freeType(u)}else if("number"==typeof n[0]){t.dimension=o;var d=ee.allocType(t.dtype,n.length);ge(d,n),l(t,d,i),a?t.persistentData=d:ee.freeType(d)}else e(n[0])?(t.dimension=n[0].length,t.dtype=r||be(n[0])||pe,u=le(n,[n.length,n[0].length],t.dtype),l(t,u,i),a?t.persistentData=u:ee.freeType(u)):P.raise("invalid buffer data")}else if(e(n))t.dtype=r||be(n),t.dimension=o,l(t,n,i),a&&(t.persistentData=new Uint8Array(new Uint8Array(n.buffer)));else if(ne(n)){s=n.shape;var h=n.stride,p=n.offset,m=0,b=0,g=0,v=0;1===s.length?(m=s[0],b=1,g=h[0],v=0):2===s.length?(m=s[0],b=s[1],g=h[0],v=h[1]):P.raise("invalid shape"),t.dtype=r||be(n.data)||pe,t.dimension=b;var y=ee.allocType(t.dtype,m*b);ve(y,n.data,m,b,g,v,p),l(t,y,i),a?t.persistentData=y:ee.freeType(y)}else P.raise("invalid buffer data")}function f(e){n.bufferCount--;for(var i=0;i<r.state.length;++i){var o=r.state[i];o.buffer===e&&(t.disableVertexAttribArray(i),o.buffer=null)}var s=e.buffer;P(s,"buffer must not be deleted already"),t.deleteBuffer(s),e.buffer=null,delete a[e.id]}return i.profile&&(n.getTotalBufferSize=function(){var e=0;return Object.keys(a).forEach(function(t){e+=a[t].stats.size}),e}),{create:function(r,o,u,l){n.bufferCount++;var d=new s(o);function h(n){var r=fe,o=null,a=0,s=0,u=1;return Array.isArray(n)||e(n)||ne(n)?o=n:"number"==typeof n?a=0|n:n&&(P.type(n,"object","buffer arguments must be an object, a number or an array"),"data"in n&&(P(null===o||Array.isArray(o)||e(o)||ne(o),"invalid data for buffer"),o=n.data),"usage"in n&&(P.parameter(n.usage,ue,"invalid buffer usage"),r=ue[n.usage]),"type"in n&&(P.parameter(n.type,se,"invalid buffer type"),s=se[n.type]),"dimension"in n&&(P.type(n.dimension,"number","invalid dimension"),u=0|n.dimension),"length"in n&&(P.nni(a,"buffer length must be a nonnegative integer"),a=0|n.length)),d.bind(),o?c(d,o,r,s,u,l):(a&&t.bufferData(d.type,a,r),d.dtype=s||he,d.usage=r,d.dimension=u,d.byteLength=a),i.profile&&(d.stats.size=d.byteLength*me[d.dtype]),h}function p(e,n){P(n+e.byteLength<=d.byteLength,"invalid buffer subdata call, buffer is too small. Can't write data of size "+e.byteLength+" starting from offset "+n+" to a buffer of size "+d.byteLength),t.bufferSubData(d.type,n,e)}return a[d.id]=d,u||h(r),h._reglType="buffer",h._buffer=d,h.subdata=function(t,n){var i,r=0|(n||0);if(d.bind(),e(t))p(t,r);else if(Array.isArray(t)){if(t.length>0)if("number"==typeof t[0]){var o=ee.allocType(d.dtype,t.length);ge(o,t),p(o,r),ee.freeType(o)}else if(Array.isArray(t[0])||e(t[0])){i=ce(t);var a=le(t,i,d.dtype);p(a,r),ee.freeType(a)}else P.raise("invalid buffer data")}else if(ne(t)){i=t.shape;var s=t.stride,u=0,l=0,c=0,f=0;1===i.length?(u=i[0],l=1,c=s[0],f=0):2===i.length?(u=i[0],l=i[1],c=s[0],f=s[1]):P.raise("invalid shape");var m=Array.isArray(t.data)?d.dtype:be(t.data),b=ee.allocType(m,u*l);ve(b,t.data,u,l,c,f,t.offset),p(b,r),ee.freeType(b)}else P.raise("invalid data for buffer subdata");return h},i.profile&&(h.stats=d.stats),h.destroy=function(){f(d)},h},createStream:function(e,t){var n=u.pop();return n||(n=new s(e)),n.bind(),c(n,t,de,0,1,!1),n},destroyStream:function(e){u.push(e)},clear:function(){ie(a).forEach(f),u.forEach(f)},getBuffer:function(e){return e&&e._buffer instanceof s?e._buffer:null},restore:function(){ie(a).forEach(function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)})},_initBuffer:c}}(r,f,i,y),_=function(t,n,i,r){var o={},a=0,s={uint8:Ee,uint16:Te};function u(e){this.id=a++,o[this.id]=this,this.buffer=e,this.primType=xe,this.vertCount=0,this.type=0}n.oes_element_index_uint&&(s.uint32=Ae),u.prototype.bind=function(){this.buffer.bind()};var l=[];function c(r,o,a,s,u,l,c){if(r.buffer.bind(),o){var f=c;c||e(o)&&(!ne(o)||e(o.data))||(f=n.oes_element_index_uint?Ae:Te),i._initBuffer(r.buffer,o,a,f,3)}else t.bufferData(Ie,l,a),r.buffer.dtype=d||Ee,r.buffer.usage=a,r.buffer.dimension=3,r.buffer.byteLength=l;var d=c;if(!c){switch(r.buffer.dtype){case Ee:case ke:d=Ee;break;case Te:case Se:d=Te;break;case Ae:case Ce:d=Ae;break;default:P.raise("unsupported type for element array")}r.buffer.dtype=d}r.type=d,P(d!==Ae||!!n.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var h=u;h<0&&(h=r.buffer.byteLength,d===Te?h>>=1:d===Ae&&(h>>=2)),r.vertCount=h;var p=s;if(s<0){p=xe;var m=r.buffer.dimension;1===m&&(p=we),2===m&&(p=_e),3===m&&(p=xe)}r.primType=p}function f(e){r.elementsCount--,P(null!==e.buffer,"must not double destroy elements"),delete o[e.id],e.buffer.destroy(),e.buffer=null}return{create:function(t,n){var o=i.create(null,Ie,!0),a=new u(o._buffer);function l(t){if(t)if("number"==typeof t)o(t),a.primType=xe,a.vertCount=0|t,a.type=Ee;else{var n=null,i=Ne,r=-1,u=-1,f=0,d=0;Array.isArray(t)||e(t)||ne(t)?n=t:(P.type(t,"object","invalid arguments for elements"),"data"in t&&(n=t.data,P(Array.isArray(n)||e(n)||ne(n),"invalid data for element buffer")),"usage"in t&&(P.parameter(t.usage,ue,"invalid element buffer usage"),i=ue[t.usage]),"primitive"in t&&(P.parameter(t.primitive,ye,"invalid element buffer primitive"),r=ye[t.primitive]),"count"in t&&(P("number"==typeof t.count&&t.count>=0,"invalid vertex count for elements"),u=0|t.count),"type"in t&&(P.parameter(t.type,s,"invalid buffer type"),d=s[t.type]),"length"in t?f=0|t.length:(f=u,d===Te||d===Se?f*=2:d!==Ae&&d!==Ce||(f*=4))),c(a,n,i,r,u,f,d)}else o(),a.primType=xe,a.vertCount=0,a.type=Ee;return l}return r.elementsCount++,l(t),l._reglType="elements",l._elements=a,l.subdata=function(e,t){return o.subdata(e,t),l},l.destroy=function(){f(a)},l},createStream:function(e){var t=l.pop();return t||(t=new u(i.create(null,Ie,!0,!1)._buffer)),c(t,e,Oe,-1,-1,0,0),t},destroyStream:function(e){l.push(e)},getElements:function(e){return"function"==typeof e&&e._elements instanceof u?e._elements:null},clear:function(){ie(o).forEach(f)}}}(r,d,w,f),x=function(e,t,n,i){var r={},o={};function a(e,t,n,i){this.name=e,this.id=t,this.location=n,this.info=i}function s(e,t){for(var n=0;n<e.length;++n)if(e[n].id===t.id)return void(e[n].location=t.location);e.push(t)}function u(n,i,a){var s=n===Fn?r:o,u=s[i];if(!u){var l=t.str(i);u=e.createShader(n),e.shaderSource(u,l),e.compileShader(u),P.shaderError(e,u,l,n,a),s[i]=u}return u}var l={},c=[],f=0;function d(e,t){this.id=f++,this.fragId=e,this.vertId=t,this.program=null,this.uniforms=[],this.attributes=[],i.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function h(n,r){var o,l,c=u(Fn,n.fragId),f=u(Bn,n.vertId),d=n.program=e.createProgram();e.attachShader(d,c),e.attachShader(d,f),e.linkProgram(d),P.linkError(e,d,t.str(n.fragId),t.str(n.vertId),r);var h=e.getProgramParameter(d,zn);i.profile&&(n.stats.uniformsCount=h);var p=n.uniforms;for(o=0;o<h;++o)if(l=e.getActiveUniform(d,o))if(l.size>1)for(var m=0;m<l.size;++m){var b=l.name.replace("[0]","["+m+"]");s(p,new a(b,t.id(b),e.getUniformLocation(d,b),l))}else s(p,new a(l.name,t.id(l.name),e.getUniformLocation(d,l.name),l));var g=e.getProgramParameter(d,Hn);i.profile&&(n.stats.attributesCount=g);var v=n.attributes;for(o=0;o<g;++o)(l=e.getActiveAttrib(d,o))&&s(v,new a(l.name,t.id(l.name),e.getAttribLocation(d,l.name),l))}return i.profile&&(n.getMaxUniformsCount=function(){var e=0;return c.forEach(function(t){t.stats.uniformsCount>e&&(e=t.stats.uniformsCount)}),e},n.getMaxAttributesCount=function(){var e=0;return c.forEach(function(t){t.stats.attributesCount>e&&(e=t.stats.attributesCount)}),e}),{clear:function(){var t=e.deleteShader.bind(e);ie(r).forEach(t),r={},ie(o).forEach(t),o={},c.forEach(function(t){e.deleteProgram(t.program)}),c.length=0,l={},n.shaderCount=0},program:function(e,t,i){P.command(e>=0,"missing vertex shader",i),P.command(t>=0,"missing fragment shader",i);var r=l[t];r||(r=l[t]={});var o=r[e];return o||(o=new d(t,e),n.shaderCount++,h(o,i),r[e]=o,c.push(o)),o},restore:function(){r={},o={};for(var e=0;e<c.length;++e)h(c[e])},shader:u,frag:-1,vert:-1}}(r,c,f,i),k=hn(r,d,v,function(){T.procs.poll()},g,f,i),E=vn(r,d,v,f,i),S=function(e,n,i,r,o,a){var s={cur:null,next:null,dirty:!1,setFBO:null},u=["rgba"],l=["rgba4","rgb565","rgb5 a1"];n.ext_srgb&&l.push("srgba"),n.ext_color_buffer_half_float&&l.push("rgba16f","rgb16f"),n.webgl_color_buffer_float&&l.push("rgba32f");var c=["uint8"];function f(e,t,n){this.target=e,this.texture=t,this.renderbuffer=n;var i=0,r=0;t?(i=t.width,r=t.height):n&&(i=n.width,r=n.height),this.width=i,this.height=r}function d(e){e&&(e.texture&&e.texture._texture.decRef(),e.renderbuffer&&e.renderbuffer._renderbuffer.decRef())}function h(e,t,n){if(e)if(e.texture){var i=e.texture._texture,r=Math.max(1,i.width),o=Math.max(1,i.height);P(r===t&&o===n,"inconsistent width/height for supplied texture"),i.refCount+=1}else{var a=e.renderbuffer._renderbuffer;P(a.width===t&&a.height===n,"inconsistent width/height for renderbuffer"),a.refCount+=1}}function p(t,n){n&&(n.texture?e.framebufferTexture2D(yn,t,n.target,n.texture._texture.texture,0):e.framebufferRenderbuffer(yn,t,wn,n.renderbuffer._renderbuffer.renderbuffer))}function m(e){var t=_n,n=null,i=null,r=e;"object"==typeof e&&(r=e.data,"target"in e&&(t=0|e.target)),P.type(r,"function","invalid attachment data");var o=r._reglType;return"texture2d"===o?(n=r,P(t===_n)):"textureCube"===o?(n=r,P(t>=xn&&t<xn+6,"invalid cube map target")):"renderbuffer"===o?(i=r,t=wn):P.raise("invalid regl object for attachment"),new f(t,n,i)}function b(e,t,n,i,a){if(n){var s=r.create2D({width:e,height:t,format:i,type:a});return s._texture.refCount=0,new f(_n,s,null)}var u=o.create({width:e,height:t,format:i});return u._renderbuffer.refCount=0,new f(wn,null,u)}function g(e){return e&&(e.texture||e.renderbuffer)}function v(e,t,n){e&&(e.texture?e.texture.resize(t,n):e.renderbuffer&&e.renderbuffer.resize(t,n),e.width=t,e.height=n)}n.oes_texture_half_float&&c.push("half float","float16"),n.oes_texture_float&&c.push("float","float32");var y=0,w={};function _(){this.id=y++,w[this.id]=this,this.framebuffer=e.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function x(e){e.colorAttachments.forEach(d),d(e.depthAttachment),d(e.stencilAttachment),d(e.depthStencilAttachment)}function k(t){var n=t.framebuffer;P(n,"must not double destroy framebuffer"),e.deleteFramebuffer(n),t.framebuffer=null,a.framebufferCount--,delete w[t.id]}function E(t){var n;e.bindFramebuffer(yn,t.framebuffer);var r=t.colorAttachments;for(n=0;n<r.length;++n)p(kn+n,r[n]);for(n=r.length;n<i.maxColorAttachments;++n)e.framebufferTexture2D(yn,kn+n,_n,null,0);e.framebufferTexture2D(yn,Tn,_n,null,0),e.framebufferTexture2D(yn,En,_n,null,0),e.framebufferTexture2D(yn,Sn,_n,null,0),p(En,t.depthAttachment),p(Sn,t.stencilAttachment),p(Tn,t.depthStencilAttachment);var o=e.checkFramebufferStatus(yn);e.isContextLost()||o===Cn||P.raise("framebuffer configuration not supported, status = "+Mn[o]),e.bindFramebuffer(yn,s.next?s.next.framebuffer:null),s.cur=s.next,e.getError()}function S(e,r){var o=new _;function f(e,t){var r;P(s.next!==o,"can not update framebuffer which is currently in use");var a=0,d=0,p=!0,v=!0,y=null,w=!0,_="rgba",k="uint8",S=1,T=null,C=null,A=null,I=!1;if("number"==typeof e)a=0|e,d=0|t||a;else if(e){P.type(e,"object","invalid arguments for framebuffer");var O=e;if("shape"in O){var N=O.shape;P(Array.isArray(N)&&N.length>=2,"invalid shape for framebuffer"),a=N[0],d=N[1]}else"radius"in O&&(a=d=O.radius),"width"in O&&(a=O.width),"height"in O&&(d=O.height);("color"in O||"colors"in O)&&(y=O.color||O.colors,Array.isArray(y)&&P(1===y.length||n.webgl_draw_buffers,"multiple render targets not supported")),y||("colorCount"in O&&(S=0|O.colorCount,P(S>0,"invalid color buffer count")),"colorTexture"in O&&(w=!!O.colorTexture,_="rgba4"),"colorType"in O&&(k=O.colorType,w?(P(n.oes_texture_float||!("float"===k||"float32"===k),"you must enable OES_texture_float in order to use floating point framebuffer objects"),P(n.oes_texture_half_float||!("half float"===k||"float16"===k),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):"half float"===k||"float16"===k?(P(n.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),_="rgba16f"):"float"!==k&&"float32"!==k||(P(n.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),_="rgba32f"),P.oneOf(k,c,"invalid color type")),"colorFormat"in O&&(_=O.colorFormat,u.indexOf(_)>=0?w=!0:l.indexOf(_)>=0?w=!1:w?P.oneOf(O.colorFormat,u,"invalid color format for texture"):P.oneOf(O.colorFormat,l,"invalid color format for renderbuffer"))),("depthTexture"in O||"depthStencilTexture"in O)&&(I=!(!O.depthTexture&&!O.depthStencilTexture),P(!I||n.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in O&&("boolean"==typeof O.depth?p=O.depth:(T=O.depth,v=!1)),"stencil"in O&&("boolean"==typeof O.stencil?v=O.stencil:(C=O.stencil,p=!1)),"depthStencil"in O&&("boolean"==typeof O.depthStencil?p=v=O.depthStencil:(A=O.depthStencil,p=!1,v=!1))}else a=d=1;var R=null,D=null,L=null,M=null;if(Array.isArray(y))R=y.map(m);else if(y)R=[m(y)];else for(R=new Array(S),r=0;r<S;++r)R[r]=b(a,d,w,_,k);P(n.webgl_draw_buffers||R.length<=1,"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers."),P(R.length<=i.maxColorAttachments,"too many color attachments, not supported"),a=a||R[0].width,d=d||R[0].height,T?D=m(T):p&&!v&&(D=b(a,d,I,"depth","uint32")),C?L=m(C):v&&!p&&(L=b(a,d,!1,"stencil","uint8")),A?M=m(A):!T&&!C&&v&&p&&(M=b(a,d,I,"depth stencil","depth stencil")),P(!!T+!!C+!!A<=1,"invalid framebuffer configuration, can specify exactly one depth/stencil attachment");var j=null;for(r=0;r<R.length;++r)if(h(R[r],a,d),P(!R[r]||R[r].texture&&In.indexOf(R[r].texture._texture.format)>=0||R[r].renderbuffer&&Ln.indexOf(R[r].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+r+" is invalid"),R[r]&&R[r].texture){var U=On[R[r].texture._texture.format]*Nn[R[r].texture._texture.type];null===j?j=U:P(j===U,"all color attachments much have the same number of bits per pixel.")}return h(D,a,d),P(!D||D.texture&&D.texture._texture.format===An||D.renderbuffer&&D.renderbuffer._renderbuffer.format===Pn,"invalid depth attachment for framebuffer object"),h(L,a,d),P(!L||L.renderbuffer&&L.renderbuffer._renderbuffer.format===Rn,"invalid stencil attachment for framebuffer object"),h(M,a,d),P(!M||M.texture&&M.texture._texture.format===Dn||M.renderbuffer&&M.renderbuffer._renderbuffer.format===Dn,"invalid depth-stencil attachment for framebuffer object"),x(o),o.width=a,o.height=d,o.colorAttachments=R,o.depthAttachment=D,o.stencilAttachment=L,o.depthStencilAttachment=M,f.color=R.map(g),f.depth=g(D),f.stencil=g(L),f.depthStencil=g(M),f.width=o.width,f.height=o.height,E(o),f}return a.framebufferCount++,f(e,r),t(f,{resize:function(e,t){P(s.next!==o,"can not resize a framebuffer which is currently in use");var n=Math.max(0|e,1),i=Math.max(0|t||n,1);if(n===o.width&&i===o.height)return f;for(var r=o.colorAttachments,a=0;a<r.length;++a)v(r[a],n,i);return v(o.depthAttachment,n,i),v(o.stencilAttachment,n,i),v(o.depthStencilAttachment,n,i),o.width=f.width=n,o.height=f.height=i,E(o),f},_reglType:"framebuffer",_framebuffer:o,destroy:function(){k(o),x(o)},use:function(e){s.setFBO({framebuffer:f},e)}})}return t(s,{getFramebuffer:function(e){if("function"==typeof e&&"framebuffer"===e._reglType){var t=e._framebuffer;if(t instanceof _)return t}return null},create:S,createCube:function(e){var o=Array(6);function a(e){var i;P(o.indexOf(s.next)<0,"can not update framebuffer which is currently in use");var l,f={color:null},d=0,h=null,p="rgba",m="uint8",b=1;if("number"==typeof e)d=0|e;else if(e){P.type(e,"object","invalid arguments for framebuffer");var g=e;if("shape"in g){var v=g.shape;P(Array.isArray(v)&&v.length>=2,"invalid shape for framebuffer"),P(v[0]===v[1],"cube framebuffer must be square"),d=v[0]}else"radius"in g&&(d=0|g.radius),"width"in g?(d=0|g.width,"height"in g&&P(g.height===d,"must be square")):"height"in g&&(d=0|g.height);("color"in g||"colors"in g)&&(h=g.color||g.colors,Array.isArray(h)&&P(1===h.length||n.webgl_draw_buffers,"multiple render targets not supported")),h||("colorCount"in g&&(b=0|g.colorCount,P(b>0,"invalid color buffer count")),"colorType"in g&&(P.oneOf(g.colorType,c,"invalid color type"),m=g.colorType),"colorFormat"in g&&(p=g.colorFormat,P.oneOf(g.colorFormat,u,"invalid color format for texture"))),"depth"in g&&(f.depth=g.depth),"stencil"in g&&(f.stencil=g.stencil),"depthStencil"in g&&(f.depthStencil=g.depthStencil)}else d=1;if(h)if(Array.isArray(h))for(l=[],i=0;i<h.length;++i)l[i]=h[i];else l=[h];else{l=Array(b);var y={radius:d,format:p,type:m};for(i=0;i<b;++i)l[i]=r.createCube(y)}for(f.color=Array(l.length),i=0;i<l.length;++i){var w=l[i];P("function"==typeof w&&"textureCube"===w._reglType,"invalid cube map"),d=d||w.width,P(w.width===d&&w.height===d,"invalid cube map shape"),f.color[i]={target:xn,data:l[i]}}for(i=0;i<6;++i){for(var _=0;_<l.length;++_)f.color[_].target=xn+i;i>0&&(f.depth=o[0].depth,f.stencil=o[0].stencil,f.depthStencil=o[0].depthStencil),o[i]?o[i](f):o[i]=S(f)}return t(a,{width:d,height:d,color:l})}return a(e),t(a,{faces:o,resize:function(e){var t,n=0|e;if(P(n>0&&n<=i.maxCubeMapSize,"invalid radius for cube fbo"),n===a.width)return a;var r=a.color;for(t=0;t<r.length;++t)r[t].resize(n);for(t=0;t<6;++t)o[t].resize(n);return a.width=a.height=n,a},_reglType:"framebufferCube",destroy:function(){o.forEach(function(e){e.destroy()})}})},clear:function(){ie(w).forEach(k)},restore:function(){s.cur=null,s.next=null,s.dirty=!0,ie(w).forEach(function(t){t.framebuffer=e.createFramebuffer(),E(t)})}})}(r,d,v,k,E,f),T=Zr(r,c,d,v,w,_,0,S,{},y,x,{elements:null,primitive:4,count:-1,offset:0,instances:-1},g,h,i),C=qn(r,S,T.procs.poll,g,o,d,v),A=T.next,I=r.canvas,O=[],N=[],R=[],D=[i.onDestroy],L=null;function M(){if(0===O.length)return h&&h.update(),void(L=null);L=F.next(M),J();for(var e=O.length-1;e>=0;--e){var t=O[e];t&&t(g,null,0)}r.flush(),h&&h.update()}function j(){!L&&O.length>0&&(L=F.next(M))}function z(){L&&(F.cancel(M),L=null)}function H(e){e.preventDefault(),a=!0,z(),N.forEach(function(e){e()})}function W(e){r.getError(),a=!1,s.restore(),x.restore(),w.restore(),k.restore(),E.restore(),S.restore(),h&&h.restore(),T.procs.refresh(),j(),R.forEach(function(e){e()})}function G(e){function n(e){var t={},n={};return Object.keys(e).forEach(function(i){var r=e[i];U.isDynamic(r)?n[i]=U.unbox(r,i):t[i]=r}),{dynamic:n,static:t}}P(!!e,"invalid args to regl({...})"),P.type(e,"object","invalid args to regl({...})");var i=n(e.context||{}),r=n(e.uniforms||{}),o=n(e.attributes||{}),s=n(function(e){var n=t({},e);function i(e){if(e in n){var t=n[e];delete n[e],Object.keys(t).forEach(function(i){n[e+"."+i]=t[i]})}}return delete n.uniforms,delete n.attributes,delete n.context,"stencil"in n&&n.stencil.op&&(n.stencil.opBack=n.stencil.opFront=n.stencil.op,delete n.stencil.op),i("blend"),i("depth"),i("cull"),i("stencil"),i("polygonOffset"),i("scissor"),i("sample"),n}(e)),u={gpuTime:0,cpuTime:0,count:0},l=T.compile(s,o,r,i,u),c=l.draw,f=l.batch,d=l.scope,h=[];return t(function(e,t){var n;if(a&&P.raise("context lost"),"function"==typeof e)return d.call(this,null,e,0);if("function"==typeof t){if("number"==typeof e){for(n=0;n<e;++n)d.call(this,null,t,n);return}if(Array.isArray(e)){for(n=0;n<e.length;++n)d.call(this,e[n],t,n);return}return d.call(this,e,t,0)}if("number"==typeof e){if(e>0)return f.call(this,function(e){for(;h.length<e;)h.push(null);return h}(0|e),0|e)}else{if(!Array.isArray(e))return c.call(this,e);if(e.length)return f.call(this,e,e.length)}},{stats:u})}I&&(I.addEventListener(so,H,!1),I.addEventListener(uo,W,!1));var K=S.setFBO=G({framebuffer:U.define.call(null,lo,"framebuffer")});function q(e,t){var n=0;T.procs.poll();var i=t.color;i&&(r.clearColor(+i[0]||0,+i[1]||0,+i[2]||0,+i[3]||0),n|=io),"depth"in t&&(r.clearDepth(+t.depth),n|=ro),"stencil"in t&&(r.clearStencil(0|t.stencil),n|=oo),P(!!n,"called regl.clear with no buffer specified"),r.clear(n)}function X(e){return P.type(e,"function","regl.frame() callback must be a function"),O.push(e),j(),{cancel:function(){var t=ho(O,e);P(t>=0,"cannot cancel a frame twice"),O[t]=function e(){var t=ho(O,e);O[t]=O[O.length-1],O.length-=1,O.length<=0&&z()}}}}function Y(){var e=A.viewport,t=A.scissor_box;e[0]=e[1]=t[0]=t[1]=0,g.viewportWidth=g.framebufferWidth=g.drawingBufferWidth=e[2]=t[2]=r.drawingBufferWidth,g.viewportHeight=g.framebufferHeight=g.drawingBufferHeight=e[3]=t[3]=r.drawingBufferHeight}function J(){g.tick+=1,g.time=Z(),Y(),T.procs.poll()}function $(){Y(),T.procs.refresh(),h&&h.update()}function Z(){return(B()-p)/1e3}$();var Q=t(G,{clear:function(e){if(P("object"==typeof e&&e,"regl.clear() takes an object as input"),"framebuffer"in e)if(e.framebuffer&&"framebufferCube"===e.framebuffer_reglType)for(var n=0;n<6;++n)K(t({framebuffer:e.framebuffer.faces[n]},e),q);else K(e,q);else q(null,e)},prop:U.define.bind(null,lo),context:U.define.bind(null,co),this:U.define.bind(null,fo),draw:G({}),buffer:function(e){return w.create(e,ao,!1,!1)},elements:function(e){return _.create(e,!1)},texture:k.create2D,cube:k.createCube,renderbuffer:E.create,framebuffer:S.create,framebufferCube:S.createCube,attributes:o,frame:X,on:function(e,t){var n;switch(P.type(t,"function","listener callback must be a function"),e){case"frame":return X(t);case"lost":n=N;break;case"restore":n=R;break;case"destroy":n=D;break;default:P.raise("invalid event, must be one of frame,lost,restore,destroy")}return n.push(t),{cancel:function(){for(var e=0;e<n.length;++e)if(n[e]===t)return n[e]=n[n.length-1],void n.pop()}}},limits:v,hasExtension:function(e){return v.extensions.indexOf(e.toLowerCase())>=0},read:C,destroy:function(){O.length=0,z(),I&&(I.removeEventListener(so,H),I.removeEventListener(uo,W)),x.clear(),S.clear(),E.clear(),k.clear(),_.clear(),w.clear(),h&&h.clear(),D.forEach(function(e){e()})},_gl:r,_refresh:$,poll:function(){J(),h&&h.update()},now:Z,stats:f});return i.onDone(null,Q),Q}}()},,,function(e,t,n){"use strict";
/** @license React v16.8.6
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var i=n(16),r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=0;i<t;i++)n+="&args[]="+encodeURIComponent(arguments[i+1]);!function(e,t,n,i,r,o,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,r,o,a,s],l=0;(e=Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function _(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||y}function x(){}function k(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||y}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&v("85"),this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=_.prototype;var E=k.prototype=new x;E.constructor=k,i(E,_.prototype),E.isPureReactComponent=!0;var S={current:null},T={current:null},C=Object.prototype.hasOwnProperty,A={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,n){var i=void 0,r={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,i)&&!A.hasOwnProperty(i)&&(r[i]=t[i]);var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===r[i]&&(r[i]=u[i]);return{$$typeof:o,type:e,key:a,ref:s,props:r,_owner:T.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var N=/\/+/g,P=[];function R(e,t,n,i){if(P.length){var r=P.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=i,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:i,count:0}}function D(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function L(e,t,n){return null==e?0:function e(t,n,i,r){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return i(r,t,""===n?"."+M(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var c=n+M(s=t[l],l);u+=e(s,c,i,r)}else if(c=null===t||"object"!=typeof t?null:"function"==typeof(c=g&&t[g]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),l=0;!(s=t.next()).done;)u+=e(s=s.value,c=n+M(s,l++),i,r);else"object"===s&&v("31","[object Object]"==(i=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":i,"");return u}(e,"",t,n)}function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function j(e,t){e.func.call(e.context,t,e.count++)}function U(e,t,n){var i=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,i,n,function(e){return e}):null!=e&&(O(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n)),i.push(e))}function F(e,t,n,i,r){var o="";null!=n&&(o=(""+n).replace(N,"$&/")+"/"),L(e,U,t=R(t,o,i,r)),D(t)}function B(){var e=S.current;return null===e&&v("321"),e}var z={Children:{map:function(e,t,n){if(null==e)return e;var i=[];return F(e,i,null,t,n),i},forEach:function(e,t,n){if(null==e)return e;L(e,j,t=R(null,null,t,n)),D(t)},count:function(e){return L(e,function(){return null},null)},toArray:function(e){var t=[];return F(e,t,null,function(e){return e}),t},only:function(e){return O(e)||v("143"),e}},createRef:function(){return{current:null}},Component:_,PureComponent:k,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:h,render:e}},lazy:function(e){return{$$typeof:b,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return B().useCallback(e,t)},useContext:function(e,t){return B().useContext(e,t)},useEffect:function(e,t){return B().useEffect(e,t)},useImperativeHandle:function(e,t,n){return B().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return B().useLayoutEffect(e,t)},useMemo:function(e,t){return B().useMemo(e,t)},useReducer:function(e,t,n){return B().useReducer(e,t,n)},useRef:function(e){return B().useRef(e)},useState:function(e){return B().useState(e)},Fragment:s,StrictMode:u,Suspense:p,createElement:I,cloneElement:function(e,t,n){null==e&&v("267",e);var r=void 0,a=i({},e.props),s=e.key,u=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,l=T.current),void 0!==t.key&&(s=""+t.key);var c=void 0;for(r in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)C.call(t,r)&&!A.hasOwnProperty(r)&&(a[r]=void 0===t[r]&&void 0!==c?c[r]:t[r])}if(1===(r=arguments.length-2))a.children=n;else if(1<r){c=Array(r);for(var f=0;f<r;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:o,type:e.type,key:s,ref:u,props:a,_owner:l}},createFactory:function(e){var t=I.bind(null,e);return t.type=e,t},isValidElement:O,version:"16.8.6",unstable_ConcurrentMode:d,unstable_Profiler:l,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:S,ReactCurrentOwner:T,assign:i}},H={default:z},V=H&&z||H;e.exports=V.default||V},function(e,t,n){"use strict";var i=n(33);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";t.__esModule=!0;var i=o(n(2)),r=o(n(35));function o(e){return e&&e.__esModule?e:{default:e}}t.default=i.default.createContext||r.default,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var i=n(2),r=(a(i),a(n(9))),o=a(n(36));a(n(37));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=1073741823;t.default=function(e,t){var n,a,f="__create-react-context-"+(0,o.default)()+"__",d=function(e){function n(){var t,i,r,o;s(this,n);for(var a=arguments.length,l=Array(a),c=0;c<a;c++)l[c]=arguments[c];return t=i=u(this,e.call.apply(e,[this].concat(l))),i.emitter=(r=i.props.value,o=[],{on:function(e){o.push(e)},off:function(e){o=o.filter(function(t){return t!==e})},get:function(){return r},set:function(e,t){r=e,o.forEach(function(e){return e(r,t)})}}),u(i,t)}return l(n,e),n.prototype.getChildContext=function(){var e;return(e={})[f]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,i=e.value,r=void 0;((o=n)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?r=0:(r="function"==typeof t?t(n,i):c,0!=(r|=0)&&this.emitter.set(e.value,r))}var o,a},n.prototype.render=function(){return this.props.children},n}(i.Component);d.childContextTypes=((n={})[f]=r.default.object.isRequired,n);var h=function(t){function n(){var e,i;s(this,n);for(var r=arguments.length,o=Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=i=u(this,t.call.apply(t,[this].concat(o))),i.state={value:i.getValue()},i.onUpdate=function(e,t){0!=((0|i.observedBits)&t)&&i.setState({value:i.getValue()})},u(i,e)}return l(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?c:t},n.prototype.componentDidMount=function(){this.context[f]&&this.context[f].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?c:e},n.prototype.componentWillUnmount=function(){this.context[f]&&this.context[f].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[f]?this.context[f].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.Component);return h.contextTypes=((a={})[f]=r.default.object,a),{Provider:d,Consumer:h}},e.exports=t.default},function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(5))},function(e,t,n){"use strict";var i=n(38);e.exports=i},function(e,t,n){"use strict";function i(e){return function(){return e}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){var i=n(40);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t))},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var r=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,i=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=r.exec(e));){var f=n[0],d=n[1],h=n.index;if(s+=e.slice(a,h),a=h+f.length,d)s+=d[1];else{var p=e[a],m=n[2],b=n[3],g=n[4],v=n[5],y=n[6],w=n[7];s&&(i.push(s),s="");var _=null!=m&&null!=p&&p!==m,x="+"===y||"*"===y,k="?"===y||"*"===y,E=n[2]||c,S=g||v;i.push({name:b||o++,prefix:m||"",delimiter:E,optional:k,repeat:x,partial:_,asterisk:!!w,pattern:S?l(S):w?".*":"[^"+u(E)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&i.push(s),i}function a(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,r){for(var o="",s=n||{},u=(r||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!=typeof c){var f,d=s[c.name];if(null==d){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(i(d)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=u(d[h]),!t[l].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===h?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?encodeURI(d).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):u(d),!t[l].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');o+=c.prefix+f}}else o+=c}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function f(e){return e.sensitive?"":"i"}function d(e,t,n){i(t)||(n=t||n,t=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"==typeof l)a+=u(l);else{var d=u(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+d+h+")*"),a+=h=l.optional?l.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}var p=u(n.delimiter||"/"),m=a.slice(-p.length)===p;return r||(a=(m?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":r&&m?"":"(?="+p+"|$)",c(new RegExp("^"+a,f(n)),t)}function h(e,t,n){return i(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):i(e)?function(e,t,n){for(var i=[],r=0;r<e.length;r++)i.push(h(e[r],t,n).source);return c(new RegExp("(?:"+i.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(o(e,n),t,n)}(e,t,n)}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";
/** @license React v16.8.6
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&Symbol.for,r=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,c=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.async_mode"):60111,d=i?Symbol.for("react.concurrent_mode"):60111,h=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,m=i?Symbol.for("react.memo"):60115,b=i?Symbol.for("react.lazy"):60116;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case f:case d:case a:case u:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case l:return e;default:return t}}case b:case m:case o:return t}}}function v(e){return g(e)===d}t.typeOf=g,t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=a,t.Lazy=b,t.Memo=m,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===u||e===s||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h)},t.isAsyncMode=function(e){return v(e)||g(e)===f},t.isConcurrentMode=v,t.isContextConsumer=function(e){return g(e)===c},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return g(e)===h},t.isFragment=function(e){return g(e)===a},t.isLazy=function(e){return g(e)===b},t.isMemo=function(e){return g(e)===m},t.isPortal=function(e){return g(e)===o},t.isProfiler=function(e){return g(e)===u},t.isStrictMode=function(e){return g(e)===s},t.isSuspense=function(e){return g(e)===p}},function(e,t,n){"use strict";var i=n(19),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return i.isMemo(e)?a:s[e.$$typeof]||r}s[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(p){var r=h(n);r&&r!==p&&e(t,r,i)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),m=u(n),b=0;b<a.length;++b){var g=a[b];if(!(o[g]||i&&i[g]||m&&m[g]||s&&s[g])){var v=d(n,g);try{l(t,g,v)}catch(e){}}}return t}return t}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(44)},function(e,t,n){"use strict";
/** @license React v16.8.6
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var i=n(2),r=n(16),o=n(45);function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=0;i<t;i++)n+="&args[]="+encodeURIComponent(arguments[i+1]);!function(e,t,n,i,r,o,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,r,o,a,s],l=0;(e=Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}i||a("227");var s=!1,u=null,l=!1,c=null,f={onError:function(e){s=!0,u=e}};function d(e,t,n,i,r,o,a,l,c){s=!1,u=null,function(e,t,n,i,r,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}.apply(f,arguments)}var h=null,p={};function m(){if(h)for(var e in p){var t=p[e],n=h.indexOf(e);if(-1<n||a("96",e),!g[n])for(var i in t.extractEvents||a("97",e),g[n]=t,n=t.eventTypes){var r=void 0,o=n[i],s=t,u=i;v.hasOwnProperty(u)&&a("99",u),v[u]=o;var l=o.phasedRegistrationNames;if(l){for(r in l)l.hasOwnProperty(r)&&b(l[r],s,u);r=!0}else o.registrationName?(b(o.registrationName,s,u),r=!0):r=!1;r||a("98",i,e)}}}function b(e,t,n){y[e]&&a("100",e),y[e]=t,w[e]=t.eventTypes[n].dependencies}var g=[],v={},y={},w={},_=null,x=null,k=null;function E(e,t,n){var i=e.type||"unknown-event";e.currentTarget=k(n),function(e,t,n,i,r,o,f,h,p){if(d.apply(this,arguments),s){if(s){var m=u;s=!1,u=null}else a("198"),m=void 0;l||(l=!0,c=m)}}(i,t,void 0,e),e.currentTarget=null}function S(e,t){return null==t&&a("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function T(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var C=null;function A(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var i=0;i<t.length&&!e.isPropagationStopped();i++)E(e,t[i],n[i]);else t&&E(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var I={injectEventPluginOrder:function(e){h&&a("101"),h=Array.prototype.slice.call(e),m()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var i=e[t];p.hasOwnProperty(t)&&p[t]===i||(p[t]&&a("102",t),p[t]=i,n=!0)}n&&m()}};function O(e,t){var n=e.stateNode;if(!n)return null;var i=_(n);if(!i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&a("231",t,typeof n),n)}function N(e){if(null!==e&&(C=S(C,e)),e=C,C=null,e&&(T(e,A),C&&a("95"),l))throw e=c,l=!1,c=null,e}var P=Math.random().toString(36).slice(2),R="__reactInternalInstance$"+P,D="__reactEventHandlers$"+P;function L(e){if(e[R])return e[R];for(;!e[R];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[R]).tag||6===e.tag?e:null}function M(e){return!(e=e[R])||5!==e.tag&&6!==e.tag?null:e}function j(e){if(5===e.tag||6===e.tag)return e.stateNode;a("33")}function U(e){return e[D]||null}function F(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function B(e,t,n){(t=O(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function z(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=F(t);for(t=n.length;0<t--;)B(n[t],"captured",e);for(t=0;t<n.length;t++)B(n[t],"bubbled",e)}}function H(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=O(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function V(e){e&&e.dispatchConfig.registrationName&&H(e._targetInst,null,e)}function W(e){T(e,z)}var G=!("undefined"==typeof window||!window.document||!window.document.createElement);function K(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var q={animationend:K("Animation","AnimationEnd"),animationiteration:K("Animation","AnimationIteration"),animationstart:K("Animation","AnimationStart"),transitionend:K("Transition","TransitionEnd")},X={},Y={};function J(e){if(X[e])return X[e];if(!q[e])return e;var t,n=q[e];for(t in n)if(n.hasOwnProperty(t)&&t in Y)return X[e]=n[t];return e}G&&(Y=document.createElement("div").style,"AnimationEvent"in window||(delete q.animationend.animation,delete q.animationiteration.animation,delete q.animationstart.animation),"TransitionEvent"in window||delete q.transitionend.transition);var $=J("animationend"),Z=J("animationiteration"),Q=J("animationstart"),ee=J("transitionend"),te="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ne=null,ie=null,re=null;function oe(){if(re)return re;var e,t,n=ie,i=n.length,r="value"in ne?ne.value:ne.textContent,o=r.length;for(e=0;e<i&&n[e]===r[e];e++);var a=i-e;for(t=1;t<=a&&n[i-t]===r[o-t];t++);return re=r.slice(e,1<t?1-t:void 0)}function ae(){return!0}function se(){return!1}function ue(e,t,n,i){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=i:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ae:se,this.isPropagationStopped=se,this}function le(e,t,n,i){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,i),r}return new this(e,t,n,i)}function ce(e){e instanceof this||a("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=le,e.release=ce}r(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return i.apply(this,arguments)}var i=this;t.prototype=i.prototype;var o=new t;return r(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=r({},i.Interface,e),n.extend=i.extend,fe(n),n},fe(ue);var de=ue.extend({data:null}),he=ue.extend({data:null}),pe=[9,13,27,32],me=G&&"CompositionEvent"in window,be=null;G&&"documentMode"in document&&(be=document.documentMode);var ge=G&&"TextEvent"in window&&!be,ve=G&&(!me||be&&8<be&&11>=be),ye=String.fromCharCode(32),we={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},_e=!1;function xe(e,t){switch(e){case"keyup":return-1!==pe.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ke(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ee=!1;var Se={eventTypes:we,extractEvents:function(e,t,n,i){var r=void 0,o=void 0;if(me)e:{switch(e){case"compositionstart":r=we.compositionStart;break e;case"compositionend":r=we.compositionEnd;break e;case"compositionupdate":r=we.compositionUpdate;break e}r=void 0}else Ee?xe(e,n)&&(r=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(r=we.compositionStart);return r?(ve&&"ko"!==n.locale&&(Ee||r!==we.compositionStart?r===we.compositionEnd&&Ee&&(o=oe()):(ie="value"in(ne=i)?ne.value:ne.textContent,Ee=!0)),r=de.getPooled(r,t,n,i),o?r.data=o:null!==(o=ke(n))&&(r.data=o),W(r),o=r):o=null,(e=ge?function(e,t){switch(e){case"compositionend":return ke(t);case"keypress":return 32!==t.which?null:(_e=!0,ye);case"textInput":return(e=t.data)===ye&&_e?null:e;default:return null}}(e,n):function(e,t){if(Ee)return"compositionend"===e||!me&&xe(e,t)?(e=oe(),re=ie=ne=null,Ee=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ve&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=he.getPooled(we.beforeInput,t,n,i)).data=e,W(t)):t=null,null===o?t:null===t?o:[o,t]}},Te=null,Ce=null,Ae=null;function Ie(e){if(e=x(e)){"function"!=typeof Te&&a("280");var t=_(e.stateNode);Te(e.stateNode,e.type,t)}}function Oe(e){Ce?Ae?Ae.push(e):Ae=[e]:Ce=e}function Ne(){if(Ce){var e=Ce,t=Ae;if(Ae=Ce=null,Ie(e),t)for(e=0;e<t.length;e++)Ie(t[e])}}function Pe(e,t){return e(t)}function Re(e,t,n){return e(t,n)}function De(){}var Le=!1;function Me(e,t){if(Le)return e(t);Le=!0;try{return Pe(e,t)}finally{Le=!1,(null!==Ce||null!==Ae)&&(De(),Ne())}}var je={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ue(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!je[e.type]:"textarea"===t}function Fe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Be(e){if(!G)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function ze(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function He(e){e._valueTracker||(e._valueTracker=function(e){var t=ze(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){i=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=ze(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}var We=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;We.hasOwnProperty("ReactCurrentDispatcher")||(We.ReactCurrentDispatcher={current:null});var Ge=/^(.*)[\\\/]/,Ke="function"==typeof Symbol&&Symbol.for,qe=Ke?Symbol.for("react.element"):60103,Xe=Ke?Symbol.for("react.portal"):60106,Ye=Ke?Symbol.for("react.fragment"):60107,Je=Ke?Symbol.for("react.strict_mode"):60108,$e=Ke?Symbol.for("react.profiler"):60114,Ze=Ke?Symbol.for("react.provider"):60109,Qe=Ke?Symbol.for("react.context"):60110,et=Ke?Symbol.for("react.concurrent_mode"):60111,tt=Ke?Symbol.for("react.forward_ref"):60112,nt=Ke?Symbol.for("react.suspense"):60113,it=Ke?Symbol.for("react.memo"):60115,rt=Ke?Symbol.for("react.lazy"):60116,ot="function"==typeof Symbol&&Symbol.iterator;function at(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=ot&&e[ot]||e["@@iterator"])?e:null}function st(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case et:return"ConcurrentMode";case Ye:return"Fragment";case Xe:return"Portal";case $e:return"Profiler";case Je:return"StrictMode";case nt:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case Qe:return"Context.Consumer";case Ze:return"Context.Provider";case tt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case it:return st(e.type);case rt:if(e=1===e._status?e._result:null)return st(e)}return null}function ut(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var i=e._debugOwner,r=e._debugSource,o=st(e.type);n=null,i&&(n=st(i.type)),i=o,o="",r?o=" (at "+r.fileName.replace(Ge,"")+":"+r.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(i||"Unknown")+o}t+=n,e=e.return}while(e);return t}var lt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ct=Object.prototype.hasOwnProperty,ft={},dt={};function ht(e,t,n,i,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t}var pt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pt[e]=new ht(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pt[t]=new ht(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){pt[e]=new ht(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pt[e]=new ht(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pt[e]=new ht(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){pt[e]=new ht(e,3,!0,e,null)}),["capture","download"].forEach(function(e){pt[e]=new ht(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){pt[e]=new ht(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){pt[e]=new ht(e,5,!1,e.toLowerCase(),null)});var mt=/[\-:]([a-z])/g;function bt(e){return e[1].toUpperCase()}function gt(e,t,n,i){var r=pt.hasOwnProperty(t)?pt[t]:null;(null!==r?0===r.type:!i&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,i){if(null==t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,i)&&(n=null),i||null===r?function(e){return!!ct.call(dt,e)||!ct.call(ft,e)&&(lt.test(e)?dt[e]=!0:(ft[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,i=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}function vt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function yt(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function wt(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=vt(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function _t(e,t){null!=(t=t.checked)&&gt(e,"checked",t,!1)}function xt(e,t){_t(e,t);var n=vt(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?Et(e,t.type,n):t.hasOwnProperty("defaultValue")&&Et(e,t.type,vt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function kt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Et(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(mt,bt);pt[t]=new ht(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mt,bt);pt[t]=new ht(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mt,bt);pt[t]=new ht(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),["tabIndex","crossOrigin"].forEach(function(e){pt[e]=new ht(e,1,!1,e.toLowerCase(),null)});var St={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Tt(e,t,n){return(e=ue.getPooled(St.change,e,t,n)).type="change",Oe(n),W(e),e}var Ct=null,At=null;function It(e){N(e)}function Ot(e){if(Ve(j(e)))return e}function Nt(e,t){if("change"===e)return t}var Pt=!1;function Rt(){Ct&&(Ct.detachEvent("onpropertychange",Dt),At=Ct=null)}function Dt(e){"value"===e.propertyName&&Ot(At)&&Me(It,e=Tt(At,e,Fe(e)))}function Lt(e,t,n){"focus"===e?(Rt(),At=n,(Ct=t).attachEvent("onpropertychange",Dt)):"blur"===e&&Rt()}function Mt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ot(At)}function jt(e,t){if("click"===e)return Ot(t)}function Ut(e,t){if("input"===e||"change"===e)return Ot(t)}G&&(Pt=Be("input")&&(!document.documentMode||9<document.documentMode));var Ft={eventTypes:St,_isInputEventSupported:Pt,extractEvents:function(e,t,n,i){var r=t?j(t):window,o=void 0,a=void 0,s=r.nodeName&&r.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===r.type?o=Nt:Ue(r)?Pt?o=Ut:(o=Mt,a=Lt):(s=r.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(o=jt),o&&(o=o(e,t)))return Tt(o,n,i);a&&a(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Et(r,"number",r.value)}},Bt=ue.extend({view:null,detail:null}),zt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ht(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=zt[e])&&!!t[e]}function Vt(){return Ht}var Wt=0,Gt=0,Kt=!1,qt=!1,Xt=Bt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Vt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Wt;return Wt=e.screenX,Kt?"mousemove"===e.type?e.screenX-t:0:(Kt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Gt;return Gt=e.screenY,qt?"mousemove"===e.type?e.screenY-t:0:(qt=!0,0)}}),Yt=Xt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Jt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},$t={eventTypes:Jt,extractEvents:function(e,t,n,i){var r="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(r&&(n.relatedTarget||n.fromElement)||!o&&!r)return null;if(r=i.window===i?i:(r=i.ownerDocument)?r.defaultView||r.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?L(t):null):o=null,o===t)return null;var a=void 0,s=void 0,u=void 0,l=void 0;"mouseout"===e||"mouseover"===e?(a=Xt,s=Jt.mouseLeave,u=Jt.mouseEnter,l="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Yt,s=Jt.pointerLeave,u=Jt.pointerEnter,l="pointer");var c=null==o?r:j(o);if(r=null==t?r:j(t),(e=a.getPooled(s,o,n,i)).type=l+"leave",e.target=c,e.relatedTarget=r,(n=a.getPooled(u,t,n,i)).type=l+"enter",n.target=r,n.relatedTarget=c,i=t,o&&i)e:{for(r=i,l=0,a=t=o;a;a=F(a))l++;for(a=0,u=r;u;u=F(u))a++;for(;0<l-a;)t=F(t),l--;for(;0<a-l;)r=F(r),a--;for(;l--;){if(t===r||t===r.alternate)break e;t=F(t),r=F(r)}t=null}else t=null;for(r=t,t=[];o&&o!==r&&(null===(l=o.alternate)||l!==r);)t.push(o),o=F(o);for(o=[];i&&i!==r&&(null===(l=i.alternate)||l!==r);)o.push(i),i=F(i);for(i=0;i<t.length;i++)H(t[i],"bubbled",e);for(i=o.length;0<i--;)H(o[i],"captured",n);return[e,n]}};function Zt(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var Qt=Object.prototype.hasOwnProperty;function en(e,t){if(Zt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++)if(!Qt.call(t,n[i])||!Zt(e[n[i]],t[n[i]]))return!1;return!0}function tn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function nn(e){2!==tn(e)&&a("188")}function rn(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tn(e))&&a("188"),1===t?null:e;for(var n=e,i=t;;){var r=n.return,o=r?r.alternate:null;if(!r||!o)break;if(r.child===o.child){for(var s=r.child;s;){if(s===n)return nn(r),e;if(s===i)return nn(r),t;s=s.sibling}a("188")}if(n.return!==i.return)n=r,i=o;else{s=!1;for(var u=r.child;u;){if(u===n){s=!0,n=r,i=o;break}if(u===i){s=!0,i=r,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,i=r;break}if(u===i){s=!0,i=o,n=r;break}u=u.sibling}s||a("189")}}n.alternate!==i&&a("190")}return 3!==n.tag&&a("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var on=ue.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=ue.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sn=Bt.extend({relatedTarget:null});function un(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ln={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fn=Bt.extend({key:function(e){if(e.key){var t=ln[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=un(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Vt,charCode:function(e){return"keypress"===e.type?un(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?un(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),dn=Xt.extend({dataTransfer:null}),hn=Bt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Vt}),pn=ue.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),mn=Xt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),bn=[["abort","abort"],[$,"animationEnd"],[Z,"animationIteration"],[Q,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ee,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],gn={},vn={};function yn(e,t){var n=e[0],i="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[n],isInteractive:t},gn[e]=t,vn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){yn(e,!0)}),bn.forEach(function(e){yn(e,!1)});var wn={eventTypes:gn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=vn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,i){var r=vn[e];if(!r)return null;switch(e){case"keypress":if(0===un(n))return null;case"keydown":case"keyup":e=fn;break;case"blur":case"focus":e=sn;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Xt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=dn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=hn;break;case $:case Z:case Q:e=on;break;case ee:e=pn;break;case"scroll":e=Bt;break;case"wheel":e=mn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Yt;break;default:e=ue}return W(t=e.getPooled(r,t,n,i)),t}},_n=wn.isInteractiveTopLevelEventType,xn=[];function kn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var i;for(i=n;i.return;)i=i.return;if(!(i=3!==i.tag?null:i.stateNode.containerInfo))break;e.ancestors.push(n),n=L(i)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=Fe(e.nativeEvent);i=e.topLevelType;for(var o=e.nativeEvent,a=null,s=0;s<g.length;s++){var u=g[s];u&&(u=u.extractEvents(i,t,o,r))&&(a=S(a,u))}N(a)}}var En=!0;function Sn(e,t){if(!t)return null;var n=(_n(e)?Cn:An).bind(null,e);t.addEventListener(e,n,!1)}function Tn(e,t){if(!t)return null;var n=(_n(e)?Cn:An).bind(null,e);t.addEventListener(e,n,!0)}function Cn(e,t){Re(An,e,t)}function An(e,t){if(En){var n=Fe(t);if(null===(n=L(n))||"number"!=typeof n.tag||2===tn(n)||(n=null),xn.length){var i=xn.pop();i.topLevelType=e,i.nativeEvent=t,i.targetInst=n,e=i}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Me(kn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>xn.length&&xn.push(e)}}}var In={},On=0,Nn="_reactListenersID"+(""+Math.random()).slice(2);function Pn(e){return Object.prototype.hasOwnProperty.call(e,Nn)||(e[Nn]=On++,In[e[Nn]]={}),In[e[Nn]]}function Rn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ln(e,t){var n,i=Dn(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Dn(i)}}function Mn(){for(var e=window,t=Rn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Rn((e=t.contentWindow).document)}return t}function jn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Un(e){var t=Mn(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==i&&jn(n))if(t=i.start,void 0===(e=i.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=void 0===i.end?o:Math.min(i.end,r),!e.extend&&o>i&&(r=i,i=o,o=r),r=Ln(n,o);var a=Ln(n,i);r&&a&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),o>i?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Fn=G&&"documentMode"in document&&11>=document.documentMode,Bn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},zn=null,Hn=null,Vn=null,Wn=!1;function Gn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Wn||null==zn||zn!==Rn(n)?null:("selectionStart"in(n=zn)&&jn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Vn&&en(Vn,n)?null:(Vn=n,(e=ue.getPooled(Bn.select,Hn,e,t)).type="select",e.target=zn,W(e),e))}var Kn={eventTypes:Bn,extractEvents:function(e,t,n,i){var r,o=i.window===i?i.document:9===i.nodeType?i:i.ownerDocument;if(!(r=!o)){e:{o=Pn(o),r=w.onSelect;for(var a=0;a<r.length;a++){var s=r[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break e}}o=!0}r=!o}if(r)return null;switch(o=t?j(t):window,e){case"focus":(Ue(o)||"true"===o.contentEditable)&&(zn=o,Hn=t,Vn=null);break;case"blur":Vn=Hn=zn=null;break;case"mousedown":Wn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Wn=!1,Gn(n,i);case"selectionchange":if(Fn)break;case"keydown":case"keyup":return Gn(n,i)}return null}};function qn(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Xn(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+vt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(i&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function Yn(e,t){return null!=t.dangerouslySetInnerHTML&&a("91"),r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&a("92"),Array.isArray(t)&&(1>=t.length||a("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:vt(n)}}function $n(e,t){var n=vt(t.value),i=vt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function Zn(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}I.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_=U,x=M,k=j,I.injectEventPluginsByName({SimpleEventPlugin:wn,EnterLeaveEventPlugin:$t,ChangeEventPlugin:Ft,SelectEventPlugin:Kn,BeforeInputEventPlugin:Se});var Qn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ei(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ti(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ei(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ni,ii=void 0,ri=(ni=function(e,t){if(e.namespaceURI!==Qn.svg||"innerHTML"in e)e.innerHTML=t;else{for((ii=ii||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction(function(){return ni(e,t)})}:ni);function oi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ai={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},si=["Webkit","ms","Moz","O"];function ui(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ai.hasOwnProperty(e)&&ai[e]?(""+t).trim():t+"px"}function li(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=ui(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}Object.keys(ai).forEach(function(e){si.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ai[t]=ai[e]})});var ci=r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fi(e,t){t&&(ci[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&a("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&a("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||a("61")),null!=t.style&&"object"!=typeof t.style&&a("62",""))}function di(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function hi(e,t){var n=Pn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=w[t];for(var i=0;i<t.length;i++){var r=t[i];if(!n.hasOwnProperty(r)||!n[r]){switch(r){case"scroll":Tn("scroll",e);break;case"focus":case"blur":Tn("focus",e),Tn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Be(r)&&Tn(r,e);break;case"invalid":case"submit":case"reset":break;default:-1===te.indexOf(r)&&Sn(r,e)}n[r]=!0}}}function pi(){}var mi=null,bi=null;function gi(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function vi(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var yi="function"==typeof setTimeout?setTimeout:void 0,wi="function"==typeof clearTimeout?clearTimeout:void 0,_i=o.unstable_scheduleCallback,xi=o.unstable_cancelCallback;function ki(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function Ei(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var Si=[],Ti=-1;function Ci(e){0>Ti||(e.current=Si[Ti],Si[Ti]=null,Ti--)}function Ai(e,t){Si[++Ti]=e.current,e.current=t}var Ii={},Oi={current:Ii},Ni={current:!1},Pi=Ii;function Ri(e,t){var n=e.type.contextTypes;if(!n)return Ii;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Di(e){return null!=(e=e.childContextTypes)}function Li(e){Ci(Ni),Ci(Oi)}function Mi(e){Ci(Ni),Ci(Oi)}function ji(e,t,n){Oi.current!==Ii&&a("168"),Ai(Oi,t),Ai(Ni,n)}function Ui(e,t,n){var i=e.stateNode;if(e=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var o in i=i.getChildContext())o in e||a("108",st(t)||"Unknown",o);return r({},n,i)}function Fi(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Ii,Pi=Oi.current,Ai(Oi,t),Ai(Ni,Ni.current),!0}function Bi(e,t,n){var i=e.stateNode;i||a("169"),n?(t=Ui(e,t,Pi),i.__reactInternalMemoizedMergedChildContext=t,Ci(Ni),Ci(Oi),Ai(Oi,t)):Ci(Ni),Ai(Ni,n)}var zi=null,Hi=null;function Vi(e){return function(t){try{return e(t)}catch(e){}}}function Wi(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Gi(e,t,n,i){return new Wi(e,t,n,i)}function Ki(e){return!(!(e=e.prototype)||!e.isReactComponent)}function qi(e,t){var n=e.alternate;return null===n?((n=Gi(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xi(e,t,n,i,r,o){var s=2;if(i=e,"function"==typeof e)Ki(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case Ye:return Yi(n.children,r,o,t);case et:return Ji(n,3|r,o,t);case Je:return Ji(n,2|r,o,t);case $e:return(e=Gi(12,n,t,4|r)).elementType=$e,e.type=$e,e.expirationTime=o,e;case nt:return(e=Gi(13,n,t,r)).elementType=nt,e.type=nt,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ze:s=10;break e;case Qe:s=9;break e;case tt:s=11;break e;case it:s=14;break e;case rt:s=16,i=null;break e}a("130",null==e?e:typeof e,"")}return(t=Gi(s,n,t,r)).elementType=e,t.type=i,t.expirationTime=o,t}function Yi(e,t,n,i){return(e=Gi(7,e,i,t)).expirationTime=n,e}function Ji(e,t,n,i){return e=Gi(8,e,i,t),t=0==(1&t)?Je:et,e.elementType=t,e.type=t,e.expirationTime=n,e}function $i(e,t,n){return(e=Gi(6,e,null,t)).expirationTime=n,e}function Zi(e,t,n){return(t=Gi(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qi(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),nr(t,e)}function er(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,i=e.latestPendingTime;n===t?e.earliestPendingTime=i===t?e.latestPendingTime=0:i:i===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,i=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:i>t&&(e.latestSuspendedTime=t),nr(t,e)}function tr(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function nr(e,t){var n=t.earliestSuspendedTime,i=t.latestSuspendedTime,r=t.earliestPendingTime,o=t.latestPingedTime;0===(r=0!==r?r:o)&&(0===e||i<e)&&(r=i),0!==(e=r)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=r,t.expirationTime=e}function ir(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var rr=(new i.Component).refs;function or(e,t,n,i){n=null==(n=n(i,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,null!==(i=e.updateQueue)&&0===e.expirationTime&&(i.baseState=n)}var ar={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var i=xs(),r=Jo(i=Ya(i,e));r.payload=t,null!=n&&(r.callback=n),Va(),Zo(e,r),Za(e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var i=xs(),r=Jo(i=Ya(i,e));r.tag=Wo,r.payload=t,null!=n&&(r.callback=n),Va(),Zo(e,r),Za(e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=xs(),i=Jo(n=Ya(n,e));i.tag=Go,null!=t&&(i.callback=t),Va(),Zo(e,i),Za(e,n)}};function sr(e,t,n,i,r,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!en(n,i)||!en(r,o))}function ur(e,t,n){var i=!1,r=Ii,o=t.contextType;return"object"==typeof o&&null!==o?o=Ho(o):(r=Di(t)?Pi:Oi.current,o=(i=null!=(i=t.contextTypes))?Ri(e,r):Ii),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ar,e.stateNode=t,t._reactInternalFiber=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function lr(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&ar.enqueueReplaceState(t,t.state,null)}function cr(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=rr;var o=t.contextType;"object"==typeof o&&null!==o?r.context=Ho(o):(o=Di(t)?Pi:Oi.current,r.context=Ri(e,o)),null!==(o=e.updateQueue)&&(na(e,o,n,r,i),r.state=e.memoizedState),"function"==typeof(o=t.getDerivedStateFromProps)&&(or(e,t,o,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&ar.enqueueReplaceState(r,r.state,null),null!==(o=e.updateQueue)&&(na(e,o,n,r,i),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var fr=Array.isArray;function dr(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var i=void 0;n&&(1!==n.tag&&a("309"),i=n.stateNode),i||a("147",e);var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=i.refs;t===rr&&(t=i.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}"string"!=typeof e&&a("284"),n._owner||a("290",e)}return e}function hr(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function pr(e){function t(t,n){if(e){var i=t.lastEffect;null!==i?(i.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t,n){return(e=qi(e,t)).index=0,e.sibling=null,e}function o(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.effectTag=2,n):i:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,i){return null===t||6!==t.tag?((t=$i(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function l(e,t,n,i){return null!==t&&t.elementType===n.type?((i=r(t,n.props)).ref=dr(e,t,n),i.return=e,i):((i=Xi(n.type,n.key,n.props,null,e.mode,i)).ref=dr(e,t,n),i.return=e,i)}function c(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Zi(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function f(e,t,n,i,o){return null===t||7!==t.tag?((t=Yi(n,e.mode,i,o)).return=e,t):((t=r(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=$i(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case qe:return(n=Xi(t.type,t.key,t.props,null,e.mode,n)).ref=dr(e,null,t),n.return=e,n;case Xe:return(t=Zi(t,e.mode,n)).return=e,t}if(fr(t)||at(t))return(t=Yi(t,e.mode,n,null)).return=e,t;hr(e,t)}return null}function h(e,t,n,i){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:u(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case qe:return n.key===r?n.type===Ye?f(e,t,n.props.children,i,r):l(e,t,n,i):null;case Xe:return n.key===r?c(e,t,n,i):null}if(fr(n)||at(n))return null!==r?null:f(e,t,n,i,null);hr(e,n)}return null}function p(e,t,n,i,r){if("string"==typeof i||"number"==typeof i)return u(t,e=e.get(n)||null,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case qe:return e=e.get(null===i.key?n:i.key)||null,i.type===Ye?f(t,e,i.props.children,r,i.key):l(t,e,i,r);case Xe:return c(t,e=e.get(null===i.key?n:i.key)||null,i,r)}if(fr(i)||at(i))return f(t,e=e.get(n)||null,i,r,null);hr(t,i)}return null}function m(r,a,s,u){for(var l=null,c=null,f=a,m=a=0,b=null;null!==f&&m<s.length;m++){f.index>m?(b=f,f=null):b=f.sibling;var g=h(r,f,s[m],u);if(null===g){null===f&&(f=b);break}e&&f&&null===g.alternate&&t(r,f),a=o(g,a,m),null===c?l=g:c.sibling=g,c=g,f=b}if(m===s.length)return n(r,f),l;if(null===f){for(;m<s.length;m++)(f=d(r,s[m],u))&&(a=o(f,a,m),null===c?l=f:c.sibling=f,c=f);return l}for(f=i(r,f);m<s.length;m++)(b=p(f,r,m,s[m],u))&&(e&&null!==b.alternate&&f.delete(null===b.key?m:b.key),a=o(b,a,m),null===c?l=b:c.sibling=b,c=b);return e&&f.forEach(function(e){return t(r,e)}),l}function b(r,s,u,l){var c=at(u);"function"!=typeof c&&a("150"),null==(u=c.call(u))&&a("151");for(var f=c=null,m=s,b=s=0,g=null,v=u.next();null!==m&&!v.done;b++,v=u.next()){m.index>b?(g=m,m=null):g=m.sibling;var y=h(r,m,v.value,l);if(null===y){m||(m=g);break}e&&m&&null===y.alternate&&t(r,m),s=o(y,s,b),null===f?c=y:f.sibling=y,f=y,m=g}if(v.done)return n(r,m),c;if(null===m){for(;!v.done;b++,v=u.next())null!==(v=d(r,v.value,l))&&(s=o(v,s,b),null===f?c=v:f.sibling=v,f=v);return c}for(m=i(r,m);!v.done;b++,v=u.next())null!==(v=p(m,r,b,v.value,l))&&(e&&null!==v.alternate&&m.delete(null===v.key?b:v.key),s=o(v,s,b),null===f?c=v:f.sibling=v,f=v);return e&&m.forEach(function(e){return t(r,e)}),c}return function(e,i,o,u){var l="object"==typeof o&&null!==o&&o.type===Ye&&null===o.key;l&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case qe:e:{for(c=o.key,l=i;null!==l;){if(l.key===c){if(7===l.tag?o.type===Ye:l.elementType===o.type){n(e,l.sibling),(i=r(l,o.type===Ye?o.props.children:o.props)).ref=dr(e,l,o),i.return=e,e=i;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===Ye?((i=Yi(o.props.children,e.mode,u,o.key)).return=e,e=i):((u=Xi(o.type,o.key,o.props,null,e.mode,u)).ref=dr(e,i,o),u.return=e,e=u)}return s(e);case Xe:e:{for(l=o.key;null!==i;){if(i.key===l){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(e,i.sibling),(i=r(i,o.children||[])).return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}(i=Zi(o,e.mode,u)).return=e,e=i}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==i&&6===i.tag?(n(e,i.sibling),(i=r(i,o)).return=e,e=i):(n(e,i),(i=$i(o,e.mode,u)).return=e,e=i),s(e);if(fr(o))return m(e,i,o,u);if(at(o))return b(e,i,o,u);if(c&&hr(e,o),void 0===o&&!l)switch(e.tag){case 1:case 0:a("152",(u=e.type).displayName||u.name||"Component")}return n(e,i)}}var mr=pr(!0),br=pr(!1),gr={},vr={current:gr},yr={current:gr},wr={current:gr};function _r(e){return e===gr&&a("174"),e}function xr(e,t){Ai(wr,t),Ai(yr,e),Ai(vr,gr);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ti(null,"");break;default:t=ti(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Ci(vr),Ai(vr,t)}function kr(e){Ci(vr),Ci(yr),Ci(wr)}function Er(e){_r(wr.current);var t=_r(vr.current),n=ti(t,e.type);t!==n&&(Ai(yr,e),Ai(vr,n))}function Sr(e){yr.current===e&&(Ci(vr),Ci(yr))}var Tr=0,Cr=2,Ar=4,Ir=8,Or=16,Nr=32,Pr=64,Rr=128,Dr=We.ReactCurrentDispatcher,Lr=0,Mr=null,jr=null,Ur=null,Fr=null,Br=null,zr=null,Hr=0,Vr=null,Wr=0,Gr=!1,Kr=null,qr=0;function Xr(){a("321")}function Yr(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zt(e[n],t[n]))return!1;return!0}function Jr(e,t,n,i,r,o){if(Lr=o,Mr=t,Ur=null!==e?e.memoizedState:null,Dr.current=null===Ur?lo:co,t=n(i,r),Gr){do{Gr=!1,qr+=1,Ur=null!==e?e.memoizedState:null,zr=Fr,Vr=Br=jr=null,Dr.current=co,t=n(i,r)}while(Gr);Kr=null,qr=0}return Dr.current=uo,(e=Mr).memoizedState=Fr,e.expirationTime=Hr,e.updateQueue=Vr,e.effectTag|=Wr,e=null!==jr&&null!==jr.next,Lr=0,zr=Br=Fr=Ur=jr=Mr=null,Hr=0,Vr=null,Wr=0,e&&a("300"),t}function $r(){Dr.current=uo,Lr=0,zr=Br=Fr=Ur=jr=Mr=null,Hr=0,Vr=null,Wr=0,Gr=!1,Kr=null,qr=0}function Zr(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Br?Fr=Br=e:Br=Br.next=e,Br}function Qr(){if(null!==zr)zr=(Br=zr).next,Ur=null!==(jr=Ur)?jr.next:null;else{null===Ur&&a("310");var e={memoizedState:(jr=Ur).memoizedState,baseState:jr.baseState,queue:jr.queue,baseUpdate:jr.baseUpdate,next:null};Br=null===Br?Fr=e:Br.next=e,Ur=jr.next}return Br}function eo(e,t){return"function"==typeof t?t(e):t}function to(e){var t=Qr(),n=t.queue;if(null===n&&a("311"),n.lastRenderedReducer=e,0<qr){var i=n.dispatch;if(null!==Kr){var r=Kr.get(n);if(void 0!==r){Kr.delete(n);var o=t.memoizedState;do{o=e(o,r.action),r=r.next}while(null!==r);return Zt(o,t.memoizedState)||(xo=!0),t.memoizedState=o,t.baseUpdate===n.last&&(t.baseState=o),n.lastRenderedState=o,[o,i]}}return[t.memoizedState,i]}i=n.last;var s=t.baseUpdate;if(o=t.baseState,null!==s?(null!==i&&(i.next=null),i=s.next):i=null!==i?i.next:null,null!==i){var u=r=null,l=i,c=!1;do{var f=l.expirationTime;f<Lr?(c||(c=!0,u=s,r=o),f>Hr&&(Hr=f)):o=l.eagerReducer===e?l.eagerState:e(o,l.action),s=l,l=l.next}while(null!==l&&l!==i);c||(u=s,r=o),Zt(o,t.memoizedState)||(xo=!0),t.memoizedState=o,t.baseUpdate=u,t.baseState=r,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function no(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===Vr?(Vr={lastEffect:null}).lastEffect=e.next=e:null===(t=Vr.lastEffect)?Vr.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Vr.lastEffect=e),e}function io(e,t,n,i){var r=Zr();Wr|=e,r.memoizedState=no(t,n,void 0,void 0===i?null:i)}function ro(e,t,n,i){var r=Qr();i=void 0===i?null:i;var o=void 0;if(null!==jr){var a=jr.memoizedState;if(o=a.destroy,null!==i&&Yr(i,a.deps))return void no(Tr,n,o,i)}Wr|=e,r.memoizedState=no(t,n,o,i)}function oo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ao(){}function so(e,t,n){25>qr||a("301");var i=e.alternate;if(e===Mr||null!==i&&i===Mr)if(Gr=!0,e={expirationTime:Lr,action:n,eagerReducer:null,eagerState:null,next:null},null===Kr&&(Kr=new Map),void 0===(n=Kr.get(t)))Kr.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{Va();var r=xs(),o={expirationTime:r=Ya(r,e),action:n,eagerReducer:null,eagerState:null,next:null},s=t.last;if(null===s)o.next=o;else{var u=s.next;null!==u&&(o.next=u),s.next=o}if(t.last=o,0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,c=i(l,n);if(o.eagerReducer=i,o.eagerState=c,Zt(c,l))return}catch(e){}Za(e,r)}}var uo={readContext:Ho,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useLayoutEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr},lo={readContext:Ho,useCallback:function(e,t){return Zr().memoizedState=[e,void 0===t?null:t],e},useContext:Ho,useEffect:function(e,t){return io(516,Rr|Pr,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,io(4,Ar|Nr,oo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return io(4,Ar|Nr,e,t)},useMemo:function(e,t){var n=Zr();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Zr();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e=(e=i.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=so.bind(null,Mr,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},Zr().memoizedState=e},useState:function(e){var t=Zr();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e}).dispatch=so.bind(null,Mr,e),[t.memoizedState,e]},useDebugValue:ao},co={readContext:Ho,useCallback:function(e,t){var n=Qr();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&Yr(t,i[1])?i[0]:(n.memoizedState=[e,t],e)},useContext:Ho,useEffect:function(e,t){return ro(516,Rr|Pr,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ro(4,Ar|Nr,oo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ro(4,Ar|Nr,e,t)},useMemo:function(e,t){var n=Qr();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&Yr(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:to,useRef:function(){return Qr().memoizedState},useState:function(e){return to(eo)},useDebugValue:ao},fo=null,ho=null,po=!1;function mo(e,t){var n=Gi(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function bo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function go(e){if(po){var t=ho;if(t){var n=t;if(!bo(e,t)){if(!(t=ki(n))||!bo(e,t))return e.effectTag|=2,po=!1,void(fo=e);mo(fo,n)}fo=e,ho=Ei(t)}else e.effectTag|=2,po=!1,fo=e}}function vo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;fo=e}function yo(e){if(e!==fo)return!1;if(!po)return vo(e),po=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!vi(t,e.memoizedProps))for(t=ho;t;)mo(e,t),t=ki(t);return vo(e),ho=fo?ki(e.stateNode):null,!0}function wo(){ho=fo=null,po=!1}var _o=We.ReactCurrentOwner,xo=!1;function ko(e,t,n,i){t.child=null===e?br(t,null,n,i):mr(t,e.child,n,i)}function Eo(e,t,n,i,r){n=n.render;var o=t.ref;return zo(t,r),i=Jr(e,t,n,i,o,r),null===e||xo?(t.effectTag|=1,ko(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ro(e,t,r))}function So(e,t,n,i,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Ki(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xi(n.type,null,i,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,To(e,t,a,i,r,o))}return a=e.child,r<o&&(r=a.memoizedProps,(n=null!==(n=n.compare)?n:en)(r,i)&&e.ref===t.ref)?Ro(e,t,o):(t.effectTag|=1,(e=qi(a,i)).ref=t.ref,e.return=t,t.child=e)}function To(e,t,n,i,r,o){return null!==e&&en(e.memoizedProps,i)&&e.ref===t.ref&&(xo=!1,r<o)?Ro(e,t,o):Ao(e,t,n,i,o)}function Co(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ao(e,t,n,i,r){var o=Di(n)?Pi:Oi.current;return o=Ri(t,o),zo(t,r),n=Jr(e,t,n,i,o,r),null===e||xo?(t.effectTag|=1,ko(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ro(e,t,r))}function Io(e,t,n,i,r){if(Di(n)){var o=!0;Fi(t)}else o=!1;if(zo(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ur(t,n,i),cr(t,n,i,r),i=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=Ho(l):l=Ri(t,l=Di(n)?Pi:Oi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==i||u!==l)&&lr(t,a,i,l),qo=!1;var d=t.memoizedState;u=a.state=d;var h=t.updateQueue;null!==h&&(na(t,h,i,a,r),u=t.memoizedState),s!==i||d!==u||Ni.current||qo?("function"==typeof c&&(or(t,n,c,i),u=t.memoizedState),(s=qo||sr(t,n,s,i,d,u,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=i,t.memoizedState=u),a.props=i,a.state=u,a.context=l,i=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),i=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:ir(t.type,s),u=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ho(l):l=Ri(t,l=Di(n)?Pi:Oi.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==i||u!==l)&&lr(t,a,i,l),qo=!1,u=t.memoizedState,d=a.state=u,null!==(h=t.updateQueue)&&(na(t,h,i,a,r),d=t.memoizedState),s!==i||u!==d||Ni.current||qo?("function"==typeof c&&(or(t,n,c,i),d=t.memoizedState),(c=qo||sr(t,n,s,i,u,d,l))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(i,d,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(i,d,l)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=i,t.memoizedState=d),a.props=i,a.state=d,a.context=l,i=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),i=!1);return Oo(e,t,n,i,o,r)}function Oo(e,t,n,i,r,o){Co(e,t);var a=0!=(64&t.effectTag);if(!i&&!a)return r&&Bi(t,n,!1),Ro(e,t,o);i=t.stateNode,_o.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.effectTag|=1,null!==e&&a?(t.child=mr(t,e.child,null,o),t.child=mr(t,null,s,o)):ko(e,t,s,o),t.memoizedState=i.state,r&&Bi(t,n,!0),t.child}function No(e){var t=e.stateNode;t.pendingContext?ji(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ji(0,t.context,!1),xr(e,t.containerInfo)}function Po(e,t,n){var i=t.mode,r=t.pendingProps,o=t.memoizedState;if(0==(64&t.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,t.effectTag&=-65;if(null===e)if(a){var s=r.fallback;e=Yi(null,i,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),i=Yi(s,i,n,null),e.sibling=i,(n=e).return=i.return=t}else n=i=br(t,null,r.children,n);else null!==e.memoizedState?(s=(i=e.child).sibling,a?(n=r.fallback,r=qi(i,i.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==i.child&&(r.child=a)),i=r.sibling=qi(s,n,s.expirationTime),n=r,r.childExpirationTime=0,n.return=i.return=t):n=i=mr(t,i.child,r.children,n)):(s=e.child,a?(a=r.fallback,(r=Yi(null,i,0,null)).child=s,0==(1&t.mode)&&(r.child=null!==t.memoizedState?t.child.child:t.child),(i=r.sibling=Yi(a,i,n,null)).effectTag|=2,n=r,r.childExpirationTime=0,n.return=i.return=t):i=n=mr(t,s,r.children,n)),t.stateNode=e.stateNode;return t.memoizedState=o,t.child=n,i}function Ro(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&a("153"),null!==t.child){for(n=qi(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=qi(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Do(e,t,n){var i=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||Ni.current)xo=!0;else if(i<n){switch(xo=!1,t.tag){case 3:No(t),wo();break;case 5:Er(t);break;case 1:Di(t.type)&&Fi(t);break;case 4:xr(t,t.stateNode.containerInfo);break;case 10:Fo(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(i=t.child.childExpirationTime)&&i>=n?Po(e,t,n):null!==(t=Ro(e,t,n))?t.sibling:null}return Ro(e,t,n)}}else xo=!1;switch(t.expirationTime=0,t.tag){case 2:i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var r=Ri(t,Oi.current);if(zo(t,n),r=Jr(null,t,i,e,r,n),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,$r(),Di(i)){var o=!0;Fi(t)}else o=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null;var s=i.getDerivedStateFromProps;"function"==typeof s&&or(t,i,s,e),r.updater=ar,t.stateNode=r,r._reactInternalFiber=t,cr(t,i,e,n),t=Oo(null,t,i,!0,o,n)}else t.tag=0,ko(null,t,r,n),t=t.child;return t;case 16:switch(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),o=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(r),t.type=e,r=t.tag=function(e){if("function"==typeof e)return Ki(e)?1:0;if(null!=e){if((e=e.$$typeof)===tt)return 11;if(e===it)return 14}return 2}(e),o=ir(e,o),s=void 0,r){case 0:s=Ao(null,t,e,o,n);break;case 1:s=Io(null,t,e,o,n);break;case 11:s=Eo(null,t,e,o,n);break;case 14:s=So(null,t,e,ir(e.type,o),i,n);break;default:a("306",e,"")}return s;case 0:return i=t.type,r=t.pendingProps,Ao(e,t,i,r=t.elementType===i?r:ir(i,r),n);case 1:return i=t.type,r=t.pendingProps,Io(e,t,i,r=t.elementType===i?r:ir(i,r),n);case 3:return No(t),null===(i=t.updateQueue)&&a("282"),r=null!==(r=t.memoizedState)?r.element:null,na(t,i,t.pendingProps,null,n),(i=t.memoizedState.element)===r?(wo(),t=Ro(e,t,n)):(r=t.stateNode,(r=(null===e||null===e.child)&&r.hydrate)&&(ho=Ei(t.stateNode.containerInfo),fo=t,r=po=!0),r?(t.effectTag|=2,t.child=br(t,null,i,n)):(ko(e,t,i,n),wo()),t=t.child),t;case 5:return Er(t),null===e&&go(t),i=t.type,r=t.pendingProps,o=null!==e?e.memoizedProps:null,s=r.children,vi(i,r)?s=null:null!==o&&vi(i,o)&&(t.effectTag|=16),Co(e,t),1!==n&&1&t.mode&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ko(e,t,s,n),t=t.child),t;case 6:return null===e&&go(t),null;case 13:return Po(e,t,n);case 4:return xr(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=mr(t,null,i,n):ko(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,Eo(e,t,i,r=t.elementType===i?r:ir(i,r),n);case 7:return ko(e,t,t.pendingProps,n),t.child;case 8:case 12:return ko(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,s=t.memoizedProps,Fo(t,o=r.value),null!==s){var u=s.value;if(0===(o=Zt(u,o)?0:0|("function"==typeof i._calculateChangedBits?i._calculateChangedBits(u,o):1073741823))){if(s.children===r.children&&!Ni.current){t=Ro(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.contextDependencies;if(null!==l){s=u.child;for(var c=l.first;null!==c;){if(c.context===i&&0!=(c.observedBits&o)){1===u.tag&&((c=Jo(n)).tag=Go,Zo(u,c)),u.expirationTime<n&&(u.expirationTime=n),null!==(c=u.alternate)&&c.expirationTime<n&&(c.expirationTime=n),c=n;for(var f=u.return;null!==f;){var d=f.alternate;if(f.childExpirationTime<c)f.childExpirationTime=c,null!==d&&d.childExpirationTime<c&&(d.childExpirationTime=c);else{if(!(null!==d&&d.childExpirationTime<c))break;d.childExpirationTime=c}f=f.return}l.expirationTime<n&&(l.expirationTime=n);break}c=c.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}}ko(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=(o=t.pendingProps).children,zo(t,n),i=i(r=Ho(r,o.unstable_observedBits)),t.effectTag|=1,ko(e,t,i,n),t.child;case 14:return o=ir(r=t.type,t.pendingProps),So(e,t,r,o=ir(r.type,o),i,n);case 15:return To(e,t,t.type,t.pendingProps,i,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:ir(i,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Di(i)?(e=!0,Fi(t)):e=!1,zo(t,n),ur(t,i,r),cr(t,i,r,n),Oo(null,t,i,!0,e,n)}a("156")}var Lo={current:null},Mo=null,jo=null,Uo=null;function Fo(e,t){var n=e.type._context;Ai(Lo,n._currentValue),n._currentValue=t}function Bo(e){var t=Lo.current;Ci(Lo),e.type._context._currentValue=t}function zo(e,t){Mo=e,Uo=jo=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(xo=!0),e.contextDependencies=null}function Ho(e,t){return Uo!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Uo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===jo?(null===Mo&&a("308"),jo=t,Mo.contextDependencies={first:t,expirationTime:0}):jo=jo.next=t),e._currentValue}var Vo=0,Wo=1,Go=2,Ko=3,qo=!1;function Xo(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Yo(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Jo(e){return{expirationTime:e,tag:Vo,payload:null,callback:null,next:null,nextEffect:null}}function $o(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Zo(e,t){var n=e.alternate;if(null===n){var i=e.updateQueue,r=null;null===i&&(i=e.updateQueue=Xo(e.memoizedState))}else i=e.updateQueue,r=n.updateQueue,null===i?null===r?(i=e.updateQueue=Xo(e.memoizedState),r=n.updateQueue=Xo(n.memoizedState)):i=e.updateQueue=Yo(r):null===r&&(r=n.updateQueue=Yo(i));null===r||i===r?$o(i,t):null===i.lastUpdate||null===r.lastUpdate?($o(i,t),$o(r,t)):($o(i,t),r.lastUpdate=t)}function Qo(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Xo(e.memoizedState):ea(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function ea(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Yo(t)),t}function ta(e,t,n,i,o,a){switch(n.tag){case Wo:return"function"==typeof(e=n.payload)?e.call(a,i,o):e;case Ko:e.effectTag=-2049&e.effectTag|64;case Vo:if(null==(o="function"==typeof(e=n.payload)?e.call(a,i,o):e))break;return r({},i,o);case Go:qo=!0}return i}function na(e,t,n,i,r){qo=!1;for(var o=(t=ea(e,t)).baseState,a=null,s=0,u=t.firstUpdate,l=o;null!==u;){var c=u.expirationTime;c<r?(null===a&&(a=u,o=l),s<c&&(s=c)):(l=ta(e,0,u,l,n,i),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(c=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<r?(null===c&&(c=u,null===a&&(o=l)),s<f&&(s=f)):(l=ta(e,0,u,l,n,i),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=l),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=l}function ia(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),ra(t.firstEffect,n),t.firstEffect=t.lastEffect=null,ra(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function ra(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var i=t;"function"!=typeof n&&a("191",n),n.call(i)}e=e.nextEffect}}function oa(e,t){return{value:e,source:t,stack:ut(t)}}function aa(e){e.effectTag|=4}var sa=void 0,ua=void 0,la=void 0,ca=void 0;sa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ua=function(){},la=function(e,t,n,i,o){var a=e.memoizedProps;if(a!==i){var s=t.stateNode;switch(_r(vr.current),e=null,n){case"input":a=yt(s,a),i=yt(s,i),e=[];break;case"option":a=qn(s,a),i=qn(s,i),e=[];break;case"select":a=r({},a,{value:void 0}),i=r({},i,{value:void 0}),e=[];break;case"textarea":a=Yn(s,a),i=Yn(s,i),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof i.onClick&&(s.onclick=pi)}fi(n,i),s=n=void 0;var u=null;for(n in a)if(!i.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var l=a[n];for(s in l)l.hasOwnProperty(s)&&(u||(u={}),u[s]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(y.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in i){var c=i[n];if(l=null!=a?a[n]:void 0,i.hasOwnProperty(n)&&c!==l&&(null!=c||null!=l))if("style"===n)if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(u||(u={}),u[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(u||(u={}),u[s]=c[s])}else u||(e||(e=[]),e.push(n,u)),u=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(e=e||[]).push(n,""+c)):"children"===n?l===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(y.hasOwnProperty(n)?(null!=c&&hi(o,n),e||l===c||(e=[])):(e=e||[]).push(n,c))}u&&(e=e||[]).push("style",u),o=e,(t.updateQueue=o)&&aa(t)}},ca=function(e,t,n,i){n!==i&&aa(t)};var fa="function"==typeof WeakSet?WeakSet:Set;function da(e,t){var n=t.source,i=t.stack;null===i&&null!==n&&(i=ut(n)),null!==n&&st(n.type),t=t.value,null!==e&&1===e.tag&&st(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function ha(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Xa(e,t)}else t.current=null}function pa(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)!==Tr){var r=i.destroy;i.destroy=void 0,void 0!==r&&r()}(i.tag&t)!==Tr&&(r=i.create,i.destroy=r()),i=i.next}while(i!==n)}}function ma(e){switch("function"==typeof Hi&&Hi(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var i=n.destroy;if(void 0!==i){var r=e;try{i()}catch(e){Xa(r,e)}}n=n.next}while(n!==t)}break;case 1:if(ha(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Xa(e,t)}break;case 5:ha(e);break;case 4:va(e)}}function ba(e){return 5===e.tag||3===e.tag||4===e.tag}function ga(e){e:{for(var t=e.return;null!==t;){if(ba(t)){var n=t;break e}t=t.return}a("160"),n=void 0}var i=t=void 0;switch(n.tag){case 5:t=n.stateNode,i=!1;break;case 3:case 4:t=n.stateNode.containerInfo,i=!0;break;default:a("161")}16&n.effectTag&&(oi(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ba(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var r=e;;){if(5===r.tag||6===r.tag)if(n)if(i){var o=t,s=r.stateNode,u=n;8===o.nodeType?o.parentNode.insertBefore(s,u):o.insertBefore(s,u)}else t.insertBefore(r.stateNode,n);else i?(s=t,u=r.stateNode,8===s.nodeType?(o=s.parentNode).insertBefore(u,s):(o=s).appendChild(u),null!=(s=s._reactRootContainer)||null!==o.onclick||(o.onclick=pi)):t.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function va(e){for(var t=e,n=!1,i=void 0,r=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:i=n.stateNode,r=!1;break e;case 3:case 4:i=n.stateNode.containerInfo,r=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var o=t,s=o;;)if(ma(s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===o)break;for(;null===s.sibling;){if(null===s.return||s.return===o)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(o=i,s=t.stateNode,8===o.nodeType?o.parentNode.removeChild(s):o.removeChild(s)):i.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){i=t.stateNode.containerInfo,r=!0,t.child.return=t,t=t.child;continue}}else if(ma(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function ya(e,t){switch(t.tag){case 0:case 11:case 14:case 15:pa(Ar,Ir,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var i=t.memoizedProps;e=null!==e?e.memoizedProps:i;var r=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&function(e,t,n,i,r){e[D]=r,"input"===n&&"radio"===r.type&&null!=r.name&&_t(e,r),di(n,i),i=di(n,r);for(var o=0;o<t.length;o+=2){var a=t[o],s=t[o+1];"style"===a?li(e,s):"dangerouslySetInnerHTML"===a?ri(e,s):"children"===a?oi(e,s):gt(e,a,s,i)}switch(n){case"input":xt(e,r);break;case"textarea":$n(e,r);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!r.multiple,null!=(n=r.value)?Xn(e,!!r.multiple,n,!1):t!==!!r.multiple&&(null!=r.defaultValue?Xn(e,!!r.multiple,r.defaultValue,!0):Xn(e,!!r.multiple,r.multiple?[]:"",!1))}}(n,o,r,e,i)}break;case 6:null===t.stateNode&&a("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,i=void 0,e=t,null===n?i=!1:(i=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=xs())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var i=n.stateNode;if(t)i.style.display="none";else{i=n.stateNode;var r=n.memoizedProps.style;r=null!=r&&r.hasOwnProperty("display")?r.display:null,i.style.display=ui("display",r)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(i=n.child.sibling).return=n,n=i;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,i),null!==(n=t.updateQueue)){t.updateQueue=null;var s=t.stateNode;null===s&&(s=t.stateNode=new fa),n.forEach(function(e){var n=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),t=Ya(t=xs(),e),null!==(e=$a(e,t))&&(Qi(e,t),0!==(t=e.expirationTime)&&ks(e,t))}.bind(null,t,e);s.has(e)||(s.add(e),e.then(n,n))})}break;case 17:break;default:a("163")}}var wa="function"==typeof WeakMap?WeakMap:Map;function _a(e,t,n){(n=Jo(n)).tag=Ko,n.payload={element:null};var i=t.value;return n.callback=function(){Ps(i),da(e,t)},n}function xa(e,t,n){(n=Jo(n)).tag=Ko;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var r=t.value;n.payload=function(){return i(r)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof i&&(null===Ua?Ua=new Set([this]):Ua.add(this));var n=t.value,r=t.stack;da(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function ka(e){switch(e.tag){case 1:Di(e.type)&&Li();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return kr(),Mi(),0!=(64&(t=e.effectTag))&&a("285"),e.effectTag=-2049&t|64,e;case 5:return Sr(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 4:return kr(),null;case 10:return Bo(e),null;default:return null}}var Ea=We.ReactCurrentDispatcher,Sa=We.ReactCurrentOwner,Ta=1073741822,Ca=!1,Aa=null,Ia=null,Oa=0,Na=-1,Pa=!1,Ra=null,Da=!1,La=null,Ma=null,ja=null,Ua=null;function Fa(){if(null!==Aa)for(var e=Aa.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Li();break;case 3:kr(),Mi();break;case 5:Sr(t);break;case 4:kr();break;case 10:Bo(t)}e=e.return}Ia=null,Oa=0,Na=-1,Pa=!1,Aa=null}function Ba(){for(;null!==Ra;){var e=Ra.effectTag;if(16&e&&oi(Ra.stateNode,""),128&e){var t=Ra.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:ga(Ra),Ra.effectTag&=-3;break;case 6:ga(Ra),Ra.effectTag&=-3,ya(Ra.alternate,Ra);break;case 4:ya(Ra.alternate,Ra);break;case 8:va(e=Ra),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}Ra=Ra.nextEffect}}function za(){for(;null!==Ra;){if(256&Ra.effectTag)e:{var e=Ra.alternate,t=Ra;switch(t.tag){case 0:case 11:case 15:pa(Cr,Tr,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,i=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:ir(t.type,n),i),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:a("163")}}Ra=Ra.nextEffect}}function Ha(e,t){for(;null!==Ra;){var n=Ra.effectTag;if(36&n){var i=Ra.alternate,r=Ra,o=t;switch(r.tag){case 0:case 11:case 15:pa(Or,Nr,r);break;case 1:var s=r.stateNode;if(4&r.effectTag)if(null===i)s.componentDidMount();else{var u=r.elementType===r.type?i.memoizedProps:ir(r.type,i.memoizedProps);s.componentDidUpdate(u,i.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}null!==(i=r.updateQueue)&&ia(0,i,s);break;case 3:if(null!==(i=r.updateQueue)){if(s=null,null!==r.child)switch(r.child.tag){case 5:s=r.child.stateNode;break;case 1:s=r.child.stateNode}ia(0,i,s)}break;case 5:o=r.stateNode,null===i&&4&r.effectTag&&gi(r.type,r.memoizedProps)&&o.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}128&n&&(null!==(r=Ra.ref)&&(o=Ra.stateNode,"function"==typeof r?r(o):r.current=o)),512&n&&(La=e),Ra=Ra.nextEffect}}function Va(){null!==Ma&&xi(Ma),null!==ja&&ja()}function Wa(e,t){Da=Ca=!0,e.current===t&&a("177");var n=e.pendingCommitExpirationTime;0===n&&a("261"),e.pendingCommitExpirationTime=0;var i=t.expirationTime,r=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?Qi(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Qi(e,t)):t>n&&Qi(e,t)}nr(0,e)}(e,r>i?r:i),Sa.current=null,i=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,i=t.firstEffect):i=t:i=t.firstEffect,mi=En,bi=function(){var e=Mn();if(jn(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var i=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{t.nodeType,r.nodeType}catch(e){t=null;break e}var o=0,a=-1,s=-1,u=0,l=0,c=e,f=null;t:for(;;){for(var d;c!==t||0!==i&&3!==c.nodeType||(a=o+i),c!==r||0!==n&&3!==c.nodeType||(s=o+n),3===c.nodeType&&(o+=c.nodeValue.length),null!==(d=c.firstChild);)f=c,c=d;for(;;){if(c===e)break t;if(f===t&&++u===i&&(a=o),f===r&&++l===n&&(s=o),null!==(d=c.nextSibling))break;f=(c=f).parentNode}c=d}t=-1===a||-1===s?null:{start:a,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),En=!1,Ra=i;null!==Ra;){r=!1;var s=void 0;try{za()}catch(e){r=!0,s=e}r&&(null===Ra&&a("178"),Xa(Ra,s),null!==Ra&&(Ra=Ra.nextEffect))}for(Ra=i;null!==Ra;){r=!1,s=void 0;try{Ba()}catch(e){r=!0,s=e}r&&(null===Ra&&a("178"),Xa(Ra,s),null!==Ra&&(Ra=Ra.nextEffect))}for(Un(bi),bi=null,En=!!mi,mi=null,e.current=t,Ra=i;null!==Ra;){r=!1,s=void 0;try{Ha(e,n)}catch(e){r=!0,s=e}r&&(null===Ra&&a("178"),Xa(Ra,s),null!==Ra&&(Ra=Ra.nextEffect))}if(null!==i&&null!==La){var u=function(e,t){ja=Ma=La=null;var n=rs;rs=!0;do{if(512&t.effectTag){var i=!1,r=void 0;try{var o=t;pa(Rr,Tr,o),pa(Tr,Pr,o)}catch(e){i=!0,r=e}i&&Xa(t,r)}t=t.nextEffect}while(null!==t);rs=n,0!==(n=e.expirationTime)&&ks(e,n),cs||rs||As(1073741823,!1)}.bind(null,e,i);Ma=o.unstable_runWithPriority(o.unstable_NormalPriority,function(){return _i(u)}),ja=u}Ca=Da=!1,"function"==typeof zi&&zi(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(Ua=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function Ga(e){for(;;){var t=e.alternate,n=e.return,i=e.sibling;if(0==(1024&e.effectTag)){Aa=e;e:{var o=t,s=Oa,u=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Di(t.type)&&Li();break;case 3:kr(),Mi(),(u=t.stateNode).pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),null!==o&&null!==o.child||(yo(t),t.effectTag&=-3),ua(t);break;case 5:Sr(t);var l=_r(wr.current);if(s=t.type,null!==o&&null!=t.stateNode)la(o,t,s,u,l),o.ref!==t.ref&&(t.effectTag|=128);else if(u){var c=_r(vr.current);if(yo(t)){o=(u=t).stateNode;var f=u.type,d=u.memoizedProps,h=l;switch(o[R]=u,o[D]=d,s=void 0,l=f){case"iframe":case"object":Sn("load",o);break;case"video":case"audio":for(f=0;f<te.length;f++)Sn(te[f],o);break;case"source":Sn("error",o);break;case"img":case"image":case"link":Sn("error",o),Sn("load",o);break;case"form":Sn("reset",o),Sn("submit",o);break;case"details":Sn("toggle",o);break;case"input":wt(o,d),Sn("invalid",o),hi(h,"onChange");break;case"select":o._wrapperState={wasMultiple:!!d.multiple},Sn("invalid",o),hi(h,"onChange");break;case"textarea":Jn(o,d),Sn("invalid",o),hi(h,"onChange")}for(s in fi(l,d),f=null,d)d.hasOwnProperty(s)&&(c=d[s],"children"===s?"string"==typeof c?o.textContent!==c&&(f=["children",c]):"number"==typeof c&&o.textContent!==""+c&&(f=["children",""+c]):y.hasOwnProperty(s)&&null!=c&&hi(h,s));switch(l){case"input":He(o),kt(o,d,!0);break;case"textarea":He(o),Zn(o);break;case"select":case"option":break;default:"function"==typeof d.onClick&&(o.onclick=pi)}s=f,u.updateQueue=s,(u=null!==s)&&aa(t)}else{d=t,h=s,o=u,f=9===l.nodeType?l:l.ownerDocument,c===Qn.html&&(c=ei(h)),c===Qn.html?"script"===h?((o=f.createElement("div")).innerHTML="<script><\/script>",f=o.removeChild(o.firstChild)):"string"==typeof o.is?f=f.createElement(h,{is:o.is}):(f=f.createElement(h),"select"===h&&(h=f,o.multiple?h.multiple=!0:o.size&&(h.size=o.size))):f=f.createElementNS(c,h),(o=f)[R]=d,o[D]=u,sa(o,t,!1,!1),h=o;var p=l,m=di(f=s,d=u);switch(f){case"iframe":case"object":Sn("load",h),l=d;break;case"video":case"audio":for(l=0;l<te.length;l++)Sn(te[l],h);l=d;break;case"source":Sn("error",h),l=d;break;case"img":case"image":case"link":Sn("error",h),Sn("load",h),l=d;break;case"form":Sn("reset",h),Sn("submit",h),l=d;break;case"details":Sn("toggle",h),l=d;break;case"input":wt(h,d),l=yt(h,d),Sn("invalid",h),hi(p,"onChange");break;case"option":l=qn(h,d);break;case"select":h._wrapperState={wasMultiple:!!d.multiple},l=r({},d,{value:void 0}),Sn("invalid",h),hi(p,"onChange");break;case"textarea":Jn(h,d),l=Yn(h,d),Sn("invalid",h),hi(p,"onChange");break;default:l=d}fi(f,l),c=void 0;var b=f,g=h,v=l;for(c in v)if(v.hasOwnProperty(c)){var w=v[c];"style"===c?li(g,w):"dangerouslySetInnerHTML"===c?null!=(w=w?w.__html:void 0)&&ri(g,w):"children"===c?"string"==typeof w?("textarea"!==b||""!==w)&&oi(g,w):"number"==typeof w&&oi(g,""+w):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(y.hasOwnProperty(c)?null!=w&&hi(p,c):null!=w&&gt(g,c,w,m))}switch(f){case"input":He(h),kt(h,d,!1);break;case"textarea":He(h),Zn(h);break;case"option":null!=d.value&&h.setAttribute("value",""+vt(d.value));break;case"select":(l=h).multiple=!!d.multiple,null!=(h=d.value)?Xn(l,!!d.multiple,h,!1):null!=d.defaultValue&&Xn(l,!!d.multiple,d.defaultValue,!0);break;default:"function"==typeof l.onClick&&(h.onclick=pi)}(u=gi(s,u))&&aa(t),t.stateNode=o}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 6:o&&null!=t.stateNode?ca(o,t,o.memoizedProps,u):("string"!=typeof u&&(null===t.stateNode&&a("166")),o=_r(wr.current),_r(vr.current),yo(t)?(s=(u=t).stateNode,o=u.memoizedProps,s[R]=u,(u=s.nodeValue!==o)&&aa(t)):(s=t,(u=(9===o.nodeType?o:o.ownerDocument).createTextNode(u))[R]=t,s.stateNode=u));break;case 11:break;case 13:if(u=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=s,Aa=t;break e}u=null!==u,s=null!==o&&null!==o.memoizedState,null!==o&&!u&&s&&(null!==(o=o.child.sibling)&&(null!==(l=t.firstEffect)?(t.firstEffect=o,o.nextEffect=l):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),(u||s)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:kr(),ua(t);break;case 10:Bo(t);break;case 9:case 14:break;case 17:Di(t.type)&&Li();break;case 18:break;default:a("156")}Aa=null}if(t=e,1===Oa||1!==t.childExpirationTime){for(u=0,s=t.child;null!==s;)(o=s.expirationTime)>u&&(u=o),(l=s.childExpirationTime)>u&&(u=l),s=s.sibling;t.childExpirationTime=u}if(null!==Aa)return Aa;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=ka(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==i)return i;if(null===n)break;e=n}return null}function Ka(e){var t=Do(e.alternate,e,Oa);return e.memoizedProps=e.pendingProps,null===t&&(t=Ga(e)),Sa.current=null,t}function qa(e,t){Ca&&a("243"),Va(),Ca=!0;var n=Ea.current;Ea.current=uo;var i=e.nextExpirationTimeToWorkOn;i===Oa&&e===Ia&&null!==Aa||(Fa(),Oa=i,Aa=qi((Ia=e).current,null),e.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(t)for(;null!==Aa&&!Ts();)Aa=Ka(Aa);else for(;null!==Aa;)Aa=Ka(Aa)}catch(t){if(Uo=jo=Mo=null,$r(),null===Aa)r=!0,Ps(t);else{null===Aa&&a("271");var o=Aa,s=o.return;if(null!==s){e:{var u=e,l=s,c=o,f=t;if(s=Oa,c.effectTag|=1024,c.firstEffect=c.lastEffect=null,null!==f&&"object"==typeof f&&"function"==typeof f.then){var d=f;f=l;var h=-1,p=-1;do{if(13===f.tag){var m=f.alternate;if(null!==m&&null!==(m=m.memoizedState)){p=10*(1073741822-m.timedOutAt);break}"number"==typeof(m=f.pendingProps.maxDuration)&&(0>=m?h=0:(-1===h||m<h)&&(h=m))}f=f.return}while(null!==f);f=l;do{if((m=13===f.tag)&&(m=void 0!==f.memoizedProps.fallback&&null===f.memoizedState),m){if(null===(l=f.updateQueue)?((l=new Set).add(d),f.updateQueue=l):l.add(d),0==(1&f.mode)){f.effectTag|=64,c.effectTag&=-1957,1===c.tag&&(null===c.alternate?c.tag=17:((s=Jo(1073741823)).tag=Go,Zo(c,s))),c.expirationTime=1073741823;break e}l=s;var b=(c=u).pingCache;null===b?(b=c.pingCache=new wa,m=new Set,b.set(d,m)):void 0===(m=b.get(d))&&(m=new Set,b.set(d,m)),m.has(l)||(m.add(l),c=Ja.bind(null,c,d,l),d.then(c,c)),-1===h?u=1073741823:(-1===p&&(p=10*(1073741822-tr(u,s))-5e3),u=p+h),0<=u&&Na<u&&(Na=u),f.effectTag|=2048,f.expirationTime=s;break e}f=f.return}while(null!==f);f=Error((st(c.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ut(c))}Pa=!0,f=oa(f,c),u=l;do{switch(u.tag){case 3:u.effectTag|=2048,u.expirationTime=s,Qo(u,s=_a(u,f,s));break e;case 1:if(h=f,p=u.type,c=u.stateNode,0==(64&u.effectTag)&&("function"==typeof p.getDerivedStateFromError||null!==c&&"function"==typeof c.componentDidCatch&&(null===Ua||!Ua.has(c)))){u.effectTag|=2048,u.expirationTime=s,Qo(u,s=xa(u,h,s));break e}}u=u.return}while(null!==u)}Aa=Ga(o);continue}r=!0,Ps(t)}}break}if(Ca=!1,Ea.current=n,Uo=jo=Mo=null,$r(),r)Ia=null,e.finishedWork=null;else if(null!==Aa)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&a("281"),Ia=null,Pa){if(r=e.latestPendingTime,o=e.latestSuspendedTime,s=e.latestPingedTime,0!==r&&r<i||0!==o&&o<i||0!==s&&s<i)return er(e,i),void _s(e,n,i,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,i=e.nextExpirationTimeToWorkOn=i,t=e.expirationTime=1073741823,void _s(e,n,i,t,-1)}t&&-1!==Na?(er(e,i),(t=10*(1073741822-tr(e,i)))<Na&&(Na=t),t=10*(1073741822-xs()),t=Na-t,_s(e,n,i,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=i,e.finishedWork=n)}}function Xa(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var i=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===Ua||!Ua.has(i)))return Zo(n,e=xa(n,e=oa(t,e),1073741823)),void Za(n,1073741823);break;case 3:return Zo(n,e=_a(n,e=oa(t,e),1073741823)),void Za(n,1073741823)}n=n.return}3===e.tag&&(Zo(e,n=_a(e,n=oa(t,e),1073741823)),Za(e,1073741823))}function Ya(e,t){var n=o.unstable_getCurrentPriorityLevel(),i=void 0;if(0==(1&t.mode))i=1073741823;else if(Ca&&!Da)i=Oa;else{switch(n){case o.unstable_ImmediatePriority:i=1073741823;break;case o.unstable_UserBlockingPriority:i=1073741822-10*(1+((1073741822-e+15)/10|0));break;case o.unstable_NormalPriority:i=1073741822-25*(1+((1073741822-e+500)/25|0));break;case o.unstable_LowPriority:case o.unstable_IdlePriority:i=1;break;default:a("313")}null!==Ia&&i===Oa&&--i}return n===o.unstable_UserBlockingPriority&&(0===ss||i<ss)&&(ss=i),i}function Ja(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),null!==Ia&&Oa===n?Ia=null:(t=e.earliestSuspendedTime,i=e.latestSuspendedTime,0!==t&&n<=t&&n>=i&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),nr(n,e),0!==(n=e.expirationTime)&&ks(e,n)))}function $a(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var i=e.return,r=null;if(null===i&&3===e.tag)r=e.stateNode;else for(;null!==i;){if(n=i.alternate,i.childExpirationTime<t&&(i.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===i.return&&3===i.tag){r=i.stateNode;break}i=i.return}return r}function Za(e,t){null!==(e=$a(e,t))&&(!Ca&&0!==Oa&&t>Oa&&Fa(),Qi(e,t),Ca&&!Da&&Ia===e||ks(e,e.expirationTime),gs>bs&&(gs=0,a("185")))}function Qa(e,t,n,i,r){return o.unstable_runWithPriority(o.unstable_ImmediatePriority,function(){return e(t,n,i,r)})}var es=null,ts=null,ns=0,is=void 0,rs=!1,os=null,as=0,ss=0,us=!1,ls=null,cs=!1,fs=!1,ds=null,hs=o.unstable_now(),ps=1073741822-(hs/10|0),ms=ps,bs=50,gs=0,vs=null;function ys(){ps=1073741822-((o.unstable_now()-hs)/10|0)}function ws(e,t){if(0!==ns){if(t<ns)return;null!==is&&o.unstable_cancelCallback(is)}ns=t,e=o.unstable_now()-hs,is=o.unstable_scheduleCallback(Cs,{timeout:10*(1073741822-t)-e})}function _s(e,t,n,i,r){e.expirationTime=i,0!==r||Ts()?0<r&&(e.timeoutHandle=yi(function(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,ys(),ms=ps,Is(e,n)}.bind(null,e,t,n),r)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function xs(){return rs?ms:(Es(),0!==as&&1!==as||(ys(),ms=ps),ms)}function ks(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===ts?(es=ts=e,e.nextScheduledRoot=e):(ts=ts.nextScheduledRoot=e).nextScheduledRoot=es):t>e.expirationTime&&(e.expirationTime=t),rs||(cs?fs&&(os=e,as=1073741823,Os(e,1073741823,!1)):1073741823===t?As(1073741823,!1):ws(e,t))}function Es(){var e=0,t=null;if(null!==ts)for(var n=ts,i=es;null!==i;){var r=i.expirationTime;if(0===r){if((null===n||null===ts)&&a("244"),i===i.nextScheduledRoot){es=ts=i.nextScheduledRoot=null;break}if(i===es)es=r=i.nextScheduledRoot,ts.nextScheduledRoot=r,i.nextScheduledRoot=null;else{if(i===ts){(ts=n).nextScheduledRoot=es,i.nextScheduledRoot=null;break}n.nextScheduledRoot=i.nextScheduledRoot,i.nextScheduledRoot=null}i=n.nextScheduledRoot}else{if(r>e&&(e=r,t=i),i===ts)break;if(1073741823===e)break;n=i,i=i.nextScheduledRoot}}os=t,as=e}var Ss=!1;function Ts(){return!!Ss||!!o.unstable_shouldYield()&&(Ss=!0)}function Cs(){try{if(!Ts()&&null!==es){ys();var e=es;do{var t=e.expirationTime;0!==t&&ps<=t&&(e.nextExpirationTimeToWorkOn=ps),e=e.nextScheduledRoot}while(e!==es)}As(0,!0)}finally{Ss=!1}}function As(e,t){if(Es(),t)for(ys(),ms=ps;null!==os&&0!==as&&e<=as&&!(Ss&&ps>as);)Os(os,as,ps>as),Es(),ys(),ms=ps;else for(;null!==os&&0!==as&&e<=as;)Os(os,as,!1),Es();if(t&&(ns=0,is=null),0!==as&&ws(os,as),gs=0,vs=null,null!==ds)for(e=ds,ds=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){us||(us=!0,ls=e)}}if(us)throw e=ls,ls=null,us=!1,e}function Is(e,t){rs&&a("253"),os=e,as=t,Os(e,t,!1),As(1073741823,!1)}function Os(e,t,n){if(rs&&a("245"),rs=!0,n){var i=e.finishedWork;null!==i?Ns(e,i,t):(e.finishedWork=null,-1!==(i=e.timeoutHandle)&&(e.timeoutHandle=-1,wi(i)),qa(e,n),null!==(i=e.finishedWork)&&(Ts()?e.finishedWork=i:Ns(e,i,t)))}else null!==(i=e.finishedWork)?Ns(e,i,t):(e.finishedWork=null,-1!==(i=e.timeoutHandle)&&(e.timeoutHandle=-1,wi(i)),qa(e,n),null!==(i=e.finishedWork)&&Ns(e,i,t));rs=!1}function Ns(e,t,n){var i=e.firstBatch;if(null!==i&&i._expirationTime>=n&&(null===ds?ds=[i]:ds.push(i),i._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===vs?gs++:(vs=e,gs=0),o.unstable_runWithPriority(o.unstable_ImmediatePriority,function(){Wa(e,t)})}function Ps(e){null===os&&a("246"),os.expirationTime=0,us||(us=!0,ls=e)}function Rs(e,t){var n=cs;cs=!0;try{return e(t)}finally{(cs=n)||rs||As(1073741823,!1)}}function Ds(e,t){if(cs&&!fs){fs=!0;try{return e(t)}finally{fs=!1}}return e(t)}function Ls(e,t,n){cs||rs||0===ss||(As(ss,!1),ss=0);var i=cs;cs=!0;try{return o.unstable_runWithPriority(o.unstable_UserBlockingPriority,function(){return e(t,n)})}finally{(cs=i)||rs||As(1073741823,!1)}}function Ms(e,t,n,i,r){var o=t.current;e:if(n){t:{2===tn(n=n._reactInternalFiber)&&1===n.tag||a("170");var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Di(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);a("171"),s=void 0}if(1===n.tag){var u=n.type;if(Di(u)){n=Ui(n,u,s);break e}}n=s}else n=Ii;return null===t.context?t.context=n:t.pendingContext=n,t=r,(r=Jo(i)).payload={element:e},null!==(t=void 0===t?null:t)&&(r.callback=t),Va(),Zo(o,r),Za(o,i),i}function js(e,t,n,i){var r=t.current;return Ms(e,t,n,r=Ya(xs(),r),i)}function Us(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Fs(e){var t=1073741822-25*(1+((1073741822-xs()+500)/25|0));t>=Ta&&(t=Ta-1),this._expirationTime=Ta=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Bs(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function zs(e,t,n){e={current:t=Gi(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Hs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Vs(e,t,n,i,r){var o=n._reactRootContainer;if(o){if("function"==typeof r){var a=r;r=function(){var e=Us(o._internalRoot);a.call(e)}}null!=e?o.legacy_renderSubtreeIntoContainer(e,t,r):o.render(t,r)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new zs(e,!1,t)}(n,i),"function"==typeof r){var s=r;r=function(){var e=Us(o._internalRoot);s.call(e)}}Ds(function(){null!=e?o.legacy_renderSubtreeIntoContainer(e,t,r):o.render(t,r)})}return Us(o._internalRoot)}function Ws(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Hs(t)||a("200"),function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Xe,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Te=function(e,t,n){switch(t){case"input":if(xt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=U(i);r||a("90"),Ve(i),xt(i,r)}}}break;case"textarea":$n(e,n);break;case"select":null!=(t=n.value)&&Xn(e,!!n.multiple,t,!1)}},Fs.prototype.render=function(e){this._defer||a("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,i=new Bs;return Ms(e,t,null,n,i._onCommit),i},Fs.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Fs.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||a("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var i=null,r=t;r!==this;)i=r,r=r._next;null===i&&a("251"),i._next=r._next,this._next=t,e.firstBatch=this}this._defer=!1,Is(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Fs.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Bs.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Bs.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&a("191",n),n()}}},zs.prototype.render=function(e,t){var n=this._internalRoot,i=new Bs;return null!==(t=void 0===t?null:t)&&i.then(t),js(e,n,null,i._onCommit),i},zs.prototype.unmount=function(e){var t=this._internalRoot,n=new Bs;return null!==(e=void 0===e?null:e)&&n.then(e),js(null,t,null,n._onCommit),n},zs.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var i=this._internalRoot,r=new Bs;return null!==(n=void 0===n?null:n)&&r.then(n),js(t,i,e,r._onCommit),r},zs.prototype.createBatch=function(){var e=new Fs(this),t=e._expirationTime,n=this._internalRoot,i=n.firstBatch;if(null===i)n.firstBatch=e,e._next=null;else{for(n=null;null!==i&&i._expirationTime>=t;)n=i,i=i._next;e._next=i,null!==n&&(n._next=e)}return e},Pe=Rs,Re=Ls,De=function(){rs||0===ss||(As(ss,!1),ss=0)};var Gs={createPortal:Ws,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),e=null===(e=rn(t))?null:e.stateNode},hydrate:function(e,t,n){return Hs(t)||a("200"),Vs(null,e,t,!0,n)},render:function(e,t,n){return Hs(t)||a("200"),Vs(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,i){return Hs(n)||a("200"),(null==e||void 0===e._reactInternalFiber)&&a("38"),Vs(e,t,n,!1,i)},unmountComponentAtNode:function(e){return Hs(e)||a("40"),!!e._reactRootContainer&&(Ds(function(){Vs(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ws.apply(void 0,arguments)},unstable_batchedUpdates:Rs,unstable_interactiveUpdates:Ls,flushSync:function(e,t){rs&&a("187");var n=cs;cs=!0;try{return Qa(e,t)}finally{cs=n,As(1073741823,!1)}},unstable_createRoot:function(e,t){return Hs(e)||a("299","unstable_createRoot"),new zs(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=cs;cs=!0;try{Qa(e)}finally{(cs=t)||rs||As(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[M,j,U,I.injectEventPluginsByName,v,W,function(e){T(e,V)},Oe,Ne,An,N]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);zi=Vi(function(e){return t.onCommitFiberRoot(n,e)}),Hi=Vi(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}})(r({},e,{overrideProps:null,currentDispatcherRef:We.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:L,bundleType:0,version:"16.8.6",rendererPackageName:"react-dom"});var Ks={default:Gs},qs=Ks&&Gs||Ks;e.exports=qs.default||qs},function(e,t,n){"use strict";e.exports=n(46)},function(e,t,n){"use strict";(function(e){
/** @license React v0.13.6
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Object.defineProperty(t,"__esModule",{value:!0});var n=null,i=!1,r=3,o=-1,a=-1,s=!1,u=!1;function l(){if(!s){var e=n.expirationTime;u?k():u=!0,x(d,e)}}function c(){var e=n,t=n.next;if(n===t)n=null;else{var i=n.previous;n=i.next=t,t.previous=i}e.next=e.previous=null,i=e.callback,t=e.expirationTime,e=e.priorityLevel;var o=r,s=a;r=e,a=t;try{var u=i()}finally{r=o,a=s}if("function"==typeof u)if(u={callback:u,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=u.next=u.previous=u;else{i=null,e=n;do{if(e.expirationTime>=t){i=e;break}e=e.next}while(e!==n);null===i?i=n:i===n&&(n=u,l()),(t=i.previous).next=i.previous=u,u.next=i,u.previous=t}}function f(){if(-1===o&&null!==n&&1===n.priorityLevel){s=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?l():u=!1}}}function d(e){s=!0;var r=i;i=e;try{if(e)for(;null!==n;){var o=t.unstable_now();if(!(n.expirationTime<=o))break;do{c()}while(null!==n&&n.expirationTime<=o)}else if(null!==n)do{c()}while(null!==n&&!E())}finally{s=!1,i=r,null!==n?l():u=!1,f()}}var h,p,m=Date,b="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,v="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,y="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(e){h=v(function(t){g(p),e(t)}),p=b(function(){y(h),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var _=performance;t.unstable_now=function(){return _.now()}}else t.unstable_now=function(){return m.now()};var x,k,E,S=null;if("undefined"!=typeof window?S=window:void 0!==e&&(S=e),S&&S._schedMock){var T=S._schedMock;x=T[0],k=T[1],E=T[2],t.unstable_now=T[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var C=null,A=function(e){if(null!==C)try{C(e)}finally{C=null}};x=function(e){null!==C?setTimeout(x,0,e):(C=e,setTimeout(A,0,!1))},k=function(){C=null},E=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof v&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var I=null,O=!1,N=-1,P=!1,R=!1,D=0,L=33,M=33;E=function(){return D<=t.unstable_now()};var j=new MessageChannel,U=j.port2;j.port1.onmessage=function(){O=!1;var e=I,n=N;I=null,N=-1;var i=t.unstable_now(),r=!1;if(0>=D-i){if(!(-1!==n&&n<=i))return P||(P=!0,w(F)),I=e,void(N=n);r=!0}if(null!==e){R=!0;try{e(r)}finally{R=!1}}};var F=function(e){if(null!==I){w(F);var t=e-D+M;t<M&&L<M?(8>t&&(t=8),M=t<L?L:t):L=t,D=e+M,O||(O=!0,U.postMessage(void 0))}else P=!1};x=function(e,t){I=e,N=t,R||0>t?U.postMessage(void 0):P||(P=!0,w(F))},k=function(){I=null,O=!1,N=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=r,a=o;r=e,o=t.unstable_now();try{return n()}finally{r=i,o=a,f()}},t.unstable_next=function(e){switch(r){case 1:case 2:case 3:var n=3;break;default:n=r}var i=r,a=o;r=n,o=t.unstable_now();try{return e()}finally{r=i,o=a,f()}},t.unstable_scheduleCallback=function(e,i){var a=-1!==o?o:t.unstable_now();if("object"==typeof i&&null!==i&&"number"==typeof i.timeout)i=a+i.timeout;else switch(r){case 1:i=a+-1;break;case 2:i=a+250;break;case 5:i=a+1073741823;break;case 4:i=a+1e4;break;default:i=a+5e3}if(e={callback:e,priorityLevel:r,expirationTime:i,next:null,previous:null},null===n)n=e.next=e.previous=e,l();else{a=null;var s=n;do{if(s.expirationTime>i){a=s;break}s=s.next}while(s!==n);null===a?a=n:a===n&&(n=e,l()),(i=a.previous).next=a.previous=e,e.next=a,e.previous=i}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var i=e.previous;i.next=t,t.previous=i}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=r;return function(){var i=r,a=o;r=n,o=t.unstable_now();try{return e.apply(this,arguments)}finally{r=i,o=a,f()}}},t.unstable_getCurrentPriorityLevel=function(){return r},t.unstable_shouldYield=function(){return!i&&(null!==n&&n.expirationTime<a||E())},t.unstable_continueExecution=function(){null!==n&&l()},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return n}}).call(this,n(5))},function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";t.__esModule=!0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),r=Promise.resolve(),o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return i.uiConfig=n.uiConfig,i.firebaseAuth=n.firebaseAuth,i.className=n.className,i.uiCallback=n.uiCallback,i.unregisterAuthObserver=function(){},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){var e=this;n(2);var t=n(7);return r.then(function(){e.firebaseUiWidget=t.auth.AuthUI.getInstance()||new t.auth.AuthUI(e.firebaseAuth),"popup"===e.uiConfig.signInFlow&&e.firebaseUiWidget.reset(),e.userSignedIn=!1,e.unregisterAuthObserver=e.firebaseAuth.onAuthStateChanged(function(t){!t&&e.userSignedIn&&e.firebaseUiWidget.reset(),e.userSignedIn=!!t}),e.uiCallback&&e.uiCallback(e.firebaseUiWidget),e.firebaseUiWidget.start("#firebaseui_container",e.uiConfig)})},t.prototype.componentWillUnmount=function(){var e=this;return r=r.then(function(){return e.unregisterAuthObserver(),e.firebaseUiWidget.delete()})},t.prototype.render=function(){return i.default.createElement("div",{className:this.className,id:"firebaseui_container"})},t}(i.default.Component);t.default=o},function(e,t){e.exports=n(2)},function(e,t,n){var i=n(3);"string"==typeof i&&(i=[[e.i,i,""]]);n(5)(i,{hmr:!0,transform:void 0,insertInto:void 0}),i.locals&&(e.exports=i.locals)},function(e,t,n){(t=e.exports=n(4)(!1)).push([e.i,"@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700);",""]),t.push([e.i,'.mdl-button{background:0 0;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;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:0;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:active,.mdl-button--raised.mdl-button--colored:focus:not(:active),.mdl-button--raised.mdl-button--colored:hover{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%;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:active,.mdl-button--fab.mdl-button--colored:focus:not(:active),.mdl-button--fab.mdl-button--colored:hover{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%;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-card{display:flex;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;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;box-sizing:border-box}.mdl-card__title{align-items:center;color:#000;display:block;display:flex;justify-content:stretch;line-height:normal;padding:16px;perspective-origin:165px 56px;transform-origin:165px 56px;box-sizing:border-box}.mdl-card__title.mdl-card--border{border-bottom:1px solid rgba(0,0,0,.1)}.mdl-card__title-text{align-self:flex-end;color:inherit;display:block;display:flex;font-size:24px;font-weight:300;line-height:normal;overflow:hidden;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;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;box-sizing:border-box}.mdl-card__actions.mdl-card--border{border-top:1px solid rgba(0,0,0,.1)}.mdl-card--expand{flex-grow:1}.mdl-card__menu{position:absolute;right:16px;top:16px}.mdl-dialog{border:none;box-shadow:0 9px 46px 8px rgba(0,0,0,.14),0 11px 15px -7px rgba(0,0,0,.12),0 24px 38px 3px rgba(0,0,0,.2);width:280px}.mdl-dialog__title{padding:24px 24px 0;margin:0;font-size:2.5rem}.mdl-dialog__actions{padding:8px 8px 8px 24px;display:flex;flex-direction:row-reverse;flex-wrap:wrap}.mdl-dialog__actions>*{margin-right:8px;height:36px}.mdl-dialog__actions>:first-child{margin-right:0}.mdl-dialog__actions--full-width{padding:0 0 8px}.mdl-dialog__actions--full-width>*{height:48px;flex:0 0 100%;padding-right:16px;margin-right:0;text-align:right}.mdl-dialog__content{padding:20px 24px 24px;color:rgba(0,0,0,.54)}.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;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: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:linear-gradient(90deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),linear-gradient(90deg,#3f51b5,#3f51b5);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: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;animation-name:indeterminate1;animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:linear}.mdl-progress.mdl-progress--indeterminate>.bar3,.mdl-progress.mdl-progress__indeterminate>.bar3{background-image:none;background-color:#3f51b5;animation-name:indeterminate2;animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes indeterminate1{0%{left:0;width:0}50%{left:25%;width:75%}75%{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}}.mdl-shadow--2dp{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-shadow--3dp{box-shadow:0 3px 4px 0 rgba(0,0,0,.14),0 3px 3px -2px rgba(0,0,0,.2),0 1px 8px 0 rgba(0,0,0,.12)}.mdl-shadow--4dp{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)}.mdl-shadow--6dp{box-shadow:0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2)}.mdl-shadow--8dp{box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12),0 5px 5px -3px rgba(0,0,0,.2)}.mdl-shadow--16dp{box-shadow:0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12),0 8px 10px -5px rgba(0,0,0,.2)}.mdl-shadow--24dp{box-shadow:0 9px 46px 8px rgba(0,0,0,.14),0 11px 15px -7px rgba(0,0,0,.12),0 24px 38px 3px rgba(0,0,0,.2)}.mdl-spinner{display:inline-block;position:relative;width:28px;height:28px}.mdl-spinner:not(.is-upgraded).is-active:after{content:"Loading..."}.mdl-spinner.is-upgraded.is-active{animation:mdl-spinner__container-rotate 1.568s linear infinite}@keyframes mdl-spinner__container-rotate{to{transform:rotate(1turn)}}.mdl-spinner__layer{position:absolute;width:100%;height:100%;opacity:0}.mdl-spinner__layer-1{border-color:#42a5f5}.mdl-spinner--single-color .mdl-spinner__layer-1{border-color:#3f51b5}.mdl-spinner.is-active .mdl-spinner__layer-1{animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,mdl-spinner__layer-1-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.mdl-spinner__layer-2{border-color:#f44336}.mdl-spinner--single-color .mdl-spinner__layer-2{border-color:#3f51b5}.mdl-spinner.is-active .mdl-spinner__layer-2{animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,mdl-spinner__layer-2-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.mdl-spinner__layer-3{border-color:#fdd835}.mdl-spinner--single-color .mdl-spinner__layer-3{border-color:#3f51b5}.mdl-spinner.is-active .mdl-spinner__layer-3{animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,mdl-spinner__layer-3-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.mdl-spinner__layer-4{border-color:#4caf50}.mdl-spinner--single-color .mdl-spinner__layer-4{border-color:#3f51b5}.mdl-spinner.is-active .mdl-spinner__layer-4{animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,mdl-spinner__layer-4-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}@keyframes mdl-spinner__fill-unfill-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}to{transform:rotate(3turn)}}@keyframes mdl-spinner__layer-1-fade-in-out{0%{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdl-spinner__layer-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}}@keyframes mdl-spinner__layer-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}}@keyframes mdl-spinner__layer-4-fade-in-out{0%{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}.mdl-spinner__gap-patch{position:absolute;box-sizing:border-box;top:0;left:45%;width:10%;height:100%;overflow:hidden;border-color:inherit}.mdl-spinner__gap-patch .mdl-spinner__circle{width:1000%;left:-450%}.mdl-spinner__circle-clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:hidden;border-color:inherit}.mdl-spinner__circle-clipper.mdl-spinner__left{float:left}.mdl-spinner__circle-clipper.mdl-spinner__right{float:right}.mdl-spinner__circle-clipper .mdl-spinner__circle{width:200%}.mdl-spinner__circle{box-sizing:border-box;height:100%;border-width:3px;border-style:solid;border-color:inherit;border-bottom-color:transparent!important;border-radius:50%;animation:none;position:absolute;top:0;right:0;bottom:0;left:0}.mdl-spinner__left .mdl-spinner__circle{border-right-color:transparent!important;transform:rotate(129deg)}.mdl-spinner.is-active .mdl-spinner__left .mdl-spinner__circle{animation:mdl-spinner__left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}.mdl-spinner__right .mdl-spinner__circle{left:-100%;border-left-color:transparent!important;transform:rotate(-129deg)}.mdl-spinner.is-active .mdl-spinner__right .mdl-spinner__circle{animation:mdl-spinner__right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}@keyframes mdl-spinner__left-spin{0%{transform:rotate(130deg)}50%{transform:rotate(-5deg)}to{transform:rotate(130deg)}}@keyframes mdl-spinner__right-spin{0%{transform:rotate(-130deg)}50%{transform:rotate(5deg)}to{transform:rotate(-130deg)}}.mdl-textfield{position:relative;font-size:16px;display:inline-block;box-sizing:border-box;width:300px;max-width:100%;margin:0;padding:20px 0}.mdl-textfield .mdl-button{position:absolute;bottom:20px}.mdl-textfield--align-right{text-align:right}.mdl-textfield--full-width{width:100%}.mdl-textfield--expandable{min-width:32px;width:auto;min-height:32px}.mdl-textfield--expandable .mdl-button--icon{top:16px}.mdl-textfield__input{border:none;border-bottom:1px solid rgba(0,0,0,.12);display:block;font-size:16px;font-family:Helvetica,Arial,sans-serif;margin:0;padding:4px 0;width:100%;background:0 0;text-align:left;color:inherit}.mdl-textfield__input[type=number]{-moz-appearance:textfield}.mdl-textfield__input[type=number]::-webkit-inner-spin-button,.mdl-textfield__input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.mdl-textfield.is-focused .mdl-textfield__input{outline:0}.mdl-textfield.is-invalid .mdl-textfield__input{border-color:#d50000;box-shadow:none}.mdl-textfield.is-disabled .mdl-textfield__input,fieldset[disabled] .mdl-textfield .mdl-textfield__input{background-color:transparent;border-bottom:1px dotted rgba(0,0,0,.12);color:rgba(0,0,0,.26)}.mdl-textfield textarea.mdl-textfield__input{display:block}.mdl-textfield__label{bottom:0;color:rgba(0,0,0,.26);font-size:16px;left:0;right:0;pointer-events:none;position:absolute;display:block;top:24px;width:100%;overflow:hidden;white-space:nowrap;text-align:left}.mdl-textfield.has-placeholder .mdl-textfield__label,.mdl-textfield.is-dirty .mdl-textfield__label{visibility:hidden}.mdl-textfield--floating-label .mdl-textfield__label{transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.mdl-textfield--floating-label.has-placeholder .mdl-textfield__label{transition:none}.mdl-textfield.is-disabled.is-disabled .mdl-textfield__label,fieldset[disabled] .mdl-textfield .mdl-textfield__label{color:rgba(0,0,0,.26)}.mdl-textfield--floating-label.has-placeholder .mdl-textfield__label,.mdl-textfield--floating-label.is-dirty .mdl-textfield__label,.mdl-textfield--floating-label.is-focused .mdl-textfield__label{color:#3f51b5;font-size:12px;top:4px;visibility:visible}.mdl-textfield--floating-label.has-placeholder .mdl-textfield__expandable-holder .mdl-textfield__label,.mdl-textfield--floating-label.is-dirty .mdl-textfield__expandable-holder .mdl-textfield__label,.mdl-textfield--floating-label.is-focused .mdl-textfield__expandable-holder .mdl-textfield__label{top:-16px}.mdl-textfield--floating-label.is-invalid .mdl-textfield__label{color:#d50000;font-size:12px}.mdl-textfield__label:after{background-color:#3f51b5;bottom:20px;content:"";height:2px;left:45%;position:absolute;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);visibility:hidden;width:10px}.mdl-textfield.is-focused .mdl-textfield__label:after{left:0;visibility:visible;width:100%}.mdl-textfield.is-invalid .mdl-textfield__label:after{background-color:#d50000}.mdl-textfield__error{color:#d50000;position:absolute;font-size:12px;margin-top:3px;visibility:hidden;display:block}.mdl-textfield.is-invalid .mdl-textfield__error{visibility:visible}.mdl-textfield__expandable-holder{position:relative;margin-left:32px;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block;max-width:.1px}.mdl-textfield.is-dirty .mdl-textfield__expandable-holder,.mdl-textfield.is-focused .mdl-textfield__expandable-holder{max-width:600px}.mdl-textfield__expandable-holder .mdl-textfield__label:after{bottom:0}dialog{position:absolute;left:0;right:0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;margin:auto;border:solid;padding:1em;background:#fff;color:#000;display:block}dialog:not([open]){display:none}dialog+.backdrop{background:rgba(0,0,0,.1)}._dialog_overlay,dialog+.backdrop{position:fixed;top:0;right:0;bottom:0;left:0}dialog.fixed{position:fixed;top:50%;transform:translateY(-50%)}.firebaseui-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:visible;position:relative;text-align:left;width:100%}.firebaseui-container.mdl-card{overflow:visible}.firebaseui-card-header{padding:24px 24px 0}.firebaseui-card-content,.firebaseui-card-footer{padding:0 24px}.firebaseui-card-actions{box-sizing:border-box;display:table;font-size:14px;padding:8px 24px 24px;text-align:left;width:100%}.firebaseui-form-links{display:table-cell;vertical-align:middle;width:100%}.firebaseui-form-actions{display:table-cell;text-align:right;white-space:nowrap;width:100%}.firebaseui-subtitle,.firebaseui-title{color:rgba(0,0,0,.87);direction:ltr;font-size:20px;font-weight:500;line-height:24px;margin:0;padding:0;text-align:left}.firebaseui-title{padding-bottom:20px}.firebaseui-subtitle{margin:16px 0}.firebaseui-text{color:rgba(0,0,0,.87);direction:ltr;font-size:16px;line-height:24px;text-align:left}.firebaseui-text-emphasis{font-weight:700}.firebaseui-error{color:#dd2c00;direction:ltr;font-size:12px;line-height:16px;margin:0;text-align:left}.firebaseui-text-input-error{margin:-16px 0 16px}.firebaseui-error-wrapper{min-height:16px}.firebaseui-list-item{direction:ltr;margin:0;padding:0;text-align:left}.firebaseui-hidden{display:none}.firebaseui-relative-wrapper{position:relative}.firebaseui-label{color:rgba(0,0,0,.54);direction:ltr;font-size:16px;text-align:left}.mdl-textfield--floating-label.is-dirty .mdl-textfield__label,.mdl-textfield--floating-label.is-focused .mdl-textfield__label{color:#757575}.firebaseui-input,.firebaseui-input-invalid{border-radius:0;color:rgba(0,0,0,.87);direction:ltr;font-size:16px;width:100%}input.firebaseui-input,input.firebaseui-input-invalid{direction:ltr;text-align:left}.firebaseui-input-invalid{border-color:#dd2c00}.firebaseui-textfield{width:100%}.firebaseui-textfield.mdl-textfield .firebaseui-input{border-color:rgba(0,0,0,.12)}.firebaseui-textfield.mdl-textfield .firebaseui-label:after{background-color:#3f51b5}.firebaseui-textfield-invalid.mdl-textfield .firebaseui-input{border-color:#dd2c00}.firebaseui-textfield-invalid.mdl-textfield .firebaseui-label:after{background-color:#dd2c00}.firebaseui-button{display:inline-block;height:36px;margin-left:8px;min-width:88px}.firebaseui-link{color:#4285f4;font-variant:normal;font-weight:400;text-decoration:none}.firebaseui-link:hover{text-decoration:underline}.firebaseui-indent{margin-left:1em}.firebaseui-tos{color:#757575;direction:ltr;font-size:12px;line-height:16px;margin-bottom:24px;margin-top:0;text-align:left}.firebaseui-provider-sign-in-footer>.firebaseui-tos{text-align:center}.firebaseui-tos-list{list-style:none;text-align:right}.firebaseui-inline-list-item{display:inline-block;margin-left:5px;margin-right:5px}.firebaseui-page-provider-sign-in{background:inherit}.firebaseui-idp-list{list-style:none;margin:1em 0;padding:0}.firebaseui-idp-button{direction:ltr;font-weight:500;height:auto;line-height:normal;max-width:220px;min-height:40px;padding:8px 16px;text-align:left;width:100%}.firebaseui-idp-list>.firebaseui-list-item{margin-bottom:15px;text-align:center}.firebaseui-idp-icon-wrapper{display:table-cell;vertical-align:middle}.firebaseui-idp-icon{height:18px;width:18px}.firebaseui-idp-favicon,.firebaseui-idp-icon{border:none;display:inline-block;vertical-align:middle}.firebaseui-idp-favicon{height:14px;margin-right:5px;width:14px}.firebaseui-idp-text{color:#fff;display:table-cell;font-size:14px;padding-left:16px;text-transform:none;vertical-align:middle}.firebaseui-idp-text.firebaseui-idp-text-long{display:table-cell}.firebaseui-idp-text.firebaseui-idp-text-short{display:none}@media (max-width:268px){.firebaseui-idp-text.firebaseui-idp-text-long{display:none}.firebaseui-idp-text.firebaseui-idp-text-short{display:table-cell}}@media (max-width:320px){.firebaseui-recaptcha-container>div>div{transform:scale(.9);-webkit-transform:scale(.9);transform-origin:0 0;-webkit-transform-origin:0 0}}.firebaseui-idp-password,.firebaseui-idp-password:hover,.mdl-button.firebaseui-idp-password:active,.mdl-button.firebaseui-idp-password:focus{background-color:#db4437}.firebaseui-idp-phone,.firebaseui-idp-phone:hover,.mdl-button.firebaseui-idp-phone:active,.mdl-button.firebaseui-idp-phone:focus{background-color:#02bd7e}.firebaseui-idp-google,.firebaseui-idp-google:hover,.mdl-button.firebaseui-idp-google:active,.mdl-button.firebaseui-idp-google:focus{background-color:#fff}.firebaseui-idp-google>.firebaseui-idp-text{color:#757575}.firebaseui-idp-github,.firebaseui-idp-github:hover,.mdl-button.firebaseui-idp-github:active,.mdl-button.firebaseui-idp-github:focus{background-color:#333}.firebaseui-idp-facebook,.firebaseui-idp-facebook:hover,.mdl-button.firebaseui-idp-facebook:active,.mdl-button.firebaseui-idp-facebook:focus{background-color:#3b5998}.firebaseui-idp-twitter,.firebaseui-idp-twitter:hover,.mdl-button.firebaseui-idp-twitter:active,.mdl-button.firebaseui-idp-twitter:focus{background-color:#55acee}.firebaseui-idp-anonymous,.firebaseui-idp-anonymous:hover,.mdl-button.firebaseui-idp-anonymous:active,.mdl-button.firebaseui-idp-anonymous:focus{background-color:#f4b400}.firebaseui-info-bar{background-color:#f9edbe;border:1px solid #f0c36d;box-shadow:0 2px 4px rgba(0,0,0,.2);-webkit-box-shadow:0 2px 4px rgba(0,0,0,.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,.2);left:10%;padding:8px 16px;position:absolute;right:10%;text-align:center;top:0}.firebaseui-info-bar-message{font-size:12px;margin:0}.firebaseui-dialog{box-sizing:border-box;color:rgba(0,0,0,.87);font:16px Roboto,arial,sans-serif;height:auto;padding:24px;text-align:left}.firebaseui-dialog-icon-wrapper{display:table-cell;vertical-align:middle}.firebaseui-dialog-icon{float:left;height:40px;margin-right:24px;width:40px}.firebaseui-progress-dialog-message{display:table-cell;font-size:16px;font-weight:400;min-height:40px;vertical-align:middle}.firebaseui-progress-dialog-loading-icon{height:28px;margin:6px 30px 6px 6px;width:28px}.firebaseui-icon-done{background-image:url(https://www.gstatic.com/images/icons/material/system/2x/done_googgreen_36dp.png);background-position:50%;background-repeat:no-repeat;background-size:36px 36px}.firebaseui-phone-number{display:flex}.firebaseui-country-selector{background-image:url(https://www.gstatic.com/images/icons/material/system/1x/arrow_drop_down_grey600_18dp.png);background-position:100%;background-repeat:no-repeat;background-size:18px auto;border-radius:0;border-bottom:1px solid rgba(0,0,0,.12);color:rgba(0,0,0,.87);flex-shrink:0;font-size:16px;font-weight:400;height:auto;line-height:normal;margin:20px 24px 20px 0;padding:4px 20px 4px 0;width:90px}.firebaseui-country-selector-flag{display:inline-block;margin-right:1ex}.firebaseui-flag{background-image:url(https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/flags_sprite_2x.png);background-size:100% auto;filter:drop-shadow(1px 1px 1px rgba(0,0,0,.54));height:14px;width:24px}.firebaseui-list-box-dialog{max-height:90%;overflow:auto;padding:8px 0 0}.firebaseui-list-box-actions{padding-bottom:8px}.firebaseui-list-box-icon-wrapper{padding-right:24px}.firebaseui-list-box-icon-wrapper,.firebaseui-list-box-label-wrapper{display:table-cell;vertical-align:top}.firebaseui-list-box-dialog-button{color:rgba(0,0,0,.87);direction:ltr;font-size:16px;font-weight:400;height:auto;line-height:normal;min-height:48px;padding:14px 24px;text-align:left;text-transform:none;width:100%}.firebaseui-phone-number-error{margin-left:114px}.mdl-progress.firebaseui-busy-indicator{height:2px;left:0;position:absolute;top:55px;width:100%}.mdl-spinner.firebaseui-busy-indicator{height:56px;left:0;margin:auto;position:absolute;right:0;top:30%;width:56px}.firebaseui-callback-indicator-container .firebaseui-busy-indicator{top:0}.firebaseui-callback-indicator-container{height:120px}.firebaseui-new-password-component{display:inline-block;position:relative;width:100%}.firebaseui-input-floating-button{background-position:50%;background-repeat:no-repeat;display:block;height:24px;position:absolute;right:0;top:20px;width:24px}.firebaseui-input-toggle-on{background-image:url(https://www.gstatic.com/images/icons/material/system/1x/visibility_black_24dp.png)}.firebaseui-input-toggle-off{background-image:url(https://www.gstatic.com/images/icons/material/system/1x/visibility_off_black_24dp.png)}.firebaseui-input-toggle-focus{opacity:.87}.firebaseui-input-toggle-blur{opacity:.38}.firebaseui-recaptcha-wrapper{display:table;margin:0 auto;padding-bottom:8px}.firebaseui-recaptcha-container{display:table-cell}.firebaseui-recaptcha-error-wrapper{caption-side:bottom;display:table-caption}.firebaseui-change-phone-number-link{display:block}.firebaseui-resend-container{direction:ltr;margin:20px 0;text-align:center}.firebaseui-id-resend-countdown{color:rgba(0,0,0,.38)}.firebaseui-id-page-phone-sign-in-start .firebaseui-form-actions div{float:left}@media (max-width:480px){.firebaseui-container{box-shadow:none;max-width:none;width:100%}.firebaseui-card-header{border-bottom:1px solid #e0e0e0;margin-bottom:16px;padding:16px 24px 0}.firebaseui-title{padding-bottom:16px}.firebaseui-card-actions{padding-right:24px}.firebaseui-busy-indicator{top:0}}.mdl-textfield__label{font-weight:400;margin-bottom:0}.firebaseui-flag-KY{background-position:0 0}.firebaseui-flag-AC{background-position:0 -14px}.firebaseui-flag-AE{background-position:0 -28px}.firebaseui-flag-AF{background-position:0 -42px}.firebaseui-flag-AG{background-position:0 -56px}.firebaseui-flag-AI{background-position:0 -70px}.firebaseui-flag-AL{background-position:0 -84px}.firebaseui-flag-AM{background-position:0 -98px}.firebaseui-flag-AO{background-position:0 -112px}.firebaseui-flag-AQ{background-position:0 -126px}.firebaseui-flag-AR{background-position:0 -140px}.firebaseui-flag-AS{background-position:0 -154px}.firebaseui-flag-AT{background-position:0 -168px}.firebaseui-flag-AU{background-position:0 -182px}.firebaseui-flag-AW{background-position:0 -196px}.firebaseui-flag-AX{background-position:0 -210px}.firebaseui-flag-AZ{background-position:0 -224px}.firebaseui-flag-BA{background-position:0 -238px}.firebaseui-flag-BB{background-position:0 -252px}.firebaseui-flag-BD{background-position:0 -266px}.firebaseui-flag-BE{background-position:0 -280px}.firebaseui-flag-BF{background-position:0 -294px}.firebaseui-flag-BG{background-position:0 -308px}.firebaseui-flag-BH{background-position:0 -322px}.firebaseui-flag-BI{background-position:0 -336px}.firebaseui-flag-BJ{background-position:0 -350px}.firebaseui-flag-BL{background-position:0 -364px}.firebaseui-flag-BM{background-position:0 -378px}.firebaseui-flag-BN{background-position:0 -392px}.firebaseui-flag-BO{background-position:0 -406px}.firebaseui-flag-BQ{background-position:0 -420px}.firebaseui-flag-BR{background-position:0 -434px}.firebaseui-flag-BS{background-position:0 -448px}.firebaseui-flag-BT{background-position:0 -462px}.firebaseui-flag-BV{background-position:0 -476px}.firebaseui-flag-BW{background-position:0 -490px}.firebaseui-flag-BY{background-position:0 -504px}.firebaseui-flag-BZ{background-position:0 -518px}.firebaseui-flag-CA{background-position:0 -532px}.firebaseui-flag-CC{background-position:0 -546px}.firebaseui-flag-CD{background-position:0 -560px}.firebaseui-flag-CF{background-position:0 -574px}.firebaseui-flag-CG{background-position:0 -588px}.firebaseui-flag-CH{background-position:0 -602px}.firebaseui-flag-CI{background-position:0 -616px}.firebaseui-flag-CK{background-position:0 -630px}.firebaseui-flag-CL{background-position:0 -644px}.firebaseui-flag-CM{background-position:0 -658px}.firebaseui-flag-CN{background-position:0 -672px}.firebaseui-flag-CO{background-position:0 -686px}.firebaseui-flag-CP{background-position:0 -700px}.firebaseui-flag-CR{background-position:0 -714px}.firebaseui-flag-CU{background-position:0 -728px}.firebaseui-flag-CV{background-position:0 -742px}.firebaseui-flag-CW{background-position:0 -756px}.firebaseui-flag-CX{background-position:0 -770px}.firebaseui-flag-CY{background-position:0 -784px}.firebaseui-flag-CZ{background-position:0 -798px}.firebaseui-flag-DE{background-position:0 -812px}.firebaseui-flag-DG{background-position:0 -826px}.firebaseui-flag-DJ{background-position:0 -840px}.firebaseui-flag-DK{background-position:0 -854px}.firebaseui-flag-DM{background-position:0 -868px}.firebaseui-flag-DO{background-position:0 -882px}.firebaseui-flag-DZ{background-position:0 -896px}.firebaseui-flag-EA{background-position:0 -910px}.firebaseui-flag-EC{background-position:0 -924px}.firebaseui-flag-EE{background-position:0 -938px}.firebaseui-flag-EG{background-position:0 -952px}.firebaseui-flag-EH{background-position:0 -966px}.firebaseui-flag-ER{background-position:0 -980px}.firebaseui-flag-ES{background-position:0 -994px}.firebaseui-flag-ET{background-position:0 -1008px}.firebaseui-flag-EU{background-position:0 -1022px}.firebaseui-flag-FI{background-position:0 -1036px}.firebaseui-flag-FJ{background-position:0 -1050px}.firebaseui-flag-FK{background-position:0 -1064px}.firebaseui-flag-FM{background-position:0 -1078px}.firebaseui-flag-FO{background-position:0 -1092px}.firebaseui-flag-FR{background-position:0 -1106px}.firebaseui-flag-GA{background-position:0 -1120px}.firebaseui-flag-GB{background-position:0 -1134px}.firebaseui-flag-GD{background-position:0 -1148px}.firebaseui-flag-GE{background-position:0 -1162px}.firebaseui-flag-GF{background-position:0 -1176px}.firebaseui-flag-GG{background-position:0 -1190px}.firebaseui-flag-GH{background-position:0 -1204px}.firebaseui-flag-GI{background-position:0 -1218px}.firebaseui-flag-GL{background-position:0 -1232px}.firebaseui-flag-GM{background-position:0 -1246px}.firebaseui-flag-GN{background-position:0 -1260px}.firebaseui-flag-GP{background-position:0 -1274px}.firebaseui-flag-GQ{background-position:0 -1288px}.firebaseui-flag-GR{background-position:0 -1302px}.firebaseui-flag-GS{background-position:0 -1316px}.firebaseui-flag-GT{background-position:0 -1330px}.firebaseui-flag-GU{background-position:0 -1344px}.firebaseui-flag-GW{background-position:0 -1358px}.firebaseui-flag-GY{background-position:0 -1372px}.firebaseui-flag-HK{background-position:0 -1386px}.firebaseui-flag-HM{background-position:0 -1400px}.firebaseui-flag-HN{background-position:0 -1414px}.firebaseui-flag-HR{background-position:0 -1428px}.firebaseui-flag-HT{background-position:0 -1442px}.firebaseui-flag-HU{background-position:0 -1456px}.firebaseui-flag-IC{background-position:0 -1470px}.firebaseui-flag-ID{background-position:0 -1484px}.firebaseui-flag-IE{background-position:0 -1498px}.firebaseui-flag-IL{background-position:0 -1512px}.firebaseui-flag-IM{background-position:0 -1526px}.firebaseui-flag-IN{background-position:0 -1540px}.firebaseui-flag-IO{background-position:0 -1554px}.firebaseui-flag-IQ{background-position:0 -1568px}.firebaseui-flag-IR{background-position:0 -1582px}.firebaseui-flag-IS{background-position:0 -1596px}.firebaseui-flag-IT{background-position:0 -1610px}.firebaseui-flag-JE{background-position:0 -1624px}.firebaseui-flag-JM{background-position:0 -1638px}.firebaseui-flag-JO{background-position:0 -1652px}.firebaseui-flag-JP{background-position:0 -1666px}.firebaseui-flag-KE{background-position:0 -1680px}.firebaseui-flag-KG{background-position:0 -1694px}.firebaseui-flag-KH{background-position:0 -1708px}.firebaseui-flag-KI{background-position:0 -1722px}.firebaseui-flag-KM{background-position:0 -1736px}.firebaseui-flag-KN{background-position:0 -1750px}.firebaseui-flag-KP{background-position:0 -1764px}.firebaseui-flag-KR{background-position:0 -1778px}.firebaseui-flag-KW{background-position:0 -1792px}.firebaseui-flag-AD{background-position:0 -1806px}.firebaseui-flag-KZ{background-position:0 -1820px}.firebaseui-flag-LA{background-position:0 -1834px}.firebaseui-flag-LB{background-position:0 -1848px}.firebaseui-flag-LC{background-position:0 -1862px}.firebaseui-flag-LI{background-position:0 -1876px}.firebaseui-flag-LK{background-position:0 -1890px}.firebaseui-flag-LR{background-position:0 -1904px}.firebaseui-flag-LS{background-position:0 -1918px}.firebaseui-flag-LT{background-position:0 -1932px}.firebaseui-flag-LU{background-position:0 -1946px}.firebaseui-flag-LV{background-position:0 -1960px}.firebaseui-flag-LY{background-position:0 -1974px}.firebaseui-flag-MA{background-position:0 -1988px}.firebaseui-flag-MC{background-position:0 -2002px}.firebaseui-flag-MD{background-position:0 -2016px}.firebaseui-flag-ME{background-position:0 -2030px}.firebaseui-flag-MF{background-position:0 -2044px}.firebaseui-flag-MG{background-position:0 -2058px}.firebaseui-flag-MH{background-position:0 -2072px}.firebaseui-flag-MK{background-position:0 -2086px}.firebaseui-flag-ML{background-position:0 -2100px}.firebaseui-flag-MM{background-position:0 -2114px}.firebaseui-flag-MN{background-position:0 -2128px}.firebaseui-flag-MO{background-position:0 -2142px}.firebaseui-flag-MP{background-position:0 -2156px}.firebaseui-flag-MQ{background-position:0 -2170px}.firebaseui-flag-MR{background-position:0 -2184px}.firebaseui-flag-MS{background-position:0 -2198px}.firebaseui-flag-MT{background-position:0 -2212px}.firebaseui-flag-MU{background-position:0 -2226px}.firebaseui-flag-MV{background-position:0 -2240px}.firebaseui-flag-MW{background-position:0 -2254px}.firebaseui-flag-MX{background-position:0 -2268px}.firebaseui-flag-MY{background-position:0 -2282px}.firebaseui-flag-MZ{background-position:0 -2296px}.firebaseui-flag-NA{background-position:0 -2310px}.firebaseui-flag-NC{background-position:0 -2324px}.firebaseui-flag-NE{background-position:0 -2338px}.firebaseui-flag-NF{background-position:0 -2352px}.firebaseui-flag-NG{background-position:0 -2366px}.firebaseui-flag-NI{background-position:0 -2380px}.firebaseui-flag-NL{background-position:0 -2394px}.firebaseui-flag-NO{background-position:0 -2408px}.firebaseui-flag-NP{background-position:0 -2422px}.firebaseui-flag-NR{background-position:0 -2436px}.firebaseui-flag-NU{background-position:0 -2450px}.firebaseui-flag-NZ{background-position:0 -2464px}.firebaseui-flag-OM{background-position:0 -2478px}.firebaseui-flag-PA{background-position:0 -2492px}.firebaseui-flag-PE{background-position:0 -2506px}.firebaseui-flag-PF{background-position:0 -2520px}.firebaseui-flag-PG{background-position:0 -2534px}.firebaseui-flag-PH{background-position:0 -2548px}.firebaseui-flag-PK{background-position:0 -2562px}.firebaseui-flag-PL{background-position:0 -2576px}.firebaseui-flag-PM{background-position:0 -2590px}.firebaseui-flag-PN{background-position:0 -2604px}.firebaseui-flag-PR{background-position:0 -2618px}.firebaseui-flag-PS{background-position:0 -2632px}.firebaseui-flag-PT{background-position:0 -2646px}.firebaseui-flag-PW{background-position:0 -2660px}.firebaseui-flag-PY{background-position:0 -2674px}.firebaseui-flag-QA{background-position:0 -2688px}.firebaseui-flag-RE{background-position:0 -2702px}.firebaseui-flag-RO{background-position:0 -2716px}.firebaseui-flag-RS{background-position:0 -2730px}.firebaseui-flag-RU{background-position:0 -2744px}.firebaseui-flag-RW{background-position:0 -2758px}.firebaseui-flag-SA{background-position:0 -2772px}.firebaseui-flag-SB{background-position:0 -2786px}.firebaseui-flag-SC{background-position:0 -2800px}.firebaseui-flag-SD{background-position:0 -2814px}.firebaseui-flag-SE{background-position:0 -2828px}.firebaseui-flag-SG{background-position:0 -2842px}.firebaseui-flag-SH{background-position:0 -2856px}.firebaseui-flag-SI{background-position:0 -2870px}.firebaseui-flag-SJ{background-position:0 -2884px}.firebaseui-flag-SK{background-position:0 -2898px}.firebaseui-flag-SL{background-position:0 -2912px}.firebaseui-flag-SM{background-position:0 -2926px}.firebaseui-flag-SN{background-position:0 -2940px}.firebaseui-flag-SO{background-position:0 -2954px}.firebaseui-flag-SR{background-position:0 -2968px}.firebaseui-flag-SS{background-position:0 -2982px}.firebaseui-flag-ST{background-position:0 -2996px}.firebaseui-flag-SV{background-position:0 -3010px}.firebaseui-flag-SX{background-position:0 -3024px}.firebaseui-flag-SY{background-position:0 -3038px}.firebaseui-flag-SZ{background-position:0 -3052px}.firebaseui-flag-TA{background-position:0 -3066px}.firebaseui-flag-TC{background-position:0 -3080px}.firebaseui-flag-TD{background-position:0 -3094px}.firebaseui-flag-TF{background-position:0 -3108px}.firebaseui-flag-TG{background-position:0 -3122px}.firebaseui-flag-TH{background-position:0 -3136px}.firebaseui-flag-TJ{background-position:0 -3150px}.firebaseui-flag-TK{background-position:0 -3164px}.firebaseui-flag-TL{background-position:0 -3178px}.firebaseui-flag-TM{background-position:0 -3192px}.firebaseui-flag-TN{background-position:0 -3206px}.firebaseui-flag-TO{background-position:0 -3220px}.firebaseui-flag-TR{background-position:0 -3234px}.firebaseui-flag-TT{background-position:0 -3248px}.firebaseui-flag-TV{background-position:0 -3262px}.firebaseui-flag-TW{background-position:0 -3276px}.firebaseui-flag-TZ{background-position:0 -3290px}.firebaseui-flag-UA{background-position:0 -3304px}.firebaseui-flag-UG{background-position:0 -3318px}.firebaseui-flag-UM{background-position:0 -3332px}.firebaseui-flag-UN{background-position:0 -3346px}.firebaseui-flag-US{background-position:0 -3360px}.firebaseui-flag-UY{background-position:0 -3374px}.firebaseui-flag-UZ{background-position:0 -3388px}.firebaseui-flag-VA{background-position:0 -3402px}.firebaseui-flag-VC{background-position:0 -3416px}.firebaseui-flag-VE{background-position:0 -3430px}.firebaseui-flag-VG{background-position:0 -3444px}.firebaseui-flag-VI{background-position:0 -3458px}.firebaseui-flag-VN{background-position:0 -3472px}.firebaseui-flag-VU{background-position:0 -3486px}.firebaseui-flag-WF{background-position:0 -3500px}.firebaseui-flag-WS{background-position:0 -3514px}.firebaseui-flag-XK{background-position:0 -3528px}.firebaseui-flag-YE{background-position:0 -3542px}.firebaseui-flag-YT{background-position:0 -3556px}.firebaseui-flag-ZA{background-position:0 -3570px}.firebaseui-flag-ZM{background-position:0 -3584px}.firebaseui-flag-ZW{background-position:0 -3598px}',""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var r=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(i),o=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[n].concat(o).concat([r]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var i={},r=function(e){var t;return function(){return void 0===t&&(t=function(){return window&&document&&document.all&&!window.atob}.apply(this,arguments)),t}}(),o=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),a=null,s=0,u=[],l=n(6);function c(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(b(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(b(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:s}}}}function f(e,t){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}function d(e,t){var n=o(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=u[u.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=o(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,r)}}function h(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function p(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),m(t,e.attrs),d(e,t),t}function m(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function b(e,t){var n,i,r,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var u=s++;n=a||(a=p(t)),i=v.bind(null,n,u,!1),r=v.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(t,e.attrs),d(e,t),t}(t),i=function(e,t,n){var i=n.css,r=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||o)&&(i=l(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),r=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=p(t),i=function(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),r=function(){h(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=r()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return c(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(s=i[a.id]).refs--,r.push(s)}for(e&&c(f(e,t),t),o=0;o<r.length;o++){var s;if(0===(s=r[o]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete i[s.id]}}}};var g=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function v(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=g(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var r,o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}},function(e,t){e.exports=n(48)}])},function(e,t,n){(function(i){var r;!function(){var o=n(14);n(15),void 0!==o.default&&(o=o.default);var a,s,u,l,c={upgradeDom:function(e,t){},upgradeElement:function(e,t){},upgradeElements:function(e){},upgradeAllRegistered:function(){},registerUpgradedCallback:function(e,t){},register:function(e){},downgradeElements:function(e){}};(c=function(){var e=[],t=[],n="mdlComponentConfigInternal_";function i(t,n){for(var i=0;i<e.length;i++)if(e[i].className===t)return void 0!==n&&(e[i]=n),e[i];return!1}function r(e){var t=e.getAttribute("data-upgraded");return null===t?[""]:t.split(",")}function o(e,t){return-1!==r(e).indexOf(t)}function a(e,t,n){if("CustomEvent"in window&&"function"==typeof window.CustomEvent)return new CustomEvent(e,{bubbles:t,cancelable:n});var i=document.createEvent("Events");return i.initEvent(e,t,n),i}function s(t,n){if(void 0===t&&void 0===n)for(var r=0;r<e.length;r++)s(e[r].className,e[r].cssClass);else{var o=t;if(void 0===n){var a=i(o);a&&(n=a.cssClass)}for(var l=document.querySelectorAll("."+n),c=0;c<l.length;c++)u(l[c],o)}}function u(s,u){if(!("object"==typeof s&&s instanceof Element))throw new Error("Invalid argument provided to upgrade MDL element.");var l=a("mdl-componentupgrading",!0,!0);if(s.dispatchEvent(l),!l.defaultPrevented){var c=r(s),f=[];if(u)o(s,u)||f.push(i(u));else{var d=s.classList;e.forEach(function(e){d.contains(e.cssClass)&&-1===f.indexOf(e)&&!o(s,e.className)&&f.push(e)})}for(var h,p=0,m=f.length;p<m;p++){if(!(h=f[p]))throw new Error("Unable to find a registered component for the given class.");c.push(h.className),s.setAttribute("data-upgraded",c.join(","));var b=new h.classConstructor(s);b[n]=h,t.push(b);for(var g=0,v=h.callbacks.length;g<v;g++)h.callbacks[g](s);h.widget&&(s[h.className]=b);var y=a("mdl-componentupgraded",!0,!1);s.dispatchEvent(y)}}}function l(e){if(e){var i=t.indexOf(e);t.splice(i,1);var r=e.element_.getAttribute("data-upgraded").split(","),o=r.indexOf(e[n].classAsString);r.splice(o,1),e.element_.setAttribute("data-upgraded",r.join(","));var s=a("mdl-componentdowngraded",!0,!1);e.element_.dispatchEvent(s)}}return{upgradeDom:s,upgradeElement:u,upgradeElements:function e(t){Array.isArray(t)||(t=t instanceof Element?[t]:Array.prototype.slice.call(t));for(var n,i=0,r=t.length;i<r;i++)(n=t[i])instanceof HTMLElement&&(u(n),n.children.length>0&&e(n.children))},upgradeAllRegistered:function(){for(var t=0;t<e.length;t++)s(e[t].className)},registerUpgradedCallback:function(e,t){var n=i(e);n&&n.callbacks.push(t)},register:function(t){var r=!0;void 0===t.widget&&void 0===t.widget||(r=t.widget||t.widget);var o={classConstructor:t.constructor||t.constructor,className:t.classAsString||t.classAsString,cssClass:t.cssClass||t.cssClass,widget:r,callbacks:[]};if(e.forEach(function(e){if(e.cssClass===o.cssClass)throw new Error("The provided cssClass has already been registered: "+e.cssClass);if(e.className===o.className)throw new Error("The provided className has already been registered")}),t.constructor.prototype.hasOwnProperty(n))throw new Error("MDL component classes must not have "+n+" defined as a property.");i(t.classAsString,o)||e.push(o)},downgradeElements:function(e){var n=function(e){t.filter(function(t){return t.element_===e}).forEach(l)};if(e instanceof Array||e instanceof NodeList)for(var i=0;i<e.length;i++)n(e[i]);else{if(!(e instanceof Node))throw new Error("Invalid argument provided to downgrade MDL nodes.");n(e)}}}}()).ComponentConfigPublic,c.ComponentConfig,c.Component,c.upgradeDom=c.upgradeDom,c.upgradeElement=c.upgradeElement,c.upgradeElements=c.upgradeElements,c.upgradeAllRegistered=c.upgradeAllRegistered,c.registerUpgradedCallback=c.registerUpgradedCallback,c.register=c.register,c.downgradeElements=c.downgradeElements,window.componentHandler=c,window.componentHandler=c,window.addEventListener("load",function(){"classList"in document.createElement("div")&&"querySelector"in document&&"addEventListener"in window&&Array.prototype.forEach?(document.documentElement.classList.add("mdl-js"),c.upgradeAllRegistered()):(c.upgradeElement=function(){},c.register=function(){})}),a=function(e){this.element_=e,this.init()},window.MaterialButton=a,a.prototype.Constant_={},a.prototype.CssClasses_={RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_CONTAINER:"mdl-button__ripple-container",RIPPLE:"mdl-ripple"},a.prototype.blurHandler_=function(e){e&&this.element_.blur()},a.prototype.disable=function(){this.element_.disabled=!0},a.prototype.disable=a.prototype.disable,a.prototype.enable=function(){this.element_.disabled=!1},a.prototype.enable=a.prototype.enable,a.prototype.init=function(){if(this.element_){if(this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){var e=document.createElement("span");e.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleElement_=document.createElement("span"),this.rippleElement_.classList.add(this.CssClasses_.RIPPLE),e.appendChild(this.rippleElement_),this.boundRippleBlurHandler=this.blurHandler_.bind(this),this.rippleElement_.addEventListener("mouseup",this.boundRippleBlurHandler),this.element_.appendChild(e)}this.boundButtonBlurHandler=this.blurHandler_.bind(this),this.element_.addEventListener("mouseup",this.boundButtonBlurHandler),this.element_.addEventListener("mouseleave",this.boundButtonBlurHandler)}},c.register({constructor:a,classAsString:"MaterialButton",cssClass:"mdl-js-button",widget:!0}),s=function(e){this.element_=e,this.init()},window.MaterialProgress=s,s.prototype.Constant_={},s.prototype.CssClasses_={INDETERMINATE_CLASS:"mdl-progress__indeterminate"},s.prototype.setProgress=function(e){this.element_.classList.contains(this.CssClasses_.INDETERMINATE_CLASS)||(this.progressbar_.style.width=e+"%")},s.prototype.setProgress=s.prototype.setProgress,s.prototype.setBuffer=function(e){this.bufferbar_.style.width=e+"%",this.auxbar_.style.width=100-e+"%"},s.prototype.setBuffer=s.prototype.setBuffer,s.prototype.init=function(){if(this.element_){var e=document.createElement("div");e.className="progressbar bar bar1",this.element_.appendChild(e),this.progressbar_=e,(e=document.createElement("div")).className="bufferbar bar bar2",this.element_.appendChild(e),this.bufferbar_=e,(e=document.createElement("div")).className="auxbar bar bar3",this.element_.appendChild(e),this.auxbar_=e,this.progressbar_.style.width="0%",this.bufferbar_.style.width="100%",this.auxbar_.style.width="0%",this.element_.classList.add("is-upgraded")}},c.register({constructor:s,classAsString:"MaterialProgress",cssClass:"mdl-js-progress",widget:!0}),u=function(e){this.element_=e,this.init()},window.MaterialSpinner=u,u.prototype.Constant_={MDL_SPINNER_LAYER_COUNT:4},u.prototype.CssClasses_={MDL_SPINNER_LAYER:"mdl-spinner__layer",MDL_SPINNER_CIRCLE_CLIPPER:"mdl-spinner__circle-clipper",MDL_SPINNER_CIRCLE:"mdl-spinner__circle",MDL_SPINNER_GAP_PATCH:"mdl-spinner__gap-patch",MDL_SPINNER_LEFT:"mdl-spinner__left",MDL_SPINNER_RIGHT:"mdl-spinner__right"},u.prototype.createLayer=function(e){var t=document.createElement("div");t.classList.add(this.CssClasses_.MDL_SPINNER_LAYER),t.classList.add(this.CssClasses_.MDL_SPINNER_LAYER+"-"+e);var n=document.createElement("div");n.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),n.classList.add(this.CssClasses_.MDL_SPINNER_LEFT);var i=document.createElement("div");i.classList.add(this.CssClasses_.MDL_SPINNER_GAP_PATCH);var r=document.createElement("div");r.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),r.classList.add(this.CssClasses_.MDL_SPINNER_RIGHT);for(var o=[n,i,r],a=0;a<o.length;a++){var s=document.createElement("div");s.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE),o[a].appendChild(s)}t.appendChild(n),t.appendChild(i),t.appendChild(r),this.element_.appendChild(t)},u.prototype.createLayer=u.prototype.createLayer,u.prototype.stop=function(){this.element_.classList.remove("is-active")},u.prototype.stop=u.prototype.stop,u.prototype.start=function(){this.element_.classList.add("is-active")},u.prototype.start=u.prototype.start,u.prototype.init=function(){if(this.element_){for(var e=1;e<=this.Constant_.MDL_SPINNER_LAYER_COUNT;e++)this.createLayer(e);this.element_.classList.add("is-upgraded")}},c.register({constructor:u,classAsString:"MaterialSpinner",cssClass:"mdl-js-spinner",widget:!0}),l=function(e){this.element_=e,this.maxRows=this.Constant_.NO_MAX_ROWS,this.init()},window.MaterialTextfield=l,l.prototype.Constant_={NO_MAX_ROWS:-1,MAX_ROWS_ATTRIBUTE:"maxrows"},l.prototype.CssClasses_={LABEL:"mdl-textfield__label",INPUT:"mdl-textfield__input",IS_DIRTY:"is-dirty",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_INVALID:"is-invalid",IS_UPGRADED:"is-upgraded",HAS_PLACEHOLDER:"has-placeholder"},l.prototype.onKeyDown_=function(e){var t=e.target.value.split("\n").length;13===e.keyCode&&t>=this.maxRows&&e.preventDefault()},l.prototype.onFocus_=function(e){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},l.prototype.onBlur_=function(e){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},l.prototype.onReset_=function(e){this.updateClasses_()},l.prototype.updateClasses_=function(){this.checkDisabled(),this.checkValidity(),this.checkDirty(),this.checkFocus()},l.prototype.checkDisabled=function(){this.input_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},l.prototype.checkDisabled=l.prototype.checkDisabled,l.prototype.checkFocus=function(){Boolean(this.element_.querySelector(":focus"))?this.element_.classList.add(this.CssClasses_.IS_FOCUSED):this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},l.prototype.checkFocus=l.prototype.checkFocus,l.prototype.checkValidity=function(){this.input_.validity&&(this.input_.validity.valid?this.element_.classList.remove(this.CssClasses_.IS_INVALID):this.element_.classList.add(this.CssClasses_.IS_INVALID))},l.prototype.checkValidity=l.prototype.checkValidity,l.prototype.checkDirty=function(){this.input_.value&&this.input_.value.length>0?this.element_.classList.add(this.CssClasses_.IS_DIRTY):this.element_.classList.remove(this.CssClasses_.IS_DIRTY)},l.prototype.checkDirty=l.prototype.checkDirty,l.prototype.disable=function(){this.input_.disabled=!0,this.updateClasses_()},l.prototype.disable=l.prototype.disable,l.prototype.enable=function(){this.input_.disabled=!1,this.updateClasses_()},l.prototype.enable=l.prototype.enable,l.prototype.change=function(e){this.input_.value=e||"",this.updateClasses_()},l.prototype.change=l.prototype.change,l.prototype.init=function(){if(this.element_&&(this.label_=this.element_.querySelector("."+this.CssClasses_.LABEL),this.input_=this.element_.querySelector("."+this.CssClasses_.INPUT),this.input_)){this.input_.hasAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE)&&(this.maxRows=parseInt(this.input_.getAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE),10),isNaN(this.maxRows)&&(this.maxRows=this.Constant_.NO_MAX_ROWS)),this.input_.hasAttribute("placeholder")&&this.element_.classList.add(this.CssClasses_.HAS_PLACEHOLDER),this.boundUpdateClassesHandler=this.updateClasses_.bind(this),this.boundFocusHandler=this.onFocus_.bind(this),this.boundBlurHandler=this.onBlur_.bind(this),this.boundResetHandler=this.onReset_.bind(this),this.input_.addEventListener("input",this.boundUpdateClassesHandler),this.input_.addEventListener("focus",this.boundFocusHandler),this.input_.addEventListener("blur",this.boundBlurHandler),this.input_.addEventListener("reset",this.boundResetHandler),this.maxRows!==this.Constant_.NO_MAX_ROWS&&(this.boundKeyDownHandler=this.onKeyDown_.bind(this),this.input_.addEventListener("keydown",this.boundKeyDownHandler));var e=this.element_.classList.contains(this.CssClasses_.IS_INVALID);this.updateClasses_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED),e&&this.element_.classList.add(this.CssClasses_.IS_INVALID),this.input_.hasAttribute("autofocus")&&(this.element_.focus(),this.checkFocus())}},c.register({constructor:l,classAsString:"MaterialTextfield",cssClass:"mdl-js-textfield",widget:!0}),function(){var i=window.CustomEvent;function o(e){for(;e;){if("dialog"===e.localName)return e;e=e.parentElement}return null}function a(e){e&&e.blur&&e!==document.body&&e.blur()}function s(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1}function u(e){return!(!e||!e.hasAttribute("method"))&&"dialog"===e.getAttribute("method").toLowerCase()}function l(e){if(this.dialog_=e,this.replacedStyleTop_=!1,this.openAsModal_=!1,e.hasAttribute("role")||e.setAttribute("role","dialog"),e.show=this.show.bind(this),e.showModal=this.showModal.bind(this),e.close=this.close.bind(this),"returnValue"in e||(e.returnValue=""),"MutationObserver"in window){new MutationObserver(this.maybeHideModal.bind(this)).observe(e,{attributes:!0,attributeFilter:["open"]})}else{var t,n=!1,i=function(){n?this.downgradeModal():this.maybeHideModal(),n=!1}.bind(this),r=function(r){if(r.target===e){var o="DOMNodeRemoved";n|=r.type.substr(0,o.length)===o,window.clearTimeout(t),t=window.setTimeout(i,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach(function(t){e.addEventListener(t,r)})}Object.defineProperty(e,"open",{set:this.setOpen.bind(this),get:e.hasAttribute.bind(e,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("click",this.backdropClick_.bind(this))}i&&"object"!=typeof i||((i=function(e,t){t=t||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail||null),n}).prototype=window.Event.prototype),l.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&document.body.contains(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),c.dm.removeDialog(this))},setOpen:function(e){e?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropClick_:function(e){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var t=document.createElement("div");this.dialog_.insertBefore(t,this.dialog_.firstChild),t.tabIndex=-1,t.focus(),this.dialog_.removeChild(t)}var n=document.createEvent("MouseEvents");n.initMouseEvent(e.type,e.bubbles,e.cancelable,window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this.dialog_.dispatchEvent(n),e.stopPropagation()},focus_:function(){var e=this.dialog_.querySelector("[autofocus]:not([disabled])");if(!e&&this.dialog_.tabIndex>=0&&(e=this.dialog_),!e){var t=["button","input","keygen","select","textarea"].map(function(e){return e+":not([disabled])"});t.push('[tabindex]:not([disabled]):not([tabindex=""])'),e=this.dialog_.querySelector(t.join(", "))}a(document.activeElement),e&&e.focus()},updateZIndex:function(e,t){if(e<t)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=e,this.backdrop_.style.zIndex=t},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!document.body.contains(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!c.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");(function(e){for(;e&&e!==document.body;){var t=window.getComputedStyle(e),n=function(e,n){return!(void 0===t[e]||t[e]===n)};if(t.opacity<1||n("zIndex","auto")||n("transform","none")||n("mixBlendMode","normal")||n("filter","none")||n("perspective","none")||"isolate"===t.isolation||"fixed"===t.position||"touch"===t.webkitOverflowScrolling)return!0;e=e.parentElement}return!1})(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,c.needsCentering(this.dialog_)?(c.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(e){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),void 0!==e&&(this.dialog_.returnValue=e);var t=new i("close",{bubbles:!1,cancelable:!1});this.dialog_.dispatchEvent(t)}};var c={reposition:function(e){var t=document.body.scrollTop||document.documentElement.scrollTop,n=t+(window.innerHeight-e.offsetHeight)/2;e.style.top=Math.max(t,n)+"px"},isInlinePositionSetByStylesheet:function(e){for(var t=0;t<document.styleSheets.length;++t){var n=document.styleSheets[t],i=null;try{i=n.cssRules}catch(e){}if(i)for(var r=0;r<i.length;++r){var o=i[r],a=null;try{a=document.querySelectorAll(o.selectorText)}catch(e){}if(a&&s(a,e)){var u=o.style.getPropertyValue("top"),l=o.style.getPropertyValue("bottom");if(u&&"auto"!==u||l&&"auto"!==l)return!0}}}return!1},needsCentering:function(e){return"absolute"===window.getComputedStyle(e).position&&(!("auto"!==e.style.top&&""!==e.style.top||"auto"!==e.style.bottom&&""!==e.style.bottom)&&!c.isInlinePositionSetByStylesheet(e))},forceRegisterDialog:function(e){if((window.HTMLDialogElement||e.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",e),"dialog"!==e.localName)throw new Error("Failed to register dialog: The element is not a dialog.");new l(e)},registerDialog:function(e){e.showModal||c.forceRegisterDialog(e)},DialogManager:function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(t){var n=[];t.forEach(function(e){for(var t,i=0;t=e.removedNodes[i];++i)t instanceof Element&&("dialog"===t.localName&&n.push(t),n=n.concat(t.querySelectorAll("dialog")))}),n.length&&e(n)}))}};if(c.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},c.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},c.DialogManager.prototype.updateStacking=function(){for(var e,t=this.zIndexHigh_,n=0;e=this.pendingDialogStack[n];++n)e.updateZIndex(--t,--t),0===n&&(this.overlay.style.zIndex=--t);var i=this.pendingDialogStack[0];i?(i.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},c.DialogManager.prototype.containedByTopDialog_=function(e){for(;e=o(e);){for(var t,n=0;t=this.pendingDialogStack[n];++n)if(t.dialog===e)return 0===n;e=e.parentElement}return!1},c.DialogManager.prototype.handleFocus_=function(e){if(!this.containedByTopDialog_(e.target)&&(e.preventDefault(),e.stopPropagation(),a(e.target),void 0!==this.forwardTab_)){var t=this.pendingDialogStack[0];return t.dialog.compareDocumentPosition(e.target)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?t.focus_():document.documentElement.focus()),!1}},c.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,27===e.keyCode){e.preventDefault(),e.stopPropagation();var t=new i("cancel",{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&n.dialog.dispatchEvent(t)&&n.dialog.close()}else 9===e.keyCode&&(this.forwardTab_=!e.shiftKey)},c.DialogManager.prototype.checkDOM_=function(e){this.pendingDialogStack.slice().forEach(function(t){-1!==e.indexOf(t.dialog)?t.downgradeModal():t.maybeHideModal()})},c.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return!(this.pendingDialogStack.length>=t)&&(1===this.pendingDialogStack.unshift(e)&&this.blockDocument(),this.updateStacking(),!0)},c.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);-1!==t&&(this.pendingDialogStack.splice(t,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},c.dm=new c.DialogManager,c.formSubmitter=null,c.useValue=null,void 0===window.HTMLDialogElement){var f=document.createElement("form");if(f.setAttribute("method","dialog"),"dialog"!==f.method){var d=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(d){var h=d.get;d.get=function(){return u(this)?"dialog":h.call(this)};var p=d.set;d.set=function(e){return"string"==typeof e&&"dialog"===e.toLowerCase()?this.setAttribute("method",e):p.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",d)}}document.addEventListener("click",function(e){if(c.formSubmitter=null,c.useValue=null,!e.defaultPrevented){var t=e.target;if(t&&u(t.form)){if(!("submit"===t.type&&["button","input"].indexOf(t.localName)>-1)){if("input"!==t.localName||"image"!==t.type)return;c.useValue=e.offsetX+","+e.offsetY}o(t)&&(c.formSubmitter=t)}}},!1);var m=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){if(!u(this))return m.call(this);var e=o(this);e&&e.close()},document.addEventListener("submit",function(e){var t=e.target;if(u(t)){e.preventDefault();var n=o(t);if(n){var i=c.formSubmitter;i&&i.form===t?n.close(c.useValue||i.value):n.close(),c.formSubmitter=null}}},!0)}c.forceRegisterDialog=c.forceRegisterDialog,c.registerDialog=c.registerDialog,"amd"in n(21)?void 0===(r=function(){return c}.call(t,n,t,e))||(e.exports=r):"object"==typeof e.exports?e.exports=c:window.dialogPolyfill=c}(),function(){var e,t="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},n="undefined"!=typeof window&&window===this?this:void 0!==i&&null!=i?i:this;function r(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function a(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:r(e)}}!function(e,i){if(i){var r=n;e=e.split(".");for(var o=0;o<e.length-1;o++){var a=e[o];a in r||(r[a]={}),r=r[a]}(i=i(o=r[e=e[e.length-1]]))!=o&&null!=i&&t(r,e,{configurable:!0,writable:!0,value:i})}}("Promise",function(e){function t(e){this.f=0,this.h=void 0,this.a=[];var t=this.j();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function i(){this.a=null}function r(e){return e instanceof t?e:new t(function(t){t(e)})}if(e)return e;i.prototype.f=function(e){if(null==this.a){this.a=[];var t=this;this.h(function(){t.i()})}this.a.push(e)};var o=n.setTimeout;i.prototype.h=function(e){o(e,0)},i.prototype.i=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.j(e)}}}this.a=null},i.prototype.j=function(e){this.h(function(){throw e})},t.prototype.j=function(){function e(e){return function(i){n||(n=!0,e.call(t,i))}}var t=this,n=!1;return{resolve:e(this.I),reject:e(this.i)}},t.prototype.I=function(e){if(e===this)this.i(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.K(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.F(e):this.v(e)}},t.prototype.F=function(e){var t=void 0;try{t=e.then}catch(e){return void this.i(e)}"function"==typeof t?this.O(t,e):this.v(e)},t.prototype.i=function(e){this.w(2,e)},t.prototype.v=function(e){this.w(1,e)},t.prototype.w=function(e,t){if(0!=this.f)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.f);this.f=e,this.h=t,this.C()},t.prototype.C=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)s.f(this.a[e]);this.a=null}};var s=new i;return t.prototype.K=function(e){var t=this.j();e.Da(t.resolve,t.reject)},t.prototype.O=function(e,t){var n=this.j();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function i(e,t){return"function"==typeof e?function(t){try{r(e(t))}catch(e){o(e)}}:t}var r,o,a=new t(function(e,t){r=e,o=t});return this.Da(i(e,r),i(n,o)),a},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Da=function(e,t){function n(){switch(i.f){case 1:e(i.h);break;case 2:t(i.h);break;default:throw Error("Unexpected state: "+i.f)}}var i=this;null==this.a?s.f(n):this.a.push(n)},t.resolve=r,t.reject=function(e){return new t(function(t,n){n(e)})},t.race=function(e){return new t(function(t,n){for(var i=a(e),o=i.next();!o.done;o=i.next())r(o.value).Da(t,n)})},t.all=function(e){var n=a(e),i=n.next();return i.done?r([]):new t(function(e,t){function o(t){return function(n){a[t]=n,0==--s&&e(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).Da(o(a.length-1),t),i=n.next()}while(!i.done)})},t});var s=this;function u(e){return void 0!==e}function l(e){return"string"==typeof e}var c=/^[\w+\/_-]+[=]{0,2}$/,f=null;function d(){}function h(e){e.V=void 0,e.Ra=function(){return e.V?e.V:e.V=new e}}function p(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function m(e){return null!=e}function b(e){return"array"==p(e)}function g(e){var t=p(e);return"array"==t||"object"==t&&"number"==typeof e.length}function v(e){return"function"==p(e)}function y(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var w="closure_uid_"+(1e9*Math.random()>>>0),_=0;function x(e,t,n){return e.call.apply(e.bind,arguments)}function k(e,t,n){if(!e)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function E(e,t,n){return(E=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?x:k).apply(null,arguments)}function S(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function T(e,t){for(var n in t)e[n]=t[n]}var C,A=Date.now||function(){return+new Date};function I(e,t){e=e.split(".");var n,i=s;e[0]in i||void 0===i.execScript||i.execScript("var "+e[0]);for(;e.length&&(n=e.shift());)!e.length&&u(t)?i[n]=t:i=i[n]&&i[n]!==Object.prototype[n]?i[n]:i[n]={}}function O(e,t){function n(){}n.prototype=t.prototype,e.o=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.fc=function(e,n,i){for(var r=Array(arguments.length-2),o=2;o<arguments.length;o++)r[o-2]=arguments[o];return t.prototype[n].apply(e,r)}}function N(e){if(Error.captureStackTrace)Error.captureStackTrace(this,N);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function P(e,t){for(var n="",i=(e=e.split("%s")).length-1,r=0;r<i;r++)n+=e[r]+(r<t.length?t[r]:"%s");N.call(this,n+e[i])}function R(e,t){throw new P("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}O(N,Error),N.prototype.name="CustomError",O(P,N),P.prototype.name="AssertionError";var D=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if(l(e))return l(t)&&1==t.length?e.indexOf(t,0):-1;for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},L=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var i=e.length,r=l(e)?e.split(""):e,o=0;o<i;o++)o in r&&t.call(n,r[o],o,e)};var M=Array.prototype.filter?function(e,t){return Array.prototype.filter.call(e,t,void 0)}:function(e,t){for(var n=e.length,i=[],r=0,o=l(e)?e.split(""):e,a=0;a<n;a++)if(a in o){var s=o[a];t.call(void 0,s,a,e)&&(i[r++]=s)}return i},j=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,i=Array(n),r=l(e)?e.split(""):e,o=0;o<n;o++)o in r&&(i[o]=t.call(void 0,r[o],o,e));return i},U=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,i=l(e)?e.split(""):e,r=0;r<n;r++)if(r in i&&t.call(void 0,i[r],r,e))return!0;return!1};function F(e,t,n){for(var i=e.length,r=l(e)?e.split(""):e,o=0;o<i;o++)if(o in r&&t.call(n,r[o],o,e))return o;return-1}function B(e,t){return 0<=D(e,t)}function z(e,t){var n;return(n=0<=(t=D(e,t)))&&H(e,t),n}function H(e,t){return 1==Array.prototype.splice.call(e,t,1).length}function V(e,t){!function(e,t){for(var n=l(e)?e.split(""):e,i=e.length-1;0<=i;--i)i in n&&t.call(void 0,n[i],i,e)}(e,function(n,i){t.call(void 0,n,i,e)&&H(e,i)&&0})}function W(e){return Array.prototype.concat.apply([],arguments)}function G(e){var t=e.length;if(0<t){for(var n=Array(t),i=0;i<t;i++)n[i]=e[i];return n}return[]}function K(e,t,n,i){return Array.prototype.splice.apply(e,q(arguments,1))}function q(e,t,n){return 2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,n)}var X=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function Y(e){return ie.test(e)?(-1!=e.indexOf("&")&&(e=e.replace($,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(Z,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(Q,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(ee,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(te,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(ne,"&#0;")),e):e}var J,$=/&/g,Z=/</g,Q=/>/g,ee=/"/g,te=/'/g,ne=/\x00/g,ie=/[\x00&<>"']/;function re(e,t){return e<t?-1:e>t?1:0}e:{var oe=s.navigator;if(oe){var ae=oe.userAgent;if(ae){J=ae;break e}}J=""}function se(e){return-1!=J.indexOf(e)}function ue(e,t,n){for(var i in e)t.call(n,e[i],i,e)}function le(e){var t,n={};for(t in e)n[t]=e[t];return n}var ce="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function fe(e,t){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])e[n]=i[n];for(var o=0;o<ce.length;o++)n=ce[o],Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}}function de(){return(se("Chrome")||se("CriOS"))&&!se("Edge")}function he(e){return he[" "](e),e}he[" "]=d;var pe,me,be=se("Opera"),ge=se("Trident")||se("MSIE"),ve=se("Edge"),ye=ve||ge,we=se("Gecko")&&!(-1!=J.toLowerCase().indexOf("webkit")&&!se("Edge"))&&!(se("Trident")||se("MSIE"))&&!se("Edge"),_e=-1!=J.toLowerCase().indexOf("webkit")&&!se("Edge"),xe=_e&&se("Mobile"),ke=se("Macintosh");function Ee(){var e=s.document;return e?e.documentMode:void 0}e:{var Se="",Te=(me=J,we?/rv:([^\);]+)(\)|;)/.exec(me):ve?/Edge\/([\d\.]+)/.exec(me):ge?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(me):_e?/WebKit\/(\S+)/.exec(me):be?/(?:Version)[ \/]?(\S+)/.exec(me):void 0);if(Te&&(Se=Te?Te[1]:""),ge){var Ce=Ee();if(null!=Ce&&Ce>parseFloat(Se)){pe=String(Ce);break e}}pe=Se}var Ae,Ie={};function Oe(e){return function(e,t){var n=Ie;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,function(){for(var t=0,n=X(String(pe)).split("."),i=X(String(e)).split("."),r=Math.max(n.length,i.length),o=0;0==t&&o<r;o++){var a=n[o]||"",s=i[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;t=re(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||re(0==a[2].length,0==s[2].length)||re(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t})}var Ne=s.document;function Pe(e,t){this.a=e===Le&&t||"",this.f=De}function Re(e){return e instanceof Pe&&e.constructor===Pe&&e.f===De?e.a:(R("expected object of type Const, got '"+e+"'"),"type_error:Const")}Ae=Ne&&ge?Ee()||("CSS1Compat"==Ne.compatMode?parseInt(pe,10):5):void 0,Pe.prototype.ka=!0,Pe.prototype.ia=function(){return this.a},Pe.prototype.toString=function(){return"Const{"+this.a+"}"};var De={},Le={};function Me(){this.a="",this.h=Ue}function je(e){return e instanceof Me&&e.constructor===Me&&e.h===Ue?e.a:(R("expected object of type TrustedResourceUrl, got '"+e+"' of type "+p(e)),"type_error:TrustedResourceUrl")}Me.prototype.ka=!0,Me.prototype.ia=function(){return this.a},Me.prototype.f=function(){return 1},Me.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Ue={};function Fe(e){var t=new Me;return t.a=e,t}function Be(){this.a="",this.h=We}function ze(e){return e instanceof Be&&e.constructor===Be&&e.h===We?e.a:(R("expected object of type SafeUrl, got '"+e+"' of type "+p(e)),"type_error:SafeUrl")}Be.prototype.ka=!0,Be.prototype.ia=function(){return this.a},Be.prototype.f=function(){return 1},Be.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var He=/^(?:(?:https?|mailto|ftp):|[^:\/?#]*(?:[\/?#]|$))/i;function Ve(e){return e instanceof Be?e:(e="object"==typeof e&&e.ka?e.ia():String(e),He.test(e)||(e="about:invalid#zClosurez"),Ge(e))}var We={};function Ge(e){var t=new Be;return t.a=e,t}function Ke(){this.a="",this.f=qe}Ge("about:blank"),Ke.prototype.ka=!0;var qe={};function Xe(){this.a="",this.j=Je,this.h=null}function Ye(e){return e instanceof Xe&&e.constructor===Xe&&e.j===Je?e.a:(R("expected object of type SafeHtml, got '"+e+"' of type "+p(e)),"type_error:SafeHtml")}Ke.prototype.ia=function(){return this.a},Ke.prototype.toString=function(){return"SafeStyle{"+this.a+"}"},Xe.prototype.f=function(){return this.h},Xe.prototype.ka=!0,Xe.prototype.ia=function(){return this.a},Xe.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Je={};function $e(e,t){var n=new Xe;return n.a=e,n.h=t,n}$e("<!DOCTYPE html>",0),$e("",0),$e("<br>",0);var Ze,Qe,et=(Qe=!1,function(){return Qe||(Ze=function(){if("undefined"==typeof document)return!1;var e=document.createElement("div");if(e.innerHTML="<div><div></div></div>",!e.firstChild)return!1;var t=e.firstChild.firstChild;return e.innerHTML="",!t.parentElement}(),Qe=!0),Ze});function tt(e,t){this.a=u(e)?e:0,this.f=u(t)?t:0}function nt(e,t){this.width=e,this.height=t}function it(e){return e?new ht(ct(e)):C||(C=new ht)}function rt(e,t){var n=t||document;return n.querySelectorAll&&n.querySelector?n.querySelectorAll("."+e):at(document,e,t)}function ot(e,t){var n=t||document;if(n.getElementsByClassName)e=n.getElementsByClassName(e)[0];else{n=document;var i=t||n;e=i.querySelectorAll&&i.querySelector&&e?i.querySelector(e?"."+e:""):at(n,e,t)[0]||null}return e||null}function at(e,t,n){var i;if((e=n||e).querySelectorAll&&e.querySelector&&t)return e.querySelectorAll(t?"."+t:"");if(t&&e.getElementsByClassName){var r=e.getElementsByClassName(t);return r}if(r=e.getElementsByTagName("*"),t){var o={};for(n=i=0;e=r[n];n++){var a=e.className;"function"==typeof a.split&&B(a.split(/\s+/),t)&&(o[i++]=e)}return o.length=i,o}return r}tt.prototype.toString=function(){return"("+this.a+", "+this.f+")"},tt.prototype.ceil=function(){return this.a=Math.ceil(this.a),this.f=Math.ceil(this.f),this},tt.prototype.floor=function(){return this.a=Math.floor(this.a),this.f=Math.floor(this.f),this},tt.prototype.round=function(){return this.a=Math.round(this.a),this.f=Math.round(this.f),this},(e=nt.prototype).toString=function(){return"("+this.width+" x "+this.height+")"},e.aspectRatio=function(){return this.width/this.height},e.ceil=function(){return this.width=Math.ceil(this.width),this.height=Math.ceil(this.height),this},e.floor=function(){return this.width=Math.floor(this.width),this.height=Math.floor(this.height),this},e.round=function(){return this.width=Math.round(this.width),this.height=Math.round(this.height),this};var st={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function ut(e){return e.scrollingElement?e.scrollingElement:(_e||"CSS1Compat"!=e.compatMode)&&e.body||e.documentElement}function lt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ct(e){return 9==e.nodeType?e:e.ownerDocument||e.document}function ft(e,t){if("textContent"in e)e.textContent=t;else if(3==e.nodeType)e.data=String(t);else if(e.firstChild&&3==e.firstChild.nodeType){for(;e.lastChild!=e.firstChild;)e.removeChild(e.lastChild);e.firstChild.data=String(t)}else{for(var n;n=e.firstChild;)e.removeChild(n);e.appendChild(ct(e).createTextNode(String(t)))}}function dt(e,t){return t?function(e,t){for(;e;){if(t(e))return e;e=e.parentNode,0}return null}(e,function(e){return!t||l(e.className)&&B(e.className.split(/\s+/),t)}):null}function ht(e){this.a=e||s.document||document}ht.prototype.N=function(){return l(void 0)?this.a.getElementById(void 0):void 0};var pt="StopIteration"in s?s.StopIteration:{message:"StopIteration",stack:""};function mt(){}function bt(e){if(e instanceof mt)return e;if("function"==typeof e.fa)return e.fa(!1);if(g(e)){var t=0,n=new mt;return n.next=function(){for(;;){if(t>=e.length)throw pt;if(t in e)return e[t++];t++}},n}throw Error("Not implemented")}function gt(e){if(g(e))return G(e);e=bt(e);var t=[];return function(e,t){if(g(e))try{L(e,t,void 0)}catch(e){if(e!==pt)throw e}else{e=bt(e);try{for(;;)t.call(void 0,e.next(),void 0,e)}catch(e){if(e!==pt)throw e}}}(e,function(e){t.push(e)}),t}function vt(e,t){this.f={},this.a=[],this.j=this.h=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(e)if(e instanceof vt)for(n=e.ha(),i=0;i<n.length;i++)this.set(n[i],e.get(n[i]));else for(i in e)this.set(i,e[i])}function yt(e){if(e.h!=e.a.length){for(var t=0,n=0;t<e.a.length;){var i=e.a[t];wt(e.f,i)&&(e.a[n++]=i),t++}e.a.length=n}if(e.h!=e.a.length){var r={};for(n=t=0;t<e.a.length;)wt(r,i=e.a[t])||(e.a[n++]=i,r[i]=1),t++;e.a.length=n}}function wt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}mt.prototype.next=function(){throw pt},mt.prototype.fa=function(){return this},(e=vt.prototype).ja=function(){yt(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.f[this.a[t]]);return e},e.ha=function(){return yt(this),this.a.concat()},e.clear=function(){this.f={},this.j=this.h=this.a.length=0},e.get=function(e,t){return wt(this.f,e)?this.f[e]:t},e.set=function(e,t){wt(this.f,e)||(this.h++,this.a.push(e),this.j++),this.f[e]=t},e.forEach=function(e,t){for(var n=this.ha(),i=0;i<n.length;i++){var r=n[i],o=this.get(r);e.call(t,o,r,this)}},e.fa=function(e){yt(this);var t=0,n=this.j,i=this,r=new mt;return r.next=function(){if(n!=i.j)throw Error("The map has changed since the iterator was created");if(t>=i.a.length)throw pt;var r=i.a[t++];return e?r:i.f[r]},r};var _t=/^(?:([^:\/?#.]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/#?]*?)(?::([0-9]+))?(?=[\/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function xt(e,t,n,i){for(var r=n.length;0<=(t=e.indexOf(n,t))&&t<i;){var o=e.charCodeAt(t-1);if((38==o||63==o)&&(!(o=e.charCodeAt(t+r))||61==o||38==o||35==o))return t;t+=r+1}return-1}var kt=/#|$/;function Et(e,t){var n=e.search(kt),i=xt(e,0,t,n);if(0>i)return null;var r=e.indexOf("&",i);return(0>r||r>n)&&(r=n),i+=t.length+1,decodeURIComponent(e.substr(i,r-i).replace(/\+/g," "))}var St=/[?&]($|#)/;function Tt(e,t){var n;this.h=this.w=this.j="",this.C=null,this.i=this.f="",this.v=!1,e instanceof Tt?(this.v=u(t)?t:e.v,Ct(this,e.j),this.w=e.w,this.h=e.h,At(this,e.C),this.f=e.f,It(this,Wt(e.a)),this.i=e.i):e&&(n=String(e).match(_t))?(this.v=!!t,Ct(this,n[1]||"",!0),this.w=Pt(n[2]||""),this.h=Pt(n[3]||"",!0),At(this,n[4]),this.f=Pt(n[5]||"",!0),It(this,n[6]||"",!0),this.i=Pt(n[7]||"")):(this.v=!!t,this.a=new Bt(null,this.v))}function Ct(e,t,n){e.j=n?Pt(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function At(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.C=t}else e.C=null}function It(e,t,n){t instanceof Bt?(e.a=t,function(e,t){t&&!e.j&&(zt(e),e.h=null,e.a.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(Ht(this,t),Ht(this,n),0<e.length&&(this.h=null,this.a.set(Gt(this,n),G(e)),this.f+=e.length))},e)),e.j=t}(e.a,e.v)):(n||(t=Rt(t,Ut)),e.a=new Bt(t,e.v))}function Ot(e){return e instanceof Tt?new Tt(e):new Tt(e,void 0)}function Nt(e,t){return e instanceof Tt||(e=Ot(e)),t instanceof Tt||(t=Ot(t)),e.resolve(t)}function Pt(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Rt(e,t,n){return l(e)?(e=encodeURI(e).replace(t,Dt),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Dt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Tt.prototype.toString=function(){var e=[],t=this.j;t&&e.push(Rt(t,Lt,!0),":");var n=this.h;return(n||"file"==t)&&(e.push("//"),(t=this.w)&&e.push(Rt(t,Lt,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.C)&&e.push(":",String(n))),(n=this.f)&&(this.h&&"/"!=n.charAt(0)&&e.push("/"),e.push(Rt(n,"/"==n.charAt(0)?jt:Mt,!0))),(n=this.a.toString())&&e.push("?",n),(n=this.i)&&e.push("#",Rt(n,Ft)),e.join("")},Tt.prototype.resolve=function(e){var t=new Tt(this),n=!!e.j;n?Ct(t,e.j):n=!!e.w,n?t.w=e.w:n=!!e.h,n?t.h=e.h:n=null!=e.C;var i=e.f;if(n)At(t,e.C);else if(n=!!e.f){if("/"!=i.charAt(0))if(this.h&&!this.f)i="/"+i;else{var r=t.f.lastIndexOf("/");-1!=r&&(i=t.f.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(-1!=r.indexOf("./")||-1!=r.indexOf("/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a<r.length;){var s=r[a++];"."==s?i&&a==r.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&a==r.length&&o.push("")):(o.push(s),i=!0)}i=o.join("/")}else i=r}return n?t.f=i:n=""!==e.a.toString(),n?It(t,Wt(e.a)):n=!!e.i,n&&(t.i=e.i),t};var Lt=/[#\/\?@]/g,Mt=/[#\?:]/g,jt=/[#\?]/g,Ut=/[#\?@]/g,Ft=/#/g;function Bt(e,t){this.f=this.a=null,this.h=e||null,this.j=!!t}function zt(e){e.a||(e.a=new vt,e.f=0,e.h&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var i=e[n].indexOf("="),r=null;if(0<=i){var o=e[n].substring(0,i);r=e[n].substring(i+1)}else o=e[n];t(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(e.h,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function Ht(e,t){zt(e),t=Gt(e,t),wt(e.a.f,t)&&(e.h=null,e.f-=e.a.get(t).length,wt((e=e.a).f,t)&&(delete e.f[t],e.h--,e.j++,e.a.length>2*e.h&&yt(e)))}function Vt(e,t){return zt(e),t=Gt(e,t),wt(e.a.f,t)}function Wt(e){var t=new Bt;return t.h=e.h,e.a&&(t.a=new vt(e.a),t.f=e.f),t}function Gt(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}(e=Bt.prototype).add=function(e,t){zt(this),this.h=null,e=Gt(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.f+=1,this},e.clear=function(){this.a=this.h=null,this.f=0},e.forEach=function(e,t){zt(this),this.a.forEach(function(n,i){L(n,function(n){e.call(t,n,i,this)},this)},this)},e.ha=function(){zt(this);for(var e=this.a.ja(),t=this.a.ha(),n=[],i=0;i<t.length;i++)for(var r=e[i],o=0;o<r.length;o++)n.push(t[i]);return n},e.ja=function(e){zt(this);var t=[];if(l(e))Vt(this,e)&&(t=W(t,this.a.get(Gt(this,e))));else{e=this.a.ja();for(var n=0;n<e.length;n++)t=W(t,e[n])}return t},e.set=function(e,t){return zt(this),this.h=null,Vt(this,e=Gt(this,e))&&(this.f-=this.a.get(e).length),this.a.set(e,[t]),this.f+=1,this},e.get=function(e,t){return e&&0<(e=this.ja(e)).length?String(e[0]):t},e.toString=function(){if(this.h)return this.h;if(!this.a)return"";for(var e=[],t=this.a.ha(),n=0;n<t.length;n++){var i=t[n],r=encodeURIComponent(String(i));i=this.ja(i);for(var o=0;o<i.length;o++){var a=r;""!==i[o]&&(a+="="+encodeURIComponent(String(i[o]))),e.push(a)}}return this.h=e.join("&")};var Kt={qc:!0},qt={sc:!0},Xt={pc:!0},Yt={rc:!0};function Jt(){throw Error("Do not instantiate directly")}function $t(e,t,n,i){if(e=e(t||Qt,void 0,n),i=(i||it()).a.createElement("DIV"),(e=function(e){if(!y(e))return String(e);if(e instanceof Jt){if(e.ca===Kt)return e.content;if(e.ca===Yt)return Y(e.content)}return R("Soy template output is unsafe for use as HTML: "+e),"zSoyz"}(e)).match(Zt),et())for(;i.lastChild;)i.removeChild(i.lastChild);return i.innerHTML=e,1==i.childNodes.length&&(1==(e=i.firstChild).nodeType&&(i=e)),i}Jt.prototype.ta=null,Jt.prototype.toString=function(){return this.content};var Zt=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i,Qt={};function en(){Jt.call(this)}function tn(e){return null!=e&&e.ca===Kt?e:e instanceof Xe?an(Ye(e),e.f()):an(Y(String(String(e))),function(e){if(null!=e)switch(e.ta){case 1:return 1;case-1:return-1;case 0:return 0}return null}(e))}function nn(){Jt.call(this)}function rn(e,t){this.content=String(e),this.ta=null!=t?t:null}function on(e){return new rn(e,void 0)}O(en,Jt),en.prototype.ca=Kt,O(nn,Jt),nn.prototype.ca=qt,nn.prototype.ta=1,O(rn,Jt),rn.prototype.ca=Yt;var an=function(e){function t(e){this.content=e}return t.prototype=e.prototype,function(e,n){return e=new t(String(e)),void 0!==n&&(e.ta=n),e}}(en),sn=function(e){function t(e){this.content=e}return t.prototype=e.prototype,function(e){return new t(String(e))}}(nn);function un(e){return(e=String(e))?new rn(e,void 0):""}var ln=function(e){function t(e){this.content=e}return t.prototype=e.prototype,function(e,n){return(e=String(e))?(e=new t(e),void 0!==n&&(e.ta=n),e):""}}(en);function cn(e){return null!=e&&e.ca===Kt?String(String(e.content).replace(wn,"").replace(_n,"&lt;")).replace(bn,hn):Y(String(e))}function fn(e){return null!=e&&e.ca===qt?e=String(e).replace(gn,mn):e instanceof Be?e=String(ze(e)).replace(gn,mn):(e=String(e),yn.test(e)?e=e.replace(gn,mn):(R("Bad value `%s` for |filterNormalizeUri",[e]),e="#zSoyz")),e}var dn={"\0":"&#0;","\t":"&#9;","\n":"&#10;","\v":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","…":"&#133;"," ":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"};function hn(e){return dn[e]}var pn={"\0":"%00","":"%01","":"%02","":"%03","":"%04","":"%05","":"%06","":"%07","\b":"%08","\t":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D","":"%0E","":"%0F","":"%10","":"%11","":"%12","":"%13","":"%14","":"%15","":"%16","":"%17","":"%18","":"%19","":"%1A","":"%1B","":"%1C","":"%1D","":"%1E","":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","":"%7F","…":"%C2%85"," ":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","":"%EF%BC%81","":"%EF%BC%83","":"%EF%BC%84","":"%EF%BC%86","":"%EF%BC%87","":"%EF%BC%88","":"%EF%BC%89","":"%EF%BC%8A","":"%EF%BC%8B","":"%EF%BC%8C","":"%EF%BC%8F","":"%EF%BC%9A","":"%EF%BC%9B","":"%EF%BC%9D","":"%EF%BC%9F","":"%EF%BC%A0","":"%EF%BC%BB","":"%EF%BC%BD"};function mn(e){return pn[e]}var bn=/[\x00\x22\x27\x3c\x3e]/g,gn=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,vn=/^(?!-*(?:expression|(?:moz-)?binding))(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|)$/i,yn=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,wn=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,_n=/</g;function xn(){return on("Enter a valid phone number")}function kn(){return on("Something went wrong. Please try again.")}function En(){return on("This email already exists without any means of sign-in. Please reset the password to recover.")}function Sn(){return on("Please login again to perform this operation")}function Tn(e,t,n){if(this.code=Cn+e,!(e=t)){switch(e="",this.code){case"firebaseui/merge-conflict":e+="The current anonymous user failed to upgrade. The non-anonymous credential is already associated with a different user account.";break;default:e+=kn()}e=on(e).toString()}this.message=e||"",this.credential=n||null}O(Tn,Error),Tn.prototype.na=function(){return{code:this.code,message:this.message}},Tn.prototype.toJSON=function(){return this.na()};var Cn="firebaseui/";function An(){this.V={}}function In(e,t,n){if(t.toLowerCase()in e.V)throw Error("Configuration "+t+" has already been defined.");e.V[t.toLowerCase()]=n}function On(e,t,n){if(!(t.toLowerCase()in e.V))throw Error("Configuration "+t+" is not defined.");e.V[t.toLowerCase()]=n}function Nn(e,t){if(!(e=e.get(t)))throw Error("Configuration "+t+" is required.");return e}function Pn(){this.f=void 0,this.a={}}function Rn(e,t,n,i){for(var r=0;r<t.length;r++){var o=t.charAt(r);e.a[o]||(e.a[o]=new Pn),e=e.a[o]}if(i&&void 0!==e.f)throw Error('The collection already contains the key "'+t+'"');e.f=n}function Dn(e){for(this.a=e,this.f=new Pn,e=0;e<this.a.length;e++){var t=this.f.get("+"+this.a[e].b);t?t.push(this.a[e]):this.f.add("+"+this.a[e].b,[this.a[e]])}}function Ln(e,t){var n={},i=0;for(void 0!==(e=e.f).f&&(n[i]=e.f);i<t.length;i++){var r=t.charAt(i);if(!(r in e.a))break;void 0!==(e=e.a[r]).f&&(n[i]=e.f)}for(var o in n)if(n.hasOwnProperty(o))return n[o];return[]}function Mn(e){for(var t=0;t<Bn.length;t++)if(Bn[t].c===e)return Bn[t];return null}function jn(e){e=e.toUpperCase();for(var t=[],n=0;n<Bn.length;n++)Bn[n].g===e&&t.push(Bn[n]);return t}function Un(e){if(0<e.length&&"+"==e.charAt(0)){e=e.substring(1);for(var t=[],n=0;n<Bn.length;n++)Bn[n].b==e&&t.push(Bn[n]);e=t}else e=jn(e);return e}function Fn(e){e.sort(function(e,t){return e.name.localeCompare(t.name,"en")})}An.prototype.get=function(e){if(!(e.toLowerCase()in this.V))throw Error("Configuration "+e+" is not defined.");return this.V[e.toLowerCase()]},(e=Pn.prototype).set=function(e,t){Rn(this,e,t,!1)},e.add=function(e,t){Rn(this,e,t,!0)},e.get=function(e){e:{for(var t=this,n=0;n<e.length;n++)if(!(t=t.a[e.charAt(n)])){e=void 0;break e}e=t}return e?e.f:void 0},e.ja=function(){var e=[];return function e(t,n){void 0!==t.f&&n.push(t.f);for(var i in t.a)e(t.a[i],n)}(this,e),e},e.ha=function(){var e=[];return function e(t,n,i){void 0!==t.f&&i.push(n);for(var r in t.a)e(t.a[r],n+r,i)}(this,"",e),e},e.clear=function(){this.a={},this.f=void 0};var Bn=[{name:"Afghanistan",c:"93-AF-0",b:"93",g:"AF"},{name:"Åland Islands",c:"358-AX-0",b:"358",g:"AX"},{name:"Albania",c:"355-AL-0",b:"355",g:"AL"},{name:"Algeria",c:"213-DZ-0",b:"213",g:"DZ"},{name:"American Samoa",c:"1-AS-0",b:"1",g:"AS"},{name:"Andorra",c:"376-AD-0",b:"376",g:"AD"},{name:"Angola",c:"244-AO-0",b:"244",g:"AO"},{name:"Anguilla",c:"1-AI-0",b:"1",g:"AI"},{name:"Antigua and Barbuda",c:"1-AG-0",b:"1",g:"AG"},{name:"Argentina",c:"54-AR-0",b:"54",g:"AR"},{name:"Armenia",c:"374-AM-0",b:"374",g:"AM"},{name:"Aruba",c:"297-AW-0",b:"297",g:"AW"},{name:"Ascension Island",c:"247-AC-0",b:"247",g:"AC"},{name:"Australia",c:"61-AU-0",b:"61",g:"AU"},{name:"Austria",c:"43-AT-0",b:"43",g:"AT"},{name:"Azerbaijan",c:"994-AZ-0",b:"994",g:"AZ"},{name:"Bahamas",c:"1-BS-0",b:"1",g:"BS"},{name:"Bahrain",c:"973-BH-0",b:"973",g:"BH"},{name:"Bangladesh",c:"880-BD-0",b:"880",g:"BD"},{name:"Barbados",c:"1-BB-0",b:"1",g:"BB"},{name:"Belarus",c:"375-BY-0",b:"375",g:"BY"},{name:"Belgium",c:"32-BE-0",b:"32",g:"BE"},{name:"Belize",c:"501-BZ-0",b:"501",g:"BZ"},{name:"Benin",c:"229-BJ-0",b:"229",g:"BJ"},{name:"Bermuda",c:"1-BM-0",b:"1",g:"BM"},{name:"Bhutan",c:"975-BT-0",b:"975",g:"BT"},{name:"Bolivia",c:"591-BO-0",b:"591",g:"BO"},{name:"Bosnia and Herzegovina",c:"387-BA-0",b:"387",g:"BA"},{name:"Botswana",c:"267-BW-0",b:"267",g:"BW"},{name:"Brazil",c:"55-BR-0",b:"55",g:"BR"},{name:"British Indian Ocean Territory",c:"246-IO-0",b:"246",g:"IO"},{name:"British Virgin Islands",c:"1-VG-0",b:"1",g:"VG"},{name:"Brunei",c:"673-BN-0",b:"673",g:"BN"},{name:"Bulgaria",c:"359-BG-0",b:"359",g:"BG"},{name:"Burkina Faso",c:"226-BF-0",b:"226",g:"BF"},{name:"Burundi",c:"257-BI-0",b:"257",g:"BI"},{name:"Cambodia",c:"855-KH-0",b:"855",g:"KH"},{name:"Cameroon",c:"237-CM-0",b:"237",g:"CM"},{name:"Canada",c:"1-CA-0",b:"1",g:"CA"},{name:"Cape Verde",c:"238-CV-0",b:"238",g:"CV"},{name:"Caribbean Netherlands",c:"599-BQ-0",b:"599",g:"BQ"},{name:"Cayman Islands",c:"1-KY-0",b:"1",g:"KY"},{name:"Central African Republic",c:"236-CF-0",b:"236",g:"CF"},{name:"Chad",c:"235-TD-0",b:"235",g:"TD"},{name:"Chile",c:"56-CL-0",b:"56",g:"CL"},{name:"China",c:"86-CN-0",b:"86",g:"CN"},{name:"Christmas Island",c:"61-CX-0",b:"61",g:"CX"},{name:"Cocos [Keeling] Islands",c:"61-CC-0",b:"61",g:"CC"},{name:"Colombia",c:"57-CO-0",b:"57",g:"CO"},{name:"Comoros",c:"269-KM-0",b:"269",g:"KM"},{name:"Democratic Republic Congo",c:"243-CD-0",b:"243",g:"CD"},{name:"Republic of Congo",c:"242-CG-0",b:"242",g:"CG"},{name:"Cook Islands",c:"682-CK-0",b:"682",g:"CK"},{name:"Costa Rica",c:"506-CR-0",b:"506",g:"CR"},{name:"Côte d'Ivoire",c:"225-CI-0",b:"225",g:"CI"},{name:"Croatia",c:"385-HR-0",b:"385",g:"HR"},{name:"Cuba",c:"53-CU-0",b:"53",g:"CU"},{name:"Curaçao",c:"599-CW-0",b:"599",g:"CW"},{name:"Cyprus",c:"357-CY-0",b:"357",g:"CY"},{name:"Czech Republic",c:"420-CZ-0",b:"420",g:"CZ"},{name:"Denmark",c:"45-DK-0",b:"45",g:"DK"},{name:"Djibouti",c:"253-DJ-0",b:"253",g:"DJ"},{name:"Dominica",c:"1-DM-0",b:"1",g:"DM"},{name:"Dominican Republic",c:"1-DO-0",b:"1",g:"DO"},{name:"East Timor",c:"670-TL-0",b:"670",g:"TL"},{name:"Ecuador",c:"593-EC-0",b:"593",g:"EC"},{name:"Egypt",c:"20-EG-0",b:"20",g:"EG"},{name:"El Salvador",c:"503-SV-0",b:"503",g:"SV"},{name:"Equatorial Guinea",c:"240-GQ-0",b:"240",g:"GQ"},{name:"Eritrea",c:"291-ER-0",b:"291",g:"ER"},{name:"Estonia",c:"372-EE-0",b:"372",g:"EE"},{name:"Ethiopia",c:"251-ET-0",b:"251",g:"ET"},{name:"Falkland Islands [Islas Malvinas]",c:"500-FK-0",b:"500",g:"FK"},{name:"Faroe Islands",c:"298-FO-0",b:"298",g:"FO"},{name:"Fiji",c:"679-FJ-0",b:"679",g:"FJ"},{name:"Finland",c:"358-FI-0",b:"358",g:"FI"},{name:"France",c:"33-FR-0",b:"33",g:"FR"},{name:"French Guiana",c:"594-GF-0",b:"594",g:"GF"},{name:"French Polynesia",c:"689-PF-0",b:"689",g:"PF"},{name:"Gabon",c:"241-GA-0",b:"241",g:"GA"},{name:"Gambia",c:"220-GM-0",b:"220",g:"GM"},{name:"Georgia",c:"995-GE-0",b:"995",g:"GE"},{name:"Germany",c:"49-DE-0",b:"49",g:"DE"},{name:"Ghana",c:"233-GH-0",b:"233",g:"GH"},{name:"Gibraltar",c:"350-GI-0",b:"350",g:"GI"},{name:"Greece",c:"30-GR-0",b:"30",g:"GR"},{name:"Greenland",c:"299-GL-0",b:"299",g:"GL"},{name:"Grenada",c:"1-GD-0",b:"1",g:"GD"},{name:"Guadeloupe",c:"590-GP-0",b:"590",g:"GP"},{name:"Guam",c:"1-GU-0",b:"1",g:"GU"},{name:"Guatemala",c:"502-GT-0",b:"502",g:"GT"},{name:"Guernsey",c:"44-GG-0",b:"44",g:"GG"},{name:"Guinea Conakry",c:"224-GN-0",b:"224",g:"GN"},{name:"Guinea-Bissau",c:"245-GW-0",b:"245",g:"GW"},{name:"Guyana",c:"592-GY-0",b:"592",g:"GY"},{name:"Haiti",c:"509-HT-0",b:"509",g:"HT"},{name:"Heard Island and McDonald Islands",c:"672-HM-0",b:"672",g:"HM"},{name:"Honduras",c:"504-HN-0",b:"504",g:"HN"},{name:"Hong Kong",c:"852-HK-0",b:"852",g:"HK"},{name:"Hungary",c:"36-HU-0",b:"36",g:"HU"},{name:"Iceland",c:"354-IS-0",b:"354",g:"IS"},{name:"India",c:"91-IN-0",b:"91",g:"IN"},{name:"Indonesia",c:"62-ID-0",b:"62",g:"ID"},{name:"Iran",c:"98-IR-0",b:"98",g:"IR"},{name:"Iraq",c:"964-IQ-0",b:"964",g:"IQ"},{name:"Ireland",c:"353-IE-0",b:"353",g:"IE"},{name:"Isle of Man",c:"44-IM-0",b:"44",g:"IM"},{name:"Israel",c:"972-IL-0",b:"972",g:"IL"},{name:"Italy",c:"39-IT-0",b:"39",g:"IT"},{name:"Jamaica",c:"1-JM-0",b:"1",g:"JM"},{name:"Japan",c:"81-JP-0",b:"81",g:"JP"},{name:"Jersey",c:"44-JE-0",b:"44",g:"JE"},{name:"Jordan",c:"962-JO-0",b:"962",g:"JO"},{name:"Kazakhstan",c:"7-KZ-0",b:"7",g:"KZ"},{name:"Kenya",c:"254-KE-0",b:"254",g:"KE"},{name:"Kiribati",c:"686-KI-0",b:"686",g:"KI"},{name:"Kosovo",c:"377-XK-0",b:"377",g:"XK"},{name:"Kosovo",c:"381-XK-0",b:"381",g:"XK"},{name:"Kosovo",c:"386-XK-0",b:"386",g:"XK"},{name:"Kuwait",c:"965-KW-0",b:"965",g:"KW"},{name:"Kyrgyzstan",c:"996-KG-0",b:"996",g:"KG"},{name:"Laos",c:"856-LA-0",b:"856",g:"LA"},{name:"Latvia",c:"371-LV-0",b:"371",g:"LV"},{name:"Lebanon",c:"961-LB-0",b:"961",g:"LB"},{name:"Lesotho",c:"266-LS-0",b:"266",g:"LS"},{name:"Liberia",c:"231-LR-0",b:"231",g:"LR"},{name:"Libya",c:"218-LY-0",b:"218",g:"LY"},{name:"Liechtenstein",c:"423-LI-0",b:"423",g:"LI"},{name:"Lithuania",c:"370-LT-0",b:"370",g:"LT"},{name:"Luxembourg",c:"352-LU-0",b:"352",g:"LU"},{name:"Macau",c:"853-MO-0",b:"853",g:"MO"},{name:"Macedonia",c:"389-MK-0",b:"389",g:"MK"},{name:"Madagascar",c:"261-MG-0",b:"261",g:"MG"},{name:"Malawi",c:"265-MW-0",b:"265",g:"MW"},{name:"Malaysia",c:"60-MY-0",b:"60",g:"MY"},{name:"Maldives",c:"960-MV-0",b:"960",g:"MV"},{name:"Mali",c:"223-ML-0",b:"223",g:"ML"},{name:"Malta",c:"356-MT-0",b:"356",g:"MT"},{name:"Marshall Islands",c:"692-MH-0",b:"692",g:"MH"},{name:"Martinique",c:"596-MQ-0",b:"596",g:"MQ"},{name:"Mauritania",c:"222-MR-0",b:"222",g:"MR"},{name:"Mauritius",c:"230-MU-0",b:"230",g:"MU"},{name:"Mayotte",c:"262-YT-0",b:"262",g:"YT"},{name:"Mexico",c:"52-MX-0",b:"52",g:"MX"},{name:"Micronesia",c:"691-FM-0",b:"691",g:"FM"},{name:"Moldova",c:"373-MD-0",b:"373",g:"MD"},{name:"Monaco",c:"377-MC-0",b:"377",g:"MC"},{name:"Mongolia",c:"976-MN-0",b:"976",g:"MN"},{name:"Montenegro",c:"382-ME-0",b:"382",g:"ME"},{name:"Montserrat",c:"1-MS-0",b:"1",g:"MS"},{name:"Morocco",c:"212-MA-0",b:"212",g:"MA"},{name:"Mozambique",c:"258-MZ-0",b:"258",g:"MZ"},{name:"Myanmar [Burma]",c:"95-MM-0",b:"95",g:"MM"},{name:"Namibia",c:"264-NA-0",b:"264",g:"NA"},{name:"Nauru",c:"674-NR-0",b:"674",g:"NR"},{name:"Nepal",c:"977-NP-0",b:"977",g:"NP"},{name:"Netherlands",c:"31-NL-0",b:"31",g:"NL"},{name:"New Caledonia",c:"687-NC-0",b:"687",g:"NC"},{name:"New Zealand",c:"64-NZ-0",b:"64",g:"NZ"},{name:"Nicaragua",c:"505-NI-0",b:"505",g:"NI"},{name:"Niger",c:"227-NE-0",b:"227",g:"NE"},{name:"Nigeria",c:"234-NG-0",b:"234",g:"NG"},{name:"Niue",c:"683-NU-0",b:"683",g:"NU"},{name:"Norfolk Island",c:"672-NF-0",b:"672",g:"NF"},{name:"North Korea",c:"850-KP-0",b:"850",g:"KP"},{name:"Northern Mariana Islands",c:"1-MP-0",b:"1",g:"MP"},{name:"Norway",c:"47-NO-0",b:"47",g:"NO"},{name:"Oman",c:"968-OM-0",b:"968",g:"OM"},{name:"Pakistan",c:"92-PK-0",b:"92",g:"PK"},{name:"Palau",c:"680-PW-0",b:"680",g:"PW"},{name:"Palestinian Territories",c:"970-PS-0",b:"970",g:"PS"},{name:"Panama",c:"507-PA-0",b:"507",g:"PA"},{name:"Papua New Guinea",c:"675-PG-0",b:"675",g:"PG"},{name:"Paraguay",c:"595-PY-0",b:"595",g:"PY"},{name:"Peru",c:"51-PE-0",b:"51",g:"PE"},{name:"Philippines",c:"63-PH-0",b:"63",g:"PH"},{name:"Poland",c:"48-PL-0",b:"48",g:"PL"},{name:"Portugal",c:"351-PT-0",b:"351",g:"PT"},{name:"Puerto Rico",c:"1-PR-0",b:"1",g:"PR"},{name:"Qatar",c:"974-QA-0",b:"974",g:"QA"},{name:"Réunion",c:"262-RE-0",b:"262",g:"RE"},{name:"Romania",c:"40-RO-0",b:"40",g:"RO"},{name:"Russia",c:"7-RU-0",b:"7",g:"RU"},{name:"Rwanda",c:"250-RW-0",b:"250",g:"RW"},{name:"Saint Barthélemy",c:"590-BL-0",b:"590",g:"BL"},{name:"Saint Helena",c:"290-SH-0",b:"290",g:"SH"},{name:"St. Kitts",c:"1-KN-0",b:"1",g:"KN"},{name:"St. Lucia",c:"1-LC-0",b:"1",g:"LC"},{name:"Saint Martin",c:"590-MF-0",b:"590",g:"MF"},{name:"Saint Pierre and Miquelon",c:"508-PM-0",b:"508",g:"PM"},{name:"St. Vincent",c:"1-VC-0",b:"1",g:"VC"},{name:"Samoa",c:"685-WS-0",b:"685",g:"WS"},{name:"San Marino",c:"378-SM-0",b:"378",g:"SM"},{name:"São Tomé and Príncipe",c:"239-ST-0",b:"239",g:"ST"},{name:"Saudi Arabia",c:"966-SA-0",b:"966",g:"SA"},{name:"Senegal",c:"221-SN-0",b:"221",g:"SN"},{name:"Serbia",c:"381-RS-0",b:"381",g:"RS"},{name:"Seychelles",c:"248-SC-0",b:"248",g:"SC"},{name:"Sierra Leone",c:"232-SL-0",b:"232",g:"SL"},{name:"Singapore",c:"65-SG-0",b:"65",g:"SG"},{name:"Sint Maarten",c:"1-SX-0",b:"1",g:"SX"},{name:"Slovakia",c:"421-SK-0",b:"421",g:"SK"},{name:"Slovenia",c:"386-SI-0",b:"386",g:"SI"},{name:"Solomon Islands",c:"677-SB-0",b:"677",g:"SB"},{name:"Somalia",c:"252-SO-0",b:"252",g:"SO"},{name:"South Africa",c:"27-ZA-0",b:"27",g:"ZA"},{name:"South Georgia and the South Sandwich Islands",c:"500-GS-0",b:"500",g:"GS"},{name:"South Korea",c:"82-KR-0",b:"82",g:"KR"},{name:"South Sudan",c:"211-SS-0",b:"211",g:"SS"},{name:"Spain",c:"34-ES-0",b:"34",g:"ES"},{name:"Sri Lanka",c:"94-LK-0",b:"94",g:"LK"},{name:"Sudan",c:"249-SD-0",b:"249",g:"SD"},{name:"Suriname",c:"597-SR-0",b:"597",g:"SR"},{name:"Svalbard and Jan Mayen",c:"47-SJ-0",b:"47",g:"SJ"},{name:"Swaziland",c:"268-SZ-0",b:"268",g:"SZ"},{name:"Sweden",c:"46-SE-0",b:"46",g:"SE"},{name:"Switzerland",c:"41-CH-0",b:"41",g:"CH"},{name:"Syria",c:"963-SY-0",b:"963",g:"SY"},{name:"Taiwan",c:"886-TW-0",b:"886",g:"TW"},{name:"Tajikistan",c:"992-TJ-0",b:"992",g:"TJ"},{name:"Tanzania",c:"255-TZ-0",b:"255",g:"TZ"},{name:"Thailand",c:"66-TH-0",b:"66",g:"TH"},{name:"Togo",c:"228-TG-0",b:"228",g:"TG"},{name:"Tokelau",c:"690-TK-0",b:"690",g:"TK"},{name:"Tonga",c:"676-TO-0",b:"676",g:"TO"},{name:"Trinidad/Tobago",c:"1-TT-0",b:"1",g:"TT"},{name:"Tunisia",c:"216-TN-0",b:"216",g:"TN"},{name:"Turkey",c:"90-TR-0",b:"90",g:"TR"},{name:"Turkmenistan",c:"993-TM-0",b:"993",g:"TM"},{name:"Turks and Caicos Islands",c:"1-TC-0",b:"1",g:"TC"},{name:"Tuvalu",c:"688-TV-0",b:"688",g:"TV"},{name:"U.S. Virgin Islands",c:"1-VI-0",b:"1",g:"VI"},{name:"Uganda",c:"256-UG-0",b:"256",g:"UG"},{name:"Ukraine",c:"380-UA-0",b:"380",g:"UA"},{name:"United Arab Emirates",c:"971-AE-0",b:"971",g:"AE"},{name:"United Kingdom",c:"44-GB-0",b:"44",g:"GB"},{name:"United States",c:"1-US-0",b:"1",g:"US"},{name:"Uruguay",c:"598-UY-0",b:"598",g:"UY"},{name:"Uzbekistan",c:"998-UZ-0",b:"998",g:"UZ"},{name:"Vanuatu",c:"678-VU-0",b:"678",g:"VU"},{name:"Vatican City",c:"379-VA-0",b:"379",g:"VA"},{name:"Venezuela",c:"58-VE-0",b:"58",g:"VE"},{name:"Vietnam",c:"84-VN-0",b:"84",g:"VN"},{name:"Wallis and Futuna",c:"681-WF-0",b:"681",g:"WF"},{name:"Western Sahara",c:"212-EH-0",b:"212",g:"EH"},{name:"Yemen",c:"967-YE-0",b:"967",g:"YE"},{name:"Zambia",c:"260-ZM-0",b:"260",g:"ZM"},{name:"Zimbabwe",c:"263-ZW-0",b:"263",g:"ZW"}];Fn(Bn);var zn=new Dn(Bn);function Hn(e,t){this.a=e,this.va=t}function Vn(e){e=X(e);var t=Ln(zn,e);return 0<t.length?new Hn("1"==t[0].b?"1-US-0":t[0].c,X(e.substr(t[0].b.length+1))):null}function Wn(e){var t=Mn(e.a);if(!t)throw Error("Country ID "+e.a+" not found.");return"+"+t.b+e.va}function Gn(e,t){for(var n=0;n<e.length;n++)if(!B(Kn,e[n])&&(null!==qn&&e[n]in qn||B(t,e[n])))return e[n];return null}var Kn=["emailLink","password","phone"],qn={"facebook.com":"FacebookAuthProvider","github.com":"GithubAuthProvider","google.com":"GoogleAuthProvider",password:"EmailAuthProvider","twitter.com":"TwitterAuthProvider",phone:"PhoneAuthProvider"},Xn=Object.freeze||function(e){return e};function Yn(e,t,n){this.reset(e,t,n,void 0,void 0)}Yn.prototype.a=null;function Jn(e){this.i=e,this.a=this.h=this.j=this.f=null}function $n(e,t){this.name=e,this.value=t}Yn.prototype.reset=function(e,t,n,i,r){"number"==typeof r||0,this.h=i||A(),this.j=e,this.i=t,this.f=n,delete this.a},$n.prototype.toString=function(){return this.name};var Zn=new $n("SHOUT",1200),Qn=new $n("SEVERE",1e3),ei=new $n("WARNING",900),ti=new $n("CONFIG",700);Jn.prototype.log=function(e,t,n){if(e.value>=function e(t){return t.j?t.j:t.f?e(t.f):(R("Root logger has no level set."),null)}(this).value)for(v(t)&&(t=t()),e=new Yn(e,String(t),this.i),n&&(e.a=n),n=this;n;){var i=n,r=e;if(i.a)for(var o=0;t=i.a[o];o++)t(r);n=n.f}};var ni={},ii=null;function ri(){ii||(ii=new Jn(""),ni[""]=ii,ii.j=ti)}function oi(){this.a=A()}var ai=null;function si(e){this.j=e||"",ai||(ai=new oi),this.i=ai}function ui(e){return 10>e?"0"+e:String(e)}function li(e){si.call(this,e)}function ci(){this.i=E(this.h,this),this.a=new li,this.a.f=!1,this.a.h=!1,this.f=this.a.a=!1,this.j={}}oi.prototype.set=function(e){this.a=e},oi.prototype.reset=function(){this.set(A())},oi.prototype.get=function(){return this.a},si.prototype.a=!0,si.prototype.f=!0,si.prototype.h=!1,O(li,si),ci.prototype.h=function(e){if(!this.j[e.f]){var t=this.a,n=[];if(n.push(t.j," "),t.f){var i=new Date(e.h);n.push("[",ui(i.getFullYear()-2e3)+ui(i.getMonth()+1)+ui(i.getDate())+" "+ui(i.getHours())+":"+ui(i.getMinutes())+":"+ui(i.getSeconds())+"."+ui(Math.floor(i.getMilliseconds()/10)),"] ")}if(n.push("[",function(e,t){t=(e=(e.h-t)/1e3).toFixed(3);var n=0;if(1>e)n=2;else for(;100>e;)n++,e*=10;for(;0<n--;)t=" "+t;return t}(e,t.i.get()),"s] "),n.push("[",e.f,"] "),n.push(e.i),t.h&&(i=e.a)&&n.push("\n",i instanceof Error?i.message:i.toString()),t.a&&n.push("\n"),t=n.join(""),n=di)switch(e.j){case Zn:hi(n,"info",t);break;case Qn:hi(n,"error",t);break;case ei:hi(n,"warn",t);break;default:hi(n,"log",t)}}};var fi,di=s.console;function hi(e,t,n){e[t]?e[t](n):e.log(n)}function pi(e,t){fi&&fi.log(Qn,e,t)}fi=function e(t){var n;if(ri(),!(n=ni[t])){n=new Jn(t);var i=t.lastIndexOf("."),r=t.substr(i+1);(i=e(t.substr(0,i))).h||(i.h={}),i.h[r]=n,n.f=i,ni[t]=n}return n}("firebaseui");var mi=new ci;if(1!=mi.f){var bi;ri(),bi=ii;var gi=mi.i;bi.a||(bi.a=[]),bi.a.push(gi),mi.f=!0}function vi(e){fi&&fi.log(ei,e,void 0)}function yi(e){e.prototype.then=e.prototype.then,e.prototype.$goog_Thenable=!0}function wi(e){if(!e)return!1;try{return!!e.$goog_Thenable}catch(e){return!1}}function _i(e,t){this.h=e,this.j=t,this.f=0,this.a=null}function xi(e,t){e.j(t),100>e.f&&(e.f++,t.next=e.a,e.a=t)}function ki(){this.f=this.a=null}_i.prototype.get=function(){if(0<this.f){this.f--;var e=this.a;this.a=e.next,e.next=null}else e=this.h();return e};var Ei,Si,Ti=new _i(function(){return new Ai},function(e){e.reset()});function Ci(){var e=Pi,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.f=null),t.next=null),t}function Ai(){this.next=this.f=this.a=null}function Ii(e){s.setTimeout(function(){throw e},0)}function Oi(e,t){Si||function(){if(s.Promise&&s.Promise.resolve){var e=s.Promise.resolve(void 0);Si=function(){e.then(Ri)}}else Si=function(){var e=Ri;!v(s.setImmediate)||s.Window&&s.Window.prototype&&!se("Edge")&&s.Window.prototype.setImmediate==s.setImmediate?(Ei||(Ei=function(){var e=s.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!se("Presto")&&(e=function(){var e=document.createElement("IFRAME");e.style.display="none",e.src="",document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.write(""),e.close();var n="callImmediate"+Math.random(),i="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=E(function(e){"*"!=i&&e.origin!=i||e.data!=n||this.port1.onmessage()},this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,i)}}}),void 0!==e&&!se("Trident")&&!se("MSIE")){var t=new e,n={},i=n;return t.port1.onmessage=function(){if(u(n.next)){var e=(n=n.next).ab;n.ab=null,e()}},function(e){i.next={ab:e},i=i.next,t.port2.postMessage(0)}}return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(e){var t=document.createElement("SCRIPT");t.onreadystatechange=function(){t.onreadystatechange=null,t.parentNode.removeChild(t),t=null,e(),e=null},document.documentElement.appendChild(t)}:function(e){s.setTimeout(e,0)}}()),Ei(e)):s.setImmediate(e)}}(),Ni||(Si(),Ni=!0),Pi.add(e,t)}ki.prototype.add=function(e,t){var n=Ti.get();n.set(e,t),this.f?this.f.next=n:this.a=n,this.f=n},Ai.prototype.set=function(e,t){this.a=e,this.f=t,this.next=null},Ai.prototype.reset=function(){this.next=this.f=this.a=null};var Ni=!1,Pi=new ki;function Ri(){for(var e;e=Ci();){try{e.a.call(e.f)}catch(e){Ii(e)}xi(Ti,e)}Ni=!1}function Di(e,t){if(this.a=Li,this.w=void 0,this.j=this.f=this.h=null,this.i=this.v=!1,e!=d)try{var n=this;e.call(t,function(e){Ki(n,Mi,e)},function(e){if(!(e instanceof Zi))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(e){}Ki(n,ji,e)})}catch(e){Ki(this,ji,e)}}var Li=0,Mi=2,ji=3;function Ui(){this.next=this.context=this.f=this.h=this.a=null,this.j=!1}Ui.prototype.reset=function(){this.context=this.f=this.h=this.a=null,this.j=!1};var Fi=new _i(function(){return new Ui},function(e){e.reset()});function Bi(e,t,n){var i=Fi.get();return i.h=e,i.f=t,i.context=n,i}function zi(e){if(e instanceof Di)return e;var t=new Di(d);return Ki(t,Mi,e),t}function Hi(e){return new Di(function(t,n){n(e)})}function Vi(e,t){return Gi(e,null,t,void 0)}function Wi(e,t){e.f||e.a!=Mi&&e.a!=ji||qi(e),e.j?e.j.next=t:e.f=t,e.j=t}function Gi(e,t,n,i){var r=Bi(null,null,null);return r.a=new Di(function(e,o){r.h=t?function(n){try{var r=t.call(i,n);e(r)}catch(e){o(e)}}:e,r.f=n?function(t){try{var r=n.call(i,t);!u(r)&&t instanceof Zi?o(t):e(r)}catch(e){o(e)}}:o}),r.a.h=e,Wi(e,r),r.a}function Ki(e,t,n){if(e.a==Li){e===n&&(t=ji,n=new TypeError("Promise cannot resolve to itself")),e.a=1;e:{var i=n,r=e.F,o=e.I;if(i instanceof Di){Wi(i,Bi(r||d,o||null,e));var a=!0}else if(wi(i))i.then(r,o,e),a=!0;else{if(y(i))try{var s=i.then;if(v(s)){!function(e,t,n,i,r){function o(e){a||(a=!0,i.call(r,e))}var a=!1;try{t.call(e,function(e){a||(a=!0,n.call(r,e))},o)}catch(e){o(e)}}(i,s,r,o,e),a=!0;break e}}catch(t){o.call(e,t),a=!0;break e}a=!1}}a||(e.w=n,e.a=t,e.h=null,qi(e),t!=ji||n instanceof Zi||function(e,t){e.i=!0,Oi(function(){e.i&&$i.call(null,t)})}(e,n))}}function qi(e){e.v||(e.v=!0,Oi(e.C,e))}function Xi(e){var t=null;return e.f&&(t=e.f,e.f=t.next,t.next=null),e.f||(e.j=null),t}function Yi(e,t,n,i){if(n==ji&&t.f&&!t.j)for(;e&&e.i;e=e.h)e.i=!1;if(t.a)t.a.h=null,Ji(t,n,i);else try{t.j?t.h.call(t.context):Ji(t,n,i)}catch(e){$i.call(null,e)}xi(Fi,t)}function Ji(e,t,n){t==Mi?e.h.call(e.context,n):e.f&&e.f.call(e.context,n)}Di.prototype.then=function(e,t,n){return Gi(this,v(e)?e:null,v(t)?t:null,n)},yi(Di),Di.prototype.cancel=function(e){this.a==Li&&Oi(function(){!function e(t,n){if(t.a==Li)if(t.h){var i=t.h;if(i.f){for(var r=0,o=null,a=null,s=i.f;s&&(s.j||(r++,s.a==t&&(o=s),!(o&&1<r)));s=s.next)o||(a=s);o&&(i.a==Li&&1==r?e(i,n):(a?((r=a).next==i.j&&(i.j=r),r.next=r.next.next):Xi(i),Yi(i,o,ji,n)))}t.h=null}else Ki(t,ji,n)}(this,new Zi(e))},this)},Di.prototype.F=function(e){this.a=Li,Ki(this,Mi,e)},Di.prototype.I=function(e){this.a=Li,Ki(this,ji,e)},Di.prototype.C=function(){for(var e;e=Xi(this);)Yi(this,e,this.a,this.w);this.v=!1};var $i=Ii;function Zi(e){N.call(this,e)}O(Zi,N),Zi.prototype.name="cancel";var Qi=!ge||9<=Number(Ae),er=ge&&!Oe("9"),tr=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{s.addEventListener("test",d,t),s.removeEventListener("test",d,t)}catch(e){}return e}();function nr(){0!=ir&&(rr[this[w]||(this[w]=++_)]=this),this.O=this.O,this.C=this.C}var ir=0,rr={};function or(e,t){e.O?u(void 0)?t.call(void 0):t():(e.C||(e.C=[]),e.C.push(u(void 0)?E(t,void 0):t))}function ar(e){e&&"function"==typeof e.m&&e.m()}function sr(e,t){this.type=e,this.f=this.target=t,this.h=!1,this.ib=!0}function ur(e,t){if(sr.call(this,e?e.type:""),this.relatedTarget=this.f=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.j=this.keyCode=0,this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,e){var n=this.type=e.type,i=e.changedTouches?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.f=t,t=e.relatedTarget){if(we){e:{try{he(t.nodeName);var r=!0;break e}catch(e){}r=!1}r||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,null===i?(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0):(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0),this.button=e.button,this.keyCode=e.keyCode||0,this.key=e.key||"",this.j=e.charCode||("keypress"==n?e.keyCode:0),this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=l(e.pointerType)?e.pointerType:lr[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}nr.prototype.O=!1,nr.prototype.m=function(){if(!this.O&&(this.O=!0,this.l(),0!=ir)){var e=this[w]||(this[w]=++_);if(0!=ir&&this.C&&0<this.C.length)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete rr[e]}},nr.prototype.l=function(){if(this.C)for(;this.C.length;)this.C.shift()()},sr.prototype.stopPropagation=function(){this.h=!0},sr.prototype.preventDefault=function(){this.ib=!1},O(ur,sr);var lr=Xn({2:"touch",3:"pen",4:"mouse"});ur.prototype.stopPropagation=function(){ur.o.stopPropagation.call(this),this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0},ur.prototype.preventDefault=function(){ur.o.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,er)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}};var cr="closure_listenable_"+(1e6*Math.random()|0),fr=0;function dr(e,t,n,i,r){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!i,this.Fa=r,this.key=++fr,this.qa=this.Ca=!1}function hr(e){e.qa=!0,e.listener=null,e.proxy=null,e.src=null,e.Fa=null}function pr(e){this.src=e,this.a={},this.f=0}function mr(e,t){var n=t.type;n in e.a&&z(e.a[n],t)&&(hr(t),0==e.a[n].length&&(delete e.a[n],e.f--))}function br(e,t,n,i){for(var r=0;r<e.length;++r){var o=e[r];if(!o.qa&&o.listener==t&&o.capture==!!n&&o.Fa==i)return r}return-1}pr.prototype.add=function(e,t,n,i,r){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.f++);var a=br(e,t,i,r);return-1<a?(t=e[a],n||(t.Ca=!1)):((t=new dr(t,this.src,o,!!i,r)).Ca=n,e.push(t)),t};var gr="closure_lm_"+(1e6*Math.random()|0),vr={};function yr(e,t,n,i,r){if(i&&i.once)return _r(e,t,n,i,r);if(b(t)){for(var o=0;o<t.length;o++)yr(e,t[o],n,i,r);return null}return n=Or(n),e&&e[cr]?e.F.add(String(t),n,!1,y(i)?!!i.capture:!!i,r):wr(e,t,n,!1,i,r)}function wr(e,t,n,i,r,o){if(!t)throw Error("Invalid event type");var a=y(r)?!!r.capture:!!r,s=Ar(e);if(s||(e[gr]=s=new pr(e)),(n=s.add(t,n,i,a,o)).proxy)return n;if(i=function(){var e=Cr,t=Qi?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=i,i.src=e,i.listener=n,e.addEventListener)tr||(r=a),void 0===r&&(r=!1),e.addEventListener(t.toString(),i,r);else if(e.attachEvent)e.attachEvent(Er(t.toString()),i);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(i)}return 0,n}function _r(e,t,n,i,r){if(b(t)){for(var o=0;o<t.length;o++)_r(e,t[o],n,i,r);return null}return n=Or(n),e&&e[cr]?e.F.add(String(t),n,!0,y(i)?!!i.capture:!!i,r):wr(e,t,n,!0,i,r)}function xr(e,t,n,i,r){if(b(t))for(var o=0;o<t.length;o++)xr(e,t[o],n,i,r);else i=y(i)?!!i.capture:!!i,n=Or(n),e&&e[cr]?(e=e.F,(t=String(t).toString())in e.a&&(-1<(n=br(o=e.a[t],n,i,r))&&(hr(o[n]),H(o,n),0==o.length&&(delete e.a[t],e.f--)))):e&&(e=Ar(e))&&(t=e.a[t.toString()],e=-1,t&&(e=br(t,n,i,r)),(n=-1<e?t[e]:null)&&kr(n))}function kr(e){if("number"!=typeof e&&e&&!e.qa){var t=e.src;if(t&&t[cr])mr(t.F,e);else{var n=e.type,i=e.proxy;t.removeEventListener?t.removeEventListener(n,i,e.capture):t.detachEvent?t.detachEvent(Er(n),i):t.addListener&&t.removeListener&&t.removeListener(i),0,(n=Ar(t))?(mr(n,e),0==n.f&&(n.src=null,t[gr]=null)):hr(e)}}}function Er(e){return e in vr?vr[e]:vr[e]="on"+e}function Sr(e,t,n,i){var r=!0;if((e=Ar(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var o=t[e];o&&o.capture==n&&!o.qa&&(o=Tr(o,i),r=r&&!1!==o)}return r}function Tr(e,t){var n=e.listener,i=e.Fa||e.src;return e.Ca&&kr(e),n.call(i,t)}function Cr(e,t){if(e.qa)return!0;if(!Qi){if(!t)e:{t=["window","event"];for(var n=s,i=0;i<t.length;i++)if(null==(n=n[t[i]])){t=null;break e}t=n}if(t=new ur(i=t,this),n=!0,!(0>i.keyCode||null!=i.returnValue)){e:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break e}catch(e){r=!0}(r||null==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=t.f;r;r=r.parentNode)i.push(r);for(e=e.type,r=i.length-1;!t.h&&0<=r;r--){t.f=i[r];var o=Sr(i[r],e,!0,t);n=n&&o}for(r=0;!t.h&&r<i.length;r++)t.f=i[r],o=Sr(i[r],e,!1,t),n=n&&o}return n}return Tr(e,new ur(t,this))}function Ar(e){return(e=e[gr])instanceof pr?e:null}var Ir="__closure_events_fn_"+(1e9*Math.random()>>>0);function Or(e){return v(e)?e:(e[Ir]||(e[Ir]=function(t){return e.handleEvent(t)}),e[Ir])}function Nr(e,t,n){t||(t={}),n=n||window;var i=e instanceof Be?e:Ve(void 0!==e.href?e.href:String(e));e=t.target||e.target;var r=[];for(o in t)switch(o){case"width":case"height":case"top":case"left":r.push(o+"="+t[o]);break;case"target":case"noopener":case"noreferrer":break;default:r.push(o+"="+(t[o]?1:0))}var o=r.join(",");return(se("iPhone")&&!se("iPod")&&!se("iPad")||se("iPad")||se("iPod"))&&n.navigator&&n.navigator.standalone&&e&&"_self"!=e?(o=n.document.createElement("A"),i instanceof Be||i instanceof Be||(i="object"==typeof i&&i.ka?i.ia():String(i),He.test(i)||(i="about:invalid#zClosurez"),i=Ge(i)),o.href=ze(i),o.setAttribute("target",e),t.noreferrer&&o.setAttribute("rel","noreferrer"),(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,n,1),o.dispatchEvent(t),n={}):t.noreferrer?(n=n.open("",e,o),t=ze(i),n&&(ye&&-1!=t.indexOf(";")&&(t="'"+t.replace(/'/g,"%27")+"'"),n.opener=null,t=$e(t='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Y(t)+'">',null),n.document.write(Ye(t)),n.document.close())):(n=n.open(ze(i),e,o))&&t.noopener&&(n.opener=null),n}function Pr(e){window.location.assign(ze(Ve(e)))}function Rr(){try{return!!(window.opener&&window.opener.location&&window.opener.location.assign&&window.opener.location.hostname===window.location.hostname&&window.opener.location.protocol===window.location.protocol)}catch(e){}return!1}function Dr(e){Nr(e,{target:window.cordova&&window.cordova.InAppBrowser?"_system":"_blank"},void 0)}function Lr(e){if(null==(e=y(e)&&1==e.nodeType?e:document.querySelector(String(e))))throw Error("Could not find the FirebaseUI widget element on the page.");return e}function Mr(){return window.location.href}function jr(){this.a=new An,In(this.a,"acUiConfig"),In(this.a,"autoUpgradeAnonymousUsers"),In(this.a,"callbacks"),In(this.a,"credentialHelper",Ur),In(this.a,"popupMode",!1),In(this.a,"privacyPolicyUrl"),In(this.a,"queryParameterForSignInSuccessUrl","signInSuccessUrl"),In(this.a,"queryParameterForWidgetMode","mode"),In(this.a,"signInFlow"),In(this.a,"signInOptions"),In(this.a,"signInSuccessUrl"),In(this.a,"siteName"),In(this.a,"tosUrl"),In(this.a,"widgetUrl")}var Ur="accountchooser.com",Fr={Vb:Ur,Yb:"googleyolo",NONE:"none"},Br={Zb:"popup",ac:"redirect"};var zr={Xb:"callback",$b:"recoverEmail",bc:"resetPassword",cc:"select",dc:"signIn",ec:"verifyEmail"},Hr=["anonymous"],Vr=["sitekey","tabindex","callback","expired-callback"];function Wr(e){var t=e.a.get("widgetUrl")||Mr();return Gr(e,t)}function Gr(e,t){e=to(e);for(var n,i=t.search(kt),r=0,o=[];0<=(n=xt(t,r,e,i));)o.push(t.substring(r,n)),r=Math.min(t.indexOf("&",n)+1||i,i);return o.push(t.substr(r)),t=o.join("").replace(St,"$1"),(e+=i="="+encodeURIComponent("select"))?(0>(i=t.indexOf("#"))&&(i=t.length),0>(r=t.indexOf("?"))||r>i?(r=i,n=""):n=t.substring(r+1,i),i=(t=[t.substr(0,r),n,t.substr(i)])[1],t[1]=e?i?i+"&"+e:e:i,e=t[0]+(t[1]?"?"+t[1]:"")+t[2]):e=t,e}function Kr(e){var t=!!e.a.get("autoUpgradeAnonymousUsers");return t&&!lo(e)&&pi('Missing "signInFailure" callback: "signInFailure" callback needs to be provided when "autoUpgradeAnonymousUsers" is set to true.',void 0),t}function qr(e){e=e.a.get("signInOptions")||[];for(var t=[],n=0;n<e.length;n++){var i=e[n];(i=y(i)?i:{provider:i}).provider&&t.push(i)}return t}function Xr(e,t){e=qr(e);for(var n=0;n<e.length;n++)if(e[n].provider===t)return e[n];return null}function Yr(e){return j(qr(e),function(e){return e.provider})}function Jr(e,t){e=$r(e);for(var n=0;n<e.length;n++)if(e[n].providerId===t)return e[n];return null}function $r(e){return j(qr(e),function(e){return qn[e.provider]||B(Hr,e.provider)?{providerId:e.provider}:{providerId:e.provider,hb:e.providerName||e.provider,ob:e.buttonColor||null,fb:e.iconUrl?ze(Ve(e.iconUrl)):null,Db:e.loginHintKey||null}})}function Zr(e,t){return b(e=(e=Xr(e,t))&&e.scopes)?e:[]}function Qr(e,t){return y(e=(e=Xr(e,t))&&e.customParameters)?(e=le(e),t===o.auth.GoogleAuthProvider.PROVIDER_ID&&delete e.login_hint,e):null}function eo(e){if(!(e=Xr(e,o.auth.PhoneAuthProvider.PROVIDER_ID)))return null;var t=e.whitelistedCountries,n=e.blacklistedCountries;if(void 0!==t&&(!b(t)||0==t.length))throw Error("WhitelistedCountries must be a non-empty array.");if(void 0!==n&&!b(n))throw Error("BlacklistedCountries must be an array.");if(t&&n)throw Error("Both whitelistedCountries and blacklistedCountries are provided.");if(!t&&!n)return Bn;if(e=[],t){n={};for(var i=0;i<t.length;i++)for(var r=Un(t[i]),a=0;a<r.length;a++)n[r[a].c]=r[a];for(var s in n)n.hasOwnProperty(s)&&e.push(n[s])}else{for(s={},i=0;i<n.length;i++)for(r=Un(n[i]),a=0;a<r.length;a++)s[r[a].c]=r[a];for(t=0;t<Bn.length;t++)null!==s&&Bn[t].c in s||e.push(Bn[t])}return e}function to(e){return Nn(e.a,"queryParameterForWidgetMode")}function no(e){var t=e.a.get("tosUrl")||null;if(e=e.a.get("privacyPolicyUrl")||null,t&&!e&&vi("Privacy Policy URL is missing, the link will not be displayed."),t&&e){if(v(t))return t;if(l(t))return function(){Dr(t)}}return null}function io(e){var t=e.a.get("tosUrl")||null,n=e.a.get("privacyPolicyUrl")||null;if(n&&!t&&vi("Term of Service URL is missing, the link will not be displayed."),t&&n){if(v(n))return n;if(l(n))return function(){Dr(n)}}return null}function ro(e){return!(e=Xr(e,o.auth.EmailAuthProvider.PROVIDER_ID))||void 0===e.requireDisplayName||!!e.requireDisplayName}function oo(e){return!(!(e=Xr(e,o.auth.EmailAuthProvider.PROVIDER_ID))||e.signInMethod!==o.auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD)}function ao(e){return co(e).uiShown||null}function so(e){return co(e).signInSuccess||null}function uo(e){return co(e).signInSuccessWithAuthResult||null}function lo(e){return co(e).signInFailure||null}function co(e){return e.a.get("callbacks")||{}}function fo(e){if("http:"!==(window.location&&window.location.protocol)&&"https:"!==(window.location&&window.location.protocol))return"none";for(var t in e=e.a.get("credentialHelper"),Fr)if(Fr[t]==e)return Fr[t];return Ur}function ho(e){this.a=Ot(e)}var po={Ja:"ui_auid",Wb:"apiKey",Ka:"ui_sd",lb:"mode",Va:"oobCode",PROVIDER_ID:"ui_pid",Ma:"ui_sid"};function mo(e){return e.a.a.get(po.Ja)||null}function bo(e,t){t?e.a.a.set(po.PROVIDER_ID,t):Ht(e.a.a,po.PROVIDER_ID)}function go(){nr.call(this),this.F=new pr(this),this.mb=this,this.Ba=null}function vo(e,t){var n,i=e.Ba;if(i)for(n=[];i;i=i.Ba)n.push(i);if(e=e.mb,i=t.type||t,l(t))t=new sr(t,e);else if(t instanceof sr)t.target=t.target||e;else{var r=t;fe(t=new sr(i,e),r)}if(r=!0,n)for(var o=n.length-1;!t.h&&0<=o;o--){var a=t.f=n[o];r=yo(a,i,!0,t)&&r}if(t.h||(r=yo(a=t.f=e,i,!0,t)&&r,t.h||(r=yo(a,i,!1,t)&&r)),n)for(o=0;!t.h&&o<n.length;o++)r=yo(a=t.f=n[o],i,!1,t)&&r;return r}function yo(e,t,n,i){if(!(t=e.F.a[String(t)]))return!0;t=t.concat();for(var r=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.qa&&a.capture==n){var s=a.listener,u=a.Fa||a.src;a.Ca&&mr(e.F,a),r=!1!==s.call(u,i)&&r}}return r&&0!=i.ib}ho.prototype.toString=function(){return this.a.toString()},O(go,nr),go.prototype[cr]=!0,go.prototype.Ta=function(e){this.Ba=e},go.prototype.removeEventListener=function(e,t,n,i){xr(this,e,t,n,i)},go.prototype.l=function(){if(go.o.l.call(this),this.F){var e,t=this.F;for(e in t.a){for(var n=t.a[e],i=0;i<n.length;i++)0,hr(n[i]);delete t.a[e],t.f--}}this.Ba=null};var wo={},_o=0;function xo(e,t){if(!e)throw Error("Event target element must be provided!");if(e=Eo(e),wo[e]&&wo[e].length)for(var n=0;n<wo[e].length;n++)vo(wo[e][n],t)}function ko(e){var t=Eo(e.N());wo[t]&&wo[t].length&&(function(e,t){0<=(t=F(e,t,void 0))&&H(e,t)}(wo[t],function(t){return t==e}),wo[t].length||delete wo[t])}function Eo(e){return void 0===e.a&&(e.a=_o,_o++),e.a}function So(e){if(!e)throw Error("Event target element must be provided!");this.a=e,go.call(this)}function To(e,t){this.i=[],this.O=e,this.K=t||null,this.j=this.a=!1,this.h=void 0,this.F=this.s=this.w=!1,this.v=0,this.f=null,this.C=0}function Co(e,t,n){e.a=!0,e.h=n,e.j=!t,No(e)}function Ao(e){if(e.a){if(!e.F)throw new Po(e);e.F=!1}}function Io(e,t,n){e.i.push([t,n,void 0]),e.a&&No(e)}function Oo(e){return U(e.i,function(e){return v(e[1])})}function No(e){if(e.v&&e.a&&Oo(e)){var t=e.v,n=Lo[t];n&&(s.clearTimeout(n.a),delete Lo[t]),e.v=0}e.f&&(e.f.C--,delete e.f),t=e.h;for(var i=n=!1;e.i.length&&!e.w;){var r=e.i.shift(),o=r[0],a=r[1];if(r=r[2],o=e.j?a:o)try{var l=o.call(r||e.K,t);u(l)&&(e.j=e.j&&(l==t||l instanceof Error),e.h=t=l),(wi(t)||"function"==typeof s.Promise&&t instanceof s.Promise)&&(i=!0,e.w=!0)}catch(i){t=i,e.j=!0,Oo(e)||(n=!0)}}e.h=t,i&&(l=E(e.I,e,!0),i=E(e.I,e,!1),t instanceof To?(Io(t,l,i),t.s=!0):t.then(l,i)),n&&(t=new Do(t),Lo[t.a]=t,e.v=t.a)}function Po(){N.call(this)}function Ro(){N.call(this)}function Do(e){this.a=s.setTimeout(E(this.h,this),0),this.f=e}O(So,go),So.prototype.N=function(){return this.a},So.prototype.register=function(){var e=Eo(this.N());wo[e]?B(wo[e],this)||wo[e].push(this):wo[e]=[this]},To.prototype.cancel=function(e){if(this.a)this.h instanceof To&&this.h.cancel();else{if(this.f){var t=this.f;delete this.f,e?t.cancel(e):(t.C--,0>=t.C&&t.cancel())}this.O?this.O.call(this.K,this):this.F=!0,this.a||(e=new Ro(this),Ao(this),Co(this,!1,e))}},To.prototype.I=function(e,t){this.w=!1,Co(this,e,t)},To.prototype.then=function(e,t,n){var i,r,o=new Di(function(e,t){i=e,r=t});return Io(this,i,function(e){e instanceof Ro?o.cancel():r(e)}),o.then(e,t,n)},yi(To),O(Po,N),Po.prototype.message="Deferred has already fired",Po.prototype.name="AlreadyCalledError",O(Ro,N),Ro.prototype.message="Deferred was canceled",Ro.prototype.name="CanceledError",Do.prototype.h=function(){throw delete Lo[this.a],this.f};var Lo={};function Mo(e){var t={},n=t.document||document,i=je(e),r=document.createElement("SCRIPT"),o={jb:r,kb:void 0},a=new To(jo,o),u=null,l=null!=t.timeout?t.timeout:5e3;return 0<l&&(u=window.setTimeout(function(){Uo(r,!0);var e=new zo(Bo,"Timeout reached for loading script "+i);Ao(a),Co(a,!1,e)},l),o.kb=u),r.onload=r.onreadystatechange=function(){r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(Uo(r,t.hc||!1,u),Ao(a),Co(a,!0,null))},r.onerror=function(){Uo(r,!0,u);var e=new zo(Fo,"Error while loading script "+i);Ao(a),Co(a,!1,e)},fe(o=t.attributes||{},{type:"text/javascript",charset:"UTF-8"}),function(e,t){ue(t,function(t,n){t&&"object"==typeof t&&t.ka&&(t=t.ia()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:st.hasOwnProperty(n)?e.setAttribute(st[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t})}(r,o),function(e,t){e.src=je(t),null===f&&((t=(t=s.document).querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&c.test(t)||(t=null),f=t||""),(t=f)&&e.setAttribute("nonce",t)}(r,e),function(e){var t=(e||document).getElementsByTagName("HEAD");return t&&0!=t.length?t[0]:e.documentElement}(n).appendChild(r),a}function jo(){if(this&&this.jb){var e=this.jb;e&&"SCRIPT"==e.tagName&&Uo(e,!0,this.kb)}}function Uo(e,t,n){null!=n&&s.clearTimeout(n),e.onload=d,e.onerror=d,e.onreadystatechange=d,t&&window.setTimeout(function(){lt(e)},0)}var Fo=0,Bo=1;function zo(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),N.call(this,n),this.code=e}function Ho(e){this.a=e||s.googleyolo,this.f=null,this.h=!1}O(zo,N),h(Ho);var Vo=new Pe(Le,"https://smartlock.google.com/client");function Wo(){this.a=null}function Go(e,t){this.a=e,this.f=t||function(e){throw e}}function Ko(e,t,n,i){this.a=e,this.h=t||null,this.j=n||null,this.f=i||null}function qo(e){return e.email?new Ko(e.email,e.displayName,e.photoUrl,e.providerId):null}function Xo(){this.a=("undefined"==typeof document?null:document)||{cookie:""}}function Yo(e){e=(e.a.cookie||"").split(";");for(var t,n,i=[],r=[],o=0;o<e.length;o++)-1==(t=(n=X(e[o])).indexOf("="))?(i.push(""),r.push(n)):(i.push(n.substring(0,t)),r.push(n.substring(t+1)));return{keys:i,values:r}}Ho.prototype.cancel=function(){this.a&&this.h&&(this.f=this.a.cancelLastOperation().catch(function(){}))},h(Wo),Wo.prototype.load=function(){var e=this;if(this.a)return this.a;var t=Fe(Re(Vo));return s.googleyolo?zi():this.a=function(){var e=null;return Vi(new Di(function(t){"complete"==s.document.readyState?t():(e=function(){t()},_r(window,"load",e))}),function(t){throw xr(window,"load",e),t})}().then(function(){if(!s.googleyolo)return new Di(function(n,i){var r=setTimeout(function(){e.a=null,i(Error("Network error!"))},1e4);s.onGoogleYoloLoad=function(){clearTimeout(r),n()},Vi(zi(Mo(t)),function(t){clearTimeout(r),e.a=null,i(t)})})})},Go.prototype.confirm=function(e){return Vi(zi(this.a.confirm(e)),this.f)},Ko.prototype.na=function(){return{email:this.a,displayName:this.h,photoUrl:this.j,providerId:this.f}},(e=Xo.prototype).set=function(e,t,n,i,r,o){if(/[;=\s]/.test(e))throw Error('Invalid cookie name "'+e+'"');if(/[;\r\n]/.test(t))throw Error('Invalid cookie value "'+t+'"');u(n)||(n=-1),r=r?";domain="+r:"",i=i?";path="+i:"",o=o?";secure":"",n=0>n?"":0==n?";expires="+new Date(1970,1,1).toUTCString():";expires="+new Date(A()+1e3*n).toUTCString(),this.a.cookie=e+"="+t+r+i+n+o},e.get=function(e,t){for(var n,i=e+"=",r=(this.a.cookie||"").split(";"),o=0;o<r.length;o++){if(0==(n=X(r[o])).lastIndexOf(i,0))return n.substr(i.length);if(n==e)return""}return t},e.ha=function(){return Yo(this).keys},e.ja=function(){return Yo(this).values},e.clear=function(){for(var e=Yo(this).keys,t=e.length-1;0<=t;t--){var n=e[t];this.get(n),this.set(n,"",0,void 0,void 0)}};var Jo=new Xo;function $o(){}function Zo(e,t,n,i){this.h=null!=e?e:-1,this.f=t||null,this.a=n||null,this.j=!!i}function Qo(e,t){this.f=e,this.a=t||null}function ea(e){if(e&&e.email){var t=e.credential&&o.auth.AuthCredential.fromJSON(e.credential);return new Qo(e.email,t)}return null}function ta(e){for(var t=[],n=0,i=0;i<e.length;i++){var r=e.charCodeAt(i);255<r&&(t[n++]=255&r,r>>=8),t[n++]=r}return t}function na(e){return j(e,function(e){return 1<(e=e.toString(16)).length?e:"0"+e}).join("")}function ia(e){for(this.v=e,this.f=this.v.length/4,this.j=this.f+6,this.h=[[],[],[],[]],this.i=[[],[],[],[]],this.a=Array(ra*(this.j+1)),e=0;e<this.f;e++)this.a[e]=[this.v[4*e],this.v[4*e+1],this.v[4*e+2],this.v[4*e+3]];var t=Array(4);for(e=this.f;e<ra*(this.j+1);e++){if(t[0]=this.a[e-1][0],t[1]=this.a[e-1][1],t[2]=this.a[e-1][2],t[3]=this.a[e-1][3],0==e%this.f){var n=t,i=n[0];n[0]=n[1],n[1]=n[2],n[2]=n[3],n[3]=i,fa(t),t[0]^=pa[e/this.f][0],t[1]^=pa[e/this.f][1],t[2]^=pa[e/this.f][2],t[3]^=pa[e/this.f][3]}else 6<this.f&&4==e%this.f&&fa(t);this.a[e]=Array(4),this.a[e][0]=this.a[e-this.f][0]^t[0],this.a[e][1]=this.a[e-this.f][1]^t[1],this.a[e][2]=this.a[e-this.f][2]^t[2],this.a[e][3]=this.a[e-this.f][3]^t[3]}}Jo.f=3950,O(Zo,$o),Zo.prototype.set=function(e,t){Jo.set(e,t,this.h,this.f,this.a,this.j)},Zo.prototype.get=function(e){return Jo.get(e)||null},Zo.prototype.pa=function(e){var t=this.f,n=this.a;Jo.get(e),Jo.set(e,"",0,t,n)},Qo.prototype.na=function(){return{email:this.f,credential:this.a&&this.a.toJSON()}},ia.prototype.w=16;var ra=ia.prototype.w/4;function oa(e,t){for(var n,i=0;i<ra;i++)for(var r=0;4>r;r++)n=t[n=4*r+i],e.h[i][r]=n}function aa(e){for(var t=[],n=0;n<ra;n++)for(var i=0;4>i;i++)t[4*i+n]=e.h[n][i];return t}function sa(e,t){for(var n=0;4>n;n++)for(var i=0;4>i;i++)e.h[n][i]^=e.a[4*t+i][n]}function ua(e,t){for(var n=0;4>n;n++)for(var i=0;4>i;i++)e.h[n][i]=t[e.h[n][i]]}function la(e){for(var t=1;4>t;t++)for(var n=0;4>n;n++)e.i[t][n]=e.h[t][n];for(t=1;4>t;t++)for(n=0;4>n;n++)e.h[t][n]=e.i[t][(n+t)%ra]}function ca(e){for(var t=1;4>t;t++)for(var n=0;4>n;n++)e.i[t][(n+t)%ra]=e.h[t][n];for(t=1;4>t;t++)for(n=0;4>n;n++)e.h[t][n]=e.i[t][n]}function fa(e){e[0]=da[e[0]],e[1]=da[e[1]],e[2]=da[e[2]],e[3]=da[e[3]]}var da=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],ha=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],pa=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]],ma=[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,27,25,31,29,19,17,23,21,11,9,15,13,3,1,7,5,59,57,63,61,51,49,55,53,43,41,47,45,35,33,39,37,91,89,95,93,83,81,87,85,75,73,79,77,67,65,71,69,123,121,127,125,115,113,119,117,107,105,111,109,99,97,103,101,155,153,159,157,147,145,151,149,139,137,143,141,131,129,135,133,187,185,191,189,179,177,183,181,171,169,175,173,163,161,167,165,219,217,223,221,211,209,215,213,203,201,207,205,195,193,199,197,251,249,255,253,243,241,247,245,235,233,239,237,227,225,231,229],ba=[0,3,6,5,12,15,10,9,24,27,30,29,20,23,18,17,48,51,54,53,60,63,58,57,40,43,46,45,36,39,34,33,96,99,102,101,108,111,106,105,120,123,126,125,116,119,114,113,80,83,86,85,92,95,90,89,72,75,78,77,68,71,66,65,192,195,198,197,204,207,202,201,216,219,222,221,212,215,210,209,240,243,246,245,252,255,250,249,232,235,238,237,228,231,226,225,160,163,166,165,172,175,170,169,184,187,190,189,180,183,178,177,144,147,150,149,156,159,154,153,136,139,142,141,132,135,130,129,155,152,157,158,151,148,145,146,131,128,133,134,143,140,137,138,171,168,173,174,167,164,161,162,179,176,181,182,191,188,185,186,251,248,253,254,247,244,241,242,227,224,229,230,239,236,233,234,203,200,205,206,199,196,193,194,211,208,213,214,223,220,217,218,91,88,93,94,87,84,81,82,67,64,69,70,79,76,73,74,107,104,109,110,103,100,97,98,115,112,117,118,127,124,121,122,59,56,61,62,55,52,49,50,35,32,37,38,47,44,41,42,11,8,13,14,7,4,1,2,19,16,21,22,31,28,25,26],ga=[0,9,18,27,36,45,54,63,72,65,90,83,108,101,126,119,144,153,130,139,180,189,166,175,216,209,202,195,252,245,238,231,59,50,41,32,31,22,13,4,115,122,97,104,87,94,69,76,171,162,185,176,143,134,157,148,227,234,241,248,199,206,213,220,118,127,100,109,82,91,64,73,62,55,44,37,26,19,8,1,230,239,244,253,194,203,208,217,174,167,188,181,138,131,152,145,77,68,95,86,105,96,123,114,5,12,23,30,33,40,51,58,221,212,207,198,249,240,235,226,149,156,135,142,177,184,163,170,236,229,254,247,200,193,218,211,164,173,182,191,128,137,146,155,124,117,110,103,88,81,74,67,52,61,38,47,16,25,2,11,215,222,197,204,243,250,225,232,159,150,141,132,187,178,169,160,71,78,85,92,99,106,113,120,15,6,29,20,43,34,57,48,154,147,136,129,190,183,172,165,210,219,192,201,246,255,228,237,10,3,24,17,46,39,60,53,66,75,80,89,102,111,116,125,161,168,179,186,133,140,151,158,233,224,251,242,205,196,223,214,49,56,35,42,21,28,7,14,121,112,107,98,93,84,79,70],va=[0,11,22,29,44,39,58,49,88,83,78,69,116,127,98,105,176,187,166,173,156,151,138,129,232,227,254,245,196,207,210,217,123,112,109,102,87,92,65,74,35,40,53,62,15,4,25,18,203,192,221,214,231,236,241,250,147,152,133,142,191,180,169,162,246,253,224,235,218,209,204,199,174,165,184,179,130,137,148,159,70,77,80,91,106,97,124,119,30,21,8,3,50,57,36,47,141,134,155,144,161,170,183,188,213,222,195,200,249,242,239,228,61,54,43,32,17,26,7,12,101,110,115,120,73,66,95,84,247,252,225,234,219,208,205,198,175,164,185,178,131,136,149,158,71,76,81,90,107,96,125,118,31,20,9,2,51,56,37,46,140,135,154,145,160,171,182,189,212,223,194,201,248,243,238,229,60,55,42,33,16,27,6,13,100,111,114,121,72,67,94,85,1,10,23,28,45,38,59,48,89,82,79,68,117,126,99,104,177,186,167,172,157,150,139,128,233,226,255,244,197,206,211,216,122,113,108,103,86,93,64,75,34,41,52,63,14,5,24,19,202,193,220,215,230,237,240,251,146,153,132,143,190,181,168,163],ya=[0,13,26,23,52,57,46,35,104,101,114,127,92,81,70,75,208,221,202,199,228,233,254,243,184,181,162,175,140,129,150,155,187,182,161,172,143,130,149,152,211,222,201,196,231,234,253,240,107,102,113,124,95,82,69,72,3,14,25,20,55,58,45,32,109,96,119,122,89,84,67,78,5,8,31,18,49,60,43,38,189,176,167,170,137,132,147,158,213,216,207,194,225,236,251,246,214,219,204,193,226,239,248,245,190,179,164,169,138,135,144,157,6,11,28,17,50,63,40,37,110,99,116,121,90,87,64,77,218,215,192,205,238,227,244,249,178,191,168,165,134,139,156,145,10,7,16,29,62,51,36,41,98,111,120,117,86,91,76,65,97,108,123,118,85,88,79,66,9,4,19,30,61,48,39,42,177,188,171,166,133,136,159,146,217,212,195,206,237,224,247,250,183,186,173,160,131,142,153,148,223,210,197,200,235,230,241,252,103,106,125,112,83,94,73,68,15,2,21,24,59,54,33,44,12,1,22,27,56,53,34,47,100,105,126,115,80,93,74,71,220,209,198,203,232,229,242,255,180,185,174,163,128,141,154,151],wa=[0,14,28,18,56,54,36,42,112,126,108,98,72,70,84,90,224,238,252,242,216,214,196,202,144,158,140,130,168,166,180,186,219,213,199,201,227,237,255,241,171,165,183,185,147,157,143,129,59,53,39,41,3,13,31,17,75,69,87,89,115,125,111,97,173,163,177,191,149,155,137,135,221,211,193,207,229,235,249,247,77,67,81,95,117,123,105,103,61,51,33,47,5,11,25,23,118,120,106,100,78,64,82,92,6,8,26,20,62,48,34,44,150,152,138,132,174,160,178,188,230,232,250,244,222,208,194,204,65,79,93,83,121,119,101,107,49,63,45,35,9,7,21,27,161,175,189,179,153,151,133,139,209,223,205,195,233,231,245,251,154,148,134,136,162,172,190,176,234,228,246,248,210,220,206,192,122,116,102,104,66,76,94,80,10,4,22,24,50,60,46,32,236,226,240,254,212,218,200,198,156,146,128,142,164,170,184,182,12,2,16,30,52,58,40,38,124,114,96,110,68,74,88,86,55,57,43,37,15,1,19,29,71,73,91,85,127,113,99,109,215,217,203,197,239,225,243,253,167,169,187,181,159,145,131,141];function _a(e,t){e=new ia(ka(e));for(var n,i=K(t=ta(t),0,16),r="";i.length;){n=16-i.length;for(var o=0;o<n;o++)i.push(0);for(oa(n=e,i),sa(n,0),i=1;i<n.j;++i){ua(n,da),la(n),o=n.h;for(var a=n.i[0],s=0;4>s;s++)a[0]=o[0][s],a[1]=o[1][s],a[2]=o[2][s],a[3]=o[3][s],o[0][s]=ma[a[0]]^ba[a[1]]^a[2]^a[3],o[1][s]=a[0]^ma[a[1]]^ba[a[2]]^a[3],o[2][s]=a[0]^a[1]^ma[a[2]]^ba[a[3]],o[3][s]=ba[a[0]]^a[1]^a[2]^ma[a[3]];sa(n,i)}ua(n,da),la(n),sa(n,n.j),r+=na(aa(n)),i=K(t,0,16)}return r}function xa(e,t){e=new ia(ka(e));for(var n=[],i=0;i<t.length;i+=2)n.push(parseInt(t.substring(i,i+2),16));var r=K(n,0,16);for(t="";r.length;){for(oa(i=e,r),sa(i,i.j),r=1;r<i.j;++r){ca(i),ua(i,ha),sa(i,i.j-r);for(var o=i.h,a=i.i[0],s=0;4>s;s++)a[0]=o[0][s],a[1]=o[1][s],a[2]=o[2][s],a[3]=o[3][s],o[0][s]=wa[a[0]]^va[a[1]]^ya[a[2]]^ga[a[3]],o[1][s]=ga[a[0]]^wa[a[1]]^va[a[2]]^ya[a[3]],o[2][s]=ya[a[0]]^ga[a[1]]^wa[a[2]]^va[a[3]],o[3][s]=va[a[0]]^ya[a[1]]^ga[a[2]]^wa[a[3]]}if(ca(i),ua(i,ha),sa(i,0),8192>=(i=aa(i)).length)i=String.fromCharCode.apply(null,i);else{for(r="",o=0;o<i.length;o+=8192)r+=String.fromCharCode.apply(null,q(i,o,o+8192));i=r}t+=i,r=K(n,0,16)}return t.replace(/(\x00)+$/,"")}function ka(e){for(var t=32-(e=ta(e.substring(0,32))).length,n=0;n<t;n++)e.push(0);return e}function Ea(e){var t=[];return function e(t,n,i){if(null==n)i.push("null");else{if("object"==typeof n){if(b(n)){var r=n;n=r.length,i.push("[");for(var o="",a=0;a<n;a++)i.push(o),e(t,r[a],i),o=",";return void i.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(r in i.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,r)&&("function"!=typeof(a=n[r])&&(i.push(o),Aa(r,i),i.push(":"),e(t,a,i),o=","));return void i.push("}")}n=n.valueOf()}switch(typeof n){case"string":Aa(n,i);break;case"number":i.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":i.push(String(n));break;case"function":i.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new Sa,e,t),t.join("")}function Sa(){}var Ta={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Ca=/\uffff/.test("￿")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function Aa(e,t){t.push('"',e.replace(Ca,function(e){var t=Ta[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),Ta[e]=t),t}),'"')}function Ia(e){this.a=e}function Oa(){}function Na(e){this.a=e}function Pa(e){if(!e.a)return!1;try{return e.a.setItem("__sak","1"),e.a.removeItem("__sak"),!0}catch(e){return!1}}function Ra(){var e=null;try{e=window.localStorage||null}catch(e){}this.a=e}function Da(){var e=null;try{e=window.sessionStorage||null}catch(e){}this.a=e}function La(e,t){this.f=e,this.a=t+"::"}Ia.prototype.set=function(e,t){u(t)?this.a.set(e,Ea(t)):this.a.pa(e)},Ia.prototype.get=function(e){try{var t=this.a.get(e)}catch(e){return}if(null!==t)try{return JSON.parse(t)}catch(e){throw"Storage: Invalid value was encountered"}},O(Oa,$o),Oa.prototype.clear=function(){var e=gt(this.fa(!0)),t=this;L(e,function(e){t.pa(e)})},O(Na,Oa),(e=Na.prototype).set=function(e,t){try{this.a.setItem(e,t)}catch(e){if(0==this.a.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded"}},e.get=function(e){if(!l(e=this.a.getItem(e))&&null!==e)throw"Storage mechanism: Invalid value was encountered";return e},e.pa=function(e){this.a.removeItem(e)},e.fa=function(e){var t=0,n=this.a,i=new mt;return i.next=function(){if(t>=n.length)throw pt;var i=n.key(t++);if(e)return i;if(!l(i=n.getItem(i)))throw"Storage mechanism: Invalid value was encountered";return i},i},e.clear=function(){this.a.clear()},e.key=function(e){return this.a.key(e)},O(Ra,Na),O(Da,Na),O(La,Oa),La.prototype.set=function(e,t){this.f.set(this.a+e,t)},La.prototype.get=function(e){return this.f.get(this.a+e)},La.prototype.pa=function(e){this.f.pa(this.a+e)},La.prototype.fa=function(e){var t=this.f.fa(!0),n=this,i=new mt;return i.next=function(){for(var i=t.next();i.substr(0,n.a.length)!=n.a;)i=t.next();return e?i.substr(n.a.length):n.f.get(i)},i};var Ma=new Ra,ja=new Ia(Pa(Ma)?new La(Ma,"firebaseui"):null),Ua=new Da,Fa=new Ia(Pa(Ua)?new La(Ua,"firebaseui"):null),Ba={name:"pendingEmailCredential",storage:Fa},za={name:"pendingRedirect",storage:Fa},Ha={name:"redirectUrl",storage:Fa},Va={name:"rememberAccount",storage:Fa},Wa={name:"rememberedAccounts",storage:ja},Ga={name:"emailForSignIn",storage:new Ia(new Zo(3600,"/"))},Ka={name:"pendingEncryptedCredential",storage:new Ia(new Zo(3600,"/"))};function qa(e,t){return e.storage.get(t?e.name+":"+t:e.name)}function Xa(e,t){e.storage.a.pa(t?e.name+":"+t:e.name)}function Ya(e,t,n){e.storage.set(n?e.name+":"+n:e.name,t)}function Ja(e){return qa(Ha,e)||null}function $a(e,t){Ya(Ha,e,t)}function Za(e,t){Ya(Va,e,t)}function Qa(e){return e=qa(Wa,e)||[],e=j(e,function(e){return qo(e)}),M(e,m)}function es(e){return ea(e=qa(Ba,e)||null)}function ts(e){Xa(Ba,e)}function ns(e,t){Ya(Ba,e.na(),t)}function is(e){Ya(za,"pending",e)}var rs=null;function os(e){return!(!e||-32e3!=e.code||"Service unavailable"!=e.message)}function as(e,t,n,i){rs||(e={callbacks:{empty:e,select:function(e,i){e&&e.account&&t?t(qo(e.account)):n&&n(!os(i))},store:e,update:e},language:"en",providers:void 0,ui:i},"undefined"!=typeof accountchooser&&accountchooser.Api&&accountchooser.Api.init?rs=accountchooser.Api.init(e):(rs=new us(e),function(){var e=rs;v(e.a.callbacks.empty)&&e.a.callbacks.empty()}()))}function ss(e,t,n){function i(){var e=Nt(window.location.href,n).toString();rs.select(j(t||[],function(e){return e.na()}),{clientCallbackUrl:e})}t&&t.length?i():rs.checkEmpty(function(t,n){t||n?e(!os(n)):i()})}function us(e){this.a=e,this.a.callbacks=this.a.callbacks||{}}var ls={code:-32e3,message:"Service unavailable",data:"Service is unavailable."};(e=us.prototype).store=function(){v(this.a.callbacks.store)&&this.a.callbacks.store(void 0,ls)},e.select=function(){v(this.a.callbacks.select)&&this.a.callbacks.select(void 0,ls)},e.update=function(){v(this.a.callbacks.update)&&this.a.callbacks.update(void 0,ls)},e.checkDisabled=function(e){e(!0)},e.checkEmpty=function(e){e(void 0,ls)},e.checkAccountExist=function(e,t){t(void 0,ls)},e.checkShouldUpdate=function(e,t){t(void 0,ls)};var cs,fs,ds,hs,ps={};function ms(e,t,n,i){ps[e].apply(null,Array.prototype.slice.call(arguments,1))}var bs=/MSIE ([\d.]+).*Windows NT ([\d.]+)/,gs=/Firefox\/([\d.]+)/,vs=/Opera[ \/]([\d.]+)(.*Version\/([\d.]+))?/,ys=/Chrome\/([\d.]+)/,ws=/((Windows NT ([\d.]+))|(Mac OS X ([\d_]+))).*Version\/([\d.]+).*Safari/,_s=/Mac OS X;.*(?!(Version)).*Safari/,xs=/Android ([\d.]+).*Safari/,ks=/OS ([\d_]+) like Mac OS X.*Mobile.*Safari/,Es=/Konqueror\/([\d.]+)/,Ss=/MSIE ([\d.]+).*Windows Phone OS ([\d.]+)/;function Ts(e,t){for(e=e.split(t||"."),this.a=[],t=0;t<e.length;t++)this.a.push(parseInt(e[t],10))}function Cs(e,t){return 0<=function(e,t){t instanceof Ts||(t=new Ts(String(t)));for(var n=Math.max(e.a.length,t.a.length),i=0;i<n;i++){var r=e.a[i],o=t.a[i];if(void 0!==r&&void 0!==o&&r!==o)return r-o;if(void 0===r)return-1;if(void 0===o)return 1}return 0}(e,t)}function As(e){return e.classList?e.classList:l(e=e.className)&&e.match(/\S+/g)||[]}function Is(e,t){return e.classList?e.classList.contains(t):B(As(e),t)}function Os(e,t){e.classList?e.classList.add(t):Is(e,t)||(e.className+=0<e.className.length?" "+t:t)}function Ns(e,t){e.classList?e.classList.remove(t):Is(e,t)&&(e.className=M(As(e),function(e){return e!=t}).join(" "))}function Ps(e){var t=e.type;switch(l(t)&&t.toLowerCase()){case"checkbox":case"radio":return e.checked?e.value:null;case"select-one":return 0<=(t=e.selectedIndex)?e.options[t].value:null;case"select-multiple":t=[];for(var n,i=0;n=e.options[i];i++)n.selected&&t.push(n.value);return t.length?t:null;default:return null!=e.value?e.value:null}}function Rs(e,t){var n=e.type;switch(l(n)&&n.toLowerCase()){case"checkbox":case"radio":e.checked=t;break;case"select-one":if(e.selectedIndex=-1,l(t))for(var i=0;n=e.options[i];i++)if(n.value==t){n.selected=!0;break}break;case"select-multiple":for(l(t)&&(t=[t]),i=0;n=e.options[i];i++)if(n.selected=!1,t)for(var r,o=0;r=t[o];o++)n.value==r&&(n.selected=!0);break;default:e.value=null!=t?t:""}}function Ds(e,t,n,i,r,o){if(_e&&!Oe("525"))return!0;if(ke&&r)return Ls(e);if(r&&!i)return!1;if(!we&&("number"==typeof t&&(t=Ms(t)),(!n||ke)&&(17==t||18==t||ke&&91==t)||ke&&16==t&&(i||o)))return!1;if((_e||ve)&&i&&n)switch(e){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(ge&&i&&t==e)return!1;switch(e){case 13:return!we||!o&&!r&&!(n&&i);case 27:return!(_e||ve||we)}return(!we||!(i||r||o))&&Ls(e)}function Ls(e){if(48<=e&&57>=e||96<=e&&106>=e||65<=e&&90>=e||(_e||ve)&&0==e)return!0;switch(e){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}function Ms(e){if(we)e=function(e){switch(e){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return e}}(e);else if(ke&&_e)switch(e){case 93:e=91}return e}function js(e){go.call(this),this.a=e,yr(e,"keydown",this.f,!1,this),yr(e,"click",this.h,!1,this)}function Us(e,t){var n=new Bs(t);if(vo(e,n)){n=new Fs(t);try{vo(e,n)}finally{t.stopPropagation()}}}function Fs(e){ur.call(this,e.a),this.type="action"}function Bs(e){ur.call(this,e.a),this.type="beforeaction"}function zs(e){go.call(this),this.a=e,e=ge?"focusout":"blur",this.f=yr(this.a,ge?"focusin":"focus",this,!ge),this.h=yr(this.a,e,this,!ge)}function Hs(e,t){go.call(this),this.f=e||1,this.a=t||s,this.h=E(this.Rb,this),this.j=A()}function Vs(e){e.Ea=!1,e.X&&(e.a.clearTimeout(e.X),e.X=null)}function Ws(e){nr.call(this),this.f=e,this.a={}}O(js,go),js.prototype.f=function(e){(13==e.keyCode||_e&&3==e.keyCode)&&Us(this,e)},js.prototype.h=function(e){Us(this,e)},js.prototype.l=function(){js.o.l.call(this),xr(this.a,"keydown",this.f,!1,this),xr(this.a,"click",this.h,!1,this),delete this.a},O(Fs,ur),O(Bs,ur),O(zs,go),zs.prototype.handleEvent=function(e){var t=new ur(e.a);t.type="focusin"==e.type||"focus"==e.type?"focusin":"focusout",vo(this,t)},zs.prototype.l=function(){zs.o.l.call(this),kr(this.f),kr(this.h),delete this.a},O(Hs,go),(e=Hs.prototype).Ea=!1,e.X=null,e.Rb=function(){if(this.Ea){var e=A()-this.j;0<e&&e<.8*this.f?this.X=this.a.setTimeout(this.h,this.f-e):(this.X&&(this.a.clearTimeout(this.X),this.X=null),vo(this,"tick"),this.Ea&&(Vs(this),this.start()))}},e.start=function(){this.Ea=!0,this.X||(this.X=this.a.setTimeout(this.h,this.f),this.j=A())},e.l=function(){Hs.o.l.call(this),Vs(this),delete this.a},O(Ws,nr);var Gs=[];function Ks(e,t,n,i){b(n)||(n&&(Gs[0]=n.toString()),n=Gs);for(var r=0;r<n.length;r++){var o=yr(t,n[r],i||e.handleEvent,!1,e.f||e);if(!o)break;e.a[o.key]=o}}function qs(e){ue(e.a,function(e,t){this.a.hasOwnProperty(t)&&kr(e)},e),e.a={}}function Xs(e){go.call(this),this.a=null,this.f=e,e=ge||ve||_e&&!Oe("531")&&"TEXTAREA"==e.tagName,this.h=new Ws(this),Ks(this.h,this.f,e?["keydown","paste","cut","drop","input"]:"input",this)}function Ys(e){null!=e.a&&(s.clearTimeout(e.a),e.a=null)}function Js(e){return(e=new ur(e.a)).type="input",e}function $s(e,t){go.call(this),e&&(this.Ia&&nu(this),this.oa=e,this.Ha=yr(this.oa,"keypress",this,t),this.Sa=yr(this.oa,"keydown",this.xb,t,this),this.Ia=yr(this.oa,"keyup",this.Ab,t,this))}Ws.prototype.l=function(){Ws.o.l.call(this),qs(this)},Ws.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},O(Xs,go),Xs.prototype.handleEvent=function(e){if("input"==e.type)ge&&Oe(10)&&0==e.keyCode&&0==e.j||(Ys(this),vo(this,Js(e)));else if("keydown"!=e.type||function(e){if(e.altKey&&!e.ctrlKey||e.metaKey||112<=e.keyCode&&123>=e.keyCode)return!1;switch(e.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!we;default:return 166>e.keyCode||183<e.keyCode}}(e)){var t="keydown"==e.type?this.f.value:null;ge&&229==e.keyCode&&(t=null);var n=Js(e);Ys(this),this.a=function(e,t){if(v(e))t&&(e=E(e,t));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=E(e.handleEvent,e)}return 2147483647<Number(0)?-1:s.setTimeout(e,0)}(function(){this.a=null,this.f.value!=t&&vo(this,n)},this)}},Xs.prototype.l=function(){Xs.o.l.call(this),this.h.m(),Ys(this),delete this.f},O($s,go),(e=$s.prototype).oa=null,e.Ha=null,e.Sa=null,e.Ia=null,e.S=-1,e.da=-1,e.Oa=!1;var Zs={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Qs={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},eu=!_e||Oe("525"),tu=ke&&we;function nu(e){e.Ha&&(kr(e.Ha),kr(e.Sa),kr(e.Ia),e.Ha=null,e.Sa=null,e.Ia=null),e.oa=null,e.S=-1,e.da=-1}function iu(e,t,n,i){ur.call(this,i),this.type="key",this.keyCode=e,this.j=t,this.repeat=n}function ru(e,t,n,i){this.top=e,this.right=t,this.bottom=n,this.left=i}function ou(e,t){var n=ct(e);return n.defaultView&&n.defaultView.getComputedStyle&&(e=n.defaultView.getComputedStyle(e,null))&&(e[t]||e.getPropertyValue(t))||""}function au(e){try{var t=e.getBoundingClientRect()}catch(e){return{left:0,top:0,right:0,bottom:0}}return ge&&e.ownerDocument.body&&(e=e.ownerDocument,t.left-=e.documentElement.clientLeft+e.body.clientLeft,t.top-=e.documentElement.clientTop+e.body.clientTop),t}function su(e){var t=ct(e),n=new tt(0,0),i=t?ct(t):document;return e==(i=!ge||9<=Number(Ae)||"CSS1Compat"==it(i).a.compatMode?i.documentElement:i.body)?n:(e=au(e),t=ut(i=it(t).a),i=i.parentWindow||i.defaultView,t=ge&&Oe("10")&&i.pageYOffset!=t.scrollTop?new tt(t.scrollLeft,t.scrollTop):new tt(i.pageXOffset||t.scrollLeft,i.pageYOffset||t.scrollTop),n.a=e.left+t.a,n.f=e.top+t.f,n)}(e=$s.prototype).xb=function(e){(_e||ve)&&(17==this.S&&!e.ctrlKey||18==this.S&&!e.altKey||ke&&91==this.S&&!e.metaKey)&&(this.da=this.S=-1),-1==this.S&&(e.ctrlKey&&17!=e.keyCode?this.S=17:e.altKey&&18!=e.keyCode?this.S=18:e.metaKey&&91!=e.keyCode&&(this.S=91)),eu&&!Ds(e.keyCode,this.S,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey)?this.handleEvent(e):(this.da=Ms(e.keyCode),tu&&(this.Oa=e.altKey))},e.Ab=function(e){this.da=this.S=-1,this.Oa=e.altKey},e.handleEvent=function(e){var t=e.a,n=t.altKey;if(ge&&"keypress"==e.type)var i=this.da,r=13!=i&&27!=i?t.keyCode:0;else(_e||ve)&&"keypress"==e.type?(i=this.da,r=0<=t.charCode&&63232>t.charCode&&Ls(i)?t.charCode:0):be&&!_e?r=Ls(i=this.da)?t.keyCode:0:(i=t.keyCode||this.da,r=t.charCode||0,tu&&"keypress"==e.type&&(n=this.Oa),ke&&63==r&&224==i&&(i=191));var o=i=Ms(i);i?63232<=i&&i in Zs?o=Zs[i]:25==i&&e.shiftKey&&(o=9):t.keyIdentifier&&t.keyIdentifier in Qs&&(o=Qs[t.keyIdentifier]),we&&eu&&"keypress"==e.type&&!Ds(o,this.S,e.shiftKey,e.ctrlKey,n,e.metaKey)||(e=o==this.S,this.S=o,(t=new iu(o,r,e,t)).altKey=n,vo(this,t))},e.N=function(){return this.oa},e.l=function(){$s.o.l.call(this),nu(this)},O(iu,ur),ru.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"},ru.prototype.ceil=function(){return this.top=Math.ceil(this.top),this.right=Math.ceil(this.right),this.bottom=Math.ceil(this.bottom),this.left=Math.ceil(this.left),this},ru.prototype.floor=function(){return this.top=Math.floor(this.top),this.right=Math.floor(this.right),this.bottom=Math.floor(this.bottom),this.left=Math.floor(this.left),this},ru.prototype.round=function(){return this.top=Math.round(this.top),this.right=Math.round(this.right),this.bottom=Math.round(this.bottom),this.left=Math.round(this.left),this};var uu={thin:2,medium:4,thick:6};function lu(e,t){if("none"==(e.currentStyle?e.currentStyle[t+"Style"]:null))return 0;var n=e.currentStyle?e.currentStyle[t+"Width"]:null;if(n in uu)e=uu[n];else if(/^\d+px?$/.test(n))e=parseInt(n,10);else{t=e.style.left;var i=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,e.style.left=n,n=e.style.pixelLeft,e.style.left=t,e.runtimeStyle.left=i,e=+n}return e}function cu(){}function fu(e){go.call(this),this.w=e||it(),this.Xa=null,this.la=!1,this.j=null,this.I=void 0,this.xa=this.za=this.Y=null}function du(e,t){return e.j?ot(t,e.j||e.w.a):null}function hu(e){return e.I||(e.I=new Ws(e)),e.I}function pu(e,t){e.za&&L(e.za,t,void 0)}function mu(e,t){var n=dt(e,"firebaseui-textfield");t?(Ns(e,"firebaseui-input-invalid"),Os(e,"firebaseui-input"),n&&Ns(n,"firebaseui-textfield-invalid")):(Ns(e,"firebaseui-input"),Os(e,"firebaseui-input-invalid"),n&&Os(n,"firebaseui-textfield-invalid"))}function bu(e,t,n){or(e,S(ar,t=new Xs(t))),Ks(hu(e),t,"input",n)}function gu(e,t,n){or(e,S(ar,t=new $s(t))),Ks(hu(e),t,"key",function(e){13==e.keyCode&&(e.stopPropagation(),e.preventDefault(),n(e))})}function vu(e,t,n){or(e,S(ar,t=new js(t))),Ks(hu(e),t,"action",function(e){e.stopPropagation(),e.preventDefault(),n(e)})}function yu(e){Os(e,"firebaseui-hidden")}function wu(e,t){t&&ft(e,t),Ns(e,"firebaseui-hidden")}function _u(e){return!Is(e,"firebaseui-hidden")&&"none"!=e.style.display}function xu(e){var t=(e=e||{}).email,n=e.disabled,i='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="email">';return i=e.gc?i+"Enter new email address":i+"Email",i+='</label><input type="email" name="email" autocomplete="username" class="mdl-textfield__input firebaseui-input firebaseui-id-email" value="'+cn(null!=t?t:"")+'"'+(n?"disabled":"")+'></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-email-error"></p></div>',an(i)}function ku(e){var t='<button type="submit" class="firebaseui-id-submit firebaseui-button mdl-button mdl-js-button mdl-button--raised mdl-button--colored">';return t=(e=(e=e||{}).label)?t+tn(e):t+"Next",an(t+"</button>")}function Eu(){var e=""+ku({label:un("Sign In")});return an(e)}function Su(){var e=""+ku({label:un("Save")});return an(e)}function Tu(){var e=""+ku({label:un("Continue")});return an(e)}function Cu(e){var t='<div class="firebaseui-new-password-component"><div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="newPassword">';return t=(e=(e=e||{}).label)?t+tn(e):t+"Choose password",an(t+'</label><input type="password" name="newPassword" autocomplete="new-password" class="mdl-textfield__input firebaseui-input firebaseui-id-new-password"></div><a href="javascript:void(0)" class="firebaseui-input-floating-button firebaseui-id-password-toggle firebaseui-input-toggle-on firebaseui-input-toggle-blur"></a><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-new-password-error"></p></div></div>')}function Au(){var e='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="password">';return an((e={}.current?e+"Current password":e+"Password")+'</label><input type="password" name="password" autocomplete="current-password" class="mdl-textfield__input firebaseui-input firebaseui-id-password"></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-password-error"></p></div>')}function Iu(){return an('<a class="firebaseui-link firebaseui-id-secondary-link" href="javascript:void(0)">Trouble signing in?</a>')}function Ou(e){var t='<button class="firebaseui-id-secondary-link firebaseui-button mdl-button mdl-js-button mdl-button--primary">';return t=(e=(e=e||{}).label)?t+tn(e):t+"Cancel",an(t+"</button>")}function Nu(e){var t="";return e.H&&e.G&&(t+='<ul class="firebaseui-tos-list firebaseui-tos"><li class="firebaseui-inline-list-item"><a href="javascript:void(0)" class="firebaseui-link firebaseui-tos-link" target="_blank">Terms of Service</a></li><li class="firebaseui-inline-list-item"><a href="javascript:void(0)" class="firebaseui-link firebaseui-pp-link" target="_blank">Privacy Policy</a></li></ul>'),an(t)}function Pu(e){var t="";return e.H&&e.G&&(t+='<p class="firebaseui-tos firebaseui-tospp-full-message">By continuing, you are indicating that you accept our <a href="javascript:void(0)" class="firebaseui-link firebaseui-tos-link" target="_blank">Terms of Service</a> and <a href="javascript:void(0)" class="firebaseui-link firebaseui-pp-link" target="_blank">Privacy Policy</a>.</p>'),an(t)}function Ru(e){return e='<div class="firebaseui-info-bar firebaseui-id-info-bar"><p class="firebaseui-info-bar-message">'+tn(e.message)+'&nbsp;&nbsp;<a href="javascript:void(0)" class="firebaseui-link firebaseui-id-dismiss-info-bar">Dismiss</a></p></div>',an(e)}function Du(e){var t=e.content;return e=e.qb,an('<dialog class="mdl-dialog firebaseui-dialog firebaseui-id-dialog'+(e?" "+cn(e):"")+'">'+tn(t)+"</dialog>")}function Lu(e){var t=e.message;return an(Du({content:ln('<div class="firebaseui-dialog-icon-wrapper"><div class="'+cn(e.Ga)+' firebaseui-dialog-icon"></div></div><div class="firebaseui-progress-dialog-message">'+tn(t)+"</div>")}))}function Mu(e){for(var t='<div class="firebaseui-list-box-actions">',n=(e=e.items).length,i=0;i<n;i++){var r=e[i];t+='<button type="button" data-listboxid="'+cn(r.id)+'" class="mdl-button firebaseui-id-list-box-dialog-button firebaseui-list-box-dialog-button">'+(r.Ga?'<div class="firebaseui-list-box-icon-wrapper"><div class="firebaseui-list-box-icon '+cn(r.Ga)+'"></div></div>':"")+'<div class="firebaseui-list-box-label-wrapper">'+tn(r.label)+"</div></button>"}return t=""+Du({qb:un("firebaseui-list-box-dialog"),content:ln(t+"</div>")}),an(t)}function ju(e){return an((e=e||{}).Tb?'<div class="mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-busy-indicator firebaseui-id-busy-indicator"></div>':'<div class="mdl-progress mdl-js-progress mdl-progress__indeterminate firebaseui-busy-indicator firebaseui-id-busy-indicator"></div>')}function Uu(e){var t="";if((e=(e=e||{}).ma).hb)t+=e.hb;else switch(e.providerId){case"google.com":t+="Google";break;case"github.com":t+="GitHub";break;case"facebook.com":t+="Facebook";break;case"twitter.com":t+="Twitter";break;case"anonymous":t+="Guest";break;default:t+="Password"}return on(t)}function Fu(e){Hu(e,"upgradeElement")}function Bu(e){Hu(e,"downgradeElements")}h(cu),cu.prototype.a=0,O(fu,go),(e=fu.prototype).Cb=cu.Ra(),e.N=function(){return this.j},e.Ta=function(e){if(this.Y&&this.Y!=e)throw Error("Method not supported");fu.o.Ta.call(this,e)},e.eb=function(){this.j=this.w.a.createElement("DIV")},e.render=function(e){if(this.la)throw Error("Component already rendered");this.j||this.eb(),e?e.insertBefore(this.j,null):this.w.a.body.appendChild(this.j),this.Y&&!this.Y.la||this.u()},e.u=function(){this.la=!0,pu(this,function(e){!e.la&&e.N()&&e.u()})},e.ua=function(){pu(this,function(e){e.la&&e.ua()}),this.I&&qs(this.I),this.la=!1},e.l=function(){this.la&&this.ua(),this.I&&(this.I.m(),delete this.I),pu(this,function(e){e.m()}),this.j&&lt(this.j),this.Y=this.j=this.xa=this.za=null,fu.o.l.call(this)},e.removeChild=function(e,t){if(e){var n=l(e)?e:e.Xa||(e.Xa=":"+(e.Cb.a++).toString(36));if(this.xa&&n?e=(null!==(e=this.xa)&&n in e?e[n]:void 0)||null:e=null,n&&e){var i=this.xa;if(n in i&&delete i[n],z(this.za,e),t&&(e.ua(),e.j&&lt(e.j)),null==(t=e))throw Error("Unable to set parent component");t.Y=null,fu.o.Ta.call(t,null)}}if(!e)throw Error("Child is not in parent component");return e},Ru.B="firebaseui.auth.soy2.element.infoBar",Lu.B="firebaseui.auth.soy2.element.progressDialog",Mu.B="firebaseui.auth.soy2.element.listBoxDialog",ju.B="firebaseui.auth.soy2.element.busyIndicator";var zu=["mdl-js-textfield","mdl-js-progress","mdl-js-spinner","mdl-js-button"];function Hu(e,t){e&&window.componentHandler&&window.componentHandler[t]&&L(zu,function(n){Is(e,n)&&window.componentHandler[t](e),L(rt(n,e),function(e){window.componentHandler[t](e)})})}function Vu(e,t,n){if(Wu.call(this),document.body.appendChild(e),e.showModal||window.dialogPolyfill.registerDialog(e),e.showModal(),Fu(e),t&&vu(this,e,function(t){var n=e.getBoundingClientRect();(t.clientX<n.left||n.left+n.width<t.clientX||t.clientY<n.top||n.top+n.height<t.clientY)&&Wu.call(this)}),!n){var i=this.N().parentElement||this.N().parentNode;if(i){var r=this;this.aa=function(){if(e.open){var t=e.getBoundingClientRect().height,n=i.getBoundingClientRect().height,o=i.getBoundingClientRect().top-document.body.getBoundingClientRect().top,a=i.getBoundingClientRect().left-document.body.getBoundingClientRect().left,s=e.getBoundingClientRect().width,u=i.getBoundingClientRect().width;e.style.top=(o+(n-t)/2).toString()+"px",t=a+(u-s)/2,e.style.left=t.toString()+"px",e.style.right=(document.body.getBoundingClientRect().width-t-s).toString()+"px"}else window.removeEventListener("resize",r.aa)},this.aa(),window.addEventListener("resize",this.aa,!1)}}}function Wu(){var e=Gu.call(this);e&&(Bu(e),e.open&&e.close(),lt(e),this.aa&&window.removeEventListener("resize",this.aa))}function Gu(){return ot("firebaseui-id-dialog")}function Ku(){lt(qu.call(this))}function qu(){return du(this,"firebaseui-id-info-bar")}function Xu(){return du(this,"firebaseui-id-dismiss-info-bar")}var Yu={yb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",wb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/github.svg",tb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/facebook.svg",Sb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/twitter.svg",Eb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/mail.svg",Gb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/phone.svg",nb:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/anonymous.png"};function Ju(e,t,n){for(var i in sr.call(this,e,t),n)this[i]=n[i]}function $u(e,t,n,i,r){fu.call(this,n),this.$a=e,this.Za=t,this.Aa=!1,this.Ya=i||null,this.v=this.ea=null,this.Z=le(Yu),fe(this.Z,r||{})}function Zu(e){return e.N().parentElement||e.N().parentNode}function Qu(e,t,n){gu(e,t,function(){n.focus()})}function el(e,t,n){gu(e,t,function(){n()})}function tl(e,t,n){t=(e=e||{}).Pa;var i=e.ga;return e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-sign-in"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in with email</h1></div><div class="firebaseui-card-content"><div class="firebaseui-relative-wrapper">'+xu(e)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(t?Ou(null):"")+ku(null)+'</div></div><div class="firebaseui-card-footer">'+(i?Pu(n):Nu(n))+"</div></form></div>",an(e)}function nl(e,t,n){return t=(e=e||{}).ga,e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-sign-in"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content">'+xu(e)+Au()+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+Iu()+'</div><div class="firebaseui-form-actions">'+Eu()+'</div></div><div class="firebaseui-card-footer">'+(t?Pu(n):Nu(n))+"</div></form></div>",an(e)}function il(e,t,n){var i=(e=e||{}).Ib;t=e.Na;var r=e.ga,o='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-sign-up"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Create account</h1></div><div class="firebaseui-card-content">'+xu(e);return i?(e='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="name">First &amp; last name</label><input type="text" name="name" autocomplete="name" class="mdl-textfield__input firebaseui-input firebaseui-id-name" value="'+cn(null!=(e=(e=e||{}).name)?e:"")+'"></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-name-error"></p></div>',e=an(e)):e="",n=o+e+Cu(null)+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(t?Ou(null):"")+Su()+'</div></div><div class="firebaseui-card-footer">'+(r?Pu(n):Nu(n))+"</div></form></div>",an(n)}function rl(e,t,n){return t=(e=e||{}).Na,e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-recovery"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Recover password</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Get instructions sent to this email that explain how to reset your password</p>'+xu(e)+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(t?Ou(null):"")+ku({label:un("Send")})+'</div></div><div class="firebaseui-card-footer">'+Nu(n)+"</div></form></div>",an(e)}function ol(e,t,n){t=e.T;var i="";return i+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-recovery-email-sent"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Check your email</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+(e="Follow the instructions sent to <strong>"+tn(e.email)+"</strong> to recover your password")+'</p></div><div class="firebaseui-card-actions">',t&&(i+='<div class="firebaseui-form-actions">'+ku({label:un("Done")})+"</div>"),i+='</div><div class="firebaseui-card-footer">'+Nu(n)+"</div></div>",an(i)}function al(e,t,n){return an('<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-callback"><div class="firebaseui-callback-indicator-container">'+ju(null)+"</div></div>")}function sl(){return an('<div class="firebaseui-container firebaseui-id-page-blank firebaseui-use-spinner"></div>')}function ul(e,t,n){return t="",t+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-sent"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign-in email sent</h1></div><div class="firebaseui-card-content"><div class="firebaseui-email-sent"></div><p class="firebaseui-text">'+(e="A sign-in email with additional instructions was sent to <strong>"+tn(e.email)+"</strong>. Check your email to complete sign-in.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+an('<a class="firebaseui-link firebaseui-id-trouble-getting-email-link" href="javascript:void(0)">Trouble getting email?</a>')+'</div><div class="firebaseui-form-actions">'+Ou({label:un("Back")})+'</div></div><div class="firebaseui-card-footer">'+Nu(n)+"</div></form></div>",an(t)}function ll(e,t,n){return e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-not-received"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Trouble getting email?</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Try these common fixes:<ul><li>Check if the email was marked as spam or filtered.</li><li>Check your internet connection.</li><li>Check that you did not misspell your email.</li><li>Check that your inbox space is not running out or other inbox settings related issues.</li></ul></p><p class="firebaseui-text">If the steps above didn\'t work, you can resend the email. Note that this will deactivate the link in the older email.</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+an('<a class="firebaseui-link firebaseui-id-resend-email-link" href="javascript:void(0)">Resend</a>')+'</div><div class="firebaseui-form-actions">'+Ou({label:un("Back")})+'</div></div><div class="firebaseui-card-footer">'+Nu(n)+"</div></form></div>",an(e)}function cl(e,t,n){return e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-confirmation"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Confirm email</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Confirm your email to complete sign in</p><div class="firebaseui-relative-wrapper">'+xu(e)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ou(null)+ku(null)+'</div></div><div class="firebaseui-card-footer">'+Nu(n)+"</div></form></div>",an(e)}function fl(){var e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-different-device-error"><div class="firebaseui-card-header"><h1 class="firebaseui-title">New device or browser detected</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Try opening the link using the same device or browser where you started the sign-in process.</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ou({label:un("Dismiss")})+"</div></div></div>";return an(e)}function dl(){var e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-anonymous-user-mismatch"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Session ended</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">The session associated with this sign-in request has either expired or was cleared.</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ou({label:un("Dismiss")})+"</div></div></div>";return an(e)}function hl(e,t,n){return t="",t+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-linking"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">You already have an account</h2><p class="firebaseui-text">'+(e="Youve already used <strong>"+tn(e.email)+"</strong> to sign in. Enter your password for that account.")+"</p>"+Au()+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+Iu()+'</div><div class="firebaseui-form-actions">'+Eu()+'</div></div><div class="firebaseui-card-footer">'+Nu(n)+"</div></form></div>",an(t)}function pl(e,t,n){var i=e.email;return t="",e=un(e=""+Uu(e)),t+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-linking"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">You already have an account</h2><p class="firebaseui-text firebaseui-text-justify">'+(i="Youve already used <strong>"+tn(i)+"</strong>. You can connect your <strong>"+tn(e)+"</strong> account with <strong>"+tn(i)+"</strong> by signing in with email link below.")+'<p class="firebaseui-text firebaseui-text-justify">'+(e="For this flow to successfully connect your "+tn(e)+" account with this email, you have to open the link on the same device or browser.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Eu()+'</div></div><div class="firebaseui-card-footer">'+Nu(n)+"</div></form></div>",an(t)}function ml(e,t,n){t="";var i=""+Uu(e);return t+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-linking-different-device"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text firebaseui-text-justify">'+(e="You originally intended to connect <strong>"+tn(i=un(i))+"</strong> to your email account but have opened the link on a different device where you are not signed in.")+'</p><p class="firebaseui-text firebaseui-text-justify">'+(i="If you still want to connect your <strong>"+tn(i)+"</strong> account, open the link on the same device where you started sign-in. Otherwise, tap Continue to sign-in on this device.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Tu()+'</div></div><div class="firebaseui-card-footer">'+Nu(n)+"</div></form></div>",an(t)}function bl(e,t,n){var i=e.email;return t="",e=un(e=""+Uu(e)),t+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-federated-linking"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">You already have an account</h2><p class="firebaseui-text">'+(i="Youve already used <strong>"+tn(i)+"</strong>. Sign in with "+tn(e)+" to continue.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+ku({label:un("Sign in with "+e)})+'</div></div><div class="firebaseui-card-footer">'+Nu(n)+"</div></form></div>",an(t)}function gl(e,t,n){return t="",t+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-unsupported-provider"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+(e="To continue sign in with <strong>"+tn(e.email)+"</strong> on this device, you have to recover the password.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ou(null)+ku({label:un("Recover password")})+'</div></div><div class="firebaseui-card-footer">'+Nu(n)+"</div></form></div>",an(t)}function vl(e){var t="";return t+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-reset"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Reset your password</h1></div><div class="firebaseui-card-content">'+('<p class="firebaseui-text">for <strong>'+tn(e.email)+"</strong></p>")+Cu(function(e){function t(){}var n={label:un("New password")};for(var i in t.prototype=e,e=new t,n)e[i]=n[i];return e}(e))+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Su()+"</div></div></form></div>",an(t)}function yl(e){return e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-reset-success"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Password changed</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">You can now sign in with your new password</p></div><div class="firebaseui-card-actions">'+((e=e||{}).T?'<div class="firebaseui-form-actions">'+Tu()+"</div>":"")+"</div></div>",an(e)}function wl(e){return e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-reset-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Try resetting your password again</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Your request to reset your password has expired or the link has already been used</p></div><div class="firebaseui-card-actions">'+((e=e||{}).T?'<div class="firebaseui-form-actions">'+ku(null)+"</div>":"")+"</div></div>",an(e)}function _l(e){var t=e.T,n="";return n+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-change-revoke-success"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Updated email address</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+(e="Your sign-in email address has been changed back to <strong>"+tn(e.email)+"</strong>.")+'</p><p class="firebaseui-text">If you didnt ask to change your sign-in email, its possible someone is trying to access your account and you should <a class="firebaseui-link firebaseui-id-reset-password-link" href="javascript:void(0)">change your password right away</a>.</p></div><div class="firebaseui-card-actions">'+(t?'<div class="firebaseui-form-actions">'+ku(null)+"</div>":"")+"</div></form></div>",an(n)}function xl(e){return e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-change-revoke-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Unable to update your email address</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">There was a problem changing your sign-in email back.</p><p class="firebaseui-text">If you try again and still cant reset your email, try asking your administrator for help.</p></div><div class="firebaseui-card-actions">'+((e=e||{}).T?'<div class="firebaseui-form-actions">'+ku(null)+"</div>":"")+"</div></div>",an(e)}function kl(e){return e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-verification-success"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Your email has been verified</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">You can now sign in with your new account</p></div><div class="firebaseui-card-actions">'+((e=e||{}).T?'<div class="firebaseui-form-actions">'+Tu()+"</div>":"")+"</div></div>",an(e)}function El(e){return e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-verification-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Try verifying your email again</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Your request to verify your email has expired or the link has already been used</p></div><div class="firebaseui-card-actions">'+((e=e||{}).T?'<div class="firebaseui-form-actions">'+ku(null)+"</div>":"")+"</div></div>",an(e)}function Sl(e){return e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-unrecoverable-error"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Error encountered</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+tn(e.errorMessage)+"</p></div></div>",an(e)}function Tl(e,t,n){var i=e.Fb;return t="",t+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-mismatch"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">'+(e="Continue with "+tn(e.Ub)+"?")+'</h2><p class="firebaseui-text">'+(i="You originally wanted to sign in with "+tn(i))+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ou(null)+ku({label:un("Continue")})+'</div></div><div class="firebaseui-card-footer">'+Nu(n)+"</div></form></div>",an(t)}function Cl(e,t,n){var i='<div class="firebaseui-container firebaseui-page-provider-sign-in firebaseui-id-page-provider-sign-in firebaseui-use-spinner"><div class="firebaseui-card-content"><form onsubmit="return false;"><ul class="firebaseui-idp-list">';t=(e=e.Hb).length;for(var r=0;r<t;r++){var o={ma:e[r]},a=n,s=(o=o||{}).ma,u=o,l="";switch((u=u||{}).ma.providerId){case"google.com":l+="firebaseui-idp-google";break;case"github.com":l+="firebaseui-idp-github";break;case"facebook.com":l+="firebaseui-idp-facebook";break;case"twitter.com":l+="firebaseui-idp-twitter";break;case"phone":l+="firebaseui-idp-phone";break;case"anonymous":l+="firebaseui-idp-anonymous";break;case"password":l+="firebaseui-idp-password";break;default:l+="firebaseui-idp-generic"}u='<button class="firebaseui-idp-button mdl-button mdl-js-button mdl-button--raised '+cn(on(l))+' firebaseui-id-idp-button" data-provider-id="'+cn(s.providerId)+'" style="background-color:',null!=(l=s.ob)&&l.ca===Xt?l=l.content:null==l?l="":l instanceof Ke?l instanceof Ke&&l.constructor===Ke&&l.f===qe?l=l.a:(R("expected object of type SafeStyle, got '"+l+"' of type "+p(l)),l="type_error:SafeStyle"):(l=String(l),vn.test(l)||(R("Bad value `%s` for |filterCssValue",[l]),l="zSoyz")),u=u+cn(l)+'"><span class="firebaseui-idp-icon-wrapper"><img class="firebaseui-idp-icon" alt="" src="';var c="";if((l=(l=(l=o)||{}).ma).fb)c+=fn(l.fb);else switch(l.providerId){case"google.com":c+=fn(a.yb);break;case"github.com":c+=fn(a.wb);break;case"facebook.com":c+=fn(a.tb);break;case"twitter.com":c+=fn(a.Sb);break;case"phone":c+=fn(a.Gb);break;case"anonymous":c+=fn(a.nb);break;default:c+=fn(a.Eb)}a=u+cn(fn(a=sn(c)))+'"></span>',"password"==s.providerId?a+='<span class="firebaseui-idp-text firebaseui-idp-text-long">Sign in with email</span><span class="firebaseui-idp-text firebaseui-idp-text-short">Email</span>':"phone"==s.providerId?a+='<span class="firebaseui-idp-text firebaseui-idp-text-long">Sign in with phone</span><span class="firebaseui-idp-text firebaseui-idp-text-short">Phone</span>':"anonymous"==s.providerId?a+='<span class="firebaseui-idp-text firebaseui-idp-text-long">Continue as guest</span><span class="firebaseui-idp-text firebaseui-idp-text-short">Guest</span>':a+='<span class="firebaseui-idp-text firebaseui-idp-text-long">'+(s="Sign in with "+tn(Uu(o)))+'</span><span class="firebaseui-idp-text firebaseui-idp-text-short">'+tn(Uu(o))+"</span>",i+='<li class="firebaseui-list-item">'+(o=an(a+"</button>"))+"</li>"}return i+='</ul></form></div><div class="firebaseui-card-footer firebaseui-provider-sign-in-footer">'+Pu(n)+"</div></div>",an(i)}function Al(e,t,n){var i,r=(e=e||{}).sb,o=e.Pa;return t=e.ga,e='<div class="firebaseui-phone-number"><button class="firebaseui-id-country-selector firebaseui-country-selector mdl-button mdl-js-button"><span class="firebaseui-flag firebaseui-country-selector-flag firebaseui-id-country-selector-flag"></span><span class="firebaseui-id-country-selector-code"></span></button><div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label firebaseui-textfield firebaseui-phone-input-wrapper"><label class="mdl-textfield__label firebaseui-label" for="phoneNumber">Phone number</label><input type="tel" name="phoneNumber" class="mdl-textfield__input firebaseui-input firebaseui-id-phone-number" value="'+cn(null!=(e=(e=e||{}).va)?e:"")+'"></div></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-phone-number-error firebaseui-id-phone-number-error"></p></div>',i=(e='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-phone-sign-in-start"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Enter your phone number</h1></div><div class="firebaseui-card-content"><div class="firebaseui-relative-wrapper">'+an(e))+(i=r?an('<div class="firebaseui-recaptcha-wrapper"><div class="firebaseui-recaptcha-container"></div><div class="firebaseui-error-wrapper firebaseui-recaptcha-error-wrapper"><p class="firebaseui-error firebaseui-hidden firebaseui-id-recaptcha-error"></p></div></div>'):"")+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(o?Ou(null):"")+ku({label:un("Verify")})+'</div></div><div class="firebaseui-card-footer">',t?(t='<p class="firebaseui-tos firebaseui-phone-tos">',t=n.H&&n.G?t+'By tapping Verify, you are indicating that you accept our <a href="javascript:void(0)" class="firebaseui-link firebaseui-tos-link" target="_blank">Terms of Service</a> and <a href="javascript:void(0)" class="firebaseui-link firebaseui-pp-link" target="_blank">Privacy Policy</a>. An SMS may be sent. Message &amp; data rates may apply.':t+"By tapping Verify, an SMS may be sent. Message &amp; data rates may apply.",n=an(t+"</p>")):n=an('<p class="firebaseui-tos firebaseui-phone-sms-notice">By tapping Verify, an SMS may be sent. Message &amp; data rates may apply.</p>')+Nu(n),an(i+n+"</div></form></div>")}function Il(e,t,n){var i="";return e='Enter the 6-digit code we sent to <a class="firebaseui-link firebaseui-change-phone-number-link firebaseui-id-change-phone-number-link" href="javascript:void(0)">&lrm;'+tn(t=(e=e||{}).phoneNumber)+"</a>",tn(t),t=i,n='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-phone-sign-in-finish"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Verify your phone number</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+e+"</p>"+(i=an('<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="phoneConfirmationCode">6-digit code</label><input type="number" name="phoneConfirmationCode" class="mdl-textfield__input firebaseui-input firebaseui-id-phone-confirmation-code"></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-phone-confirmation-code-error"></p></div>'))+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ou(null)+ku({label:un("Continue")})+'</div></div><div class="firebaseui-card-footer">'+Nu(n)+"</div></form>",e=an('<div class="firebaseui-resend-container"><span class="firebaseui-id-resend-countdown"></span><a href="javascript:void(0)" class="firebaseui-id-resend-link firebaseui-hidden firebaseui-link">Resend</a></div>'),an(t+(n+e+"</div>"))}function Ol(){return du(this,"firebaseui-id-submit")}function Nl(){return du(this,"firebaseui-id-secondary-link")}function Pl(e,t){vu(this,Ol.call(this),function(t){e(t)});var n=Nl.call(this);n&&t&&vu(this,n,function(e){t(e)})}function Rl(){return du(this,"firebaseui-id-password")}function Dl(){return du(this,"firebaseui-id-password-error")}function Ll(){var e=Rl.call(this),t=Dl.call(this);bu(this,e,function(){_u(t)&&(mu(e,!0),yu(t))})}function Ml(){var e=Rl.call(this),t=Dl.call(this);return Ps(e)?(mu(e,!0),yu(t),t=!0):(mu(e,!1),wu(t,on("Enter your password").toString()),t=!1),t?Ps(e):null}function jl(e,t,n,i,r,o){$u.call(this,hl,{email:e},o,"passwordLinking",{H:i,G:r}),this.a=t,this.L=n}O(Ju,sr),O($u,fu),(e=$u.prototype).eb=function(){var e=$t(this.$a,this.Za,this.Z,this.w);Fu(e),this.j=e},e.u=function(){if($u.o.u.call(this),xo(Zu(this),new Ju("pageEnter",Zu(this),{pageId:this.Ya})),this.Wa()&&this.Z.H){var e=this.Z.H;vu(this,this.Wa(),function(){e()})}if(this.Ua()&&this.Z.G){var t=this.Z.G;vu(this,this.Ua(),function(){t()})}},e.ua=function(){xo(Zu(this),new Ju("pageExit",Zu(this),{pageId:this.Ya})),$u.o.ua.call(this)},e.l=function(){window.clearTimeout(this.ea),this.Za=this.$a=this.ea=null,this.Aa=!1,this.v=null,Bu(this.N()),$u.o.l.call(this)},e.M=function(e,t,n,i){function r(){if(o.O)return null;o.Aa=!1,window.clearTimeout(o.ea),o.ea=null,o.v&&(Bu(o.v),lt(o.v),o.v=null)}var o=this;return o.Aa?null:(function(e){e.Aa=!0;var t=Is(e.N(),"firebaseui-use-spinner");e.ea=window.setTimeout(function(){e.N()&&null===e.v&&(e.v=$t(ju,{Tb:t},null,e.w),e.N().appendChild(e.v),Fu(e.v))},500)}(o),e.apply(null,t).then(n,i).then(r,r))},T($u.prototype,{f:function(e){Ku.call(this);var t=$t(Ru,{message:e},null,this.w);this.N().appendChild(t),vu(this,Xu.call(this),function(){lt(t)})},ic:Ku,lc:qu,kc:Xu,W:function(e,t){e=$t(Lu,{Ga:e,message:t},null,this.w),Vu.call(this,e)},h:Wu,pb:Gu,nc:function(){return du(this,"firebaseui-tos")},Wa:function(){return du(this,"firebaseui-tos-link")},Ua:function(){return du(this,"firebaseui-pp-link")},oc:function(){return du(this,"firebaseui-tos-list")}}),tl.B="firebaseui.auth.soy2.page.signIn",nl.B="firebaseui.auth.soy2.page.passwordSignIn",il.B="firebaseui.auth.soy2.page.passwordSignUp",rl.B="firebaseui.auth.soy2.page.passwordRecovery",ol.B="firebaseui.auth.soy2.page.passwordRecoveryEmailSent",al.B="firebaseui.auth.soy2.page.callback",sl.B="firebaseui.auth.soy2.page.blank",ul.B="firebaseui.auth.soy2.page.emailLinkSignInSent",ll.B="firebaseui.auth.soy2.page.emailNotReceived",cl.B="firebaseui.auth.soy2.page.emailLinkSignInConfirmation",fl.B="firebaseui.auth.soy2.page.differentDeviceError",dl.B="firebaseui.auth.soy2.page.anonymousUserMismatch",hl.B="firebaseui.auth.soy2.page.passwordLinking",pl.B="firebaseui.auth.soy2.page.emailLinkSignInLinking",ml.B="firebaseui.auth.soy2.page.emailLinkSignInLinkingDifferentDevice",bl.B="firebaseui.auth.soy2.page.federatedLinking",gl.B="firebaseui.auth.soy2.page.unsupportedProvider",vl.B="firebaseui.auth.soy2.page.passwordReset",yl.B="firebaseui.auth.soy2.page.passwordResetSuccess",wl.B="firebaseui.auth.soy2.page.passwordResetFailure",_l.B="firebaseui.auth.soy2.page.emailChangeRevokeSuccess",xl.B="firebaseui.auth.soy2.page.emailChangeRevokeFailure",kl.B="firebaseui.auth.soy2.page.emailVerificationSuccess",El.B="firebaseui.auth.soy2.page.emailVerificationFailure",Sl.B="firebaseui.auth.soy2.page.unrecoverableError",Tl.B="firebaseui.auth.soy2.page.emailMismatch",Cl.B="firebaseui.auth.soy2.page.providerSignIn",Al.B="firebaseui.auth.soy2.page.phoneSignInStart",Il.B="firebaseui.auth.soy2.page.phoneSignInFinish",O(jl,$u),jl.prototype.u=function(){this.R(),this.P(this.a,this.L),el(this,this.i(),this.a),this.i().focus(),jl.o.u.call(this)},jl.prototype.l=function(){this.a=null,jl.o.l.call(this)},jl.prototype.J=function(){return Ps(du(this,"firebaseui-id-email"))},T(jl.prototype,{i:Rl,D:Dl,R:Ll,A:Ml,$:Ol,ba:Nl,P:Pl});var Ul=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;function Fl(){return du(this,"firebaseui-id-email")}function Bl(){return du(this,"firebaseui-id-email-error")}function zl(e){var t=Fl.call(this),n=Bl.call(this);bu(this,t,function(){_u(n)&&(mu(t,!0),yu(n))}),e&&gu(this,t,function(){e()})}function Hl(){return X(Ps(Fl.call(this))||"")}function Vl(){var e=Fl.call(this),t=Bl.call(this),n=Ps(e)||"";return n?Ul.test(n)?(mu(e,!0),yu(t),t=!0):(mu(e,!1),wu(t,on("That email address isn't correct").toString()),t=!1):(mu(e,!1),wu(t,on("Enter your email address to continue").toString()),t=!1),t?X(Ps(e)):null}function Wl(e,t,n,i,r,o,a){$u.call(this,nl,{email:n,ga:!!o},a,"passwordSignIn",{H:i,G:r}),this.a=e,this.L=t}function Gl(e,t,n,i,r,o){$u.call(this,e,t,i,r||"notice",o),this.a=n||null}function Kl(e,t,n,i,r){Gl.call(this,ol,{email:e,T:!!t},t,r,"passwordRecoveryEmailSent",{H:n,G:i})}function ql(e,t){Gl.call(this,kl,{T:!!e},e,t,"emailVerificationSuccess")}function Xl(e,t){Gl.call(this,El,{T:!!e},e,t,"emailVerificationFailure")}function Yl(e,t){Gl.call(this,yl,{T:!!e},e,t,"passwordResetSuccess")}function Jl(e,t){Gl.call(this,wl,{T:!!e},e,t,"passwordResetFailure")}function $l(e,t){Gl.call(this,xl,{T:!!e},e,t,"emailChangeRevokeFailure")}function Zl(e,t){Gl.call(this,Sl,{errorMessage:e},void 0,t,"unrecoverableError")}O(Wl,$u),Wl.prototype.u=function(){this.R(),this.$(),this.ba(this.a,this.L),Qu(this,this.s(),this.i()),el(this,this.i(),this.a),Ps(this.s())?this.i().focus():this.s().focus(),Wl.o.u.call(this)},Wl.prototype.l=function(){this.L=this.a=null,Wl.o.l.call(this)},T(Wl.prototype,{s:Fl,U:Bl,R:zl,P:Hl,J:Vl,i:Rl,D:Dl,$:Ll,A:Ml,sa:Ol,ra:Nl,ba:Pl}),O(Gl,$u),Gl.prototype.u=function(){this.a&&(this.s(this.a),this.i().focus()),Gl.o.u.call(this)},Gl.prototype.l=function(){this.a=null,Gl.o.l.call(this)},T(Gl.prototype,{i:Ol,A:Nl,s:Pl}),O(Kl,Gl),O(ql,Gl),O(Xl,Gl),O(Yl,Gl),O(Jl,Gl),O($l,Gl),O(Zl,Gl);var Ql=!1,ec=null;function tc(e,t){Ql=!!t,ec||("undefined"==typeof accountchooser&&function(){var e=window.navigator&&window.navigator.userAgent;if(e){var t;if(t=e.match(vs)){var n=new Ts(t[3]||t[1]);return!(0<=e.indexOf("Opera Mini"))&&(0<=e.indexOf("Opera Mobi")?0<=e.indexOf("Android")&&Cs(n,"10.1"):Cs(n,"8.0"))}if(t=e.match(gs))return Cs(new Ts(t[1]),"2.0");if(t=e.match(ys))return Cs(new Ts(t[1]),"6.0");if(t=e.match(ws))return n=new Ts(t[6]),e=t[3]&&new Ts(t[3]),t=t[5]&&new Ts(t[5],"_"),(!(!e||!Cs(e,"6.0"))||!(!t||!Cs(t,"10.5.6")))&&Cs(n,"3.0");if(t=e.match(xs))return Cs(new Ts(t[1]),"3.0");if(t=e.match(ks))return Cs(new Ts(t[1],"_"),"4.0");if(t=e.match(Es))return Cs(new Ts(t[1]),"4.7");if(t=e.match(Ss))return n=new Ts(t[1]),e=new Ts(t[2]),Cs(n,"7.0")&&Cs(e,"7.0");if(t=e.match(bs))return n=new Ts(t[1]),e=new Ts(t[2]),Cs(n,"7.0")&&Cs(e,"6.0");if(e.match(_s))return!1}return!0}()?(t=Fe(Re(new Pe(Le,"//www.gstatic.com/accountchooser/client.js"))),ec=Vi(zi(Mo(t)),function(){})):ec=zi()),ec.then(e,e)}function nc(e,t){(e=co(e=Uf(e)).accountChooserInvoked||null)?e(t):t()}function ic(e,t,n){(e=co(e=Uf(e)).accountChooserResult||null)?e(t,n):n()}function rc(e,t,n,i){function r(){var t=e();t&&(t=ao(Uf(t)))&&t()}as(function(){var o=e();o&&function(e,t,n,i,r){i?(ms("callback",e,t),Ql&&n()):nc(e,function(){is(Nf(e)),ss(function(i){Xa(za,Nf(e)),ic(e,i?"empty":"unavailable",function(){ms("signIn",e,t),(i||Ql)&&n()})},Qa(Nf(e)),r)})}(o,t,r,n,i)},function(n){var i=e();i&&function(e,t,n,i){function r(e){e=uc(e),hc(t,n,void 0,e),i()}ic(t,"accountSelected",function(){Za(!1,Nf(t));var o=fc(t);Mf(t,If(t).fetchSignInMethodsForEmail(e.a).then(function(r){mc(t,n,r,e.a,e.h||void 0,void 0,o),i()},r))})}(n,i,t,r)},function(n){var i=e();i&&function(e,t,n,i){ic(t,e?"addAccount":"unavailable",function(){ms("signIn",t,n),(e||Ql)&&i()})}(n,i,t,r)},e()&&function(e){return e.a.get("acUiConfig")||null}(Uf(e())))}function oc(e,t,n,i){function r(n){if(!n.name||"cancel"!=n.name){e:{var i=n.message;try{var r=((JSON.parse(i).error||{}).message||"").toLowerCase().match(/invalid.+(access|id)_token/);if(r&&r.length){var o=!0;break e}}catch(e){}o=!1}if(o)n=Zu(t),t.m(),hc(e,n,void 0,on("Your sign-in session has expired. Please try again.").toString());else{if(o=n&&n.message||"",n.code){if("auth/email-already-in-use"==n.code||"auth/credential-already-in-use"==n.code)return;o=uc(n)}t.f(o)}}}if(jf(e),i)return ac(e,n),zi();if(!n.credential)throw Error("No credential found!");if(!(i=If(e).currentUser||n.user))throw Error("User not logged in.");i=new Ko(i.email,i.displayName,i.photoURL,"password"==n.credential.providerId?null:n.credential.providerId),null!=qa(Va,Nf(e))&&!qa(Va,Nf(e))||function(e,t){var n=Qa(t),i=F(n,function(t){return t.a==e.a&&(t.f||null)==(e.f||null)});-1<i&&H(n,i),n.unshift(e),Ya(Wa,j(n,function(e){return e.na()}),t)}(i,Nf(e)),Xa(Va,Nf(e));try{var o=function(e,t){return Ff(e),Df(e,function(n){if(e.h&&!e.h.isAnonymous&&Kr(Uf(e))&&!If(e).currentUser)return zf(e).then(function(){return"password"==t.credential.providerId&&(t.credential=null),t});if(n)return zf(e).then(function(){return n.linkAndRetrieveDataWithCredential(t.credential)}).then(function(e){return t.user=e.user,t.credential=e.credential,t.operationType=e.operationType,t.additionalUserInfo=e.additionalUserInfo,t},function(n){if(n&&"auth/email-already-in-use"==n.code&&n.email&&n.credential)throw n;return Hf(e,n,t.credential)});if(!t.user)throw Error('Internal error: An incompatible or outdated version of "firebase.js" may be used.');return zf(e).then(function(){return Of(e).updateCurrentUser(t.user)}).then(function(){return t.user=Of(e).currentUser,t.operationType="signIn",t.credential&&t.credential.providerId&&"password"==t.credential.providerId&&(t.credential=null),t})})}(e,n)}catch(e){return pi(e.code||e.message,e),t.f(e.code||e.message),zi()}return n=o.then(function(t){ac(e,t)},r).then(void 0,r),Mf(e,o),zi(n)}function ac(e,t){if(!t.user)throw Error("No user found");var n=uo(Uf(e));if(so(Uf(e))&&n&&vi("Both signInSuccess and signInSuccessWithAuthResult callbacks are provided. Only signInSuccessWithAuthResult callback will be invoked."),n){n=uo(Uf(e));var i=Ja(Nf(e))||void 0;Xa(Ha,Nf(e));var r=!1;Rr()?(n&&!n(t,i)||(r=!0,window.opener.location.assign(ze(Ve(sc(e,i))))),n||window.close()):n&&!n(t,i)||(r=!0,Pr(sc(e,i))),r||e.reset()}else{n=t.user,t=t.credential,i=so(Uf(e)),r=Ja(Nf(e))||void 0,Xa(Ha,Nf(e));var o=!1;Rr()?(i&&!i(n,t,r)||(o=!0,window.opener.location.assign(ze(Ve(sc(e,r))))),i||window.close()):i&&!i(n,t,r)||(o=!0,Pr(sc(e,r))),o||e.reset()}}function sc(e,t){if(!(e=t||Uf(e).a.get("signInSuccessUrl")))throw Error("No redirect URL has been found. You must either specify a signInSuccessUrl in the configuration, pass in a redirect URL to the widget URL, or return false from the callback.");return e}function uc(e){var t="";switch(e.code){case"auth/email-already-in-use":t+="The email address is already used by another account";break;case"auth/requires-recent-login":t+=Sn();break;case"auth/too-many-requests":t+="You have entered an incorrect password too many times. Please try again in a few minutes.";break;case"auth/user-cancelled":t+="Please authorize the required permissions to sign in to the application";break;case"auth/user-not-found":t+="That email address doesn't match an existing account";break;case"auth/user-token-expired":t+=Sn();break;case"auth/weak-password":t+="Strong passwords have at least 6 characters and a mix of letters and numbers";break;case"auth/wrong-password":t+="The email and password you entered don't match";break;case"auth/network-request-failed":t+="A network error has occurred";break;case"auth/invalid-phone-number":t+=xn();break;case"auth/invalid-verification-code":t+=on("Wrong code. Try again.");break;case"auth/code-expired":t+="This code is no longer valid";break;case"auth/expired-action-code":t+="This code has expired.";break;case"auth/invalid-action-code":t+="The action code is invalid. This can happen if the code is malformed, expired, or has already been used."}if(t=on(t).toString())return t;try{return JSON.parse(e.message),pi("Internal error: "+e.message,void 0),kn().toString()}catch(t){return e.message}}function lc(e,t,n,i){function r(){is(Nf(e)),Mf(e,t.M(E(e.Qb,e),[l],function(){if("file:"===(window.location&&window.location.protocol))return Mf(e,Sf(e).then(function(n){t.m(),Xa(za,Nf(e)),ms("callback",e,u,zi(n))},a))},s))}function a(n){if(Xa(za,Nf(e)),!n.name||"cancel"!=n.name)switch(n.code){case"auth/popup-blocked":r();break;case"auth/popup-closed-by-user":case"auth/cancelled-popup-request":case"auth/credential-already-in-use":break;case"auth/network-request-failed":case"auth/too-many-requests":case"auth/user-cancelled":t.f(uc(n));break;default:t.m(),ms("callback",e,u,Hi(n))}}function s(n){Xa(za,Nf(e)),n.name&&"cancel"==n.name||(pi("signInWithRedirect: "+n.code,void 0),n=uc(n),t.f(n))}var u=Zu(t),l=function(e,t,n){var i=qn[t]&&o.auth[qn[t]]?new o.auth[qn[t]]:0==t.indexOf("saml.")?new o.auth.SAMLAuthProvider(t):new o.auth.OAuthProvider(t);if(!i)throw Error("Invalid Firebase Auth provider!");var r=Zr(Uf(e),t);if(i.addScope)for(var a=0;a<r.length;a++)i.addScope(r[a]);return r=Qr(Uf(e),t)||{},n&&(e=t==o.auth.GoogleAuthProvider.PROVIDER_ID?"login_hint":(e=Jr(Uf(e),t))&&e.Db)&&(r[e]=n),i.setCustomParameters&&i.setCustomParameters(r),i}(e,n,i);"redirect"==function(e){for(var t in e=e.a.get("signInFlow"),Br)if(Br[t]==e)return Br[t];return"redirect"}(Uf(e))?r():Mf(e,function(e,t){return Ff(e),Df(e,function(n){return n&&!es(Nf(e))?n.linkWithPopup(t).then(function(e){return e},function(t){if(t&&"auth/email-already-in-use"==t.code&&t.email&&t.credential)throw t;return Hf(e,t)}):If(e).signInWithPopup(t)})}(e,l).then(function(n){t.m(),ms("callback",e,u,zi(n))},a))}function cc(e,t,n){var i,r,a=function(e,t){var n=null;return L(qr(e),function(e){e.authMethod===t&&(n=e.provider)}),n}(Uf(e),n&&n.authMethod||null);return n&&n.idToken&&a===o.auth.GoogleAuthProvider.PROVIDER_ID?(Zr(Uf(e),o.auth.GoogleAuthProvider.PROVIDER_ID).length?(lc(e,t,a,n.id),n=zi(!0)):(i=o.auth.GoogleAuthProvider.credential(n.idToken),r=!1,i=t.M(E(e.Nb,e),[i],function(n){var i=Zu(t);t.m(),ms("callback",e,i,zi(n)),r=!0},function(n){if(!(n.name&&"cancel"==n.name||n&&"auth/credential-already-in-use"==n.code))if(n&&"auth/email-already-in-use"==n.code&&n.email&&n.credential){var i=Zu(t);t.m(),ms("callback",e,i,Hi(n))}else n=uc(n),t.f(n)}),Mf(e,i),n=i.then(function(){return r},function(){return!1})),n):(n&&t.f(on("The selected credential for the authentication provider is not supported!").toString()),zi(!1))}function fc(e){return 1==(e=Yr(Uf(e))).length&&e[0]==o.auth.EmailAuthProvider.PROVIDER_ID}function dc(e){return 1==(e=Yr(Uf(e))).length&&e[0]==o.auth.PhoneAuthProvider.PROVIDER_ID}function hc(e,t,n,i){fc(e)?i?ms("signIn",e,t,n,i):gc(e,t,n):e&&dc(e)&&!i?ms("phoneSignInStart",e,t):ms("providerSignIn",e,t,i)}function pc(e,t,n,i){var r=Zu(t);Mf(e,t.M(E(If(e).fetchSignInMethodsForEmail,If(e)),[n],function(o){Za(fo(Uf(e))==Ur,Nf(e)),t.m(),mc(e,r,o,n,void 0,i)},function(e){e=uc(e),t.f(e)}))}function mc(e,t,n,i,r,a,s){n.length||oo(Uf(e))?!n.length&&oo(Uf(e))?ms("sendEmailLinkForSignIn",e,t,i,function(){ms("signIn",e,t)}):B(n,o.auth.EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD)?ms("passwordSignIn",e,t,i,s):1==n.length&&n[0]===o.auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD?ms("sendEmailLinkForSignIn",e,t,i,function(){ms("signIn",e,t)}):(n=Gn(n,Yr(Uf(e))))?(ns(new Qo(i),Nf(e)),ms("federatedSignIn",e,t,i,n,a)):ms("unsupportedProvider",e,t,i):ms("passwordSignUp",e,t,i,r,void 0,s)}function bc(e,t,n,i,r,o){var a=Zu(t);Mf(e,t.M(E(e.vb,e),[n,o],function(){t.m(),ms("emailLinkSignInSent",e,a,n,i,o)},r))}function gc(e,t,n){fo(Uf(e))==Ur?tc(function(){rs?nc(e,function(){is(Nf(e)),ss(function(i){Xa(za,Nf(e)),ic(e,i?"empty":"unavailable",function(){ms("signIn",e,t,n)})},Qa(Nf(e)),Wr(Uf(e)))}):(Ff(e),rc(Af,t,!1,Wr(Uf(e))))},!1):(Ql=!1,nc(e,function(){ic(e,"unavailable",function(){ms("signIn",e,t,n)})}))}function vc(e){var t=Mr();return(t=Et(t,e=Nn(Uf(e).a,"queryParameterForSignInSuccessUrl")))?ze(Ve(t)):null}function yc(){return Et(Mr(),"oobCode")}function wc(){var e=Et(Mr(),"continueUrl");return e?function(){Pr(e)}:null}function _c(e,t){var n=Lr(t);switch(function(e){var t=Mr();for(var n in t=Et(t,e=to(Uf(e)))||"",zr)if(zr[n].toLowerCase()==t.toLowerCase())return zr[n];return"callback"}(e)){case"callback":(t=vc(e))&&$a(t,Nf(e)),e.gb()?ms("callback",e,n):hc(e,n);break;case"resetPassword":ms("passwordReset",e,n,yc(),wc());break;case"recoverEmail":ms("emailChangeRevocation",e,n,yc());break;case"verifyEmail":ms("emailVerification",e,n,yc(),wc());break;case"signIn":ms("emailLinkSignInCallback",e,n,Mr()),Bf();break;case"select":if((t=vc(e))&&$a(t,Nf(e)),rs){hc(e,n);break}return void tc(function(){Ff(e),rc(Af,n,!0)},!0);default:throw Error("Unhandled widget operation.")}(t=ao(Uf(e)))&&t()}function xc(e,t){$u.call(this,dl,void 0,t,"anonymousUserMismatch"),this.a=e}function kc(e){$u.call(this,al,void 0,e,"callback")}function Ec(e,t,n){if(n.user){var i={user:n.user,credential:n.credential,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo},r=es(Nf(e)),o=r&&r.f;if(o&&!function(e,t){if(t==e.email)return!0;if(e.providerData)for(var n=0;n<e.providerData.length;n++)if(t==e.providerData[n].email)return!0;return!1}(n.user,o))!function(e,t,n){var i=Zu(t);Mf(e,zf(e).then(function(){t.m(),ms("emailMismatch",e,i,n)},function(e){e.name&&"cancel"==e.name||(e=uc(e.code),t.f(e))}))}(e,t,i);else{var a=r&&r.a;a?Mf(e,n.user.linkAndRetrieveDataWithCredential(a).then(function(n){i={user:n.user,credential:a,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo},Sc(e,t,i)},function(n){Tc(e,t,n)})):Sc(e,t,i)}}else n=Zu(t),t.m(),ts(Nf(e)),hc(e,n)}function Sc(e,t,n){ts(Nf(e)),oc(e,t,n)}function Tc(e,t,n){var i=Zu(t);ts(Nf(e)),n=uc(n),t.m(),hc(e,i,void 0,n)}function Cc(e,t,n,i){var r=Zu(t);Mf(e,If(e).fetchSignInMethodsForEmail(n).then(function(a){t.m(),a.length?B(a,o.auth.EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD)?ms("passwordLinking",e,r,n):1==a.length&&a[0]===o.auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD?ms("emailLinkSignInLinking",e,r,n):(a=Gn(a,Yr(Uf(e))))?ms("federatedLinking",e,r,n,a,i):(ts(Nf(e)),ms("unsupportedProvider",e,r,n)):(ts(Nf(e)),ms("passwordRecovery",e,r,n,!1,En().toString()))},function(n){Tc(e,t,n)}))}function Ac(e,t){$u.call(this,fl,void 0,t,"differentDeviceError"),this.a=e}function Ic(e,t,n,i){$u.call(this,_l,{email:e,T:!!n},i,"emailChangeRevoke"),this.i=t,this.a=n||null}function Oc(){return du(this,"firebaseui-id-new-password")}function Nc(){return du(this,"firebaseui-id-password-toggle")}function Pc(){this.La=!this.La;var e=Nc.call(this),t=Oc.call(this);this.La?(t.type="text",Os(e,"firebaseui-input-toggle-off"),Ns(e,"firebaseui-input-toggle-on")):(t.type="password",Os(e,"firebaseui-input-toggle-on"),Ns(e,"firebaseui-input-toggle-off")),t.focus()}function Rc(){return du(this,"firebaseui-id-new-password-error")}function Dc(){this.La=!1;var e=Oc.call(this);e.type="password";var t=Rc.call(this);bu(this,e,function(){_u(t)&&(mu(e,!0),yu(t))});var n=Nc.call(this);Os(n,"firebaseui-input-toggle-on"),Ns(n,"firebaseui-input-toggle-off"),function(e,t,n){or(e,S(ar,t=new zs(t))),Ks(hu(e),t,"focusin",n)}(this,e,function(){Os(n,"firebaseui-input-toggle-focus"),Ns(n,"firebaseui-input-toggle-blur")}),function(e,t,n){or(e,S(ar,t=new zs(t))),Ks(hu(e),t,"focusout",n)}(this,e,function(){Os(n,"firebaseui-input-toggle-blur"),Ns(n,"firebaseui-input-toggle-focus")}),vu(this,n,E(Pc,this))}function Lc(){var e=Oc.call(this),t=Rc.call(this);return Ps(e)?(mu(e,!0),yu(t),t=!0):(mu(e,!1),wu(t,on("Enter your password").toString()),t=!1),t?Ps(e):null}function Mc(e,t,n){$u.call(this,vl,{email:e},n,"passwordReset"),this.a=t}function jc(e,t,n,i){"auth/weak-password"==(i&&i.code)?(e=uc(i),mu(n.i(),!1),wu(n.A(),e),n.i().focus()):(n&&n.m(),(n=new Jl).render(t),Tf(e,n))}function Uc(e,t){try{var n="number"==typeof e.selectionStart}catch(e){n=!1}n?(e.selectionStart=t,e.selectionEnd=t):ge&&!Oe("9")&&("textarea"==e.type&&(t=e.value.substring(0,t).replace(/(\r\n|\r|\n)/g,"\n").length),(e=e.createTextRange()).collapse(!0),e.move("character",t),e.select())}function Fc(e,t,n,i,r,o){$u.call(this,cl,{email:n},o,"emailLinkSignInConfirmation",{H:i,G:r}),this.i=e,this.s=t}function Bc(e,t,n,i,r){$u.call(this,ml,{ma:e},r,"emailLinkSignInLinkingDifferentDevice",{H:n,G:i}),this.a=t}function zc(e){$u.call(this,sl,void 0,e,"blank")}function Hc(e,t,n,i,r){var a=new zc,s=new ho(n),u=s.a.a.get(po.Va)||"",l=s.a.a.get(po.Ma)||"",c="1"===s.a.a.get(po.Ka),f=mo(s),d=s.a.a.get(po.PROVIDER_ID)||null,h=!qa(Ga,Nf(e)),p=i||function(e,t){var n=null;if(t=qa(Ga,t))try{var i=xa(e,t),r=JSON.parse(i);n=r&&r.email||null}catch(e){}return n}(l,Nf(e)),m=(i=function(e,t){var n=null;if(t=qa(Ka,t))try{var i=xa(e,t);n=JSON.parse(i)}catch(e){}return ea(n||null)}(l,Nf(e)))&&i.a;d&&m&&m.providerId!==d&&(m=null),a.render(t),Tf(e,a),Mf(e,a.M(function(){var t=zi(null);t=f&&h||h&&c?Hi(Error("anonymous-user-not-found")):function(e,t){var n=mo(new ho(t));return n?(t=new Di(function(t,i){var r=Of(e).onAuthStateChanged(function(e){r(),e&&e.isAnonymous&&e.uid===n?t(e):e&&e.isAnonymous&&e.uid!==n?i(Error("anonymous-user-mismatch")):i(Error("anonymous-user-not-found"))});Mf(e,r)}),Mf(e,t),t):zi(null)}(e,n).then(function(e){if(d&&!m)throw Error("pending-credential-not-found");return e});var i=null;return t.then(function(t){return i=t,r?null:If(e).checkActionCode(u)}).then(function(){return i})},[],function(i){p?function(e,t,n,i,r,a){var s=Zu(t);t.W("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",on("Signing in...").toString());var u=null;r=(a?function(e,t,n,i,r){Ff(e);var a=r||null,s=o.auth.EmailAuthProvider.credentialWithLink(n,i);return n=a?If(e).signInWithEmailLink(n,i).then(function(e){return e.user.linkAndRetrieveDataWithCredential(a)}).then(function(){return zf(e)}).then(function(){return Hf(e,{code:"auth/email-already-in-use"},a)}):If(e).fetchSignInMethodsForEmail(n).then(function(n){return n.length?Hf(e,{code:"auth/email-already-in-use"},s):t.linkAndRetrieveDataWithCredential(s)}),Mf(e,n),n}(e,a,n,i,r):function(e,t,n,i){Ff(e);var r,o=i||null;return t=If(e).signInWithEmailLink(t,n).then(function(e){if(r={user:e.user,credential:null,operationType:e.operationType,additionalUserInfo:e.additionalUserInfo},o)return e.user.linkAndRetrieveDataWithCredential(o).then(function(e){r={user:e.user,credential:o,operationType:r.operationType,additionalUserInfo:e.additionalUserInfo}})}).then(function(){zf(e)}).then(function(){return Of(e).updateCurrentUser(r.user)}).then(function(){return r.user=Of(e).currentUser,r}),Mf(e,t),t}(e,n,i,r)).then(function(n){Xa(Ka,Nf(e)),Xa(Ga,Nf(e)),t.h(),t.W("firebaseui-icon-done",on("Signed in!").toString()),u=setTimeout(function(){t.h(),oc(e,t,n,!0)},1e3),Mf(e,function(){t&&(t.h(),t.m()),clearTimeout(u)})},function(r){if(t.h(),t.m(),!r.name||"cancel"!=r.name){var o=uc(r);"auth/email-already-in-use"==r.code||"auth/credential-already-in-use"==r.code?(Xa(Ka,Nf(e)),Xa(Ga,Nf(e))):"auth/invalid-email"==r.code?(o=on("The email provided does not match the current sign-in session.").toString(),ms("emailLinkConfirmation",e,s,i,Vc,null,o)):hc(e,s,n,o)}}),Mf(e,r)}(e,a,p,n,m,i):c?(a.m(),ms("differentDeviceError",e,t)):(a.m(),ms("emailLinkConfirmation",e,t,n,Vc))},function(i){var r=void 0;if(!i||!i.name||"cancel"!=i.name)switch(a.m(),i&&i.message){case"anonymous-user-not-found":ms("differentDeviceError",e,t);break;case"anonymous-user-mismatch":ms("anonymousUserMismatch",e,t);break;case"pending-credential-not-found":ms("emailLinkNewDeviceLinking",e,t,n,Wc);break;default:i&&(r=uc(i)),hc(e,t,void 0,r)}}))}function Vc(e,t,n,i){Hc(e,t,i,n,!0)}function Wc(e,t,n){Hc(e,t,n)}function Gc(e,t,n,i,r,o){$u.call(this,pl,{email:e,ma:t},o,"emailLinkSignInLinking",{H:i,G:r}),this.a=n}function Kc(e,t,n,i,r,o){$u.call(this,ul,{email:e},o,"emailLinkSignInSent",{H:i,G:r}),this.s=t,this.a=n}function qc(e,t,n,i,r,o,a){$u.call(this,Tl,{Ub:e,Fb:t},a,"emailMismatch",{H:r,G:o}),this.s=n,this.i=i}function Xc(e,t,n,i,r){$u.call(this,ll,void 0,r,"emailNotReceived",{H:n,G:i}),this.i=e,this.a=t}function Yc(e,t,n,i,r,o){$u.call(this,bl,{email:e,ma:t},o,"federatedLinking",{H:i,G:r}),this.a=n}function Jc(e,t,n,i,r,o){$u.call(this,rl,{email:n,Na:!!t},o,"passwordRecovery",{H:i,G:r}),this.a=e,this.s=t}function $c(){return du(this,"firebaseui-id-name")}function Zc(){return du(this,"firebaseui-id-name-error")}function Qc(e,t,n,i,r,o,a,s,u){$u.call(this,il,{email:i,Ib:e,name:r,Na:!!n,ga:!!s},u,"passwordSignUp",{H:o,G:a}),this.a=t,this.J=n,this.D=e}function ef(e,t){var n=ro(Uf(e)),i=t.P(),r=null;n&&(r=t.L());var a=t.R();if(i){if(n){if(!r)return void t.A().focus();r=Y(r)}if(a){var s=o.auth.EmailAuthProvider.credential(i,a);Mf(e,t.M(E(e.Lb,e),[i,a],function(i){var o={user:i.user,credential:s,operationType:i.operationType,additionalUserInfo:i.additionalUserInfo};return n?(i=i.user.updateProfile({displayName:r}).then(function(){return oc(e,t,o)}),Mf(e,i),i):oc(e,t,o)},function(n){if(!n.name||"cancel"!=n.name){var r=uc(n);switch(n.code){case"auth/email-already-in-use":return function(e,t,n,i){function r(){var e=uc(i);mu(t.i(),!1),wu(t.U(),e),t.i().focus()}var o=If(e).fetchSignInMethodsForEmail(n).then(function(i){i.length?r():(i=Zu(t),t.m(),ms("passwordRecovery",e,i,n,!1,En().toString()))},function(){r()});return Mf(e,o),o}(e,t,i,n);case"auth/too-many-requests":r=on("Too many account requests are coming from your IP address. Try again in a few minutes.").toString();case"auth/operation-not-allowed":case"auth/weak-password":mu(t.s(),!1),wu(t.ba(),r);break;default:pi(n="setAccountInfo: "+Ea(n),void 0),t.f(r)}}}))}else t.s().focus()}else t.i().focus()}function tf(){return du(this,"firebaseui-id-phone-confirmation-code")}function nf(){return du(this,"firebaseui-id-phone-confirmation-code-error")}function rf(){return du(this,"firebaseui-id-resend-countdown")}function of(e,t,n,i,r,o,a,s,u){$u.call(this,Il,{phoneNumber:r},u,"phoneSignInFinish",{H:a,G:s}),this.Qa=o,this.i=new Hs(1e3),this.D=o,this.P=e,this.a=t,this.J=n,this.L=i}O(xc,$u),xc.prototype.u=function(){var e=this;vu(this,this.i(),function(){e.a()}),this.i().focus(),xc.o.u.call(this)},xc.prototype.l=function(){this.a=null,xc.o.l.call(this)},T(xc.prototype,{i:Nl}),ps.anonymousUserMismatch=function(e,t){var n=new xc(function(){n.m(),hc(e,t)});n.render(t),Tf(e,n)},O(kc,$u),kc.prototype.M=function(e,t,n,i){return e.apply(null,t).then(n,i)},ps.callback=function(e,t,n){var i=new kc;i.render(t),Tf(e,i),t=n||Sf(e),Mf(e,t.then(function(t){Ec(e,i,t)},function(t){if(t&&("auth/account-exists-with-different-credential"==t.code||"auth/email-already-in-use"==t.code)&&t.email&&t.credential)ns(new Qo(t.email,t.credential),Nf(e)),Cc(e,i,t.email);else if(t&&"auth/user-cancelled"==t.code){var n=es(Nf(e)),r=uc(t);n&&n.a?Cc(e,i,n.f,r):n?pc(e,i,n.f,r):Tc(e,i,t)}else t&&"auth/credential-already-in-use"==t.code||(t&&"auth/operation-not-supported-in-this-environment"==t.code&&fc(e)?Ec(e,i,{user:null,credential:null}):Tc(e,i,t))}))},O(Ac,$u),Ac.prototype.u=function(){var e=this;vu(this,this.i(),function(){e.a()}),this.i().focus(),Ac.o.u.call(this)},Ac.prototype.l=function(){this.a=null,Ac.o.l.call(this)},T(Ac.prototype,{i:Nl}),ps.differentDeviceError=function(e,t){var n=new Ac(function(){n.m(),hc(e,t)});n.render(t),Tf(e,n)},O(Ic,$u),Ic.prototype.u=function(){var e=this;vu(this,du(this,"firebaseui-id-reset-password-link"),function(){e.i()}),this.a&&(this.A(this.a),this.s().focus()),Ic.o.u.call(this)},Ic.prototype.l=function(){this.i=this.a=null,Ic.o.l.call(this)},T(Ic.prototype,{s:Ol,D:Nl,A:Pl}),O(Mc,$u),Mc.prototype.u=function(){this.J(),this.D(this.a),el(this,this.i(),this.a),this.i().focus(),Mc.o.u.call(this)},Mc.prototype.l=function(){this.a=null,Mc.o.l.call(this)},T(Mc.prototype,{i:Oc,A:Rc,L:Nc,J:Dc,s:Lc,R:Ol,P:Nl,D:Pl}),ps.passwordReset=function(e,t,n,i){Mf(e,If(e).verifyPasswordResetCode(n).then(function(r){var o=new Mc(r,function(){!function(e,t,n,i,r){var o=n.s();o&&Mf(e,n.M(E(If(e).confirmPasswordReset,If(e)),[i,o],function(){n.m();var i=new Yl(r);i.render(t),Tf(e,i)},function(i){jc(e,t,n,i)}))}(e,t,o,n,i)});o.render(t),Tf(e,o)},function(){jc(e,t)}))},ps.emailChangeRevocation=function(e,t,n){var i=null;Mf(e,If(e).checkActionCode(n).then(function(t){return i=t.data.email,If(e).applyActionCode(n)}).then(function(){!function(e,t,n){var i=new Ic(n,function(){Mf(e,i.M(E(If(e).sendPasswordResetEmail,If(e)),[n],function(){i.m(),(i=new Kl(n,void 0,no(Uf(e)),io(Uf(e)))).render(t),Tf(e,i)},function(){i.f(on("Unable to send password reset code to specified email").toString())}))});i.render(t),Tf(e,i)}(e,t,i)},function(){var n=new $l;n.render(t),Tf(e,n)}))},ps.emailVerification=function(e,t,n,i){Mf(e,If(e).applyActionCode(n).then(function(){var n=new ql(i);n.render(t),Tf(e,n)},function(){var n=new Xl;n.render(t),Tf(e,n)}))},O(Fc,$u),Fc.prototype.u=function(){this.D(this.i),this.J(this.i,this.s),this.a().focus(),Uc(this.a(),(this.a().value||"").length),Fc.o.u.call(this)},Fc.prototype.l=function(){this.s=this.i=null,Fc.o.l.call(this)},T(Fc.prototype,{a:Fl,P:Bl,D:zl,L:Hl,A:Vl,U:Ol,R:Nl,J:Pl}),ps.emailLinkConfirmation=function(e,t,n,i,r,o){var a=new Fc(function(){var r=a.A();r?(a.m(),i(e,t,r,n)):a.a().focus()},function(){a.m(),hc(e,t,r||void 0)},r||void 0,no(Uf(e)),io(Uf(e)));a.render(t),Tf(e,a),o&&a.f(o)},O(Bc,$u),Bc.prototype.u=function(){this.s(this.a),this.i().focus(),Bc.o.u.call(this)},Bc.prototype.l=function(){this.a=null,Bc.o.l.call(this)},T(Bc.prototype,{i:Ol,s:Pl}),ps.emailLinkNewDeviceLinking=function(e,t,n,i){var r=new ho(n);if(n=r.a.a.get(po.PROVIDER_ID)||null,bo(r,null),n){var o=new Bc(Jr(Uf(e),n),function(){o.m(),i(e,t,r.toString())},no(Uf(e)),io(Uf(e)));o.render(t),Tf(e,o)}else hc(e,t)},O(zc,$u),ps.emailLinkSignInCallback=Hc,O(Gc,$u),Gc.prototype.u=function(){this.s(this.a),this.i().focus(),Gc.o.u.call(this)},Gc.prototype.l=function(){this.a=null,Gc.o.l.call(this)},T(Gc.prototype,{i:Ol,s:Pl}),ps.emailLinkSignInLinking=function(e,t,n){var i=es(Nf(e));if(ts(Nf(e)),i){var r=i.a.providerId,o=new Gc(n,Jr(Uf(e),r),function(){!function(e,t,n,i){var r=Zu(t);bc(e,t,n,function(){hc(e,r,n)},function(i){if(!i.name||"cancel"!=i.name){var o=uc(i);i&&"auth/network-request-failed"==i.code?t.f(o):(t.m(),hc(e,r,n,o))}},i)}(e,o,n,i)},no(Uf(e)),io(Uf(e)));o.render(t),Tf(e,o)}else hc(e,t)},O(Kc,$u),Kc.prototype.u=function(){var e=this;vu(this,this.i(),function(){e.a()}),vu(this,du(this,"firebaseui-id-trouble-getting-email-link"),function(){e.s()}),this.i().focus(),Kc.o.u.call(this)},Kc.prototype.l=function(){this.a=this.s=null,Kc.o.l.call(this)},T(Kc.prototype,{i:Nl}),ps.emailLinkSignInSent=function(e,t,n,i,r){var o=new Kc(n,function(){o.m(),ms("emailNotReceived",e,t,n,i,r)},function(){o.m(),i()},no(Uf(e)),io(Uf(e)));o.render(t),Tf(e,o)},O(qc,$u),qc.prototype.u=function(){this.D(this.s,this.i),this.A().focus(),qc.o.u.call(this)},qc.prototype.l=function(){this.i=this.a=null,qc.o.l.call(this)},T(qc.prototype,{A:Ol,J:Nl,D:Pl}),ps.emailMismatch=function(e,t,n){var i=es(Nf(e));if(i){var r=new qc(n.user.email,i.f,function(){var t=r;ts(Nf(e)),oc(e,t,n)},function(){var t=n.credential.providerId,o=Zu(r);r.m(),i.a?ms("federatedLinking",e,o,i.f,t):ms("federatedSignIn",e,o,i.f,t)},no(Uf(e)),io(Uf(e)));r.render(t),Tf(e,r)}else hc(e,t)},O(Xc,$u),Xc.prototype.u=function(){var e=this;vu(this,this.s(),function(){e.a()}),vu(this,this.ya(),function(){e.i()}),this.s().focus(),Xc.o.u.call(this)},Xc.prototype.ya=function(){return du(this,"firebaseui-id-resend-email-link")},Xc.prototype.l=function(){this.a=this.i=null,Xc.o.l.call(this)},T(Xc.prototype,{s:Nl}),ps.emailNotReceived=function(e,t,n,i,r){var o=new Xc(function(){bc(e,o,n,i,function(e){e=uc(e),o.f(e)},r)},function(){o.m(),hc(e,t,n)},no(Uf(e)),io(Uf(e)));o.render(t),Tf(e,o)},O(Yc,$u),Yc.prototype.u=function(){this.s(this.a),this.i().focus(),Yc.o.u.call(this)},Yc.prototype.l=function(){this.a=null,Yc.o.l.call(this)},T(Yc.prototype,{i:Ol,s:Pl}),ps.federatedLinking=function(e,t,n,i,r){var o=es(Nf(e));if(o&&o.a){var a=new Yc(n,Jr(Uf(e),i),function(){lc(e,a,i,n)},no(Uf(e)),io(Uf(e)));a.render(t),Tf(e,a),r&&a.f(r)}else hc(e,t)},ps.federatedSignIn=function(e,t,n,i,r){var o=new Yc(n,Jr(Uf(e),i),function(){lc(e,o,i,n)},no(Uf(e)),io(Uf(e)));o.render(t),Tf(e,o),r&&o.f(r)},ps.passwordLinking=function(e,t,n){var i=es(Nf(e));ts(Nf(e));var r=i&&i.a;if(r){var o=new jl(n,function(){!function(e,t,n,i){var r=t.A();r?Mf(e,t.M(E(e.Kb,e),[n,r],function(n){return n=n.user.linkAndRetrieveDataWithCredential(i).then(function(n){return oc(e,t,{user:n.user,credential:i,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo})}),Mf(e,n),n},function(e){if(!e.name||"cancel"!=e.name)switch(e.code){case"auth/wrong-password":mu(t.i(),!1),wu(t.D(),uc(e));break;case"auth/too-many-requests":t.f(uc(e));break;default:pi("signInWithEmailAndPassword: "+e.message,void 0),t.f(uc(e))}})):t.i().focus()}(e,o,n,r)},function(){o.m(),ms("passwordRecovery",e,t,n)},no(Uf(e)),io(Uf(e)));o.render(t),Tf(e,o)}else hc(e,t)},O(Jc,$u),Jc.prototype.u=function(){this.J(),this.L(this.a,this.s),Ps(this.i())||this.i().focus(),el(this,this.i(),this.a),Jc.o.u.call(this)},Jc.prototype.l=function(){this.s=this.a=null,Jc.o.l.call(this)},T(Jc.prototype,{i:Fl,D:Bl,J:zl,P:Hl,A:Vl,U:Ol,R:Nl,L:Pl}),ps.passwordRecovery=function(e,t,n,i,r){var o=new Jc(function(){!function(e,t){var n=t.A();if(n){var i=Zu(t);Mf(e,t.M(E(If(e).sendPasswordResetEmail,If(e)),[n],function(){t.m();var r=new Kl(n,function(){r.m(),hc(e,i)},no(Uf(e)),io(Uf(e)));r.render(i),Tf(e,r)},function(e){mu(t.i(),!1),wu(t.D(),uc(e))}))}else t.i().focus()}(e,o)},i?void 0:function(){o.m(),hc(e,t)},n,no(Uf(e)),io(Uf(e)));o.render(t),Tf(e,o),r&&o.f(r)},ps.passwordSignIn=function(e,t,n,i){var r=new Wl(function(){!function(e,t){var n=t.J(),i=t.A();if(n)if(i){var r=o.auth.EmailAuthProvider.credential(n,i);Mf(e,t.M(E(e.Ob,e),[n,i],function(n){return oc(e,t,{user:n.user,credential:r,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo})},function(e){if(!e.name||"cancel"!=e.name)switch(e.code){case"auth/email-already-in-use":break;case"auth/email-exists":mu(t.s(),!1),wu(t.U(),uc(e));break;case"auth/too-many-requests":case"auth/wrong-password":mu(t.i(),!1),wu(t.D(),uc(e));break;default:pi("verifyPassword: "+e.message,void 0),t.f(uc(e))}}))}else t.i().focus();else t.s().focus()}(e,r)},function(){var n=r.P();r.m(),ms("passwordRecovery",e,t,n)},n,no(Uf(e)),io(Uf(e)),i);r.render(t),Tf(e,r)},O(Qc,$u),Qc.prototype.u=function(){this.$(),this.D&&this.Qa(),this.sa(),this.ra(this.a,this.J),this.D?(Qu(this,this.i(),this.A()),Qu(this,this.A(),this.s())):Qu(this,this.i(),this.s()),this.a&&el(this,this.s(),this.a),Ps(this.i())?this.D&&!Ps(this.A())?this.A().focus():this.s().focus():this.i().focus(),Qc.o.u.call(this)},Qc.prototype.l=function(){this.J=this.a=null,Qc.o.l.call(this)},T(Qc.prototype,{i:Fl,U:Bl,$:zl,bb:Hl,P:Vl,A:$c,mc:Zc,Qa:function(){var e=$c.call(this),t=Zc.call(this);bu(this,e,function(){_u(t)&&(mu(e,!0),yu(t))})},L:function(){var e=$c.call(this),t=Zc.call(this),n=Ps(e);return mu(e,n=!/^[\s\xa0]*$/.test(null==n?"":String(n))),n?(yu(t),t=!0):(wu(t,on("Enter your account name").toString()),t=!1),t?X(Ps(e)):null},s:Oc,ba:Rc,zb:Nc,sa:Dc,R:Lc,jc:Ol,Bb:Nl,ra:Pl}),ps.passwordSignUp=function(e,t,n,i,r,o){var a=new Qc(ro(Uf(e)),function(){ef(e,a)},r?void 0:function(){a.m(),hc(e,t)},n,i,no(Uf(e)),io(Uf(e)),o);a.render(t),Tf(e,a)},O(of,$u),of.prototype.u=function(){var e=this;this.R(this.Qa),yr(this.i,"tick",this.A,!1,this),this.i.start(),vu(this,du(this,"firebaseui-id-change-phone-number-link"),function(){e.P()}),vu(this,this.ya(),function(){e.L()}),this.sa(this.a),this.ba(this.a,this.J),this.s().focus(),of.o.u.call(this)},of.prototype.l=function(){this.L=this.J=this.a=this.P=null,Vs(this.i),xr(this.i,"tick",this.A),this.i=null,of.o.l.call(this)},of.prototype.A=function(){--this.D,0<this.D?this.R(this.D):(Vs(this.i),xr(this.i,"tick",this.A),this.ra(),this.bb())},T(of.prototype,{s:tf,$:nf,sa:function(e){var t=tf.call(this),n=nf.call(this);bu(this,t,function(){_u(n)&&(mu(t,!0),yu(n))}),e&&gu(this,t,function(){e()})},U:function(){var e=X(Ps(tf.call(this))||"");return/^\d{6}$/.test(e)?e:null},rb:rf,R:function(e){ft(rf.call(this),on("Resend code in "+(9<e?"0:":"0:0")+e).toString())},ra:function(){yu(this.rb())},ya:function(){return du(this,"firebaseui-id-resend-link")},bb:function(){wu(this.ya())},Bb:Ol,zb:Nl,ba:Pl}),ps.phoneSignInFinish=function(e,t,n,i,r,o){var a=new of(function(){a.m(),ms("phoneSignInStart",e,t,n)},function(){!function(e,t,n,i){function r(e){t.s().focus(),mu(t.s(),!1),wu(t.$(),e)}var o=t.U();o?(t.W("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",on("Verifying...").toString()),Mf(e,t.M(E(i.confirm,i),[o],function(n){t.h(),t.W("firebaseui-icon-done",on("Verified!").toString());var i=setTimeout(function(){t.h(),t.m();var i={user:Of(e).currentUser,credential:null,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo};oc(e,t,i,!0)},1e3);Mf(e,function(){t&&t.h(),clearTimeout(i)})},function(i){if(i.name&&"cancel"==i.name)t.h();else{var o=uc(i);switch(i.code){case"auth/credential-already-in-use":t.h();break;case"auth/code-expired":i=Zu(t),t.h(),t.m(),ms("phoneSignInStart",e,i,n,o);break;case"auth/missing-verification-code":case"auth/invalid-verification-code":t.h(),r(o);break;default:t.h(),t.f(o)}}}))):r(on("Wrong code. Try again.").toString())}(e,a,n,r)},function(){a.m(),hc(e,t)},function(){a.m(),ms("phoneSignInStart",e,t,n)},Wn(n),i,no(Uf(e)),io(Uf(e)));a.render(t),Tf(e,a),o&&a.f(o)};var af=!(ge||se("Safari")&&!(de()||se("Coast")||se("Opera")||se("Edge")||se("Silk")||se("Android")));function sf(e,t){return/-[a-z]/.test(t)?null:af&&e.dataset?!se("Android")||de()||se("Firefox")||se("Opera")||se("Silk")||t in e.dataset?void 0===(e=e.dataset[t])?null:e:null:e.getAttribute("data-"+String(t).replace(/([A-Z])/g,"-$1").toLowerCase())}function uf(e,t,n){e=$t(Mu,{items:e},null,this.w),Vu.call(this,e,!0,!0),n&&(n=function(e,t){e=(e||document).getElementsByTagName("BUTTON");for(var n=0;n<e.length;n++)if(sf(e[n],"listboxid")===t)return e[n];return null}(e,n))&&(n.focus(),function(e,t){var n=(t=t||ut(document))||ut(document),i=su(e),r=su(n);if(!ge||9<=Number(Ae)){a=ou(n,"borderLeftWidth");var o=ou(n,"borderRightWidth");s=ou(n,"borderTopWidth"),l=ou(n,"borderBottomWidth"),o=new ru(parseFloat(s),parseFloat(o),parseFloat(l),parseFloat(a))}else{var a=lu(n,"borderLeft");o=lu(n,"borderRight");var s=lu(n,"borderTop"),l=lu(n,"borderBottom");o=new ru(s,o,l,a)}n==ut(document)?(a=i.a-n.scrollLeft,i=i.f-n.scrollTop,!ge||10<=Number(Ae)||(a+=o.left,i+=o.top)):(a=i.a-r.a-o.left,i=i.f-r.f-o.top),r=e.offsetWidth,o=e.offsetHeight,s=_e&&!r&&!o,e=u(r)&&!s||!e.getBoundingClientRect?new nt(r,o):new nt((e=au(e)).right-e.left,e.bottom-e.top),r=n.clientHeight-e.height,o=n.scrollLeft,s=n.scrollTop,n=new tt(o+=Math.min(a,Math.max(a-(n.clientWidth-e.width),0)),s+=Math.min(i,Math.max(i-r,0))),t.scrollLeft=n.a,t.scrollTop=n.f}(n,e)),vu(this,e,function(e){(e=(e=dt(e.target,"firebaseui-id-list-box-dialog-button"))&&sf(e,"listboxid"))&&(Wu(),t(e))})}function lf(){return du(this,"firebaseui-id-phone-number")}function cf(){return du(this,"firebaseui-id-country-selector")}function ff(){return du(this,"firebaseui-id-phone-number-error")}function df(e,t){return!(!(e=Mn(e))||!B(t,e))}function hf(e){return"firebaseui-flag-"+e.g}function pf(e){var t=this;uf.call(this,function(e){return j(e,function(e){return{id:e.c,Ga:"firebaseui-flag "+hf(e),label:e.name+" +"+e.b}})}(e.a),function(n){mf.call(t,n,e,!0),t.K().focus()},this.wa)}function mf(e,t,n){var i=Mn(e);i&&(n&&((t=Ln(t,n=X(Ps(lf.call(this))||""))).length&&t[0].b!=i.b&&(n="+"+i.b+n.substr(t[0].b.length+1),Rs(lf.call(this),n))),t=Mn(this.wa),this.wa=e,e=du(this,"firebaseui-id-country-selector-flag"),t&&Ns(e,hf(t)),Os(e,hf(i)),ft(du(this,"firebaseui-id-country-selector-code"),"+"+i.b))}function bf(e,t,n,i,r,o,a,s,u,l){$u.call(this,Al,{sb:t,va:u||null,Pa:!!n,ga:!!o},l,"phoneSignInStart",{H:i,G:r}),this.J=s||null,this.L=t,this.a=e,this.A=n||null,this.$=a||null}function gf(e,t,n,i){try{var r=t.R(ds)}catch(e){return}r?cs?(t.W("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",on("Verifying...").toString()),Mf(e,t.M(E(e.Pb,e),[Wn(r),n],function(n){var i=Zu(t);t.W("firebaseui-icon-done",on("Code sent!").toString());var o=setTimeout(function(){t.h(),t.m(),ms("phoneSignInFinish",e,i,r,15,n)},1e3);Mf(e,function(){t&&t.h(),clearTimeout(o)})},function(e){if(t.h(),!e.name||"cancel"!=e.name){grecaptcha.reset(hs),cs=null;var n=e&&e.message||"";if(e.code)switch(e.code){case"auth/too-many-requests":n=on("This phone number has been used too many times").toString();break;case"auth/invalid-phone-number":case"auth/missing-phone-number":return t.K().focus(),void wu(t.D(),xn().toString());default:n=uc(e)}t.f(n)}}))):fs?wu(t.s(),on("Solve the reCAPTCHA").toString()):!fs&&i&&t.i().click():(t.K().focus(),wu(t.D(),xn().toString()))}function vf(e,t,n,i,r){$u.call(this,Cl,{Hb:t},r,"providerSignIn",{H:n,G:i}),this.a=e}function yf(e,t,n,i,r,o,a){$u.call(this,tl,{email:n,Pa:!!t,ga:!!o},a,"signIn",{H:i,G:r}),this.a=e,this.s=t}function wf(e,t,n,i,r,o){$u.call(this,gl,{email:e},o,"unsupportedProvider",{H:i,G:r}),this.a=t,this.i=n}function _f(e,t){this.Z=!1;var n=Ef(t);if(kf[n])throw Error('An AuthUI instance already exists for the key "'+n+'"');kf[n]=this,this.f=e,this.A=null,this.s=!1,xf(this.f),this.v=o.initializeApp({apiKey:e.app.options.apiKey,authDomain:e.app.options.authDomain},e.app.name+"-firebaseui-temp").auth(),xf(this.v),this.v.setPersistence&&this.v.setPersistence(o.auth.Auth.Persistence.SESSION),this.ea=t,this.W=new jr,this.a=this.K=this.i=this.F=null,this.j=[],this.Y=!1,this.O=Ho.Ra(),this.h=this.C=null,this.aa=this.w=!1}function xf(e){e&&e.INTERNAL&&e.INTERNAL.logFramework&&e.INTERNAL.logFramework("FirebaseUI-web")}O(bf,$u),bf.prototype.u=function(){this.ba(this.$,this.J),this.P(this.a,this.A||void 0),this.L||Qu(this,this.K(),this.i()),el(this,this.i(),this.a),this.K().focus(),Uc(this.K(),(this.K().value||"").length),bf.o.u.call(this)},bf.prototype.l=function(){this.A=this.a=null,bf.o.l.call(this)},T(bf.prototype,{pb:Gu,K:lf,D:ff,ba:function(e,t,n){var i=this,r=lf.call(this),o=cf.call(this),a=ff.call(this),s=e||zn,u=s.a;if(0==u.length)throw Error("No available countries provided.");(function(e,t){var n=e.a,i=df("1-US-0",n),r=null;if(!(r=t&&df(t,n)?t:i?"1-US-0":0<n.length?n[0].c:null))throw Error("No available default country");mf.call(this,r,e)}).call(i,s,t),vu(this,o,function(){pf.call(i,s)}),bu(this,r,function(){_u(a)&&(mu(r,!0),yu(a));var e=X(Ps(r)||""),t=Mn(this.wa),n=Ln(s,e);e=df("1-US-0",u),n.length&&n[0].b!=t.b&&(t=n[0],mf.call(i,"1"==t.b&&e?"1-US-0":t.c,s))}),n&&gu(this,r,function(){n()})},R:function(e){var t=X(Ps(lf.call(this))||""),n=(e=e||zn).a,i=Ln(zn,t);if(i.length&&!B(n,i[0]))throw Rs(lf.call(this)),lf.call(this).focus(),wu(ff.call(this),on("The country code provided is not supported.").toString()),Error("The country code provided is not supported.");return n=Mn(this.wa),i.length&&i[0].b!=n.b&&mf.call(this,i[0].c,e),i.length&&(t=t.substr(i[0].b.length+1)),t?new Hn(this.wa,t):null},sa:cf,U:function(){return du(this,"firebaseui-recaptcha-container")},s:function(){return du(this,"firebaseui-id-recaptcha-error")},i:Ol,ra:Nl,P:Pl}),ps.phoneSignInStart=function(e,t,n,i){var r=function(e){var t=null;if(L(qr(e),function(e){e.provider==o.auth.PhoneAuthProvider.PROVIDER_ID&&y(e.recaptchaParameters)&&!b(e.recaptchaParameters)&&(t=le(e.recaptchaParameters))}),t){var n=[];L(Vr,function(e){void 0!==t[e]&&(n.push(e),delete t[e])}),n.length&&vi('The following provided "recaptchaParameters" keys are not allowed: '+n.join(", "))}return t}(Uf(e))||{};cs=null,fs=!(r&&"invisible"===r.size);var a=dc(e),s=function(e){var t=(e=Xr(e,o.auth.PhoneAuthProvider.PROVIDER_ID))&&e.defaultCountry||null;t=t&&jn(t);var n=null;return e&&l(e.loginHint)&&(n=Vn(e.loginHint)),t&&t[0]||n&&Mn(n.a)||null}(Uf(e)),u=a?function(e){var t=null;return(e=Xr(e,o.auth.PhoneAuthProvider.PROVIDER_ID))&&l(e.loginHint)&&(t=Vn(e.loginHint)),e&&e.defaultNationalNumber||t&&t.va||null}(Uf(e)):null;s=n&&n.a||s&&s.c||null,n=n&&n.va||u,(u=eo(Uf(e)))&&Fn(u),ds=u?new Dn(eo(Uf(e))):zn;var c=new bf(function(t){gf(e,c,f,!(!t||!t.keyCode))},fs,a?null:function(){f.clear(),c.m(),hc(e,t)},no(Uf(e)),io(Uf(e)),a,ds,s,n);c.render(t),Tf(e,c),i&&c.f(i),r.callback=function(t){c.s()&&yu(c.s()),cs=t,fs||gf(e,c,f)},r["expired-callback"]=function(){cs=null};var f=new o.auth.RecaptchaVerifier(fs?c.U():c.i(),r,Of(e).app);Mf(e,c.M(E(f.render,f),[],function(e){hs=e},function(n){n.name&&"cancel"==n.name||(n=uc(n),c.m(),hc(e,t,void 0,n))}))},O(vf,$u),vf.prototype.u=function(){this.i(this.a),vf.o.u.call(this)},vf.prototype.l=function(){this.a=null,vf.o.l.call(this)},T(vf.prototype,{i:function(e){function t(t){e(t)}for(var n=this.j?rt("firebaseui-id-idp-button",this.j||this.w.a):[],i=0;i<n.length;i++){var r=n[i];vu(this,r,S(t,sf(r,"providerId")))}}}),ps.providerSignIn=function(e,t,n){var i=new vf(function(n){n==o.auth.EmailAuthProvider.PROVIDER_ID?(i.m(),gc(e,t)):n==o.auth.PhoneAuthProvider.PROVIDER_ID?(i.m(),ms("phoneSignInStart",e,t)):"anonymous"==n?function(e,t){Mf(e,t.M(E(e.Mb,e),[],function(n){return t.m(),oc(e,t,n,!0)},function(e){e.name&&"cancel"==e.name||(pi("ContinueAsGuest: "+e.code,void 0),e=uc(e),t.f(e))}))}(e,i):lc(e,i,n),Ff(e),e.O.cancel()},$r(Uf(e)),no(Uf(e)),io(Uf(e)));i.render(t),Tf(e,i),n&&i.f(n),function(e){Ff(e);try{(function e(t,n,i){if(t.a&&n){var r=function(){t.h=!0;var r=Promise.resolve(null);return i||(r=t.a.retrieve(n).catch(function(e){if("userCanceled"===e.type||"illegalConcurrentRequest"===e.type)throw e;return null})),r.then(function(e){return e||t.a.hint(n)}).catch(function(r){if("userCanceled"===r.type)t.f=Promise.resolve();else if("illegalConcurrentRequest"===r.type)return t.cancel(),e(t,n,i);return null})};return t.f?t.f.then(r):r()}if(n)return r=Vi(Wo.Ra().load().then(function(){return t.a=s.googleyolo,e(t,n,i)}),function(){return null}),Promise.resolve(r);if("undefined"!=typeof Promise)return Promise.resolve(null);throw Error("One-Tap sign in not supported in the current browser!")})(e.O,function(e){var t=[],n=[];L(qr(e),function(e){e.authMethod&&(t.push(e.authMethod),e.clientId&&n.push({uri:e.authMethod,clientId:e.clientId}))});var i=null;return"googleyolo"===fo(e)&&t.length&&(i={supportedIdTokenProviders:n,supportedAuthMethods:t}),i}(Uf(e)),function(e){var t;return Ff(e),(t=e.Y)||(e=Qr(e=Uf(e),o.auth.GoogleAuthProvider.PROVIDER_ID),t=!(!e||"select_account"!==e.prompt)),t}(e)).then(function(t){return!!e.a&&cc(e,e.a,t)})}catch(e){}}(e)},ps.sendEmailLinkForSignIn=function(e,t,n,i){var r=new kc;r.render(t),Tf(e,r),bc(e,r,n,i,function(i){r.m(),i=uc(i),ms("signIn",e,t,n,i)})},O(yf,$u),yf.prototype.u=function(){this.D(this.a),this.J(this.a,this.s||void 0),this.i().focus(),Uc(this.i(),(this.i().value||"").length),yf.o.u.call(this)},yf.prototype.l=function(){this.s=this.a=null,yf.o.l.call(this)},T(yf.prototype,{i:Fl,P:Bl,D:zl,L:Hl,A:Vl,U:Ol,R:Nl,J:Pl}),ps.signIn=function(e,t,n,i){var r=fc(e),o=new yf(function(){var t=o,n=t.A()||"";n&&pc(e,t,n)},r&&fo(Uf(e))!=Ur?null:function(){o.m(),hc(e,t,n)},n,no(Uf(e)),io(Uf(e)),r);o.render(t),Tf(e,o),i&&o.f(i)},O(wf,$u),wf.prototype.u=function(){this.A(this.a,this.i),this.s().focus(),wf.o.u.call(this)},wf.prototype.l=function(){this.i=this.a=null,wf.o.l.call(this)},T(wf.prototype,{s:Ol,D:Nl,A:Pl}),ps.unsupportedProvider=function(e,t,n){var i=new wf(n,function(){i.m(),ms("passwordRecovery",e,t,n)},function(){i.m(),hc(e,t,n)},no(Uf(e)),io(Uf(e)));i.render(t),Tf(e,i)};var kf={};function Ef(e){return e||"[DEFAULT]"}function Sf(e){return Ff(e),e.i||(e.i=Df(e,function(t){return t&&!es(Nf(e))?zi(Of(e).getRedirectResult().then(function(e){return e},function(t){if(t&&"auth/email-already-in-use"==t.code&&t.email&&t.credential)throw t;return Hf(e,t)})):zi(If(e).getRedirectResult().then(function(t){return Kr(Uf(e))&&!t.user&&e.h&&!e.h.isAnonymous?Of(e).getRedirectResult():t}))})),e.i}function Tf(e,t){Ff(e),e.a=t}var Cf=null;function Af(){return Cf}function If(e){return Ff(e),e.v}function Of(e){return Ff(e),e.f}function Nf(e){return Ff(e),e.ea}function Pf(e){return"signIn"===((e=new ho(e)).a.a.get(po.lb)||null)&&!!e.a.a.get(po.Va)}function Rf(e,t){var n=Lr(t);if(n.setAttribute("lang","en".replace(/_/g,"-")),Cf){var i=Cf;Ff(i),es(Nf(i))&&vi("UI Widget is already rendered on the page and is pending some user interaction. Only one widget instance can be rendered per page. The previous instance has been automatically reset."),Cf.reset()}Cf=e,e.K=n,function(e,t){e.I=null,e.F=new So(t),e.F.register(),yr(e.F,"pageEnter",function(t){if(t=t&&t.pageId,e.I!=t){var n=Uf(e);(n=co(n).uiChanged||null)&&n(e.I,t),e.I=t}})}(e,n),Pa(new Ra)&&Pa(new Da)?_c(e,t):(t=Lr(t),(n=new Zl(on("The browser you are using does not support Web Storage. Please try again in a different browser.").toString())).render(t),Tf(e,n)),Xa(za,Nf(e))}function Df(e,t){if(e.w)return t(Lf(e));if(Mf(e,function(){e.w=!1}),Kr(Uf(e))){var n=new Di(function(n){Mf(e,e.f.onAuthStateChanged(function(i){e.h=i,e.w||(e.w=!0,n(t(Lf(e))))}))});return Mf(e,n),n}return e.w=!0,t(null)}function Lf(e){return Ff(e),Kr(Uf(e))&&e.h&&e.h.isAnonymous?e.h:null}function Mf(e,t){if(Ff(e),t){e.j.push(t);var n=function(){V(e.j,function(e){return e==t})};"function"!=typeof t&&t.then(n,n)}}function jf(e){void 0!==e.f.languageCode&&e.s&&(e.s=!1,e.f.languageCode=e.A)}function Uf(e){return Ff(e),e.W}function Ff(e){if(e.Z)throw Error("AuthUI instance is deleted!")}function Bf(){var e=Mr();if(Pf(e)){for(var t in e=new ho(e),po)po.hasOwnProperty(t)&&Ht(e.a.a,po[t]);t={state:"signIn",mode:"emailLink",operation:"clear"};var n=s.document.title;s.history&&s.history.replaceState&&s.history.replaceState(t,n,e.toString())}}function zf(e){return Ff(e),If(e).signOut()}function Hf(e,t,n){if(Ff(e),t&&t.code&&("auth/email-already-in-use"==t.code||"auth/credential-already-in-use"==t.code)){var i=lo(Uf(e));return zi().then(function(){return i(new Tn("anonymous-upgrade-merge-conflict",null,n||t.credential))}).then(function(){throw e.a&&(e.a.m(),e.a=null),t})}return Hi(t)}(e=_f.prototype).gb=function(){return Ff(this),"pending"===qa(za,Nf(this))||Pf(Mr())},e.start=function(e,t){Ff(this);var n=this;void 0!==this.f.languageCode&&(this.A=this.f.languageCode);var i="en".replace(/_/g,"-");this.f.languageCode=i,this.v.languageCode=i,this.s=!0,this.cb(t);var r=s.document;this.C?this.C.then(function(){"complete"==r.readyState?Rf(n,e):_r(window,"load",function(){Rf(n,e)})}):"complete"==r.readyState?Rf(n,e):_r(window,"load",function(){Rf(n,e)})},e.disableAutoSignIn=function(){Ff(this),this.Y=!0},e.reset=function(){Ff(this);var e=this;this.K&&this.K.removeAttribute("lang"),this.F&&ko(this.F),jf(this),Bf(),Xa(za,Nf(this)),Ff(this),this.O.cancel(),this.i=zi({user:null,credential:null}),Cf==this&&(Cf=null),this.K=null;for(var t=0;t<this.j.length;t++)"function"==typeof this.j[t]?this.j[t]():this.j[t].cancel&&this.j[t].cancel();this.j=[],ts(Nf(this)),this.a&&(this.a.m(),this.a=null),this.I=null,this.v&&(this.C=zf(this).then(function(){e.C=null},function(){e.C=null}))},e.cb=function(e){Ff(this);var t,n=this.W;for(t in e)try{On(n.a,t,e[t])}catch(e){pi('Invalid config: "'+t+'"',void 0)}xe&&On(n.a,"popupMode",!1),eo(n),!this.aa&&so(Uf(this))&&(vi("signInSuccess callback is deprecated. Please use signInSuccessWithAuthResult callback instead."),this.aa=!0)},e.Jb=function(){Ff(this);var e=Uf(this),t=Nn(e.a,"widgetUrl"),n=Gr(e,t);Uf(this).a.get("popupMode")?(n=n||"about:blank",(e={width:500,height:600,top:0<(e=(window.screen.availHeight-600)/2)?e:0,left:0<(t=(window.screen.availWidth-500)/2)?t:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1}).target=e.target||n.target||"google_popup",e.width=e.width||690,e.height=e.height||500,(e=Nr(n,e))&&e.focus()):Pr(n)},e.ub=function(){var e=this;return Ff(this),this.v.app.delete().then(function(){var t=Ef(Nf(e));delete kf[t],e.reset(),e.Z=!0})},e.vb=function(e,t){Ff(this);var n=this,i=function(){for(var e=32,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}();if(!oo(Uf(this)))throw Error("Email link sign-in should be enabled to trigger email sending.");var r=function(e){if(oo(e)){var t={url:Mr(),handleCodeInApp:!0};return(e=Xr(e,o.auth.EmailAuthProvider.PROVIDER_ID))&&"function"==typeof e.emailLinkSignIn&&fe(t,e.emailLinkSignIn()),t.url=Nt(Mr(),t.url).toString(),t}return null}(Uf(this)),a=new ho(r.url);return function(e,t){t?e.a.a.set(po.Ma,t):Ht(e.a.a,po.Ma)}(a,i),t&&t.a&&(function(e,t,n){Ya(Ka,_a(e,JSON.stringify(t.na())),n)}(i,t,Nf(this)),bo(a,t.a.providerId)),function(e,t){null!==t?e.a.a.set(po.Ka,t?"1":"0"):Ht(e.a.a,po.Ka)}(a,function(e){return!(!(e=Xr(e,o.auth.EmailAuthProvider.PROVIDER_ID))||!e.forceSameDevice)}(Uf(this))),Df(this,function(t){return t&&((t=t.uid)?a.a.a.set(po.Ja,t):Ht(a.a.a,po.Ja)),r.url=a.toString(),If(n).sendSignInLinkToEmail(e,r)}).then(function(){var t=Nf(n),r={};r.email=e,Ya(Ga,_a(i,JSON.stringify(r)),t)},function(e){throw Xa(Ka,Nf(n)),Xa(Ga,Nf(n)),e})},e.Ob=function(e,t){Ff(this);var n=this;return If(this).signInWithEmailAndPassword(e,t).then(function(i){return Df(n,function(r){return r?zf(n).then(function(){return Hf(n,{code:"auth/email-already-in-use"},o.auth.EmailAuthProvider.credential(e,t))}):i})})},e.Lb=function(e,t){Ff(this);var n=this;return Df(this,function(i){if(i){var r=o.auth.EmailAuthProvider.credential(e,t);return i.linkAndRetrieveDataWithCredential(r)}return If(n).createUserWithEmailAndPassword(e,t)})},e.Nb=function(e){Ff(this);var t=this;return Df(this,function(n){return n?n.linkAndRetrieveDataWithCredential(e).then(function(e){return e},function(n){if(n&&"auth/email-already-in-use"==n.code&&n.email&&n.credential)throw n;return Hf(t,n,e)}):If(t).signInAndRetrieveDataWithCredential(e)})},e.Qb=function(e){Ff(this);var t=this,n=this.i;return this.i=null,Df(this,function(n){return n&&!es(Nf(t))?n.linkWithRedirect(e):If(t).signInWithRedirect(e)}).then(function(){},function(e){throw t.i=n,e})},e.Pb=function(e,t){Ff(this);var n=this;return Df(this,function(i){return i?i.linkWithPhoneNumber(e,t).then(function(e){return new Go(e,function(e){if("auth/credential-already-in-use"==e.code)return Hf(n,e);throw e})}):Of(n).signInWithPhoneNumber(e,t).then(function(e){return new Go(e)})})},e.Mb=function(){return Ff(this),Of(this).signInAnonymously()},e.Kb=function(e,t){return Ff(this),If(this).signInWithEmailAndPassword(e,t)},I("firebaseui.auth.AuthUI",_f),I("firebaseui.auth.AuthUI.getInstance",function(e){return e=Ef(e),kf[e]?kf[e]:null}),I("firebaseui.auth.AuthUI.prototype.disableAutoSignIn",_f.prototype.disableAutoSignIn),I("firebaseui.auth.AuthUI.prototype.start",_f.prototype.start),I("firebaseui.auth.AuthUI.prototype.setConfig",_f.prototype.cb),I("firebaseui.auth.AuthUI.prototype.signIn",_f.prototype.Jb),I("firebaseui.auth.AuthUI.prototype.reset",_f.prototype.reset),I("firebaseui.auth.AuthUI.prototype.delete",_f.prototype.ub),I("firebaseui.auth.AuthUI.prototype.isPendingRedirect",_f.prototype.gb),I("firebaseui.auth.AuthUIError",Tn),I("firebaseui.auth.AuthUIError.prototype.toJSON",Tn.prototype.toJSON),I("firebaseui.auth.CredentialHelper.ACCOUNT_CHOOSER_COM",Ur),I("firebaseui.auth.CredentialHelper.GOOGLE_YOLO","googleyolo"),I("firebaseui.auth.CredentialHelper.NONE","none"),I("firebaseui.auth.AnonymousAuthProvider.PROVIDER_ID","anonymous")}(),"undefined"!=typeof window&&(window.dialogPolyfill=n(49))}(),e.exports=firebaseui}).call(this,n(5))},function(e,t,n){var i;!function(){var r=window.CustomEvent;function o(e){for(;e;){if("dialog"===e.localName)return e;e=e.parentElement}return null}function a(e){e&&e.blur&&e!==document.body&&e.blur()}function s(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1}function u(e){return!(!e||!e.hasAttribute("method"))&&"dialog"===e.getAttribute("method").toLowerCase()}function l(e){if(this.dialog_=e,this.replacedStyleTop_=!1,this.openAsModal_=!1,e.hasAttribute("role")||e.setAttribute("role","dialog"),e.show=this.show.bind(this),e.showModal=this.showModal.bind(this),e.close=this.close.bind(this),"returnValue"in e||(e.returnValue=""),"MutationObserver"in window){new MutationObserver(this.maybeHideModal.bind(this)).observe(e,{attributes:!0,attributeFilter:["open"]})}else{var t,n=!1,i=function(){n?this.downgradeModal():this.maybeHideModal(),n=!1}.bind(this),r=function(r){if(r.target===e){var o="DOMNodeRemoved";n|=r.type.substr(0,o.length)===o,window.clearTimeout(t),t=window.setTimeout(i,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach(function(t){e.addEventListener(t,r)})}Object.defineProperty(e,"open",{set:this.setOpen.bind(this),get:e.hasAttribute.bind(e,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("click",this.backdropClick_.bind(this))}r&&"object"!=typeof r||((r=function(e,t){t=t||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail||null),n}).prototype=window.Event.prototype),l.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&document.body.contains(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),c.dm.removeDialog(this))},setOpen:function(e){e?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropClick_:function(e){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var t=document.createElement("div");this.dialog_.insertBefore(t,this.dialog_.firstChild),t.tabIndex=-1,t.focus(),this.dialog_.removeChild(t)}var n=document.createEvent("MouseEvents");n.initMouseEvent(e.type,e.bubbles,e.cancelable,window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this.dialog_.dispatchEvent(n),e.stopPropagation()},focus_:function(){var e=this.dialog_.querySelector("[autofocus]:not([disabled])");if(!e&&this.dialog_.tabIndex>=0&&(e=this.dialog_),!e){var t=["button","input","keygen","select","textarea"].map(function(e){return e+":not([disabled])"});t.push('[tabindex]:not([disabled]):not([tabindex=""])'),e=this.dialog_.querySelector(t.join(", "))}a(document.activeElement),e&&e.focus()},updateZIndex:function(e,t){if(e<t)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=e,this.backdrop_.style.zIndex=t},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!document.body.contains(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!c.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");(function(e){for(;e&&e!==document.body;){var t=window.getComputedStyle(e),n=function(e,n){return!(void 0===t[e]||t[e]===n)};if(t.opacity<1||n("zIndex","auto")||n("transform","none")||n("mixBlendMode","normal")||n("filter","none")||n("perspective","none")||"isolate"===t.isolation||"fixed"===t.position||"touch"===t.webkitOverflowScrolling)return!0;e=e.parentElement}return!1})(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,c.needsCentering(this.dialog_)?(c.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(e){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),void 0!==e&&(this.dialog_.returnValue=e);var t=new r("close",{bubbles:!1,cancelable:!1});this.dialog_.dispatchEvent(t)}};var c={reposition:function(e){var t=document.body.scrollTop||document.documentElement.scrollTop,n=t+(window.innerHeight-e.offsetHeight)/2;e.style.top=Math.max(t,n)+"px"},isInlinePositionSetByStylesheet:function(e){for(var t=0;t<document.styleSheets.length;++t){var n=document.styleSheets[t],i=null;try{i=n.cssRules}catch(e){}if(i)for(var r=0;r<i.length;++r){var o=i[r],a=null;try{a=document.querySelectorAll(o.selectorText)}catch(e){}if(a&&s(a,e)){var u=o.style.getPropertyValue("top"),l=o.style.getPropertyValue("bottom");if(u&&"auto"!==u||l&&"auto"!==l)return!0}}}return!1},needsCentering:function(e){return"absolute"===window.getComputedStyle(e).position&&(!("auto"!==e.style.top&&""!==e.style.top||"auto"!==e.style.bottom&&""!==e.style.bottom)&&!c.isInlinePositionSetByStylesheet(e))},forceRegisterDialog:function(e){if((window.HTMLDialogElement||e.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",e),"dialog"!==e.localName)throw new Error("Failed to register dialog: The element is not a dialog.");new l(e)},registerDialog:function(e){e.showModal||c.forceRegisterDialog(e)},DialogManager:function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(t){var n=[];t.forEach(function(e){for(var t,i=0;t=e.removedNodes[i];++i)t instanceof Element&&("dialog"===t.localName&&n.push(t),n=n.concat(t.querySelectorAll("dialog")))}),n.length&&e(n)}))}};if(c.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},c.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},c.DialogManager.prototype.updateStacking=function(){for(var e,t=this.zIndexHigh_,n=0;e=this.pendingDialogStack[n];++n)e.updateZIndex(--t,--t),0===n&&(this.overlay.style.zIndex=--t);var i=this.pendingDialogStack[0];i?(i.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},c.DialogManager.prototype.containedByTopDialog_=function(e){for(;e=o(e);){for(var t,n=0;t=this.pendingDialogStack[n];++n)if(t.dialog===e)return 0===n;e=e.parentElement}return!1},c.DialogManager.prototype.handleFocus_=function(e){if(!this.containedByTopDialog_(e.target)&&(e.preventDefault(),e.stopPropagation(),a(e.target),void 0!==this.forwardTab_)){var t=this.pendingDialogStack[0];return t.dialog.compareDocumentPosition(e.target)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?t.focus_():document.documentElement.focus()),!1}},c.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,27===e.keyCode){e.preventDefault(),e.stopPropagation();var t=new r("cancel",{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&n.dialog.dispatchEvent(t)&&n.dialog.close()}else 9===e.keyCode&&(this.forwardTab_=!e.shiftKey)},c.DialogManager.prototype.checkDOM_=function(e){this.pendingDialogStack.slice().forEach(function(t){-1!==e.indexOf(t.dialog)?t.downgradeModal():t.maybeHideModal()})},c.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return!(this.pendingDialogStack.length>=t)&&(1===this.pendingDialogStack.unshift(e)&&this.blockDocument(),this.updateStacking(),!0)},c.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);-1!==t&&(this.pendingDialogStack.splice(t,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},c.dm=new c.DialogManager,c.formSubmitter=null,c.useValue=null,void 0===window.HTMLDialogElement){var f=document.createElement("form");if(f.setAttribute("method","dialog"),"dialog"!==f.method){var d=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(d){var h=d.get;d.get=function(){return u(this)?"dialog":h.call(this)};var p=d.set;d.set=function(e){return"string"==typeof e&&"dialog"===e.toLowerCase()?this.setAttribute("method",e):p.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",d)}}document.addEventListener("click",function(e){if(c.formSubmitter=null,c.useValue=null,!e.defaultPrevented){var t=e.target;if(t&&u(t.form)){if(!("submit"===t.type&&["button","input"].indexOf(t.localName)>-1)){if("input"!==t.localName||"image"!==t.type)return;c.useValue=e.offsetX+","+e.offsetY}o(t)&&(c.formSubmitter=t)}}},!1);var m=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){if(!u(this))return m.call(this);var e=o(this);e&&e.close()},document.addEventListener("submit",function(e){var t=e.target;if(u(t)){e.preventDefault();var n=o(t);if(n){var i=c.formSubmitter;i&&i.form===t?n.close(c.useValue||i.value):n.close(),c.formSubmitter=null}}},!0)}c.forceRegisterDialog=c.forceRegisterDialog,c.registerDialog=c.registerDialog,"amd"in n(21)?void 0===(i=function(){return c}.call(t,n,t,e))||(e.exports=i):"object"==typeof e.exports?e.exports=c:window.dialogPolyfill=c}()},function(e,t,n){"use strict";function i(e,t){var n=e.__state.conversionName.toString(),i=Math.round(e.r),r=Math.round(e.g),o=Math.round(e.b),a=e.a,s=Math.round(e.h),u=e.s.toFixed(1),l=e.v.toFixed(1);if(t||"THREE_CHAR_HEX"===n||"SIX_CHAR_HEX"===n){for(var c=e.hex.toString(16);c.length<6;)c="0"+c;return"#"+c}return"CSS_RGB"===n?"rgb("+i+","+r+","+o+")":"CSS_RGBA"===n?"rgba("+i+","+r+","+o+","+a+")":"HEX"===n?"0x"+e.hex.toString(16):"RGB_ARRAY"===n?"["+i+","+r+","+o+"]":"RGBA_ARRAY"===n?"["+i+","+r+","+o+","+a+"]":"RGB_OBJ"===n?"{r:"+i+",g:"+r+",b:"+o+"}":"RGBA_OBJ"===n?"{r:"+i+",g:"+r+",b:"+o+",a:"+a+"}":"HSV_OBJ"===n?"{h:"+s+",s:"+u+",v:"+l+"}":"HSVA_OBJ"===n?"{h:"+s+",s:"+u+",v:"+l+",a:"+a+"}":"unknown format"}n.d(t,"a",function(){return ue});var r=Array.prototype.forEach,o=Array.prototype.slice,a={BREAK:{},extend:function(e){return this.each(o.call(arguments,1),function(t){(this.isObject(t)?Object.keys(t):[]).forEach(function(n){this.isUndefined(t[n])||(e[n]=t[n])}.bind(this))},this),e},defaults:function(e){return this.each(o.call(arguments,1),function(t){(this.isObject(t)?Object.keys(t):[]).forEach(function(n){this.isUndefined(e[n])&&(e[n]=t[n])}.bind(this))},this),e},compose:function(){var e=o.call(arguments);return function(){for(var t=o.call(arguments),n=e.length-1;n>=0;n--)t=[e[n].apply(this,t)];return t[0]}},each:function(e,t,n){if(e)if(r&&e.forEach&&e.forEach===r)e.forEach(t,n);else if(e.length===e.length+0){var i,o=void 0;for(o=0,i=e.length;o<i;o++)if(o in e&&t.call(n,e[o],o)===this.BREAK)return}else for(var a in e)if(t.call(n,e[a],a)===this.BREAK)return},defer:function(e){setTimeout(e,0)},debounce:function(e,t,n){var i=void 0;return function(){var r=this,o=arguments;var a=n||!i;clearTimeout(i),i=setTimeout(function(){i=null,n||e.apply(r,o)},t),a&&e.apply(r,o)}},toArray:function(e){return e.toArray?e.toArray():o.call(e)},isUndefined:function(e){return void 0===e},isNull:function(e){return null===e},isNaN:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return isNaN(e)}),isArray:Array.isArray||function(e){return e.constructor===Array},isObject:function(e){return e===Object(e)},isNumber:function(e){return e===e+0},isString:function(e){return e===e+""},isBoolean:function(e){return!1===e||!0===e},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)}},s=[{litmus:a.isString,conversions:{THREE_CHAR_HEX:{read:function(e){var t=e.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);return null!==t&&{space:"HEX",hex:parseInt("0x"+t[1].toString()+t[1].toString()+t[2].toString()+t[2].toString()+t[3].toString()+t[3].toString(),0)}},write:i},SIX_CHAR_HEX:{read:function(e){var t=e.match(/^#([A-F0-9]{6})$/i);return null!==t&&{space:"HEX",hex:parseInt("0x"+t[1].toString(),0)}},write:i},CSS_RGB:{read:function(e){var t=e.match(/^rgb\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);return null!==t&&{space:"RGB",r:parseFloat(t[1]),g:parseFloat(t[2]),b:parseFloat(t[3])}},write:i},CSS_RGBA:{read:function(e){var t=e.match(/^rgba\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);return null!==t&&{space:"RGB",r:parseFloat(t[1]),g:parseFloat(t[2]),b:parseFloat(t[3]),a:parseFloat(t[4])}},write:i}}},{litmus:a.isNumber,conversions:{HEX:{read:function(e){return{space:"HEX",hex:e,conversionName:"HEX"}},write:function(e){return e.hex}}}},{litmus:a.isArray,conversions:{RGB_ARRAY:{read:function(e){return 3===e.length&&{space:"RGB",r:e[0],g:e[1],b:e[2]}},write:function(e){return[e.r,e.g,e.b]}},RGBA_ARRAY:{read:function(e){return 4===e.length&&{space:"RGB",r:e[0],g:e[1],b:e[2],a:e[3]}},write:function(e){return[e.r,e.g,e.b,e.a]}}}},{litmus:a.isObject,conversions:{RGBA_OBJ:{read:function(e){return!!(a.isNumber(e.r)&&a.isNumber(e.g)&&a.isNumber(e.b)&&a.isNumber(e.a))&&{space:"RGB",r:e.r,g:e.g,b:e.b,a:e.a}},write:function(e){return{r:e.r,g:e.g,b:e.b,a:e.a}}},RGB_OBJ:{read:function(e){return!!(a.isNumber(e.r)&&a.isNumber(e.g)&&a.isNumber(e.b))&&{space:"RGB",r:e.r,g:e.g,b:e.b}},write:function(e){return{r:e.r,g:e.g,b:e.b}}},HSVA_OBJ:{read:function(e){return!!(a.isNumber(e.h)&&a.isNumber(e.s)&&a.isNumber(e.v)&&a.isNumber(e.a))&&{space:"HSV",h:e.h,s:e.s,v:e.v,a:e.a}},write:function(e){return{h:e.h,s:e.s,v:e.v,a:e.a}}},HSV_OBJ:{read:function(e){return!!(a.isNumber(e.h)&&a.isNumber(e.s)&&a.isNumber(e.v))&&{space:"HSV",h:e.h,s:e.s,v:e.v}},write:function(e){return{h:e.h,s:e.s,v:e.v}}}}}],u=void 0,l=void 0,c=function(){l=!1;var e=arguments.length>1?a.toArray(arguments):arguments[0];return a.each(s,function(t){if(t.litmus(e))return a.each(t.conversions,function(t,n){if(u=t.read(e),!1===l&&!1!==u)return l=u,u.conversionName=n,u.conversion=t,a.BREAK}),a.BREAK}),l},f=void 0,d={hsv_to_rgb:function(e,t,n){var i=Math.floor(e/60)%6,r=e/60-Math.floor(e/60),o=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),u=[[n,s,o],[a,n,o],[o,n,s],[o,a,n],[s,o,n],[n,o,a]][i];return{r:255*u[0],g:255*u[1],b:255*u[2]}},rgb_to_hsv:function(e,t,n){var i=Math.min(e,t,n),r=Math.max(e,t,n),o=r-i,a=void 0;return 0===r?{h:NaN,s:0,v:0}:(a=e===r?(t-n)/o:t===r?2+(n-e)/o:4+(e-t)/o,(a/=6)<0&&(a+=1),{h:360*a,s:o/r,v:r/255})},rgb_to_hex:function(e,t,n){var i=this.hex_with_component(0,2,e);return i=this.hex_with_component(i,1,t),i=this.hex_with_component(i,0,n)},component_from_hex:function(e,t){return e>>8*t&255},hex_with_component:function(e,t,n){return n<<(f=8*t)|e&~(255<<f)}},h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),b=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},g=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},v=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},y=function(){function e(){if(p(this,e),this.__state=c.apply(this,arguments),!1===this.__state)throw new Error("Failed to interpret color arguments");this.__state.a=this.__state.a||1}return m(e,[{key:"toString",value:function(){return i(this)}},{key:"toHexString",value:function(){return i(this,!0)}},{key:"toOriginal",value:function(){return this.__state.conversion.write(this)}}]),e}();function w(e,t,n){Object.defineProperty(e,t,{get:function(){return"RGB"===this.__state.space?this.__state[t]:(y.recalculateRGB(this,t,n),this.__state[t])},set:function(e){"RGB"!==this.__state.space&&(y.recalculateRGB(this,t,n),this.__state.space="RGB"),this.__state[t]=e}})}function _(e,t){Object.defineProperty(e,t,{get:function(){return"HSV"===this.__state.space?this.__state[t]:(y.recalculateHSV(this),this.__state[t])},set:function(e){"HSV"!==this.__state.space&&(y.recalculateHSV(this),this.__state.space="HSV"),this.__state[t]=e}})}y.recalculateRGB=function(e,t,n){if("HEX"===e.__state.space)e.__state[t]=d.component_from_hex(e.__state.hex,n);else{if("HSV"!==e.__state.space)throw new Error("Corrupted color state");a.extend(e.__state,d.hsv_to_rgb(e.__state.h,e.__state.s,e.__state.v))}},y.recalculateHSV=function(e){var t=d.rgb_to_hsv(e.r,e.g,e.b);a.extend(e.__state,{s:t.s,v:t.v}),a.isNaN(t.h)?a.isUndefined(e.__state.h)&&(e.__state.h=0):e.__state.h=t.h},y.COMPONENTS=["r","g","b","h","s","v","hex","a"],w(y.prototype,"r",2),w(y.prototype,"g",1),w(y.prototype,"b",0),_(y.prototype,"h"),_(y.prototype,"s"),_(y.prototype,"v"),Object.defineProperty(y.prototype,"a",{get:function(){return this.__state.a},set:function(e){this.__state.a=e}}),Object.defineProperty(y.prototype,"hex",{get:function(){return"HEX"!==!this.__state.space&&(this.__state.hex=d.rgb_to_hex(this.r,this.g,this.b)),this.__state.hex},set:function(e){this.__state.space="HEX",this.__state.hex=e}});var x=function(){function e(t,n){p(this,e),this.initialValue=t[n],this.domElement=document.createElement("div"),this.object=t,this.property=n,this.__onChange=void 0,this.__onFinishChange=void 0}return m(e,[{key:"onChange",value:function(e){return this.__onChange=e,this}},{key:"onFinishChange",value:function(e){return this.__onFinishChange=e,this}},{key:"setValue",value:function(e){return this.object[this.property]=e,this.__onChange&&this.__onChange.call(this,e),this.updateDisplay(),this}},{key:"getValue",value:function(){return this.object[this.property]}},{key:"updateDisplay",value:function(){return this}},{key:"isModified",value:function(){return this.initialValue!==this.getValue()}}]),e}(),k={};a.each({HTMLEvents:["change"],MouseEvents:["click","mousemove","mousedown","mouseup","mouseover"],KeyboardEvents:["keydown"]},function(e,t){a.each(e,function(e){k[e]=t})});var E=/(\d+(\.\d+)?)px/;function S(e){if("0"===e||a.isUndefined(e))return 0;var t=e.match(E);return a.isNull(t)?0:parseFloat(t[1])}var T={makeSelectable:function(e,t){void 0!==e&&void 0!==e.style&&(e.onselectstart=t?function(){return!1}:function(){},e.style.MozUserSelect=t?"auto":"none",e.style.KhtmlUserSelect=t?"auto":"none",e.unselectable=t?"on":"off")},makeFullscreen:function(e,t,n){var i=n,r=t;a.isUndefined(r)&&(r=!0),a.isUndefined(i)&&(i=!0),e.style.position="absolute",r&&(e.style.left=0,e.style.right=0),i&&(e.style.top=0,e.style.bottom=0)},fakeEvent:function(e,t,n,i){var r=n||{},o=k[t];if(!o)throw new Error("Event type "+t+" not supported.");var s=document.createEvent(o);switch(o){case"MouseEvents":var u=r.x||r.clientX||0,l=r.y||r.clientY||0;s.initMouseEvent(t,r.bubbles||!1,r.cancelable||!0,window,r.clickCount||1,0,0,u,l,!1,!1,!1,!1,0,null);break;case"KeyboardEvents":var c=s.initKeyboardEvent||s.initKeyEvent;a.defaults(r,{cancelable:!0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,keyCode:void 0,charCode:void 0}),c(t,r.bubbles||!1,r.cancelable,window,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.keyCode,r.charCode);break;default:s.initEvent(t,r.bubbles||!1,r.cancelable||!0)}a.defaults(s,i),e.dispatchEvent(s)},bind:function(e,t,n,i){var r=i||!1;return e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,n),T},unbind:function(e,t,n,i){var r=i||!1;return e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on"+t,n),T},addClass:function(e,t){if(void 0===e.className)e.className=t;else if(e.className!==t){var n=e.className.split(/ +/);-1===n.indexOf(t)&&(n.push(t),e.className=n.join(" ").replace(/^\s+/,"").replace(/\s+$/,""))}return T},removeClass:function(e,t){if(t)if(e.className===t)e.removeAttribute("class");else{var n=e.className.split(/ +/),i=n.indexOf(t);-1!==i&&(n.splice(i,1),e.className=n.join(" "))}else e.className=void 0;return T},hasClass:function(e,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(e.className)||!1},getWidth:function(e){var t=getComputedStyle(e);return S(t["border-left-width"])+S(t["border-right-width"])+S(t["padding-left"])+S(t["padding-right"])+S(t.width)},getHeight:function(e){var t=getComputedStyle(e);return S(t["border-top-width"])+S(t["border-bottom-width"])+S(t["padding-top"])+S(t["padding-bottom"])+S(t.height)},getOffset:function(e){var t=e,n={left:0,top:0};if(t.offsetParent)do{n.left+=t.offsetLeft,n.top+=t.offsetTop,t=t.offsetParent}while(t);return n},isActive:function(e){return e===document.activeElement&&(e.type||e.href)}},C=function(e){function t(e,n){p(this,t);var i=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=i;return i.__prev=i.getValue(),i.__checkbox=document.createElement("input"),i.__checkbox.setAttribute("type","checkbox"),T.bind(i.__checkbox,"change",function(){r.setValue(!r.__prev)},!1),i.domElement.appendChild(i.__checkbox),i.updateDisplay(),i}return g(t,x),m(t,[{key:"setValue",value:function(e){var n=b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setValue",this).call(this,e);return this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue()),this.__prev=this.getValue(),n}},{key:"updateDisplay",value:function(){return!0===this.getValue()?(this.__checkbox.setAttribute("checked","checked"),this.__checkbox.checked=!0,this.__prev=!0):(this.__checkbox.checked=!1,this.__prev=!1),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateDisplay",this).call(this)}}]),t}(),A=function(e){function t(e,n,i){p(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),o=i,s=r;if(r.__select=document.createElement("select"),a.isArray(o)){var u={};a.each(o,function(e){u[e]=e}),o=u}return a.each(o,function(e,t){var n=document.createElement("option");n.innerHTML=t,n.setAttribute("value",e),s.__select.appendChild(n)}),r.updateDisplay(),T.bind(r.__select,"change",function(){var e=this.options[this.selectedIndex].value;s.setValue(e)}),r.domElement.appendChild(r.__select),r}return g(t,x),m(t,[{key:"setValue",value:function(e){var n=b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setValue",this).call(this,e);return this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue()),n}},{key:"updateDisplay",value:function(){return T.isActive(this.__select)?this:(this.__select.value=this.getValue(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateDisplay",this).call(this))}}]),t}(),I=function(e){function t(e,n){p(this,t);var i=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=i;function o(){r.setValue(r.__input.value)}return i.__input=document.createElement("input"),i.__input.setAttribute("type","text"),T.bind(i.__input,"keyup",o),T.bind(i.__input,"change",o),T.bind(i.__input,"blur",function(){r.__onFinishChange&&r.__onFinishChange.call(r,r.getValue())}),T.bind(i.__input,"keydown",function(e){13===e.keyCode&&this.blur()}),i.updateDisplay(),i.domElement.appendChild(i.__input),i}return g(t,x),m(t,[{key:"updateDisplay",value:function(){return T.isActive(this.__input)||(this.__input.value=this.getValue()),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateDisplay",this).call(this)}}]),t}();function O(e){var t=e.toString();return t.indexOf(".")>-1?t.length-t.indexOf(".")-1:0}var N=function(e){function t(e,n,i){p(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),o=i||{};return r.__min=o.min,r.__max=o.max,r.__step=o.step,a.isUndefined(r.__step)?0===r.initialValue?r.__impliedStep=1:r.__impliedStep=Math.pow(10,Math.floor(Math.log(Math.abs(r.initialValue))/Math.LN10))/10:r.__impliedStep=r.__step,r.__precision=O(r.__impliedStep),r}return g(t,x),m(t,[{key:"setValue",value:function(e){var n=e;return void 0!==this.__min&&n<this.__min?n=this.__min:void 0!==this.__max&&n>this.__max&&(n=this.__max),void 0!==this.__step&&n%this.__step!=0&&(n=Math.round(n/this.__step)*this.__step),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setValue",this).call(this,n)}},{key:"min",value:function(e){return this.__min=e,this}},{key:"max",value:function(e){return this.__max=e,this}},{key:"step",value:function(e){return this.__step=e,this.__impliedStep=e,this.__precision=O(e),this}}]),t}();var P=function(e){function t(e,n,i){p(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,i));r.__truncationSuspended=!1;var o=r,s=void 0;function u(){o.__onFinishChange&&o.__onFinishChange.call(o,o.getValue())}function l(e){var t=s-e.clientY;o.setValue(o.getValue()+t*o.__impliedStep),s=e.clientY}function c(){T.unbind(window,"mousemove",l),T.unbind(window,"mouseup",c),u()}return r.__input=document.createElement("input"),r.__input.setAttribute("type","text"),T.bind(r.__input,"change",function(){var e=parseFloat(o.__input.value);a.isNaN(e)||o.setValue(e)}),T.bind(r.__input,"blur",function(){u()}),T.bind(r.__input,"mousedown",function(e){T.bind(window,"mousemove",l),T.bind(window,"mouseup",c),s=e.clientY}),T.bind(r.__input,"keydown",function(e){13===e.keyCode&&(o.__truncationSuspended=!0,this.blur(),o.__truncationSuspended=!1,u())}),r.updateDisplay(),r.domElement.appendChild(r.__input),r}return g(t,N),m(t,[{key:"updateDisplay",value:function(){var e,n,i;return this.__input.value=this.__truncationSuspended?this.getValue():(e=this.getValue(),n=this.__precision,i=Math.pow(10,n),Math.round(e*i)/i),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateDisplay",this).call(this)}}]),t}();function R(e,t,n,i,r){return i+(e-t)/(n-t)*(r-i)}var D=function(e){function t(e,n,i,r,o){p(this,t);var a=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,{min:i,max:r,step:o})),s=a;function u(e){e.preventDefault();var t=s.__background.getBoundingClientRect();return s.setValue(R(e.clientX,t.left,t.right,s.__min,s.__max)),!1}function l(){T.unbind(window,"mousemove",u),T.unbind(window,"mouseup",l),s.__onFinishChange&&s.__onFinishChange.call(s,s.getValue())}function c(e){var t=e.touches[0].clientX,n=s.__background.getBoundingClientRect();s.setValue(R(t,n.left,n.right,s.__min,s.__max))}function f(){T.unbind(window,"touchmove",c),T.unbind(window,"touchend",f),s.__onFinishChange&&s.__onFinishChange.call(s,s.getValue())}return a.__background=document.createElement("div"),a.__foreground=document.createElement("div"),T.bind(a.__background,"mousedown",function(e){document.activeElement.blur(),T.bind(window,"mousemove",u),T.bind(window,"mouseup",l),u(e)}),T.bind(a.__background,"touchstart",function(e){if(1!==e.touches.length)return;T.bind(window,"touchmove",c),T.bind(window,"touchend",f),c(e)}),T.addClass(a.__background,"slider"),T.addClass(a.__foreground,"slider-fg"),a.updateDisplay(),a.__background.appendChild(a.__foreground),a.domElement.appendChild(a.__background),a}return g(t,N),m(t,[{key:"updateDisplay",value:function(){var e=(this.getValue()-this.__min)/(this.__max-this.__min);return this.__foreground.style.width=100*e+"%",b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateDisplay",this).call(this)}}]),t}(),L=function(e){function t(e,n,i){p(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),o=r;return r.__button=document.createElement("div"),r.__button.innerHTML=void 0===i?"Fire":i,T.bind(r.__button,"click",function(e){return e.preventDefault(),o.fire(),!1}),T.addClass(r.__button,"button"),r.domElement.appendChild(r.__button),r}return g(t,x),m(t,[{key:"fire",value:function(){this.__onChange&&this.__onChange.call(this),this.getValue().call(this.object),this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue())}}]),t}(),M=function(e){function t(e,n){p(this,t);var i=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));i.__color=new y(i.getValue()),i.__temp=new y(0);var r=i;i.domElement=document.createElement("div"),T.makeSelectable(i.domElement,!1),i.__selector=document.createElement("div"),i.__selector.className="selector",i.__saturation_field=document.createElement("div"),i.__saturation_field.className="saturation-field",i.__field_knob=document.createElement("div"),i.__field_knob.className="field-knob",i.__field_knob_border="2px solid ",i.__hue_knob=document.createElement("div"),i.__hue_knob.className="hue-knob",i.__hue_field=document.createElement("div"),i.__hue_field.className="hue-field",i.__input=document.createElement("input"),i.__input.type="text",i.__input_textShadow="0 1px 1px ",T.bind(i.__input,"keydown",function(e){13===e.keyCode&&h.call(this)}),T.bind(i.__input,"blur",h),T.bind(i.__selector,"mousedown",function(){T.addClass(this,"drag").bind(window,"mouseup",function(){T.removeClass(r.__selector,"drag")})}),T.bind(i.__selector,"touchstart",function(){T.addClass(this,"drag").bind(window,"touchend",function(){T.removeClass(r.__selector,"drag")})});var o,s=document.createElement("div");function u(e){b(e),T.bind(window,"mousemove",b),T.bind(window,"touchmove",b),T.bind(window,"mouseup",f),T.bind(window,"touchend",f)}function l(e){g(e),T.bind(window,"mousemove",g),T.bind(window,"touchmove",g),T.bind(window,"mouseup",d),T.bind(window,"touchend",d)}function f(){T.unbind(window,"mousemove",b),T.unbind(window,"touchmove",b),T.unbind(window,"mouseup",f),T.unbind(window,"touchend",f),m()}function d(){T.unbind(window,"mousemove",g),T.unbind(window,"touchmove",g),T.unbind(window,"mouseup",d),T.unbind(window,"touchend",d),m()}function h(){var e=c(this.value);!1!==e?(r.__color.__state=e,r.setValue(r.__color.toOriginal())):this.value=r.__color.toString()}function m(){r.__onFinishChange&&r.__onFinishChange.call(r,r.__color.toOriginal())}function b(e){-1===e.type.indexOf("touch")&&e.preventDefault();var t=r.__saturation_field.getBoundingClientRect(),n=e.touches&&e.touches[0]||e,i=n.clientX,o=n.clientY,a=(i-t.left)/(t.right-t.left),s=1-(o-t.top)/(t.bottom-t.top);return s>1?s=1:s<0&&(s=0),a>1?a=1:a<0&&(a=0),r.__color.v=s,r.__color.s=a,r.setValue(r.__color.toOriginal()),!1}function g(e){-1===e.type.indexOf("touch")&&e.preventDefault();var t=r.__hue_field.getBoundingClientRect(),n=1-((e.touches&&e.touches[0]||e).clientY-t.top)/(t.bottom-t.top);return n>1?n=1:n<0&&(n=0),r.__color.h=360*n,r.setValue(r.__color.toOriginal()),!1}return a.extend(i.__selector.style,{width:"122px",height:"102px",padding:"3px",backgroundColor:"#222",boxShadow:"0px 1px 3px rgba(0,0,0,0.3)"}),a.extend(i.__field_knob.style,{position:"absolute",width:"12px",height:"12px",border:i.__field_knob_border+(i.__color.v<.5?"#fff":"#000"),boxShadow:"0px 1px 3px rgba(0,0,0,0.5)",borderRadius:"12px",zIndex:1}),a.extend(i.__hue_knob.style,{position:"absolute",width:"15px",height:"2px",borderRight:"4px solid #fff",zIndex:1}),a.extend(i.__saturation_field.style,{width:"100px",height:"100px",border:"1px solid #555",marginRight:"3px",display:"inline-block",cursor:"pointer"}),a.extend(s.style,{width:"100%",height:"100%",background:"none"}),U(s,"top","rgba(0,0,0,0)","#000"),a.extend(i.__hue_field.style,{width:"15px",height:"100px",border:"1px solid #555",cursor:"ns-resize",position:"absolute",top:"3px",right:"3px"}),(o=i.__hue_field).style.background="",o.style.cssText+="background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);",o.style.cssText+="background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",o.style.cssText+="background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",o.style.cssText+="background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",o.style.cssText+="background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",a.extend(i.__input.style,{outline:"none",textAlign:"center",color:"#fff",border:0,fontWeight:"bold",textShadow:i.__input_textShadow+"rgba(0,0,0,0.7)"}),T.bind(i.__saturation_field,"mousedown",u),T.bind(i.__saturation_field,"touchstart",u),T.bind(i.__field_knob,"mousedown",u),T.bind(i.__field_knob,"touchstart",u),T.bind(i.__hue_field,"mousedown",l),T.bind(i.__hue_field,"touchstart",l),i.__saturation_field.appendChild(s),i.__selector.appendChild(i.__field_knob),i.__selector.appendChild(i.__saturation_field),i.__selector.appendChild(i.__hue_field),i.__hue_field.appendChild(i.__hue_knob),i.domElement.appendChild(i.__input),i.domElement.appendChild(i.__selector),i.updateDisplay(),i}return g(t,x),m(t,[{key:"updateDisplay",value:function(){var e=c(this.getValue());if(!1!==e){var t=!1;a.each(y.COMPONENTS,function(n){if(!a.isUndefined(e[n])&&!a.isUndefined(this.__color.__state[n])&&e[n]!==this.__color.__state[n])return t=!0,{}},this),t&&a.extend(this.__color.__state,e)}a.extend(this.__temp.__state,this.__color.__state),this.__temp.a=1;var n=this.__color.v<.5||this.__color.s>.5?255:0,i=255-n;a.extend(this.__field_knob.style,{marginLeft:100*this.__color.s-7+"px",marginTop:100*(1-this.__color.v)-7+"px",backgroundColor:this.__temp.toHexString(),border:this.__field_knob_border+"rgb("+n+","+n+","+n+")"}),this.__hue_knob.style.marginTop=100*(1-this.__color.h/360)+"px",this.__temp.s=1,this.__temp.v=1,U(this.__saturation_field,"left","#fff",this.__temp.toHexString()),this.__input.value=this.__color.toString(),a.extend(this.__input.style,{backgroundColor:this.__color.toHexString(),color:"rgb("+n+","+n+","+n+")",textShadow:this.__input_textShadow+"rgba("+i+","+i+","+i+",.7)"})}}]),t}(),j=["-moz-","-o-","-webkit-","-ms-",""];function U(e,t,n,i){e.style.background="",a.each(j,function(r){e.style.cssText+="background: "+r+"linear-gradient("+t+", "+n+" 0%, "+i+" 100%); "})}var F=function(e,t){var n=t||document,i=document.createElement("style");i.type="text/css",i.innerHTML=e;var r=n.getElementsByTagName("head")[0];try{r.appendChild(i)}catch(e){}},B=function(e,t){var n=e[t];return a.isArray(arguments[2])||a.isObject(arguments[2])?new A(e,t,arguments[2]):a.isNumber(n)?a.isNumber(arguments[2])&&a.isNumber(arguments[3])?a.isNumber(arguments[4])?new D(e,t,arguments[2],arguments[3],arguments[4]):new D(e,t,arguments[2],arguments[3]):a.isNumber(arguments[4])?new P(e,t,{min:arguments[2],max:arguments[3],step:arguments[4]}):new P(e,t,{min:arguments[2],max:arguments[3]}):a.isString(n)?new I(e,t):a.isFunction(n)?new L(e,t,""):a.isBoolean(n)?new C(e,t):null};var z=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},H=function(){function e(){p(this,e),this.backgroundElement=document.createElement("div"),a.extend(this.backgroundElement.style,{backgroundColor:"rgba(0,0,0,0.8)",top:0,left:0,display:"none",zIndex:"1000",opacity:0,WebkitTransition:"opacity 0.2s linear",transition:"opacity 0.2s linear"}),T.makeFullscreen(this.backgroundElement),this.backgroundElement.style.position="fixed",this.domElement=document.createElement("div"),a.extend(this.domElement.style,{position:"fixed",display:"none",zIndex:"1001",opacity:0,WebkitTransition:"-webkit-transform 0.2s ease-out, opacity 0.2s linear",transition:"transform 0.2s ease-out, opacity 0.2s linear"}),document.body.appendChild(this.backgroundElement),document.body.appendChild(this.domElement);var t=this;T.bind(this.backgroundElement,"click",function(){t.hide()})}return m(e,[{key:"show",value:function(){var e=this;this.backgroundElement.style.display="block",this.domElement.style.display="block",this.domElement.style.opacity=0,this.domElement.style.webkitTransform="scale(1.1)",this.layout(),a.defer(function(){e.backgroundElement.style.opacity=1,e.domElement.style.opacity=1,e.domElement.style.webkitTransform="scale(1)"})}},{key:"hide",value:function(){var e=this,t=function t(){e.domElement.style.display="none",e.backgroundElement.style.display="none",T.unbind(e.domElement,"webkitTransitionEnd",t),T.unbind(e.domElement,"transitionend",t),T.unbind(e.domElement,"oTransitionEnd",t)};T.bind(this.domElement,"webkitTransitionEnd",t),T.bind(this.domElement,"transitionend",t),T.bind(this.domElement,"oTransitionEnd",t),this.backgroundElement.style.opacity=0,this.domElement.style.opacity=0,this.domElement.style.webkitTransform="scale(1.1)"}},{key:"layout",value:function(){this.domElement.style.left=window.innerWidth/2-T.getWidth(this.domElement)/2+"px",this.domElement.style.top=window.innerHeight/2-T.getHeight(this.domElement)/2+"px"}}]),e}();F(function(e){if(e&&"undefined"!=typeof window){var t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}}(".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1 !important}.dg.main:hover .close-button,.dg.main .close-button.drag{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear;border:0;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button.close-top{position:relative}.dg.main .close-button.close-bottom{position:absolute}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-y:visible}.dg.a.has-save>ul.close-top{margin-top:0}.dg.a.has-save>ul.close-bottom{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{top:0;z-index:1002}.dg.a .save-row.close-top{position:relative}.dg.a .save-row.close-bottom{position:fixed}.dg li{-webkit-transition:height .1s ease-out;-o-transition:height .1s ease-out;-moz-transition:height .1s ease-out;transition:height .1s ease-out;-webkit-transition:overflow .1s linear;-o-transition:overflow .1s linear;-moz-transition:overflow .1s linear;transition:overflow .1s linear}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid rgba(0,0,0,0)}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px;overflow:hidden}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .c{float:left;width:60%;position:relative}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:7px}.dg .c select{margin-top:5px}.dg .cr.function,.dg .cr.function .property-name,.dg .cr.function *,.dg .cr.boolean,.dg .cr.boolean *{cursor:pointer}.dg .cr.color{overflow:visible}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0px 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco, monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px 'Lucida Grande', sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px 4px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2FA1D6}.dg .cr.number input[type=text]{color:#2FA1D6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.function:hover,.dg .cr.boolean:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2FA1D6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}\n"));var V="Default",W=function(){try{return!!window.localStorage}catch(e){return!1}}(),G=void 0,K=!0,q=void 0,X=!1,Y=[],J=function e(t){var n=this,i=t||{};this.domElement=document.createElement("div"),this.__ul=document.createElement("ul"),this.domElement.appendChild(this.__ul),T.addClass(this.domElement,"dg"),this.__folders={},this.__controllers=[],this.__rememberedObjects=[],this.__rememberedObjectIndecesToControllers=[],this.__listening=[],i=a.defaults(i,{closeOnTop:!1,autoPlace:!0,width:e.DEFAULT_WIDTH}),i=a.defaults(i,{resizable:i.autoPlace,hideable:i.autoPlace}),a.isUndefined(i.load)?i.load={preset:V}:i.preset&&(i.load.preset=i.preset),a.isUndefined(i.parent)&&i.hideable&&Y.push(this),i.resizable=a.isUndefined(i.parent)&&i.resizable,i.autoPlace&&a.isUndefined(i.scrollable)&&(i.scrollable=!0);var r,o=W&&"true"===localStorage.getItem(ne(this,"isLocal")),s=void 0,u=void 0;if(Object.defineProperties(this,{parent:{get:function(){return i.parent}},scrollable:{get:function(){return i.scrollable}},autoPlace:{get:function(){return i.autoPlace}},closeOnTop:{get:function(){return i.closeOnTop}},preset:{get:function(){return n.parent?n.getRoot().preset:i.load.preset},set:function(e){n.parent?n.getRoot().preset=e:i.load.preset=e,function(e){for(var t=0;t<e.__preset_select.length;t++)e.__preset_select[t].value===e.preset&&(e.__preset_select.selectedIndex=t)}(this),n.revert()}},width:{get:function(){return i.width},set:function(e){i.width=e,ae(n,e)}},name:{get:function(){return i.name},set:function(e){i.name=e,u&&(u.innerHTML=i.name)}},closed:{get:function(){return i.closed},set:function(t){i.closed=t,i.closed?T.addClass(n.__ul,e.CLASS_CLOSED):T.removeClass(n.__ul,e.CLASS_CLOSED),this.onResize(),n.__closeButton&&(n.__closeButton.innerHTML=t?e.TEXT_OPEN:e.TEXT_CLOSED)}},load:{get:function(){return i.load}},useLocalStorage:{get:function(){return o},set:function(e){W&&(o=e,e?T.bind(window,"unload",s):T.unbind(window,"unload",s),localStorage.setItem(ne(n,"isLocal"),e))}}}),a.isUndefined(i.parent)){if(this.closed=i.closed||!1,T.addClass(this.domElement,e.CLASS_MAIN),T.makeSelectable(this.domElement,!1),W&&o){n.useLocalStorage=!0;var l=localStorage.getItem(ne(this,"gui"));l&&(i.load=JSON.parse(l))}this.__closeButton=document.createElement("div"),this.__closeButton.innerHTML=e.TEXT_CLOSED,T.addClass(this.__closeButton,e.CLASS_CLOSE_BUTTON),i.closeOnTop?(T.addClass(this.__closeButton,e.CLASS_CLOSE_TOP),this.domElement.insertBefore(this.__closeButton,this.domElement.childNodes[0])):(T.addClass(this.__closeButton,e.CLASS_CLOSE_BOTTOM),this.domElement.appendChild(this.__closeButton)),T.bind(this.__closeButton,"click",function(){n.closed=!n.closed})}else{void 0===i.closed&&(i.closed=!0);var c=document.createTextNode(i.name);T.addClass(c,"controller-name"),u=$(n,c);T.addClass(this.__ul,e.CLASS_CLOSED),T.addClass(u,"title"),T.bind(u,"click",function(e){return e.preventDefault(),n.closed=!n.closed,!1}),i.closed||(this.closed=!1)}i.autoPlace&&(a.isUndefined(i.parent)&&(K&&(q=document.createElement("div"),T.addClass(q,"dg"),T.addClass(q,e.CLASS_AUTO_PLACE_CONTAINER),document.body.appendChild(q),K=!1),q.appendChild(this.domElement),T.addClass(this.domElement,e.CLASS_AUTO_PLACE)),this.parent||ae(n,i.width)),this.__resizeHandler=function(){n.onResizeDebounced()},T.bind(window,"resize",this.__resizeHandler),T.bind(this.__ul,"webkitTransitionEnd",this.__resizeHandler),T.bind(this.__ul,"transitionend",this.__resizeHandler),T.bind(this.__ul,"oTransitionEnd",this.__resizeHandler),this.onResize(),i.resizable&&oe(this),s=function(){W&&"true"===localStorage.getItem(ne(n,"isLocal"))&&localStorage.setItem(ne(n,"gui"),JSON.stringify(n.getSaveObject()))},this.saveToLocalStorageIfPossible=s,i.parent||((r=n.getRoot()).width+=1,a.defer(function(){r.width-=1}))};function $(e,t,n){var i=document.createElement("li");return t&&i.appendChild(t),n?e.__ul.insertBefore(i,n):e.__ul.appendChild(i),e.onResize(),i}function Z(e){T.unbind(window,"resize",e.__resizeHandler),e.saveToLocalStorageIfPossible&&T.unbind(window,"unload",e.saveToLocalStorageIfPossible)}function Q(e,t){var n=e.__preset_select[e.__preset_select.selectedIndex];n.innerHTML=t?n.value+"*":n.value}function ee(e,t){var n=e.getRoot(),i=n.__rememberedObjects.indexOf(t.object);if(-1!==i){var r=n.__rememberedObjectIndecesToControllers[i];if(void 0===r&&(r={},n.__rememberedObjectIndecesToControllers[i]=r),r[t.property]=t,n.load&&n.load.remembered){var o=n.load.remembered,a=void 0;if(o[e.preset])a=o[e.preset];else{if(!o[V])return;a=o[V]}if(a[i]&&void 0!==a[i][t.property]){var s=a[i][t.property];t.initialValue=s,t.setValue(s)}}}}function te(e,t,n,i){if(void 0===t[n])throw new Error('Object "'+t+'" has no property "'+n+'"');var r=void 0;if(i.color)r=new M(t,n);else{var o=[t,n].concat(i.factoryArgs);r=B.apply(e,o)}i.before instanceof x&&(i.before=i.before.__li),ee(e,r),T.addClass(r.domElement,"c");var s=document.createElement("span");T.addClass(s,"property-name"),s.innerHTML=r.property;var u=document.createElement("div");u.appendChild(s),u.appendChild(r.domElement);var l=$(e,u,i.before);return T.addClass(l,J.CLASS_CONTROLLER_ROW),r instanceof M?T.addClass(l,"color"):T.addClass(l,h(r.getValue())),function(e,t,n){if(n.__li=t,n.__gui=e,a.extend(n,{options:function(t){if(arguments.length>1){var i=n.__li.nextElementSibling;return n.remove(),te(e,n.object,n.property,{before:i,factoryArgs:[a.toArray(arguments)]})}if(a.isArray(t)||a.isObject(t)){var r=n.__li.nextElementSibling;return n.remove(),te(e,n.object,n.property,{before:r,factoryArgs:[t]})}},name:function(e){return n.__li.firstElementChild.firstElementChild.innerHTML=e,n},listen:function(){return n.__gui.listen(n),n},remove:function(){return n.__gui.remove(n),n}}),n instanceof D){var i=new P(n.object,n.property,{min:n.__min,max:n.__max,step:n.__step});a.each(["updateDisplay","onChange","onFinishChange","step","min","max"],function(e){var t=n[e],r=i[e];n[e]=i[e]=function(){var e=Array.prototype.slice.call(arguments);return r.apply(i,e),t.apply(n,e)}}),T.addClass(t,"has-slider"),n.domElement.insertBefore(i.domElement,n.domElement.firstElementChild)}else if(n instanceof P){var r=function(t){if(a.isNumber(n.__min)&&a.isNumber(n.__max)){var i=n.__li.firstElementChild.firstElementChild.innerHTML,r=n.__gui.__listening.indexOf(n)>-1;n.remove();var o=te(e,n.object,n.property,{before:n.__li.nextElementSibling,factoryArgs:[n.__min,n.__max,n.__step]});return o.name(i),r&&o.listen(),o}return t};n.min=a.compose(r,n.min),n.max=a.compose(r,n.max)}else n instanceof C?(T.bind(t,"click",function(){T.fakeEvent(n.__checkbox,"click")}),T.bind(n.__checkbox,"click",function(e){e.stopPropagation()})):n instanceof L?(T.bind(t,"click",function(){T.fakeEvent(n.__button,"click")}),T.bind(t,"mouseover",function(){T.addClass(n.__button,"hover")}),T.bind(t,"mouseout",function(){T.removeClass(n.__button,"hover")})):n instanceof M&&(T.addClass(t,"color"),n.updateDisplay=a.compose(function(e){return t.style.borderLeftColor=n.__color.toString(),e},n.updateDisplay),n.updateDisplay());n.setValue=a.compose(function(t){return e.getRoot().__preset_select&&n.isModified()&&Q(e.getRoot(),!0),t},n.setValue)}(e,l,r),e.__controllers.push(r),r}function ne(e,t){return document.location.href+"."+t}function ie(e,t,n){var i=document.createElement("option");i.innerHTML=t,i.value=t,e.__preset_select.appendChild(i),n&&(e.__preset_select.selectedIndex=e.__preset_select.length-1)}function re(e,t){t.style.display=e.useLocalStorage?"block":"none"}function oe(e){var t=void 0;function n(n){return n.preventDefault(),e.width+=t-n.clientX,e.onResize(),t=n.clientX,!1}function i(){T.removeClass(e.__closeButton,J.CLASS_DRAG),T.unbind(window,"mousemove",n),T.unbind(window,"mouseup",i)}function r(r){return r.preventDefault(),t=r.clientX,T.addClass(e.__closeButton,J.CLASS_DRAG),T.bind(window,"mousemove",n),T.bind(window,"mouseup",i),!1}e.__resize_handle=document.createElement("div"),a.extend(e.__resize_handle.style,{width:"6px",marginLeft:"-3px",height:"200px",cursor:"ew-resize",position:"absolute"}),T.bind(e.__resize_handle,"mousedown",r),T.bind(e.__closeButton,"mousedown",r),e.domElement.insertBefore(e.__resize_handle,e.domElement.firstElementChild)}function ae(e,t){e.domElement.style.width=t+"px",e.__save_row&&e.autoPlace&&(e.__save_row.style.width=t+"px"),e.__closeButton&&(e.__closeButton.style.width=t+"px")}function se(e,t){var n={};return a.each(e.__rememberedObjects,function(i,r){var o={},s=e.__rememberedObjectIndecesToControllers[r];a.each(s,function(e,n){o[n]=t?e.initialValue:e.getValue()}),n[r]=o}),n}J.toggleHide=function(){X=!X,a.each(Y,function(e){e.domElement.style.display=X?"none":""})},J.CLASS_AUTO_PLACE="a",J.CLASS_AUTO_PLACE_CONTAINER="ac",J.CLASS_MAIN="main",J.CLASS_CONTROLLER_ROW="cr",J.CLASS_TOO_TALL="taller-than-window",J.CLASS_CLOSED="closed",J.CLASS_CLOSE_BUTTON="close-button",J.CLASS_CLOSE_TOP="close-top",J.CLASS_CLOSE_BOTTOM="close-bottom",J.CLASS_DRAG="drag",J.DEFAULT_WIDTH=245,J.TEXT_CLOSED="Close Controls",J.TEXT_OPEN="Open Controls",J._keydownHandler=function(e){"text"===document.activeElement.type||72!==e.which&&72!==e.keyCode||J.toggleHide()},T.bind(window,"keydown",J._keydownHandler,!1),a.extend(J.prototype,{add:function(e,t){return te(this,e,t,{factoryArgs:Array.prototype.slice.call(arguments,2)})},addColor:function(e,t){return te(this,e,t,{color:!0})},remove:function(e){this.__ul.removeChild(e.__li),this.__controllers.splice(this.__controllers.indexOf(e),1);var t=this;a.defer(function(){t.onResize()})},destroy:function(){if(this.parent)throw new Error("Only the root GUI should be removed with .destroy(). For subfolders, use gui.removeFolder(folder) instead.");this.autoPlace&&q.removeChild(this.domElement);var e=this;a.each(this.__folders,function(t){e.removeFolder(t)}),T.unbind(window,"keydown",J._keydownHandler,!1),Z(this)},addFolder:function(e){if(void 0!==this.__folders[e])throw new Error('You already have a folder in this GUI by the name "'+e+'"');var t={name:e,parent:this};t.autoPlace=this.autoPlace,this.load&&this.load.folders&&this.load.folders[e]&&(t.closed=this.load.folders[e].closed,t.load=this.load.folders[e]);var n=new J(t);this.__folders[e]=n;var i=$(this,n.domElement);return T.addClass(i,"folder"),n},removeFolder:function(e){this.__ul.removeChild(e.domElement.parentElement),delete this.__folders[e.name],this.load&&this.load.folders&&this.load.folders[e.name]&&delete this.load.folders[e.name],Z(e);var t=this;a.each(e.__folders,function(t){e.removeFolder(t)}),a.defer(function(){t.onResize()})},open:function(){this.closed=!1},close:function(){this.closed=!0},hide:function(){this.domElement.style.display="none"},show:function(){this.domElement.style.display=""},onResize:function(){var e=this.getRoot();if(e.scrollable){var t=T.getOffset(e.__ul).top,n=0;a.each(e.__ul.childNodes,function(t){e.autoPlace&&t===e.__save_row||(n+=T.getHeight(t))}),window.innerHeight-t-20<n?(T.addClass(e.domElement,J.CLASS_TOO_TALL),e.__ul.style.height=window.innerHeight-t-20+"px"):(T.removeClass(e.domElement,J.CLASS_TOO_TALL),e.__ul.style.height="auto")}e.__resize_handle&&a.defer(function(){e.__resize_handle.style.height=e.__ul.offsetHeight+"px"}),e.__closeButton&&(e.__closeButton.style.width=e.width+"px")},onResizeDebounced:a.debounce(function(){this.onResize()},50),remember:function(){if(a.isUndefined(G)&&((G=new H).domElement.innerHTML='<div id="dg-save" class="dg dialogue">\n\n Here\'s the new load parameter for your <code>GUI</code>\'s constructor:\n\n <textarea id="dg-new-constructor"></textarea>\n\n <div id="dg-save-locally">\n\n <input id="dg-local-storage" type="checkbox"/> Automatically save\n values to <code>localStorage</code> on exit.\n\n <div id="dg-local-explain">The values saved to <code>localStorage</code> will\n override those passed to <code>dat.GUI</code>\'s constructor. This makes it\n easier to work incrementally, but <code>localStorage</code> is fragile,\n and your friends may not see the same values you do.\n\n </div>\n\n </div>\n\n</div>'),this.parent)throw new Error("You can only call remember on a top level GUI.");var e=this;a.each(Array.prototype.slice.call(arguments),function(t){0===e.__rememberedObjects.length&&function(e){var t=e.__save_row=document.createElement("li");T.addClass(e.domElement,"has-save"),e.__ul.insertBefore(t,e.__ul.firstChild),T.addClass(t,"save-row");var n=document.createElement("span");n.innerHTML="&nbsp;",T.addClass(n,"button gears");var i=document.createElement("span");i.innerHTML="Save",T.addClass(i,"button"),T.addClass(i,"save");var r=document.createElement("span");r.innerHTML="New",T.addClass(r,"button"),T.addClass(r,"save-as");var o=document.createElement("span");o.innerHTML="Revert",T.addClass(o,"button"),T.addClass(o,"revert");var s=e.__preset_select=document.createElement("select");e.load&&e.load.remembered?a.each(e.load.remembered,function(t,n){ie(e,n,n===e.preset)}):ie(e,V,!1);if(T.bind(s,"change",function(){for(var t=0;t<e.__preset_select.length;t++)e.__preset_select[t].innerHTML=e.__preset_select[t].value;e.preset=this.value}),t.appendChild(s),t.appendChild(n),t.appendChild(i),t.appendChild(r),t.appendChild(o),W){var u=document.getElementById("dg-local-explain"),l=document.getElementById("dg-local-storage"),c=document.getElementById("dg-save-locally");c.style.display="block","true"===localStorage.getItem(ne(e,"isLocal"))&&l.setAttribute("checked","checked"),re(e,u),T.bind(l,"change",function(){e.useLocalStorage=!e.useLocalStorage,re(e,u)})}var f=document.getElementById("dg-new-constructor");T.bind(f,"keydown",function(e){!e.metaKey||67!==e.which&&67!==e.keyCode||G.hide()}),T.bind(n,"click",function(){f.innerHTML=JSON.stringify(e.getSaveObject(),void 0,2),G.show(),f.focus(),f.select()}),T.bind(i,"click",function(){e.save()}),T.bind(r,"click",function(){var t=prompt("Enter a new preset name.");t&&e.saveAs(t)}),T.bind(o,"click",function(){e.revert()})}(e),-1===e.__rememberedObjects.indexOf(t)&&e.__rememberedObjects.push(t)}),this.autoPlace&&ae(this,this.width)},getRoot:function(){for(var e=this;e.parent;)e=e.parent;return e},getSaveObject:function(){var e=this.load;return e.closed=this.closed,this.__rememberedObjects.length>0&&(e.preset=this.preset,e.remembered||(e.remembered={}),e.remembered[this.preset]=se(this)),e.folders={},a.each(this.__folders,function(t,n){e.folders[n]=t.getSaveObject()}),e},save:function(){this.load.remembered||(this.load.remembered={}),this.load.remembered[this.preset]=se(this),Q(this,!1),this.saveToLocalStorageIfPossible()},saveAs:function(e){this.load.remembered||(this.load.remembered={},this.load.remembered[V]=se(this,!0)),this.load.remembered[e]=se(this),this.preset=e,ie(this,e,!0),this.saveToLocalStorageIfPossible()},revert:function(e){a.each(this.__controllers,function(t){this.getRoot().load.remembered?ee(e||this.getRoot(),t):t.setValue(t.initialValue),t.__onFinishChange&&t.__onFinishChange.call(t,t.getValue())},this),a.each(this.__folders,function(e){e.revert(e)}),e||Q(this.getRoot(),!1)},listen:function(e){var t=0===this.__listening.length;this.__listening.push(e),t&&function e(t){0!==t.length&&z.call(window,function(){e(t)});a.each(t,function(e){e.updateDisplay()})}(this.__listening)},updateDisplay:function(){a.each(this.__controllers,function(e){e.updateDisplay()}),a.each(this.__folders,function(e){e.updateDisplay()})}});var ue=J},,,,,,,,,,,,,function(e,t,n){"use strict";var i=n(6),r=n.n(i),o=n(7),a="firebasestorage.googleapis.com",s="storageBucket",u=12e4,l=6e4,c=-9007199254740991,f=function(){function e(e,t){this.code_=h(e),this.message_="Firebase Storage: "+t,this.serverResponse_=null,this.name_="FirebaseError"}return e.prototype.codeProp=function(){return this.code},e.prototype.codeEquals=function(e){return h(e)===this.codeProp()},e.prototype.serverResponseProp=function(){return this.serverResponse_},e.prototype.setServerResponseProp=function(e){this.serverResponse_=e},Object.defineProperty(e.prototype,"name",{get:function(){return this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"code",{get:function(){return this.code_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this.message_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!0,configurable:!0}),e}(),d={UNKNOWN:"unknown",OBJECT_NOT_FOUND:"object-not-found",BUCKET_NOT_FOUND:"bucket-not-found",PROJECT_NOT_FOUND:"project-not-found",QUOTA_EXCEEDED:"quota-exceeded",UNAUTHENTICATED:"unauthenticated",UNAUTHORIZED:"unauthorized",RETRY_LIMIT_EXCEEDED:"retry-limit-exceeded",INVALID_CHECKSUM:"invalid-checksum",CANCELED:"canceled",INVALID_EVENT_NAME:"invalid-event-name",INVALID_URL:"invalid-url",INVALID_DEFAULT_BUCKET:"invalid-default-bucket",NO_DEFAULT_BUCKET:"no-default-bucket",CANNOT_SLICE_BLOB:"cannot-slice-blob",SERVER_FILE_WRONG_SIZE:"server-file-wrong-size",NO_DOWNLOAD_URL:"no-download-url",INVALID_ARGUMENT:"invalid-argument",INVALID_ARGUMENT_COUNT:"invalid-argument-count",APP_DELETED:"app-deleted",INVALID_ROOT_OPERATION:"invalid-root-operation",INVALID_FORMAT:"invalid-format",INTERNAL_ERROR:"internal-error"};function h(e){return"storage/"+e}function p(){return new f(d.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function m(){return new f(d.CANCELED,"User canceled the upload/download.")}function b(){return new f(d.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function g(e,t,n){return new f(d.INVALID_ARGUMENT,"Invalid argument in `"+t+"` at index "+e+": "+n)}function v(){return new f(d.APP_DELETED,"The Firebase app was deleted.")}function y(e,t){return new f(d.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function w(e){throw new f(d.INTERNAL_ERROR,"Internal error: "+e)}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var _={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function x(e){switch(e){case _.RAW:case _.BASE64:case _.BASE64URL:case _.DATA_URL:return;default:throw"Expected one of the event types: ["+_.RAW+", "+_.BASE64+", "+_.BASE64URL+", "+_.DATA_URL+"]."}}var k=function(){return function(e,t){this.data=e,this.contentType=t||null}}();function E(e,t){switch(e){case _.RAW:return new k(S(t));case _.BASE64:case _.BASE64URL:return new k(T(e,t));case _.DATA_URL:return new k(function(e){var t=new C(e);return t.base64?T(_.BASE64,t.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(e){throw y(_.DATA_URL,"Malformed data URL.")}return S(t)}(t.rest)}(t),function(e){return new C(e).contentType}(t))}throw p()}function S(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<=127)t.push(i);else if(i<=2047)t.push(192|i>>6,128|63&i);else if(55296==(64512&i))if(n<e.length-1&&56320==(64512&e.charCodeAt(n+1)))i=65536|(1023&i)<<10|1023&e.charCodeAt(++n),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i);else t.push(239,191,189);else 56320==(64512&i)?t.push(239,191,189):t.push(224|i>>12,128|i>>6&63,128|63&i)}return new Uint8Array(t)}function T(e,t){switch(e){case _.BASE64:var n=-1!==t.indexOf("-"),i=-1!==t.indexOf("_");if(n||i)throw y(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case _.BASE64URL:var r=-1!==t.indexOf("+"),o=-1!==t.indexOf("/");if(r||o)throw y(e,"Invalid character '"+(r?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(t)}catch(t){throw y(e,"Invalid character found")}for(var s=new Uint8Array(a.length),u=0;u<a.length;u++)s[u]=a.charCodeAt(u);return s}var C=function(){return function(e){this.base64=!1,this.contentType=null;var t=e.match(/^data:([^,]+)?,/);if(null===t)throw y(_.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=t[1]||null;null!=n&&(this.base64=(i=n,r=";base64",i.length>=r.length&&i.substring(i.length-r.length)===r),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=e.substring(e.indexOf(",")+1);var i,r;
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/}}();var A,I={STATE_CHANGED:"state_changed"},O={RUNNING:"running",PAUSING:"pausing",PAUSED:"paused",SUCCESS:"success",CANCELING:"canceling",CANCELED:"canceled",ERROR:"error"},N={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function P(e){switch(e){case O.RUNNING:case O.PAUSING:case O.CANCELING:return N.RUNNING;case O.PAUSED:return N.PAUSED;case O.SUCCESS:return N.SUCCESS;case O.CANCELED:return N.CANCELED;case O.ERROR:default:return N.ERROR}}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function D(e,t){for(var n in e)R(e,n)&&t(n,e[n])}function L(e){if(null==e)return{};var t={};return D(e,function(e,n){t[e]=n}),t}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function M(e){return new Promise(e)}function j(e){return Promise.resolve(e)}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
function U(e){return null!=e}function F(e){return void 0!==e}function B(e){return"function"==typeof e}function z(e){return"object"==typeof e}function H(e){return z(e)&&null!==e}function V(e){return"string"==typeof e||e instanceof String}function W(e){return G(e)&&Number.isInteger(e)}function G(e){return"number"==typeof e||e instanceof Number}function K(e){return q()&&e instanceof Blob}function q(){return"undefined"!=typeof Blob}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(A||(A={}));
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var X=function(){function e(){var e=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=A.NO_ERROR,this.sendPromise_=M(function(t,n){e.xhr_.addEventListener("abort",function(n){e.errorCode_=A.ABORT,t(e)}),e.xhr_.addEventListener("error",function(n){e.errorCode_=A.NETWORK_ERROR,t(e)}),e.xhr_.addEventListener("load",function(n){t(e)})})}return e.prototype.send=function(e,t,n,i){var r=this;if(this.sent_)throw w("cannot .send() more than once");(this.sent_=!0,this.xhr_.open(t,e,!0),U(i))&&D(i,function(e,t){r.xhr_.setRequestHeader(e,t.toString())});return U(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},e.prototype.getErrorCode=function(){if(!this.sent_)throw w("cannot .getErrorCode() before sending");return this.errorCode_},e.prototype.getStatus=function(){if(!this.sent_)throw w("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}},e.prototype.getResponseText=function(){if(!this.sent_)throw w("cannot .getResponseText() before sending");return this.xhr_.responseText},e.prototype.abort=function(){this.xhr_.abort()},e.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},e.prototype.addUploadProgressListener=function(e){U(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",e)},e.prototype.removeUploadProgressListener=function(e){U(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",e)},e}(),Y=function(){function e(){}return e.prototype.createXhrIo=function(){return new X},e}();
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
function J(e){var t,n;try{t=JSON.parse(e)}catch(e){return null}return z(n=t)&&!Array.isArray(n)?t:null}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var $=function(){function e(e,t){this.bucket=e,this.path_=t}return Object.defineProperty(e.prototype,"path",{get:function(){return this.path_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!0,configurable:!0}),e.prototype.fullServerUrl=function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)},e.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},e.makeFromBucketSpec=function(t){var n,i;try{n=e.makeFromUrl(t)}catch(n){return new e(t,"")}if(""===n.path)return n;throw i=t,new f(d.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+i+"'.")},e.makeFromUrl=function(t){var n=null;var i=new RegExp("^gs://([A-Za-z0-9.\\-_]+)(/(.*))?$","i");for(var r=a.replace(/[.]/g,"\\."),o=[{regex:i,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+r+"/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-_]+)/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:function(e){e.path_=decodeURIComponent(e.path)}}],s=0;s<o.length;s++){var u=o[s],l=u.regex.exec(t);if(l){var c=l[u.indices.bucket],h=l[u.indices.path];h||(h=""),n=new e(c,h),u.postModify(n);break}}if(null==n)throw function(e){return new f(d.INVALID_URL,"Invalid URL '"+e+"'.")}(t);return n},e}();
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Z(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Q(e){return"https://"+a+"/v0"+e}function ee(e){var t=encodeURIComponent,n="?";return D(e,function(e,i){var r=t(e)+"="+t(i);n=n+r+"&"}),n=n.slice(0,-1)}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function te(e,t){return t}var ne=function(){return function(e,t,n,i){this.server=e,this.local=t||e,this.writable=!!n,this.xform=i||te}}(),ie=null;function re(){if(ie)return ie;var e=[];e.push(new ne("bucket")),e.push(new ne("generation")),e.push(new ne("metageneration")),e.push(new ne("name","fullPath",!0));var t=new ne("name");t.xform=function(e,t){return function(e){return!V(e)||e.length<2?e:Z(e=e)}(t)},e.push(t);var n=new ne("size");return n.xform=function(e,t){return U(t)?+t:t},e.push(n),e.push(new ne("timeCreated")),e.push(new ne("updated")),e.push(new ne("md5Hash",null,!0)),e.push(new ne("cacheControl",null,!0)),e.push(new ne("contentDisposition",null,!0)),e.push(new ne("contentEncoding",null,!0)),e.push(new ne("contentLanguage",null,!0)),e.push(new ne("contentType",null,!0)),e.push(new ne("metadata","customMetadata",!0)),ie=e}function oe(e,t,n){for(var i={type:"file"},r=n.length,o=0;o<r;o++){var a=n[o];i[a.local]=a.xform(i,t[a.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){var n=e.bucket,i=e.fullPath,r=new $(n,i);return t.makeStorageReference(r)}})}(i,e),i}function ae(e,t,n){var i=J(t);return null===i?null:oe(e,i,n)}function se(e,t){for(var n={},i=t.length,r=0;r<i;r++){var o=t[r];o.writable&&(n[o.server]=e[o.local])}return JSON.stringify(n)}function ue(e){if(!(e&&z(e)))throw"Expected Metadata object.";for(var t in e){var n=e[t];if("customMetadata"===t){if(!z(n))throw"Expected object for 'customMetadata' mapping."}else if(H(n))throw"Mapping for '"+t+"' cannot be an object."}}
/**
* @license
* Copyright 2019 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var le="maxResults",ce=1e3,fe="pageToken",de="prefixes",he="items";function pe(e,t){var n={prefixes:[],items:[],nextPageToken:t.nextPageToken},i=e.bucket();if(null===i)throw new f(d.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+s+"' property when initializing the app?");if(t[de])for(var r=0,o=t[de];r<o.length;r++){var a=o[r].replace(/\/$/,""),u=e.makeStorageReference(new $(i,a));n.prefixes.push(u)}if(t[he])for(var l=0,c=t[he];l<c.length;l++){var h=c[l];u=e.makeStorageReference(new $(i,h.name));n.items.push(u)}return n}function me(e){if(!(e&&z(e)))throw"Expected ListOptions object.";for(var t in e)if(t===le){if(!W(e[le])||e[le]<=0)throw"Expected maxResults to be a positive number.";if(e[le]>1e3)throw"Expected maxResults to be less than or equal to "+ce+"."}else{if(t!==fe)throw"Unknown option: "+t;if(e[fe]&&!V(e[fe]))throw"Expected pageToken to be string."}}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function be(e,t,n){for(var i=t.length,r=t.length,o=0;o<t.length;o++)if(t[o].optional){i=o;break}var a,s,u,l,c,h;if(!(i<=n.length&&n.length<=r))throw a=i,s=r,u=e,l=n.length,a===s?(c=a,h=1===a?"argument":"arguments"):(c="between "+a+" and "+s,h="arguments"),new f(d.INVALID_ARGUMENT_COUNT,"Invalid argument count in `"+u+"`: Expected "+c+" "+h+", received "+l+".");for(o=0;o<n.length;o++)try{t[o].validator(n[o])}catch(t){throw t instanceof Error?g(o,e,t.message):g(o,e,t)}}var ge=function(){return function(e,t){var n=this;this.validator=function(t){n.optional&&!F(t)||e(t)},this.optional=!!t}}();function ve(e,t){function n(e){if(!V(e))throw"Expected string."}var i,r,o;return e?(r=n,o=e,i=function(e){r(e),o(e)}):i=n,new ge(i,t)}function ye(){return new ge(function(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||q()&&e instanceof Blob))throw"Expected Blob or File."})}function we(e){return new ge(ue,e)}function _e(){return new ge(function(e){if(!(G(e)&&e>=0))throw"Expected a number 0 or greater."})}function xe(e,t){return new ge(function(t){if(!(null===t||U(t)&&t instanceof Object))throw"Expected an Object.";null!=e&&e(t)},t)}function ke(e){return new ge(function(e){if(null!==e&&!B(e))throw"Expected a Function."},e)}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Ee(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var Se=function(){function e(e,t){var n=0,i="";K(e)?(this.data_=e,n=e.size,i=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=i}return e.prototype.size=function(){return this.size_},e.prototype.type=function(){return this.type_},e.prototype.slice=function(t,n){if(K(this.data_)){var i=this.data_,r=(a=t,s=n,(o=i).webkitSlice?o.webkitSlice(a,s):o.mozSlice?o.mozSlice(a,s):o.slice?o.slice(a,s):null);return null===r?null:new e(r)}var o,a,s;return new e(new Uint8Array(this.data_.buffer,t,n-t),!0)},e.getBlob=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(q()){var i=t.map(function(t){return t instanceof e?t.data_:t});return new e(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ee();if(void 0!==n){for(var i=new n,r=0;r<e.length;r++)i.append(e[r]);return i.getBlob()}if(q())return new Blob(e);throw Error("This browser doesn't seem to support creating Blobs")}.apply(null,i))}var r=t.map(function(e){return V(e)?E(_.RAW,e).data:e.data_}),o=0;r.forEach(function(e){o+=e.byteLength});var a=new Uint8Array(o),s=0;return r.forEach(function(e){for(var t=0;t<e.length;t++)a[s++]=e[t]}),new e(a,!0)},e.prototype.uploadData=function(){return this.data_},e}();
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Te(e,t){return-1!==e.indexOf(t)}var Ce=function(){return function(e,t,n,i){this.url=e,this.method=t,this.handler=n,this.timeout=i,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}();
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/function Ae(e){if(!e)throw p()}function Ie(e,t){return function(n,i){var r=ae(e,i,t);return Ae(null!==r),r}}function Oe(e){return function(t,n){var i=function(e,t){var n=J(t);return null===n?null:pe(e,n)}(e,n);return Ae(null!==i),i}}function Ne(e,t){return function(n,i){var r=ae(e,i,t);return Ae(null!==r),function(e,t){var n=J(t);if(null===n)return null;if(!V(n.downloadTokens))return null;var i=n.downloadTokens;if(0===i.length)return null;var r=encodeURIComponent;return i.split(",").map(function(t){var n=e.bucket,i=e.fullPath;return Q("/b/"+r(n)+"/o/"+r(i))+ee({alt:"media",token:t})})[0]}(r,i)}}function Pe(e){return function(t,n){var i,r,o;return 401===t.getStatus()?i=new f(d.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(o=e.bucket,i=new f(d.QUOTA_EXCEEDED,"Quota for bucket '"+o+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(r=e.path,i=new f(d.UNAUTHORIZED,"User does not have permission to access '"+r+"'.")):i=n,i.setServerResponseProp(n.serverResponseProp()),i}}function Re(e){var t=Pe(e);return function(n,i){var r,o=t(n,i);return 404===n.getStatus()&&(r=e.path,o=new f(d.OBJECT_NOT_FOUND,"Object '"+r+"' does not exist.")),o.setServerResponseProp(i.serverResponseProp()),o}}function De(e,t,n){var i=Q(t.fullServerUrl()),r=e.maxOperationRetryTime(),o=new Ce(i,"GET",Ie(e,n),r);return o.errorHandler=Re(t),o}function Le(e,t,n){var i=L(n);return i.fullPath=e.path,i.size=t.size(),i.contentType||(i.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),i}var Me=function(){return function(e,t,n,i){this.current=e,this.total=t,this.finalized=!!n,this.metadata=i||null}}();function je(e,t){var n;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(e){Ae(!1)}return Ae(Te(t||["active"],n)),n}function Ue(e,t,n,i,r,o,a,s){var u=new Me(0,0);if(a?(u.current=a.current,u.total=a.total):(u.current=0,u.total=i.size()),i.size()!==u.total)throw new f(d.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.");var l=u.total-u.current,c=l;r>0&&(c=Math.min(c,r));var h=u.current,p=h+c,m={"X-Goog-Upload-Command":c===l?"upload, finalize":"upload","X-Goog-Upload-Offset":u.current},g=i.slice(h,p);if(null===g)throw b();var v=t.maxUploadRetryTime(),y=new Ce(n,"POST",function(e,n){var r,a=je(e,["active","final"]),s=u.current+c,l=i.size();return r="final"===a?Ie(t,o)(e,n):null,new Me(s,l,"final"===a,r)},v);return y.headers=m,y.body=g.uploadData(),y.progressCallback=s||null,y.errorHandler=Pe(e),y}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Fe=function(){return function(e,t,n){if(B(e)||U(t)||U(n))this.next=e,this.error=t||null,this.complete=n||null;else{var i=e;this.next=i.next||null,this.error=i.error||null,this.complete=i.complete||null}}}(),Be=function(){return function(e,t,n,i,r,o){this.bytesTransferred=e,this.totalBytes=t,this.state=n,this.metadata=i,this.task=r,this.ref=o}}();
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
function ze(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];j(!0).then(function(){e.apply(null,t)})}}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var He=function(){function e(e,t,n,i,r,o){var a=this;void 0===o&&(o=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=e,this.authWrapper_=t,this.location_=n,this.blob_=r,this.metadata_=o,this.mappings_=i,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_=O.RUNNING,this.errorHandler_=function(e){a.request_=null,a.chunkMultiplier_=1,e.codeEquals(d.CANCELED)?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=e,a.transition_(O.ERROR))},this.metadataErrorHandler_=function(e){a.request_=null,e.codeEquals(d.CANCELED)?a.completeTransitions_():(a.error_=e,a.transition_(O.ERROR))},this.promise_=M(function(e,t){a.resolve_=e,a.reject_=t,a.start_()}),this.promise_.then(null,function(){})}return e.prototype.makeProgressCallback_=function(){var e=this,t=this.transferred_;return function(n,i){e.updateProgress_(t+n)}},e.prototype.shouldDoResumable_=function(e){return e.size()>262144},e.prototype.start_=function(){this.state_===O.RUNNING&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},e.prototype.resolveToken_=function(e){var t=this;this.authWrapper_.getAuthToken().then(function(n){switch(t.state_){case O.RUNNING:e(n);break;case O.CANCELING:t.transition_(O.CANCELED);break;case O.PAUSING:t.transition_(O.PAUSED)}})},e.prototype.createResumable_=function(){var e=this;this.resolveToken_(function(t){var n=function(e,t,n,i,r){var o=t.bucketOnlyServerUrl(),a=Le(t,i,r),s={name:a.fullPath},u=Q(o),l={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":i.size(),"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},c=se(a,n),f=e.maxUploadRetryTime(),d=new Ce(u,"POST",function(e,t){var n;je(e);try{n=e.getResponseHeader("X-Goog-Upload-URL")}catch(e){Ae(!1)}return Ae(V(n)),n},f);return d.urlParams=s,d.headers=l,d.body=c,d.errorHandler=Pe(t),d}(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),i=e.authWrapper_.makeRequest(n,t);e.request_=i,i.getPromise().then(function(t){e.request_=null,e.uploadUrl_=t,e.needToFetchStatus_=!1,e.completeTransitions_()},e.errorHandler_)})},e.prototype.fetchStatus_=function(){var e=this,t=this.uploadUrl_;this.resolveToken_(function(n){var i=function(e,t,n,i){var r=e.maxUploadRetryTime(),o=new Ce(n,"POST",function(e,t){var n,r=je(e,["active","final"]);try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(e){Ae(!1)}var o=parseInt(n,10);return Ae(!isNaN(o)),new Me(o,i.size(),"final"===r)},r);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=Pe(t),o}(e.authWrapper_,e.location_,t,e.blob_),r=e.authWrapper_.makeRequest(i,n);e.request_=r,r.getPromise().then(function(t){t=t,e.request_=null,e.updateProgress_(t.current),e.needToFetchStatus_=!1,t.finalized&&(e.needToFetchMetadata_=!0),e.completeTransitions_()},e.errorHandler_)})},e.prototype.continueUpload_=function(){var e=this,t=262144*this.chunkMultiplier_,n=new Me(this.transferred_,this.blob_.size()),i=this.uploadUrl_;this.resolveToken_(function(r){var o;try{o=Ue(e.location_,e.authWrapper_,i,e.blob_,t,e.mappings_,n,e.makeProgressCallback_())}catch(t){return e.error_=t,void e.transition_(O.ERROR)}var a=e.authWrapper_.makeRequest(o,r);e.request_=a,a.getPromise().then(function(t){e.increaseMultiplier_(),e.request_=null,e.updateProgress_(t.current),t.finalized?(e.metadata_=t.metadata,e.transition_(O.SUCCESS)):e.completeTransitions_()},e.errorHandler_)})},e.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},e.prototype.fetchMetadata_=function(){var e=this;this.resolveToken_(function(t){var n=De(e.authWrapper_,e.location_,e.mappings_),i=e.authWrapper_.makeRequest(n,t);e.request_=i,i.getPromise().then(function(t){e.request_=null,e.metadata_=t,e.transition_(O.SUCCESS)},e.metadataErrorHandler_)})},e.prototype.oneShotUpload_=function(){var e=this;this.resolveToken_(function(t){var n=function(e,t,n,i,r){var o=t.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();a["Content-Type"]="multipart/related; boundary="+s;var u=Le(t,i,r),l="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+se(u,n)+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",c="\r\n--"+s+"--",f=Se.getBlob(l,i,c);if(null===f)throw b();var d={name:u.fullPath},h=Q(o),p=e.maxUploadRetryTime(),m=new Ce(h,"POST",Ie(e,n),p);return m.urlParams=d,m.headers=a,m.body=f.uploadData(),m.errorHandler=Pe(t),m}(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),i=e.authWrapper_.makeRequest(n,t);e.request_=i,i.getPromise().then(function(t){e.request_=null,e.metadata_=t,e.updateProgress_(e.blob_.size()),e.transition_(O.SUCCESS)},e.errorHandler_)})},e.prototype.updateProgress_=function(e){var t=this.transferred_;this.transferred_=e,this.transferred_!==t&&this.notifyObservers_()},e.prototype.transition_=function(e){if(this.state_!==e)switch(e){case O.CANCELING:case O.PAUSING:this.state_=e,null!==this.request_&&this.request_.cancel();break;case O.RUNNING:var t=this.state_===O.PAUSED;this.state_=e,t&&(this.notifyObservers_(),this.start_());break;case O.PAUSED:this.state_=e,this.notifyObservers_();break;case O.CANCELED:this.error_=m(),this.state_=e,this.notifyObservers_();break;case O.ERROR:case O.SUCCESS:this.state_=e,this.notifyObservers_()}},e.prototype.completeTransitions_=function(){switch(this.state_){case O.PAUSING:this.transition_(O.PAUSED);break;case O.CANCELING:this.transition_(O.CANCELED);break;case O.RUNNING:this.start_()}},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e=P(this.state_);return new Be(this.transferred_,this.blob_.size(),e,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),e.prototype.on=function(e,t,n,i){var r="Expected a function or an Object with one of `next`, `error`, `complete` properties.",o=ke(!0).validator,a=xe(null,!0).validator;function s(e){try{return void o(e)}catch(e){}try{if(a(e),!(F(e.next)||F(e.error)||F(e.complete)))throw"";return}catch(e){throw r}}be("on",[ve(function(t){if(e!==I.STATE_CHANGED)throw"Expected one of the event types: ["+I.STATE_CHANGED+"]."}),xe(s,!0),ke(!0),ke(!0)],arguments);var u=this;function l(e){return function(t,n,r){null!==e&&be("on",e,arguments);var o=new Fe(t,n,i);return u.addObserver_(o),function(){u.removeObserver_(o)}}}var c=[xe(function(e){if(null===e)throw r;s(e)}),ke(!0),ke(!0)];return!(F(t)||F(n)||F(i))?l(c):l(null)(t,n,i)},e.prototype.then=function(e,t){return this.promise_.then(e,t)},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.addObserver_=function(e){this.observers_.push(e),this.notifyObserver_(e)},e.prototype.removeObserver_=function(e){var t,n,i;t=this.observers_,n=e,-1!==(i=t.indexOf(n))&&t.splice(i,1)},e.prototype.notifyObservers_=function(){var e,t=this;this.finishPromise_(),(e=this.observers_,Array.prototype.slice.call(e)).forEach(function(e){t.notifyObserver_(e)})},e.prototype.finishPromise_=function(){if(null!==this.resolve_){var e=!0;switch(P(this.state_)){case N.SUCCESS:ze(this.resolve_.bind(null,this.snapshot))();break;case N.CANCELED:case N.ERROR:ze(this.reject_.bind(null,this.error_))();break;default:e=!1}e&&(this.resolve_=null,this.reject_=null)}},e.prototype.notifyObserver_=function(e){switch(P(this.state_)){case N.RUNNING:case N.PAUSED:e.next&&ze(e.next.bind(e,this.snapshot))();break;case N.SUCCESS:e.complete&&ze(e.complete.bind(e))();break;case N.CANCELED:case N.ERROR:e.error&&ze(e.error.bind(e,this.error_))();break;default:e.error&&ze(e.error.bind(e,this.error_))()}},e.prototype.resume=function(){be("resume",[],arguments);var e=this.state_===O.PAUSED||this.state_===O.PAUSING;return e&&this.transition_(O.RUNNING),e},e.prototype.pause=function(){be("pause",[],arguments);var e=this.state_===O.RUNNING;return e&&this.transition_(O.PAUSING),e},e.prototype.cancel=function(){be("cancel",[],arguments);var e=this.state_===O.RUNNING||this.state_===O.PAUSING;return e&&this.transition_(O.CANCELING),e},e}(),Ve=function(){function e(e,t){this.authWrapper=e,this.location=t instanceof $?t:$.makeFromUrl(t)}return e.prototype.toString=function(){return be("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},e.prototype.newRef=function(t,n){return new e(t,n)},e.prototype.mappings=function(){return re()},e.prototype.child=function(e){be("child",[ve()],arguments);var t=function(e,t){var n=t.split("/").filter(function(e){return e.length>0}).join("/");return 0===e.length?n:e+"/"+n}(this.location.path,e),n=new $(this.location.bucket,t);return this.newRef(this.authWrapper,n)},Object.defineProperty(e.prototype,"parent",{get:function(){var e=function(e){if(0==e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this.location.path);if(null===e)return null;var t=new $(this.location.bucket,e);return this.newRef(this.authWrapper,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var e=new $(this.location.bucket,"");return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return Z(this.location.path)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"storage",{get:function(){return this.authWrapper.service()},enumerable:!0,configurable:!0}),e.prototype.put=function(e,t){return void 0===t&&(t=null),be("put",[ye(),we(!0)],arguments),this.throwIfRoot_("put"),new He(this,this.authWrapper,this.location,this.mappings(),new Se(e),t)},e.prototype.putString=function(e,t,n){void 0===t&&(t=_.RAW),be("putString",[ve(),ve(x,!0),we(!0)],arguments),this.throwIfRoot_("putString");var i=E(t,e),r=L(n);return!U(r.contentType)&&U(i.contentType)&&(r.contentType=i.contentType),new He(this,this.authWrapper,this.location,this.mappings(),new Se(i.data,!0),r)},e.prototype.delete=function(){be("delete",[],arguments),this.throwIfRoot_("delete");var e=this;return this.authWrapper.getAuthToken().then(function(t){var n=function(e,t){var n=Q(t.fullServerUrl()),i=e.maxOperationRetryTime(),r=new Ce(n,"DELETE",function(e,t){},i);return r.successCodes=[200,204],r.errorHandler=Re(t),r}(e.authWrapper,e.location);return e.authWrapper.makeRequest(n,t).getPromise()})},e.prototype.listAll=function(){be("listAll",[],arguments);var e={prefixes:[],items:[]};return this.listAllHelper(e).then(function(){return e})},e.prototype.listAllHelper=function(e,t){return Object(o.__awaiter)(this,void 0,void 0,function(){var n,i,r,a;return Object(o.__generator)(this,function(o){switch(o.label){case 0:return r={pageToken:t},[4,this.list(r)];case 1:return a=o.sent(),(n=e.prefixes).push.apply(n,a.prefixes),(i=e.items).push.apply(i,a.items),null==a.nextPageToken?[3,3]:[4,this.listAllHelper(e,a.nextPageToken)];case 2:o.sent(),o.label=3;case 3:return[2]}})})},e.prototype.list=function(e){var t;be("list",[(t=!0,new ge(me,t))],arguments);var n=this;return this.authWrapper.getAuthToken().then(function(t){var i=e||{},r=function(e,t,n,i,r){var o={};t.isRoot?o.prefix="":o.prefix=t.path+"/",n&&n.length>0&&(o.delimiter=n),i&&(o.pageToken=i),r&&(o.maxResults=r);var a=Q(t.bucketOnlyServerUrl()),s=e.maxOperationRetryTime(),u=new Ce(a,"GET",Oe(e),s);return u.urlParams=o,u.errorHandler=Pe(t),u}(n.authWrapper,n.location,"/",i.pageToken,i.maxResults);return n.authWrapper.makeRequest(r,t).getPromise()})},e.prototype.getMetadata=function(){be("getMetadata",[],arguments),this.throwIfRoot_("getMetadata");var e=this;return this.authWrapper.getAuthToken().then(function(t){var n=De(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise()})},e.prototype.updateMetadata=function(e){be("updateMetadata",[we()],arguments),this.throwIfRoot_("updateMetadata");var t=this;return this.authWrapper.getAuthToken().then(function(n){var i=function(e,t,n,i){var r=Q(t.fullServerUrl()),o=se(n,i),a=e.maxOperationRetryTime(),s=new Ce(r,"PATCH",Ie(e,i),a);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=o,s.errorHandler=Re(t),s}(t.authWrapper,t.location,e,t.mappings());return t.authWrapper.makeRequest(i,n).getPromise()})},e.prototype.getDownloadURL=function(){be("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL");var e=this;return this.authWrapper.getAuthToken().then(function(t){var n=function(e,t,n){var i=Q(t.fullServerUrl()),r=e.maxOperationRetryTime(),o=new Ce(i,"GET",Ne(e,n),r);return o.errorHandler=Re(t),o}(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise().then(function(e){if(null===e)throw new f(d.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e})})},e.prototype.throwIfRoot_=function(e){if(""===this.location.path)throw function(e){return new f(d.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)},e}(),We=function(){function e(e){this.promise_=function(e){return Promise.reject(e)}(e)}return e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){void 0===e&&(e=!1)},e}(),Ge=function(){function e(){this.map_={},this.id_=c}return e.prototype.addRequest=function(e){var t=this.id_;this.id_++,this.map_[t]=e;var n=this;function i(){delete n.map_[t]}e.getPromise().then(i,i)},e.prototype.clear=function(){D(this.map_,function(e,t){t&&t.cancel(!0)}),this.map_={}},e}(),Ke=function(){function e(t,n,i,r,o){if(this.bucket_=null,this.deleted_=!1,this.app_=t,null!==this.app_){var a=this.app_.options;U(a)&&(this.bucket_=e.extractBucket_(a))}this.storageRefMaker_=n,this.requestMaker_=i,this.pool_=o,this.service_=r,this.maxOperationRetryTime_=u,this.maxUploadRetryTime_=l,this.requestMap_=new Ge}return e.extractBucket_=function(e){var t=e[s]||null;return null==t?null:$.makeFromBucketSpec(t).bucket},e.prototype.getAuthToken=function(){return null!==this.app_&&U(this.app_.INTERNAL)&&U(this.app_.INTERNAL.getToken)?this.app_.INTERNAL.getToken().then(function(e){return null!==e?e.accessToken:null},function(e){return null}):j(null)},e.prototype.bucket=function(){if(this.deleted_)throw v();return this.bucket_},e.prototype.service=function(){return this.service_},e.prototype.makeStorageReference=function(e){return this.storageRefMaker_(this,e)},e.prototype.makeRequest=function(e,t){if(this.deleted_)return new We(v());var n=this.requestMaker_(e,t,this.pool_);return this.requestMap_.addRequest(n),n},e.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requestMap_.clear()},e.prototype.maxUploadRetryTime=function(){return this.maxUploadRetryTime_},e.prototype.setMaxUploadRetryTime=function(e){this.maxUploadRetryTime_=e},e.prototype.maxOperationRetryTime=function(){return this.maxOperationRetryTime_},e.prototype.setMaxOperationRetryTime=function(e){this.maxOperationRetryTime_=e},e}();
/**
* @license
* Copyright 2019 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var qe=function(){function e(e,t,n,i,r,o,a,s,u,l,c){this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=e,this.method_=t,this.headers_=n,this.body_=i,this.successCodes_=r.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=l,this.timeout_=u,this.pool_=c;var f=this;this.promise_=M(function(e,t){f.resolve_=e,f.reject_=t,f.start_()})}return e.prototype.start_=function(){var e=this;function t(t,n){var i,r=e.resolve_,o=e.reject_,a=n.xhr;if(n.wasSuccessCode)try{var s=e.callback_(a,a.getResponseText());F(s)?r(s):r()}catch(e){o(e)}else null!==a?((i=p()).setServerResponseProp(a.getResponseText()),e.errorCallback_?o(e.errorCallback_(a,i)):o(i)):n.canceled?o(i=e.appDelete_?v():m()):o(i=new f(d.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again."))}this.canceled_?t(0,new Xe(!1,null,!0)):this.backoffId_=
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
function(e,t,n){var i=1,r=null,o=!1,a=0;function s(){return 2===a}var u=!1;function l(){u||(u=!0,t.apply(null,arguments))}function c(t){r=setTimeout(function(){r=null,e(f,s())},t)}function f(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];u||(e?l.apply(null,arguments):s()||o?l.apply(null,arguments):(i<64&&(i*=2),1===a?(a=2,t=0):t=1e3*(i+Math.random()),c(t)))}var d=!1;function h(e){d||(d=!0,u||(null!==r?(e||(a=2),clearTimeout(r),c(0)):e||(a=1)))}return c(0),setTimeout(function(){o=!0,h(!0)},n),h}(function(t,n){if(n)t(!1,new Xe(!1,null,!0));else{var i=e.pool_.createXhrIo();e.pendingXhr_=i,null!==e.progressCallback_&&i.addUploadProgressListener(r),i.send(e.url_,e.method_,e.body_,e.headers_).then(function(n){null!==e.progressCallback_&&n.removeUploadProgressListener(r),e.pendingXhr_=null;var i=(n=n).getErrorCode()===A.NO_ERROR,o=n.getStatus();if(i&&!e.isRetryStatusCode_(o)){var a=Te(e.successCodes_,o);t(!0,new Xe(a,n))}else{var s=n.getErrorCode()===A.ABORT;t(!1,new Xe(!1,null,s))}})}function r(t){var n=t.loaded,i=t.lengthComputable?t.total:-1;null!==e.progressCallback_&&e.progressCallback_(n,i)}},t,this.timeout_)},e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},e.prototype.isRetryStatusCode_=function(e){var t=e>=500&&e<600,n=Te([408,429],e),i=Te(this.additionalRetryCodes_,e);return t||n||i},e}(),Xe=function(){return function(e,t,n){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!n}}();function Ye(e,t,n){var i=ee(e.urlParams),o=e.url+i,a=L(e.headers);return function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(a,t),function(e){var t=void 0!==r.a?r.a.SDK_VERSION:"AppManager";e["X-Firebase-Storage-Version"]="webjs/"+t}(a),new qe(o,e.method,a,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,n)}
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Je,$e,Ze=function(){function e(e,t,n){if(this.bucket_=null,this.authWrapper_=new Ke(e,function(e,t){return new Ve(e,t)},Ye,this,t),this.app_=e,null!=n)this.bucket_=$.makeFromBucketSpec(n);else{var i=this.authWrapper_.bucket();null!=i&&(this.bucket_=new $(i,""))}this.internals_=new Qe(this)}return e.prototype.ref=function(e){if(be("ref",[ve(function(e){if(/^[A-Za-z]+:\/\//.test(e))throw"Expected child path but got a URL, use refFromURL instead."},!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var t=new Ve(this.authWrapper_,this.bucket_);return null!=e?t.child(e):t},e.prototype.refFromURL=function(e){return be("refFromURL",[ve(function(e){if(!/^[A-Za-z]+:\/\//.test(e))throw"Expected full URL but got a child path, use ref instead.";try{$.makeFromUrl(e)}catch(e){throw"Expected valid full URL but got an invalid one."}},!1)],arguments),new Ve(this.authWrapper_,e)},Object.defineProperty(e.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),e.prototype.setMaxUploadRetryTime=function(e){be("setMaxUploadRetryTime",[_e()],arguments),this.authWrapper_.setMaxUploadRetryTime(e)},e.prototype.setMaxOperationRetryTime=function(e){be("setMaxOperationRetryTime",[_e()],arguments),this.authWrapper_.setMaxOperationRetryTime(e)},Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!0,configurable:!0}),e}(),Qe=function(){function e(e){this.service_=e}return e.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),j(void 0)},e}(),et="storage";function tt(e,t,n){return new Ze(e,new Y,n)}Je=r.a,$e={TaskState:N,TaskEvent:I,StringFormat:_,Storage:Ze,Reference:Ve},Je.INTERNAL.registerService(et,tt,$e,void 0,!0)}]]);
//# sourceMappingURL=1.ff6acf5ba628effc9c16.js.map