vendor: 5,190 bytes, lines 1-2
1/*! For license information please see d0c7ac96-a299b89ea439fec597f9.js.LICENSE.txt */ 2"use strict";(self.webpackChunkhusky_site=self.webpackChunkhusky_site||[]).push([[972],{53164:function(e,t,n){n.d(t,{r:function(){return _s}});var r=n(74848),i=n(35863),o=n(77207),a=n(71156),s=n(32485),u=n.n(s),c=n(96540);function h(e){return 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},h(e)}function l(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(P){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw o;return R()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?v:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=v,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=c;var f="suspendedStart",p="suspendedYield",d="executing",v="completed",g={};function y(){}function m(){}function b(){}var k={};u(k,o,function(){return this});var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,o)&&(k=_);var x=b.prototype=y.prototype=Object.create(k);function E(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"===h(f)&&r.call(f,"__await")?t.resolve(f.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(f).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,s)})}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t(function(t,i){n(e,r,t,i)})}return i=i?i.then(o,o):o()}}function T(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function O(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:t,done:!0}}return m.prototype=b,u(x,"constructor",b),u(b,"constructor",m),m.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},E(S.prototype),u(S.prototype,a,function(){return this}),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},E(x),u(x,s,"Generator"),u(x,o,function(){return this}),u(x,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
2h(A),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===("undefined"==typeof globalThis?"undefined":h(globalThis))?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function p(e){return p="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(e)}var d="object"==p(f)&&f&&f.Object===Object&&f,v="object"==("undefined"==typeof self?"undefined":p(self))&&self&&self.Object===Object&&self,g=(d||v||Function("return this")()).Symbol;g&&g.toStringTag;g&&g.toStringTag;var y=g?g.prototype:void 0;y&&y.toString;function m(e){return m="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},m(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e){var t=E();return function(){var n,r=T(e);if(t){var i=T(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}(this,n)}}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){var t="function"==typeof Map?new Map:void 0;return _=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return x(e,arguments,T(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),S(r,e)},_(e)}function x(e,t,n){return x=E()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&S(i,n.prototype),i},x.apply(null,arguments)}
2function E(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}Error;var I="0-9ï¼-ï¼Ù -Ù©Û°-Û¹",A="".concat("-â-ââã¼ï¼").concat("ï¼/").concat("ï¼.").concat("  Âââ ã").concat("()ï¼ï¼ï¼»ï¼½\\[\\]").concat("~ââ¼ï½");var C=function(e){return"([".concat(I,"]{1,").concat(e,"})")};function O(e){var t="[  \\t,]*",n="[:\\.ï¼]?[  \\t,-]*",r="#?",i="[  \\t]*";return";ext="+C("20")+"|"+(t+"(?:e?xt(?:ensi(?:oÌ?|ó))?n?|ï½
?ï½ï½ï½?|доб|anexo)"+n+C("20")+r)+"|"+(t+"(?:[xï½#ï¼~ï½]|int|ï½ï½ï½)"+n+C("9")+r)+"|"+("[- ]+"+C("6")+"#")+"|"+(i+"(?:,{2}|;)"+n+C("15")+r)+"|"+(i+"(?:,)+"+n+C("9")+r)}var R="["+I+"]{2}",P="[+ï¼]{0,1}(?:["+A+"]*["+I+"]){3,}["+A+I+"]*",N=(new RegExp("^[+ï¼]{0,1}(?:["+A+"]*["+I+"]){1,2}$","i"),P+"(?:"+O()+")?");new RegExp("^"+R+"$|^"+N+"$","i");new RegExp("(?:"+O()+")$","i");new RegExp("(["+I+"])");new RegExp("[+ï¼"+I+"]"),new RegExp("[^"+I+"#]+$");function L(e){return L="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},L(e)}function D(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}
2function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function U(){return U="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=j(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},U.apply(this,arguments)}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e,t){return F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},F(e,t)}function B(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}function V(e,t){if(t&&("object"===L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return M(e)}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z(e,t){if(e){if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||z(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function K(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){W(o,r,i,a,s,"next",e)}function s(e){W(o,r,i,a,s,"throw",e)}a(void 0)})}}function X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q(e,t,n){return t&&Y(e.prototype,t),n&&Y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function J(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},Z={exports:{}};!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(R){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=function(e,t,n){var r=l;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;
vendor: 4,547 bytes, line 2
2var u=h(e,t,n);if("normal"===u.type){if(r=n.done?d:f,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(R){return{type:"throw",arg:R}}}e.wrap=c;var l="suspendedStart",f="suspendedYield",p="executing",d="completed",v={};function g(){}function y(){}function m(){}var b={};u(b,o,function(){return this});var k=Object.getPrototypeOf,w=k&&k(k(C([])));w&&w!==n&&r.call(w,o)&&(b=w);var _=m.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function E(e,t){function n(i,o,a,s){var u=h(e[i],e,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"===L(l)&&r.call(l,"__await")?t.resolve(l.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(l).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,s)})}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t(function(t,i){n(e,r,t,i)})}return i=i?i.then(o,o):o()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=h(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function C(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return y.prototype=m,u(_,"constructor",m),u(m,"constructor",y),y.displayName=u(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},x(E.prototype),u(E.prototype,a,function(){return this}),e.AsyncIterator=E,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new E(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},x(_),u(_,s,"Generator"),u(_,o,function(){return this}),u(_,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===("undefined"==typeof globalThis?"undefined":L(globalThis))?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(Z);var ee=Z.exports;function te(e,t,n){return te=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&F(i,n.prototype),i},te.apply(null,arguments)}function ne(e){var t="function"==typeof Map?new Map:void 0;return ne=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return te(e,arguments,j(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),F(r,e)},ne(e)}function re(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ie(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var i=j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return V(this,n)}}var ae=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},se={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_,r=[],i=0;i<e.length;i+=3){var o=e[i],a=i+1<e.length,s=a?e[i+1]:0,u=i+2<e.length,c=u?e[i+2]:0,h=o>>2,l=(3&o)<<4|s>>4,f=(15&s)<<2|c>>6,p=63&c;u||(p=64,a||(f=64)),r.push(n[h],n[l],n[f],n[p])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(ae(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var a=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{var s=e[n++],u=e[n++];
2t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&u)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var o=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0,s=++i<e.length?n[e.charAt(i)]:64,u=++i<e.length?n[e.charAt(i)]:64;if(++i,null==o||null==a||null==s||null==u)throw new ue;var c=o<<2|a>>4;if(r.push(c),64!==s){var h=a<<4&240|s>>2;if(r.push(h),64!==u){var l=s<<6&192|u;r.push(l)}}}return r},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)}}},ue=function(e){B(n,e);var t=oe(n);function n(){var e;return X(this,n),(e=t.apply(this,arguments)).name="DecodeBase64StringError",e}return q(n)}(ne(Error)),ce=function(e){return function(e){var t=ae(e);return se.encodeByteArray(t,!0)}(e).replace(/\./g,"")},he=function(e){try{return se.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};var le=function(){return function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__},fe=function(){try{return le()||function(){if("undefined"!=typeof process){var e={}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0}}()||function(){if("undefined"!=typeof document){var e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}var t=e&&he(e[1]);return t&&JSON.parse(t)}}()}catch(e){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(e))}},pe=function(){function e(){var t=this;X(this,e),this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return q(e,[{key:"wrapCallback",value:function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"==typeof e&&(t.promise.catch(function(){}),1===e.length?e(n):e(n,r))}}}]),e}();function de(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function ve(){try{return"object"===("undefined"==typeof indexedDB?"undefined":L(indexedDB))}catch(e){return!1}}function ge(){return new Promise(function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(o){t(o)}})}var ye=function(e){B(n,e);var t=oe(n);function n(e,r,i){var o;return X(this,n),(o=t.call(this,r)).code=e,o.customData=i,o.name="FirebaseError",Object.setPrototypeOf(M(o),n.prototype),Error.captureStackTrace&&Error.captureStackTrace(M(o),me.prototype.create),o}return q(n)}(ne(Error)),me=function(){function e(t,n,r){X(this,e),this.service=t,this.serviceName=n,this.errors=r}return q(e,[{key:"create",value:function(e){var t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),r=this.errors[e],i=r?function(e,t){return e.replace(be,function(e,n){var r=t[n];return null!=r?String(r):"<".concat(n,"?>")})}(r,t):"Error",o="".concat(this.serviceName,": ").concat(i," (").concat(n,").");return new ye(n,o,t)}}]),e}();var be=/\{\$([^}]+)}/g;function ke(e){for(var t=[],n=function(){var e=G(i[r],2),n=e[0],o=e[1];Array.isArray(o)?o.forEach(function(e){t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(o))},r=0,i=Object.entries(e);r<i.length;r++)n();return t.length?"&"+t.join("&"):""}var we=function(){function e(t,n){var r=this;X(this,e),this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
2ise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(function(){t(r)}).catch(function(e){r.error(e)})}return q(e,[{key:"next",value:function(e){this.forEachObserver(function(t){t.next(e)})}},{key:"error",value:function(e){this.forEachObserver(function(t){t.error(e)}),this.close(e)}},{key:"complete",value:function(){this.forEachObserver(function(e){e.complete()}),this.close()}},{key:"subscribe",value:function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!==L(e)||null===e)return!1;var n,r=re(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i in e&&"function"==typeof e[i])return!0}}catch(o){r.e(o)}finally{r.f()}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=_e),void 0===r.error&&(r.error=_e),void 0===r.complete&&(r.complete=_e);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}}),this.observers.push(r),o}},{key:"unsubscribeOne",value: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))}},{key:"forEachObserver",value:function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)}},{key:"sendOne",value: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(r){"undefined"!=typeof console&&console.error&&console.error(r)}})}},{key:"close",value: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(){}function xe(e){return e&&e._delegate?e._delegate:e}var Ee,Se,Te=function(){function e(t,n,r){X(this,e),this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return q(e,[{key:"setInstantiationMode",value:function(e){return this.instantiationMode=e,this}},{key:"setMultipleInstances",value:function(e){return this.multipleInstances=e,this}},{key:"setServiceProps",value:function(e){return this.serviceProps=e,this}},{key:"setInstanceCreatedCallback",value:function(e){return this.onInstanceCreated=e,this}}]),e}();!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"}(Se||(Se={}));var Ie,Ae,Ce={debug:Se.DEBUG,verbose:Se.VERBOSE,info:Se.INFO,warn:Se.WARN,error:Se.ERROR,silent:Se.SILENT},Oe=Se.INFO,Re=(Q(Ee={},Se.DEBUG,"log"),Q(Ee,Se.VERBOSE,"log"),Q(Ee,Se.INFO,"info"),Q(Ee,Se.WARN,"warn"),Q(Ee,Se.ERROR,"error"),Ee),Pe=function(e,t){if(!(t<e.logLevel)){var n=(new Date).toISOString(),r=Re[t];if(!r)throw new Error("Attempted to log a message with an invalid logType (value: ".concat(t,")"));for(var i,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(i=console)[r].apply(i,["[".concat(n,"] ").concat(e.name,":")].concat(a))}},Ne=function(){function e(t){X(this,e),this.name=t,this._logLevel=Oe,this._logHandler=Pe,this._userLogHandler=null}return q(e,[{key:"logLevel",get:function(){return this._logLevel},set:function(e){if(!(e in Se))throw new TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e}},{key:"setLogLevel",value:function(e){this._logLevel="string"==typeof e?Ce[e]:e}},{key:"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}},{key:"userLogHandler",get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,Se.DEBUG].concat(t)),this._logHandler.apply(this,[this,Se.DEBUG].concat(t))}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,Se.VERBOSE].concat(t)),this._logHandler.apply(this,[this,Se.VERBOSE].concat(t))}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,Se.INFO].concat(t)),this._logHandler.apply(this,[this,Se.INFO].concat(t))}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,Se.WARN].concat(t)),this._logHandler.apply(this,[this,Se.WARN].concat(t))}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,Se.ER
2ROR].concat(t)),this._logHandler.apply(this,[this,Se.ERROR].concat(t))}}]),e}();var Le=new WeakMap,De=new WeakMap,je=new WeakMap,Ue=new WeakMap,Me=new WeakMap;var Fe={get:function(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return De.get(e);if("objectStoreNames"===t)return e.objectStoreNames||je.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return He(e[t])},set:function(e,t,n){return e[t]=n,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function Be(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Ae||(Ae=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(ze(this),n),He(Le.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return He(e.apply(ze(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=e.call.apply(e,[ze(this),t].concat(r));return je.set(o,t.sort?t.sort():[t]),He(o)}}function Ve(e){return"function"==typeof e?Be(e):(e instanceof IDBTransaction&&function(e){if(!De.has(e)){var t=new Promise(function(t,n){var r=function(){e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=function(){t(),r()},o=function(){n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});De.set(e,t)}}(e),t=e,(Ie||(Ie=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(function(e){return t instanceof e})?new Proxy(e,Fe):e);var t}function He(e){if(e instanceof IDBRequest)return t=e,(n=new Promise(function(e,n){var r=function(){t.removeEventListener("success",i),t.removeEventListener("error",o)},i=function(){e(He(t.result)),r()},o=function(){n(t.error),r()};t.addEventListener("success",i),t.addEventListener("error",o)})).then(function(e){e instanceof IDBCursor&&Le.set(e,t)}).catch(function(){}),Me.set(n,t),n;var t,n;if(Ue.has(e))return Ue.get(e);var r=Ve(e);return r!==e&&(Ue.set(e,r),Me.set(r,e)),r}var ze=function(e){return Me.get(e)};function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach(function(t){Q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ke,Xe,Ye=["get","getKey","getAll","getAllKeys","count"],qe=["put","add","delete","clear"],Je=new Map;function Qe(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t){if(Je.get(t))return Je.get(t);var n=t.replace(/FromIndex$/,""),r=t!==n,i=qe.includes(n);if(n in(r?IDBIndex:IDBObjectStore).prototype&&(i||Ye.includes(n))){var o=function(){var e=K(ee.mark(function e(t){var o,a,s,u,c,h,l=arguments;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(a=this.transaction(t,i?"readwrite":"readonly"),s=a.store,u=l.length,c=new Array(u>1?u-1:0),h=1;h<u;h++)c[h-1]=l[h];return r&&(s=s.index(c.shift())),e.next=6,Promise.all([(o=s)[n].apply(o,c),i&&a.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}();return Je.set(t,o),o}}}function $e(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ze(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}
2}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Fe=function(e){return We(We({},e),{},{get:function(t,n,r){return Qe(t,n)||e.get(t,n,r)},has:function(t,n){return!!Qe(t,n)||e.has(t,n)}})}(Fe);var et=function(){function e(t){X(this,e),this.container=t}return q(e,[{key:"getPlatformInfoString",value:function(){return this.container.getProviders().map(function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){var t=e.getImmediate();return"".concat(t.library,"/").concat(t.version)}return null}).filter(function(e){return e}).join(" ")}}]),e}();var tt="@firebase/app",nt="0.10.5",rt=new Ne("@firebase/app"),it=(Q(Ke={},tt,"fire-core"),Q(Ke,"@firebase/app-compat","fire-core-compat"),Q(Ke,"@firebase/analytics","fire-analytics"),Q(Ke,"@firebase/analytics-compat","fire-analytics-compat"),Q(Ke,"@firebase/app-check","fire-app-check"),Q(Ke,"@firebase/app-check-compat","fire-app-check-compat"),Q(Ke,"@firebase/auth","fire-auth"),Q(Ke,"@firebase/auth-compat","fire-auth-compat"),Q(Ke,"@firebase/database","fire-rtdb"),Q(Ke,"@firebase/database-compat","fire-rtdb-compat"),Q(Ke,"@firebase/functions","fire-fn"),Q(Ke,"@firebase/functions-compat","fire-fn-compat"),Q(Ke,"@firebase/installations","fire-iid"),Q(Ke,"@firebase/installations-compat","fire-iid-compat"),Q(Ke,"@firebase/messaging","fire-fcm"),Q(Ke,"@firebase/messaging-compat","fire-fcm-compat"),Q(Ke,"@firebase/performance","fire-perf"),Q(Ke,"@firebase/performance-compat","fire-perf-compat"),Q(Ke,"@firebase/remote-config","fire-rc"),Q(Ke,"@firebase/remote-config-compat","fire-rc-compat"),Q(Ke,"@firebase/storage","fire-gcs"),Q(Ke,"@firebase/storage-compat","fire-gcs-compat"),Q(Ke,"@firebase/firestore","fire-fst"),Q(Ke,"@firebase/firestore-compat","fire-fst-compat"),Q(Ke,"@firebase/vertexai-preview","fire-vertex"),Q(Ke,"fire-js","fire-js"),Q(Ke,"firebase","fire-js-all"),Ke),ot=new Map,at=new Map,st=new Map;function ut(e,t){try{e.container.addComponent(t)}catch(n){rt.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),n)}}function ct(e){var t=e.name;if(st.has(t))return rt.debug("There were multiple attempts to register component ".concat(t,".")),!1;st.set(t,e);var n,r=$e(ot.values());try{for(r.s();!(n=r.n()).done;){ut(n.value,e)}}catch(a){r.e(a)}finally{r.f()}var i,o=$e(at.values());try{for(o.s();!(i=o.n()).done;){ut(i.value,e)}}catch(a){o.e(a)}finally{o.f()}return!0}function ht(e){return void 0!==e.settings}var lt=(Q(Xe={},"no-app","No Firebase App '{$appName}' has been created - call initializeApp() first"),Q(Xe,"bad-app-name","Illegal App name: '{$appName}'"),Q(Xe,"duplicate-app","Firebase App named '{$appName}' already exists with different options or config"),Q(Xe,"app-deleted","Firebase App named '{$appName}' already deleted"),Q(Xe,"server-app-deleted","Firebase Server App has been deleted"),Q(Xe,"no-options","Need to provide options, when not being deployed to hosting via source."),Q(Xe,"invalid-app-argument","firebase.{$appName}() takes either no argument or a Firebase App instance."),Q(Xe,"invalid-log-argument","First argument to `onLog` must be null or a function."),Q(Xe,"idb-open","Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}."),Q(Xe,"idb-get","Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}."),Q(Xe,"idb-set","Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}."),Q(Xe,"idb-delete","Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."),Q(Xe,"finalization-registry-not-supported","FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry."),Q(Xe,"invali
2d-server-app-environment","FirebaseServerApp is not for use in browser environments."),Xe),ft=new me("app","Firebase",lt),pt="10.12.2";function dt(e,t,n){var r,i=null!==(r=it[e])&&void 0!==r?r:e;n&&(i+="-".concat(n));var o=i.match(/\s|\//),a=t.match(/\s|\//);if(o||a){var s=['Unable to register library "'.concat(i,'" with version "').concat(t,'":')];return o&&s.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),o&&a&&s.push("and"),a&&s.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void rt.warn(s.join(" "))}ct(new Te("".concat(i,"-version"),function(){return{library:i,version:t}},"VERSION"))}var vt="firebase-heartbeat-store",gt=null;function yt(){return gt||(gt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,i=n.upgrade,o=n.blocking,a=n.terminated,s=indexedDB.open(e,t),u=He(s);return i&&s.addEventListener("upgradeneeded",function(e){i(He(s.result),e.oldVersion,e.newVersion,He(s.transaction),e)}),r&&s.addEventListener("blocked",function(e){return r(e.oldVersion,e.newVersion,e)}),u.then(function(e){a&&e.addEventListener("close",function(){return a()}),o&&e.addEventListener("versionchange",function(e){return o(e.oldVersion,e.newVersion,e)})}).catch(function(){}),u}("firebase-heartbeat-database",1,{upgrade:function(e,t){if(0===t)try{e.createObjectStore(vt)}catch(n){console.warn(n)}}}).catch(function(e){throw ft.create("idb-open",{originalErrorMessage:e.message})})),gt}function mt(e){return bt.apply(this,arguments)}function bt(){return bt=K(ee.mark(function e(t){var n,r,i,o;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,yt();case 3:return n=e.sent,r=n.transaction(vt),e.next=7,r.objectStore(vt).get(_t(t));case 7:return i=e.sent,e.next=10,r.done;case 10:return e.abrupt("return",i);case 13:e.prev=13,e.t0=e.catch(0),e.t0 instanceof ye?rt.warn(e.t0.message):(o=ft.create("idb-get",{originalErrorMessage:null===e.t0||void 0===e.t0?void 0:e.t0.message}),rt.warn(o.message));case 16:case"end":return e.stop()}},e,null,[[0,13]])})),bt.apply(this,arguments)}function kt(e,t){return wt.apply(this,arguments)}function wt(){return(wt=K(ee.mark(function e(t,n){var r,i,o,a;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,yt();case 3:return r=e.sent,i=r.transaction(vt,"readwrite"),o=i.objectStore(vt),e.next=8,o.put(n,_t(t));case 8:return e.next=10,i.done;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),e.t0 instanceof ye?rt.warn(e.t0.message):(a=ft.create("idb-set",{originalErrorMessage:null===e.t0||void 0===e.t0?void 0:e.t0.message}),rt.warn(a.message));case 15:case"end":return e.stop()}},e,null,[[0,12]])}))).apply(this,arguments)}function _t(e){return"".concat(e.name,"!").concat(e.options.appId)}var xt=function(){function e(t){var n=this;X(this,e),this.container=t,this._heartbeatsCache=null;var r=this.container.getProvider("app").getImmediate();this._storage=new At(r),this._heartbeatsCachePromise=this._storage.read().then(function(e){return n._heartbeatsCache=e,e})}var t,n;return q(e,[{key:"triggerHeartbeat",value:(n=K(ee.mark(function e(){var t,n,r,i,o;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.container.getProvider("platform-logger").getImmediate(),i=r.getPlatformInfoString(),o=Et(),null!=(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)){e.next=9;break}return e.next=6,this._heartbeatsCachePromise;case 6:if(this._heartbeatsCache=e.sent,null!=(null===(n=this._heartbeatsCache)||void 0===n?void 0:n.heartbeats)){e.next=9;break}return e.abrupt("return");case 9:if(this._heartbeatsCache.lastSentHeartbeatDate!==o&&!this._heartbeatsCache.heartbeats.some(function(e){return e.date===o})){e.next=13;break}return e.abrupt("return");case 13:this._heartbeatsCache.heartbeats.push({date:o,agent:i});case 14:return this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(function(e){var t=new Date(e.date).valueOf();return Date.now()-t<=2592e6}),e.abrupt("return",this._storage.overwrite(this._heartbeatsCache));case 16:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"getHeartbeatsHeader",value:(t=K(ee.mark(function e(){var t,n,r,i,o,a;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this._heartbeatsCache){e.next=3;break}return e.next=3,this._heartbeatsCachePromise;case 3:if(null!=(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)&&0!==this._heartbeatsCache.heartbeats.length){e.next=5;break}return e.abrupt("return","");case 5:if(n=Et(),r=St(this._heartbeatsCache.heartbeats),i=r.heartbeatsToSend,o=r.unsentEntries,a=ce(JSON.stringify({version:2,heartbeats:i})),this._heartbeatsCache.lastSentHeartbeatDate=n,!(o.length>0)){e.next=15;break}return this._heartbeatsCache.heartbeats=o,e.next=13,this._storage.overwrite(this._heartbeatsCache);case 13:e.next=17;break;case 15:this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache);case 17:return e.abrupt("return",a);case 18:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})}]),e}();function Et(){return(new Date).toISOString().substring(0,10)}function St(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024,r=[],i=e.slice(),o=$e(e);try{var a=function(){var e=t.value,o=r.find(function(t){return t.agent===e.agent});if(o){if(o.dates.push(e.date),Ct(r)>n)return o.dates.pop(),"break"}else if(r.push({agent:e.agent,dates:[e.date]}),Ct(r)>n)return r.pop(),"break";i=i.slice(1)};for(o.s();!(t=o.n()).done;){if("break"===a())break}}catch(s){o.e(s)}finally{o.f()}return{heartbeatsToSend:r,unsentEntries:i}}var Tt,It,At=function(){function e(t){X(this,e),this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}var t,n,r,i;return q(e,[{key:"runIndexedDBEnvironmentCheck",value:(i=K(ee.mark(function e(){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(ve()){e.next=4;break}return e.abrupt("return",!1);case 4:return e.abrupt("return",ge().then(function(){return!0}).catch(function(){return!1}));case 5:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"read",value:(r=K(ee.mark(function e(){var t;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return",{heartbeats:[]});case 7:return e.next=9,mt(this.app);case 9:if(!(null==(t=e.sent)?void 0:t.heartbeats)){e.next=14;break}return e.abrupt("return",t);case 14:return e.abrupt("return",{heartbeats:[]});case 15:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})}
2,{key:"overwrite",value:(n=K(ee.mark(function e(t){var n,r;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.read();case 9:return r=e.sent,e.abrupt("return",kt(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:t.heartbeats}));case 11:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"add",value:(t=K(ee.mark(function e(t){var n,r;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.read();case 9:return r=e.sent,e.abrupt("return",kt(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:[].concat(J(r.heartbeats),J(t.heartbeats))}));case 11:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})}]),e}();function Ct(e){return ce(JSON.stringify({version:2,heartbeats:e})).length}function Ot(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Rt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pt(){return Q({},"dependent-sdk-initialized-before-auth","Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.")}Tt="",ct(new Te("platform-logger",function(e){return new et(e)},"PRIVATE")),ct(new Te("heartbeat",function(e){return new xt(e)},"PRIVATE")),dt(tt,nt,Tt),dt(tt,nt,"esm2017"),dt("fire-js","");var Nt=Pt,Lt=new me("auth","Firebase",Pt()),Dt=new Ne("@firebase/auth");function jt(e){if(Dt.logLevel<=Se.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Dt.warn.apply(Dt,["Auth (".concat(pt,"): ").concat(e)].concat(n))}}function Ut(e){if(Dt.logLevel<=Se.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Dt.error.apply(Dt,["Auth (".concat(pt,"): ").concat(e)].concat(n))}}function Mt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Ht.apply(void 0,[e].concat(n))}function Ft(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ht.apply(void 0,[e].concat(n))}function Bt(e,t,n){var r=Object.assign(Object.assign({},Nt()),Q({},t,n));return new me("auth","Firebase",r).create(t,{appName:e.name})}function Vt(e){return Bt(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Ht(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"!=typeof e){var i,o=n[0],a=J(n.slice(1));return a[0]&&(a[0].appName=e.name),(i=e._errorFactory).create.apply(i,[o].concat(J(a)))}return Lt.create.apply(Lt,[e].concat(n))}function zt(e,t){if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];throw Ht.apply(void 0,[t].concat(r))}}function Gt(e){var t="INTERNAL ASSERTION FAILED: "+e;throw Ut(t),new Error(t)}function Wt(e,t){e||Gt(t)}function Kt(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}function Xt(){return"undefined"==typeof navigator||!navigator||!("onLine"in navigator)||"boolean"!=typeof navigator.onLine||"http:"!==Kt()&&"https:"!==Kt()&&!function(){var e="object"===("undefined"==typeof chrome?"undefined":L(chrome))?chrome.runtime:"object"===("undefined"==typeof browser?"undefined":L(browser))?browser.runtime:void 0;return"object"===L(e)&&void 0!==e.id}()&&!("connection"in navigator)||navigator.onLine}var Yt=function(){function e(t,n){X(this,e),this.shortDelay=t,this.longDelay=n,Wt(n>
2t,"Short delay should be less than long delay!"),this.isMobile="undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(de())||"object"===("undefined"==typeof navigator?"undefined":L(navigator))&&"ReactNative"===navigator.product}return q(e,[{key:"get",value:function(){return Xt()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}]),e}();var qt=function(){function e(){X(this,e)}return q(e,null,[{key:"initialize",value:function(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}},{key:"fetch",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:"undefined"!=typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!=typeof fetch?fetch:void Gt("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")})},{key:"headers",value:function(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:"undefined"!=typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!=typeof Headers?Headers:void Gt("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}},{key:"response",value:function(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:"undefined"!=typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!=typeof Response?Response:void Gt("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}]),e}(),Jt=(Q(It={},"CREDENTIAL_MISMATCH","custom-token-mismatch"),Q(It,"MISSING_CUSTOM_TOKEN","internal-error"),Q(It,"INVALID_IDENTIFIER","invalid-email"),Q(It,"MISSING_CONTINUE_URI","internal-error"),Q(It,"INVALID_PASSWORD","wrong-password"),Q(It,"MISSING_PASSWORD","missing-password"),Q(It,"INVALID_LOGIN_CREDENTIALS","invalid-credential"),Q(It,"EMAIL_EXISTS","email-already-in-use"),Q(It,"PASSWORD_LOGIN_DISABLED","operation-not-allowed"),Q(It,"INVALID_IDP_RESPONSE","invalid-credential"),Q(It,"INVALID_PENDING_TOKEN","invalid-credential"),Q(It,"FEDERATED_USER_ID_ALREADY_LINKED","credential-already-in-use"),Q(It,"MISSING_REQ_TYPE","internal-error"),Q(It,"EMAIL_NOT_FOUND","user-not-found"),Q(It,"RESET_PASSWORD_EXCEED_LIMIT","too-many-requests"),Q(It,"EXPIRED_OOB_CODE","expired-action-code"),Q(It,"INVALID_OOB_CODE","invalid-action-code"),Q(It,"MISSING_OOB_CODE","internal-error"),Q(It,"CREDENTIAL_TOO_OLD_LOGIN_AGAIN","requires-recent-login"),Q(It,"INVALID_ID_TOKEN","invalid-user-token"),Q(It,"TOKEN_EXPIRED","user-token-expired"),Q(It,"USER_NOT_FOUND","user-token-expired"),Q(It,"TOO_MANY_ATTEMPTS_TRY_LATER","too-many-requests"),Q(It,"PASSWORD_DOES_NOT_MEET_REQUIREMENTS","password-does-not-meet-requirements"),Q(It,"INVALID_CODE","invalid-verification-code"),Q(It,"INVALID_SESSION_INFO","invalid-verification-id"),Q(It,"INVALID_TEMPORARY_PROOF","invalid-credential"),Q(It,"MISSING_SESSION_INFO","missing-verification-id"),Q(It,"SESSION_EXPIRED","code-expired"),Q(It,"MISSING_ANDROID_PACKAGE_NAME","missing-android-pkg-name"),Q(It,"UNAUTHORIZED_DOMAIN","unauthorized-continue-uri"),Q(It,"INVALID_OAUTH_CLIENT_ID","invalid-oauth-client-id"),Q(It,"ADMIN_ONLY_OPERATION","admin-restricted-operation"),Q(It,"INVALID_MFA_PENDING_CREDENTIAL","invalid-multi-factor-session"),Q(It,"MFA_ENROLLMENT_NOT_FOUND","multi-factor-info-not-found"),Q(It,"MISSING_MFA_ENROLLMENT_ID","missing-multi-factor-info"),Q(It,"MISSING_MFA_PENDING_CREDENTIAL","missing-multi-factor-session"),Q(It,"SECOND_FACTOR_EXISTS","second-factor-already-in-use"),Q(It,"SECOND_FACTOR_LIMIT_EXCEEDED","maximum-second-factor-count-exceeded"),Q(It,"BLOCKING_FUNCTION_ERROR_RESPONSE","internal-error"),Q(It,"RECAPTCHA_NOT_ENABLED","recaptcha-not-enabled"),Q(It,"MISSING_RECAPTCHA_TOKEN","missing-recaptcha-token"),Q(It,"INVALID_RECAPTCHA_TOKEN","invali
2d-recaptcha-token"),Q(It,"INVALID_RECAPTCHA_ACTION","invalid-recaptcha-action"),Q(It,"MISSING_CLIENT_TYPE","missing-client-type"),Q(It,"MISSING_RECAPTCHA_VERSION","missing-recaptcha-version"),Q(It,"INVALID_RECAPTCHA_VERSION","invalid-recaptcha-version"),Q(It,"INVALID_REQ_TYPE","invalid-req-type"),It),Qt=new Yt(3e4,6e4);function $t(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}function Zt(e,t,n,r){return en.apply(this,arguments)}function en(){return en=K(ee.mark(function e(t,n,r,i){var o,a=arguments;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=a.length>4&&void 0!==a[4]?a[4]:{},e.abrupt("return",tn(t,o,K(ee.mark(function e(){var o,a,s,u;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o={},a={},i&&("GET"===n?a=i:o={body:JSON.stringify(i)}),s=ke(Object.assign({key:t.config.apiKey},a)).slice(1),e.next=6,t._getAdditionalHeaders();case 6:return(u=e.sent)["Content-Type"]="application/json",t.languageCode&&(u["X-Firebase-Locale"]=t.languageCode),e.abrupt("return",qt.fetch()(rn(t,t.config.apiHost,r,s),Object.assign({method:n,headers:u,referrerPolicy:"no-referrer"},o)));case 10:case"end":return e.stop()}},e)}))));case 2:case"end":return e.stop()}},e)})),en.apply(this,arguments)}function tn(e,t,n){return nn.apply(this,arguments)}function nn(){return(nn=K(ee.mark(function e(t,n,r){var i,o,a,s,u,c,h,l,f,p;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t._canInitEmulator=!1,i=Object.assign(Object.assign({},Jt),n),e.prev=2,o=new on(t),e.next=6,Promise.race([r(),o.promise]);case 6:return a=e.sent,o.clearNetworkTimeout(),e.next=10,a.json();case 10:if(!("needConfirmation"in(s=e.sent))){e.next=13;break}throw an(t,"account-exists-with-different-credential",s);case 13:if(!a.ok||"errorMessage"in s){e.next=17;break}return e.abrupt("return",s);case 17:if(u=a.ok?s.errorMessage:s.error.message,c=u.split(" : "),h=G(c,2),l=h[0],f=h[1],"FEDERATED_USER_ID_ALREADY_LINKED"!==l){e.next=23;break}throw an(t,"credential-already-in-use",s);case 23:if("EMAIL_EXISTS"!==l){e.next=27;break}throw an(t,"email-already-in-use",s);case 27:if("USER_DISABLED"!==l){e.next=29;break}throw an(t,"user-disabled",s);case 29:if(p=i[l]||l.toLowerCase().replace(/[_\s]+/g,"-"),!f){e.next=34;break}throw Bt(t,p,f);case 34:Mt(t,p);case 35:e.next=42;break;case 37:if(e.prev=37,e.t0=e.catch(2),!(e.t0 instanceof ye)){e.next=41;break}throw e.t0;case 41:Mt(t,"network-request-failed",{message:String(e.t0)});case 42:case"end":return e.stop()}},e,null,[[2,37]])}))).apply(this,arguments)}function rn(e,t,n,r){var i="".concat(t).concat(n,"?").concat(r);return e.config.emulator?function(e,t){Wt(e.emulator,"Emulator should always be set here");var n=e.emulator.url;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}(e.config,i):"".concat(e.config.apiScheme,"://").concat(i)}var on=function(){function e(t){var n=this;X(this,e),this.auth=t,this.timer=null,this.promise=new Promise(function(e,t){n.timer=setTimeout(function(){return t(Ft(n.auth,"network-request-failed"))},Qt.get())})}return q(e,[{key:"clearNetworkTimeout",value:function(){clearTimeout(this.timer)}}]),e}();function an(e,t,n){var r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);var i=Ft(e,t,r);return i.customData._tokenResponse=n,i}function sn(e,t){return un.apply(this,arguments)}function un(){return(un=K(ee.mark(function e(t,n){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Zt(t,"POST","/v1/accounts:delete",n));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function cn(e,t){return hn.apply(this,arguments)}function hn(){return(hn=K(ee.mark(function e(t,n){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Zt(t,"POST","/v1/accounts:lookup",n));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ln(e){if(e)try{var t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(n){}}function fn(){return fn=K(ee.mark(function e(t){var n,r,i,o,a,s,u=arguments;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>1&&void 0!==u[1]&&u[1],r=xe(t),e.next=4,r.getIdToken(n);case 4:return i=e.sent,zt((o=dn(i))&&o.exp&&o.auth_time&&o.iat,r.auth,"internal-error"),a="object"===L(o.firebase)?o.firebase:void 0,s=null==a?void 0:a.sign_in_provider,e.abrupt("return",{claims:o,token:i,authTime:ln(pn(o.auth_time)),issuedAtTime:ln(pn(o.iat)),expirationTime:ln(pn(o.exp)),signInProvider:s||null,signInSecondFactor:(null==a?void 0:a.sign_in_second_factor)||null});case 10:case"end":return e.stop()}},e)})),fn.apply(this,arguments)}function pn(e){return 1e3*Number(e)}function dn(e){var t=G(e.split("."),3),n=t[0],r=t[1],i=t[2];if(void 0===n||void 0===r||void 0===i)return Ut("JWT malformed, contained fewer than 3 sections"),null;try{var o=he(r);return o?JSON.parse(o):(Ut("Failed to decode base64 JWT payload"),null)}catch(a){return Ut("Caught error parsing JWT payload as JSON",null==a?void 0:a.toString()),null}}function vn(e){var t=dn(e);return zt(t,"internal-error"),zt(void 0!==t.exp,"internal-error"),zt(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}function gn(e,t){return yn.apply(this,arguments)}function yn(){return yn=K(ee.mark(function e(t,n){var r=arguments;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r.length>
22&&void 0!==r[2]&&r[2])){e.next=3;break}return e.abrupt("return",n);case 3:return e.prev=3,e.next=6,n;case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(3),!(e.t0 instanceof ye&&mn(e.t0))){e.next=15;break}if(t.auth.currentUser!==t){e.next=15;break}return e.next=15,t.auth.signOut();case 15:throw e.t0;case 16:case"end":return e.stop()}},e,null,[[3,9]])})),yn.apply(this,arguments)}function mn(e){var t=e.code;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}var bn=function(){function e(t){X(this,e),this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}var t;return q(e,[{key:"_start",value:function(){this.isRunning||(this.isRunning=!0,this.schedule())}},{key:"_stop",value:function(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}},{key:"getInterval",value:function(e){var t;if(e){var n=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),n}this.errorBackoff=3e4;var r=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,r)}},{key:"schedule",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isRunning){var n=this.getInterval(t);this.timerId=setTimeout(K(ee.mark(function t(){return ee.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.iteration();case 2:case"end":return t.stop()}},t)})),n)}}},{key:"iteration",value:(t=K(ee.mark(function e(){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.user.getIdToken(!0);case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("network-request-failed")&&this.schedule(!0),e.abrupt("return");case 9:this.schedule();case 10:case"end":return e.stop()}},e,this,[[0,5]])})),function(){return t.apply(this,arguments)})}]),e}(),kn=function(){function e(t,n){X(this,e),this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}return q(e,[{key:"_initializeTime",value:function(){this.lastSignInTime=ln(this.lastLoginAt),this.creationTime=ln(this.createdAt)}},{key:"_copy",value:function(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}},{key:"toJSON",value:function(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}]),e}();function wn(e){return _n.apply(this,arguments)}function _n(){return(_n=K(ee.mark(function e(t){var n,r,i,o,a,s,u,c,h,l,f;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.auth,e.next=3,t.getIdToken();case 3:return i=e.sent,e.next=6,gn(t,cn(r,{idToken:i}));case 6:zt(null==(o=e.sent)?void 0:o.users.length,r,"internal-error"),a=o.users[0],t._notifyReloadListener(a),s=(null===(n=a.providerUserInfo)||void 0===n?void 0:n.length)?Sn(a.providerUserInfo):[],u=En(t.providerData,s),c=t.isAnonymous,h=!(t.email&&a.passwordHash||(null==u?void 0:u.length)),l=!!c&&h,f={uid:a.localId,displayName:a.displayName||null,photoURL:a.photoUrl||null,email:a.email||null,emailVerified:a.emailVerified||!1,phoneNumber:a.phoneNumber||null,tenantId:a.tenantId||null,providerData:u,metadata:new kn(a.createdAt,a.lastLoginAt),isAnonymous:l},Object.assign(t,f);case 17:case"end":return e.stop()}},e)}))).apply(this,arguments)}function xn(){return(xn=K(ee.mark(function e(t){var n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=xe(t),e.next=3,wn(n);case 3:return e.next=5,n.auth._persistUserIfCurrent(n);case 5:n.auth._notifyListenersIfCurrent(n);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function En(e,t){var n=e.filter(function(e){return!t.some(function(t){return t.providerId===e.providerId})});return[].concat(J(n),J(t))}function Sn(e){return e.map(function(e){var t=e.providerId,n=D(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})}function Tn(e,t){return In.apply(this,arguments)}function In(){return(In=K(ee.mark(function e(t,n){var r;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tn(t,{},K(ee.mark(function e(){var r,i,o,a,s,u;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=ke({grant_type:"refresh_token",refresh_token:n}).slice(1),i=t.config,o=i.tokenApiHost,a=i.apiKey,s=rn(t,o,"/v1/token","key=".concat(a)),e.next=5,t._getAdditionalHeaders();case 5:return(u=e.sent)["Content-Type"]="application/x-www-form-urlencoded",e.abrupt("return",qt.fetch()(s,{method:"POST",headers:u,body:r}));case 8:case"end":return e.stop()}},e)})));case 2:return r=e.sent,e.abrupt("return",{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token});case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function An(e,t){return Cn.apply(this,arguments)}function Cn(){return(Cn=K(ee.mark(function e(t,n){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Zt(t,"POST","/v2/accounts:revokeToken",$t(t,n)));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}var On=function(){function e(){X(this,e),this.refreshToken=null,this.accessToken=null,this.expirationTime=null}var t,n;return q(e,[{key:"isExpired",get:function(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}},{key:"updateFromServerResponse",value:function(e){zt(e.idToken,"internal-error"),zt(void 0!==e.idToken,"internal-error"),zt(void 0!==e.refreshToken,"internal-error");
2var t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):vn(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}},{key:"updateFromIdToken",value:function(e){zt(0!==e.length,"internal-error");var t=vn(e);this.updateTokensAndExpiration(e,null,t)}},{key:"getToken",value:(n=K(ee.mark(function e(t){var n=arguments;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.length>1&&void 0!==n[1]&&n[1]||!this.accessToken||this.isExpired){e.next=3;break}return e.abrupt("return",this.accessToken);case 3:if(zt(this.refreshToken,t,"user-token-expired"),!this.refreshToken){e.next=8;break}return e.next=7,this.refresh(t,this.refreshToken);case 7:return e.abrupt("return",this.accessToken);case 8:return e.abrupt("return",null);case 9:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"clearRefreshToken",value:function(){this.refreshToken=null}},{key:"refresh",value:(t=K(ee.mark(function e(t,n){var r,i,o,a;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Tn(t,n);case 2:r=e.sent,i=r.accessToken,o=r.refreshToken,a=r.expiresIn,this.updateTokensAndExpiration(i,o,Number(a));case 7:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"updateTokensAndExpiration",value:function(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}},{key:"toJSON",value:function(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}},{key:"_assign",value:function(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}},{key:"_clone",value:function(){return Object.assign(new e,this.toJSON())}},{key:"_performRefresh",value:function(){return Gt("not implemented")}}],[{key:"fromJSON",value:function(t,n){var r=n.refreshToken,i=n.accessToken,o=n.expirationTime,a=new e;return r&&(zt("string"==typeof r,"internal-error",{appName:t}),a.refreshToken=r),i&&(zt("string"==typeof i,"internal-error",{appName:t}),a.accessToken=i),o&&(zt("number"==typeof o,"internal-error",{appName:t}),a.expirationTime=o),a}}]),e}();function Rn(e,t){zt("string"==typeof e||void 0===e,"internal-error",{appName:t})}var Pn=function(){function e(t){X(this,e);var n=t.uid,r=t.auth,i=t.stsTokenManager,o=D(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new bn(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?J(o.providerData):[],this.metadata=new kn(o.createdAt||void 0,o.lastLoginAt||void 0)}var t,n,r,i,o;return q(e,[{key:"getIdToken",value:(o=K(ee.mark(function e(t){var n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gn(this,this.stsTokenManager.getToken(this.auth,t));case 2:if(zt(n=e.sent,this.auth,"internal-error"),this.accessToken===n){e.next=9;break}return this.accessToken=n,e.next=8,this.auth._persistUserIfCurrent(this);case 8:this.auth._notifyListenersIfCurrent(this);case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}},e,this)})),function(e){return o.apply(this,arguments)})},{key:"getIdTokenResult",value:function(e){return function(e){return fn.apply(this,arguments)}(this,e)}},{key:"reload",value:function(){return function(e){return xn.apply(this,arguments)}(this)}},{key:"_assign",value:function(e){this!==e&&(zt(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(function(e){return Object.assign({},e)}),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}},{key:"_clone",value:function(t){var n=new e(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}},{key:"_onReload",value:function(e){zt(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}},{key:"_notifyReloadListener",value:function(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}},{key:"_startProactiveRefresh",value:function(){this.proactiveRefresh._start()}},{key:"_stopProactiveRefresh",value:function(){this.proactiveRefresh._stop()}},{key:"_updateTokensIfNecessary",value:(i=K(ee.mark(function e(t){var n,r,i=arguments;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]&&i[1],r=!1,t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),!n){e.next=6;break}return e.next=6,wn(this);case 6:return e.next=8,this.auth._persistUserIfCurrent(this);case 8:r&&this.auth._notifyListenersIfCurrent(this);case 9:case"end":return e.stop()}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"delete",value:(r=K(ee.mark(function e(){var t;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!ht(this.auth.app)){e.next=2;break}return e.abrupt("return",Promise.reject(Vt(this.auth)));case 2:return e.next=4,this.getIdToken();case 4:return t=e.sent,e.next=7,gn(this,sn(this.auth,{idToken:t}));case 7:return this.stsTokenManager.clearRefreshToken(),e.abrupt("return",this.auth.signOut());case 9:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"toJSON",value:function(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
2nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(function(e){return Object.assign({},e)}),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}},{key:"refreshToken",get:function(){return this.stsTokenManager.refreshToken||""}}],[{key:"_fromJSON",value:function(t,n){var r,i,o,a,s,u,c,h,l=null!==(r=n.displayName)&&void 0!==r?r:void 0,f=null!==(i=n.email)&&void 0!==i?i:void 0,p=null!==(o=n.phoneNumber)&&void 0!==o?o:void 0,d=null!==(a=n.photoURL)&&void 0!==a?a:void 0,v=null!==(s=n.tenantId)&&void 0!==s?s:void 0,g=null!==(u=n._redirectEventId)&&void 0!==u?u:void 0,y=null!==(c=n.createdAt)&&void 0!==c?c:void 0,m=null!==(h=n.lastLoginAt)&&void 0!==h?h:void 0,b=n.uid,k=n.emailVerified,w=n.isAnonymous,_=n.providerData,x=n.stsTokenManager;zt(b&&x,t,"internal-error");var E=On.fromJSON(this.name,x);zt("string"==typeof b,t,"internal-error"),Rn(l,t.name),Rn(f,t.name),zt("boolean"==typeof k,t,"internal-error"),zt("boolean"==typeof w,t,"internal-error"),Rn(p,t.name),Rn(d,t.name),Rn(v,t.name),Rn(g,t.name),Rn(y,t.name),Rn(m,t.name);var S=new e({uid:b,auth:t,email:f,emailVerified:k,displayName:l,isAnonymous:w,photoURL:d,phoneNumber:p,tenantId:v,stsTokenManager:E,createdAt:y,lastLoginAt:m});return _&&Array.isArray(_)&&(S.providerData=_.map(function(e){return Object.assign({},e)})),g&&(S._redirectEventId=g),S}},{key:"_fromIdTokenResponse",value:(n=K(ee.mark(function t(n,r){var i,o,a,s=arguments;return ee.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=s.length>2&&void 0!==s[2]&&s[2],(o=new On).updateFromServerResponse(r),a=new e({uid:r.localId,auth:n,stsTokenManager:o,isAnonymous:i}),t.next=6,wn(a);case 6:return t.abrupt("return",a);case 7:case"end":return t.stop()}},t)})),function(e,t){return n.apply(this,arguments)})},{key:"_fromGetAccountInfoResponse",value:(t=K(ee.mark(function t(n,r,i){var o,a,s,u,c,h;return ee.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return zt(void 0!==(o=r.users[0]).localId,"internal-error"),a=void 0!==o.providerUserInfo?Sn(o.providerUserInfo):[],s=!(o.email&&o.passwordHash||(null==a?void 0:a.length)),(u=new On).updateFromIdToken(i),c=new e({uid:o.localId,auth:n,stsTokenManager:u,isAnonymous:s}),h={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:a,metadata:new kn(o.createdAt,o.lastLoginAt),isAnonymous:!(o.email&&o.passwordHash||(null==a?void 0:a.length))},Object.assign(c,h),t.abrupt("return",c);case 10:case"end":return t.stop()}},t)})),function(e,n,r){return t.apply(this,arguments)})}]),e}(),Nn=new Map;function Ln(e){Wt(e instanceof Function,"Expected a class definition");var t=Nn.get(e);return t?(Wt(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,Nn.set(e,t),t)}var Dn=function(){function e(){X(this,e),this.type="NONE",this.storage={}}var t,n,r,i;return q(e,[{key:"_isAvailable",value:(i=K(ee.mark(function e(){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"_set",value:(r=K(ee.mark(function e(t,n){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.storage[t]=n;case 1:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"_get",value:(n=K(ee.mark(function e(t){var n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.storage[t],e.abrupt("return",void 0===n?null:n);case 2:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"_remove",value:(t=K(ee.mark(function e(t){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:delete this.storage[t];case 1:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"_addListener",value:function(e,t){}},{key:"_removeListener",value:function(e,t){}}]),e}();Dn.type="NONE";var jn=Dn;function Un(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}var Mn=function(){function e(t,n,r){X(this,e),this.persistence=t,this.auth=n,this.userKey=r;var i=this.auth,o=i.config,a=i.name;this.fullUserKey=Un(this.userKey,o.apiKey,a),this.fullPersistenceKey=Un("persistence",o.apiKey,a),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}var t,n,r;return q(e,[{key:"setCurrentUser",value:function(e){return this.persistence._set(this.fullUserKey,e.toJSON())}},{key:"getCurrentUser",value:(r=K(ee.mark(function e(){var t;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.persistence._get(this.fullUserKey);case 2:return t=e.sent,e.abrupt("return",t?Pn._fromJSON(this.auth,t):null);case 4:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"removeCurrentUser",value:function(){return this.persistence._remove(this.fullUserKey)}},{key:"savePersistenceForRedirect",value:function(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}},{key:"setPersistence",value:(n=K(ee.mark(function e(t){var n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.persistence!==t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.getCurrentUser();case 4:return n=e.sent,e.next=7,this.removeCurrentUser();case 7:if(this.persistence=t,!n){e.next=10;break}return e.abrupt("return",this.setCurrentUser(n));case 10:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"delete",value:function(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}}],[{key:"create",value:(t=K(ee.mark(function t(n,r){var i,o,a,s,u,c,h,l,f,p,d,v=arguments;return ee.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=v.length>2&&void 0!==v[2]?v[2]:"authUser",r.length){t.next=3;break}return t.abrupt("return",new e(Ln(jn),n,i));case 3:return t.next=5,Promise.all(r.map(function(){var e=K(ee.mark(function e(t){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._isAvailable();case 2:if(!e.sent){e.next=4;break}return e.abrupt("return",t);case 4:return e.abrupt("return",void 0);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 5:o=t.sent.filter(function(e){return e}),a=o[0]||Ln(jn),s=Un(i,n.config.apiKey,n.name),u=null,c=Ot(r),t.prev=10,
2c.s();case 12:if((h=c.n()).done){t.next=29;break}return l=h.value,t.prev=14,t.next=17,l._get(s);case 17:if(!(f=t.sent)){t.next=23;break}return p=Pn._fromJSON(n,f),l!==a&&(u=p),a=l,t.abrupt("break",29);case 23:t.next=27;break;case 25:t.prev=25,t.t0=t.catch(14);case 27:t.next=12;break;case 29:t.next=34;break;case 31:t.prev=31,t.t1=t.catch(10),c.e(t.t1);case 34:return t.prev=34,c.f(),t.finish(34);case 37:if(d=o.filter(function(e){return e._shouldAllowMigration}),a._shouldAllowMigration&&d.length){t.next=40;break}return t.abrupt("return",new e(a,n,i));case 40:if(a=d[0],!u){t.next=44;break}return t.next=44,a._set(s,u.toJSON());case 44:return t.next=46,Promise.all(r.map(function(){var e=K(ee.mark(function e(t){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t===a){e.next=8;break}return e.prev=1,e.next=4,t._remove(s);case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}},e,null,[[1,6]])}));return function(t){return e.apply(this,arguments)}}()));case 46:return t.abrupt("return",new e(a,n,i));case 47:case"end":return t.stop()}},t,null,[[10,31,34,37],[14,25]])})),function(e,n){return t.apply(this,arguments)})}]),e}();function Fn(e){var t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de();return/iemobile/i.test(e)}(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de();return/firefox\//i.test(e)}(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de();return/blackberry/i.test(e)}(t))return"Blackberry";if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de();return/webos/i.test(e)}(t))return"Webos";if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de(),t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}(t))return"Safari";if((t.includes("chrome/")||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de();return/crios\//i.test(e)}(t))&&!t.includes("edge/"))return"Chrome";if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de();return/android/i.test(e)}(t))return"Android";var n=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);return 2===(null==n?void 0:n.length)?n[1]:"Other"}function Bn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=Fn(de());break;case"Worker":t="".concat(Fn(de()),"-").concat(e);break;default:t=e}var r=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(pt,"/").concat(r)}var Vn=function(){function e(t){X(this,e),this.auth=t,this.queue=[]}var t;return q(e,[{key:"pushCallback",value:function(e,t){var n=this,r=function(t){return new Promise(function(n,r){try{n(e(t))}catch(i){r(i)}})};r.onAbort=t,this.queue.push(r);var i=this.queue.length-1;return function(){n.queue[i]=function(){return Promise.resolve()}}}},{key:"runMiddleware",value:(t=K(ee.mark(function e(t){var n,r,i,o,a,s,u;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.auth.currentUser!==t){e.next=2;break}return e.abrupt("return");case 2:n=[],e.prev=3,r=Ot(this.queue),e.prev=5,r.s();case 7:if((i=r.n()).done){e.next=14;break}return o=i.value,e.next=11,o(t);case 11:o.onAbort&&n.push(o.onAbort);case 12:e.next=7;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(5),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:e.next=30;break;case 24:e.prev=24,e.t1=e.catch(3),n.reverse(),a=Ot(n);try{for(a.s();!(s=a.n()).done;){u=s.value;try{u()}catch(c){}}}catch(h){a.e(h)}finally{a.f()}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===e.t1||void 0===e.t1?void 0:e.t1.message});case 30:case"end":return e.stop()}},e,this,[[3,24],[5,16,19,22]])})),function(e){return t.apply(this,arguments)})}]),e}();function Hn(e){return zn.apply(this,arguments)}function zn(){return zn=K(ee.mark(function e(t){var n,r=arguments;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},e.abrupt("return",Zt(t,"GET","/v2/passwordPolicy",$t(t,n)));case 2:case"end":return e.stop()}},e)})),zn.apply(this,arguments)}var Gn=function(){function e(t){var n,r,i,o;X(this,e);var a=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(n=a.minPasswordLength)&&void 0!==n?n:6,a.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=a.maxPasswordLength),void 0!==a.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=a.containsLowercaseCharacter),void 0!==a.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=a.containsUppercaseCharacter),void 0!==a.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=a.containsNumericCharacter),void 0!==a.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=a.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(i=null===(r=t.allowedNonAlphanumericCharacters)||void 0===r?void 0:r.join(""))&&void 0!==i?i:"",this.forceUpgradeOnSignin=null!==(o=t.forceUpgradeOnSignin)&&void 0!==o&&o,this.schemaVersion=t.schemaVersion}return q(e,[{key:"validatePassword",value:function(e){var t,n,r,i,o,a,s={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,s),this.validatePasswordCharacterOptions(e,s),s.isValid&&
2(s.isValid=null===(t=s.meetsMinPasswordLength)||void 0===t||t),s.isValid&&(s.isValid=null===(n=s.meetsMaxPasswordLength)||void 0===n||n),s.isValid&&(s.isValid=null===(r=s.containsLowercaseLetter)||void 0===r||r),s.isValid&&(s.isValid=null===(i=s.containsUppercaseLetter)||void 0===i||i),s.isValid&&(s.isValid=null===(o=s.containsNumericCharacter)||void 0===o||o),s.isValid&&(s.isValid=null===(a=s.containsNonAlphanumericCharacter)||void 0===a||a),s}},{key:"validatePasswordLengthOptions",value:function(e,t){var n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}},{key:"validatePasswordCharacterOptions",value:function(e,t){var n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(var r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}},{key:"updatePasswordCharacterOptionsStatuses",value:function(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}]),e}(),Wn=function(){function e(t,n,r,i){X(this,e),this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Kn(this),this.idTokenSubscription=new Kn(this),this.beforeStateQueue=new Vn(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Lt,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=i.sdkClientVersion}var t,n,r,i,o,a,s,u,c,h,l,f,p,d,v,g,y,m,b;return q(e,[{key:"_initializeWithPersistence",value:function(e,t){var n=this;return t&&(this._popupRedirectResolver=Ln(t)),this._initializationPromise=this.queue(K(ee.mark(function r(){var i,o;return ee.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!n._deleted){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,Mn.create(n,e);case 4:if(n.persistenceManager=r.sent,!n._deleted){r.next=7;break}return r.abrupt("return");case 7:if(!(null===(i=n._popupRedirectResolver)||void 0===i?void 0:i._shouldInitProactively)){r.next=15;break}return r.prev=8,r.next=11,n._popupRedirectResolver._initialize(n);case 11:r.next=15;break;case 13:r.prev=13,r.t0=r.catch(8);case 15:return r.next=17,n.initializeCurrentUser(t);case 17:if(n.lastNotifiedUid=(null===(o=n.currentUser)||void 0===o?void 0:o.uid)||null,!n._deleted){r.next=20;break}return r.abrupt("return");case 20:n._isInitialized=!0;case 21:case"end":return r.stop()}},r,null,[[8,13]])}))),this._initializationPromise}},{key:"_onStorageEvent",value:(b=K(ee.mark(function e(){var t;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._deleted){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.assertedPersistence.getCurrentUser();case 4:if(t=e.sent,this.currentUser||t){e.next=7;break}return e.abrupt("return");case 7:if(!this.currentUser||!t||this.currentUser.uid!==t.uid){e.next=12;break}return this._currentUser._assign(t),e.next=11,this.currentUser.getIdToken();case 11:return e.abrupt("return");case 12:return e.next=14,this._updateCurrentUser(t,!0);case 14:case"end":return e.stop()}},e,this)})),function(){return b.apply(this,arguments)})},{key:"initializeCurrentUserFromIdToken",value:(m=K(ee.mark(function e(t){var n,r;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,cn(this,{idToken:t});case 3:return n=e.sent,e.next=6,Pn._fromGetAccountInfoResponse(this,n,t);case 6:return r=e.sent,e.next=9,this.directlySetCurrentUser(r);case 9:e.next=16;break;case 11:return e.prev=11,e.t0=e.catch(0),console.warn("FirebaseServerApp could not login user with provided authIdToken: ",e.t0),e.next=16,this.directlySetCurrentUser(null);case 16:case"end":return e.stop()}},e,this,[[0,11]])})),function(e){return m.apply(this,arguments)})},{key:"initializeCurrentUser",value:(y=K(ee.mark(function e(t){var n,r,i,o,a,s,u,c,h=this;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!ht(this.app)){e.next=7;break}if(!(r=this.app.settings.authIdToken)){e.next=6;break}return e.abrupt("return",new Promise(function(e){setTimeout(function(){return h.initializeCurrentUserFromIdToken(r).then(e,e)})}));case 6:return e.abrupt("return",this.directlySetCurrentUser(null));case 7:return e.next=9,this.assertedPersistence.getCurrentUser();case 9:if(i=e.sent,o=i,a=!1,!t||!this.config.authDomain){e.next=21;break}return e.next=15,this.getOrInitRedirectPersistenceManager();case 15:return s=null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId,u=null==o?void 0:o._redirectEventId,e.next=19,this.tryRedirectSignIn(t);case 19:c=e.sent,s&&s!==u||!(null==c?void 0:c.user)||(o=c.user,a=!0);case 21:if(o){e.next=23;break}return e.abrupt("return",this.directlySetCurrentUser(null));
2case 23:if(o._redirectEventId){e.next=39;break}if(!a){e.next=34;break}return e.prev=25,e.next=28,this.beforeStateQueue.runMiddleware(o);case 28:e.next=34;break;case 30:e.prev=30,e.t0=e.catch(25),o=i,this._popupRedirectResolver._overrideRedirectResult(this,function(){return Promise.reject(e.t0)});case 34:if(!o){e.next=38;break}return e.abrupt("return",this.reloadAndSetCurrentUserOrClear(o));case 38:return e.abrupt("return",this.directlySetCurrentUser(null));case 39:return zt(this._popupRedirectResolver,this,"argument-error"),e.next=42,this.getOrInitRedirectPersistenceManager();case 42:if(!this.redirectUser||this.redirectUser._redirectEventId!==o._redirectEventId){e.next=44;break}return e.abrupt("return",this.directlySetCurrentUser(o));case 44:return e.abrupt("return",this.reloadAndSetCurrentUserOrClear(o));case 45:case"end":return e.stop()}},e,this,[[25,30]])})),function(e){return y.apply(this,arguments)})},{key:"tryRedirectSignIn",value:(g=K(ee.mark(function e(t){var n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=null,e.prev=1,e.next=4,this._popupRedirectResolver._completeRedirectFn(this,t,!0);case 4:n=e.sent,e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),e.next=11,this._setRedirectUser(null);case 11:return e.abrupt("return",n);case 12:case"end":return e.stop()}},e,this,[[1,7]])})),function(e){return g.apply(this,arguments)})},{key:"reloadAndSetCurrentUserOrClear",value:(v=K(ee.mark(function e(t){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,wn(t);case 3:e.next=9;break;case 5:if(e.prev=5,e.t0=e.catch(0),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("network-request-failed")){e.next=9;break}return e.abrupt("return",this.directlySetCurrentUser(null));case 9:return e.abrupt("return",this.directlySetCurrentUser(t));case 10:case"end":return e.stop()}},e,this,[[0,5]])})),function(e){return v.apply(this,arguments)})},{key:"useDeviceLanguage",value:function(){this.languageCode=function(){if("undefined"==typeof navigator)return null;var e=navigator;return e.languages&&e.languages[0]||e.language||null}()}},{key:"_delete",value:(d=K(ee.mark(function e(){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this._deleted=!0;case 1:case"end":return e.stop()}},e,this)})),function(){return d.apply(this,arguments)})},{key:"updateCurrentUser",value:(p=K(ee.mark(function e(t){var n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!ht(this.app)){e.next=2;break}return e.abrupt("return",Promise.reject(Vt(this)));case 2:return(n=t?xe(t):null)&&zt(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),e.abrupt("return",this._updateCurrentUser(n&&n._clone(this)));case 5:case"end":return e.stop()}},e,this)})),function(e){return p.apply(this,arguments)})},{key:"_updateCurrentUser",value:(f=K(ee.mark(function e(t){var n,r=this,i=arguments;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]&&i[1],!this._deleted){e.next=3;break}return e.abrupt("return");case 3:if(t&&zt(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n){e.next=7;break}return e.next=7,this.beforeStateQueue.runMiddleware(t);case 7:return e.abrupt("return",this.queue(K(ee.mark(function e(){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.directlySetCurrentUser(t);case 2:r.notifyAuthListeners();case 3:case"end":return e.stop()}},e)}))));case 8:case"end":return e.stop()}},e,this)})),function(e){return f.apply(this,arguments)})},{key:"signOut",value:(l=K(ee.mark(function e(){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!ht(this.app)){e.next=2;break}return e.abrupt("return",Promise.reject(Vt(this)));case 2:return e.next=4,this.beforeStateQueue.runMiddleware(null);case 4:if(!this.redirectPersistenceManager&&!this._popupRedirectResolver){e.next=7;break}return e.next=7,this._setRedirectUser(null);case 7:return e.abrupt("return",this._updateCurrentUser(null,!0));case 8:case"end":return e.stop()}},e,this)})),function(){return l.apply(this,arguments)})},{key:"setPersistence",value:function(e){var t=this;return ht(this.app)?Promise.reject(Vt(this)):this.queue(K(ee.mark(function n(){return ee.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.assertedPersistence.setPersistence(Ln(e));case 2:case"end":return n.stop()}},n)})))}},{key:"_getRecaptchaConfig",value:function(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}},{key:"validatePassword",value:(h=K(ee.mark(function e(t){var n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._getPasswordPolicyInternal()){e.next=3;break}return e.next=3,this._updatePasswordPolicy();case 3:if((n=this._getPasswordPolicyInternal()).schemaVersion===this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION){e.
2next=6;break}return e.abrupt("return",Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})));case 6:return e.abrupt("return",n.validatePassword(t));case 7:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"_getPasswordPolicyInternal",value:function(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}},{key:"_updatePasswordPolicy",value:(c=K(ee.mark(function e(){var t,n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hn(this);case 2:t=e.sent,n=new Gn(t),null===this.tenantId?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n;case 5:case"end":return e.stop()}},e,this)})),function(){return c.apply(this,arguments)})},{key:"_getPersistence",value:function(){return this.assertedPersistence.persistence.type}},{key:"_updateErrorMap",value:function(e){this._errorFactory=new me("auth","Firebase",e())}},{key:"onAuthStateChanged",value:function(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}},{key:"beforeAuthStateChanged",value:function(e,t){return this.beforeStateQueue.pushCallback(e,t)}},{key:"onIdTokenChanged",value:function(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}},{key:"authStateReady",value:function(){var e=this;return new Promise(function(t,n){if(e.currentUser)t();else var r=e.onAuthStateChanged(function(){r(),t()},n)})}},{key:"revokeAccessToken",value:(u=K(ee.mark(function e(t){var n,r;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.currentUser){e.next=8;break}return e.next=3,this.currentUser.getIdToken();case 3:return n=e.sent,r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:n},null!=this.tenantId&&(r.tenantId=this.tenantId),e.next=8,An(this,r);case 8:case"end":return e.stop()}},e,this)})),function(e){return u.apply(this,arguments)})},{key:"toJSON",value:function(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}},{key:"_setRedirectUser",value:(s=K(ee.mark(function e(t,n){var r;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getOrInitRedirectPersistenceManager(n);case 2:return r=e.sent,e.abrupt("return",null===t?r.removeCurrentUser():r.setCurrentUser(t));case 4:case"end":return e.stop()}},e,this)})),function(e,t){return s.apply(this,arguments)})},{key:"getOrInitRedirectPersistenceManager",value:(a=K(ee.mark(function e(t){var n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.redirectPersistenceManager){e.next=9;break}return zt(n=t&&Ln(t)||this._popupRedirectResolver,this,"argument-error"),e.next=5,Mn.create(this,[Ln(n._redirectPersistence)],"redirectUser");case 5:return this.redirectPersistenceManager=e.sent,e.next=8,this.redirectPersistenceManager.getCurrentUser();case 8:this.redirectUser=e.sent;case 9:return e.abrupt("return",this.redirectPersistenceManager);case 10:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"_redirectUserForId",value:(o=K(ee.mark(function e(t){var n,r;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isInitialized){e.next=3;break}return e.next=3,this.queue(K(ee.mark(function e(){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)})));case 3:if((null===(n=this._currentUser)||void 0===n?void 0:n._redirectEventId)!==t){e.next=5;break}return e.abrupt("return",this._currentUser);case 5:if((null===(r=this.redirectUser)||void 0===r?void 0:r._redirectEventId)!==t){e.next=7;break}return e.abrupt("return",this.redirectUser);case 7:return e.abrupt("return",null);case 8:case"end":return e.stop()}},e,this)})),function(e){return o.apply(this,arguments)})},{key:"_persistUserIfCurrent",value:(i=K(ee.mark(function e(t){var n=this;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==this.currentUser){e.next=2;break}return e.abrupt("return",this.queue(K(ee.mark(function e(){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.directlySetCurrentUser(t));case 1:case"end":return e.stop()}},e)}))));case 2:case"end":return e.stop()}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"_notifyListenersIfCurrent",value:function(e){e===this.currentUser&&this.notifyAuthListeners()}},{key:"_key",value:function(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(this.name)}},{key:"_startProactiveRefresh",value:function(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}},{key:"_stopProactiveRefresh",value:function(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}},{key:"_currentUser",get:function(){return this.currentUser}},{key:"notifyAuthListeners",value:function(){var e,t;if(this._isInitialized){this.idTokenSubscription.next(this.currentUser);var n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}}},{key:"registerStateListener",value:function(e,t,n,r){var i=this;if(this._deleted)return function(){};var o="function"==typeof t?t:t.next.bind(t),a=!1,s=this._isInitialized?Promise.resolve():this._initializationPromise;if(zt(s,this,"internal-error"),s.then(function(){a||o(i.currentUser)}),"function"==typeof t){var u=e.addObserver(t,n,r);return function(){a=!0,u()}}var c=e.addObserver(t);return function(){a=!0,c()}}},{key:"directlySetCurrentUser",value:(r=K(ee.mark(function e(t){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,!t){e.next=8;break}return e.next=6,this.assertedPersistence.setCurrentUser(t);case 6:e.next=10;break;case 8:return e.next=10,this.assertedPersistence.removeCurrentUser();case 10:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"queue",value:function(e){return this.operations=this.operations.then(e,e),this.operations}},{key:"assertedPersistence",get:function(){return zt(this.persistenceManager,this,"internal-error"),this.persistenceManager}},{key:"_logFramework",value:function(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Bn(this.config.clientPlatform,this._getFrameworks()))}},{key:"_getFrameworks",value:function(){return this.frameworks}},{key:"_getAdditionalHeaders",value:(n=K(ee.mark(function e(){var t,n,r,i;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Q({},"X-Client-Version",this.clientVersion),this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId),e.next=4,null===(t=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getHeartbeatsHeader();case 4:return(r=e.sent)&&(n["X-Firebase-Client"]=r),e.next=8,this._getAppCheckToken();case 8:return(i=e.sent)&&(n["X-Firebase-AppCheck"]=i),e.abrupt("return",n);case 11:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"_getAppCheckToken",value:(t=K(ee.mark(function e(){var t,n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getToken();case 2:return(null==(n=e.sent)?void 0:n.error)&&jt("Error while retrieving App Check token: ".concat(n.error)),e.abrupt("return",null==n?void 0:n.token);case 5:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})}]),e}();var Kn=function(){function e(t){var n,r,i=this;
2X(this,e),this.auth=t,this.observer=null,this.addObserver=(r=new we(function(e){return i.observer=e},n)).subscribe.bind(r)}return q(e,[{key:"next",get:function(){return zt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}]),e}();Q({},"USER_NOT_FOUND","user-not-found"),new Yt(3e4,6e4),new Yt(2e3,1e4),new Yt(3e4,6e4),new Yt(5e3,15e3);var Xn="@firebase/auth",Yn="1.7.4",qn=function(){function e(t){X(this,e),this.auth=t,this.internalListeners=new Map}var t;return q(e,[{key:"getUid",value:function(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}},{key:"getToken",value:(t=K(ee.mark(function e(t){var n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.assertAuthConfigured(),e.next=3,this.auth._initializationPromise;case 3:if(this.auth.currentUser){e.next=5;break}return e.abrupt("return",null);case 5:return e.next=7,this.auth.currentUser.getIdToken(t);case 7:return n=e.sent,e.abrupt("return",{accessToken:n});case 9:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"addAuthTokenListener",value:function(e){if(this.assertAuthConfigured(),!this.internalListeners.has(e)){var t=this.auth.onIdTokenChanged(function(t){e((null==t?void 0:t.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}}},{key:"removeAuthTokenListener",value:function(e){this.assertAuthConfigured();var t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}},{key:"assertAuthConfigured",value:function(){zt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}},{key:"updateProactiveRefresh",value:function(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}]),e}();var Jn;(function(e){var t;null===(t=fe())||void 0===t||t["_".concat(e)]})("authIdTokenMaxAge"),Jn="Browser",ct(new Te("auth",function(e,t){var n=t.options,r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),a=r.options,s=a.apiKey,u=a.authDomain;zt(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});var c={apiKey:s,authDomain:u,clientPlatform:Jn,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Bn(Jn)},h=new Wn(r,i,o,c);return function(e,t){var n=(null==t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(Ln);(null==t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null==t?void 0:t.popupRedirectResolver)}(h,n),h},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(function(e,t,n){e.getProvider("auth-internal").initialize()})),ct(new Te("auth-internal",function(e){return function(e){return new qn(e)}(function(e){return xe(e)}(e.getProvider("auth").getImmediate()))},"PRIVATE").setInstantiationMode("EXPLICIT")),dt(Xn,Yn,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(Jn)),dt(Xn,Yn,"esm2017");var Qn="object"==L($)&&$&&$.Object===Object&&$,$n=Qn,Zn="object"==("undefined"==typeof self?"undefined":L(self))&&self&&self.Object===Object&&self,er=$n||Zn||Function("return this")(),tr=er.Symbol,nr=tr,rr=Object.prototype,ir=rr.hasOwnProperty,or=rr.toString,ar=nr?nr.toStringTag:void 0;var sr=function(e){var t=ir.call(e,ar),n=e[ar];try{e[ar]=void 0;var r=!0}catch(o){}var i=or.call(e);return r&&(t?e[ar]=n:delete e[ar]),i},ur=Object.prototype.toString;var cr=sr,hr=function(e){return ur.call(e)},lr=tr?tr.toStringTag:void 0;var fr=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":lr&&lr in Object(e)?cr(e):hr(e)};var pr=function(e){var t=L(e);return null!=e&&("object"==t||"function"==t)},dr=fr,vr=pr;var gr,yr=function(e){if(!vr(e))return!1;var t=dr(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},mr=er["__core-js_shared__"],br=(gr=/[^.]+$/.exec(mr&&mr.keys&&mr.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+gr:"";var kr=function(e){return!!br&&br in e},wr=Function.prototype.toString;var _r=function(e){if(null!=e){try{return wr.call(e)}catch(t){}try{return e+""}catch(t){}}return""},xr=yr,Er=kr,Sr=pr,Tr=_r,Ir=/^\[object .+?Constructor\]$/,Ar=Function.prototype,Cr=Object.prototype,Or=Ar.toString,Rr=Cr.hasOwnProperty,Pr=RegExp("^"+Or.call(Rr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Nr=function(e){return!(!Sr(e)||Er(e))&&(xr(e)?Pr:Ir).test(Tr(e))},Lr=function(e,t){return null==e?void 0:e[t]};var Dr=function(e,t){var n=Lr(e,t);return Nr(n)?n:void 0},jr=Dr(er,"DataView"),Ur=Dr(er,"Map"),Mr=jr,Fr=Ur,Br=Dr(er,"Promise"),Vr=Dr(er,"Set"),Hr=Dr(er,"WeakMap"),zr=fr,Gr=_r,Wr="[object Map]",Kr="[object Promise]",Xr="[object Set]",Yr="[object WeakMap]",qr="[object DataView]",Jr=Gr(Mr),Qr=Gr(Fr),$r=Gr(Br),Zr=Gr(Vr),ei=Gr(Hr),ti=zr;(Mr&&ti(new Mr(new ArrayBuffer(1)))!=qr||Fr&&ti(new Fr)!=Wr||Br&&ti(Br.resolve())!=Kr||Vr&&ti(new Vr)!=Xr||Hr&&ti(new Hr)!=Yr)&&(ti=function(e){var t=zr(e),n="[object Object]"==t?e.constructor:void 0,r=n?Gr(n):"";if(r)switch(r){case Jr:return qr;case Qr:return Wr;case $r:return Kr;case Zr:return Xr;case ei:return Yr}return t});var ni=function(e){return null!=e&&"object"==L(e)},ri=fr,ii=ni;var oi=function(e){return ii(e)&&"[object Arguments]"==ri(e)},ai=Object.prototype;ai.hasOwnProperty,ai.propertyIsEnumerable;oi(function(){return arguments}());var si={exports:{}};var ui=function(){return!1};!function(e,t){var n=er,r=ui,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(si,si.exports);var ci={exports:{}};!function(e,t){var n=Qn,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=a}(ci,ci.exports);var hi,li,fi,pi,di,vi,gi,yi=ci.exports;yi&&yi.isTypedArray,function(e){e.Technical="technical",e.DeliveryAddresses="deliveryAddresses",e.UserDetails="userDetails",e.Security="security",e.OrderHistory="orderHistory",e.AdditionalDeliveryAddresses="additionalDeliveryAddresses"}(hi||(hi={})),function(e){e.Health="Health",e.Hyho="Hyho"}(li||(li={})),function(e){e.textbox="textbox",e.password="password",e.date="date",e.datePicker="datePicker",e.checkbox="checkbox",e.radio="radio",e.textarea="textarea",e.phone="phone",e.select="select",e.infoBlock="infoBlock",e.custom="custom"}(fi||(fi={})),function(e){e.verifyEmail="verifyEmail",e.recoverEmail="recoverEmail",e.resetPassword="resetPassword",e.verifyAndChangeEmail="verifyAndChangeEmail"}(pi||(pi={})),function(e){e.onConfirmSignUp="onConfirmSignUp ",e.onAuthStateChange="onAuthStateChange",e.onTermsChanged="onTermsChanged",e.onLdsConfirmation="onLdsConfirmation",e.onDeleteAccount="onDeleteAccount",e.onDeniedSignIn="onDeniedSignIn"}(di||(di={})),function(e){e.Google="Google",e.Facebook="Facebook"}(vi||(vi={})),function(e){e[e.Email=0]="Email"}(gi||(gi={}));var mi;function bi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ki(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ki(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}dt("firebase","10.12.2","app");var wi=new Map,_i={activated:!1,tokenObservers:[]};function xi(e){return wi.get(e)||Object.assign({},_i)}var Ei=3e4,Si=96e4,Ti=function(){function e(t,n,r,i,o){if(X(this,e),this.operation=t,this.retryPolicy=n,this.getWaitDuration=r,this.lowerBound=i,this.upperBound=o,this.pending=null,this.nextErrorWaitInterval=i,i>o)throw new Error("Proactive refresh lower bound greater than upper bound!")}var t;return q(e,[{key:"start",value:function(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(function(){})}},{key:"stop",value:function(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}},{key:"isRunning",value:function(){return!!this.pending}},{key:"process",value:(t=K(ee.mark(function e(t){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.stop(),e.prev=1,this.pending=new pe,this.pending.promise.catch(function(e){}),e.next=6,Ii(this.getNextRun(t));case 6:return this.pending.resolve(),e.next=9,this.pending.promise;case 9:return this.pending=new pe,this.pending.promise.catch(function(e){}),e.next=13,this.operation();case 13:return this.pending.resolve(),e.next=16,this.pending.promise;case 16:this.process(!0).catch(function(){}),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),this.retryPolicy(e.t0)?this.process(!1).catch(function(){}):this.stop();case 22:case"end":return e.stop()}},e,this,[[1,19]])})),function(e){return t.apply(this,arguments)})},{key:"getNextRun",value:function(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();var t=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),t}}]),e}();function Ii(e){return new Promise(function(t){setTimeout(t,e)})}var Ai=(Q(mi={}
2,"already-initialized","You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance."),Q(mi,"use-before-activation","App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services."),Q(mi,"fetch-network-error","Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}."),Q(mi,"fetch-parse-error","Fetch client could not parse response. Original error: {$originalErrorMessage}."),Q(mi,"fetch-status-error","Fetch server returned an HTTP error status. HTTP status: {$httpStatus}."),Q(mi,"storage-open","Error thrown when opening storage. Original error: {$originalErrorMessage}."),Q(mi,"storage-get","Error thrown when reading from storage. Original error: {$originalErrorMessage}."),Q(mi,"storage-set","Error thrown when writing to storage. Original error: {$originalErrorMessage}."),Q(mi,"recaptcha-error","ReCAPTCHA error."),Q(mi,"throttled","Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"),mi),Ci=new me("appCheck","AppCheck",Ai);function Oi(e){if(!xi(e).activated)throw Ci.create("use-before-activation",{appName:e.name})}function Ri(e,t){return Pi.apply(this,arguments)}function Pi(){return(Pi=K(ee.mark(function e(t,n){var r,i,o,a,s,u,c,h,l,f,p;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.url,i=t.body,o={"Content-Type":"application/json"},!(a=n.getImmediate({optional:!0}))){e.next=8;break}return e.next=6,a.getHeartbeatsHeader();case 6:(s=e.sent)&&(o["X-Firebase-Client"]=s);case 8:return u={method:"POST",body:JSON.stringify(i),headers:o},e.prev=9,e.next=12,fetch(r,u);case 12:c=e.sent,e.next=18;break;case 15:throw e.prev=15,e.t0=e.catch(9),Ci.create("fetch-network-error",{originalErrorMessage:null===e.t0||void 0===e.t0?void 0:e.t0.message});case 18:if(200===c.status){e.next=20;break}throw Ci.create("fetch-status-error",{httpStatus:c.status});case 20:return e.prev=20,e.next=23,c.json();case 23:h=e.sent,e.next=29;break;case 26:throw e.prev=26,e.t1=e.catch(20),Ci.create("fetch-parse-error",{originalErrorMessage:null===e.t1||void 0===e.t1?void 0:e.t1.message});case 29:if((l=h.ttl.match(/^([\d.]+)(s)$/))&&l[2]&&!isNaN(Number(l[1]))){e.next=32;break}throw Ci.create("fetch-parse-error",{originalErrorMessage:"ttl field (timeToLive) is not in standard Protobuf Duration "+"format: ".concat(h.ttl)});case 32:return f=1e3*Number(l[1]),p=Date.now(),e.abrupt("return",{token:h.token,expireTimeMillis:p+f,issuedAtTimeMillis:p});case 35:case"end":return e.stop()}},e,null,[[9,15],[20,26]])}))).apply(this,arguments)}function Ni(e,t){var n=e.options,r=n.projectId,i=n.appId,o=n.apiKey;return{url:"".concat("https://content-firebaseappcheck.googleapis.com/v1","/projects/").concat(r,"/apps/").concat(i,":").concat("exchangeDebugToken","?key=").concat(o),body:{debug_token:t}}}var Li="firebase-app-check-store",Di=null;function ji(){return Di||(Di=new Promise(function(e,t){try{var n=indexedDB.open("firebase-app-check-database",1);n.onsuccess=function(t){e(t.target.result)},n.onerror=function(e){var n;t(Ci.create("storage-open",{originalErrorMessage:null===(n=e.target.error)||void 0===n?void 0:n.message}))},n.onupgradeneeded=function(e){var t=e.target.result;if(0===e.oldVersion)t.createObjectStore(Li,{keyPath:"compositeKey"})}}catch(r){t(Ci.create("storage-open",{originalErrorMessage:null==r?void 0:r.message}))}}))}function Ui(e,t){return function(e,t){return Mi.apply(this,arguments)}(function(e){return"".concat(e.options.appId,"-").concat(e.name)}(e),t)}function Mi(){return(Mi=K(ee.mark(function e(t,n){var r,i,o,a;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ji();case 2:return r=e.sent,i=r.transaction(Li,"readwrite"),o=i.objectStore(Li),a=o.put({compositeKey:t,value:n}),e.abrupt("return",new Promise(function(e,t){a.onsuccess=function(t){e()},i.onerror=function(e){var n;t(Ci.create("storage-set",{originalErrorMessage:null===(n=e.target.error)||void 0===n?void 0:n.message}))}}));case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Fi=new Ne("@firebase/app-check");function Bi(e,t){return ve()?Ui(e,t).catch(function(e){Fi.warn("Failed to write token to IndexedDB. Error: ".concat(e))}):Promise.resolve()}var Vi={error:"UNKNOWN_ERROR"};function Hi(e){return zi.apply(this,arguments)}function zi(){return zi=K(ee.mark(function e(t){var n,r,i,o,a,s,u,c,h,l=arguments;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=l.length>1&&void 0!==l[1]&&l[1],Oi(r=t.app),i=xi(r),o=i.token,a=void 0,o&&!Yi(o)&&(i.token=void 0,o=void 0),o){e.next=18;break}return e.next=10,i.cachedTokenPromise;case 10:if(!(s=e.sent)){e.next=18;break}if(!Yi(s)){e.next=16;break}o=s,e.next=18;break;case 16:return e.next=18,Bi(r,void 0);case 18:if(n||!o||!Yi(o)){e.next=20;break}return e.abrupt("return",{token:o.token});case 20:u=!1,e.next=40;break;case 28:e.t3=e.sent,e.t4=(0,e.t1)(e.t2,e.t3),e.t5=t.heartbeatServiceProvider,i.exchangeTokenPromise=(0,e.t0)(e.t4,e.t5).finally(function(){i.exchangeTokenPromise=void 0}),u=!0;
2case 33:return e.next=35,i.exchangeTokenPromise;case 35:return c=e.sent,e.next=38,Bi(r,c);case 38:return i.token=c,e.abrupt("return",{token:c.token});case 40:return e.prev=40,i.exchangeTokenPromise||(i.exchangeTokenPromise=i.provider.getToken().finally(function(){i.exchangeTokenPromise=void 0}),u=!0),e.next=44,xi(r).exchangeTokenPromise;case 44:o=e.sent,e.next=51;break;case 47:e.prev=47,e.t6=e.catch(40),e.t6.code==="appCheck/".concat("throttled")?Fi.warn(e.t6.message):Fi.error(e.t6),a=e.t6;case 51:if(o){e.next=55;break}h=qi(a),e.next=63;break;case 55:if(!a){e.next=59;break}h=Yi(o)?{token:o.token,internalError:a}:qi(a),e.next=63;break;case 59:return h={token:o.token},i.token=o,e.next=63,Bi(r,o);case 63:return u&&Xi(r,h),e.abrupt("return",h);case 65:case"end":return e.stop()}},e,null,[[40,47]])})),zi.apply(this,arguments)}function Gi(){return(Gi=K(ee.mark(function e(t){var n,r,i,o,a,s,u,c;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Oi(n=t.app),r=xi(n),i=r.provider,e.next=14;break;case 6:return o=e.sent,e.next=9,Ri(Ni(n,o),t.heartbeatServiceProvider);case 9:return a=e.sent,s=a.token,e.abrupt("return",{token:s});case 14:return e.next=16,i.getToken();case 16:return u=e.sent,c=u.token,e.abrupt("return",{token:c});case 19:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Wi(e,t){var n=xi(e),r=n.tokenObservers.filter(function(e){return e.next!==t});0===r.length&&n.tokenRefresher&&n.tokenRefresher.isRunning()&&n.tokenRefresher.stop(),n.tokenObservers=r}function Ki(e){var t=xi(e.app),n=t.tokenRefresher;n||(n=function(e){var t=e.app;return new Ti(K(ee.mark(function n(){var r;return ee.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(xi(t).token){n.next=7;break}return n.next=4,Hi(e);case 4:r=n.sent,n.next=10;break;case 7:return n.next=9,Hi(e,!0);case 9:r=n.sent;case 10:if(!r.error){n.next=12;break}throw r.error;case 12:if(!r.internalError){n.next=14;break}throw r.internalError;case 14:case"end":return n.stop()}},n)})),function(){return!0},function(){var e=xi(t);if(e.token){var n=e.token.issuedAtTimeMillis+.5*(e.token.expireTimeMillis-e.token.issuedAtTimeMillis)+3e5,r=e.token.expireTimeMillis-3e5;return n=Math.min(n,r),Math.max(0,n-Date.now())}return 0},Ei,Si)}(e),t.tokenRefresher=n),!n.isRunning()&&t.isTokenAutoRefreshEnabled&&n.start()}function Xi(e,t){var n,r=bi(xi(e).tokenObservers);try{for(r.s();!(n=r.n()).done;){var i=n.value;try{"EXTERNAL"===i.type&&null!=t.error?i.error(t.error):i.next(t)}catch(o){}}}catch(a){r.e(a)}finally{r.f()}}function Yi(e){return e.expireTimeMillis-Date.now()>0}function qi(e){return{token:(t=Vi,se.encodeString(JSON.stringify(t),!1)),error:e};var t}var Ji=function(){function e(t,n){X(this,e),this.app=t,this.heartbeatServiceProvider=n}return q(e,[{key:"_delete",value:function(){var e,t=bi(xi(this.app).tokenObservers);try{for(t.s();!(e=t.n()).done;){var n=e.value;Wi(this.app,n.next)}}catch(r){t.e(r)}finally{t.f()}return Promise.resolve()}}]),e}();function Qi(e){return{getToken:function(t){return Hi(e,t)},getLimitedUseToken:function(){return function(e){return Gi.apply(this,arguments)}(e)},addTokenListener:function(t){return function(e,t,n,r){var i=xi(e.app),o={next:n,error:r,type:t};if(i.tokenObservers=[].concat(J(i.tokenObservers),[o]),i.token&&Yi(i.token)){var a=i.token;Promise.resolve().then(function(){n({token:a.token}),Ki(e)}).catch(function(){})}i.cachedTokenPromise.then(function(){return Ki(e)})}(e,"INTERNAL",t)},removeTokenListener:function(t){return Wi(e.app,t)}}}var $i="app-check-internal";ct(new Te("app-check",function(e){return function(e,t){return new Ji(e,t)}(e.getProvider("app").getImmediate(),e.getProvider("heartbeat"))},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(function(e,t,n){e.getProvider($i).initialize()})),ct(new Te($i,function(e){return Qi(e.getProvider("app-check").getImmediate())},"PUBLIC").setInstantiationMode("EXPLICIT")),dt("@firebase/app-check","0.8.4");var Zi,eo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function to(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return no(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return no(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function no(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ro(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var i=j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return V(this,n)}}(function(){var e;function t(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function n(e,t,n){n||(n=0);var r=Array(16);if("string"==typeof t)for(var i=0;16>i;++i)r[i]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(i=0;16>i;++i)r[i]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],i=e.g[2];var o=e.g[3],a=t+(o^n&(i^o))+r[0]+3614090360&4294967295;a=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=(n=(i=(o=(t=n+(a<<7&4294967295|a>>>25))+((a=o+(i^t&(n^i))+r[1]+3905402710&4294967295)<<12&4294967295|a>>>20))+((a=i+(n^o&(t^n))+r[2]+606105819&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^i&(o^t))+r[3]+3250441966&4294967295)<<22&4294967295|a>>>10))+((a=t+(o^n&(i^o))+r[4]+4118548399&4294967295)<<7&4294967295|a>>>25))+((a=o+(i^t&(n^i))+r[5]+1200080426&4294967295)<<12&4294967295|a>>>20))+((a=i+(n^o&(t^n))+r[6]+2821735955&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^i&(o^t))+r[7]+4249261313&4294967295)<<22&4294967295|a>>>10))+((a=t+(o^n&(i^o))+r[8]+1770035416&4294967295)<<7&4294967295|a>>>25))+((a=o+(i^t&(n^i))+r[9]+2336552879&4294967295)<<12&4294967295|a>>>20))+((a=i+(n^o&(t^n))+r[10]+4294925233&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^i&(o^t))+r[11]+2304563134&4294967295)<<22&4294967295|a>>>10))+((a=t+(o^n&(i^o))+r[12]+1804603682&4294967295)<<7&4294967295|a>>>25))+((a=o+(i^t&(n^i))+r[13]+4254626195&4294967295)<<12&4294967295|a>>>20))+((a=i+(n^o&(t^n))+r[14]+2792965006&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^i&(o^t))+r[15]+1236535329&4294967295)<<22&4294967295|a>>>10))+((a=t+(i^o&(n^i))+r[1]+4129170786&4294967295)<<5&4294967295|a>>>27))+((a=o+(n^i&(t^n))+r[6]+3225465664&4294967295)<<9&4294967295|a>>>23))+((a=i+(t^n&(o^t))+r[11]+643717713&4294967295)<<14&4294967295|a>>>18))+((a=n+(o^t&(i^o))+r[0]+3921069994&4294967295)<<20&4294967295|a>>>12))+((a=t+(i^o&(n^i))+r[5]+3593408605&4294967295)<<5&4294967295|a>>>27))+((a=o+(n^i&(t^n))+r[10]+38016083&4294967295)<<9&4294967295|a>>>23))+((a=i+(t^n&(o^t))+r[15]+3634488961&4294967295)<<14&4294967295|a>>>18))+((a=n+(o^t&(i^o))+r[4]+3889429448&4294967295)<<20&4294967295|a>>>12))+((a=t+(i^o&(n^i))+r[9]+568446438&4294967295)<<5&4294967295|a>>>27))+((a=o+(n^i&(t^n))+r[14]+3275163606&4294967295)<<9&4294967295|a>>>23))+((a=i+(t^n&(o^t))+r[3]+4107603335&4294967295)<<14&4294967295|a>>>18))+((a=n+(o^t&(i^o))+r[8]+1163531501&4294967295)<<20&4294967295|a>>>12))+((a=t+(i^o&(n^i))+r[13]+2850285829&4294967295)<<5&4294967295|a>>>27))+((a=o+(n^i&(t^n))+r[2]+4243563512&4294967295)<<9&4294967295|a>>>23))+((a=i+(t^n&(o^t))+r[7]+1735328473&4294967295)<<14&4294967295|a>>>18))+((a=n+(o^t&(i^o))+r[12]+2368359562&4294967295)<<20&4294967295|a>>>12))+((a=t+(n^i^o)+r[5]+4294588738&4294967295)<<4&4294967295|a>>>28))+((a=o+(t^n^i)+r[8]+2272392833&4294967295)<<11&4294967295|a>>>21))+((a=i+(o^t^n)+r[11]+1839030562&4294967295)<<16&4294967295|a>>>16))+((a=n+(i^o^t)+r[14]+4259657740&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^i^o)+r[1]+2763975236&4294967295)<<4&4294967295|a>>>28))+((a=o+(t^n^i)+r[4]+1272893353&4294967295)<<11&4294967295|a>>>21))+((a=i+(o^t^n)+r[7]+4139469664&4294967295)<<16&4294967295|a>>>16))+((a=n+(i^o^t)+r[10]+3200236656&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^i^o)+r[13]+681279174&4294967295)<<4&4294967295|a>>>28))+((a=o+(t^n^i)+r[0]+3936430074&4294967295)<<11&4294967295|a>>>21))+((a=i+(o^t^n)+r[3]+3572445317&4294967295)<<16&4294967295|a>>>16))+((a=n+(i^o^t)+r[6]+76029189&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^i^o)+r[9]+3654602809&4294967295)<<4&4294967295|a>>>28))+((a=o+(t^n^i)+r[12]+3873151461&4294967295)<<11&4294967295|a>>>21))+((a=i+(o^t^n)+r[15]+530742520&4294967295)<<16&4294967295|a>>>16))+((a=n+(i^o^t)+r[2]+3299628645&4294967295)<<23&4294967295|a>>>9))+((a=t+(i^(n|~o))+r[0]+4096336452&4294967295)<<6&4294967295|a>>>26))+((a=o+(n^(t|~i))+r[7]+1126891415&4294967295)<<10&4294967295|a>>>22))+((a=i+(t^(o|~n))+r[14]+2878612391&4294967295)<<15&4294967295|a>>>17))+((a=n+(o^(i|~t))+r[5]+4237533241&4294967295)<<21&4294967295|a>>>11))+((a=t+(i^(n|~o))+r[12]+1700485571&4294967295)<<6&4294967295|a>>>26))+((a=o+(n^(t|~i))+r[3]+2399980690&4294967295)<<10&4294967295|a>>>22))+((a=i+(t^(o|~n))+r[10]+4293915773&4294967295)<<15&4294967295|a>>>17))+((a=n+(o^(i|~t))+r[1]+2240044497&4294967295)<<21&4294967295|a>>>11))+((a=t+(i^(n|~o))+r[8]+1873313359&4294967295)<<6&4294967295|a>>>26))+((a=o+(n^(t|~i))+r[15]+4264355552&4294967295)<<10&4294967295|a>>>22))+((a=i+(t^(o|~n))+r[6]+2734768916&4294967295)<<15&4294967295|a>>>17))+((a=n+(o^(i|~t))+r[13]+1309151649&4294967295)<<21&4294967295|a>>>
211))+((o=(t=n+((a=t+(i^(n|~o))+r[4]+4149444226&4294967295)<<6&4294967295|a>>>26))+((a=o+(n^(t|~i))+r[11]+3174756917&4294967295)<<10&4294967295|a>>>22))^((i=o+((a=i+(t^(o|~n))+r[2]+718787259&4294967295)<<15&4294967295|a>>>17))|~t))+r[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(i+(a<<21&4294967295|a>>>11))&4294967295,e.g[2]=e.g[2]+i&4294967295,e.g[3]=e.g[3]+o&4294967295}function r(e,t){this.h=t;for(var n=[],r=!0,i=e.length-1;0<=i;i--){var o=0|e[i];r&&o==t||(n[i]=o,r=!1)}this.g=n}!function(e,t){function n(){}n.prototype=t.prototype,e.D=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.C=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}(t,function(){this.blockSize=-1}),t.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},t.prototype.u=function(e,t){void 0===t&&(t=e.length);for(var r=t-this.blockSize,i=this.B,o=this.h,a=0;a<t;){if(0==o)for(;a<=r;)n(this,e,a),a+=this.blockSize;if("string"==typeof e){for(;a<t;)if(i[o++]=e.charCodeAt(a++),o==this.blockSize){n(this,i),o=0;break}}else for(;a<t;)if(i[o++]=e[a++],o==this.blockSize){n(this,i),o=0;break}}this.h=o,this.o+=t},t.prototype.v=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;var n=8*this.o;for(t=e.length-8;t<e.length;++t)e[t]=255&n,n/=256;for(this.u(e),e=Array(16),t=n=0;4>t;++t)for(var r=0;32>r;r+=8)e[n++]=this.g[t]>>>r&255;return e};var i={};function o(e){return-128<=e&&128>e?function(e,t){var n=i;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,function(e){return new r([0|e],0>e?-1:0)}):new r([0|e],0>e?-1:0)}function a(e){if(isNaN(e)||!isFinite(e))return s;if(0>e)return f(a(-e));for(var t=[],n=1,i=0;e>=n;i++)t[i]=e/n|0,n*=4294967296;return new r(t,0)}var s=o(0),u=o(1),c=o(16777216);function h(e){if(0!=e.h)return!1;for(var t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function l(e){return-1==e.h}function f(e){for(var t=e.g.length,n=[],i=0;i<t;i++)n[i]=~e.g[i];return new r(n,~e.h).add(u)}function p(e,t){return e.add(f(t))}function d(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function v(e,t){this.g=e,this.h=t}function g(e,t){if(h(t))throw Error("division by zero");if(h(e))return new v(s,s);if(l(e))return t=g(f(e),t),new v(f(t.g),f(t.h));if(l(t))return t=g(e,f(t)),new v(f(t.g),t.h);if(30<e.g.length){if(l(e)||l(t))throw Error("slowDivide_ only works with positive integers.");for(var n=u,r=t;0>=r.l(e);)n=y(n),r=y(r);var i=m(n,1),o=m(r,1);for(r=m(r,2),n=m(n,2);!h(r);){var c=o.add(r);0>=c.l(e)&&(i=i.add(n),o=c),r=m(r,1),n=m(n,1)}return t=p(e,i.j(t)),new v(i,t)}for(i=s;0<=e.l(t);){for(n=Math.max(1,Math.floor(e.m()/t.m())),r=48>=(r=Math.ceil(Math.log(n)/Math.LN2))?1:Math.pow(2,r-48),c=(o=a(n)).j(t);l(c)||0<c.l(e);)c=(o=a(n-=r)).j(t);h(o)&&(o=u),i=i.add(o),e=p(e,c)}return new v(i,e)}function y(e){for(var t=e.g.length+1,n=[],i=0;i<t;i++)n[i]=e.i(i)<<1|e.i(i-1)>>>31;return new r(n,e.h)}function m(e,t){var n=t>>5;t%=32;for(var i=e.g.length-n,o=[],a=0;a<i;a++)o[a]=0<t?e.i(a+n)>>>t|e.i(a+n+1)<<32-t:e.i(a+n);return new r(o,e.h)}(e=r.prototype).m=function(){if(l(this))return-f(this).m();for(var e=0,t=1,n=0;n<this.g.length;n++){var r=this.i(n);e+=(0<=r?r:4294967296+r)*t,t*=4294967296}return e},e.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(h(this))return"0";if(l(this))return"-"+f(this).toString(e);for(var t=a(Math.pow(e,6)),n=this,r="";;){var i=g(n,t).g,o=((0<(n=p(n,i.j(t))).g.length?n.g[0]:n.h)>>>0).toString(e);if(h(n=i))return o+r;for(;6>o.length;)o="0"+o;r=o+r}},e.i=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h},e.l=function(e){return l(e=p(this,e))?-1:h(e)?0:1},e.abs=function(){return l(this)?f(this):this},e.add=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],i=0,o=0;o<=t;o++){var a=i+(65535&this.i(o))+(65535&e.i(o)),s=(a>>>16)+(this.i(o)>>>16)+(e.i(o)>>>16);i=s>>>16,a&=65535,s&=65535,n[o]=s<<16|a}return new r(n,-2147483648&n[n.length-1]?-1:0)},e.j=function(e){if(h(this)||h(e))return s;if(l(this))return l(e)?f(this).j(f(e)):f(f(this).j(e));if(l(e))return f(this.j(f(e)));if(0>this.l(c)&&0>e.l(c))return a(this.m()*e.m());for(var t=this.g.length+e.g.length,n=[],i=0;i<2*t;i++)n[i]=0;for(i=0;i<this.g.length;i++)for(var o=0;o<e.g.length;o++){var u=this.i(i)>>>16,p=65535&this.i(i),v=e.i(o)>>>16,g=65535&e.i(o);n[2*i+2*o]+=p*g,d(n,2*i+2*o),n[2*i+2*o+1]+=u*g,d(n,2*i+2*o+1),n[2*i+2*o+1]+=p*v,d(n,2*i+2*o+1),n[2*i+2*o+2]+=u*v,d(n,2*i+2*o+2)}for(i=0;i<t;i++)n[i]=n[2*i+1]<<16|n[2*i];for(i=t;i<2*t;i++)n[i]=0;return new r(n,0)},e.A=function(e){return g(this,e).h},e.and=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],i=0;i<t;i++)n[i]=this.i(i)&e.i(i);return new r(n,this.h&e.h)},e.or=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],i=0;i<t;i++)n[i]=this.i(i)|e.i(i);return new r(n,this.h|e.h)},e.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],i=0;i<t;i++)n[i]=this.i(i)^e.i(i);return new r(n,this.h^e.h)},t.prototype.digest=t.prototype.v,t.prototype.reset=t.prototype.s,t.prototype.update=t.prototype.u,r.prototype.add=r.prototype.add,r.prototype.multiply=r.prototype.j,r.prototype.modulo=r.prototype.A,r.prototype.compare=r.prototype.l,r.prototype.toNumber=r.prototype.m,r.prototype.toString=r.prototype.toString,r.prototype.getBits=r.prototype.i,r.fromNumber=a,r.fromString=function e(t,n){if(0==t.length)throw Error("number format error: empty string");if(2>(n=n||10)||36<n)throw Error("radix out of range: "+n);
2if("-"==t.charAt(0))return f(e(t.substring(1),n));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');for(var r=a(Math.pow(n,8)),i=s,o=0;o<t.length;o+=8){var u=Math.min(8,t.length-o),c=parseInt(t.substring(o,o+u),n);8>u?(u=a(Math.pow(n,u)),i=i.j(u).add(a(c))):i=(i=i.j(r)).add(a(c))}return i},Zi=r}).apply(void 0!==eo?eo:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var io="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function oo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ao(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ao(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function so(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var i=j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return V(this,n)}}(function(){var e,t="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var n=function(e){e=["object"==("undefined"==typeof globalThis?"undefined":L(globalThis))&&globalThis,e,"object"==("undefined"==typeof window?"undefined":L(window))&&window,"object"==("undefined"==typeof self?"undefined":L(self))&&self,"object"==L(io)&&io];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);!function(e,r){if(r)e:{var i=n;e=e.split(".");for(var o=0;o<e.length-1;o++){var a=e[o];if(!(a in i))break e;i=i[a]}(r=r(o=i[e=e[e.length-1]]))!=o&&null!=r&&t(i,e,{configurable:!0,writable:!0,value:r})}}("Array.prototype.values",function(e){return e||function(){return function(e,t){e instanceof String&&(e+="");var n=0,r=!1,i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}(this,function(e,t){return t})}});var r=r||{},i=this||self;function o(e){var t=L(e);return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function a(e){var t=L(e);return"object"==t&&null!=e||"function"==t}function s(e,t,n){return e.call.apply(e.bind,arguments)}function u(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function c(e,t,n){return(c=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?s:u).apply(null,arguments)}function h(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 l(e,t){function n(){}n.prototype=t.prototype,e.aa=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Qb=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}function f(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function p(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(o(r)){var i=e.length||0,a=r.length||0;e.length=i+a;for(var s=0;s<a;s++)e[i+s]=r[s]}else e.push(r)}}var d=function(){function e(t,n){X(this,e),this.i=t,this.j=n,this.h=0,this.g=null}return q(e,[{key:"get",value:function(){var e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}]),e}();function v(e){return/^[\s\xa0]*$/.test(e)}function g(){var e=i.navigator;return e&&(e=e.userAgent)?e:""}function y(e){return y[" "](e),e}y[" "]=function(){};var m=!(-1==g().indexOf("Gecko")||-1!=g().toLowerCase().indexOf("webkit")&&-1==g().indexOf("Edge")||-1!=g().indexOf("Trident")||-1!=g().indexOf("MSIE")||-1!=g().indexOf("Edge"));function b(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function k(e){var t={};for(var n in e)t[n]=e[n];return t}var w="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
2ing toString valueOf".split(" ");function _(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var o=0;o<w.length;o++)n=w[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function x(e){var t=1;e=e.split(":");for(var n=[];0<t&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(":")),n}function E(e){i.setTimeout(function(){throw e},0)}function S(){var e=R,t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var T,I=function(){function e(){X(this,e),this.h=this.g=null}return q(e,[{key:"add",value:function(e,t){var n=A.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}}]),e}(),A=new d(function(){return new C},function(e){return e.reset()}),C=function(){function e(){X(this,e),this.next=this.g=this.h=null}return q(e,[{key:"set",value:function(e,t){this.h=e,this.g=t,this.next=null}},{key:"reset",value:function(){this.next=this.g=this.h=null}}]),e}(),O=!1,R=new I,P=function(){var e=i.Promise.resolve(void 0);T=function(){e.then(N)}},N=function(){for(var e;e=S();){try{e.h.call(e.g)}catch(n){E(n)}var t=A;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}O=!1};function D(){this.s=this.s,this.C=this.C}function M(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}D.prototype.s=!1,D.prototype.ma=function(){this.s||(this.s=!0,this.N())},D.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},M.prototype.h=function(){this.defaultPrevented=!0};var F=function(){if(!i.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{var n=function(){};i.addEventListener("test",n,t),i.removeEventListener("test",n,t)}catch(n){}return e}();function V(e,t){if(M.call(this,e?e.type:""),this.relatedTarget=this.g=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.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(m){e:{try{y(t.nodeName);var i=!0;break e}catch(o){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.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="string"==typeof e.pointerType?e.pointerType:H[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&V.aa.h.call(this)}}l(V,M);var H={2:"touch",3:"pen",4:"mouse"};V.prototype.h=function(){V.aa.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var z="closure_listenable_"+(1e6*Math.random()|0),W=0;function K(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ha=i,this.key=++W,this.da=this.fa=!1}function Y(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function J(e){this.src=e,this.g={},this.h=0}function Q(e,t){var n=t.type;if(n in e.g){var r,i=e.g[n],o=Array.prototype.indexOf.call(i,t,void 0);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(Y(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function $(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.da&&o.listener==t&&o.capture==!!n&&o.ha==r)return i}return-1}J.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.g[o])||(e=this.g[o]=[],this.h++);var a=$(e,t,r,i);return-1<a?(t=e[a],n||(t.fa=!1)):((t=new K(t,this.src,o,!!r,i)).fa=n,e.push(t)),t};var Z="closure_lm_"+(1e6*Math.random()|0),ee={};function te(e,t,n,r,i){if(r&&r.once)return re(e,t,n,r,i);if(Array.isArray(t)){for(var o=0;o<t.length;o++)te(e,t[o],n,r,i);return null}return n=he(n),e&&e[z]?e.K(t,n,a(r)?!!r.capture:!!r,i):ne(e,t,n,!1,r,i)}function ne(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var s=a(i)?!!i.capture:!!i,u=ue(e);
2if(u||(e[Z]=u=new J(e)),(n=u.add(t,n,r,s,o)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}var t=se;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)F||(i=s),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(ae(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function re(e,t,n,r,i){if(Array.isArray(t)){for(var o=0;o<t.length;o++)re(e,t[o],n,r,i);return null}return n=he(n),e&&e[z]?e.L(t,n,a(r)?!!r.capture:!!r,i):ne(e,t,n,!0,r,i)}function ie(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)ie(e,t[o],n,r,i);else r=a(r)?!!r.capture:!!r,n=he(n),e&&e[z]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=$(o=e.g[t],n,r,i))&&(Y(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.g[t],e.h--)))):e&&(e=ue(e))&&(t=e.g[t.toString()],e=-1,t&&(e=$(t,n,r,i)),(n=-1<e?t[e]:null)&&oe(n))}function oe(e){if("number"!=typeof e&&e&&!e.da){var t=e.src;if(t&&t[z])Q(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(ae(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=ue(t))?(Q(n,e),0==n.h&&(n.src=null,t[Z]=null)):Y(e)}}}function ae(e){return e in ee?ee[e]:ee[e]="on"+e}function se(e,t){if(e.da)e=!0;else{t=new V(t,this);var n=e.listener,r=e.ha||e.src;e.fa&&oe(e),e=n.call(r,t)}return e}function ue(e){return(e=e[Z])instanceof J?e:null}var ce="__closure_events_fn_"+(1e9*Math.random()>>>0);function he(e){return"function"==typeof e?e:(e[ce]||(e[ce]=function(t){return e.handleEvent(t)}),e[ce])}function le(){D.call(this),this.i=new J(this),this.M=this,this.F=null}function fe(e,t){var n,r=e.F;if(r)for(n=[];r;r=r.F)n.push(r);if(e=e.M,r=t.type||t,"string"==typeof t)t=new M(t,e);else if(t instanceof M)t.target=t.target||e;else{var i=t;_(t=new M(r,e),i)}if(i=!0,n)for(var o=n.length-1;0<=o;o--){var a=t.g=n[o];i=pe(a,r,!0,t)&&i}if(i=pe(a=t.g=e,r,!0,t)&&i,i=pe(a,r,!1,t)&&i,n)for(o=0;o<n.length;o++)i=pe(a=t.g=n[o],r,!1,t)&&i}function pe(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.da&&a.capture==n){var s=a.listener,u=a.ha||a.src;a.fa&&Q(e.i,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}function de(e,t,n){if("function"==typeof e)n&&(e=c(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=c(e.handleEvent,e)}return 2147483647<Number(t)?-1:i.setTimeout(e,t||0)}function ve(e){e.g=de(function(){e.g=null,e.i&&(e.i=!1,ve(e))},e.l);var t=e.h;e.h=null,e.m.apply(null,t)}l(le,D),le.prototype[z]=!0,le.prototype.removeEventListener=function(e,t,n,r){ie(this,e,t,n,r)},le.prototype.N=function(){if(le.aa.N.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)Y(n[r]);delete t.g[e],t.h--}}this.F=null},le.prototype.K=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},le.prototype.L=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};var ge=function(e){B(n,e);var t=ro(n);function n(e,r){var i;return X(this,n),(i=t.call(this)).m=e,i.l=r,i.h=null,i.i=!1,i.g=null,i}return q(n,[{key:"j",value:function(e){this.h=arguments,this.g?this.i=!0:ve(this)}},{key:"N",value:function(){U(j(n.prototype),"N",this).call(this),this.g&&(i.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}]),n}(D);function ye(e){D.call(this),this.h=e,this.g={}}l(ye,D);var me=[];function be(e){b(e.g,function(e,t){this.g.hasOwnProperty(t)&&oe(e)},e),e.g={}}ye.prototype.N=function(){ye.aa.N.call(this),be(this)},ye.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var ke=i.JSON.stringify,we=i.JSON.parse,_e=function(){function e(){X(this,e)}return q(e,[{key:"stringify",value:function(e){return i.JSON.stringify(e,void 0)}},{key:"parse",value:function(e){return i.JSON.parse(e,void 0)}}]),e}();function xe(){}function Ee(e){return e.h||(e.h=e.i())}xe.prototype.h=null;var Se={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function Te(){M.call(this,"d")}function Ie(){M.call(this,"c")}l(Te,M),l(Ie,M);var Ae={},Ce=null;function Oe(){return Ce=Ce||new le}function Re(e){M.call(this,Ae.La,e)}function Pe(e){var t=Oe();fe(t,new Re(t))}function Ne(e,t){M.call(this,Ae.STAT_EVENT,e),this.stat=t}function Le(e){var t=Oe();fe(t,new Ne(t,e))}function De(e,t){M.call(this,Ae.Ma,e),this.size=t}function je(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return i.setTimeout(function(){e()},t)}function Ue(){this.g=!0}function Me(e,t,n,r){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var a=1;a<i.length;a++)i[a]=""}}}return ke(n)}catch(s){return t}}(e,n)+(r?" "+r:"")})}Ae.La="serverreachability",l(Re,M),Ae.STAT_EVENT="statevent",l(Ne,M),Ae.Ma="timingevent",l(De,M),Ue.prototype.xa=function(){this.g=!1},Ue.prototype.info=function(){};var Fe,Be={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9};function Ve(){}function He(e,t,n,r){this.j=e,this.i=t,this.l=n,this.R=r||1,this.U=new ye(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new ze}function ze(){this.i=null,this.g="",this.h=!1}l(Ve,xe),Ve.prototype.g=function(){return new XMLHttpRequest},Ve.prototype.i=function(){return{}},Fe=new Ve;var Ge={},We={};function Ke(e,t,n){e.L=1,e.v=mt(pt(t)),e.m=n,e.P=!0,Xe(e,null)}function Xe(e,t){e.F=Date.now(),Je(e),e.A=pt(e.v);var n=e.A,r=e.R;Array.isArray(r)||(r=[String(r)]),Pt(n.i,"t",r),e.C=0,n=e.j.J,e.h=new ze,e.g=kn(e.j,n?t:null,!e.m),
20<e.O&&(e.M=new ge(c(e.Y,e,e.g),e.O)),t=e.U,n=e.g,r=e.ca;var i="readystatechange";Array.isArray(i)||(i&&(me[0]=i.toString()),i=me);for(var o=0;o<i.length;o++){var a=te(n,i[o],r||t.handleEvent,!1,t.h||t);if(!a)break;t.g[a.key]=a}t=e.H?k(e.H):{},e.m?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.m,t)):(e.u="GET",e.g.ea(e.A,e.u,null,t)),Pe(),function(e,t,n,r,i,o){e.info(function(){if(e.g)if(o)for(var a="",s=o.split("&"),u=0;u<s.length;u++){var c=s[u].split("=");if(1<c.length){var h=c[0];c=c[1];var l=h.split("_");a=2<=l.length&&"type"==l[1]?a+(h+"=")+c+"&":a+(h+"=redacted&")}}else a=null;else a=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+a})}(e.i,e.u,e.A,e.l,e.R,e.m)}function Ye(e){return!!e.g&&("GET"==e.u&&2!=e.L&&e.j.Ca)}function qe(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?We:(n=Number(t.substring(n,r)),isNaN(n)?Ge:(r+=1)+n>t.length?We:(t=t.slice(r,r+n),e.C=r+n,t))}function Je(e){e.S=Date.now()+e.I,Qe(e,e.I)}function Qe(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=je(c(e.ba,e),t)}function $e(e){e.B&&(i.clearTimeout(e.B),e.B=null)}function Ze(e){0==e.j.G||e.J||vn(e.j,e)}function et(e){$e(e);var t=e.M;t&&"function"==typeof t.ma&&t.ma(),e.M=null,be(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.ma())}function tt(e,t){try{var n=e.j;if(0!=n.G&&(n.g==e||at(n.h,e)))if(!e.K&&at(n.h,e)&&3==n.G){try{var r=n.Da.g.parse(t)}catch(o){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.u){if(n.g){if(!(n.g.F+3e3<e.F))break e;dn(n),rn(n)}ln(n),Le(18)}}else n.za=i[1],0<n.za-n.T&&37500>i[2]&&n.F&&0==n.v&&!n.C&&(n.C=je(c(n.Za,n),6e3));if(1>=ot(n.h)&&n.ca){try{n.ca()}catch(o){}n.ca=void 0}}else yn(n,11)}else if((e.K||n.g==e)&&dn(n),!v(t))for(i=n.Da.g.parse(t),t=0;t<i.length;t++){var o=i[t];if(n.T=o[0],o=o[1],2==n.G)if("c"==o[0]){n.K=o[1],n.ia=o[2];var a=o[3];null!=a&&(n.la=a,n.j.info("VER="+n.la));var s=o[4];null!=s&&(n.Aa=s,n.j.info("SVER="+n.Aa));var u=o[5];null!=u&&"number"==typeof u&&0<u&&(r=1.5*u,n.L=r,n.j.info("backChannelRequestTimeoutMs_="+r)),r=n;var h=e.g;if(h){var l=h.g?h.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(l){var f=r.h;f.g||-1==l.indexOf("spdy")&&-1==l.indexOf("quic")&&-1==l.indexOf("h2")||(f.j=f.l,f.g=new Set,f.h&&(st(f,f.h),f.h=null))}if(r.D){var p=h.g?h.g.getResponseHeader("X-HTTP-Session-Id"):null;p&&(r.ya=p,yt(r.I,r.D,p))}}n.G=3,n.l&&n.l.ua(),n.ba&&(n.R=Date.now()-e.F,n.j.info("Handshake RTT: "+n.R+"ms"));var d=e;if((r=n).qa=bn(r,r.J?r.ia:null,r.W),d.K){ut(r.h,d);var g=d,y=r.L;y&&(g.I=y),g.B&&($e(g),Je(g)),r.g=d}else hn(r);0<n.i.length&&an(n)}else"stop"!=o[0]&&"close"!=o[0]||yn(n,7);else 3==n.G&&("stop"==o[0]||"close"==o[0]?"stop"==o[0]?yn(n,7):nn(n):"noop"!=o[0]&&n.l&&n.l.ta(o),n.v=0)}Pe()}catch(o){}}He.prototype.ca=function(e){e=e.target;var t=this.M;t&&3==$t(e)?t.j():this.Y(e)},He.prototype.Y=function(e){try{if(e==this.g)e:{var t=$t(this.g),n=this.g.Ba();this.g.Z();if(!(3>t)&&(3!=t||this.g&&(this.h.h||this.g.oa()||Zt(this.g)))){this.J||4!=t||7==n||Pe(),$e(this);var r=this.g.Z();this.X=r;t:if(Ye(this)){var o=Zt(this.g);e="";var a=o.length,s=4==$t(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){et(this),Ze(this);var u="";break t}this.h.i=new i.TextDecoder}for(n=0;n<a;n++)this.h.h=!0,e+=this.h.i.decode(o[n],{stream:!(s&&n==a-1)});o.length=0,this.h.g+=e,this.C=0,u=this.h.g}else u=this.g.oa();if(this.o=200==r,function(e,t,n,r,i,o,a){e.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+o+" "+a})}(this.i,this.u,this.A,this.l,this.R,t,r),this.o){if(this.T&&!this.K){t:{if(this.g){var c,h=this.g;if((c=h.g?h.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!v(c)){var l=c;break t}}l=null}if(!(r=l)){this.o=!1,this.s=3,Le(12),et(this),Ze(this);break e}Me(this.i,this.l,r,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,tt(this,r)}if(this.P){var f;for(r=!0;!this.J&&this.C<u.length;){if((f=qe(this,u))==We){4==t&&(this.s=4,Le(14),r=!1),Me(this.i,this.l,null,"[Incomplete Response]");break}if(f==Ge){this.s=4,Le(15),Me(this.i,this.l,u,"[Invalid Chunk]"),r=!1;break}Me(this.i,this.l,f,null),tt(this,f)}if(Ye(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=t||0!=u.length||this.h.h||(this.s=1,Le(16),r=!1),this.o=this.o&&r,r){if(0<u.length&&!this.W){this.W=!0;var p=this.j;p.g==this&&p.ba&&!p.M&&(p.j.info("Great, no buffering proxy detected. Bytes received: "+u.length),fn(p),p.M=!0,Le(11))}}else Me(this.i,this.l,u,"[Invalid Chunked Response]"),et(this),Ze(this)}else Me(this.i,this.l,u,null),tt(this,u);4==t&&et(this),this.o&&!this.J&&(4==t?vn(this.j,this):(this.o=!1,Je(this)))}else(function(e){var t={};e=(e.g&&2<=$t(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(var n=0;n<e.length;n++)if(!v(e[n])){var r=x(e[n]),i=r[0];if("string"==typeof(r=r[1])){r=r.trim();var o=t[i]||[];t[i]=o,o.push(r)}}!function(e,t){for(var n in e)t.call(void 0,e[n],n,e)}(t,function(e){return e.join(", ")})})(this.g),400==r&&0<u.indexOf("Unknown SID")?(this.s=3,Le(12)):(this.s=0,Le(13)),et(this),Ze(this)}}}catch(t){}},He.prototype.cancel=function(){this.J=!0,et(this)},He.prototype.ba=function(){this.B=null;var e=Date.now();0<=e-this.S?(function(e,t){e.info(function(){return"TIMEOUT: "+t})}(this.i,this.A),2!=this.L&&(Pe(),Le(17)),et(this),this.s=2,Ze(this)):Qe(this,this.S-e)};var nt=q(function e(t,n){X(this,e),this.g=t,this.map=n});function rt(e){this.l=e||10,i.PerformanceNavigationTiming?e=0<(e=i.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(i.chrome&&i.chrome.loadTimes&&i.chrome.loadTimes()&&i.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function it(e){return!!e.h||!!e.g&&e.g.size>=e.j}function ot(e){return e.h?1:e.g?e.g.size:0}function at(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function st(e,t){e.g?e.g.add(t):e.h=t}function ut(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function ct(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){var t,n=e.i,r=to(e.g.values());try{for(r.s();!(t=r.n()).done;){var i=t.value;n=n.concat(i.D)}}catch(o){r.e(o)}finally{r.f()}return n}return f(e.i)}function ht(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(o(e)||"string"==typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var n=function(e){if(e.na&&"function"==typeof e.na)return e.na();if(!e.V||"function"!=typeof e.V){if("undefined"!=typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!=typeof Set&&e instanceof Set)){if(o(e)||"string"==typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var r in t=[],n=0,e)t[n++]=r;return t}}}(e),r=function(e){if(e.V&&"function"==typeof e.V)return e.V();if("undefined"!=typeof Map&&e instanceof Map||"undefined"!=typeof Set&&e instanceof Set)return Array.from(e.values());if("string"==typeof e)return e.split("");
2if(o(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e),i=r.length,a=0;a<i;a++)t.call(void 0,r[a],n&&n[a],e)}rt.prototype.cancel=function(){if(this.i=ct(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){var e,t=to(this.g.values());try{for(t.s();!(e=t.n()).done;){e.value.cancel()}}catch(n){t.e(n)}finally{t.f()}this.g.clear()}};var lt=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function ft(e){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,e instanceof ft){this.h=e.h,dt(this,e.j),this.o=e.o,this.g=e.g,vt(this,e.s),this.l=e.l;var t=e.i,n=new At;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),gt(this,n),this.m=e.m}else e&&(t=String(e).match(lt))?(this.h=!1,dt(this,t[1]||"",!0),this.o=bt(t[2]||""),this.g=bt(t[3]||"",!0),vt(this,t[4]),this.l=bt(t[5]||"",!0),gt(this,t[6]||"",!0),this.m=bt(t[7]||"")):(this.h=!1,this.i=new At(null,this.h))}function pt(e){return new ft(e)}function dt(e,t,n){e.j=n?bt(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function vt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.s=t}else e.s=null}function gt(e,t,n){t instanceof At?(e.i=t,function(e,t){t&&!e.j&&(Ct(e),e.i=null,e.g.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(Ot(this,t),Pt(this,n,e))},e)),e.j=t}(e.i,e.h)):(n||(t=kt(t,Tt)),e.i=new At(t,e.h))}function yt(e,t,n){e.i.set(t,n)}function mt(e){return yt(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function bt(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function kt(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,wt),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function wt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}ft.prototype.toString=function(){var e=[],t=this.j;t&&e.push(kt(t,xt,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(kt(t,xt,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.s)&&e.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(kt(n,"/"==n.charAt(0)?St:Et,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.m)&&e.push("#",kt(n,It)),e.join("")};var _t,xt=/[#\/\?@]/g,Et=/[#\?:]/g,St=/[#\?]/g,Tt=/[#\?@]/g,It=/#/g;function At(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function Ct(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function Ot(e,t){Ct(e),t=Nt(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function Rt(e,t){return Ct(e),t=Nt(e,t),e.g.has(t)}function Pt(e,t,n){Ot(e,t),0<n.length&&(e.i=null,e.g.set(Nt(e,t),f(n)),e.h+=n.length)}function Nt(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function Lt(e,t,n,r,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),r(n)}catch(o){}}function Dt(){this.g=new _e}function jt(e,t,n){var r=n||"";try{ht(e,function(e,n){var i=e;a(e)&&(i=ke(e)),t.push(r+n+"="+encodeURIComponent(i))})}catch(i){throw t.push(r+"type="+encodeURIComponent("_badmap")),i}}function Ut(e){this.l=e.Ub||null,this.j=e.eb||!1}function Mt(e,t){le.call(this),this.D=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}function Ft(e){e.j.read().then(e.Pa.bind(e)).catch(e.ga.bind(e))}function Bt(e){e.readyState=4,e.l=null,e.j=null,e.v=null,Vt(e)}function Vt(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Ht(e){var t="";return b(e,function(e,n){t+=n,t+=":",t+=e,t+="\r\n"}),t}function zt(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=Ht(n),"string"==typeof e?null!=n&&encodeURIComponent(String(n)):yt(e,t,n))}function Gt(e){le.call(this),this.headers=new Map,this.o=e||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}(e=At.prototype).add=function(e,t){Ct(this),this.i=null,e=Nt(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},e.forEach=function(e,t){Ct(this),this.g.forEach(function(n,r){n.forEac
2h(function(n){e.call(t,n,r,this)},this)},this)},e.na=function(){Ct(this);for(var e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},e.V=function(e){Ct(this);var t=[];if("string"==typeof e)Rt(this,e)&&(t=t.concat(this.g.get(Nt(this,e))));else{e=Array.from(this.g.values());for(var n=0;n<e.length;n++)t=t.concat(e[n])}return t},e.set=function(e,t){return Ct(this),this.i=null,Rt(this,e=Nt(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},e.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var e=[],t=Array.from(this.g.keys()),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r)),o=this.V(r);for(r=0;r<o.length;r++){var a=i;""!==o[r]&&(a+="="+encodeURIComponent(String(o[r]))),e.push(a)}}return this.i=e.join("&")},l(Ut,xe),Ut.prototype.g=function(){return new Mt(this.l,this.j)},Ut.prototype.i=(_t={},function(){return _t}),l(Mt,le),(e=Mt.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.B=e,this.A=t,this.readyState=1,Vt(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var t={headers:this.u,method:this.B,credentials:this.m,cache:void 0};e&&(t.body=e),(this.D||i).fetch(new Request(this.A,t)).then(this.Sa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(function(){}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Bt(this)),this.readyState=0},e.Sa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,Vt(this)),this.g&&(this.readyState=3,Vt(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(void 0!==i.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;Ft(this)}else e.text().then(this.Ra.bind(this),this.ga.bind(this))},e.Pa=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.v.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?Bt(this):Vt(this),3==this.readyState&&Ft(this)}},e.Ra=function(e){this.g&&(this.response=this.responseText=e,Bt(this))},e.Qa=function(e){this.g&&(this.response=e,Bt(this))},e.ga=function(){this.g&&Bt(this)},e.setRequestHeader=function(e,t){this.u.append(e,t)},e.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";for(var e=[],t=this.h.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(Mt.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),l(Gt,le);var Wt=/^https?$/i,Kt=["POST","PUT"];function Xt(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.m=5,Yt(e),Jt(e)}function Yt(e){e.A||(e.A=!0,fe(e,"complete"),fe(e,"error"))}function qt(e){if(e.h&&void 0!==r&&(!e.v[1]||4!=$t(e)||2!=e.Z()))if(e.u&&4==$t(e))de(e.Ea,0,e);else if(fe(e,"readystatechange"),4==$t(e)){e.h=!1;try{var t,n=e.Z();e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var o=!0;break e;default:o=!1}if(!(t=o)){var a;if(a=0===n){var s=String(e.D).match(lt)[1]||null;!s&&i.self&&i.self.location&&(s=i.self.location.protocol.slice(0,-1)),a=!Wt.test(s?s.toLowerCase():"")}t=a}if(t)fe(e,"complete"),fe(e,"success");else{e.m=6;try{var u=2<$t(e)?e.g.statusText:""}catch(c){u=""}e.l=u+" ["+e.Z()+"]",Yt(e)}}finally{Jt(e)}}}function Jt(e,t){if(e.g){Qt(e);var n=e.g,r=e.v[0]?function(){}:null;e.g=null,e.v=null,t||fe(e,"ready");try{n.onreadystatechange=r}catch(i){}}}function Qt(e){e.I&&(i.clearTimeout(e.I),e.I=null)}function $t(e){return e.g?e.g.readyState:0}function Zt(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.H){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(ho){return null}}
2function en(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function tn(e){this.Aa=0,this.i=[],this.j=new Ue,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=en("failFast",!1,e),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=en("baseRetryDelayMs",5e3,e),this.cb=en("retryDelaySeedMs",1e4,e),this.Wa=en("forwardChannelMaxRetries",2,e),this.wa=en("forwardChannelRequestTimeoutMs",2e4,e),this.pa=e&&e.xmlHttpFactory||void 0,this.Xa=e&&e.Tb||void 0,this.Ca=e&&e.useFetchStreams||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K="",this.h=new rt(e&&e.concurrentRequestLimit),this.Da=new Dt,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=e&&e.Rb||!1,e&&e.xa&&this.j.xa(),e&&e.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&e&&e.detectBufferingProxy||!1,this.ja=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.ja=e.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}function nn(e){if(on(e),3==e.G){var t=e.U++,n=pt(e.I);if(yt(n,"SID",e.K),yt(n,"RID",t),yt(n,"TYPE","terminate"),un(e,n),(t=new He(e,e.j,t)).L=2,t.v=mt(pt(n)),n=!1,i.navigator&&i.navigator.sendBeacon)try{n=i.navigator.sendBeacon(t.v.toString(),"")}catch(r){}!n&&i.Image&&((new Image).src=t.v,n=!0),n||(t.g=kn(t.j,null),t.g.ea(t.v)),t.F=Date.now(),Je(t)}mn(e)}function rn(e){e.g&&(fn(e),e.g.cancel(),e.g=null)}function on(e){rn(e),e.u&&(i.clearTimeout(e.u),e.u=null),dn(e),e.h.cancel(),e.s&&("number"==typeof e.s&&i.clearTimeout(e.s),e.s=null)}function an(e){if(!it(e.h)&&!e.s){e.s=!0;var t=e.Ga;T||P(),O||(T(),O=!0),R.add(t,e),e.B=0}}function sn(e,t){var n;n=t?t.l:e.U++;var r=pt(e.I);yt(r,"SID",e.K),yt(r,"RID",n),yt(r,"AID",e.T),un(e,r),e.m&&e.o&&zt(r,e.m,e.o),n=new He(e,e.j,n,e.B+1),null===e.m&&(n.H=e.o),t&&(e.i=t.D.concat(e.i)),t=cn(e,n,1e3),n.I=Math.round(.5*e.wa)+Math.round(.5*e.wa*Math.random()),st(e.h,n),Ke(n,r,t)}function un(e,t){e.H&&b(e.H,function(e,n){yt(t,n,e)}),e.l&&ht({},function(e,n){yt(t,n,e)})}function cn(e,t,n){n=Math.min(e.i.length,n);var r=e.l?c(e.l.Na,e.l,e):null;e:for(var i=e.i,o=-1;;){var a=["count="+n];-1==o?0<n?(o=i[0].g,a.push("ofs="+o)):o=0:a.push("ofs="+o);for(var s=!0,u=0;u<n;u++){var h=i[u].g,l=i[u].map;if(0>(h-=o))o=Math.max(0,i[u].g-100),s=!1;else try{jt(l,a,"req"+h+"_")}catch(f){r&&r(l)}}if(s){r=a.join("&");break e}}return e=e.i.splice(0,n),t.D=e,r}function hn(e){if(!e.g&&!e.u){e.Y=1;var t=e.Fa;T||P(),O||(T(),O=!0),R.add(t,e),e.v=0}}function ln(e){return!(e.g||e.u||3<=e.v)&&(e.Y++,e.u=je(c(e.Fa,e),gn(e,e.v)),e.v++,!0)}function fn(e){null!=e.A&&(i.clearTimeout(e.A),e.A=null)}function pn(e){e.g=new He(e,e.j,"rpc",e.Y),null===e.m&&(e.g.H=e.o),e.g.O=0;var t=pt(e.qa);yt(t,"RID","rpc"),yt(t,"SID",e.K),yt(t,"AID",e.T),yt(t,"CI",e.F?"0":"1"),!e.F&&e.ja&&yt(t,"TO",e.ja),yt(t,"TYPE","xmlhttp"),un(e,t),e.m&&e.o&&zt(t,e.m,e.o),e.L&&(e.g.I=e.L);var n=e.g;e=e.ia,n.L=1,n.v=mt(pt(t)),n.m=null,n.P=!0,Xe(n,e)}function dn(e){null!=e.C&&(i.clearTimeout(e.C),e.C=null)}function vn(e,t){var n=null;if(e.g==t){dn(e),fn(e),e.g=null;var r=2}else{if(!at(e.h,t))return;n=t.D,ut(e.h,t),r=1}if(0!=e.G)if(t.o)if(1==r){n=t.m?t.m.length:0,t=Date.now()-t.F;var i=e.B;fe(r=Oe(),new De(r,n)),an(e)}else hn(e);else if(3==(i=t.s)||0==i&&0<t.X||!(1==r&&function(e,t){return!(ot(e.h)>=e.h.j-(e.s?1:0)||(e.s?(e.i=t.D.concat(e.i),0):1==e.G||2==e.G||e.B>=(e.Va?0:e.Wa)||(e.s=je(c(e.Ga,e,t),gn(e,e.B)),e.B++,0)))}(e,t)||2==r&&ln(e)))switch(n&&0<n.length&&(t=e.h,t.i=t.i.concat(n)),i){case 1:yn(e,5);break;case 4:yn(e,10);break;case 3:yn(e,6);break;default:yn(e,2)}}function gn(e,t){var n=e.Ta+Math.floor(Math.random()*e.cb);return e.isActive()||(n*=2),n*t}function yn(e,t){if(e.j.info("Error code "+t),2==t){var n=c(e.fb,e),r=e.Xa,o=!r;r=new ft(r||"//www.google.com/images/cleardot.gif"),i.location&&"http"==i.location.protocol||dt(r,"https"),mt(r),o?function(e,t){var n=new Ue;if(i.Image){var r=new Image;r.onload=h(Lt,n,"TestLoadImage: loaded",!0,t,r),r.onerror=h(Lt,n,"TestLoadImage: error",!1,t,r),r.onabort=h(Lt,n,"TestLoadImage: abort",!1,t,r),r.ontimeout=h(Lt,n,"TestLoadImage: timeout",!1,t,r),i.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}else t(!1)}(r.toString(),n):function(e,t){new Ue;var n=new AbortController,r=setTimeout(function(){n.abort(),Lt(0,0,!1,t)},1e4);fetch(e,{signal:n.signal}).then(function(e){clearTimeout(r),e.ok?Lt(0,0,!0,t):Lt(0,0,!1,t)}).catch(function(){clearTimeout(r),Lt(0,0,!1,t)})}(r.toString(),n)}else Le(2);e.G=0,e.l&&e.l.sa(t),mn(e),on(e)}function mn(e){if(e.G=0,e.ka=[],e.l){var t=ct(e.h);
20==t.length&&0==e.i.length||(p(e.ka,t),p(e.ka,e.i),e.h.i.length=0,f(e.i),e.i.length=0),e.l.ra()}}function bn(e,t,n){var r=n instanceof ft?pt(n):new ft(n);if(""!=r.g)t&&(r.g=t+"."+r.g),vt(r,r.s);else{var o=i.location;r=o.protocol,t=t?t+"."+o.hostname:o.hostname,o=+o.port;var a=new ft(null);r&&dt(a,r),t&&(a.g=t),o&&vt(a,o),n&&(a.l=n),r=a}return n=e.D,t=e.ya,n&&t&&yt(r,n,t),yt(r,"VER",e.la),un(e,r),r}function kn(e,t,n){if(t&&!e.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=e.Ca&&!e.pa?new Gt(new Ut({eb:n})):new Gt(e.pa)).Ha(e.J),t}function wn(){}function _n(e,t){le.call(this),this.g=new tn(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.va&&(e?e["X-WebChannel-Client-Profile"]=t.va:e={"X-WebChannel-Client-Profile":t.va}),this.g.S=e,(e=t&&t.Sb)&&!v(e)&&(this.g.m=e),this.v=t&&t.supportsCrossDomainXhr||!1,this.u=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!v(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new Sn(this)}function xn(e){Te.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(var n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function En(){Ie.call(this),this.status=1}function Sn(e){this.g=e}(e=Gt.prototype).Ha=function(e){this.J=e},e.ea=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);t=t?t.toUpperCase():"GET",this.D=e,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Fe.g(),this.v=this.o?Ee(this.o):Ee(Fe),this.g.onreadystatechange=c(this.Ea,this);try{this.B=!0,this.g.open(t,String(e),!0),this.B=!1}catch(u){return void Xt(this,u)}if(e=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var o in r)n.set(o,r[o]);else{if("function"!=typeof r.keys||"function"!=typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));var a,s=to(r.keys());try{for(s.s();!(a=s.n()).done;){var u=a.value;n.set(u,r.get(u))}}catch(v){s.e(v)}finally{s.f()}}r=Array.from(n.keys()).find(function(e){return"content-type"==e.toLowerCase()}),o=i.FormData&&e instanceof i.FormData,!(0<=Array.prototype.indexOf.call(Kt,t,void 0))||r||o||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");var h,l=to(n);try{for(l.s();!(h=l.n()).done;){var f=G(h.value,2),p=f[0],d=f[1];this.g.setRequestHeader(p,d)}}catch(v){l.e(v)}finally{l.f()}this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{Qt(this),this.u=!0,this.g.send(e),this.u=!1}catch(u){Xt(this,u)}},e.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=e||7,fe(this,"complete"),fe(this,"abort"),Jt(this))},e.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Jt(this,!0)),Gt.aa.N.call(this)},e.Ea=function(){this.s||(this.B||this.u||this.j?qt(this):this.bb())},e.bb=function(){qt(this)},e.isActive=function(){return!!this.g},e.Z=function(){try{return 2<$t(this)?this.g.status:-1}catch(_t){return-1}},e.oa=function(){try{return this.g?this.g.responseText:""}catch(_t){return""}},e.Oa=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),we(t)}},e.Ba=function(){return this.m},e.Ka=function(){return"string"==typeof this.l?this.l:String(this.l)},(e=tn.prototype).la=8,e.G=1,e.connect=function(e,t,n,r){Le(0),this.W=e,this.H=t||{},n&&void 0!==r&&(this.H.OSID=n,this.H.OAID=r),this.F=this.X,this.I=bn(this,null,this.W),an(this)},e.Ga=function(e){if(this.s)if(this.s=null,1==this.G){if(!e){this.U=Math.floor(1e5*Math.random()),e=this.U++;var t=new He(this,this.j,e),n=this.o;if(this.S&&(n?_(n=k(n),this.S):n=this.S),null!==this.m||this.O||(t.H=n,n=null),this.P)e:{for(var r=0,i=0;i<this.i.length;i++){var o=this.i[i];if(void 0===(o="__data__"in o.map&&"string"==typeof(o=o.map.__data__)?o.length:void 0))break;if(4096<(r+=o)){r=i;break e}if(4096===r||i===this.i.length-1){r=i+1;break e}}r=1e3}else r=1e3;
2r=cn(this,t,r),yt(i=pt(this.I),"RID",e),yt(i,"CVER",22),this.D&&yt(i,"X-HTTP-Session-Id",this.D),un(this,i),n&&(this.O?r="headers="+encodeURIComponent(String(Ht(n)))+"&"+r:this.m&&zt(i,this.m,n)),st(this.h,t),this.Ua&&yt(i,"TYPE","init"),this.P?(yt(i,"$req",r),yt(i,"SID","null"),t.T=!0,Ke(t,i,null)):Ke(t,i,r),this.G=2}}else 3==this.G&&(e?sn(this,e):0==this.i.length||it(this.h)||sn(this))},e.Fa=function(){if(this.u=null,pn(this),this.ba&&!(this.M||null==this.g||0>=this.R)){var e=2*this.R;this.j.info("BP detection timer enabled: "+e),this.A=je(c(this.ab,this),e)}},e.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,Le(10),rn(this),pn(this))},e.Za=function(){null!=this.C&&(this.C=null,rn(this),ln(this),Le(19))},e.fb=function(e){e?(this.j.info("Successfully pinged google.com"),Le(2)):(this.j.info("Failed to ping google.com"),Le(1))},e.isActive=function(){return!!this.l&&this.l.isActive(this)},(e=wn.prototype).ua=function(){},e.ta=function(){},e.sa=function(){},e.ra=function(){},e.isActive=function(){return!0},e.Na=function(){},l(_n,le),_n.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},_n.prototype.close=function(){nn(this.g)},_n.prototype.o=function(e){var t=this.g;if("string"==typeof e){var n={};n.__data__=e,e=n}else this.u&&((n={}).__data__=ke(e),e=n);t.i.push(new nt(t.Ya++,e)),3==t.G&&an(t)},_n.prototype.N=function(){this.g.l=null,delete this.j,nn(this.g),delete this.g,_n.aa.N.call(this)},l(xn,Te),l(En,Ie),l(Sn,wn),Sn.prototype.ua=function(){fe(this.g,"a")},Sn.prototype.ta=function(e){fe(this.g,new xn(e))},Sn.prototype.sa=function(e){fe(this.g,new En)},Sn.prototype.ra=function(){fe(this.g,"b")},_n.prototype.send=_n.prototype.o,_n.prototype.open=_n.prototype.m,_n.prototype.close=_n.prototype.close,Be.NO_ERROR=0,Be.TIMEOUT=8,Be.HTTP_ERROR=6,Se.OPEN="a",Se.CLOSE="b",Se.ERROR="c",Se.MESSAGE="d",le.prototype.listen=le.prototype.K,Gt.prototype.listenOnce=Gt.prototype.L,Gt.prototype.getLastError=Gt.prototype.Ka,Gt.prototype.getLastErrorCode=Gt.prototype.Ba,Gt.prototype.getStatus=Gt.prototype.Z,Gt.prototype.getResponseJson=Gt.prototype.Oa,Gt.prototype.getResponseText=Gt.prototype.oa,Gt.prototype.send=Gt.prototype.ea,Gt.prototype.setWithCredentials=Gt.prototype.Ha}).apply(void 0!==io?io:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var uo="@firebase/firestore",co=function(){function e(t){X(this,e),this.uid=t}return q(e,[{key:"isAuthenticated",value:function(){return null!=this.uid}},{key:"toKey",value:function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}},{key:"isEqual",value:function(e){return e.uid===this.uid}}]),e}();co.UNAUTHENTICATED=new co(null),co.GOOGLE_CREDENTIALS=new co("google-credentials-uid"),co.FIRST_PARTY=new co("first-party-uid"),co.MOCK_USER=new co("mock-user");var ho="10.12.1",lo=new Ne("@firebase/firestore");function fo(e){if(lo.logLevel<=Se.DEBUG){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n.map(vo);lo.debug.apply(lo,["Firestore (".concat(ho,"): ").concat(e)].concat(J(i)))}}function po(e){if(lo.logLevel<=Se.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n.map(vo);lo.error.apply(lo,["Firestore (".concat(ho,"): ").concat(e)].concat(J(i)))}}function vo(e){if("string"==typeof e)return e;try{return function(e){return JSON.stringify(e)}(e)}catch(t){return e}}function go(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected state",t="FIRESTORE (".concat(ho,") INTERNAL ASSERTION FAILED: ")+e;throw po(t),new Error(t)}function yo(e,t){e||go()}var mo="cancelled",bo="invalid-argument",ko="failed-precondition",wo="unavailable",_o=function(e){B(n,e);var t=so(n);function n(e,r){var i;return X(this,n),(i=t.call(this,e,r)).code=e,i.message=r,i.toString=function(){return"".concat(i.name,": [code=").concat(i.code,"]: ").concat(i.message)},i}return q(n)}(ye),xo=q(function e(){var t=this;X(this,e),this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}),Eo=q(function e(t,n){X(this,e),this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization","Bearer ".concat(t))}),So=function(){function e(){X(this,e)}return q(e,[{key:"getToken",value:function(){return Promise.resolve(null)}},{key:"invalidateToken",value:function(){}},{key:"start",value:function(e,t){e.enqueueRetryable(function(){return t(co.UNAUTHENTICATED)})}},{key:"shutdown",value:function(){}}]),e}(),To=function(){function e(t){X(this,e),this.t=t,this.currentUser=co.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}return q(e,[{key:"start",value:function(e,t){var n=this,r=this.i,i=function(e){return n.i!==r?(r=n.i,t(e)):Promise.resolve()},o=new xo;this.o=function(){n.i++,n.currentUser=n.u(),o.resolve(),o=new xo,e.enqueueRetryable(function(){return i(n.currentUser)})};var a=function(){var t=o;e.enqueueRetryable(K(ee.mark(function e(){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.promise;case 2:return e.next=4,i(n.currentUser);case 4:case"end":return e.stop()}},e)})))},s=function(e){fo("FirebaseAuthCredentialsProvider","Auth detected"),n.auth=e,n.auth.addAuthTokenListener(n.o),a()};this.t.onInit(function(e){return s(e)}),setTimeout(function(){if(!n.auth){var e=n.t.getImmediate({optional:!0});e?s(e):(fo("FirebaseAuthCredentialsProvider","Auth not yet detected"),o.resolve(),o=new xo)}},0),a()}},{key:"getToken",value:function(){var e=this,t=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(function(n){return e.i!==t?(fo("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),e.getToken()):n?(yo("string"==typeof n.accessToken),new Eo(n.accessToken,e.currentUser)):null}):Promise.resolve(null)}},{key:"invalidateToken",value:function(){this.forceRefresh=!0}},{key:"shutdown",value:function(){this.auth&&this.auth.removeAuthTokenListener(this.o)}},{key:"u",value:function(){var e=this.auth&&this.auth.getUid();return yo(null===e||"string"==typeof e),new co(e)}}]),e}(),Io=function(){function e(t,n,r){X(this,e),this.l=t,this.h=n,this.P=r,this.type="FirstParty",this.user=co.FIRST_PARTY,this.I=new Map}return q(e,[{key:"T",value:function(){return this.P?this.P():null}},{key:"headers",get:function(){this.I.set("X-Goog-AuthUser",this.l);var e=this.T();return e&&this.I.set("Authorization",e),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}]),e}(),Ao=function(){function e(t,n,r){X(this,e),this.l=t,this.h=n,this.P=r}return q(e,[{key:"getToken",value:function(){return Promise.resolve(new Io(this.l,this.h,this.P))}},{key:"start",value:function(e,t){e.enqueueRetryable(function(){return t(co.FIRST_PARTY)})}},{key:"shutdown",value:function(){}},{key:"invalidateToken",value:function(){}}]),e}(),Co=q(function e(t){X(this,e),this.value=t,this.type="AppCheck",this.headers=new Map,t&&t.length>0&&this.headers.set("x-firebase-appcheck",this.value)}),Oo=function(){function e(t){X(this,e),this.A=t,this.forceRefresh=!1,this.appCheck=null,this.R=null}return q(e,[{key:"start",value:function(e,t){var n=this,r=function(e){null!=e.error&&fo("FirebaseAppCheckTokenProvider","Error getting App Check token; using placeholder token instead. Error: ".concat(e.error.message));var r=e.token!==n.R;return n.R=e.token,fo("FirebaseAppCheckTokenProvider","Received ".concat(r?"new":"existing"," token.")),r?t(e.token):Promise.resolve()};this.o=function(t){e.enqueueRetryable(function(){return r(t)})};var i=function(e){fo("FirebaseAppCheckTokenProvider","AppCheck detected"),n.appCheck=e,n.appCheck.addTokenListener(n.o)};this.A.onInit(function(e){return i(e)}),setTimeout(function(){if(!n.appCheck){var e=n.A.getImmediate({optional:!0});e?i(e):fo("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}},{key:"getToken",value:function(){var e=this,t=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(t).then(function(t){return t?(yo("string"==typeof t.token),e.R=t.token,new Co(t.token)):null}):Promise.resolve(null)}},{key:"invalidateToken",value:function(){this.forceRefresh=!0}},{key:"shutdown",value:function(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}]),e}();function Ro(e){var t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(var r=0;r<e;
2r++)n[r]=Math.floor(256*Math.random());return n}var Po=function(){function e(){X(this,e)}return q(e,null,[{key:"newId",value:function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=62*Math.floor(256/62),n="";n.length<20;)for(var r=Ro(40),i=0;i<r.length;++i)n.length<20&&r[i]<t&&(n+=e.charAt(r[i]%62));return n}}]),e}();function No(e,t){return e<t?-1:e>t?1:0}var Lo=function(e){B(n,e);var t=so(n);function n(){return X(this,n),t.apply(this,arguments)}return q(n,[{key:"construct",value:function(e,t,r){return new n(e,t,r)}},{key:"canonicalString",value:function(){return this.toArray().join("/")}},{key:"toString",value:function(){return this.canonicalString()}},{key:"toUriEncodedString",value:function(){return this.toArray().map(encodeURIComponent).join("/")}}],[{key:"fromString",value:function(){for(var e=[],t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];if(s.indexOf("//")>=0)throw new _o(bo,"Invalid segment (".concat(s,"). Paths must not contain // in them."));e.push.apply(e,J(s.split("/").filter(function(e){return e.length>0})))}return new n(e)}},{key:"emptyPath",value:function(){return new n([])}}]),n}(function(){function e(t,n,r){X(this,e),void 0===n?n=0:n>t.length&&go(),void 0===r?r=t.length-n:r>t.length-n&&go(),this.segments=t,this.offset=n,this.len=r}return q(e,[{key:"length",get:function(){return this.len}},{key:"isEqual",value:function(t){return 0===e.comparator(this,t)}},{key:"child",value:function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach(function(e){n.push(e)}):n.push(t),this.construct(n)}},{key:"limit",value:function(){return this.offset+this.length}},{key:"popFirst",value:function(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}},{key:"popLast",value:function(){return this.construct(this.segments,this.offset,this.length-1)}},{key:"firstSegment",value:function(){return this.segments[this.offset]}},{key:"lastSegment",value:function(){return this.get(this.length-1)}},{key:"get",value:function(e){return this.segments[this.offset+e]}},{key:"isEmpty",value:function(){return 0===this.length}},{key:"isPrefixOf",value:function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}},{key:"isImmediateParentOf",value:function(e){if(this.length+1!==e.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}},{key:"forEach",value:function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}},{key:"toArray",value:function(){return this.segments.slice(this.offset,this.limit())}}],[{key:"comparator",value:function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.get(r),o=t.get(r);if(i<o)return-1;if(i>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}]),e}()),Do=function(){function e(t){X(this,e),this.path=t}return q(e,[{key:"collectionGroup",get:function(){return this.path.popLast().lastSegment()}},{key:"hasCollectionId",value:function(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}},{key:"getCollectionGroup",value:function(){return this.path.get(this.path.length-2)}},{key:"getCollectionPath",value:function(){return this.path.popLast()}},{key:"isEqual",value:function(e){return null!==e&&0===Lo.comparator(this.path,e.path)}},{key:"toString",value:function(){return this.path.toString()}}],[{key:"fromPath",value:function(t){return new e(Lo.fromString(t))}},{key:"fromName",value:function(t){return new e(Lo.fromString(t).popFirst(5))}},{key:"empty",value:function(){return new e(Lo.emptyPath())}},{key:"comparator",value:function(e,t){return Lo.comparator(e.path,t.path)}},{key:"isDocumentKey",value:function(e){return e.length%2==0}},{key:"fromSegments",value:function(t){return new e(new Lo(t.slice()))}}]),e}();function jo(e){return"IndexedDbTransactionError"===e.name}q(function e(t,n,r,i){X(this,e),this.indexId=t,this.collectionGroup=n,this.fields=r,this.indexState=i}).UNKNOWN_ID=-1;var Uo=["mutationQueues","mutations","documentMutations","remoteDocuments","targets","owner","targetGlobal","targetDocuments"].concat(["clientMetadata"]).concat(["remoteDocumentGlobal"]).concat(["collectionParents"]).concat(["bundles","namedQueries"]);[].concat(J(Uo),["documentOverlays"]);var Mo=function(){function e(t,n){X(this,e),this.comparator=t,this.root=n||Bo.EMPTY}return q(e,[{key:"insert",value:function(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,Bo.BLACK,null,
2null))}},{key:"remove",value:function(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,Bo.BLACK,null,null))}},{key:"get",value:function(e){for(var t=this.root;!t.isEmpty();){var n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}},{key:"indexOf",value:function(e){for(var t=0,n=this.root;!n.isEmpty();){var r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}},{key:"isEmpty",value:function(){return this.root.isEmpty()}},{key:"size",get:function(){return this.root.size}},{key:"minKey",value:function(){return this.root.minKey()}},{key:"maxKey",value:function(){return this.root.maxKey()}},{key:"inorderTraversal",value:function(e){return this.root.inorderTraversal(e)}},{key:"forEach",value:function(e){this.inorderTraversal(function(t,n){return e(t,n),!1})}},{key:"toString",value:function(){var e=[];return this.inorderTraversal(function(t,n){return e.push("".concat(t,":").concat(n)),!1}),"{".concat(e.join(", "),"}")}},{key:"reverseTraversal",value:function(e){return this.root.reverseTraversal(e)}},{key:"getIterator",value:function(){return new Fo(this.root,null,this.comparator,!1)}},{key:"getIteratorFrom",value:function(e){return new Fo(this.root,e,this.comparator,!1)}},{key:"getReverseIterator",value:function(){return new Fo(this.root,null,this.comparator,!0)}},{key:"getReverseIteratorFrom",value:function(e){return new Fo(this.root,e,this.comparator,!0)}}]),e}(),Fo=function(){function e(t,n,r,i){X(this,e),this.isReverse=i,this.nodeStack=[];for(var o=1;!t.isEmpty();)if(o=n?r(t.key,n):1,n&&i&&(o*=-1),o<0)t=this.isReverse?t.left:t.right;else{if(0===o){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}return q(e,[{key:"getNext",value:function(){var e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}},{key:"hasNext",value:function(){return this.nodeStack.length>0}},{key:"peek",value:function(){if(0===this.nodeStack.length)return null;var e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}]),e}(),Bo=function(){function e(t,n,r,i,o){X(this,e),this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:e.EMPTY,this.right=null!=o?o:e.EMPTY,this.size=this.left.size+1+this.right.size}return q(e,[{key:"copy",value:function(t,n,r,i,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)}},{key:"isEmpty",value:function(){return!1}},{key:"inorderTraversal",value:function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}},{key:"reverseTraversal",value:function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}},{key:"min",value:function(){return this.left.isEmpty()?this:this.left.min()}},{key:"minKey",value:function(){return this.min().key}},{key:"maxKey",value:function(){return this.right.isEmpty()?this.key:this.right.maxKey()}},{key:"insert",value:function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp()}},{key:"removeMin",value:function(){if(this.left.isEmpty())return e.EMPTY;var t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),(t=t.copy(null,null,null,t.left.removeMin(),null)).fixUp()}},{key:"remove",value:function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(t,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(t,i.key)){if(i.right.isEmpty())return e.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(t,n))}return i.fixUp()}},{key:"isRed",value:function(){return this.color}},{key:"fixUp",value:function(){var e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}},{key:"moveRedLeft",value:function(){var e=this.colorFlip();return e.right.left.isRed()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight())).rotateLeft()).colorFlip()),e}},{key:"moveRedRight",value:function(){var e=this.colorFlip();return e.left.left.isRed()&&(e=(e=e.rotateRight()).colorFlip()),e}},{key:"rotateLeft",value:function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}},{key:"rotateRight",value:function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}},{key:"colorFlip",value:function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}},{key:"checkMaxDepth",value:function(){var e=this.check();return Math.pow(2,e)<=this.size+1}},{key:"check",value:function(){if(this.isRed()&&this.left.isRed())throw go();if(this.right.isRed())throw go();var e=this.left.check();if(e!==this.right.check())throw go();return e+(this.isRed()?0:1)}}]),e}();
2Bo.EMPTY=null,Bo.RED=!0,Bo.BLACK=!1,Bo.EMPTY=new(function(){function e(){X(this,e),this.size=0}return q(e,[{key:"key",get:function(){throw go()}},{key:"value",get:function(){throw go()}},{key:"color",get:function(){throw go()}},{key:"left",get:function(){throw go()}},{key:"right",get:function(){throw go()}},{key:"copy",value:function(e,t,n,r,i){return this}},{key:"insert",value:function(e,t,n){return new Bo(e,t)}},{key:"remove",value:function(e,t){return this}},{key:"isEmpty",value:function(){return!0}},{key:"inorderTraversal",value:function(e){return!1}},{key:"reverseTraversal",value:function(e){return!1}},{key:"minKey",value:function(){return null}},{key:"maxKey",value:function(){return null}},{key:"isRed",value:function(){return!1}},{key:"checkMaxDepth",value:function(){return!0}},{key:"check",value:function(){return 0}}]),e}());var Vo=function(){function e(t){X(this,e),this.comparator=t,this.data=new Mo(this.comparator)}return q(e,[{key:"has",value:function(e){return null!==this.data.get(e)}},{key:"first",value:function(){return this.data.minKey()}},{key:"last",value:function(){return this.data.maxKey()}},{key:"size",get:function(){return this.data.size}},{key:"indexOf",value:function(e){return this.data.indexOf(e)}},{key:"forEach",value:function(e){this.data.inorderTraversal(function(t,n){return e(t),!1})}},{key:"forEachInRange",value:function(e,t){for(var n=this.data.getIteratorFrom(e[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}},{key:"forEachWhile",value:function(e,t){var n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}},{key:"firstAfterOrEqual",value:function(e){var t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}},{key:"getIterator",value:function(){return new Ho(this.data.getIterator())}},{key:"getIteratorFrom",value:function(e){return new Ho(this.data.getIteratorFrom(e))}},{key:"add",value:function(e){return this.copy(this.data.remove(e).insert(e,!0))}},{key:"delete",value:function(e){return this.has(e)?this.copy(this.data.remove(e)):this}},{key:"isEmpty",value:function(){return this.data.isEmpty()}},{key:"unionWith",value:function(e){var t=this;return t.size<e.size&&(t=e,e=this),e.forEach(function(e){t=t.add(e)}),t}},{key:"isEqual",value:function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data.getIterator(),r=t.data.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(0!==this.comparator(i,o))return!1}return!0}},{key:"toArray",value:function(){var e=[];return this.forEach(function(t){e.push(t)}),e}},{key:"toString",value:function(){var e=[];return this.forEach(function(t){return e.push(t)}),"SortedSet("+e.toString()+")"}},{key:"copy",value:function(t){var n=new e(this.comparator);return n.data=t,n}}]),e}(),Ho=function(){function e(t){X(this,e),this.iter=t}return q(e,[{key:"getNext",value:function(){return this.iter.getNext().key}},{key:"hasNext",value:function(){return this.iter.hasNext()}}]),e}(),zo=function(e){B(n,e);var t=so(n);function n(){var e;return X(this,n),(e=t.apply(this,arguments)).name="Base64DecodeError",e}return q(n)}(ne(Error)),Go=function(){function e(t){X(this,e),this.binaryString=t}return q(e,[{key:Symbol.iterator,value:function(){var e=this,t=0;return{next:function(){return t<e.binaryString.length?{value:e.binaryString.charCodeAt(t++),done:!1}:{value:void 0,done:!0}}}}},{key:"toBase64",value:function(){return e=this.binaryString,btoa(e);var e}},{key:"toUint8Array",value:function(){return function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}},{key:"approximateByteSize",value:function(){return 2*this.binaryString.length}},{key:"compareTo",value:function(e){return No(this.binaryString,e.binaryString)}},{key:"isEqual",value:function(e){return this.binaryString===e.binaryString}}],[{key:"fromBase64String",value:function(t){var n=function(e){try{return atob(e)}catch(e){throw"undefined"!=typeof DOMException&&e instanceof DOMException?new zo("Invalid base64 string: "+e):e}}(t);return new e(n)}},{key:"fromUint8Array",value:function(t){var n=function(e){for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(t);return new e(n)}}]),e}();Go.EMPTY_BYTE_STRING=new Go("");var Wo=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Ko(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}var Xo,Yo,qo=q(function e(t,n,r,i,o,a,s,u,c){X(this,e),this.databaseId=t,this.appId=n,this.persistenceKey=r,this.host=i,this.ssl=o,this.forceLongPolling=a,this.autoDetectLongPolling=s,this.longPollingOptions=u,this.useFetchStreams=c}),Jo=function(){function e(t,n){X(this,e),this.projectId=t,this.database=n||"(default)"}return q(e,[{key:"isDefaultDatabase",get:function(){return"(default)"===this.database}},{key:"isEqual",value:function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database}}],[{key:"empty",value:function(){return new e("","")}}]),e}();new Mo(Do.comparator),new Mo(Do.comparator),new Mo(Do.comparator),new Vo(Do.comparator),new Vo(No),(Yo=Xo||(Xo={}))[Yo.OK=0]="OK",Yo[Yo.CANCELLED=1]="CANCELLED",Yo[Yo.UNKNOWN=2]="UNKNOWN",Yo[Yo.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Yo[Yo.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Yo[Yo.NOT_FOUND=5]="NOT_FOUND",Yo[Yo.ALREADY_EXISTS=6]="ALREADY_EXISTS",Yo[Yo.PERMISSION_DENIED=7]="PERMISSION_DENIED",Yo[Yo.UNAUTHENTICATED=16]="UNAUTHENTICATED",Yo[Yo.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Yo[Yo.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Yo[Yo.ABORTED=10]="ABORTED",Yo[Yo.OUT_OF_RANGE=11]="OUT_OF_RANGE",Yo[Yo.UNIMPLEMENT
2ED=12]="UNIMPLEMENTED",Yo[Yo.INTERNAL=13]="INTERNAL",Yo[Yo.UNAVAILABLE=14]="UNAVAILABLE",Yo[Yo.DATA_LOSS=15]="DATA_LOSS",new Zi([4294967295,4294967295],0);var Qo=function(){function e(){X(this,e)}return q(e,[{key:"Pt",value:function(e,t){this.It(e,t),t.Tt()}},{key:"It",value:function(e,t){if("nullValue"in e)this.Et(t,5);else if("booleanValue"in e)this.Et(t,10),t.dt(e.booleanValue?1:0);else if("integerValue"in e)this.Et(t,15),t.dt(Ko(e.integerValue));else if("doubleValue"in e){var n=Ko(e.doubleValue);isNaN(n)?this.Et(t,13):(this.Et(t,15),function(e){return 0===e&&1/e==-1/0}(n)?t.dt(0):t.dt(n))}else if("timestampValue"in e){var r=e.timestampValue;this.Et(t,20),"string"==typeof r&&(r=function(e){if(yo(!!e),"string"==typeof e){var t=0,n=Wo.exec(e);if(yo(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),t=Number(r)}var i=new Date(e);return{seconds:Math.floor(i.getTime()/1e3),nanos:t}}return{seconds:Ko(e.seconds),nanos:Ko(e.nanos)}}(r)),t.At("".concat(r.seconds||"")),t.dt(r.nanos||0)}else if("stringValue"in e)this.Rt(e.stringValue,t),this.Vt(t);else if("bytesValue"in e)this.Et(t,30),t.ft(function(e){return"string"==typeof e?Go.fromBase64String(e):Go.fromUint8Array(e)}(e.bytesValue)),this.Vt(t);else if("referenceValue"in e)this.gt(e.referenceValue,t);else if("geoPointValue"in e){var i=e.geoPointValue;this.Et(t,45),t.dt(i.latitude||0),t.dt(i.longitude||0)}else"mapValue"in e?function(e){return"__max__"===(((e.mapValue||{}).fields||{}).__type__||{}).stringValue}(e)?this.Et(t,Number.MAX_SAFE_INTEGER):(this.yt(e.mapValue,t),this.Vt(t)):"arrayValue"in e?(this.wt(e.arrayValue,t),this.Vt(t)):go()}},{key:"Rt",value:function(e,t){this.Et(t,25),this.St(e,t)}},{key:"St",value:function(e,t){t.At(e)}},{key:"yt",value:function(e,t){var n=e.fields||{};this.Et(t,55);for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r];this.Rt(o,t),this.It(n[o],t)}}},{key:"wt",value:function(e,t){var n=e.values||[];this.Et(t,50);var r,i=oo(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;this.It(o,t)}}catch(a){i.e(a)}finally{i.f()}}},{key:"gt",value:function(e,t){var n=this;this.Et(t,37),Do.fromName(e).path.forEach(function(e){n.Et(t,60),n.St(e,t)})}},{key:"Et",value:function(e,t){e.dt(t)}},{key:"Vt",value:function(e){e.dt(2)}}]),e}();Qo.bt=new Qo;var $o=function(){function e(t,n,r){X(this,e),this.cacheSizeCollectionThreshold=t,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=r}return q(e,null,[{key:"withCacheSize",value:function(t){return new e(t,e.DEFAULT_COLLECTION_PERCENTILE,e.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}]),e}();function Zo(){return"undefined"!=typeof document?document:null}$o.DEFAULT_COLLECTION_PERCENTILE=10,$o.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,$o.DEFAULT=new $o(41943040,$o.DEFAULT_COLLECTION_PERCENTILE,$o.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),$o.DISABLED=new $o(-1,0,0);var ea,ta,na=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1.5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:6e4;X(this,e),this.oi=t,this.timerId=n,this.No=r,this.Lo=i,this.Bo=o,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}return q(e,[{key:"reset",value:function(){this.ko=0}},{key:"Ko",value:function(){this.ko=this.Bo}},{key:"$o",value:function(e){var t=this;this.cancel();var n=Math.floor(this.ko+this.Uo()),r=Math.max(0,Date.now()-this.Qo),i=Math.max(0,n-r);i>0&&fo("ExponentialBackoff","Backing off for ".concat(i," ms (base delay: ").concat(this.ko," ms, delay with jitter: ").concat(n," ms, last attempt: ").concat(r," ms ago)")),this.qo=this.oi.enqueueAfterDelay(this.timerId,i,function(){return t.Qo=Date.now(),e()}),this.ko*=this.Lo,this.ko<this.No&&(this.ko=this.No),this.ko>this.Bo&&(this.ko=this.Bo)}},{key:"Wo",value:function(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}},{key:"cancel",value:function(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}},{key:"Uo",value:function(){return(Math.random()-.5)*this.ko}}]),e}(),ra=function(){function e(t,n,r,i,o){X(this,e),this.asyncQueue=t,this.timerId=n,this.targetTimeMs=r,this.op=i,this.removalCallback=o,this.deferred=new xo,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(function(e){})}return q(e,[{key:"promise",get:function(){return this.deferred.promise}},{key:"start",value:function(e){var t=this;this.timerHandle=setTimeout(function(){return t.handleDelayElapsed()},e)}},{key:"skipDelay",value:function(){return this.handleDelayElapsed()}},{key:"cancel",value:function(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new _o(mo,"Operation cancelled"+(e?": "+e:""))))}},{key:"handleDelayElapsed",value:function(){var e=this;this.asyncQueue.enqueueAndForget(function(){return null!==e.timerHandle?(e.clearTimeout(),e.op().then(function(t){return e.deferred.resolve(t)})):Promise.resolve()})}},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)})}],[{key:"createAndSchedule",value:function(t,n,r,i,o){var a=new e(t,n,Date.now()+r,i,o);return a.start(r),a}}]),e}();function ia(e,t){if(po("AsyncQueue","".concat(t,": ").concat(e)),jo(e))return new _o(wo,"".concat(t,": ").concat(e));throw e}(ta=ea||(ea={})).J_="default",ta.Cache="cache";var oa=function(){function e(t,n,r,i){var o=this;X(this,e),this.authCredentials=t,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=i,this.user=co.UNAUTHENTICATED,this.clientId=Po.newId(),this.authCredentialListener=function(){return Promise.resolve()},this.appCheckCredentialListener=function(){return Promise.resolve()},this.authCredentials.start(r,function(){var e=K(ee.mark(function e(t){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return fo("FirestoreClient","Received user=",t.uid),e.next=3,o.authCredentialListener(t);case 3:o.user=t;case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),this.appCheckCredentials.start(r,function(e){return fo("FirestoreClient","Received new app check token=",e),o.appCheckCredentialListener(e,o.user)})}
2return q(e,[{key:"configuration",get:function(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}},{key:"setCredentialChangeListener",value:function(e){this.authCredentialListener=e}},{key:"setAppCheckTokenChangeListener",value:function(e){this.appCheckCredentialListener=e}},{key:"verifyNotTerminated",value:function(){if(this.asyncQueue.isShuttingDown)throw new _o(ko,"The client has already been terminated.")}},{key:"terminate",value:function(){var e=this;this.asyncQueue.enterRestrictedMode();var t=new xo;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(K(ee.mark(function n(){var r;return ee.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,n.t0=e._onlineComponents,!n.t0){n.next=5;break}return n.next=5,e._onlineComponents.terminate();case 5:if(n.t1=e._offlineComponents,!n.t1){n.next=9;break}return n.next=9,e._offlineComponents.terminate();case 9:e.authCredentials.shutdown(),e.appCheckCredentials.shutdown(),t.resolve(),n.next=18;break;case 14:n.prev=14,n.t2=n.catch(0),r=ia(n.t2,"Failed to shutdown persistence"),t.reject(r);case 18:case"end":return n.stop()}},n,null,[[0,14]])}))),t.promise}}]),e}();function aa(e){var t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t}var sa=new Map;var ua=function(){function e(t){var n,r;if(X(this,e),void 0===t.host){if(void 0!==t.ssl)throw new _o(bo,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=t.host,this.ssl=null===(n=t.ssl)||void 0===n||n;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,this.localCache=t.localCache,void 0===t.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==t.cacheSizeBytes&&t.cacheSizeBytes<1048576)throw new _o(bo,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}(function(e,t,n,r){if(!0===t&&!0===r)throw new _o(bo,"".concat(e," and ").concat(n," cannot be used together."))})("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===t.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=aa(null!==(r=t.experimentalLongPollingOptions)&&void 0!==r?r:{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new _o(bo,"invalid long polling timeout: ".concat(e.timeoutSeconds," (must not be NaN)"));if(e.timeoutSeconds<5)throw new _o(bo,"invalid long polling timeout: ".concat(e.timeoutSeconds," (minimum allowed value is 5)"));if(e.timeoutSeconds>30)throw new _o(bo,"invalid long polling timeout: ".concat(e.timeoutSeconds," (maximum allowed value is 30)"))}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!t.useFetchStreams}return q(e,[{key:"isEqual",value:function(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(e,t){return e.timeoutSeconds===t.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}]),e}(),ca=function(){function e(t,n,r,i){X(this,e),this._authCredentials=t,this._appCheckCredentials=n,this._databaseId=r,this._app=i,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new ua({}),this._settingsFrozen=!1}return q(e,[{key:"app",get:function(){if(!this._app)throw new _o(ko,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}},{key:"_initialized",get:function(){return this._settingsFrozen}},{key:"_terminated",get:function(){return void 0!==this._terminateTask}},{key:"_setSettings",value:function(e){if(this._settingsFrozen)throw new _o(ko,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new ua(e),void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new So;switch(e.type){case"firstParty":return new Ao(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new _o(bo,"makeAuthCredentialsProvider failed due to invali
2d credential type")}}(e.credentials))}},{key:"_getSettings",value:function(){return this._settings}},{key:"_freezeSettings",value:function(){return this._settingsFrozen=!0,this._settings}},{key:"_delete",value:function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}},{key:"toJSON",value:function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}},{key:"_terminate",value:function(){return e=this,(t=sa.get(e))&&(fo("ComponentProvider","Removing Datastore"),sa.delete(e),t.terminate()),Promise.resolve();var e,t}}]),e}(),ha=function(){function e(){var t=this;X(this,e),this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new na(this,"async_queue_retry"),this.hu=function(){var e=Zo();e&&fo("AsyncQueue","Visibility state changed to "+e.visibilityState),t.Yo.Wo()};var n=Zo();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.hu)}var t,n;return q(e,[{key:"isShuttingDown",get:function(){return this.ou}},{key:"enqueueAndForget",value:function(e){this.enqueue(e)}},{key:"enqueueAndForgetEvenWhileRestricted",value:function(e){this.Pu(),this.Iu(e)}},{key:"enterRestrictedMode",value:function(e){if(!this.ou){this.ou=!0,this.cu=e||!1;var t=Zo();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.hu)}}},{key:"enqueue",value:function(e){var t=this;if(this.Pu(),this.ou)return new Promise(function(){});var n=new xo;return this.Iu(function(){return t.ou&&t.cu?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)}).then(function(){return n.promise})}},{key:"enqueueRetryable",value:function(e){var t=this;this.enqueueAndForget(function(){return t.su.push(e),t.Tu()})}},{key:"Tu",value:(n=K(ee.mark(function e(){var t=this;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0===this.su.length){e.next=14;break}return e.prev=1,e.next=4,this.su[0]();case 4:this.su.shift(),this.Yo.reset(),e.next=13;break;case 8:if(e.prev=8,e.t0=e.catch(1),jo(e.t0)){e.next=12;break}throw e.t0;case 12:fo("AsyncQueue","Operation failed with retryable error: "+e.t0);case 13:this.su.length>0&&this.Yo.$o(function(){return t.Tu()});case 14:case"end":return e.stop()}},e,this,[[1,8]])})),function(){return n.apply(this,arguments)})},{key:"Iu",value:function(e){var t=this,n=this.iu.then(function(){return t.uu=!0,e().catch(function(e){t.au=e,t.uu=!1;var n=function(e){var t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}(e);throw po("INTERNAL UNHANDLED ERROR: ",n),e}).then(function(e){return t.uu=!1,e})});return this.iu=n,n}},{key:"enqueueAfterDelay",value:function(e,t,n){var r=this;this.Pu(),this.lu.indexOf(e)>-1&&(t=0);var i=ra.createAndSchedule(this,e,t,n,function(e){return r.Eu(e)});return this._u.push(i),i}},{key:"Pu",value:function(){this.au&&go()}},{key:"verifyOperationInProgress",value:function(){}},{key:"du",value:(t=K(ee.mark(function e(){var t;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.iu,e.next=3,t;case 3:if(t!==this.iu){e.next=0;break}case 4:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"Au",value:function(e){var t,n=oo(this._u);try{for(n.s();!(t=n.n()).done;){if(t.value.timerId===e)return!0}}catch(r){n.e(r)}finally{n.f()}return!1}},{key:"Ru",value:function(e){var t=this;return this.du().then(function(){t._u.sort(function(e,t){return e.targetTimeMs-t.targetTimeMs});var n,r=oo(t._u);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.skipDelay(),"all"!==e&&i.timerId===e)break}}catch(o){r.e(o)}finally{r.f()}return t.du()})}},{key:"Vu",value:function(e){this.lu.push(e)}},{key:"Eu",value:function(e){var t=this._u.indexOf(e);this._u.splice(t,1)}}]),e}(),la=function(e){B(n,e);var t=so(n);function n(e,r,i,o){var a;return X(this,n),(a=t.call(this,e,r,i,o)).type="firestore",a._queue=new ha,a._persistenceKey=(null==o?void 0:o.name)||"[DEFAULT]",a}return q(n,[{key:"_terminate",value:function(){return this._firestoreClient||(i=(e=this)._freezeSettings(),o=function(e,t,n,r){return new qo(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,aa(r.experimentalLongPollingOptions),r.useFetchStreams)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,i),e._firestoreClient=new oa(e._authCredentials,e._appCheckCredentials,e._queue,o),(null===(n=i.localCache)||void 0===n?void 0:n._offlineComponentProvider)&&(null===(r=i.localCache)||void 0===r?void 0:r._onlineComponentProvider)&&(e._firestoreClient._uninitializedComponentsProvider={_offlineKind:i.localCache.kind,_offline:i.localCache._offlineComponentProvider,_online:i.localCache._onlineComponentProvider})),this._firestoreClient.terminate();var e,t,n,r,i,o}}]),n}(ca);!function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!function(e){ho=e}(pt),ct(new Te("firestore",function(e,n){var r=n.instanceIdentifier,i=n.options,o=e.getProvider("app").getImmediate(),a=new la(new To(e.getProvider("auth-internal")),new Oo(e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new _o(bo,'"projectId" not provided in firebase.initializeApp.');return new Jo(e.options.projectId,t)}(o,r),o);return i=Object.assign({useFetchStreams:t},i),a._setSettings(i),a},"PUBLIC").setMultipleInstances(!0)),dt(uo,"4.6.3",e),dt(uo,"4.6.3","esm2017")}();var fa=function(){this.__data__=[],this.size=0};var pa=function(e,t){return e===t||e!=e&&t!=t};var da=function(e,t){for(var n=e.length;n--;)if(pa(e[n][0],t))return n;return-1},va=da,ga=Array.prototype.splice;var ya=da;var ma=da;var ba=da;var ka=fa,wa=function(e){var t=this.__data__,n=va(t,e);return!(n<0)&&(n==t.length-1?t.pop():ga.call(t,n,1),--this.size,!0)},_a=function(e){var t=this.__data__,n=ya(t,e);return n<0?void 0:t[n][1]},xa=function(e){return ma(this.__data__,e)>-1},Ea=function(e,t){var n=this.__data__,r=ba(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Sa(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Sa.prototype.clear=ka,Sa.prototype.delete=wa,Sa.prototype.get=_a,Sa.prototype.has=xa,Sa.prototype.set=Ea;var Ta=Sa,Ia=Dr(Object,"create"),Aa=Ia;var Ca=function(){this.__data__=Aa?Aa(null):{},this.size=0};var Oa=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ra=Ia,Pa=Object.prototype.hasOwnProperty;var Na=function(e){var t=this.__data__;if(Ra){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Pa.call(t,e)?t[e]:void 0},La=Ia,Da=Object.prototype.hasOwnProperty;var ja=Ia;var Ua=Ca,Ma=Oa,Fa=Na,Ba=function(e){var t=this.__data__;return La?void 0!==t[e]:Da.call(t,e)},Va=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ja&&void 0===t?"__lodash_hash_undefined__":t,this};function Ha(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ha.prototype.clear=Ua,Ha.prototype.delete=Ma,Ha.prototype.get=Fa,Ha.prototype.has=Ba,Ha.prototype.set=Va;var za=Ha,Ga=Ta,Wa=Ur;var Ka=function(e){var t=L(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Xa=function(e,t){var n=e.__data__;return Ka(t)?n["string"==typeof t?"string":"hash"]:n.map},Ya=Xa;var qa=function(e){var t=Ya(this,e).delete(e);return this.size-=t?1:0,t},Ja=Xa;var Qa=Xa;var $a=Xa;var Za=function(){this.size=0,this.__data__={hash:new za,map:new(Wa||Ga),string:new za}},es=qa,ts=function(e){return Ja(this,e).get(e)},ns=function(e){return Qa(this,e).has(e)},rs=function(e,t){var n=$a(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function is(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}is.prototype.clear=Za,is.prototype.delete=es,is.prototype.get=ts,is.prototype.has=ns,is.prototype.set=rs;var os=is,as=Dr;!function(){try{var e=as(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();var ss={exports:{}};!function(e,t){var n=er,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}
2(ss,ss.exports),er.Uint8Array;var us=tr?tr.prototype:void 0;us&&us.valueOf;var cs=ci.exports;cs&&cs.isMap;var hs=ci.exports;hs&&hs.isSet;var ls=os;function fs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(fs.Cache||ls),n}fs.Cache=ls;var ps=fs;var ds=function(e){var t=ps(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t},vs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gs=/\\(\\)?/g;ds(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(vs,function(e,n,r,i){t.push(r?i.replace(gs,"$1"):n||e)}),t});var ys=tr?tr.prototype:void 0;ys&&ys.toString;var ms=tr?tr.prototype:void 0;ms&&ms.valueOf;fi.textbox,hi.UserDetails,fi.password,hi.Security,fi.password,hi.Security,fi.password,hi.Security,fi.password,hi.Security,fi.checkbox,hi.Security,fi.textbox,hi.DeliveryAddresses,fi.textbox,hi.DeliveryAddresses,fi.textbox,hi.DeliveryAddresses,fi.textbox,hi.DeliveryAddresses,fi.textbox,hi.DeliveryAddresses,fi.textbox,hi.UserDetails,fi.textbox,hi.UserDetails,fi.textbox,hi.UserDetails,fi.date,hi.UserDetails,new Date,fi.radio,hi.UserDetails,fi.textbox,hi.UserDetails,fi.textbox,hi.UserDetails,fi.textbox,hi.UserDetails,fi.textbox,hi.UserDetails,fi.textbox,hi.UserDetails,fi.checkbox,hi.Security;var bs="resend-magic-link-module_container__DWulN",ks="resend-magic-link-module_resendButton__JQst6",ws="resend-magic-link-module_resendMessage__gaJuE";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".resend-magic-link-module_form__Z4pM7 {\n width: 100%;\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n}\n\n.resend-magic-link-module_container__DWulN {\n width: 100%;\n position: relative;\n}\n\n.resend-magic-link-module_resendButton__JQst6 {\n width: 100%;\n}\n\n.resend-magic-link-module_resendMessage__gaJuE {\n margin: 0.5rem 0;\n color: var(--phx-resendInformationTextColor, #0146db);\n}\n\n.resend-magic-link-module_resendMessage__gaJuE.cds-error-icon {\n margin: 0px;\n width: var(0.75rem);\n height: var(0.75rem);\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2VuZC1tYWdpYy1saW5rLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsV0FBVztFQUNYLGFBQWE7RUFDYixzQkFBc0I7RUFDdEIsZUFBZTtBQUNqQjs7QUFFQTtFQUNFLFdBQVc7RUFDWCxrQkFBa0I7QUFDcEI7O0FBRUE7RUFDRSxXQUFXO0FBQ2I7O0FBRUE7RUFDRSxnQkFBZ0I7RUFDaEIscURBQXFEO0FBQ3ZEOztBQUNBO0VBQ0UsV0FBVztFQUNYLG1CQUFtQjtFQUNuQixvQkFBb0I7QUFDdEIiLCJmaWxlIjoicmVzZW5kLW1hZ2ljLWxpbmsubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZm9ybSB7XG4gIHdpZHRoOiAxMDAlO1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICBmbGV4LXdyYXA6IHdyYXA7XG59XG5cbi5jb250YWluZXIge1xuICB3aWR0aDogMTAwJTtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xufVxuXG4ucmVzZW5kQnV0dG9uIHtcbiAgd2lkdGg6IDEwMCU7XG59XG5cbi5yZXNlbmRNZXNzYWdlIHtcbiAgbWFyZ2luOiAwLjVyZW0gMDtcbiAgY29sb3I6IHZhcigtLXBoeC1yZXNlbmRJbmZvcm1hdGlvblRleHRDb2xvciwgIzAxNDZkYik7XG59XG4ucmVzZW5kTWVzc2FnZTpnbG9iYWwoLmNkcy1lcnJvci1pY29uKSB7XG4gIG1hcmdpbjogMHB4O1xuICB3aWR0aDogdmFyKDAuNzVyZW0pO1xuICBoZWlnaHQ6IHZhcigwLjc1cmVtKTtcbn0iXX0= */");const _s=({onResend:e,enabledOnStart:t=!1})=>{const{translate:n}=(0,a.c)(),[s,h]=(0,c.useState)(!1),[f,p]=(0,c.useState)(t?0:60),[d,v]=(0,c.useState)(""),g=()=>{p(60);const e=setInterval(()=>{p(t=>(t<=0&&clearInterval(e),t-1))},1e3);return e};(0,c.useEffect)(()=>{let e;return t||(e=g()),()=>{clearInterval(e)}},[]);return(0,r.jsxs)("div",Object.assign({className:u()(bs,"resend-magic-link__container")},{children:[(0,r.jsx)(i.$,Object.assign({type:"button",variant:"primary",size:"large",id:"resend-button",className:ks,"data-translate-key":"resendButton",onClick:t=>{var r;f>0||(r=t,l(void 0,void 0,void 0,function*(){r.preventDefault(),h(!0);const t=yield e();h(!1),function(e){return!e.success}(t)&&v(t.message||n("defaultErrorMessage"))}),g())},disabled:s||f>0},{children:n("resendButton")})),f>0?(0,r.jsx)(o.K,{className:ws,message:d||n("linkResendPossibleIn",void 0,f.toString())}):null]}))}}}]); 3//# sourceMappingURL=d0c7ac96-a299b89ea439fec597f9.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.