PageSourceSearch

https://cryptoexchanger.netlify.app/js/chunk-vendors.440530df.js

js cryptoexchanger.netlify.app collected 2026-10-03 10:37:00 UTC 1,365,404 bytes, 3,985 lines download raw bytes

1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"0481":function(t,e,n){"use strict";var r=n("23e7"),i=n("a2bf"),o=n("7b0b"),a=n("50c4"),s=n("a691"),u=n("65f0");r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=a(e.length),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},"057f":function(t,e,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"06c5":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3");var r=n("6b75");function i(t,e){if(t){if("string"===typeof t)return Object(r["a"])(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(t,e):void 0}}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),u=n("5135"),c=n("0cfb"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=s(e,!0),c)try{return l(t,e)}catch(n){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},"07ac":function(t,e,n){var r=n("23e7"),i=n("6f53").values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},"0a06":function(t,e,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b");function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=u},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},1148:function(t,e,n){"use strict";var r=n("a691"),i=n("1d80");t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},1276:function(t,e,n){"use strict";var r=n("d784"),i=n("44e7"),o=n("825a"),a=n("1d80"),s=n("4840"),u=n("8aa5"),c=n("50c4"),l=n("14c3"),f=n("9263"),h=n("9f7f"),d=h.UNSUPPORTED_Y,p=[].push,v=Math.min,g=4294967295;r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(a(this)),o=void 0===n?g:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!i(t))return e.call(r,t,o);var s,u,c,l=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,v=new RegExp(t.source,h+"g");while(s=f.call(v,r)){if(u=v.lastIndex,u>d&&(l.push(r.slice(d,s.index)),s.length>1&&s.index<r.length&&p.apply(l,s.slice(1)),c=s[0].length,d=u,l.length>=o))break;v.lastIndex===s.index&&v.lastIndex++}return d===r.length?!c&&v.test("")||l.push(""):l.push(r.slice(d)),l.length>
1o?l.slice(0,o):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var i=a(this),o=void 0==e?void 0:e[t];return void 0!==o?o.call(e,i,n):r.call(String(i),e,n)},function(t,i){var a=n(r,t,this,i,r!==e);if(a.done)return a.value;var f=o(t),h=String(this),p=s(f,RegExp),m=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(d?"g":"y"),b=new p(d?"^(?:"+f.source+")":f,y),w=void 0===i?g:i>>>0;if(0===w)return[];if(0===h.length)return null===l(b,h)?[h]:[];var _=0,E=0,O=[];while(E<h.length){b.lastIndex=d?0:E;var I,T=l(b,d?h.slice(E):h);if(null===T||(I=v(c(b.lastIndex+(d?E:0)),h.length))===_)E=u(h,E,m);else{if(O.push(h.slice(_,E)),O.length===w)return O;for(var S=1;S<=T.length-1;S++)if(O.push(T[S]),O.length===w)return O;E=_=I}}return O.push(h.slice(_)),O}]}),d)},"14c3":function(t,e,n){var r=n("c6b6"),i=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},1547:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return h}));
2/*! Capacitor: https://capacitorjs.com/ - MIT License */
3const r=t=>{const e=new Map;e.set("web",{name:"web"});const n=t.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:e},r=(t,e)=>{n.platforms.set(t,e)},i=t=>{n.platforms.has(t)&&(n.currentPlatform=n.platforms.get(t))};return n.addPlatform=r,n.setPlatform=i,n},i=t=>t.CapacitorPlatforms=r(t),o=i("undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof t?t:{});o.addPlatform,o.setPlatform;var a;(function(t){t["Unimplemented"]="UNIMPLEMENTED",t["Unavailable"]="UNAVAILABLE"})(a||(a={}));class s extends Error{constructor(t,e){super(t),this.message=t,this.code=e}}const u=t=>{var e,n;return(null===t||void 0===t?void 0:t.androidBridge)?"android":(null===(n=null===(e=null===t||void 0===t?void 0:t.webkit)||void 0===e?void 0:e.messageHandlers)||void 0===n?void 0:n.bridge)?"ios":"web"},c=t=>{var e,n,r,i,o;const c=t.Capacitor||{},l=c.Plugins=c.Plugins||{},f=t.CapacitorPlatforms,h=()=>u(t),d=(null===(e=null===f||void 0===f?void 0:f.currentPlatform)||void 0===e?void 0:e.getPlatform)||h,p=()=>"web"!==u(t),v=(null===(n=null===f||void 0===f?void 0:f.currentPlatform)||void 0===n?void 0:n.isNativePlatform)||p,g=t=>{const e=E.get(t);return!!(null===e||void 0===e?void 0:e.platforms.has(d()))||!!b(t)},m=(null===(r=null===f||void 0===f?void 0:f.currentPlatform)||void 0===r?void 0:r.isPluginAvailable)||g,y=t=>{var e;return null===(e=c.PluginHeaders)||void 0===e?void 0:e.find(e=>e.name===t)},b=(null===(i=null===f||void 0===f?void 0:f.currentPlatform)||void 0===i?void 0:i.getPluginHeader)||y,w=e=>t.console.error(e),_=(t,e,n)=>Promise.reject(`${n} does not have an implementation of "${e}".`),E=new Map,O=(t,e={})=>{const n=E.get(t);if(n)return console.warn(`Capacitor plugin "${t}" already registered. Cannot register plugins twice.`),n.proxy;const r=d(),i=b(t);let o;const u=async()=>(!o&&r in e&&(o=o="function"===typeof e[r]?await e[r]():e[r]),o),f=(e,n)=>{var o,u;if(!i){if(e)return null===(u=e[n])||void 0===u?void 0:u.bind(e);throw new s(`"${t}" plugin is not implemented on ${r}`,a.Unimplemented)}{const r=null===i||void 0===i?void 0:i.methods.find(t=>n===t.name);if(r)return"promise"===r.rtype?e=>c.nativePromise(t,n.toString(),e):(e,r)=>c.nativeCallback(t,n.toString(),e,r);if(e)return null===(o=e[n])||void 0===o?void 0:o.bind(e)}},h=e=>{let n;const i=(...i)=>{const o=u().then(o=>{const u=f(o,e);if(u){const t=u(...i);return n=null===t||void 0===t?void 0:t.remove,t}throw new s(`"${t}.${e}()" is not implemented on ${r}`,a.Unimplemented)});return"addListener"===e&&(o.remove=async()=>n()),o};return i.toString=()=>e.toString()+"() { [capacitor code] }",Object.defineProperty(i,"name",{value:e,writable:!1,configurable:!1}),i},p=h("addListener"),v=h("removeListener"),g=(t,e)=>{const n=p({eventName:t},e),r=async()=>{const r=await n;v({eventName:t,callbackId:r},e)},i=new Promise(t=>n.then(()=>t({remove:r})));return i.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await r()},i},m=new Proxy({},{get(t,e){switch(e){case"$$typeof":return;case"addListener":return i?g:p;case"removeListener":return v;default:return h(e)}}});return l[t]=m,E.set(t,{name:t,proxy:m,platforms:new Set([...Object.keys(e),...i?[r]:[]])}),m},I=(null===(o=null===f||void 0===f?void 0:f.currentPlatform)||void 0===o?void 0:o.registerPlugin)||O;return c.convertFileSrc||(c.convertFileSrc=t=>t),c.getPlatform=d,c.handleError=w,c.isNativePlatform=v,c.isPluginAvailable=m,c.pluginMethodNoop=_,c.registerPlugin=I,c.Exception=s,c.DEBUG=!!c.DEBUG,c.isLoggingEnabled=!!c.isLoggingEnabled,c.platform=c.getPlatform(),c.isNative=c.isNativePlatform(),c},l=t=>t.Capacitor=c(t),f=l("undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof t?t:{}),h=f.registerPlugin;f.Plugins;class d{constructor(t){this.listeners={},this.windowListeners={},t&&(console.warn(`Capacitor WebPlugin "${t.name}
3" config object was deprecated in v3 and will be removed in v4.`),this.config=t)}addListener(t,e){const n=this.listeners[t];n||(this.listeners[t]=[]),this.listeners[t].push(e);const r=this.windowListeners[t];r&&!r.registered&&this.addWindowListener(r);const i=async()=>this.removeListener(t,e),o=Promise.resolve({remove:i});return Object.defineProperty(o,"remove",{value:async()=>{console.warn("Using addListener() without 'await' is deprecated."),await i()}}),o}async removeAllListeners(){this.listeners={};for(const t in this.windowListeners)this.removeWindowListener(this.windowListeners[t]);this.windowListeners={}}notifyListeners(t,e){const n=this.listeners[t];n&&n.forEach(t=>t(e))}hasListeners(t){return!!this.listeners[t].length}registerWindowListener(t,e){this.windowListeners[e]={registered:!1,windowEventName:t,pluginEventName:e,handler:t=>{this.notifyListeners(e,t)}}}unimplemented(t="not implemented"){return new f.Exception(t,a.Unimplemented)}unavailable(t="not available"){return new f.Exception(t,a.Unavailable)}async removeListener(t,e){const n=this.listeners[t];if(!n)return;const r=n.indexOf(e);this.listeners[t].splice(r,1),this.listeners[t].length||this.removeWindowListener(this.windowListeners[t])}addWindowListener(t){window.addEventListener(t.windowEventName,t.handler),t.registered=!0}removeWindowListener(t){t&&(window.removeEventListener(t.windowEventName,t.handler),t.registered=!1)}}}).call(this,n("c8ba"))},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in i){var u=r[s],c=u&&u.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(l){c.forEach=o}}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(u){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1da1":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("d3b7");function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2196:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){try{if(t instanceof c)return t.value;if(!a()||"string"!==typeof t||""===t)return t;var e=document.createDocumentFragment(),n=document.createElement("div");e.appendChild(n),n.innerHTML=t,u.forEach((function(t){for(var n=e.querySelectorAll(t),r=n.length-1;r>=0;r--){var a=n[r];a.parentNode?a.parentNode.removeChild(a):e.removeChild(a);for(var s=o(a),u=0;u<s.length;u++)i(s[u])}}));for(var r=o(e),s=0;s<r.length;s++)i(r[s]);var l=document.createElement("div");l.appendChild(e);var f=l.querySelector("div");return null!==f?f.innerHTML:l.innerHTML}catch(h){return console.error(h),""}},i=function(t){if(!t.nodeType||1===t.nodeType){for(var e=t.attributes.length-1;e>=0;e--){var n=t.attributes.item(e),r=n.name;if(s.includes(r.toLowerCase())){var a=n.value;null!=a&&a.toLowerCase().includes("javascript:")&&t.removeAttribute(r)}else t.removeAttribute(r)}var u=o(t);for(e=0;e<u.length;e++)i(u[e])}},o=function(t){return null!=t.children?t.children:t.childNodes},a=function(){var t=window,e=t&&t.Ionic&&t.Ionic.config;return!e||(e.get?e.get("sanitizerEnabled",!0):!0===e.sanitizerEnabled||void 0===e.sanitizerEnabled)},s=["class","id","href","src","name","slot"],u=["script","style","iframe","meta","link","object","embed"],c=function(){function t(t){this.value=t}return t}()},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),u=n("2a62"),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,f,h,d,p,v,g,m=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),_=a(e,m,1+y+w),E=function(t){return l&&u(l),new c(!0,t)},O=function(t){return y?(r(t),w?_(t[0],t[1],E):_(t[0],t[1])):w?_(t,E):_(t)};if(b)l=t;else{if(f=s(t),"function"!=typeof f)throw TypeError("Target is not iterable");if(i(f)){for(h=0,d=o(t.length);d>h;h++)if(p=O(t[h]),p&&p instanceof c)return p;return new c(!1)}l=f.call(t)}v=l.next;while(!(g=v.call(l)).done){try{p=O(g.value)}catch(I){throw u(l),I}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),u=n("e893"),c=n("94ca");t.exports=function(t,e){var n,l,f,h,d,p,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||s(v,{}):(r[v]||{}).prototype,l)for(f in e){if(d=e[f],t.noTargetGet?(p=i(l,f),h=p&&p.value):h=l[f],n=c(g?f:v+(m?".":"#")+f,t.forced),!n&&void 0!==h){if(typeof d===typeof h)continue;u(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),a(l,f,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},2444:function(t,e,n){"use strict";(function(e){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function s(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n("b50d")),t}var u={adapter:s(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u}).call(this,n("4362"))},2532:function(t,e,n){"use strict";var r=n("23e7"),i=n("5a34"),o=n("1d80"),a=n("ab13");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},2591:function(t,e,n){"use strict";n.d(e,"a",(function(){return r["a"]}));var r=n("cc84"),i=(n("b7aa"),n("e947"),n("a8e9")),o=n("abfd"),a=(n("c7b2"),n("e680")),s=n("ffa6"),u={Firestore:a["c"],GeoPoint:a["h"],Timestamp:a["e"],Blob:a["n"],Transaction:a["g"],WriteBatch:a["f"],DocumentReference:a["m"],DocumentSnapshot:a["a"],Query:a["i"],QueryDocumentSnapshot:a["b"],QuerySnapsh
3ot:a["j"],CollectionReference:a["s"],FieldPath:a["o"],FieldValue:a["r"],setLogLevel:a["p"],CACHE_SIZE_UNLIMITED:a["t"]};
4/**
5 * @license
6 * Copyright 2017 Google LLC
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 *   http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20function c(t){!function(t,e){t.INTERNAL.registerComponent(new s["a"]("firestore",(function(t){var n=t.getProvider("app").getImmediate();return e(n,t.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},u)))}(t,(function(t,e){return new a["c"](t,new a["k"](t,e),new a["d"])})),t.registerVersion("@firebase/firestore","2.3.0")}
21/**
22 * @license
23 * Copyright 2020 Google LLC
24 *
25 * Licensed under the Apache License, Version 2.0 (the "License");
26 * you may not use this file except in compliance with the License.
27 * You may obtain a copy of the License at
28 *
29 *   http://www.apache.org/licenses/LICENSE-2.0
30 *
31 * Unless required by applicable law or agreed to in writing, software
32 * distributed under the License is distributed on an "AS IS" BASIS,
33 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34 * See the License for the specific language governing permissions and
35 * limitations under the License.
36 */
37function l(t){t.prototype.loadBundle=a["l"],t.prototype.namedQuery=a["q"]}c(r["a"]),l(a["c"]);
38/*! *****************************************************************************
39Copyright (c) Microsoft Corporation.
40
41Permission to use, copy, modify, and/or distribute this software for any
42purpose with or without fee is hereby granted.
43
44THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
45REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
46AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
47INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
48LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
49OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
50PERFORMANCE OF THIS SOFTWARE.
51***************************************************************************** */
52var f=function(t,e){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},f(t,e)};function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function d(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function p(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;Object.create;
53/**
54 * @license
55 * Copyright 2017 Google LLC
56 *
57 * Licensed under the Apache License, Version 2.0 (the "License");
58 * you may not use this file except in compliance with the License.
59 * You may obtain a copy of the License at
60 *
61 *   http://www.apache.org/licenses/LICENSE-2.0
62 *
63 * Unless required by applicable law or agreed to in writing, software
64 * distributed under the License is distributed on an "AS IS" BASIS,
65 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
66 * See the License for the specific language governing permissions and
67 * limitations under the License.
68 */
69var v={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},g=function(t){function e(n,r,i){var o=t.call(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o.code=n,o.details=i,o}return h(e,t),e}(Error);function m(t){if(t>=200&&t<300)return"ok";switch(t){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}function y(t,e,n){var r=m(t),i=r,o=void 0;try{var a=e&&e.error;if(a){var s=a.status;if("string"===typeof s){if(!v[s])return new g("internal","internal");r=v[s],i=s}var u=a.message;"string"===typeof u&&(i=u),o=a.details,void 0!==o&&(o=n.decode(o))}}catch(c){}return"ok"===r?null:new g(r,i,o)}var b=function(){function t(t,e){var n=this;this.auth=null,this.messaging=null,this.auth=t.getImmediate({optional:!0}),this.messaging=e.getImmediate({optional:!0}),this.auth||t.get().then((function(t){return n.auth=t}),(function(){})),this.messaging||e.get().then((function(t){return n.messaging=t}),(function(){}))}return t.prototype.getAuthToken=function(){return d(this,void 0,void 0,(function(){var t;return p(this,(function(e){switch(e.label){case 0:if(!this.auth)return[2,void 0];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.auth.getToken()];case 2:return t=e.sent(),t?[2,t.accessToken]:[2,void 0];case 3:return e.sent(),[2,void 0];case 4:return[2]}}
69))}))},t.prototype.getInstanceIdToken=function(){return d(this,void 0,void 0,(function(){return p(this,(function(t){if(!this.messaging||!("Notification"in self)||"granted"!==Notification.permission)return[2,void 0];try{return[2,this.messaging.getToken()]}catch(e){return[2,void 0]}return[2]}))}))},t.prototype.getContext=function(){return d(this,void 0,void 0,(function(){var t,e;return p(this,(function(n){switch(n.label){case 0:return[4,this.getAuthToken()];case 1:return t=n.sent(),[4,this.getInstanceIdToken()];case 2:return e=n.sent(),[2,{authToken:t,instanceIdToken:e}]}}))}))},t}(),w="type.googleapis.com/google.protobuf.Int64Value",_="type.googleapis.com/google.protobuf.UInt64Value";
70/**
71 * @license
72 * Copyright 2017 Google LLC
73 *
74 * Licensed under the Apache License, Version 2.0 (the "License");
75 * you may not use this file except in compliance with the License.
76 * You may obtain a copy of the License at
77 *
78 *   http://www.apache.org/licenses/LICENSE-2.0
79 *
80 * Unless required by applicable law or agreed to in writing, software
81 * distributed under the License is distributed on an "AS IS" BASIS,
82 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
83 * See the License for the specific language governing permissions and
84 * limitations under the License.
85 */function E(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}var O=function(){function t(){}return t.prototype.encode=function(t){var e=this;if(null==t)return null;if(t instanceof Number&&(t=t.valueOf()),"number"===typeof t&&isFinite(t))return t;if(!0===t||!1===t)return t;if("[object String]"===Object.prototype.toString.call(t))return t;if(Array.isArray(t))return t.map((function(t){return e.encode(t)}));if("function"===typeof t||"object"===typeof t)return E(t,(function(t){return e.encode(t)}));throw new Error("Data cannot be encoded in JSON: "+t)},t.prototype.decode=function(t){var e=this;if(null==t)return t;if(t["@type"])switch(t["@type"]){case w:case _:var n=Number(t["value"]);if(isNaN(n))throw new Error("Data cannot be decoded from JSON: "+t);return n;default:throw new Error("Data cannot be decoded from JSON: "+t)}return Array.isArray(t)?t.map((function(t){return e.decode(t)})):"function"===typeof t||"object"===typeof t?E(t,(function(t){return e.decode(t)})):t},t}();
86/**
87 * @license
88 * Copyright 2017 Google LLC
89 *
90 * Licensed under the Apache License, Version 2.0 (the "License");
91 * you may not use this file except in compliance with the License.
92 * You may obtain a copy of the License at
93 *
94 *   http://www.apache.org/licenses/LICENSE-2.0
95 *
96 * Unless required by applicable law or agreed to in writing, software
97 * distributed under the License is distributed on an "AS IS" BASIS,
98 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
99 * See the License for the specific language governing permissions and
100 * limitations under the License.
101 */function I(t){var e,n=new Promise((function(n,r){e=setTimeout((function(){r(new g("deadline-exceeded","deadline-exceeded"))}),t)}));return{timer:e,promise:n}}var T=function(){function t(t,e,n,r,i,o){var a=this;void 0===i&&(i="us-central1"),this.app_=t,this.appCheckProvider=r,this.fetchImpl=o,this.serializer=new O,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return Promise.resolve(a.deleteService())}},this.contextProvider=new b(e,n),this.cancelAllRequests=new Promise((function(t){a.deleteService=function(){return t()}}));try{var s=new URL(i);this.customDomain=s.origin,this.region="us-central1"}catch(u){this.customDomain=null,this.region=i}}return Object.defineProperty(t.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),t.prototype._url=function(t){var e=this.app_.options.projectId;if(null!==this.emulatorOrigin){var n=this.emulatorOrigin;return n+"/"+e+"/"+this.region+"/"+t}return null!==this.customDomain?this.customDomain+"/"+t:"https://"+this.region+"-"+e+".cloudfunctions.net/"+t},t.prototype.useEmulator=function(t,e){this.emulatorOrigin="http://"+t+":"+e},t.prototype.useFunctionsEmulator=function(t){this.emulatorOrigin=t},t.prototype.httpsCallable=function(t,e){var n=this;return function(r){return n.call(t,r,e||{})}},t.prototype.postJSON=function(t,e,n){return d(this,void 0,void 0,(function(){var r,i,o;return p(this,(function(a){switch(a.label){case 0:return n["Content-Type"]="application/json",[4,this.getAppCheckToken()];case 1:r=a.sent(),null!==r&&(n["X-Firebase-AppCheck"]=r),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.fetchImpl(t,{method:"POST",body:JSON.stringify(e),headers:n})];case 3:return i=a.sent(),[3,5];case 4:return a.sent(),[2,{status:0,json:null}];case 5:o=null,a.label=6;case 6:return a.trys.push([6,8,,9]),[4,i.json()];case 7:return o=a.sent(),[3,9];case 8:return a.sent(),[3,9];case 9:return[2,{status:i.status,json:o}]}}))}))},t.prototype.getAppCheckToken=function(){return d(this,void 0,void 0,(function(){var t,e;return p(this,(function(n){switch(n.label){case 0:return t=this.appCheckProvider.getImmediate({optional:!0}),t?[4,t.getToken()]:[3,2];case 1:return e=n.sent(),[2,e.token];case 2:return[2,null]}}))}))},t.prototype.call=function(t,e,n){return d(this,void 0,void 0,(function(){var r,i,o,a,s,u,c,l,f,h,d,v;return p(this,(function(p){switch(p.label){case 0:return r=this._url(t),e=this.serializer.encode(e),i={data:e},o={},[4,this.contextProvider.getContext()];case 1:return a=p.sent(),a.authToken&&(o["Authorization"]="Bearer "+a.authToken),a.instanceIdToken&&(o["Firebase-Instance-ID-Token"]=a.instanceIdToken),s=n.timeout||7e4,u=I(s),c=u.timer,l=u.promise,[4,Promise.race([S(c,this.postJSON(r,i,o)),l,S(c,this.cancelAllRequests)])];case 2:if(f=p.sent(),!f)throw new g("cancelled","Firebase Functions instance was deleted.");
101if(h=y(f.status,f.json,this.serializer),h)throw h;if(!f.json)throw new g("internal","Response is not valid JSON object.");if(d=f.json.data,"undefined"===typeof d&&(d=f.json.result),"undefined"===typeof d)throw new g("internal","Response is missing data field.");return v=this.serializer.decode(d),[2,{data:v}]}}))}))},t}();function S(t,e){return d(this,void 0,void 0,(function(){var n;return p(this,(function(r){switch(r.label){case 0:return[4,e];case 1:return n=r.sent(),clearTimeout(t),[2,n]}}))}))}
102/**
103 * @license
104 * Copyright 2019 Google LLC
105 *
106 * Licensed under the Apache License, Version 2.0 (the "License");
107 * you may not use this file except in compliance with the License.
108 * You may obtain a copy of the License at
109 *
110 *   http://www.apache.org/licenses/LICENSE-2.0
111 *
112 * Unless required by applicable law or agreed to in writing, software
113 * distributed under the License is distributed on an "AS IS" BASIS,
114 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
115 * See the License for the specific language governing permissions and
116 * limitations under the License.
117 */var k="functions";function C(t,e){var n={Functions:T};function r(t,n){var r=n.instanceIdentifier,i=t.getProvider("app").getImmediate(),o=t.getProvider("auth-internal"),a=t.getProvider("app-check-internal"),s=t.getProvider("messaging");return new T(i,o,s,a,r,e)}t.INTERNAL.registerComponent(new s["a"](k,r,"PUBLIC").setServiceProps(n).setMultipleInstances(!0))}var x="@firebase/functions",j="0.6.8";
118/**
119 * @license
120 * Copyright 2017 Google LLC
121 *
122 * Licensed under the Apache License, Version 2.0 (the "License");
123 * you may not use this file except in compliance with the License.
124 * You may obtain a copy of the License at
125 *
126 *   http://www.apache.org/licenses/LICENSE-2.0
127 *
128 * Unless required by applicable law or agreed to in writing, software
129 * distributed under the License is distributed on an "AS IS" BASIS,
130 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
131 * See the License for the specific language governing permissions and
132 * limitations under the License.
133 */
134C(r["a"],fetch.bind(self)),r["a"].registerVersion(x,j);var A=function(){return A=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},A.apply(this,arguments)};function N(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function P(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;function R(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function D(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function L(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}Object.create;var M,F=n("9dbb"),U="@firebase/installations",q="0.4.26",$=1e4,B="w:"+q,V="FIS_v2",K="https://firebaseinstallations.googleapis.com/v1",W=36e5,z="installations",H="Installations",G=(M={},M["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',M["not-registered"]="Firebase Installation is not registered.",M["installation-not-found"]="Firebase Installation not found.",M["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',M["app-offline"]="Could not process request. Application offline.",M["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",M),X=new i["b"](z,H,G);function Y(t){return t instanceof i["c"]&&t.code.includes("request-failed")}
135/**
136 * @license
137 * Copyright 2019 Google LLC
138 *
139 * Licensed under the Apache License, Version 2.0 (the "License");
140 * you may not use this file except in compliance with the License.
141 * You may obtain a copy of the License at
142 *
143 *   http://www.apache.org/licenses/LICENSE-2.0
144 *
145 * Unless required by applicable law or agreed to in writing, software
146 * distributed under the License is distributed on an "AS IS" BASIS,
147 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
148 * See the License for the specific language governing permissions and
149 * limitations under the License.
150 */function Q(t){var e=t.projectId;return K+"/projects/"+e+"/installations"}function J(t){return{token:t.token,requestStatus:2,expiresIn:rt(t.expiresIn),creationTime:Date.now()}}function Z(t,e){return N(this,void 0,void 0,(function(){var n,r;return P(this,(function(i){switch(i.label){case 0:return[4,e.json()];case 1:return n=i.sent(),r=n.error,[2,X.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})]}}))}))}function tt(t){var e=t.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function et(t,e){var n=e.refreshToken,r=tt(t);return r.append("Authorization",it(n)),r}function nt(t){return N(this,void 0,void 0,(function(){var e;return P(this,(function(n){switch(n.label){case 0:return[4,t()];case 1:return e=n.sent(),e.status>=500&&e.status<600?[2,t()]:[2,e]}}))}))}function rt(t){return Number(t.replace("s","000"))}function it(t){return V+" "+t}
151/**
152 * @license
153 * Copyright 2019 Google LLC
154 *
155 * Licensed under the Apache License, Version 2.0 (the "License");
156 * you may not use this file except in compliance with the License.
157 * You may obtain a copy of the License at
158 *
159 *   http://www.apache.org/licenses/LICENSE-2.0
160 *
161 * Unless required by applicable law or agreed to in writing, software
162 * distributed under the License is distributed on an "AS IS" BASIS,
163 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
164 * See the License for the specific language governing permissions and
165 * limitations under the License.
166 */function ot(t,e){var n=e.fid;return N(this,void 0,void 0,(function(){var e,r,i,o,a,s,u;return P(this,(function(c){switch(c.label){case 0:return e=Q(t),r=tt(t),i={fid:n,authVersion:V,appId:t.appId,sdkVersion:B},o={method:"POST",headers:r,body:JSON.stringify(i)},[4,nt((function(){return fetch(e,o)}))];case 1:return a=c.sent(),a.ok?[4,a.json()]:[3,3];case 2:return s=c.sent(),u={fid:s.fid||n,registrationStatus:2,refreshToken:s.refreshToken,authToken:J(s.authToken)},[2,u];case 3:return[4,Z("Create Installation",a)];case 4:throw c.sent()}}))}))}
167/**
168 * @license
169 * Copyright 2020 Google LLC
170 *
171 * Licensed under the Apache License, Version 2.0 (the "License");
172 * you may not use this file except in compliance with the License.
173 * You may obtain a copy of the License at
174 *
175 *   http://www.apache.org/licenses/LICENSE-2.0
176 *
177 * Unless required by applicable law or agreed to in writing, software
178 * distributed under the License is distributed on an "AS IS" BASIS,
179 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
180 * See the License for the specific language governing permissions and
181 * limitations under the License.
182 */function at(t){return new Promise((function(e){setTimeout(e,t)}))}
183/**
184 * @license
185 * Copyright 2019 Google LLC
186 *
187 * Licensed under the Apache License, Version 2.0 (the "License");
188 * you may not use this file except in compliance with the License.
189 * You may obtain a copy of the License at
190 *
191 *   http://www.apache.org/licenses/LICENSE-2.0
192 *
193 * Unless required by applicable law or agreed to in writing, software
194 * distributed under the License is distributed on an "AS IS" BASIS,
195 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
196 * See the License for the specific language governing permissions and
197 * limitations under the License.
198 */function st(t){var e=btoa(String.fromCharCode.apply(String,L([],D(t))));return e.replace(/\+/g,"-").replace(/\//g,"_")}
199/**
200 * @license
201 * Copyright 2019 Google LLC
202 *
203 * Licensed under the Apache License, Version 2.0 (the "License");
204 * you may not use this file except in compliance with the License.
205 * You may obtain a copy of the License at
206 *
207 *   http://www.apache.org/licenses/LICENSE-2.0
208 *
209 * Unless required by applicable law or agreed to in writing, software
210 * distributed under the License is distributed on an "AS IS" BASIS,
211 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
212 * See the License for the specific language governing permissions and
213 * limitations under the License.
214 */var ut=/^[cdef][\w-]{21}$/,ct="";function lt(){try{var t=new Uint8Array(17),e=self.crypto||self.msCrypto;e.getRandomValues(t),t[0]=112+t[0]%16;var n=ft(t);return ut.test(n)?n:ct}catch(r){return ct}}function ft(t){var e=st(t);return e.substr(0,22)}
215/**
216 * @license
217 * Copyright 2019 Google LLC
218 *
219 * Licensed under the Apache License, Version 2.0 (the "License");
220 * you may not use this file except in compliance with the License.
221 * You may obtain a copy of the License at
222 *
223 *   http://www.apache.org/licenses/LICENSE-2.0
224 *
225 * Unless required by applicable law or agreed to in writing, software
226 * distributed under the License is distributed on an "AS IS" BASIS,
227 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
228 * See the License for the specific language governing permissions and
229 * limitations under the License.
230 */function ht(t){return t.appName+"!"+t.appId}
231/**
232 * @license
233 * Copyright 2019 Google LLC
234 *
235 * Licensed under the Apache License, Version 2.0 (the "License");
236 * you may not use this file except in compliance with the License.
237 * You may obtain a copy of the License at
238 *
239 *   http://www.apache.org/licenses/LICENSE-2.0
240 *
241 * Unless required by applicable law or agreed to in writing, software
242 * distributed under the License is distributed on an "AS IS" BASIS,
243 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
244 * See the License for the specific language governing permissions and
245 * limitations under the License.
246 */var dt=new Map;function pt(t,e){var n=ht(t);mt(n,e),yt(n,e)}function vt(t,e){wt();var n=ht(t),r=dt.get(n);r||(r=new Set,dt.set(n,r)),r.add(e)}function gt(t,e){var n=ht(t),r=dt.get(n);r&&(r.delete(e),0===r.size&&dt.delete(n),_t())}function mt(t,e){var n,r,i=dt.get(t);if(i)try{for(var o=R(i),a=o.next();!a.done;a=o.next()){var s=a.value;s(e)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function yt(t,e){var n=wt();n&&n.postMessage({key:t,fid:e}),_t()}var bt=null;function wt(){return!bt&&"BroadcastChannel"in self&&(bt=new BroadcastChannel("[Firebase] FID Change"),bt.onmessage=function(t){mt(t.data.key,t.data.fid)}),bt}function _t(){0===dt.size&&bt&&(bt.close(),bt=null)}
247/**
248 * @license
249 * Copyright 2019 Google LLC
250 *
251 * Licensed under the Apache License, Version 2.0 (the "License");
252 * you may not use this file except in compliance with the License.
253 * You may obtain a copy of the License at
254 *
255 *   http://www.apache.org/licenses/LICENSE-2.0
256 *
257 * Unless required by applicable law or agreed to in writing, software
258 * distributed under the License is distributed on an "AS IS" BASIS,
259 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
260 * See the License for the specific language governing permissions and
261 * limitations under the License.
262 */var Et="firebase-installations-database",Ot=1,It="firebase-installations-store",Tt=null;function St(){return Tt||(Tt=Object(F["openDb"])(Et,Ot,(function(t){switch(t.oldVersion){case 0:t.createObjectStore(It)}}))),Tt}function kt(t,e){return N(this,void 0,void 0,(function(){var n,r,i,o,a;return P(this,(function(s){switch(s.label){case 0:return n=ht(t),[4,St()];case 1:return r=s.sent(),i=r.transaction(It,"readwrite"),o=i.objectStore(It),[4,o.get(n)];case 2:return a=s.sent(),[4,o.put(e,n)];case 3:return s.sent(),[4,i.complete];case 4:return s.sent(),a&&a.fid===e.fid||pt(t,e.fid),[2,e]}}))}))}function Ct(t){return N(this,void 0,void 0,(function(){var e,n,r;return P(this,(function(i){switch(i.label){case 0:return e=ht(t),[4,St()];case 1:return n=i.sent(),r=n.transaction(It,"readwrite"),[4,r.objectStore(It).delete(e)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function xt(t,e){return N(this,void 0,void 0,(function(){var n,r,i,o,a,s;return P(this,(function(u){switch(u.label){case 0:return n=ht(t),[4,St()];case 1:return r=u.sent(),i=r.transaction(It,"readwrite"),o=i.objectStore(It),[4,o.get(n)];case 2:return a=u.sent(),s=e(a),void 0!==s?[3,4]:[4,o.delete(n)];case 3:return u.sent(),[3,6];case 4:return[4,o.put(s,n)];case 5:u.sent(),u.label=6;case 6:return[4,i.complete];case 7:return u.sent(),!s||a&&a.fid===s.fid||pt(t,s.fid),[2,s]}}))}))}
263/**
264 * @license
265 * Copyright 2019 Google LLC
266 *
267 * Licensed under the Apache License, Version 2.0 (the "License");
268 * you may not use this file except in compliance with the License.
269 * You may obtain a copy of the License at
270 *
271 *   http://www.apache.org/licenses/LICENSE-2.0
272 *
273 * Unless required by applicable law or agreed to in writing, software
274 * distributed under the License is distributed on an "AS IS" BASIS,
275 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
276 * See the License for the specific language governing permissions and
277 * limitations under the License.
278 */function jt(t){return N(this,void 0,void 0,(function(){var e,n,r;return P(this,(function(i){switch(i.label){case 0:return[4,xt(t,(function(n){var r=At(n),i=Nt(t,r);return e=i.registrationPromise,i.installationEntry}))];case 1:return n=i.sent(),n.fid!==ct?[3,3]:(r={},[4,e]);case 2:return[2,(r.installationEntry=i.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:e}]}}))}))}function At(t){var e=t||{fid:lt(),registrationStatus:0};return Lt(e)}function Nt(t,e){if(0===e.registrationStatus){if(!navigator.onLine){var n=Promise.reject(X.create("app-offline"));return{installationEntry:e,registrationPromise:n}}var r={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},i=Pt(t,r);return{installationEntry:r,registrationPromise:i}}return 1===e.registrationStatus?{installationEntry:e,registrationPromise:Rt(t)}:{installationEntry:e}}function Pt(t,e){return N(this,void 0,void 0,(function(){var n,r;return P(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,ot(t,e)];case 1:return n=i.sent(),[2,kt(t,n)];case 2:return r=i.sent(),Y(r)&&409===r.customData.serverCode?[4,Ct(t)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,kt(t,{fid:e.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}}
278))}))}function Rt(t){return N(this,void 0,void 0,(function(){var e,n,r,i;return P(this,(function(o){switch(o.label){case 0:return[4,Dt(t)];case 1:e=o.sent(),o.label=2;case 2:return 1!==e.registrationStatus?[3,5]:[4,at(100)];case 3:return o.sent(),[4,Dt(t)];case 4:return e=o.sent(),[3,2];case 5:return 0!==e.registrationStatus?[3,7]:[4,jt(t)];case 6:return n=o.sent(),r=n.installationEntry,i=n.registrationPromise,i?[2,i]:[2,r];case 7:return[2,e]}}))}))}function Dt(t){return xt(t,(function(t){if(!t)throw X.create("installation-not-found");return Lt(t)}))}function Lt(t){return Mt(t)?{fid:t.fid,registrationStatus:0}:t}function Mt(t){return 1===t.registrationStatus&&t.registrationTime+$<Date.now()}
279/**
280 * @license
281 * Copyright 2019 Google LLC
282 *
283 * Licensed under the Apache License, Version 2.0 (the "License");
284 * you may not use this file except in compliance with the License.
285 * You may obtain a copy of the License at
286 *
287 *   http://www.apache.org/licenses/LICENSE-2.0
288 *
289 * Unless required by applicable law or agreed to in writing, software
290 * distributed under the License is distributed on an "AS IS" BASIS,
291 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
292 * See the License for the specific language governing permissions and
293 * limitations under the License.
294 */function Ft(t,e){var n=t.appConfig,r=t.platformLoggerProvider;return N(this,void 0,void 0,(function(){var t,i,o,a,s,u,c,l;return P(this,(function(f){switch(f.label){case 0:return t=Ut(n,e),i=et(n,e),o=r.getImmediate({optional:!0}),o&&i.append("x-firebase-client",o.getPlatformInfoString()),a={installation:{sdkVersion:B}},s={method:"POST",headers:i,body:JSON.stringify(a)},[4,nt((function(){return fetch(t,s)}))];case 1:return u=f.sent(),u.ok?[4,u.json()]:[3,3];case 2:return c=f.sent(),l=J(c),[2,l];case 3:return[4,Z("Generate Auth Token",u)];case 4:throw f.sent()}}))}))}function Ut(t,e){var n=e.fid;return Q(t)+"/"+n+"/authTokens:generate"}
295/**
296 * @license
297 * Copyright 2019 Google LLC
298 *
299 * Licensed under the Apache License, Version 2.0 (the "License");
300 * you may not use this file except in compliance with the License.
301 * You may obtain a copy of the License at
302 *
303 *   http://www.apache.org/licenses/LICENSE-2.0
304 *
305 * Unless required by applicable law or agreed to in writing, software
306 * distributed under the License is distributed on an "AS IS" BASIS,
307 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
308 * See the License for the specific language governing permissions and
309 * limitations under the License.
310 */function qt(t,e){return void 0===e&&(e=!1),N(this,void 0,void 0,(function(){var n,r,i,o;return P(this,(function(a){switch(a.label){case 0:return[4,xt(t.appConfig,(function(r){if(!Kt(r))throw X.create("not-registered");var i=r.authToken;if(!e&&Wt(i))return r;if(1===i.requestStatus)return n=$t(t,e),r;if(!navigator.onLine)throw X.create("app-offline");var o=Ht(r);return n=Vt(t,o),o}))];case 1:return r=a.sent(),n?[4,n]:[3,3];case 2:return o=a.sent(),[3,4];case 3:o=r.authToken,a.label=4;case 4:return i=o,[2,i]}}))}))}function $t(t,e){return N(this,void 0,void 0,(function(){var n,r;return P(this,(function(i){switch(i.label){case 0:return[4,Bt(t.appConfig)];case 1:n=i.sent(),i.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,at(100)];case 3:return i.sent(),[4,Bt(t.appConfig)];case 4:return n=i.sent(),[3,2];case 5:return r=n.authToken,0===r.requestStatus?[2,qt(t,e)]:[2,r]}}))}))}function Bt(t){return xt(t,(function(t){if(!Kt(t))throw X.create("not-registered");var e=t.authToken;return Gt(e)?A(A({},t),{authToken:{requestStatus:0}}):t}))}function Vt(t,e){return N(this,void 0,void 0,(function(){var n,r,i;return P(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,Ft(t,e)];case 1:return n=o.sent(),i=A(A({},e),{authToken:n}),[4,kt(t.appConfig,i)];case 2:return o.sent(),[2,n];case 3:return r=o.sent(),!Y(r)||401!==r.customData.serverCode&&404!==r.customData.serverCode?[3,5]:[4,Ct(t.appConfig)];case 4:return o.sent(),[3,7];case 5:return i=A(A({},e),{authToken:{requestStatus:0}}),[4,kt(t.appConfig,i)];case 6:o.sent(),o.label=7;case 7:throw r;case 8:return[2]}}
310))}))}function Kt(t){return void 0!==t&&2===t.registrationStatus}function Wt(t){return 2===t.requestStatus&&!zt(t)}function zt(t){var e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+W}function Ht(t){var e={requestStatus:1,requestTime:Date.now()};return A(A({},t),{authToken:e})}function Gt(t){return 1===t.requestStatus&&t.requestTime+$<Date.now()}
311/**
312 * @license
313 * Copyright 2019 Google LLC
314 *
315 * Licensed under the Apache License, Version 2.0 (the "License");
316 * you may not use this file except in compliance with the License.
317 * You may obtain a copy of the License at
318 *
319 *   http://www.apache.org/licenses/LICENSE-2.0
320 *
321 * Unless required by applicable law or agreed to in writing, software
322 * distributed under the License is distributed on an "AS IS" BASIS,
323 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
324 * See the License for the specific language governing permissions and
325 * limitations under the License.
326 */function Xt(t){return N(this,void 0,void 0,(function(){var e,n,r;return P(this,(function(i){switch(i.label){case 0:return[4,jt(t.appConfig)];case 1:return e=i.sent(),n=e.installationEntry,r=e.registrationPromise,r?r.catch(console.error):qt(t).catch(console.error),[2,n.fid]}}))}))}
327/**
328 * @license
329 * Copyright 2019 Google LLC
330 *
331 * Licensed under the Apache License, Version 2.0 (the "License");
332 * you may not use this file except in compliance with the License.
333 * You may obtain a copy of the License at
334 *
335 *   http://www.apache.org/licenses/LICENSE-2.0
336 *
337 * Unless required by applicable law or agreed to in writing, software
338 * distributed under the License is distributed on an "AS IS" BASIS,
339 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
340 * See the License for the specific language governing permissions and
341 * limitations under the License.
342 */function Yt(t,e){return void 0===e&&(e=!1),N(this,void 0,void 0,(function(){var n;return P(this,(function(r){switch(r.label){case 0:return[4,Qt(t.appConfig)];case 1:return r.sent(),[4,qt(t,e)];case 2:return n=r.sent(),[2,n.token]}}))}))}function Qt(t){return N(this,void 0,void 0,(function(){var e;return P(this,(function(n){switch(n.label){case 0:return[4,jt(t)];case 1:return e=n.sent().registrationPromise,e?[4,e]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}
342))}))}
343/**
344 * @license
345 * Copyright 2019 Google LLC
346 *
347 * Licensed under the Apache License, Version 2.0 (the "License");
348 * you may not use this file except in compliance with the License.
349 * You may obtain a copy of the License at
350 *
351 *   http://www.apache.org/licenses/LICENSE-2.0
352 *
353 * Unless required by applicable law or agreed to in writing, software
354 * distributed under the License is distributed on an "AS IS" BASIS,
355 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
356 * See the License for the specific language governing permissions and
357 * limitations under the License.
358 */function Jt(t,e){return N(this,void 0,void 0,(function(){var n,r,i,o;return P(this,(function(a){switch(a.label){case 0:return n=Zt(t,e),r=et(t,e),i={method:"DELETE",headers:r},[4,nt((function(){return fetch(n,i)}))];case 1:return o=a.sent(),o.ok?[3,3]:[4,Z("Delete Installation",o)];case 2:throw a.sent();case 3:return[2]}}))}))}function Zt(t,e){var n=e.fid;return Q(t)+"/"+n}
359/**
360 * @license
361 * Copyright 2019 Google LLC
362 *
363 * Licensed under the Apache License, Version 2.0 (the "License");
364 * you may not use this file except in compliance with the License.
365 * You may obtain a copy of the License at
366 *
367 *   http://www.apache.org/licenses/LICENSE-2.0
368 *
369 * Unless required by applicable law or agreed to in writing, software
370 * distributed under the License is distributed on an "AS IS" BASIS,
371 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
372 * See the License for the specific language governing permissions and
373 * limitations under the License.
374 */function te(t){return N(this,void 0,void 0,(function(){var e,n;return P(this,(function(r){switch(r.label){case 0:return e=t.appConfig,[4,xt(e,(function(t){if(!t||0!==t.registrationStatus)return t}))];case 1:if(n=r.sent(),!n)return[3,6];if(1!==n.registrationStatus)return[3,2];throw X.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw X.create("app-offline");case 3:return[4,Jt(e,n)];case 4:return r.sent(),[4,Ct(e)];case 5:r.sent(),r.label=6;case 6:return[2]}}
374))}))}
375/**
376 * @license
377 * Copyright 2019 Google LLC
378 *
379 * Licensed under the Apache License, Version 2.0 (the "License");
380 * you may not use this file except in compliance with the License.
381 * You may obtain a copy of the License at
382 *
383 *   http://www.apache.org/licenses/LICENSE-2.0
384 *
385 * Unless required by applicable law or agreed to in writing, software
386 * distributed under the License is distributed on an "AS IS" BASIS,
387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
388 * See the License for the specific language governing permissions and
389 * limitations under the License.
390 */function ee(t,e){var n=t.appConfig;return vt(n,e),function(){gt(n,e)}}
391/**
392 * @license
393 * Copyright 2019 Google LLC
394 *
395 * Licensed under the Apache License, Version 2.0 (the "License");
396 * you may not use this file except in compliance with the License.
397 * You may obtain a copy of the License at
398 *
399 *   http://www.apache.org/licenses/LICENSE-2.0
400 *
401 * Unless required by applicable law or agreed to in writing, software
402 * distributed under the License is distributed on an "AS IS" BASIS,
403 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
404 * See the License for the specific language governing permissions and
405 * limitations under the License.
406 */function ne(t){var e,n;if(!t||!t.options)throw re("App Configuration");if(!t.name)throw re("App Name");var r=["projectId","apiKey","appId"];try{for(var i=R(r),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.options[a])throw re(a)}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function re(t){return X.create("missing-app-config-values",{valueName:t})}
407/**
408 * @license
409 * Copyright 2019 Google LLC
410 *
411 * Licensed under the Apache License, Version 2.0 (the "License");
412 * you may not use this file except in compliance with the License.
413 * You may obtain a copy of the License at
414 *
415 *   http://www.apache.org/licenses/LICENSE-2.0
416 *
417 * Unless required by applicable law or agreed to in writing, software
418 * distributed under the License is distributed on an "AS IS" BASIS,
419 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
420 * See the License for the specific language governing permissions and
421 * limitations under the License.
422 */function ie(t){var e="installations";t.INTERNAL.registerComponent(new s["a"](e,(function(t){var e=t.getProvider("app").getImmediate(),n=ne(e),r=t.getProvider("platform-logger"),i={appConfig:n,platformLoggerProvider:r},o={app:e,getId:function(){return Xt(i)},getToken:function(t){return Yt(i,t)},delete:function(){return te(i)},onIdChange:function(t){return ee(i,t)}};return o}
422),"PUBLIC")),t.registerVersion(U,q)}ie(r["a"]);var oe=function(){return oe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},oe.apply(this,arguments)};function ae(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function se(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;function ue(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ce(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function le(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}var fe;Object.create;var he,de=(fe={},fe["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',fe["only-available-in-window"]="This method is available in a Window context.",fe["only-available-in-sw"]="This method is available in a service worker context.",fe["permission-default"]="The notification permission was not granted and dismissed instead.",fe["permission-blocked"]="The notification permission was not granted and blocked instead.",fe["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",fe["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",fe["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",fe["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",fe["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",fe["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",fe["token-update-no-token"]="FCM returned no token when updating the user to push.",fe["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",fe["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",fe["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",fe["invalid-vapid-key"]="The public VAPID key must be a string.",fe["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",fe),pe=new i["b"]("messaging","Messaging",de),ve="/firebase-messaging-sw.js",ge="/firebase-cloud-messaging-push-scope",me="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",ye="https://fcmregistrations.googleapis.com/v1",be="FCM_MSG",we="FirebaseMessaging: ",_e="google.c.a.e",Ee="google.c.a.c_id",Oe="google.c.a.ts",Ie="google.c.a.c_l",Te=1e3,Se=3e3;
423/**
424 * @license
425 * Copyright 2017 Google LLC
426 *
427 * Licensed under the Apache License, Version 2.0 (the "License");
428 * you may not use this file except in compliance with the License.
429 * You may obtain a copy of the License at
430 *
431 *   http://www.apache.org/licenses/LICENSE-2.0
432 *
433 * Unless required by applicable law or agreed to in writing, software
434 * distributed under the License is distributed on an "AS IS" BASIS,
435 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
436 * See the License for the specific language governing permissions and
437 * limitations under the License.
438 */
439function ke(t){var e=new Uint8Array(t),n=btoa(String.fromCharCode.apply(String,le([],ce(e))));return n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Ce(t){for(var e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length),o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}
440/**
441 * @license
442 * Copyright 2019 Google LLC
443 *
444 * Licensed under the Apache License, Version 2.0 (the "License");
445 * you may not use this file except in compliance with the License.
446 * You may obtain a copy of the License at
447 *
448 *   http://www.apache.org/licenses/LICENSE-2.0
449 *
450 * Unless required by applicable law or agreed to in writing, software
451 * distributed under the License is distributed on an "AS IS" BASIS,
452 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
453 * See the License for the specific language governing permissions and
454 * limitations under the License.
455 */(function(t){t["PUSH_RECEIVED"]="push-received",t["NOTIFICATION_CLICKED"]="notification-clicked"})(he||(he={}));var xe="fcm_token_details_db",je=5,Ae="fcm_token_object_Store";function Ne(t){return ae(this,void 0,void 0,(function(){var e,n,r,i,o=this;return se(this,(function(a){switch(a.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(e=a.sent(),n=e.map((function(t){return t.name})),!n.includes(xe))return[2,null];a.label=2;case 2:return r=null,[4,Object(F["openDb"])(xe,je,(function(e){return ae(o,void 0,void 0,(function(){var n,i,o,a;return se(this,(function(s){switch(s.label){case 0:return e.oldVersion<2?[2]:e.objectStoreNames.contains(Ae)?(n=e.transaction.objectStore(Ae),[4,n.index("fcmSenderId").get(t)]):[2];case 1:return i=s.sent(),[4,n.clear()];case 2:if(s.sent(),!i)return[2];if(2===e.oldVersion){if(o=i,!o.auth||!o.p256dh||!o.endpoint)return[2];r={token:o.fcmToken,createTime:null!==(a=o.createTime)&&void 0!==a?a:Date.now(),subscriptionOptions:{auth:o.auth,p256dh:o.p256dh,endpoint:o.endpoint,swScope:o.swScope,vapidKey:"string"===typeof o.vapidKey?o.vapidKey:ke(o.vapidKey)}}}else(3===e.oldVersion||4===e.oldVersion)&&(o=i,r={token:o.fcmToken,createTime:o.createTime,subscriptionOptions:{auth:ke(o.auth),p256dh:ke(o.p256dh),endpoint:o.endpoint,swScope:o.swScope,vapidKey:ke(o.vapidKey)}});return[2]}}))}))}))];case 3:return i=a.sent(),i.close(),[4,Object(F["deleteDb"])(xe)];case 4:return a.sent(),[4,Object(F["deleteDb"])("fcm_vapid_details_db")];case 5:return a.sent(),[4,Object(F["deleteDb"])("undefined")];case 6:return a.sent(),[2,Pe(r)?r:null]}}))}))}function Pe(t){if(!t||!t.subscriptionOptions)return!1;var e=t.subscriptionOptions;return"number"===typeof t.createTime&&t.createTime>0&&"string"===typeof t.token&&t.token.length>0&&"string"===typeof e.auth&&e.auth.length>0&&"string"===typeof e.p256dh&&e.p256dh.length>0&&"string"===typeof e.endpoint&&e.endpoint.length>0&&"string"===typeof e.swScope&&e.swScope.length>0&&"string"===typeof e.vapidKey&&e.vapidKey.length>0}
456/**
457 * @license
458 * Copyright 2019 Google LLC
459 *
460 * Licensed under the Apache License, Version 2.0 (the "License");
461 * you may not use this file except in compliance with the License.
462 * You may obtain a copy of the License at
463 *
464 *   http://www.apache.org/licenses/LICENSE-2.0
465 *
466 * Unless required by applicable law or agreed to in writing, software
467 * distributed under the License is distributed on an "AS IS" BASIS,
468 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
469 * See the License for the specific language governing permissions and
470 * limitations under the License.
471 */var Re="firebase-messaging-database",De=1,Le="firebase-messaging-store",Me=null;function Fe(){return Me||(Me=Object(F["openDb"])(Re,De,(function(t){switch(t.oldVersion){case 0:t.createObjectStore(Le)}}))),Me}function Ue(t){return ae(this,void 0,void 0,(function(){var e,n,r,i;return se(this,(function(o){switch(o.label){case 0:return e=Be(t),[4,Fe()];case 1:return n=o.sent(),[4,n.transaction(Le).objectStore(Le).get(e)];case 2:return r=o.sent(),r?[2,r]:[3,3];case 3:return[4,Ne(t.appConfig.senderId)];case 4:return i=o.sent(),i?[4,qe(t,i)]:[3,6];case 5:return o.sent(),[2,i];case 6:return[2]}}
471))}))}function qe(t,e){return ae(this,void 0,void 0,(function(){var n,r,i;return se(this,(function(o){switch(o.label){case 0:return n=Be(t),[4,Fe()];case 1:return r=o.sent(),i=r.transaction(Le,"readwrite"),[4,i.objectStore(Le).put(e,n)];case 2:return o.sent(),[4,i.complete];case 3:return o.sent(),[2,e]}}))}))}function $e(t){return ae(this,void 0,void 0,(function(){var e,n,r;return se(this,(function(i){switch(i.label){case 0:return e=Be(t),[4,Fe()];case 1:return n=i.sent(),r=n.transaction(Le,"readwrite"),[4,r.objectStore(Le).delete(e)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function Be(t){var e=t.appConfig;return e.appId}
472/**
473 * @license
474 * Copyright 2019 Google LLC
475 *
476 * Licensed under the Apache License, Version 2.0 (the "License");
477 * you may not use this file except in compliance with the License.
478 * You may obtain a copy of the License at
479 *
480 *   http://www.apache.org/licenses/LICENSE-2.0
481 *
482 * Unless required by applicable law or agreed to in writing, software
483 * distributed under the License is distributed on an "AS IS" BASIS,
484 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
485 * See the License for the specific language governing permissions and
486 * limitations under the License.
487 */function Ve(t,e){return ae(this,void 0,void 0,(function(){var n,r,i,o,a,s,u;return se(this,(function(c){switch(c.label){case 0:return[4,He(t)];case 1:n=c.sent(),r=Ge(e),i={method:"POST",headers:n,body:JSON.stringify(r)},c.label=2;case 2:return c.trys.push([2,5,,6]),[4,fetch(ze(t.appConfig),i)];case 3:return a=c.sent(),[4,a.json()];case 4:return o=c.sent(),[3,6];case 5:throw s=c.sent(),pe.create("token-subscribe-failed",{errorInfo:s});case 6:if(o.error)throw u=o.error.message,pe.create("token-subscribe-failed",{errorInfo:u});if(!o.token)throw pe.create("token-subscribe-no-token");return[2,o.token]}}))}))}function Ke(t,e){return ae(this,void 0,void 0,(function(){var n,r,i,o,a,s,u;return se(this,(function(c){switch(c.label){case 0:return[4,He(t)];case 1:n=c.sent(),r=Ge(e.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},c.label=2;case 2:return c.trys.push([2,5,,6]),[4,fetch(ze(t.appConfig)+"/"+e.token,i)];case 3:return a=c.sent(),[4,a.json()];case 4:return o=c.sent(),[3,6];case 5:throw s=c.sent(),pe.create("token-update-failed",{errorInfo:s});case 6:if(o.error)throw u=o.error.message,pe.create("token-update-failed",{errorInfo:u});if(!o.token)throw pe.create("token-update-no-token");return[2,o.token]}}))}))}function We(t,e){return ae(this,void 0,void 0,(function(){var n,r,i,o,a,s;return se(this,(function(u){switch(u.label){case 0:return[4,He(t)];case 1:n=u.sent(),r={method:"DELETE",headers:n},u.label=2;case 2:return u.trys.push([2,5,,6]),[4,fetch(ze(t.appConfig)+"/"+e,r)];case 3:return i=u.sent(),[4,i.json()];case 4:if(o=u.sent(),o.error)throw a=o.error.message,pe.create("token-unsubscribe-failed",{errorInfo:a});return[3,6];case 5:throw s=u.sent(),pe.create("token-unsubscribe-failed",{errorInfo:s});case 6:return[2]}}
487))}))}function ze(t){var e=t.projectId;return ye+"/projects/"+e+"/registrations"}function He(t){var e=t.appConfig,n=t.installations;return ae(this,void 0,void 0,(function(){var t;return se(this,(function(r){switch(r.label){case 0:return[4,n.getToken()];case 1:return t=r.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":"FIS "+t})]}}))}))}function Ge(t){var e=t.p256dh,n=t.auth,r=t.endpoint,i=t.vapidKey,o={web:{endpoint:r,auth:n,p256dh:e}};return i!==me&&(o.web.applicationPubKey=i),o}
488/**
489 * @license
490 * Copyright 2019 Google LLC
491 *
492 * Licensed under the Apache License, Version 2.0 (the "License");
493 * you may not use this file except in compliance with the License.
494 * You may obtain a copy of the License at
495 *
496 *   http://www.apache.org/licenses/LICENSE-2.0
497 *
498 * Unless required by applicable law or agreed to in writing, software
499 * distributed under the License is distributed on an "AS IS" BASIS,
500 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
501 * See the License for the specific language governing permissions and
502 * limitations under the License.
503 */var Xe=6048e5;function Ye(t,e,n){return ae(this,void 0,void 0,(function(){var r,i,o,a;return se(this,(function(s){switch(s.label){case 0:if("granted"!==Notification.permission)throw pe.create("permission-blocked");return[4,tn(e,n)];case 1:return r=s.sent(),[4,Ue(t)];case 2:return i=s.sent(),o={vapidKey:n,swScope:e.scope,endpoint:r.endpoint,auth:ke(r.getKey("auth")),p256dh:ke(r.getKey("p256dh"))},i?[3,3]:[2,Ze(t,o)];case 3:if(en(i.subscriptionOptions,o))return[3,8];s.label=4;case 4:return s.trys.push([4,6,,7]),[4,We(t,i.token)];case 5:return s.sent(),[3,7];case 6:return a=s.sent(),console.warn(a),[3,7];case 7:return[2,Ze(t,o)];case 8:return Date.now()>=i.createTime+Xe?[2,Je({token:i.token,createTime:Date.now(),subscriptionOptions:o},t,e)]:[2,i.token];case 9:return[2]}}
503))}))}function Qe(t,e){return ae(this,void 0,void 0,(function(){var n,r;return se(this,(function(i){switch(i.label){case 0:return[4,Ue(t)];case 1:return n=i.sent(),n?[4,We(t,n.token)]:[3,4];case 2:return i.sent(),[4,$e(t)];case 3:i.sent(),i.label=4;case 4:return[4,e.pushManager.getSubscription()];case 5:return r=i.sent(),r?[2,r.unsubscribe()]:[2,!0]}}))}))}function Je(t,e,n){return ae(this,void 0,void 0,(function(){var r,i,o;return se(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,5]),[4,Ke(e,t)];case 1:return r=a.sent(),i=oe(oe({},t),{token:r,createTime:Date.now()}),[4,qe(e,i)];case 2:return a.sent(),[2,r];case 3:return o=a.sent(),[4,Qe(e,n)];case 4:throw a.sent(),o;case 5:return[2]}}))}))}function Ze(t,e){return ae(this,void 0,void 0,(function(){var n,r;return se(this,(function(i){switch(i.label){case 0:return[4,Ve(t,e)];case 1:return n=i.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:e},[4,qe(t,r)];case 2:return i.sent(),[2,r.token]}}))}))}function tn(t,e){return ae(this,void 0,void 0,(function(){var n;return se(this,(function(r){switch(r.label){case 0:return[4,t.pushManager.getSubscription()];case 1:return n=r.sent(),n?[2,n]:[2,t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Ce(e)})]}}))}))}function en(t,e){var n=e.vapidKey===t.vapidKey,r=e.endpoint===t.endpoint,i=e.auth===t.auth,o=e.p256dh===t.p256dh;return n&&r&&i&&o}
504/**
505 * @license
506 * Copyright 2020 Google LLC
507 *
508 * Licensed under the Apache License, Version 2.0 (the "License");
509 * you may not use this file except in compliance with the License.
510 * You may obtain a copy of the License at
511 *
512 *   http://www.apache.org/licenses/LICENSE-2.0
513 *
514 * Unless required by applicable law or agreed to in writing, software
515 * distributed under the License is distributed on an "AS IS" BASIS,
516 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
517 * See the License for the specific language governing permissions and
518 * limitations under the License.
519 */function nn(t){var e={from:t.from,collapseKey:t.collapse_key};return rn(e,t),on(e,t),an(e,t),e}function rn(t,e){if(e.notification){t.notification={};var n=e.notification.title;n&&(t.notification.title=n);var r=e.notification.body;r&&(t.notification.body=r);var i=e.notification.image;i&&(t.notification.image=i)}}function on(t,e){e.data&&(t.data=e.data)}function an(t,e){if(e.fcmOptions){t.fcmOptions={};var n=e.fcmOptions.link;n&&(t.fcmOptions.link=n);var r=e.fcmOptions.analytics_label;r&&(t.fcmOptions.analyticsLabel=r)}}
520/**
521 * @license
522 * Copyright 2019 Google LLC
523 *
524 * Licensed under the Apache License, Version 2.0 (the "License");
525 * you may not use this file except in compliance with the License.
526 * You may obtain a copy of the License at
527 *
528 *   http://www.apache.org/licenses/LICENSE-2.0
529 *
530 * Unless required by applicable law or agreed to in writing, software
531 * distributed under the License is distributed on an "AS IS" BASIS,
532 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
533 * See the License for the specific language governing permissions and
534 * limitations under the License.
535 */function sn(t){return"object"===typeof t&&!!t&&Ee in t}
536/**
537 * @license
538 * Copyright 2019 Google LLC
539 *
540 * Licensed under the Apache License, Version 2.0 (the "License");
541 * you may not use this file except in compliance with the License.
542 * You may obtain a copy of the License at
543 *
544 *   http://www.apache.org/licenses/LICENSE-2.0
545 *
546 * Unless required by applicable law or agreed to in writing, software
547 * distributed under the License is distributed on an "AS IS" BASIS,
548 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
549 * See the License for the specific language governing permissions and
550 * limitations under the License.
551 */function un(t){return new Promise((function(e){setTimeout(e,t)}))}
552/**
553 * @license
554 * Copyright 2017 Google LLC
555 *
556 * Licensed under the Apache License, Version 2.0 (the "License");
557 * you may not use this file except in compliance with the License.
558 * You may obtain a copy of the License at
559 *
560 *   http://www.apache.org/licenses/LICENSE-2.0
561 *
562 * Unless required by applicable law or agreed to in writing, softw
562are
563 * distributed under the License is distributed on an "AS IS" BASIS,
564 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
565 * See the License for the specific language governing permissions and
566 * limitations under the License.
567 */var cn=function(){function t(t){var e=this;this.firebaseDependencies=t,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",(function(t){t.waitUntil(e.onPush(t))})),self.addEventListener("pushsubscriptionchange",(function(t){t.waitUntil(e.onSubChange(t))})),self.addEventListener("notificationclick",(function(t){t.waitUntil(e.onNotificationClick(t))}))}return Object.defineProperty(t.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),t.prototype.setBackgroundMessageHandler=function(t){if(this.isOnBackgroundMessageUsed=!1,!t||"function"!==typeof t)throw pe.create("invalid-bg-handler");this.bgMessageHandler=t},t.prototype.onBackgroundMessage=function(t){var e=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=t,function(){e.bgMessageHandler=null}},t.prototype.getToken=function(){var t,e;return ae(this,void 0,void 0,(function(){var n;return se(this,(function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,Ue(this.firebaseDependencies)];case 1:n=r.sent(),this.vapidKey=null!==(e=null===(t=null===n||void 0===n?void 0:n.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==e?e:me,r.label=2;case 2:return[2,Ye(this.firebaseDependencies,self.registration,this.vapidKey)]}}))}))},t.prototype.deleteToken=function(){return Qe(this.firebaseDependencies,self.registration)},t.prototype.requestPermission=function(){throw pe.create("only-available-in-window")},t.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw pe.create("use-vapid-key-after-get-token");if("string"!==typeof t||0===t.length)throw pe.create("invalid-vapid-key");this.vapidKey=t},t.prototype.useServiceWorker=function(){throw pe.create("only-available-in-window")},t.prototype.onMessage=function(){throw pe.create("only-available-in-window")},t.prototype.onTokenRefresh=function(){throw pe.create("only-available-in-window")},t.prototype.onPush=function(t){return ae(this,void 0,void 0,(function(){var e,n,r,i;return se(this,(function(o){switch(o.label){case 0:return e=fn(t),e?[4,vn()]:(console.debug(we+"failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return n=o.sent(),dn(n)?[2,pn(n,e)]:(r=!1,e.notification?[4,gn(ln(e))]:[3,3]);case 2:o.sent(),r=!0,o.label=3;case 3:return!0===r&&!1===this.isOnBackgroundMessageUsed?[2]:(this.bgMessageHandler&&(i=nn(e),"function"===typeof this.bgMessageHandler?this.bgMessageHandler(i):this.bgMessageHandler.next(i)),[4,un(Te)]);case 4:return o.sent(),[2]}}))}))},t.prototype.onSubChange=function(t){var e,n;return ae(this,void 0,void 0,(function(){var r,i;return se(this,(function(o){switch(o.label){case 0:return r=t.newSubscription,r?[3,2]:[4,Qe(this.firebaseDependencies,self.registration)];case 1:return o.sent(),[2];case 2:return[4,Ue(this.firebaseDependencies)];case 3:return i=o.sent(),[4,Qe(this.firebaseDependencies,self.registration)];case 4:return o.sent(),[4,Ye(this.firebaseDependencies,self.registration,null!==(n=null===(e=null===i||void 0===i?void 0:i.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==n?n:me)];case 5:return o.sent(),[2]}}))}))},t.prototype.onNotificationClick=function(t){var e,n;return ae(this,void 0,void 0,(function(){var r,i,o,a,s;return se(this,(function(u){switch(u.label){case 0:return r=null===(n=null===(e=t.notification)||void 0===e?void 0:e.data)||void 0===n?void 0:n[be],r?t.action?[2]:(t.stopImmediatePropagation(),t.notification.close(),i=mn(r),i?(o=new URL(i,self.location.href),a=new URL(self.location.origin),o.host!==a.host?[2]:[4,hn(o)]):[2]):[2];case 1:return s=u.sent(),s?[3,4]:[4,self.clients.openWindow(i)];case 2:return s=u.sent(),[4,un(Se)];case 3:return u.sent(),[3,6];case 4:return[4,s.focus()];case 5:s=u.sent(),u.label=6;case 6:return s?(r.messageType=he.NOTIFICATION_CLICKED,r.isFirebaseMessaging=!0,[2,s.postMessage(r)]):[2]}}))}))},t}();function ln(t){var e,n=oe({},t.notification);return n.data=(e={},e[be]=t,e),n}function fn(t){var e=t.data;if(!e)return null;try{return e.json()}catch(n){return null}}function hn(t){return ae(this,void 0,void 0,(function(){var e,n,r,i,o,a,s;return se(this,(function(u){switch(u.label){case 0:return[4,vn()];case 1:e=u.sent();try{for(n=ue(e),r=n.next();!r.done;r=n.next())if(i=r.value,o=new URL(i.url,self.location.href),t.host===o.host)return[2,i]}catch(c){a={error:c}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(a)throw a.error}}return[2,null]}}))}))}function dn(t){return t.some((function(t){return"visible"===t.visibilityState&&!t.url.
567startsWith("chrome-extension://")}))}function pn(t,e){var n,r;e.isFirebaseMessaging=!0,e.messageType=he.PUSH_RECEIVED;try{for(var i=ue(t),o=i.next();!o.done;o=i.next()){var a=o.value;a.postMessage(e)}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function vn(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function gn(t){var e,n=t.actions,r=Notification.maxActions;return n&&r&&n.length>r&&console.warn("This browser only supports "+r+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!==(e=t.title)&&void 0!==e?e:"",t)}function mn(t){var e,n,r,i=null!==(n=null===(e=t.fcmOptions)||void 0===e?void 0:e.link)&&void 0!==n?n:null===(r=t.notification)||void 0===r?void 0:r.click_action;return i||(sn(t.data)?self.location.origin:null)}
568/**
569 * @license
570 * Copyright 2017 Google LLC
571 *
572 * Licensed under the Apache License, Version 2.0 (the "License");
573 * you may not use this file except in compliance with the License.
574 * You may obtain a copy of the License at
575 *
576 *   http://www.apache.org/licenses/LICENSE-2.0
577 *
578 * Unless required by applicable law or agreed to in writing, software
579 * distributed under the License is distributed on an "AS IS" BASIS,
580 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
581 * See the License for the specific language governing permissions and
582 * limitations under the License.
583 */var yn=function(){function t(t){var e=this;this.firebaseDependencies=t,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",(function(t){return e.messageEventListener(t)}))}return Object.defineProperty(t.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),t.prototype.messageEventListener=function(t){return ae(this,void 0,void 0,(function(){var e,n;return se(this,(function(r){switch(r.label){case 0:return e=t.data,e.isFirebaseMessaging?(this.onMessageCallback&&e.messageType===he.PUSH_RECEIVED&&("function"===typeof this.onMessageCallback?this.onMessageCallback(wn(Object.assign({},e))):this.onMessageCallback.next(Object.assign({},e))),n=e.data,sn(n)&&"1"===n[_e]?[4,this.logEvent(e.messageType,n)]:[3,2]):[2];case 1:r.sent(),r.label=2;case 2:return[2]}}
583))}))},t.prototype.getVapidKey=function(){return this.vapidKey},t.prototype.getSwReg=function(){return this.swRegistration},t.prototype.getToken=function(t){return ae(this,void 0,void 0,(function(){return se(this,(function(e){switch(e.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:e.sent(),e.label=2;case 2:if("granted"!==Notification.permission)throw pe.create("permission-blocked");return[4,this.updateVapidKey(null===t||void 0===t?void 0:t.vapidKey)];case 3:return e.sent(),[4,this.updateSwReg(null===t||void 0===t?void 0:t.serviceWorkerRegistration)];case 4:return e.sent(),[2,Ye(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}}))}))},t.prototype.updateVapidKey=function(t){return ae(this,void 0,void 0,(function(){return se(this,(function(e){return t?this.vapidKey=t:this.vapidKey||(this.vapidKey=me),[2]}))}))},t.prototype.updateSwReg=function(t){return ae(this,void 0,void 0,(function(){return se(this,(function(e){switch(e.label){case 0:return t||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:e.sent(),e.label=2;case 2:if(!t&&this.swRegistration)return[2];if(!(t instanceof ServiceWorkerRegistration))throw pe.create("invalid-sw-registration");return this.swRegistration=t,[2]}}))}))},t.prototype.registerDefaultSw=function(){return ae(this,void 0,void 0,(function(){var t,e;return se(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),t=this,[4,navigator.serviceWorker.register(ve,{scope:ge})];case 1:return t.swRegistration=n.sent(),this.swRegistration.update().catch((function(){})),[3,3];case 2:throw e=n.sent(),pe.create("failed-service-worker-registration",{browserErrorMessage:e.message});case 3:return[2]}}
583))}))},t.prototype.deleteToken=function(){return ae(this,void 0,void 0,(function(){return se(this,(function(t){switch(t.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:t.sent(),t.label=2;case 2:return[2,Qe(this.firebaseDependencies,this.swRegistration)]}}))}))},t.prototype.requestPermission=function(){return ae(this,void 0,void 0,(function(){var t;return se(this,(function(e){switch(e.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if(t=e.sent(),"granted"===t)return[2];throw"denied"===t?pe.create("permission-blocked"):pe.create("permission-default")}}))}))},t.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw pe.create("use-vapid-key-after-get-token");if("string"!==typeof t||0===t.length)throw pe.create("invalid-vapid-key");this.vapidKey=t},t.prototype.useServiceWorker=function(t){if(!(t instanceof ServiceWorkerRegistration))throw pe.create("invalid-sw-registration");if(this.swRegistration)throw pe.create("use-sw-after-get-token");this.swRegistration=t},t.prototype.onMessage=function(t){var e=this;return this.onMessageCallback=t,function(){e.onMessageCallback=null}},t.prototype.setBackgroundMessageHandler=function(){throw pe.create("only-available-in-sw")},t.prototype.onBackgroundMessage=function(){throw pe.create("only-available-in-sw")},t.prototype.onTokenRefresh=function(){return function(){}},t.prototype.logEvent=function(t,e){return ae(this,void 0,void 0,(function(){var n,r;return se(this,(function(i){switch(i.label){case 0:return n=bn(t),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return r=i.sent(),r.logEvent(n,{message_id:e[Ee],message_name:e[Ie],message_time:e[Oe],message_device_time:Math.floor(Date.now()/1e3)}),[2]}}))}))},t}();function bn(t){switch(t){case he.NOTIFICATION_CLICKED:return"notification_open";case he.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function wn(t){return delete t.messageType,delete t.isFirebaseMessaging,t}
584/**
585 * @license
586 * Copyright 2019 Google LLC
587 *
588 * Licensed under the Apache License, Version 2.0 (the "License");
589 * you may not use this file except in compliance with the License.
590 * You may obtain a copy of the License at
591 *
592 *   http://www.apache.org/licenses/LICENSE-2.0
593 *
594 * Unless required by applicable law or agreed to in writing, software
595 * distributed under the License is distributed on an "AS IS" BASIS,
596 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
597 * See the License for the specific language governing permissions and
598 * limitations under the License.
599 */function _n(t){var e,n;if(!t||!t.options)throw En("App Configuration Object");if(!t.name)throw En("App Name");var r=["projectId","apiKey","appId","messagingSenderId"],i=t.options;try{for(var o=ue(r),a=o.next();!a.done;a=o.next()){var s=a.value;if(!i[s])throw En(s)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return{appName:t.name,projectId:i.projectId,apiKey:i.apiKey,appId:i.appId,senderId:i.messagingSenderId}}function En(t){return pe.create("missing-app-config-values",{valueName:t})}
600/**
601 * @license
602 * Copyright 2017 Google LLC
603 *
604 * Licensed under the Apache License, Version 2.0 (the "License");
605 * you may not use this file except in compliance with the License.
606 * You may obtain a copy of the License at
607 *
608 *   http://www.apache.org/licenses/LICENSE-2.0
609 *
610 * Unless required by applicable law or agreed to in writing, software
611 * distributed under the License is distributed on an "AS IS" BASIS,
612 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
613 * See the License for the specific language governing permissions and
614 * limitations under the License.
615 */var On="messaging";function In(t){var e=t.getProvider("app").getImmediate(),n=_n(e),r=t.getProvider("installations").getImmediate(),i=t.getProvider("analytics-internal"),o={app:e,appConfig:n,installations:r,analyticsProvider:i};if(!Sn())throw pe.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new cn(o):new yn(o)}var Tn={isSupported:Sn};function Sn(){return self&&"ServiceWorkerGlobalScope"in self?Cn():kn()}function kn(){return"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"
615in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function Cn(){return"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}
616/*! *****************************************************************************
617Copyright (c) Microsoft Corporation.
618
619Permission to use, copy, modify, and/or distribute this software for any
620purpose with or without fee is hereby granted.
621
622THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
623REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
624AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
625INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
626LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
627OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
628PERFORMANCE OF THIS SOFTWARE.
629***************************************************************************** */r["a"].INTERNAL.registerComponent(new s["a"](On,In,"PUBLIC").setServiceProps(Tn));var xn=function(t,e){return xn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},xn(t,e)};function jn(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}xn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var An=function(){return An=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},An.apply(this,arguments)};function Nn(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function Pn(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;function Rn(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}Object.create;
630/**
631 * @license
632 * Copyright 2017 Google LLC
633 *
634 * Licensed under the Apache License, Version 2.0 (the "License");
635 * you may not use this file except in compliance with the License.
636 * You may obtain a copy of the License at
637 *
638 *   http://www.apache.org/licenses/LICENSE-2.0
639 *
640 * Unless required by applicable law or agreed to in writing, software
641 * distributed under the License is distributed on an "AS IS" BASIS,
642 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
643 * See the License for the specific language governing permissions and
644 * limitations under the License.
645 */
646var Dn="firebasestorage.googleapis.com",Ln="storageBucket",Mn=12e4,Fn=6e5,Un=function(t){function e(n,r){var i=t.call(this,qn(n),"Firebase Storage: "+r+" ("+qn(n)+")")||this;return i.customData={serverResponse:null},i._baseMessage=i.message,Object.setPrototypeOf(i,e.prototype),i}return jn(e,t),e.prototype._codeEquals=function(t){return qn(t)===this.code},Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.customData.serverResponse},set:function(t){this.customData.serverResponse=t,this.customData.serverResponse?this.message=this._baseMessage+"\n"+this.customData.serverResponse:this.message=this._baseMessage}
646,enumerable:!1,configurable:!0}),e}(i["c"]);function qn(t){return"storage/"+t}function $n(){var t="An unknown error occurred, please check the error payload for server response.";return new Un("unknown",t)}function Bn(t){return new Un("object-not-found","Object '"+t+"' does not exist.")}function Vn(t){return new Un("quota-exceeded","Quota for bucket '"+t+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function Kn(){var t="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new Un("unauthenticated",t)}function Wn(){return new Un("unauthorized-app","This app does not have permission to access Firebase Storage on this project.")}function zn(t){return new Un("unauthorized","User does not have permission to access '"+t+"'.")}function Hn(){return new Un("retry-limit-exceeded","Max retry time for operation exceeded, please try again.")}function Gn(){return new Un("canceled","User canceled the upload/download.")}function Xn(t){return new Un("invalid-url","Invalid URL '"+t+"'.")}function Yn(t){return new Un("invalid-default-bucket","Invalid default bucket '"+t+"'.")}function Qn(){return new Un("no-default-bucket","No default bucket found. Did you set the '"+Ln+"' property when initializing the app?")}function Jn(){return new Un("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function Zn(){return new Un("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.")}function tr(){return new Un("no-download-url","The given file does not have any download URLs.")}function er(t){return new Un("invalid-argument",t)}function nr(){return new Un("app-deleted","The Firebase app was deleted.")}function rr(t){return new Un("invalid-root-operation","The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function ir(t,e){return new Un("invalid-format","String does not match format '"+t+"': "+e)}function or(t){throw new Un("internal-error","Internal error: "+t)}
647/**
648 * @license
649 * Copyright 2017 Google LLC
650 *
651 * Licensed under the Apache License, Version 2.0 (the "License");
652 * you may not use this file except in compliance with the License.
653 * You may obtain a copy of the License at
654 *
655 *   http://www.apache.org/licenses/LICENSE-2.0
656 *
657 * Unless required by applicable law or agreed to in writing, software
658 * distributed under the License is distributed on an "AS IS" BASIS,
659 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
660 * See the License for the specific language governing permissions and
661 * limitations under the License.
662 */var ar={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},sr=function(){function t(t,e){this.data=t,this.contentType=e||null}return t}();function ur(t,e){switch(t){case ar.RAW:return new sr(cr(e));case ar.BASE64:case ar.BASE64URL:return new sr(fr(t,e));case ar.DATA_URL:return new sr(dr(e),pr(e))}throw $n()}function cr(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>6,128|63&r);else if(55296===(64512&r)){var i=n<t.length-1&&56320===(64512&t.charCodeAt(n+1));if(i){var o=r,a=t.charCodeAt(++n);r=65536|(1023&o)<<10|1023&a,e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r)}else e.push(239,191,189)}else 56320===(64512&r)?e.push(239,191,189):e.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(e)}function lr(t){var e;try{e=decodeURIComponent(t)}catch(n){throw ir(ar.DATA_URL,"Malformed data URL.")}return cr(e)}function fr(t,e){switch(t){case ar.BASE64:var n=-1!==e.indexOf("-"),r=-1!==e.indexOf("_");if(n||r){var i=n?"-":"_";throw ir(t,"Invalid character '"+i+"' found: is it base64url encoded?")}break;case ar.BASE64URL:var o=-1!==e.indexOf("+"),a=-1!==e.indexOf("/");if(o||a){i=o?"+":"/";throw ir(t,"Invalid character '"+i+"' found: is it base64 encoded?")}e=e.replace(/-/g,"+").replace(/_/g,"/");break}var s;try{s=atob(e)}catch(l){throw ir(t,"Invalid character found")}for(var u=new Uint8Array(s.length),c=0;c<s.length;c++)u[c]=s.charCodeAt(c);return u}var hr=function(){function t(t){this.base64=!1,this.contentType=null;var e=t.match(/^data:([^,]+)?,/);if(null===e)throw ir(ar.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=e[1]||null;null!=n&&(this.base64=vr(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=t.substring(t.indexOf(",")+1)}return t}();function dr(t){var e=new hr(t);return e.base64?fr(ar.BASE64,e.rest):lr(e.rest)}function pr(t){var e=new hr(t);return e.contentType}function vr(t,e){var n=t.length>=e.length;return!!n&&t.substring(t.length-e.length)===e}
663/**
664 * @license
665 * Copyright 2017 Google LLC
666 *
667 * Licensed under the Apache License, Version 2.0 (the "License");
668 * you may not use this file except in compliance with the License.
669 * You may obtain a copy of the License at
670 *
671 *   http://www.apache.org/licenses/LICENSE-2.0
672 *
673 * Unless required by applicable law or agreed to in writing, software
674 * distributed under the License is distributed on an "AS IS" BASIS,
675 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
676 * See the License for the specific language governing permissions and
677 * limitations under the License.
678 */var gr,mr={STATE_CHANGED:"state_changed"},yr={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function br(t){switch(t){case"running":case"pausing":case"canceling":return yr.RUNNING;case"paused":return yr.PAUSED;case"success":return yr.SUCCESS;case"canceled":return yr.CANCELED;case"error":return yr.ERROR;default:return yr.ERROR}}
679/**
680 * @license
681 * Copyright 2017 Google LLC
682 *
683 * Licensed under the Apache License, Version 2.0 (the "License");
684 * you may not use this file except in compliance with the License.
685 * You may obtain a copy of the License at
686 *
687 *   http://www.apache.org/licenses/LICENSE-2.0
688 *
689 * Unless required by applicable law or agreed to in writing, software
690 * distributed under the License is distributed on an "AS IS" BASIS,
691 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
692 * See the License for the specific language governing permissions and
693 * limitations under the License.
694 */(function(t){t[t["NO_ERROR"]=0]="NO_ERROR",t[t["NETWORK_ERROR"]=1]="NETWORK_ERROR",t[t["ABORT"]=2]="ABORT"})(gr||(gr={}));
695/**
696 * @license
697 * Copyright 2017 Google LLC
698 *
699 * Licensed under the Apache License, Version 2.0 (the "License");
700 * you may not use this file except in compliance with the License.
701 * You may obtain a copy of the License at
702 *
703 *   http://www.apache.org/licenses/LICENSE-2.0
704 *
705 * Unless required by applicable law or agreed to in writing, software
706 * distributed under the License is distributed on an "AS IS" BASIS,
707 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
708 * See the License for the specific language governing permissions and
709 * limitations under the License.
710 */
711var wr=function(){function t(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=gr.NO_ERROR,this.sendPromise_=new Promise((function(e){t.xhr_.addEventListener("abort",(function(){t.errorCode_=gr.ABORT,e(t)})),t.xhr_.addEventListener("error",(function(){t.errorCode_=gr.NETWORK_ERROR,e(t)})),t.xhr_.addEventListener("load",(function(){e(t)}))}))}return t.prototype.send=function(t,e,n,r){if(this.sent_)throw or("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(e,t,!0),void 0!==r)for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},t.prototype.getErrorCode=function(){if(!this.sent_)throw or("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw or("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw or("cannot .getResponseText() before sending");return this.xhr_.responseText},t.prototype.abort=function(){this.xhr_.abort()},t.prototype.getResponseHeader=function(t){return this.xhr_.getResponseHeader(t)},t.prototype.addUploadProgressListener=function(t){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",t)},t.prototype.removeUploadProgressListener=function(t){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",t)},t}(),_r=function(){function t(){}return t.prototype.createXhrIo=function(){return new wr},t}(),Er=function(){function t(t,e){this.bucket=t,this.path_=e}return Object.defineProperty(t.prototype,"path",{get:function(){return this.path_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!1,configurable:!0}),t.prototype.fullServerUrl=function(){var t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)},t.prototype.bucketOnlyServerUrl=function(){var t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o"},t.makeFromBucketSpec=function(e,n){var r;try{r=t.makeFromUrl(e,n)}catch(i){return new t(e,"")}if(""===r.path)return r;throw Yn(e)},t.makeFromUrl=function(e,n){var r=null,i="([A-Za-z0-9.\\-_]+)";function o(t){"/"===t.path.charAt(t.path.length-1)&&(t.path_=t.path_.slice(0,-1))}var a="(/(.*))?$",s=new RegExp("^gs://"+i+a,"i"),u={bucket:1,path:3};function c(t){t.path_=decodeURIComponent(t.path)}for(var l="v[A-Za-z0-9_]+",f=n.replace(/[.]/g,"\\."),h="(/([^?#]*).*)?$",d=new RegExp("^https?://"+f+"/"+l+"/b/"+i+"/o"+h,"i"),p={bucket:1,path:3},v=n===Dn?"(?:storage.googleapis.com|storage.cloud.google.com)":n,g="([^?#]*)",m=new RegExp("^https?://"+v+"/"+i+"/"+g,"i"),y={bucket:1,path:2},b=[{regex:s,indices:u,postModify:o},{regex:d,indices:p,postModify:c},{regex:m,indices:y,postModify:c}],w=0;w<b.length;w++){var _=b[w],E=_.regex.exec(e);if(E){var O=E[_.indices.bucket],I=E[_.indices.path];I||(I=""),r=new t(O,I),_.postModify(r);break}}if(null==r)throw Xn(e);return r},t}(),Or=function(){function t(t){this.promise_=Promise.reject(t)}return t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){},t}();
712/**
713 * @license
714 * Copyright 2017 Google LLC
715 *
716 * Licensed under the Apache License, Version 2.0 (the "License");
717 * you may not use this file except in compliance with the License.
718 * You may obtain a copy of the License at
719 *
720 *   http://www.apache.org/licenses/LICENSE-2.0
721 *
722 * Unless required by applicable law or agreed to in writing, software
723 * distributed under the License is distributed on an "AS IS" BASIS,
724 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
725 * See the License for the specific language governing permissions and
726 * limitations under the License.
727 */
728/**
729 * @license
730 * Copyright 2017 Google LLC
731 *
732 * Licensed under the Apache License, Version 2.0 (the "License");
733 * you may not use this file except in compliance with the License.
734 * You may obtain a copy of the License at
735 *
736 *   http://www.apache.org/licenses/LICENSE-2.0
737 *
738 * Unless required by applicable law or agreed to in writing, software
739 * distributed under the License is distributed on an "AS IS" BASIS,
740 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
741 * See the License for the specific language governing permissions and
742 * limitations under the License.
743 */
744function Ir(t,e,n){var r=1,i=null,o=!1,a=0;function s(){return 2===a}var u=!1;function c(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];u||(u=!0,e.apply(null,t))}function l(e){i=setTimeout((function(){i=null,t(f,s())}),e)}function f(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!u)if(t)c.call.apply(c,Rn([null,t],e));else{var i,f=s()||o;if(f)c.call.apply(c,Rn([null,t],e));else r<64&&(r*=2),1===a?(a=2,i=0):i=1e3*(r+Math.random()),l(i)}}var h=!1;function d(t){h||(h=!0,u||(null!==i?(t||(a=2),clearTimeout(i),l(0)):t||(a=1)))}return l(0),setTimeout((function(){o=!0,d(!0)}),n),d}function Tr(t){t(!1)}
745/**
746 * @license
747 * Copyright 2017 Google LLC
748 *
749 * Licensed under the Apache License, Version 2.0 (the "License");
750 * you may not use this file except in compliance with the License.
751 * You may obtain a copy of the License at
752 *
753 *   http://www.apache.org/licenses/LICENSE-2.0
754 *
755 * Unless required by applicable law or agreed to in writing, software
756 * distributed under the License is distributed on an "AS IS" BASIS,
757 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
758 * See the License for the specific language governing permissions and
759 * limitations under the License.
760 */function Sr(t){return void 0!==t}function kr(t){return"function"===typeof t}function Cr(t){return"object"===typeof t&&!Array.isArray(t)}function xr(t){return"string"===typeof t||t instanceof String}function jr(t){return Ar()&&t instanceof Blob}function Ar(){return"undefined"!==typeof Blob}function Nr(t,e,n,r){if(r<e)throw er("Invalid value for '"+t+"'. Expected "+e+" or greater.");if(r>n)throw er("Invalid value for '"+t+"'. Expected "+n+" or less.")}
761/**
762 * @license
763 * Copyright 2017 Google LLC
764 *
765 * Licensed under the Apache License, Version 2.0 (the "License");
766 * you may not use this file except in compliance with the License.
767 * You may obtain a copy of the License at
768 *
769 *   http://www.apache.org/licenses/LICENSE-2.0
770 *
771 * Unless required by applicable law or agreed to in writing, software
772 * distributed under the License is distributed on an "AS IS" BASIS,
773 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
774 * See the License for the specific language governing permissions and
775 * limitations under the License.
776 */function Pr(t,e){var n=e.match(/^(\w+):\/\/.+/),r=null===n||void 0===n?void 0:n[1],i=e;return null==r&&(i="https://"+e),i+"/v0"+t}function Rr(t){var e=encodeURIComponent,n="?";for(var r in t)if(t.hasOwnProperty(r)){var i=e(r)+"="+e(t[r]);n=n+i+"&"}return n=n.slice(0,-1),n}
777/**
778 * @license
779 * Copyright 2017 Google LLC
780 *
781 * Licensed under the Apache License, Version 2.0 (the "License");
782 * you may not use this file except in compliance with the License.
783 * You may obtain a copy of the License at
784 *
785 *   http://www.apache.org/licenses/LICENSE-2.0
786 *
787 * Unless required by applicable law or agreed to in writing, software
788 * distributed under the License is distributed on an "AS IS" BASIS,
789 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
790 * See the License for the specific language governing permissions and
791 * limitations under the License.
792 */var Dr=function(){function t(t,e,n,r,i,o,a,s,u,c,l){var f=this;this.pendingXhr_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=t,this.method_=e,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=c,this.timeout_=u,this.pool_=l,this.promise_=new Promise((function(t,e){f.resolve_=t,f.reject_=e,f.start_()}
792))}return t.prototype.start_=function(){var t=this;function e(e,n){if(n)e(!1,new Lr(!1,null,!0));else{var r=t.pool_.createXhrIo();t.pendingXhr_=r,null!==t.progressCallback_&&r.addUploadProgressListener(i),r.send(t.url_,t.method_,t.body_,t.headers_).then((function(n){null!==t.progressCallback_&&n.removeUploadProgressListener(i),t.pendingXhr_=null,n=n;var r=n.getErrorCode()===gr.NO_ERROR,o=n.getStatus();if(r&&!t.isRetryStatusCode_(o)){var a=-1!==t.successCodes_.indexOf(o);e(!0,new Lr(a,n))}else{var s=n.getErrorCode()===gr.ABORT;e(!1,new Lr(!1,null,s))}}))}function i(e){var n=e.loaded,r=e.lengthComputable?e.total:-1;null!==t.progressCallback_&&t.progressCallback_(n,r)}}function n(e,n){var r=t.resolve_,i=t.reject_,o=n.xhr;if(n.wasSuccessCode)try{var a=t.callback_(o,o.getResponseText());Sr(a)?r(a):r()}catch(u){i(u)}else if(null!==o){var s=$n();s.serverResponse=o.getResponseText(),t.errorCallback_?i(t.errorCallback_(o,s)):i(s)}else if(n.canceled){s=t.appDelete_?nr():Gn();i(s)}else{s=Hn();i(s)}}this.canceled_?n(!1,new Lr(!1,null,!0)):this.backoffId_=Ir(e,n,this.timeout_)},t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){this.canceled_=!0,this.appDelete_=t||!1,null!==this.backoffId_&&Tr(this.backoffId_),null!==this.pendingXhr_&&this.pendingXhr_.abort()},t.prototype.isRetryStatusCode_=function(t){var e=t>=500&&t<600,n=[408,429],r=-1!==n.indexOf(t),i=-1!==this.additionalRetryCodes_.indexOf(t);return e||r||i},t}(),Lr=function(){function t(t,e,n){this.wasSuccessCode=t,this.xhr=e,this.canceled=!!n}return t}();function Mr(t,e){null!==e&&e.length>0&&(t["Authorization"]="Firebase "+e)}function Fr(t,e){t["X-Firebase-Storage-Version"]="webjs/"+(null!==e&&void 0!==e?e:"AppManager")}function Ur(t,e){e&&(t["X-Firebase-GMPID"]=e)}function qr(t,e){null!==e&&(t["X-Firebase-AppCheck"]=e)}function $r(t,e,n,r,i,o){var a=Rr(t.urlParams),s=t.url+a,u=Object.assign({},t.headers);return Ur(u,e),Mr(u,n),Fr(u,o),qr(u,r),new Dr(s,t.method,u,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,i)}
793/**
794 * @license
795 * Copyright 2017 Google LLC
796 *
797 * Licensed under the Apache License, Version 2.0 (the "License");
798 * you may not use this file except in compliance with the License.
799 * You may obtain a copy of the License at
800 *
801 *   http://www.apache.org/licenses/LICENSE-2.0
802 *
803 * Unless required by applicable law or agreed to in writing, software
804 * distributed under the License is distributed on an "AS IS" BASIS,
805 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
806 * See the License for the specific language governing permissions and
807 * limitations under the License.
808 */function Br(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function Vr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Br();if(void 0!==n){for(var r=new n,i=0;i<t.length;i++)r.append(t[i]);return r.getBlob()}if(Ar())return new Blob(t);throw new Un("unsupported-environment","This browser doesn't seem to support creating Blobs")}function Kr(t,e,n){return t.webkitSlice?t.webkitSlice(e,n):t.mozSlice?t.mozSlice(e,n):t.slice?t.slice(e,n):null}
809/**
810 * @license
811 * Copyright 2017 Google LLC
812 *
813 * Licensed under the Apache License, Version 2.0 (the "License");
814 * you may not use this file except in compliance with the License.
815 * You may obtain a copy of the License at
816 *
817 *   http://www.apache.org/licenses/LICENSE-2.0
818 *
819 * Unless required by applicable law or agreed to in writing, software
820 * distributed under the License is distributed on an "AS IS" BASIS,
821 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
822 * See the License for the specific language governing permissions and
823 * limitations under the License.
824 */var Wr=function(){function t(t,e){var n=0,r="";jr(t)?(this.data_=t,n=t.size,r=t.type):t instanceof ArrayBuffer?(e?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),n=this.data_.length):t instanceof Uint8Array&&(e?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),n=t.length),this.size_=n,this.type_=r}return t.prototype.size=function(){return this.size_},t.prototype.type=function(){return this.type_},t.prototype.slice=function(e,n){if(jr(this.data_)){var r=this.data_,i=Kr(r,e,n);return null===i?null:new t(i)}var o=new Uint8Array(this.data_.buffer,e,n-e);return new t(o,!0)},t.getBlob=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(Ar()){var r=e.map((function(e){return e instanceof t?e.data_:e}));return new t(Vr.apply(null,r))}var i=e.map((function(t){return xr(t)?ur(ar.RAW,t).data:t.data_})),o=0;
824i.forEach((function(t){o+=t.byteLength}));var a=new Uint8Array(o),s=0;return i.forEach((function(t){for(var e=0;e<t.length;e++)a[s++]=t[e]})),new t(a,!0)},t.prototype.uploadData=function(){return this.data_},t}();
825/**
826 * @license
827 * Copyright 2017 Google LLC
828 *
829 * Licensed under the Apache License, Version 2.0 (the "License");
830 * you may not use this file except in compliance with the License.
831 * You may obtain a copy of the License at
832 *
833 *   http://www.apache.org/licenses/LICENSE-2.0
834 *
835 * Unless required by applicable law or agreed to in writing, software
836 * distributed under the License is distributed on an "AS IS" BASIS,
837 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
838 * See the License for the specific language governing permissions and
839 * limitations under the License.
840 */function zr(t){var e;try{e=JSON.parse(t)}catch(n){return null}return Cr(e)?e:null}
841/**
842 * @license
843 * Copyright 2017 Google LLC
844 *
845 * Licensed under the Apache License, Version 2.0 (the "License");
846 * you may not use this file except in compliance with the License.
847 * You may obtain a copy of the License at
848 *
849 *   http://www.apache.org/licenses/LICENSE-2.0
850 *
851 * Unless required by applicable law or agreed to in writing, software
852 * distributed under the License is distributed on an "AS IS" BASIS,
853 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
854 * See the License for the specific language governing permissions and
855 * limitations under the License.
856 */function Hr(t){if(0===t.length)return null;var e=t.lastIndexOf("/");if(-1===e)return"";var n=t.slice(0,e);return n}function Gr(t,e){var n=e.split("/").filter((function(t){return t.length>0})).join("/");return 0===t.length?n:t+"/"+n}function Xr(t){var e=t.lastIndexOf("/",t.length-2);return-1===e?t:t.slice(e+1)}
857/**
858 * @license
859 * Copyright 2017 Google LLC
860 *
861 * Licensed under the Apache License, Version 2.0 (the "License");
862 * you may not use this file except in compliance with the License.
863 * You may obtain a copy of the License at
864 *
865 *   http://www.apache.org/licenses/LICENSE-2.0
866 *
867 * Unless required by applicable law or agreed to in writing, software
868 * distributed under the License is distributed on an "AS IS" BASIS,
869 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
870 * See the License for the specific language governing permissions and
871 * limitations under the License.
872 */function Yr(t,e){return e}var Qr=function(){function t(t,e,n,r){this.server=t,this.local=e||t,this.writable=!!n,this.xform=r||Yr}return t}(),Jr=null;function Zr(t){return!xr(t)||t.length<2?t:Xr(t)}function ti(){if(Jr)return Jr;var t=[];function e(t,e){return Zr(e)}t.push(new Qr("bucket")),t.push(new Qr("generation")),t.push(new Qr("metageneration")),t.push(new Qr("name","fullPath",!0));var n=new Qr("name");function r(t,e){return void 0!==e?Number(e):e}n.xform=e,t.push(n);var i=new Qr("size");return i.xform=r,t.push(i),t.push(new Qr("timeCreated")),t.push(new Qr("updated")),t.push(new Qr("md5Hash",null,!0)),t.push(new Qr("cacheControl",null,!0)),t.push(new Qr("contentDisposition",null,!0)),t.push(new Qr("contentEncoding",null,!0)),t.push(new Qr("contentLanguage",null,!0)),t.push(new Qr("contentType",null,!0)),t.push(new Qr("metadata","customMetadata",!0)),Jr=t,Jr}function ei(t,e){function n(){var n=t["bucket"],r=t["fullPath"],i=new Er(n,r);return e._makeStorageReference(i)}Object.defineProperty(t,"ref",{get:n})}function ni(t,e,n){for(var r={type:"file"},i=n.length,o=0;o<i;o++){var a=n[o];r[a.local]=a.xform(r,e[a.server])}return ei(r,t),r}function ri(t,e,n){var r=zr(e);if(null===r)return null;var i=r;return ni(t,i,n)}function ii(t,e,n){var r=zr(e);if(null===r)return null;if(!xr(r["downloadTokens"]))return null;var i=r["downloadTokens"];if(0===i.length)return null;var o=encodeURIComponent,a=i.split(","),s=a.map((function(e){var r=t["bucket"],i=t["fullPath"],a="/b/"+o(r)+"/o/"+o(i),s=Pr(a,n),u=Rr({alt:"media",token:e});return s+u}));return s[0]}function oi(t,e){for(var n={},r=e.length,i=0;i<r;i++){var o=e[i];o.writable&&(n[o.server]=t[o.local])}return JSON.stringify(n)}
873/**
874 * @license
875 * Copyright 2019 Google LLC
876 *
877 * Licensed under the Apache License, Version 2.0 (the "License");
878 * you may not use this file except in compliance with the License.
879 * You may obtain a copy of the License at
880 *
881 *   http://www.apache.org/licenses/LICENSE-2.0
882 *
883 * Unless required by applicable law or agreed to in writing, software
884 * distributed under the License is distributed on an "AS IS" BASIS,
885 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
886 * See the License for the specific language governing permissions and
887 * limitations under the License.
888 */var ai="prefixes",si="items";function ui(t,e,n){var r={prefixes:[],items:[],nextPageToken:n["nextPageToken"]};if(n[ai])for(var i=0,o=n[ai];i<o.length;i++){var a=o[i],s=a.replace(/\/$/,""),u=t._makeStorageReference(new Er(e,s));r.prefixes.push(u)}if(n[si])for(var c=0,l=n[si];c<l.length;c++){var f=l[c];u=t._makeStorageReference(new Er(e,f["name"]));r.items.push(u)}return r}function ci(t,e,n){var r=zr(n);if(null===r)return null;var i=r;return ui(t,e,i)}var li=function(){function t(t,e,n,r){this.url=t,this.method=e,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}return t}();
889/**
890 * @license
891 * Copyright 2017 Google LLC
892 *
893 * Licensed under the Apache License, Version 2.0 (the "License");
894 * you may not use this file except in compliance with the License.
895 * You may obtain a copy of the License at
896 *
897 *   http://www.apache.org/licenses/LICENSE-2.0
898 *
899 * Unless required by applicable law or agreed to in writing, software
900 * distributed under the License is distributed on an "AS IS" BASIS,
901 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
902 * See the License for the specific language governing permissions and
903 * limitations under the License.
904 */function fi(t){if(!t)throw $n()}function hi(t,e){function n(n,r){var i=ri(t,r,e);return fi(null!==i),i}return n}function di(t,e){function n(n,r){var i=ci(t,e,r);return fi(null!==i),i}return n}function pi(t,e){function n(n,r){var i=ri(t,r,e);return fi(null!==i),ii(i,r,t.host)}return n}function vi(t){function e(e,n){var r;return r=401===e.getStatus()?e.getResponseText().includes("Firebase App Check token is invalid")?Wn():Kn():402===e.getStatus()?Vn(t.bucket):403===e.getStatus()?zn(t.path):n,r.serverResponse=n.serverResponse,r}return e}function gi(t){var e=vi(t);function n(n,r){var i=e(n,r);return 404===n.getStatus()&&(i=Bn(t.path)),i.serverResponse=r.serverResponse,i}return n}function mi(t,e,n){var r=e.fullServerUrl(),i=Pr(r,t.host),o="GET",a=t.maxOperationRetryTime,s=new li(i,o,hi(t,n),a);return s.errorHandler=gi(e),s}function yi(t,e,n,r,i){var o={};e.isRoot?o["prefix"]="":o["prefix"]=e.path+"/",n&&n.length>0&&(o["delimiter"]=n),r&&(o["pageToken"]=r),i&&(o["maxResults"]=i);var a=e.bucketOnlyServerUrl(),s=Pr(a,t.host),u="GET",c=t.maxOperationRetryTime,l=ne
904w li(s,u,di(t,e.bucket),c);return l.urlParams=o,l.errorHandler=vi(e),l}function bi(t,e,n){var r=e.fullServerUrl(),i=Pr(r,t.host),o="GET",a=t.maxOperationRetryTime,s=new li(i,o,pi(t,n),a);return s.errorHandler=gi(e),s}function wi(t,e,n,r){var i=e.fullServerUrl(),o=Pr(i,t.host),a="PATCH",s=oi(n,r),u={"Content-Type":"application/json; charset=utf-8"},c=t.maxOperationRetryTime,l=new li(o,a,hi(t,r),c);return l.headers=u,l.body=s,l.errorHandler=gi(e),l}function _i(t,e){var n=e.fullServerUrl(),r=Pr(n,t.host),i="DELETE",o=t.maxOperationRetryTime;function a(t,e){}var s=new li(r,i,a,o);return s.successCodes=[200,204],s.errorHandler=gi(e),s}function Ei(t,e){return t&&t["contentType"]||e&&e.type()||"application/octet-stream"}function Oi(t,e,n){var r=Object.assign({},n);return r["fullPath"]=t.path,r["size"]=e.size(),r["contentType"]||(r["contentType"]=Ei(null,e)),r}function Ii(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"};function s(){for(var t="",e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}var u=s();a["Content-Type"]="multipart/related; boundary="+u;var c=Oi(e,r,i),l=oi(c,n),f="--"+u+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+l+"\r\n--"+u+"\r\nContent-Type: "+c["contentType"]+"\r\n\r\n",h="\r\n--"+u+"--",d=Wr.getBlob(f,r,h);if(null===d)throw Jn();var p={name:c["fullPath"]},v=Pr(o,t.host),g="POST",m=t.maxUploadRetryTime,y=new li(v,g,hi(t,n),m);return y.urlParams=p,y.headers=a,y.body=d.uploadData(),y.errorHandler=vi(e),y}var Ti=function(){function t(t,e,n,r){this.current=t,this.total=e,this.finalized=!!n,this.metadata=r||null}return t}();function Si(t,e){var n=null;try{n=t.getResponseHeader("X-Goog-Upload-Status")}catch(i){fi(!1)}var r=e||["active"];return fi(!!n&&-1!==r.indexOf(n)),n}function ki(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),a=Oi(e,r,i),s={name:a["fullPath"]},u=Pr(o,t.host),c="POST",l={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":a["contentType"],"Content-Type":"application/json; charset=utf-8"},f=oi(a,n),h=t.maxUploadRetryTime;function d(t){var e;Si(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){fi(!1)}return fi(xr(e)),e}var p=new li(u,c,d,h);return p.urlParams=s,p.headers=l,p.body=f,p.errorHandler=vi(e),p}function Ci(t,e,n,r){var i={"X-Goog-Upload-Command":"query"};function o(t){var e=Si(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){fi(!1)}n||fi(!1);var i=Number(n);return fi(!isNaN(i)),new Ti(i,r.size(),"final"===e)}var a="POST",s=t.maxUploadRetryTime,u=new li(n,a,o,s);return u.headers=i,u.errorHandler=vi(e),u}var xi=262144;function ji(t,e,n,r,i,o,a,s){var u=new Ti(0,0);if(a?(u.current=a.current,u.total=a.total):(u.current=0,u.total=r.size()),r.size()!==u.total)throw Zn();var c=u.total-u.current,l=c;i>0&&(l=Math.min(l,i));var f=u.current,h=f+l,d=l===c?"upload, finalize":"upload",p={"X-Goog-Upload-Command":d,"X-Goog-Upload-Offset":u.current},v=r.slice(f,h);if(null===v)throw Jn();function g(t,n){var i,a=Si(t,["active","final"]),s=u.current+l,c=r.size();return i="final"===a?hi(e,o)(t,n):null,new Ti(s,c,"final"===a,i)}var m="POST",y=e.maxUploadRetryTime,b=new li(n,m,g,y);return b.headers=p,b.body=v.uploadData(),b.progressCallback=s||null,b.errorHandler=vi(t),b}
905/**
906 * @license
907 * Copyright 2017 Google LLC
908 *
909 * Licensed under the Apache License, Version 2.0 (the "License");
910 * you may not use this file except in compliance with the License.
911 * You may obtain a copy of the License at
912 *
913 *   http://www.apache.org/licenses/LICENSE-2.0
914 *
915 * Unless required by applicable law or agreed to in writing, software
916 * distributed under the License is distributed on an "AS IS" BASIS,
917 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
918 * See the License for the specific language governing permissions and
919 * limitations under the License.
920 */var Ai=function(){function t(t,e,n){var r=kr(t)||null!=e||null!=n;if(r)this.next=t,this.error=e,this.complete=n;else{var i=t;this.next=i.next,this.error=i.error,this.complete=i.complete}}return t}();
921/**
922 * @license
923 * Copyright 2017 Google LLC
924 *
925 * Licensed under the Apache License, Version 2.0 (the "License");
926 * you may not use this file except in compliance with the License.
927 * You may obtain a copy of the License at
928 *
929 *   http://www.apache.org/licenses/LICENSE-2.0
930 *
931 * Unless required by applicable law or agreed to in writing, software
932 * distributed under the License is distributed on an "AS IS" BASIS,
933 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
934 * See the License for the specific language governing permissions and
935 * limitations under the License.
936 */function Ni(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];Promise.resolve().then((function(){return t.apply(void 0,e)}))}}
937/**
938 * @license
939 * Copyright 2017 Google LLC
940 *
941 * Licensed under the Apache License, Version 2.0 (the "License");
942 * you may not use this file except in compliance with the License.
943 * You may obtain a copy of the License at
944 *
945 *   http://www.apache.org/licenses/LICENSE-2.0
946 *
947 * Unless required by applicable law or agreed to in writing, software
948 * distributed under the License is distributed on an "AS IS" BASIS,
949 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
950 * See the License for the specific language governing permissions and
951 * limitations under the License.
952 */var Pi=function(){function t(t,e,n){var r=this;void 0===n&&(n=null),this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=t,this._blob=e,this._metadata=n,this._mappings=ti(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=function(t){r._request=void 0,r._chunkMultiplier=1,t._codeEquals("canceled")?(r._needToFetchStatus=!0,r.completeTransitions_()):(r._error=t,r._transition("error"))},this._metadataErrorHandler=function(t){r._request=void 0,t._codeEquals("canceled")?r.completeTransitions_():(r._error=t,r._transition("error"))},this._promise=new Promise((function(t,e){r._resolve=t,r._reject=e,r._start()})),this._promise.then(null,(function(){}))}return t.prototype._makeProgressCallback=function(){var t=this,e=this._transferred;return function(n){return t._updateProgress(e+n)}},t.prototype._shouldDoResumable=function(t){return t.size()>262144},t.prototype._start=function(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this._continueUpload():this._oneShotUpload())},t.prototype._resolveToken=function(t){var e=this;Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then((function(n){var r=n[0],i=n[1];switch(e._state){case"running":t(r,i);break;case"canceling":e._transition("canceled");break;case"pausing":e._transition("paused");break}}))},t.prototype._createResumable=function(){var t=this;this._resolveToken((function(e,n){var r=ki(t._ref.storage,t._ref._location,t._mappings,t._blob,t._metadata),i=t._ref.storage._makeRequest(r,e,n);t._request=i,i.getPromise().then((function(e){t._request=void 0,t._uploadUrl=e,t._needToFetchStatus=!1,t.completeTransitions_()}),t._errorHandler)}))},t.prototype._fetchStatus=function(){var t=this,e=this._uploadUrl;this._resolveToken((function(n,r){var i=Ci(t._ref.storage,t._ref._location,e,t._blob),o=t._ref.storage._makeRequest(i,n,r);t._request=o,o.getPromise().then((function(e){e=e,t._request=void 0,t._updateProgress(e.current),t._needToFetchStatus=!1,e.finalized&&(t._needToFetchMetadata=!0),t.completeTransitions_()}),t._errorHandler)}))},t.prototype._continueUpload=function(){var t=this,e=xi*this._chunkMultiplier,n=new Ti(this._transferred,this._blob.size()),r=this._uploadUrl;this._resolveToken((function(i,o){var a;try{a=ji(t._ref._location,t._ref.storage,r,t._blob,e,t._mappings,n,t._makeProgressCallback())}catch(u){return t._error=u,void t._transition("error")}var s=t._ref.storage._makeRequest(a,i,o);t._request=s,s.getPromise().then((function(e){t._increaseMultiplier(),t._request=void 0,t._updateProgress(e.current),e.finalized?(t._metadata=e.metadata,t._transition("success")):t.completeTransitions_()}),t._errorHandler)}))},t.prototype._increaseMultiplier=function(){var t=xi*this._chunkMultiplier;t<33554432&&(this._chunkMultiplier*=2)},t.prototype._fetchMetadata=function(){var t=this;this._resolveToken((function(e,n){var r=mi(t._ref.storage,t._ref._location,t._mappings),i=t._ref.storage._makeRequest
952(r,e,n);t._request=i,i.getPromise().then((function(e){t._request=void 0,t._metadata=e,t._transition("success")}),t._metadataErrorHandler)}))},t.prototype._oneShotUpload=function(){var t=this;this._resolveToken((function(e,n){var r=Ii(t._ref.storage,t._ref._location,t._mappings,t._blob,t._metadata),i=t._ref.storage._makeRequest(r,e,n);t._request=i,i.getPromise().then((function(e){t._request=void 0,t._metadata=e,t._updateProgress(t._blob.size()),t._transition("success")}),t._errorHandler)}))},t.prototype._updateProgress=function(t){var e=this._transferred;this._transferred=t,this._transferred!==e&&this._notifyObservers()},t.prototype._transition=function(t){if(this._state!==t)switch(t){case"canceling":this._state=t,void 0!==this._request&&this._request.cancel();break;case"pausing":this._state=t,void 0!==this._request&&this._request.cancel();break;case"running":var e="paused"===this._state;this._state=t,e&&(this._notifyObservers(),this._start());break;case"paused":this._state=t,this._notifyObservers();break;case"canceled":this._error=Gn(),this._state=t,this._notifyObservers();break;case"error":this._state=t,this._notifyObservers();break;case"success":this._state=t,this._notifyObservers();break}},t.prototype.completeTransitions_=function(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start();break}},Object.defineProperty(t.prototype,"snapshot",{get:function(){var t=br(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:t,metadata:this._metadata,task:this,ref:this._ref}},enumerable:!1,configurable:!0}),t.prototype.on=function(t,e,n,r){var i=this,o=new Ai(e,n,r);return this._addObserver(o),function(){i._removeObserver(o)}},t.prototype.then=function(t,e){return this._promise.then(t,e)},t.prototype.catch=function(t){return this.then(null,t)},t.prototype._addObserver=function(t){this._observers.push(t),this._notifyObserver(t)},t.prototype._removeObserver=function(t){var e=this._observers.indexOf(t);-1!==e&&this._observers.splice(e,1)},t.prototype._notifyObservers=function(){var t=this;this._finishPromise();var e=this._observers.slice();e.forEach((function(e){t._notifyObserver(e)}))},t.prototype._finishPromise=function(){if(void 0!==this._resolve){var t=!0;switch(br(this._state)){case yr.SUCCESS:Ni(this._resolve.bind(null,this.snapshot))();break;case yr.CANCELED:case yr.ERROR:var e=this._reject;Ni(e.bind(null,this._error))();break;default:t=!1;break}t&&(this._resolve=void 0,this._reject=void 0)}},t.prototype._notifyObserver=function(t){var e=br(this._state);switch(e){case yr.RUNNING:case yr.PAUSED:t.next&&Ni(t.next.bind(t,this.snapshot))();break;case yr.SUCCESS:t.complete&&Ni(t.complete.bind(t))();break;case yr.CANCELED:case yr.ERROR:t.error&&Ni(t.error.bind(t,this._error))();break;default:t.error&&Ni(t.error.bind(t,this._error))()}},t.prototype.resume=function(){var t="paused"===this._state||"pausing"===this._state;return t&&this._transition("running"),t},t.prototype.pause=function(){var t="running"===this._state;return t&&this._transition("pausing"),t},t.prototype.cancel=function(){var t="running"===this._state||"pausing"===this._state;return t&&this._transition("canceling"),t},t}(),Ri=function(){function t(t,e){this._service=t,this._location=e instanceof Er?e:Er.makeFromUrl(e,t.host)}return t.prototype.toString=function(){return"gs://"+this._location.bucket+"/"+this._location.path},t.prototype._newRef=function(e,n){return new t(e,n)},Object.defineProperty(t.prototype,"root",{get:function(){var t=new Er(this._location.bucket,"");return this._newRef(this._service,t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this._location.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this._location.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return Xr(this._location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storage",{get:function(){return this._service}
952,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=Hr(this._location.path);if(null===e)return null;var n=new Er(this._location.bucket,e);return new t(this._service,n)},enumerable:!1,configurable:!0}),t.prototype._throwIfRoot=function(t){if(""===this._location.path)throw rr(t)},t}();
953/**
954 * @license
955 * Copyright 2019 Google LLC
956 *
957 * Licensed under the Apache License, Version 2.0 (the "License");
958 * you may not use this file except in compliance with the License.
959 * You may obtain a copy of the License at
960 *
961 *   http://www.apache.org/licenses/LICENSE-2.0
962 *
963 * Unless required by applicable law or agreed to in writing, software
964 * distributed under the License is distributed on an "AS IS" BASIS,
965 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
966 * See the License for the specific language governing permissions and
967 * limitations under the License.
968 */function Di(t,e,n){return t._throwIfRoot("uploadBytesResumable"),new Pi(t,new Wr(e),n)}function Li(t){var e={prefixes:[],items:[]};return Mi(t,e).then((function(){return e}))}function Mi(t,e,n){return Nn(this,void 0,void 0,(function(){var r,i,o,a;return Pn(this,(function(s){switch(s.label){case 0:return r={pageToken:n},[4,Fi(t,r)];case 1:return i=s.sent(),(o=e.prefixes).push.apply(o,i.prefixes),(a=e.items).push.apply(a,i.items),null==i.nextPageToken?[3,3]:[4,Mi(t,e,i.nextPageToken)];case 2:s.sent(),s.label=3;case 3:return[2]}}
968))}))}function Fi(t,e){return Nn(this,void 0,void 0,(function(){var n,r;return Pn(this,(function(i){switch(i.label){case 0:return null!=e&&"number"===typeof e.maxResults&&Nr("options.maxResults",1,1e3,e.maxResults),n=e||{},r=yi(t.storage,t._location,"/",n.pageToken,n.maxResults),[4,t.storage.makeRequestWithTokens(r)];case 1:return[2,i.sent().getPromise()]}}))}))}function Ui(t){return Nn(this,void 0,void 0,(function(){var e;return Pn(this,(function(n){switch(n.label){case 0:return t._throwIfRoot("getMetadata"),e=mi(t.storage,t._location,ti()),[4,t.storage.makeRequestWithTokens(e)];case 1:return[2,n.sent().getPromise()]}}))}))}function qi(t,e){return Nn(this,void 0,void 0,(function(){var n;return Pn(this,(function(r){switch(r.label){case 0:return t._throwIfRoot("updateMetadata"),n=wi(t.storage,t._location,e,ti()),[4,t.storage.makeRequestWithTokens(n)];case 1:return[2,r.sent().getPromise()]}}))}))}function $i(t){return Nn(this,void 0,void 0,(function(){var e;return Pn(this,(function(n){switch(n.label){case 0:return t._throwIfRoot("getDownloadURL"),e=bi(t.storage,t._location,ti()),[4,t.storage.makeRequestWithTokens(e)];case 1:return[2,n.sent().getPromise().then((function(t){if(null===t)throw tr();return t}))]}}))}))}function Bi(t){return Nn(this,void 0,void 0,(function(){var e;return Pn(this,(function(n){switch(n.label){case 0:return t._throwIfRoot("deleteObject"),e=_i(t.storage,t._location),[4,t.storage.makeRequestWithTokens(e)];case 1:return[2,n.sent().getPromise()]}}))}))}function Vi(t,e){var n=Gr(t._location.path,e),r=new Er(t._location.bucket,n);return new Ri(t.storage,r)}
969/**
970 * @license
971 * Copyright 2017 Google LLC
972 *
973 * Licensed under the Apache License, Version 2.0 (the "License");
974 * you may not use this file except in compliance with the License.
975 * You may obtain a copy of the License at
976 *
977 *   http://www.apache.org/licenses/LICENSE-2.0
978 *
979 * Unless required by applicable law or agreed to in writing, software
980 * distributed under the License is distributed on an "AS IS" BASIS,
981 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
982 * See the License for the specific language governing permissions and
983 * limitations under the License.
984 */function Ki(t){return/^[A-Za-z]+:\/\//.test(t)}function Wi(t,e){return new Ri(t,e)}function zi(t,e){if(t instanceof Yi){var n=t;if(null==n._bucket)throw Qn();var r=new Ri(n,n._bucket);return null!=e?zi(r,e):r}if(void 0!==e){if(e.includes(".."))throw er('`path` param cannot contain ".."');return Vi(t,e)}return t}function Hi(t,e){if(e&&Ki(e)){if(t instanceof Yi)return Wi(t,e);throw er("To use ref(service, url), the first argument must be a Storage instance.")}return zi(t,e)}function Gi(t,e){var n=null===e||void 0===e?void 0:e[Ln];return null==n?null:Er.makeFromBucketSpec(n,t)}function Xi(t,e,n){t.host="http://"+e+":"+n}var Yi=function(){function t(t,e,n,r,i,o){this.app=t,this._authProvider=e,this._appCheckProvider=n,this._pool=r,this._url=i,this._firebaseVersion=o,this._bucket=null,this._host=Dn,this._appId=null,this._deleted=!1,this._maxOperationRetryTime=Mn,this._maxUploadRetryTime=Fn,this._requests=new Set,this._bucket=null!=i?Er.makeFromBucketSpec(i,this._host):Gi(this._host,this.app.options)}return Object.defineProperty(t.prototype,"host",{get:function(){return this._host},set:function(t){this._host=t,null!=this._url?this._bucket=Er.makeFromBucketSpec(this._url,t):this._bucket=Gi(t,this.app.options)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this._maxUploadRetryTime},set:function(t){Nr("time",0,Number.POSITIVE_INFINITY,t),this._maxUploadRetryTime=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this._maxOperationRetryTime},set:function(t){Nr("time",0,Number.POSITIVE_INFINITY,t),this._maxOperationRetryTime=t},enumerable:!1,configurable:!0}),t.prototype._getAuthToken=function(){return Nn(this,void 0,void 0,(function(){var t,e;return Pn(this,(function(n){switch(n.label){case 0:return t=this._authProvider.getImmediate({optional:!0}),t?[4,t.getToken()]:[3,2];case 1:if(e=n.sent(),null!==e)return[2,e.accessToken];n.label=2;case 2:return[2,null]}}))}))},t.prototype._getAppCheckToken=function(){return Nn(this,void 0,void 0,(function(){var t,e;return Pn(this,(function(n){switch(n.label){case 0:return t=this._appCheckProvider.getImmediate({optional:!0}),t?[4,t.getToken()]:[3,2];case 1:return e=n.sent(),[2,e.token];case 2:return[2,null]}}))}))},t.prototype._delete=function(){return this._deleted=!0,this._requests.forEac
984h((function(t){return t.cancel()})),this._requests.clear(),Promise.resolve()},t.prototype._makeStorageReference=function(t){return new Ri(this,t)},t.prototype._makeRequest=function(t,e,n){var r=this;if(this._deleted)return new Or(nr());var i=$r(t,this._appId,e,n,this._pool,this._firebaseVersion);return this._requests.add(i),i.getPromise().then((function(){return r._requests.delete(i)}),(function(){return r._requests.delete(i)})),i},t.prototype.makeRequestWithTokens=function(t){return Nn(this,void 0,void 0,(function(){var e,n,r;return Pn(this,(function(i){switch(i.label){case 0:return[4,Promise.all([this._getAuthToken(),this._getAppCheckToken()])];case 1:return e=i.sent(),n=e[0],r=e[1],[2,this._makeRequest(t,n,r)]}}))}))},t}();
985/**
986 * @license
987 * Copyright 2020 Google LLC
988 *
989 * Licensed under the Apache License, Version 2.0 (the "License");
990 * you may not use this file except in compliance with the License.
991 * You may obtain a copy of the License at
992 *
993 *   http://www.apache.org/licenses/LICENSE-2.0
994 *
995 * Unless required by applicable law or agreed to in writing, software
996 * distributed under the License is distributed on an "AS IS" BASIS,
997 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
998 * See the License for the specific language governing permissions and
999 * limitations under the License.
1000 */function Qi(t,e,n){return t=Object(i["q"])(t),Di(t,e,n)}function Ji(t){return t=Object(i["q"])(t),Ui(t)}function Zi(t,e){return t=Object(i["q"])(t),qi(t,e)}function to(t,e){return t=Object(i["q"])(t),Fi(t,e)}function eo(t){return t=Object(i["q"])(t),Li(t)}function no(t){return t=Object(i["q"])(t),$i(t)}function ro(t){return t=Object(i["q"])(t),Bi(t)}function io(t,e){return t=Object(i["q"])(t),Hi(t,e)}function oo(t,e){return Vi(t,e)}
1001/**
1002 * @license
1003 * Copyright 2020 Google LLC
1004 *
1005 * Licensed under the Apache License, Version 2.0 (the "License");
1006 * you may not use this file except in compliance with the License.
1007 * You may obtain a copy of the License at
1008 *
1009 *   http://www.apache.org/licenses/LICENSE-2.0
1010 *
1011 * Unless required by applicable law or agreed to in writing, software
1012 * distributed under the License is distributed on an "AS IS" BASIS,
1013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1014 * See the License for the specific language governing permissions and
1015 * limitations under the License.
1016 */var ao=function(){function t(t,e,n){this._delegate=t,this.task=e,this.ref=n}return Object.defineProperty(t.prototype,"bytesTransferred",{get:function(){return this._delegate.bytesTransferred},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._delegate.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalBytes",{get:function(){return this._delegate.totalBytes},enumerable:!1,configurable:!0}),t}(),so=function(){function t(t,e){this._delegate=t,this._ref=e,this.cancel=this._delegate.cancel.bind(this._delegate),this.catch=this._delegate.catch.bind(this._delegate),this.pause=this._delegate.pause.bind(this._delegate),this.resume=this._delegate.resume.bind(this._delegate)}return Object.defineProperty(t.prototype,"snapshot",{get:function(){return new ao(this._delegate.snapshot,this,this._ref)},enumerable:!1,configurable:!0}),t.prototype.then=function(t,e){var n=this;return this._delegate.then((function(e){if(t)return t(new ao(e,n,n._ref))}),e)},t.prototype.on=function(t,e,n,r){var i=this,o=void 0;return e&&(o="function"===typeof e?function(t){return e(new ao(t,i,i._ref))}:{next:e.next?function(t){return e.next(new ao(t,i,i._ref))}:void 0,complete:e.complete||void 0,error:e.error||void 0}),this._delegate.on(t,o,n||void 0,r||void 0)},t}(),uo=function(){function t(t,e){this._delegate=t,this._service=e}return Object.defineProperty(t.prototype,"prefixes",{get:function(){var t=this;return this._delegate.prefixes.map((function(e){return new co(e,t._service)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){var t=this;return this._delegate.items.map((function(e){return new co(e,t._service)}))}
1016,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextPageToken",{get:function(){return this._delegate.nextPageToken||null},enumerable:!1,configurable:!0}),t}(),co=function(){function t(t,e){this._delegate=t,this.storage=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this._delegate.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this._delegate.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this._delegate.fullPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this._delegate.toString()},t.prototype.child=function(e){var n=oo(this._delegate,e);return new t(n,this.storage)},Object.defineProperty(t.prototype,"root",{get:function(){return new t(this._delegate.root,this.storage)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._delegate.parent;return null==e?null:new t(e,this.storage)},enumerable:!1,configurable:!0}),t.prototype.put=function(t,e){return this._throwIfRoot("put"),new so(Qi(this._delegate,t,e),this)},t.prototype.putString=function(t,e,n){void 0===e&&(e=ar.RAW),this._throwIfRoot("putString");var r=ur(e,t),i=An({},n);return null==i["contentType"]&&null!=r.contentType&&(i["contentType"]=r.contentType),new so(new Pi(this._delegate,new Wr(r.data,!0),i),this)},t.prototype.listAll=function(){var t=this;return eo(this._delegate).then((function(e){return new uo(e,t.storage)}))},t.prototype.list=function(t){var e=this;return to(this._delegate,t||void 0).then((function(t){return new uo(t,e.storage)}))},t.prototype.getMetadata=function(){return Ji(this._delegate)},t.prototype.updateMetadata=function(t){return Zi(this._delegate,t)},t.prototype.getDownloadURL=function(){return no(this._delegate)},t.prototype.delete=function(){return this._throwIfRoot("delete"),ro(this._delegate)},t.prototype._throwIfRoot=function(t){if(""===this._delegate._location.path)throw rr(t)},t}(),lo=function(){function t(t,e){var n=this;this.app=t,this._delegate=e,this.INTERNAL={delete:function(){return n._delegate._delete()}}}return Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this._delegate.maxOperationRetryTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this._delegate.maxUploadRetryTime},enumerable:!1,configurable:!0}),t.prototype.ref=function(t){if(Ki(t))throw er("ref() expected a child path but got a URL, use refFromURL instead.");return new co(io(this._delegate,t),this)},t.prototype.refFromURL=function(t){if(!Ki(t))throw er("refFromURL() expected a full URL but got a child path, use ref() instead.");try{Er.makeFromUrl(t,this._delegate.host)}catch(e){throw er("refFromUrl() expected a valid full URL but got an invalid one.")}return new co(io(this._delegate,t),this)},t.prototype.setMaxUploadRetryTime=function(t){this._delegate.maxUploadRetryTime=t},t.prototype.setMaxOperationRetryTime=function(t){this._delegate.maxOperationRetryTime=t},t.prototype.useEmulator=function(t,e){Xi(this._delegate,t,e)},t}(),fo="@firebase/storage",ho="0.5.2",po="storage";
1017/**
1018 * @license
1019 * Copyright 2020 Google LLC
1020 *
1021 * Licensed under the Apache License, Version 2.0 (the "License");
1022 * you may not use this file except in compliance with the License.
1023 * You may obtain a copy of the License at
1024 *
1025 *   http://www.apache.org/licenses/LICENSE-2.0
1026 *
1027 * Unless required by applicable law or agreed to in writing, software
1028 * distributed under the License is distributed on an "AS IS" BASIS,
1029 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1030 * See the License for the specific language governing permissions and
1031 * limitations under the License.
1032 */function vo(t,e){var n=e.instanceIdentifier,i=t.getProvider("app").getImmediate(),o=t.getProvider("auth-internal"),a=t.getProvider("app-check-internal"),s=new lo(i,new Yi(i,o,a,new _r,n,r["a"].SDK_VERSION));return s}function go(t){var e={TaskState:yr,TaskEvent:mr,StringFormat:ar,Storage:Yi,Reference:co};
1032t.INTERNAL.registerComponent(new s["a"](po,vo,"PUBLIC").setServiceProps(e).setMultipleInstances(!0)),t.registerVersion(fo,ho)}go(r["a"]);var mo=function(){return mo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},mo.apply(this,arguments)};Object.create;function yo(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}Object.create;var bo,wo,_o,Eo="@firebase/performance",Oo="0.4.12",Io=Oo,To="FB-PERF-TRACE-START",So="FB-PERF-TRACE-STOP",ko="FB-PERF-TRACE-MEASURE",Co="_wt_",xo="_fp",jo="_fcp",Ao="_fid",No="@firebase/performance/config",Po="@firebase/performance/configexpire",Ro="performance",Do="Performance",Lo=(bo={},bo["trace started"]="Trace {$traceName} was started before.",bo["trace stopped"]="Trace {$traceName} is not running.",bo["nonpositive trace startTime"]="Trace {$traceName} startTime should be positive.",bo["nonpositive trace duration"]="Trace {$traceName} duration should be positive.",bo["no window"]="Window is not available.",bo["no app id"]="App id is not available.",bo["no project id"]="Project id is not available.",bo["no api key"]="Api key is not available.",bo["invalid cc log"]="Attempted to queue invalid cc event",bo["FB not default"]="Performance can only start when Firebase app instance is the default one.",bo["RC response not ok"]="RC response is not ok",bo["invalid attribute name"]="Attribute name {$attributeName} is invalid.",bo["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",bo["invalid custom metric name"]="Custom metric name {$customMetricName} is invalid",bo["invalid String merger input"]="Input for String merger is invalid, contact support team to resolve.",bo),Mo=new i["b"](Ro,Do,Lo),Fo=new o["b"](Do);Fo.logLevel=o["a"].INFO;var Uo,qo=function(){function t(t){if(this.window=t,!t)throw Mo.create("no window");this.performance=t.performance,this.PerformanceObserver=t.PerformanceObserver,this.windowLocation=t.location,this.navigator=t.navigator,this.document=t.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=t.localStorage),t.perfMetrics&&t.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=t.perfMetrics.onFirstInputDelay)}return t.prototype.getUrl=function(){return this.windowLocation.href.split("?")[0]},t.prototype.mark=function(t){this.performance&&this.performance.mark&&this.performance.mark(t)},t.prototype.measure=function(t,e,n){this.performance&&this.performance.measure&&this.performance.measure(t,e,n)},t.prototype.getEntriesByType=function(t){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(t):[]},t.prototype.getEntriesByName=function(t){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(t):[]},t.prototype.getTimeOrigin=function(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)},t.prototype.requiredApisAvailable=function(){return fetch&&Promise&&this.navigator&&this.navigator.cookieEnabled?!!Object(i["y"])()||(Fo.info("IndexedDB is not supported by current browswer"),!1):(Fo.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1)},t.prototype.setupObserver=function(t,e){if(this.PerformanceObserver){var n=new this.PerformanceObserver((function(t){for(var n=0,r=t.getEntries();n<r.length;n++){var i=r[n];e(i)}}));n.observe({entryTypes:[t]})}},t.getInstance=function(){return void 0===wo&&(wo=new t(_o)),wo},t}();function $o(t){_o=t}
1033/**
1034 * @license
1035 * Copyright 2019 Google LLC
1036 *
1037 * Licensed under the Apache License, Version 2.0 (the "License");
1038 * you may not use this file except in compliance with the License.
1039 * You may obtain a copy of the License at
1040 *
1041 *   http://www.apache.org/licenses/LICENSE-2.0
1042 *
1043 * Unless required by applicable law or agreed to in writing, software
1044 * distributed under the License is distributed on an "AS IS" BASIS,
1045 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1046 * See the License for the specific language governing permissions and
1047 * limitations under the License.
1048 */function Bo(t,e){var n=t.length-e.length;if(n<0||n>1)throw Mo.create("invalid String merger input");for(var r=[],i=0;i<t.length;i++)r.push(t.charAt(i)),e.length>i&&r.push(e.charAt(i));return r.join("")}
1049/**
1050 * @license
1051 * Copyright 2019 Google LLC
1052 *
1053 * Licensed under the Apache License, Version 2.0 (the "License");
1054 * you may not use this file except in compliance with the License.
1055 * You may obtain a copy of the License at
1056 *
1057 *   http://www.apache.org/licenses/LICENSE-2.0
1058 *
1059 * Unless required by applicable law or agreed to in writing, software
1060 * distributed under the License is distributed on an "AS IS" BASIS,
1061 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1062 * See the License for the specific language governing permissions and
1063 * limitations under the License.
1064 */var Vo,Ko,Wo=function(){function t(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=Bo("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=Bo("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}return t.prototype.getAppId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!t)throw Mo.create("no app id");return t},t.prototype.getProjectId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!t)throw Mo.create("no project id");return t},t.prototype.getApiKey=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!t)throw Mo.create("no api key");return t},t.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},t.getInstance=function(){return void 0===Uo&&(Uo=new t),Uo},t}();
1065/**
1066 * @license
1067 * Copyright 2019 Google LLC
1068 *
1069 * Licensed under the Apache License, Version 2.0 (the "License");
1070 * you may not use this file except in compliance with the License.
1071 * You may obtain a copy of the License at
1072 *
1073 *   http://www.apache.org/licenses/LICENSE-2.0
1074 *
1075 * Unless required by applicable law or agreed to in writing, software
1076 * distributed under the License is distributed on an "AS IS" BASIS,
1077 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1078 * See the License for the specific language governing permissions and
1079 * limitations under the License.
1080 */function zo(){var t=Wo.getInstance().installationsService.getId();return t.then((function(t){Vo=t})),t}function Ho(){return Vo}function Go(){var t=Wo.getInstance().installationsService.getToken();return t.then((function(t){})),t}
1081/**
1082 * @license
1083 * Copyright 2019 Google LLC
1084 *
1085 * Licensed under the Apache License, Version 2.0 (the "License");
1086 * you may not use this file except in compliance with the License.
1087 * You may obtain a copy of the License at
1088 *
1089 *   http://www.apache.org/licenses/LICENSE-2.0
1090 *
1091 * Unless required by applicable law or agreed to in writing, software
1092 * distributed under the License is distributed on an "AS IS" BASIS,
1093 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1094 * See the License for the specific language governing permissions and
1095 * limitations under the License.
1096 */(function(t){t[t["UNKNOWN"]=0]="UNKNOWN",t[t["VISIBLE"]=1]="VISIBLE",t[t["HIDDEN"]=2]="HIDDEN"})(Ko||(Ko={}));var Xo=["firebase_","google_","ga_"],Yo=new RegExp("^[a-zA-Z]\\w*$"),Qo=40,Jo=100;function Zo(){var t=qo.getInstance().navigator;return"serviceWorker"in t?t.serviceWorker.controller?2:3:1}function ta(){var t=qo.getInstance().document,e=t.visibilityState;switch(e){case"visible":return Ko.VISIBLE;case"hidden":return Ko.HIDDEN;default:return Ko.UNKNOWN}}function ea(){var t=qo.getInstance().navigator,e=t.connection,n=e&&e.effectiveType;switch(n){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}function na(t){if(0===t.length||t.length>Qo)return!1;var e=Xo.some((function(e){return t.startsWith(e)}));return!e&&!!t.match(Yo)}function ra(t){return 0!==t.length&&t.length<=Jo}
1097/**
1098 * @license
1099 * Copyright 2019 Google LLC
1100 *
1101 * Licensed under the Apache License, Version 2.0 (the "License");
1102 * you may not use this file except in compliance with the License.
1103 * You may obtain a copy of the License at
1104 *
1105 *   http://www.apache.org/licenses/LICENSE-2.0
1106 *
1107 * Unless required by applicable law or agreed to in writing, software
1108 * distributed under the License is distributed on an "AS IS" BASIS,
1109 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1110 * See the License for the specific language governing permissions and
1111 * limitations under the License.
1112 */var ia="0.0.1",oa={loggingEnabled:!0},aa="FIREBASE_INSTALLATIONS_AUTH";function sa(t){var e=ua();return e?(ha(e),Promise.resolve()):fa(t).then(ha).then((function(t){return ca(t)}),(function(){}))}function ua(){var t=qo.getInstance().localStorage;if(t){var e=t.getItem(Po);if(e&&da(e)){var n=t.getItem(No);if(n)try{var r=JSON.parse(n);return r}catch(i){return}}}}function ca(t){var e=qo.getInstance().localStorage;t&&e&&(e.setItem(No,JSON.stringify(t)),e.setItem(Po,String(Date.now()+60*Wo.getInstance().configTimeToLive*60*1e3)))}var la="Could not fetch config, will use default configs";function fa(t){return Go().then((function(e){var n=Wo.getInstance().getProjectId(),r="https://firebaseremoteconfig.googleapis.com/v1/projects/"+n+"/namespaces/fireperf:fetch?key="+Wo.getInstance().getApiKey(),i=new Request(r,{method:"POST",headers:{Authorization:aa+" "+e},body:JSON.stringify({app_instance_id:t,app_instance_id_token:e,app_id:Wo.getInstance().getAppId(),app_version:Io,sdk_version:ia})});return fetch(i).then((function(t){if(t.ok)return t.json();throw Mo.create("RC response not ok")}))})).catch((function(){Fo.info(la)}))}function ha(t){if(!t)return t;var e=Wo.getInstance(),n=t.entries||{};return void 0!==n.fpr_enabled?e.loggingEnabled="true"===String(n.fpr_enabled):e.loggingEnabled=oa.loggingEnabled,n.fpr_log_source&&(e.logSource=Number(n.fpr_log_source)),n.fpr_log_endpoint_url&&(e.logEndPointUrl=n.fpr_log_endpoint_url),n.fpr_log_transport_key&&(e.transportKey=n.fpr_log_transport_key),void 0!==n.fpr_vc_network_request_sampling_rate&&(e.networkRequestsSamplingRate=Number(n.fpr_vc_network_request_sampling_rate)),void 0!==n.fpr_vc_trace_sampling_rate&&(e.tracesSamplingRate=Number(n.fpr_vc_trace_sampling_rate)),e.logTraceAfterSampling=pa(e.tracesSamplingRate),e.logNetworkAfterSampling=pa(e.networkRequestsSamplingRate),t}function da(t){return Number(t)>Date.now()}function pa(t){return Math.random()<=t}
1113/**
1114 * @license
1115 * Copyright 2019 Google LLC
1116 *
1117 * Licensed under the Apache License, Version 2.0 (the "License");
1118 * you may not use this file except in compliance with the License.
1119 * You may obtain a copy of the License at
1120 *
1121 *   http://www.apache.org/licenses/LICENSE-2.0
1122 *
1123 * Unless required by applicable law or agreed to in writing, software
1124 * distributed under the License is distributed on an "AS IS" BASIS,
1125 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1126 * See the License for the specific language governing permissions and
1127 * limitations under the License.
1128 */var va,ga=1;function ma(){return ga=2,va=va||ba(),va}function ya(){return 3===ga}function ba(){return wa().then((function(){return zo()})).then((function(t){return sa(t)})).then((function(){return _a()}),(function(){return _a()}))}function wa(){var t=qo.getInstance().document;return new Promise((function(e){if(t&&"complete"!==t.readyState){var n=function(){"complete"===t.readyState&&(t.removeEventListener("readystatechange",n),e())};t.addEventListener("readystatechange",n)}else e()}))}function _a(){ga=3}
1129/**
1130 * @license
1131 * Copyright 2019 Google LLC
1132 *
1133 * Licensed under the Apache License, Version 2.0 (the "License");
1134 * you may not use this file except in compliance with the License.
1135 * You may obtain a copy of the License at
1136 *
1137 *   http://www.apache.org/licenses/LICENSE-2.0
1138 *
1139 * Unless required by applicable law or agreed to in writing, software
1140 * distributed under the License is distributed on an "AS IS" BASIS,
1141 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1142 * See the License for the specific language governing permissions and
1143 * limitations under the License.
1144 */var Ea,Oa=1e4,Ia=5500,Ta=3,Sa=1e3,ka=Ta,Ca=[],xa=!1;function ja(){xa||(Aa(Ia),xa=!0)}function Aa(t){setTimeout((function(){if(0!==ka)return Ca.length?void Na():Aa(Oa)}),t)}function Na(){var t=Ca.splice(0,Sa),e=t.map((function(t){return{source_extension_json_proto3:t.message,event_time_ms:String(t.eventTime)}})),n={request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:Wo.getInstance().logSource,log_event:e};Pa(n,t).catch((function(){Ca=yo(yo([],t),Ca),ka--,Fo.info("Tries left: "+ka+"."),Aa(Oa)}))}function Pa(t,e){return Ra(t).then((function(t){return t.ok||Fo.info("Call to Firebase backend failed."),t.json()}
1144)).then((function(t){var n=Number(t.nextRequestWaitMillis),r=Oa;isNaN(n)||(r=Math.max(n,r));var i=t.logResponseDetails;Array.isArray(i)&&i.length>0&&"RETRY_REQUEST_LATER"===i[0].responseAction&&(Ca=yo(yo([],e),Ca),Fo.info("Retry transport request later.")),ka=Ta,Aa(r)}))}function Ra(t){var e=Wo.getInstance().getFlTransportFullUrl();return fetch(e,{method:"POST",body:JSON.stringify(t)})}function Da(t){if(!t.eventTime||!t.message)throw Mo.create("invalid cc log");Ca=yo(yo([],Ca),[t])}function La(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(void 0,e);Da({message:r,eventTime:Date.now()})}}
1145/**
1146 * @license
1147 * Copyright 2019 Google LLC
1148 *
1149 * Licensed under the Apache License, Version 2.0 (the "License");
1150 * you may not use this file except in compliance with the License.
1151 * You may obtain a copy of the License at
1152 *
1153 *   http://www.apache.org/licenses/LICENSE-2.0
1154 *
1155 * Unless required by applicable law or agreed to in writing, software
1156 * distributed under the License is distributed on an "AS IS" BASIS,
1157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1158 * See the License for the specific language governing permissions and
1159 * limitations under the License.
1160 */function Ma(t,e){Ea||(Ea=La($a)),Ea(t,e)}function Fa(t){var e=Wo.getInstance();!e.instrumentationEnabled&&t.isAuto||(e.dataCollectionEnabled||t.isAuto)&&qo.getInstance().requiredApisAvailable()&&(t.isAuto&&ta()!==Ko.VISIBLE||(ya()?Ua(t):ma().then((function(){return Ua(t)}),(function(){return Ua(t)}))))}function Ua(t){if(Ho()){var e=Wo.getInstance();e.loggingEnabled&&e.logTraceAfterSampling&&setTimeout((function(){return Ma(t,1)}),0)}}function qa(t){var e=Wo.getInstance();if(e.instrumentationEnabled){var n=t.url,r=e.logEndPointUrl.split("?")[0],i=e.flTransportEndpointUrl.split("?")[0];n!==r&&n!==i&&e.loggingEnabled&&e.logNetworkAfterSampling&&setTimeout((function(){return Ma(t,0)}),0)}}function $a(t,e){return 0===e?Ba(t):Va(t)}function Ba(t){var e={url:t.url,http_method:t.httpMethod||0,http_response_code:200,response_payload_bytes:t.responsePayloadBytes,client_start_time_us:t.startTimeUs,time_to_response_initiated_us:t.timeToResponseInitiatedUs,time_to_response_completed_us:t.timeToResponseCompletedUs},n={application_info:Ka(),network_request_metric:e};return JSON.stringify(n)}function Va(t){var e={name:t.name,is_auto:t.isAuto,client_start_time_us:t.startTimeUs,duration_us:t.durationUs};0!==Object.keys(t.counters).length&&(e.counters=t.counters);var n=t.getAttributes();0!==Object.keys(n).length&&(e.custom_attributes=n);var r={application_info:Ka(),trace_metric:e};return JSON.stringify(r)}function Ka(){return{google_app_id:Wo.getInstance().getAppId(),app_instance_id:Ho(),web_app_info:{sdk_version:Io,page_url:qo.getInstance().getUrl(),service_worker_status:Zo(),visibility_state:ta(),effective_connection_type:ea()},application_process_state:0}}
1161/**
1162 * @license
1163 * Copyright 2019 Google LLC
1164 *
1165 * Licensed under the Apache License, Version 2.0 (the "License");
1166 * you may not use this file except in compliance with the License.
1167 * You may obtain a copy of the License at
1168 *
1169 *   http://www.apache.org/licenses/LICENSE-2.0
1170 *
1171 * Unless required by applicable law or agreed to in writing, software
1172 * distributed under the License is distributed on an "AS IS" BASIS,
1173 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1174 * See the License for the specific language governing permissions and
1175 * limitations under the License.
1176 */var Wa=100,za="_",Ha=[xo,jo,Ao];function Ga(t,e){return!(0===t.length||t.length>Wa)&&(e&&e.startsWith(Co)&&Ha.indexOf(t)>-1||!t.startsWith(za))}function Xa(t){var e=Math.floor(t);return e<t&&Fo.info("Metric value should be an Integer, setting the value as : "+e+"."),e}
1177/**
1178 * @license
1179 * Copyright 2019 Google LLC
1180 *
1181 * Licensed under the Apache License, Version 2.0 (the "License");
1182 * you may not use this file except in compliance with the License.
1183 * You may obtain a copy of the License at
1184 *
1185 *   http://www.apache.org/licenses/LICENSE-2.0
1186 *
1187 * Unless required by applicable law or agreed to in writing, softw
1187are
1188 * distributed under the License is distributed on an "AS IS" BASIS,
1189 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1190 * See the License for the specific language governing permissions and
1191 * limitations under the License.
1192 */var Ya=function(){function t(t,e,n){void 0===e&&(e=!1),this.name=t,this.isAuto=e,this.state=1,this.customAttributes={},this.counters={},this.api=qo.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark=To+"-"+this.randomId+"-"+this.name,this.traceStopMark=So+"-"+this.randomId+"-"+this.name,this.traceMeasure=n||ko+"-"+this.randomId+"-"+this.name,n&&this.calculateTraceMetrics())}return t.prototype.start=function(){if(1!==this.state)throw Mo.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2},t.prototype.stop=function(){if(2!==this.state)throw Mo.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),Fa(this)},t.prototype.record=function(t,e,n){if(t<=0)throw Mo.create("nonpositive trace startTime",{traceName:this.name});if(e<=0)throw Mo.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*e),this.startTimeUs=Math.floor(1e3*t),n&&n.attributes&&(this.customAttributes=mo({},n.attributes)),n&&n.metrics)for(var r=0,i=Object.keys(n.metrics);r<i.length;r++){var o=i[r];isNaN(Number(n.metrics[o]))||(this.counters[o]=Number(Math.floor(n.metrics[o])))}Fa(this)},t.prototype.incrementMetric=function(t,e){void 0===e&&(e=1),void 0===this.counters[t]?this.putMetric(t,e):this.putMetric(t,this.counters[t]+e)},t.prototype.putMetric=function(t,e){if(!Ga(t,this.name))throw Mo.create("invalid custom metric name",{customMetricName:t});this.counters[t]=Xa(e)},t.prototype.getMetric=function(t){return this.counters[t]||0},t.prototype.putAttribute=function(t,e){var n=na(t),r=ra(e);if(n&&r)this.customAttributes[t]=e;else{if(!n)throw Mo.create("invalid attribute name",{attributeName:t});if(!r)throw Mo.create("invalid attribute value",{attributeValue:e})}},t.prototype.getAttribute=function(t){return this.customAttributes[t]},t.prototype.removeAttribute=function(t){void 0!==this.customAttributes[t]&&delete this.customAttributes[t]},t.prototype.getAttributes=function(){return mo({},this.customAttributes)},t.prototype.setStartTime=function(t){this.startTimeUs=t},t.prototype.setDuration=function(t){this.durationUs=t},t.prototype.calculateTraceMetrics=function(){var t=this.api.getEntriesByName(this.traceMeasure),e=t&&t[0];e&&(this.durationUs=Math.floor(1e3*e.duration),this.startTimeUs=Math.floor(1e3*(e.startTime+this.api.getTimeOrigin())))},t.createOobTrace=function(e,n,r){var i=qo.getInstance().getUrl();if(i){var o=new t(Co+i,!0),a=Math.floor(1e3*qo.getInstance().getTimeOrigin());o.setStartTime(a),e&&e[0]&&(o.setDuration(Math.floor(1e3*e[0].duration)),o.putMetric("domInteractive",Math.floor(1e3*e[0].domInteractive)),o.putMetric("domContentLoadedEventEnd",Math.floor(1e3*e[0].domContentLoadedEventEnd)),o.putMetric("loadEventEnd",Math.floor(1e3*e[0].loadEventEnd)));var s="first-paint",u="first-contentful-paint";if(n){var c=n.find((function(t){return t.name===s}));c&&c.startTime&&o.putMetric(xo,Math.floor(1e3*c.startTime));var l=n.find((function(t){return t.name===u}));l&&l.startTime&&o.putMetric(jo,Math.floor(1e3*l.startTime)),r&&o.putMetric(Ao,Math.floor(1e3*r))}Fa(o)}},t.createUserTimingTrace=function(e){var n=new t(e,!1,e);Fa(n)},t}();
1193/**
1194 * @license
1195 * Copyright 2019 Google LLC
1196 *
1197 * Licensed under the Apache License, Version 2.0 (the "License");
1198 * you may not use this file except in compliance with the License.
1199 * You may obtain a copy of the License at
1200 *
1201 *   http://www.apache.org/licenses/LICENSE-2.0
1202 *
1203 * Unless required by applicable law or agreed to in writing, software
1204 * distributed under the License is distributed on an "AS IS" BASIS,
1205 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1206 * See the License for the specific language governing permissions and
1207 * limitations under the License.
1208 */function Qa(t){var e=t;if(e&&void 0!==e.responseStart){var n=qo.getInstance().getTimeOrigin(),r=Math.floor(1e3*(e.startTime+n)),i=e.responseStart?Math.floor(1e3*(e.responseStart-e.startTime)):void 0,o=Math.floor(1e3*(e.responseEnd-e.startTime)),a=e.name&&e.name.split("?")[0],s={url:a,responsePayloadBytes:e.transferSize,startTimeUs:r,timeToResponseInitiatedUs:i,timeToResponseCompletedUs:o};qa(s)}}
1209/**
1210 * @license
1211 * Copyright 2019 Google LLC
1212 *
1213 * Licensed under the Apache License, Version 2.0 (the "License");
1214 * you may not use this file except in compliance with the License.
1215 * You may obtain a copy of the License at
1216 *
1217 *   http://www.apache.org/licenses/LICENSE-2.0
1218 *
1219 * Unless required by applicable law or agreed to in writing, software
1220 * distributed under the License is distributed on an "AS IS" BASIS,
1221 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1222 * See the License for the specific language governing permissions and
1223 * limitations under the License.
1224 */var Ja=5e3;function Za(){Ho()&&(setTimeout((function(){return es()}),0),setTimeout((function(){return ts()}),0),setTimeout((function(){return ns()}),0))}function ts(){for(var t=qo.getInstance(),e=t.getEntriesByType("resource"),n=0,r=e;n<r.length;n++){var i=r[n];Qa(i)}t.setupObserver("resource",Qa)}function es(){var t=qo.getInstance(),e=t.getEntriesByType("navigation"),n=t.getEntriesByType("paint");if(t.onFirstInputDelay){var r=setTimeout((function(){Ya.createOobTrace(e,n),r=void 0}),Ja);t.onFirstInputDelay((function(t){r&&(clearTimeout(r),Ya.createOobTrace(e,n,t))}))}else Ya.createOobTrace(e,n)}function ns(){for(var t=qo.getInstance(),e=t.getEntriesByType("measure"),n=0,r=e;n<r.length;n++){var i=r[n];rs(i)}t.setupObserver("measure",rs)}function rs(t){var e=t.name;e.substring(0,ko.length)!==ko&&Ya.createUserTimingTrace(e)}
1225/**
1226 * @license
1227 * Copyright 2019 Google LLC
1228 *
1229 * Licensed under the Apache License, Version 2.0 (the "License");
1230 * you may not use this file except in compliance with the License.
1231 * You may obtain a copy of the License at
1232 *
1233 *   http://www.apache.org/licenses/LICENSE-2.0
1234 *
1235 * Unless required by applicable law or agreed to in writing, software
1236 * distributed under the License is distributed on an "AS IS" BASIS,
1237 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1238 * See the License for the specific language governing permissions and
1239 * limitations under the License.
1240 */var is=function(){function t(t){this.app=t,qo.getInstance().requiredApisAvailable()&&Object(i["P"])().then((function(t){t&&(ja(),ma().then(Za,Za))})).catch((function(t){Fo.info("Environment doesn't support IndexedDB: "+t)}))}return t.prototype.trace=function(t){return new Ya(t)},Object.defineProperty(t.prototype,"instrumentationEnabled",{get:function(){return Wo.getInstance().instrumentationEnabled},set:function(t){Wo.getInstance().instrumentationEnabled=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataCollectionEnabled",{get:function(){return Wo.getInstance().dataCollectionEnabled},set:function(t){Wo.getInstance().dataCollectionEnabled=t},enumerable:!1,configurable:!0}),t}(),os="[DEFAULT]";
1241/**
1242 * @license
1243 * Copyright 2019 Google LLC
1244 *
1245 * Licensed under the Apache License, Version 2.0 (the "License");
1246 * you may not use this file except in compliance with the License.
1247 * You may obtain a copy of the License at
1248 *
1249 *   http://www.apache.org/licenses/LICENSE-2.0
1250 *
1251 * Unless required by applicable law or agreed to in writing, software
1252 * distributed under the License is distributed on an "AS IS" BASIS,
1253 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1254 * See the License for the specific language governing permissions and
1255 * limitations under the License.
1256 */function as(t){var e=function(t,e){if(t.name!==os)throw Mo.create("FB not default");if("undefined"===typeof window)throw Mo.create("no window");return $o(window),Wo.getInstance().firebaseAppInstance=t,Wo.getInstance().installationsService=e,new is(t)};t.INTERNAL.registerComponent(new s["a"]("performance",(function(t){var n=t.getProvider("app").getImmediate(),r=t.getProvider("installations").getImmediate();return e(n,r)}),"PUBLIC")),t.registerVersion(Eo,Oo)}as(r["a"]);var ss=function(){return ss=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ss.apply(this,arguments)};function us(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function cs(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");
1256while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;Object.create;
1257/**
1258 * @license
1259 * Copyright 2019 Google LLC
1260 *
1261 * Licensed under the Apache License, Version 2.0 (the "License");
1262 * you may not use this file except in compliance with the License.
1263 * You may obtain a copy of the License at
1264 *
1265 *   http://www.apache.org/licenses/LICENSE-2.0
1266 *
1267 * Unless required by applicable law or agreed to in writing, software
1268 * distributed under the License is distributed on an "AS IS" BASIS,
1269 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1270 * See the License for the specific language governing permissions and
1271 * limitations under the License.
1272 */
1273var ls,fs,hs="firebase_id",ds="origin",ps=6e4,vs="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",gs="https://www.googletagmanager.com/gtag/js";
1274/**
1275 * @license
1276 * Copyright 2019 Google LLC
1277 *
1278 * Licensed under the Apache License, Version 2.0 (the "License");
1279 * you may not use this file except in compliance with the License.
1280 * You may obtain a copy of the License at
1281 *
1282 *   http://www.apache.org/licenses/LICENSE-2.0
1283 *
1284 * Unless required by applicable law or agreed to in writing, software
1285 * distributed under the License is distributed on an "AS IS" BASIS,
1286 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1287 * See the License for the specific language governing permissions and
1288 * limitations under the License.
1289 */
1290function ms(t,e,n,r,i){return us(this,void 0,void 0,(function(){var o,a;return cs(this,(function(s){switch(s.label){case 0:return i&&i.global?(t(ls.EVENT,n,r),[2]):[3,1];case 1:return[4,e];case 2:o=s.sent(),a=ss(ss({},r),{send_to:o}),t(ls.EVENT,n,a),s.label=3;case 3:return[2]}}
1290))}))}function ys(t,e,n,r){return us(this,void 0,void 0,(function(){var i;return cs(this,(function(o){switch(o.label){case 0:return r&&r.global?(t(ls.SET,{screen_name:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,e];case 2:i=o.sent(),t(ls.CONFIG,i,{update:!0,screen_name:n}),o.label=3;case 3:return[2]}}))}))}function bs(t,e,n,r){return us(this,void 0,void 0,(function(){var i;return cs(this,(function(o){switch(o.label){case 0:return r&&r.global?(t(ls.SET,{user_id:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,e];case 2:i=o.sent(),t(ls.CONFIG,i,{update:!0,user_id:n}),o.label=3;case 3:return[2]}}))}))}function ws(t,e,n,r){return us(this,void 0,void 0,(function(){var i,o,a,s,u;return cs(this,(function(c){switch(c.label){case 0:if(!r||!r.global)return[3,1];for(i={},o=0,a=Object.keys(n);o<a.length;o++)s=a[o],i["user_properties."+s]=n[s];return t(ls.SET,i),[2,Promise.resolve()];case 1:return[4,e];case 2:u=c.sent(),t(ls.CONFIG,u,{update:!0,user_properties:n}),c.label=3;case 3:return[2]}}))}))}function _s(t,e){return us(this,void 0,void 0,(function(){var n;return cs(this,(function(r){switch(r.label){case 0:return[4,t];case 1:return n=r.sent(),window["ga-disable-"+n]=!e,[2]}}))}))}
1291/**
1292 * @license
1293 * Copyright 2019 Google LLC
1294 *
1295 * Licensed under the Apache License, Version 2.0 (the "License");
1296 * you may not use this file except in compliance with the License.
1297 * You may obtain a copy of the License at
1298 *
1299 *   http://www.apache.org/licenses/LICENSE-2.0
1300 *
1301 * Unless required by applicable law or agreed to in writing, software
1302 * distributed under the License is distributed on an "AS IS" BASIS,
1303 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1304 * See the License for the specific language governing permissions and
1305 * limitations under the License.
1306 */(function(t){t["EVENT"]="event",t["SET"]="set",t["CONFIG"]="config"})(ls||(ls={})),function(t){t["ADD_SHIPPING_INFO"]="add_shipping_info",t["ADD_PAYMENT_INFO"]="add_payment_info",t["ADD_TO_CART"]="add_to_cart",t["ADD_TO_WISHLIST"]="add_to_wishlist",t["BEGIN_CHECKOUT"]="begin_checkout",t["CHECKOUT_PROGRESS"]="checkout_progress",t["EXCEPTION"]="exception",t["GENERATE_LEAD"]="generate_lead",t["LOGIN"]="login",t["PAGE_VIEW"]="page_view",t["PURCHASE"]="purchase",t["REFUND"]="refund",t["REMOVE_FROM_CART"]="remove_from_cart",t["SCREEN_VIEW"]="screen_view",t["SEARCH"]="search",t["SELECT_CONTENT"]="select_content",t["SELECT_ITEM"]="select_item",t["SELECT_PROMOTION"]="select_promotion",t["SET_CHECKOUT_OPTION"]="set_checkout_option",t["SHARE"]="share",t["SIGN_UP"]="sign_up",t["TIMING_COMPLETE"]="timing_complete",t["VIEW_CART"]="view_cart",t["VIEW_ITEM"]="view_item",t["VIEW_ITEM_LIST"]="view_item_list",t["VIEW_PROMOTION"]="view_promotion",t["VIEW_SEARCH_RESULTS"]="view_search_results"}(fs||(fs={}));var Es,Os=new o["b"]("@firebase/analytics");
1307/**
1308 * @license
1309 * Copyright 2019 Google LLC
1310 *
1311 * Licensed under the Apache License, Version 2.0 (the "License");
1312 * you may not use this file except in compliance with the License.
1313 * You may obtain a copy of the License at
1314 *
1315 *   http://www.apache.org/licenses/LICENSE-2.0
1316 *
1317 * Unless required by applicable law or agreed to in writing, software
1318 * distributed under the License is distributed on an "AS IS" BASIS,
1319 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1320 * See the License for the specific language governing permissions and
1321 * limitations under the License.
1322 */function Is(t,e){var n=document.createElement("script");n.src=gs+"?l="+t+"&id="+e,n.async=!0,document.head.appendChild(n)}function Ts(t){var e=[];return Array.isArray(window[t])?e=window[t]:window[t]=e,e}function Ss(t,e,n,r,i,o){return us(this,void 0,void 0,(function(){var a,s,u,c;return cs(this,(function(l){switch(l.label){case 0:a=r[i],l.label=1;case 1:return l.trys.push([1,7,,8]),a?[4,e[a]]:[3,3];case 2:return l.sent(),[3,6];case 3:return[4,Promise.all(n)];case 4:return s=l.sent(),u=s.find((function(t){return t.measurementId===i})),u?[4,e[u.appId]]:[3,6];case 5:l.sent(),l.label=6;case 6:return[3,8];case 7:return c=l.sent(),Os.error(c),[3,8];case 8:return t(ls.CONFIG,i,o),[2]}}))}))}function ks(t,e,n,r,i){return us(this,void 0,void 0,(function(){var o,a,s,u,c,l,f,h,d;return cs(this,(function(p){switch(p.label){case 0:return p.trys.push([0,4,,5]),o=[],i&&i["send_to"]?(a=i["send_to"],Array.isArray(a)||(a=[a]
1322),[4,Promise.all(n)]):[3,2];case 1:for(s=p.sent(),u=function(t){var n=s.find((function(e){return e.measurementId===t})),r=n&&e[n.appId];if(!r)return o=[],"break";o.push(r)},c=0,l=a;c<l.length;c++)if(f=l[c],h=u(f),"break"===h)break;p.label=2;case 2:return 0===o.length&&(o=Object.values(e)),[4,Promise.all(o)];case 3:return p.sent(),t(ls.EVENT,r,i||{}),[3,5];case 4:return d=p.sent(),Os.error(d),[3,5];case 5:return[2]}}))}))}function Cs(t,e,n,r){function i(i,o,a){return us(this,void 0,void 0,(function(){var s;return cs(this,(function(u){switch(u.label){case 0:return u.trys.push([0,6,,7]),i!==ls.EVENT?[3,2]:[4,ks(t,e,n,o,a)];case 1:return u.sent(),[3,5];case 2:return i!==ls.CONFIG?[3,4]:[4,Ss(t,e,n,r,o,a)];case 3:return u.sent(),[3,5];case 4:t(ls.SET,o),u.label=5;case 5:return[3,7];case 6:return s=u.sent(),Os.error(s),[3,7];case 7:return[2]}}))}))}return i}function xs(t,e,n,r,i){var o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];window[r].push(arguments)};return window[i]&&"function"===typeof window[i]&&(o=window[i]),window[i]=Cs(o,t,e,n),{gtagCore:o,wrappedGtag:window[i]}}function js(){for(var t=window.document.getElementsByTagName("script"),e=0,n=Object.values(t);e<n.length;e++){var r=n[e];if(r.src&&r.src.includes(gs))return r}return null}
1323/**
1324 * @license
1325 * Copyright 2019 Google LLC
1326 *
1327 * Licensed under the Apache License, Version 2.0 (the "License");
1328 * you may not use this file except in compliance with the License.
1329 * You may obtain a copy of the License at
1330 *
1331 *   http://www.apache.org/licenses/LICENSE-2.0
1332 *
1333 * Unless required by applicable law or agreed to in writing, software
1334 * distributed under the License is distributed on an "AS IS" BASIS,
1335 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1336 * See the License for the specific language governing permissions and
1337 * limitations under the License.
1338 */var As=(Es={},Es["already-exists"]="A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.",Es["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",Es["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate: {$reason}",Es["invalid-analytics-context"]="Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",Es["indexeddb-unavailable"]="IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",Es["fetch-throttle"]="The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.",Es["config-fetch-failed"]="Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}",Es["no-api-key"]='The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',Es["no-app-id"]='The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',Es),Ns=new i["b"]("analytics","Analytics",As),Ps=30,Rs=1e3,Ds=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e=Rs),this.throttleMetadata=t,this.intervalMillis=e}return t.prototype.getThrottleMetadata=function(t){return this.throttleMetadata[t]},t.prototype.setThrottleMetadata=function(t,e){this.throttleMetadata[t]=e},t.prototype.deleteThrottleMetadata=function(t){delete this.throttleMetadata[t]},t}(),Ls=new Ds;function Ms(t){return new Headers({Accept:"application/json","x-goog-api-key":t})}function Fs(t){var e;return us(this,void 0,void 0,(function(){var n,r,i,o,a,s,u;return cs(this,(function(c){switch(c.label){case 0:return n=t.appId,r=t.apiKey,i={method:"GET",headers:Ms(r)},o=vs.replace("{app-id}",n),[4,fetch(o,i)];case 1:if(a=c.sent(),200===a.status||304===a.status)return[3,6];s="",c.label=2;case 2:return c.trys.push([2,4,,5]),[4,a.json()];case 3:return u=c.sent(),(null===(e=u.error)||void 0===e?void 0:e.message)&&(s=u.error.message),[3,5];case 4:return c.sent(),[3,5];case 5:throw Ns.create("config-fetch-failed",{httpStatus:a.status,responseMessage:s});case 6:return[2,a.json()]}}))}))}function Us(t,e,n){return void 0===e&&(e=Ls),us(this,void 0,void 0,(function(){var r,i,o,a,s,u,c=this;return cs(this,(function(l){if(r=t.options,i=r.appId,o=r.apiKey,a=r.measurementId,!i)throw Ns.create("no-app-id");if(!o){if(a)return[2,{measurementId:a,appId:i}];throw Ns.create("no-api-key")}return s=e.getThrottleMetadata(i)||{backoffCount:0,throttleEndTimeMillis:Date.now()},u=new Vs,setTimeout((function(){return us(c,void 0,void 0,(function(){return cs(this,(function(t){return u.abort(),[2]}))}
1338))}),void 0!==n?n:ps),[2,qs({appId:i,apiKey:o,measurementId:a},s,u,e)]}))}))}function qs(t,e,n,r){var o=e.throttleEndTimeMillis,a=e.backoffCount;return void 0===r&&(r=Ls),us(this,void 0,void 0,(function(){var e,s,u,c,l,f,h;return cs(this,(function(d){switch(d.label){case 0:e=t.appId,s=t.measurementId,d.label=1;case 1:return d.trys.push([1,3,,4]),[4,$s(n,o)];case 2:return d.sent(),[3,4];case 3:if(u=d.sent(),s)return Os.warn("Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID "+s+' provided in the "measurementId" field in the local Firebase config. ['+u.message+"]"),[2,{appId:e,measurementId:s}];throw u;case 4:return d.trys.push([4,6,,7]),[4,Fs(t)];case 5:return c=d.sent(),r.deleteThrottleMetadata(e),[2,c];case 6:if(l=d.sent(),!Bs(l)){if(r.deleteThrottleMetadata(e),s)return Os.warn("Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID "+s+' provided in the "measurementId" field in the local Firebase config. ['+l.message+"]"),[2,{appId:e,measurementId:s}];throw l}return f=503===Number(l.customData.httpStatus)?Object(i["j"])(a,r.intervalMillis,Ps):Object(i["j"])(a,r.intervalMillis),h={throttleEndTimeMillis:Date.now()+f,backoffCount:a+1},r.setThrottleMetadata(e,h),Os.debug("Calling attemptFetch again in "+f+" millis"),[2,qs(t,h,n,r)];case 7:return[2]}}
1338))}))}function $s(t,e){return new Promise((function(n,r){var i=Math.max(e-Date.now(),0),o=setTimeout(n,i);t.addEventListener((function(){clearTimeout(o),r(Ns.create("fetch-throttle",{throttleEndTimeMillis:e}))}))}))}function Bs(t){if(!(t instanceof i["c"])||!t.customData)return!1;var e=Number(t.customData["httpStatus"]);return 429===e||500===e||503===e||504===e}var Vs=function(){function t(){this.listeners=[]}return t.prototype.addEventListener=function(t){this.listeners.push(t)},t.prototype.abort=function(){this.listeners.forEach((function(t){return t()}))},t}();
1339/**
1340 * @license
1341 * Copyright 2020 Google LLC
1342 *
1343 * Licensed under the Apache License, Version 2.0 (the "License");
1344 * you may not use this file except in compliance with the License.
1345 * You may obtain a copy of the License at
1346 *
1347 *   http://www.apache.org/licenses/LICENSE-2.0
1348 *
1349 * Unless required by applicable law or agreed to in writing, software
1350 * distributed under the License is distributed on an "AS IS" BASIS,
1351 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1352 * See the License for the specific language governing permissions and
1353 * limitations under the License.
1354 */function Ks(){return us(this,void 0,void 0,(function(){var t;return cs(this,(function(e){switch(e.label){case 0:return Object(i["y"])()?[3,1]:(Os.warn(Ns.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),[2,!1]);case 1:return e.trys.push([1,3,,4]),[4,Object(i["P"])()];case 2:return e.sent(),[3,4];case 3:return t=e.sent(),Os.warn(Ns.create("indexeddb-unavailable",{errorInfo:t}).message),[2,!1];case 4:return[2,!0]}}))}))}function Ws(t,e,n,r,i,o){return us(this,void 0,void 0,(function(){var a,s,u,c,l,f,h;return cs(this,(function(d){switch(d.label){case 0:return a=Us(t),a.then((function(e){n[e.measurementId]=e.appId,t.options.measurementId&&e.measurementId!==t.options.measurementId&&Os.warn("The measurement ID in the local Firebase config ("+t.options.measurementId+") does not match the measurement ID fetched from the server ("+e.measurementId+"). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.")})).catch((function(t){return Os.error(t)})),e.push(a),s=Ks().then((function(t){return t?r.getId():void 0})),[4,Promise.all([a,s])];case 1:return u=d.sent(),c=u[0],l=u[1],js()||Is(o,c.measurementId),i("js",new Date),h={},h[ds]="firebase",h.update=!0,f=h,null!=l&&(f[hs]=l),i(ls.CONFIG,c.measurementId,f),[2,c.measurementId]}}))}))}
1355/**
1356 * @license
1357 * Copyright 2019 Google LLC
1358 *
1359 * Licensed under the Apache License, Version 2.0 (the "License");
1360 * you may not use this file except in compliance with the License.
1361 * You may obtain a copy of the License at
1362 *
1363 *   http://www.apache.org/licenses/LICENSE-2.0
1364 *
1365 * Unless required by applicable law or agreed to in writing, software
1366 * distributed under the License is distributed on an "AS IS" BASIS,
1367 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1368 * See the License for the specific language governing permissions and
1369 * limitations under the License.
1370 */var zs,Hs,Gs={},Xs=[],Ys={},Qs="dataLayer",Js="gtag",Zs=!1;function tu(t){if(Zs)throw Ns.create("already-initialized");t.dataLayerName&&(Qs=t.dataLayerName),t.gtagName&&(Js=t.gtagName)}function eu(){var t=[];if(Object(i["u"])()&&t.push("This is a browser extension environment."),Object(i["e"])()||t.push("Cookies are not available."),t.length>0){var e=t.map((function(t,e){return"("+(e+1)+") "+t})).join(" "),n=Ns.create("invalid-analytics-context",{errorInfo:e});Os.warn(n.message)}}function nu(t,e){eu();var n=t.options.appId;if(!n)throw Ns.create("no-app-id");if(!t.options.apiKey){if(!t.options.measurementId)throw Ns.create("no-api-key");Os.warn('The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID '+t.options.measurementId+' provided in the "measurementId" field in the local Firebase config.')}if(null!=Gs[n])throw Ns.create("already-exists",{id:n});if(!Zs){Ts(Qs);var r=xs(Gs,Xs,Ys,Qs,Js),i=r.wrappedGtag,o=r.gtagCore;Hs=i,zs=o,Zs=!0}Gs[n]=Ws(t,Xs,Ys,e,zs,Qs);var a={app:t,logEvent:function(t,e,r){ms(Hs,Gs[n],t,e,r).catch((function(t){return Os.error(t)}))},setCurrentScreen:function(t,e){ys(Hs,Gs[n],t,e).catch((function(t){return Os.error(t)}))},setUserId:function(t,e){bs(Hs,Gs[n],t,e).catch((function(t){return Os.error(t)}))},setUserProperties:function(t,e){ws(Hs,Gs[n],t,e).catch((function(t){return Os.error(t)}))},setAnalyticsCollectionEnabled:function(t){_s(Gs[n],t).catch((function(t){return Os.error(t)}))},INTERNAL:{delete:function(){return delete Gs[n],Promise.resolve()}}};return a}var ru="@firebase/analytics",iu="0.6.10",ou="analytics";function au(t){function e(t){try{var e=t.getProvider(ou).getImmediate();return{logEvent:e.logEvent}}catch(n){throw Ns.create("interop-component-reg-failed",{reason:n})}}t.INTERNAL.registerComponent(new s["a"](ou,(function(t){var e=t.getProvider("app").getImmediate(),n=t.getProvider("installations").getImmediate();return nu(e,n)}),"PUBLIC").setServiceProps({settings:tu,EventName:fs,isSupported:su})),t.INTERNAL.registerComponent(new s["a"]("analytics-internal",e,"PRIVATE")),t.registerVersion(ru,iu)}function su(){return us(this,void 0,void 0,(function(){var t;return cs(this,(function(e){switch(e.label){case 0:if(Object(i["u"])())return[2,!1];if(!Object(i["e"])())return[2,!1];if(!Object(i["y"])())return[2,!1];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Object(i["P"])()];case 2:return t=e.sent(),[2,t];case 3:return e.sent(),[2,!1];case 4:return[2]}}
1370))}))}
1371/*! *****************************************************************************
1372Copyright (c) Microsoft Corporation.
1373
1374Permission to use, copy, modify, and/or distribute this software for any
1375purpose with or without fee is hereby granted.
1376
1377THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1378REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1379AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1380INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1381LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1382OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1383PERFORMANCE OF THIS SOFTWARE.
1384***************************************************************************** */au(r["a"]);var uu=function(){return uu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},uu.apply(this,arguments)};function cu(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function lu(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;Object.create;
1385/**
1386 * @license
1387 * Copyright 2019 Google LLC
1388 *
1389 * Licensed under the Apache License, Version 2.0 (the "License");
1390 * you may not use this file except in compliance with the License.
1391 * You may obtain a copy of the License at
1392 *
1393 *   http://www.apache.org/licenses/LICENSE-2.0
1394 *
1395 * Unless required by applicable law or agreed to in writing, software
1396 * distributed under the License is distributed on an "AS IS" BASIS,
1397 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1398 * See the License for the specific language governing permissions and
1399 * limitations under the License.
1400 */
1401var fu,hu=function(){function t(t,e,n,r){this.client=t,this.storage=e,this.storageCache=n,this.logger=r}return t.prototype.isCachedDataFresh=function(t,e){if(!e)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;var n=Date.now()-e,r=n<=t;return this.logger.debug("Config fetch cache check. Cache age millis: "+n+". Cache max age millis (minimumFetchIntervalMillis setting): "+t+". Is cache hit: "+r+"."),r},t.prototype.fetch=function(t){return cu(this,void 0,void 0,(function(){var e,n,r,i,o;return lu(this,(function(a){switch(a.label){case 0:return[4,Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()])];case 1:return e=a.sent(),n=e[0],r=e[1],r&&this.isCachedDataFresh(t.cacheMaxAgeMillis,n)?[2,r]:(t.eTag=r&&r.eTag,[4,this.client.fetch(t)]);case 2:return i=a.sent(),o=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())],200===i.status&&o.push(this.storage.setLastSuccessfulFetchResponse(i)),[4,Promise.all(o)];case 3:return a.sent(),[2,i]}}))}))},t}(),du=(fu={},fu["registration-window"]="Undefined window object. This SDK only supports usage in a browser environment.",fu["registration-project-id"]="Undefined project identifier. Check Firebase app initialization.",fu["registration-api-key"]="Undefined API key. Check Firebase app initialization.",fu["registration-app-id"]="Undefined app identifier. Check Firebase app initialization.",fu["storage-open"]="Error thrown when opening storage. Original error: {$originalErrorMessage}.",fu["storage-get"]="Error thrown when reading from storage. Original error: {$originalErrorMessage}.",fu["storage-set"]="Error thrown when writing to storage. Original error: {$originalErrorMessage}.",fu["storage-delete"]="Error thrown when deleting from storage. Original error: {$originalErrorMessage}.",fu["fetch-client-network"]="Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",fu["fetch-timeout"]='The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',fu["fetch-throttle"]='The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',fu["fetch-client-parse"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",fu["fetch-status"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",fu),pu=new i["b"]("remoteconfig","Remote Config",du);
1402/**
1403 * @license
1404 * Copyright 2019 Google LLC
1405 *
1406 * Licensed under the Apache License, Version 2.0 (the "License");
1407 * you may not use this file except in compliance with the License.
1408 * You may obtain a copy of the License at
1409 *
1410 *   http://www.apache.org/licenses/LICENSE-2.0
1411 *
1412 * Unless required by applicable law or agreed to in writing, software
1413 * distributed under the License is distributed on an "AS IS" BASIS,
1414 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1415 * See the License for the specific language governing permissions and
1416 * limitations under the License.
1417 */function vu(t,e){return t instanceof i["c"]&&-1!==t.code.indexOf(e)}
1418/**
1419 * @license
1420 * Copyright 2019 Google LLC
1421 *
1422 * Licensed under the Apache License, Version 2.0 (the "License");
1423 * you may not use this file except in compliance with the License.
1424 * You may obtain a copy of the License at
1425 *
1426 *   http://www.apache.org/licenses/LICENSE-2.0
1427 *
1428 * Unless required by applicable law or agreed to in writing, software
1429 * distributed under the License is distributed on an "AS IS" BASIS,
1430 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1431 * See the License for the specific language governing permissions and
1432 * limitations under the License.
1433 */function gu(t){return void 0===t&&(t=navigator),t.languages&&t.languages[0]||t.language}
1434/**
1435 * @license
1436 * Copyright 2019 Google LLC
1437 *
1438 * Licensed under the Apache License, Version 2.0 (the "License");
1439 * you may not use this file except in compliance with the License.
1440 * You may obtain a copy of the License at
1441 *
1442 *   http://www.apache.org/licenses/LICENSE-2.0
1443 *
1444 * Unless required by applicable law or agreed to in writing, software
1445 * distributed under the License is distributed on an "AS IS" BASIS,
1446 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1447 * See the License for the specific language governing permissions and
1448 * limitations under the License.
1449 */var mu=function(){function t(t,e,n,r,i,o){this.firebaseInstallations=t,this.sdkVersion=e,this.namespace=n,this.projectId=r,this.apiKey=i,this.appId=o}return t.prototype.fetch=function(t){return cu(this,void 0,void 0,(function(){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,v,g,m,y,b;return lu(this,(function(w){switch(w.label){case 0:return[4,Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()])];case 1:e=w.sent(),n=e[0],r=e[1],i=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",o=i+"/v1/projects/"+this.projectId+"/namespaces/"+this.namespace+":fetch?key="+this.apiKey,a={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":t.eTag||"*"},s={sdk_version:this.sdkVersion,app_instance_id:n,app_instance_id_token:r,app_id:this.appId,language_code:gu()},u={method:"POST",headers:a,body:JSON.stringify(s)},c=fetch(o,u),l=new Promise((function(e,n){t.signal.addEventListener((function(){var t=new Error("The operation was aborted.");t.name="AbortError",n(t)}))})),w.label=2;case 2:return w.trys.push([2,5,,6]),[4,Promise.race([c,l])];case 3:return w.sent(),[4,c];case 4:return f=w.sent(),[3,6];case 5:throw h=w.sent(),d="fetch-client-network","AbortError"===h.name&&(d="fetch-timeout"),pu.create(d,{originalErrorMessage:h.message});case 6:if(p=f.status,v=f.headers.get("ETag")||void 0,200!==f.status)return[3,11];y=void 0,w.label=7;case 7:return w.trys.push([7,9,,10]),[4,f.json()];case 8:return y=w.sent(),[3,10];case 9:throw b=w.sent(),pu.create("fetch-client-parse",{originalErrorMessage:b.message});case 10:g=y["entries"],m=y["state"],w.label=11;case 11:if("INSTANCE_STATE_UNSPECIFIED"===m?p=500:"NO_CHANGE"===m?p=304:"NO_TEMPLATE"!==m&&"EMPTY_CONFIG"!==m||(g={}),304!==p&&200!==p)throw pu.create("fetch-status",{httpStatus:p});return[2,{status:p,eTag:v,config:g}]}}))}))},t}(),yu=function(){function t(){this.listeners=[]}return t.prototype.addEventListener=function(t){this.listeners.push(t)},t.prototype.abort=function(){this.listeners.forEach((function(t){return t()}))},t}(),bu=!1,wu="",_u=0,Eu=["1","true","t","yes","y","on"],Ou=function(){function t(t,e){void 0===e&&(e=wu),this._source=t,this._value=e}return t.prototype.asString=function(){return this._value},t.prototype.asBoolean=function(){return"static"===this._source?bu:Eu.indexOf(this._value.toLowerCase())>=0},t.prototype.asNumber=function(){if("static"===this._source)return _u;var t=Number(this._value);return isNaN(t)&&(t=_u),t},t.prototype.getSource=function(){return this._source},t}(),Iu=6e4,Tu=432e5,Su=function(){function t(t,e,n,r,i){this.app=t,this._client=e,this._storageCache=n,this._storage=r,this._logger=i,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:Iu,minimumFetchIntervalMillis:Tu},this.defaultConfig={}}return t.prototype.setLogLevel=function(t){switch(t){case"debug":this._logger.logLevel=o["a"].DEBUG;break;case"silent":this._logger.logLevel=o["a"].SILENT;break;default:this._logger.logLevel=o["a"].ERROR}},Object.defineProperty(t.prototype,"fetchTimeMillis",{get:function(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}
1449,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastFetchStatus",{get:function(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"},enumerable:!1,configurable:!0}),t.prototype.activate=function(){return cu(this,void 0,void 0,(function(){var t,e,n;return lu(this,(function(r){switch(r.label){case 0:return[4,Promise.all([this._storage.getLastSuccessfulFetchResponse(),this._storage.getActiveConfigEtag()])];case 1:return t=r.sent(),e=t[0],n=t[1],e&&e.config&&e.eTag&&e.eTag!==n?[4,Promise.all([this._storageCache.setActiveConfig(e.config),this._storage.setActiveConfigEtag(e.eTag)])]:[2,!1];case 2:return r.sent(),[2,!0]}}))}))},t.prototype.ensureInitialized=function(){var t=this;return this._initializePromise||(this._initializePromise=this._storageCache.loadFromStorage().then((function(){t._isInitializationComplete=!0}))),this._initializePromise},t.prototype.fetch=function(){return cu(this,void 0,void 0,(function(){var t,e,n,r=this;return lu(this,(function(i){switch(i.label){case 0:t=new yu,setTimeout((function(){return cu(r,void 0,void 0,(function(){return lu(this,(function(e){return t.abort(),[2]}))}))}),this.settings.fetchTimeoutMillis),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this._client.fetch({cacheMaxAgeMillis:this.settings.minimumFetchIntervalMillis,signal:t})];case 2:return i.sent(),[4,this._storageCache.setLastFetchStatus("success")];case 3:return i.sent(),[3,6];case 4:return e=i.sent(),n=vu(e,"fetch-throttle")?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(n)];case 5:throw i.sent(),e;case 6:return[2]}}
1449))}))},t.prototype.fetchAndActivate=function(){return cu(this,void 0,void 0,(function(){return lu(this,(function(t){switch(t.label){case 0:return[4,this.fetch()];case 1:return t.sent(),[2,this.activate()]}}))}))},t.prototype.getAll=function(){var t=this;return ku(this._storageCache.getActiveConfig(),this.defaultConfig).reduce((function(e,n){return e[n]=t.getValue(n),e}),{})},t.prototype.getBoolean=function(t){return this.getValue(t).asBoolean()},t.prototype.getNumber=function(t){return this.getValue(t).asNumber()},t.prototype.getString=function(t){return this.getValue(t).asString()},t.prototype.getValue=function(t){this._isInitializationComplete||this._logger.debug('A value was requested for key "'+t+'" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.');var e=this._storageCache.getActiveConfig();return e&&void 0!==e[t]?new Ou("remote",e[t]):this.defaultConfig&&void 0!==this.defaultConfig[t]?new Ou("default",String(this.defaultConfig[t])):(this._logger.debug('Returning static value for key "'+t+'". Define a default or remote value if this is unintentional.'),new Ou("static"))},t}();
1450/**
1451 * @license
1452 * Copyright 2019 Google LLC
1453 *
1454 * Licensed under the Apache License, Version 2.0 (the "License");
1455 * you may not use this file except in compliance with the License.
1456 * You may obtain a copy of the License at
1457 *
1458 *   http://www.apache.org/licenses/LICENSE-2.0
1459 *
1460 * Unless required by applicable law or agreed to in writing, software
1461 * distributed under the License is distributed on an "AS IS" BASIS,
1462 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1463 * See the License for the specific language governing permissions and
1464 * limitations under the License.
1465 */function ku(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(uu(uu({},t),e))}
1466/**
1467 * @license
1468 * Copyright 2019 Google LLC
1469 *
1470 * Licensed under the Apache License, Version 2.0 (the "License");
1471 * you may not use this file except in compliance with the License.
1472 * You may obtain a copy of the License at
1473 *
1474 *   http://www.apache.org/licenses/LICENSE-2.0
1475 *
1476 * Unless required by applicable law or agreed to in writing, software
1477 * distributed under the License is distributed on an "AS IS" BASIS,
1478 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1479 * See the License for the specific language governing permissions and
1480 * limitations under the License.
1481 */function Cu(t,e){var n=t.target.error||void 0;return pu.create(e,{originalErrorMessage:n&&n.message})}var xu="app_namespace_store",ju="firebase_remote_config",Au=1;function Nu(){return new Promise((function(t,e){var n=indexedDB.open(ju,Au);n.onerror=function(t){e(Cu(t,"storage-open"))},n.onsuccess=function(e){t(e.target.result)},n.onupgradeneeded=function(t){var e=t.target.result;switch(t.oldVersion){case 0:e.createObjectStore(xu,{keyPath:"compositeKey"})}}}))}var Pu=function(){function t(t,e,n,r){void 0===r&&(r=Nu()),this.appId=t,this.appName=e,this.namespace=n,this.openDbPromise=r}return t.prototype.getLastFetchStatus=function(){return this.get("last_fetch_status")},t.prototype.setLastFetchStatus=function(t){return this.set("last_fetch_status",t)},t.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.get("last_successful_fetch_timestamp_millis")},t.prototype.setLastSuccessfulFetchTimestampMillis=function(t){return this.set("last_successful_fetch_timestamp_millis",t)},t.prototype.getLastSuccessfulFetchResponse=function(){return this.get("last_successful_fetch_response")},t.prototype.setLastSuccessfulFetchResponse=function(t){return this.set("last_successful_fetch_response",t)},t.prototype.getActiveConfig=function(){return this.get("active_config")},t.prototype.setActiveConfig=function(t){return this.set("active_config",t)},t.prototype.getActiveConfigEtag=function(){return this.get("active_config_etag")},t.prototype.setActiveConfigEtag=function(t){return this.set("active_config_etag",t)},t.prototype.getThrottleMetadata=function(){return this.get("throttle_metadata")},t.prototype.setThrottleMetadata=function(t){return this.set("throttle_metadata",t)},t.prototype.deleteThrottleMetadata=function(){return this.delete("throttle_metadata")},t.prototype.get=function(t){return cu(this,void 0,void 0,(function(){var e,n=this;return lu(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return e=r.sent(),[2,new Promise((function(r,i){var o=e.transaction([xu],"readonly"),a=o.objectStore(xu),s=n.createCompositeKey(t);try{var u=a.get(s);u.onerror=function(t){i(Cu(t,"storage-get"))},u.onsuccess=function(t){var e=t.target.result;r(e?e.value:void 0)}}catch(c){i(pu.create("storage-get",{originalErrorMessage:c&&c.message}))}}))]}}))}))},t.prototype.set=function(t,e){return cu(this,void 0,void 0,(function(){var n,r=this;return lu(this,(function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return n=i.sent(),[2,new Promise((function(i,o){var a=n.transaction([xu],"readwrite"),s=a.objectStore(xu),u=r.createCompositeKey(t);try{var c=s.put({compositeKey:u,value:e});c.onerror=function(t){o(Cu(t,"storage-set"))},c.onsuccess=function(){i()}}catch(l){o(pu.create("storage-set",{originalErrorMessage:l&&l.message}))}}))]}}))}))},t.prototype.delete=function(t){return cu(this,void 0,void 0,(function(){var e,n=this;return lu(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return e=r.sent(),[2,new Promise((function(r,i){var o=e.transaction([xu],"readwrite"),a=o.objectStore(xu),s=n.createCompositeKey(t);try{var u=a.delete(s);u.onerror=function(t){i(Cu(t,"storage-delete"))},u.onsuccess=function(){r()}}catch(c){i(pu.create("storage-delete",{originalErrorMessage:c&&c.message}))}}))]}}))}))},t.prototype.createCompositeKey=function(t){return[this.appId,this.appName,this.namespace,t].join()},t}(),Ru=function(){function t(t){this.storage=t}return t.prototype.getLastFetchStatus=function(){return this.lastFetchStatus},t.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.lastSuccessfulFetchTimestampMillis},t.prototype.getActiveConfig=function(){return this.activeConfig},t.prototype.loadFromStorage=function(){return cu(this,void 0,void 0,(function(){var t,e,n,r,i,o;return lu(this,(function(a){switch(a.label){case 0:return t=this.storage.getLastFetchStatus(),e=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),[4,t];case 1:return r=a.sent(),r&&(this.lastFetchStatus=r),[4,e];case 2:return i=a.sent(),i&&(this.lastSuccessfulFetchTimestampMillis=i),[4,n];case 3:return o=a.sent(),o&&(this.activeConfig=o),[2]}}))}))},t.prototype.setLastFetchStatus=function(t){return this.lastFetchStatus=t,this.storage.setLastFetchStatus(t)},t.prototype.setLastSuccessfulFetchTimestampMillis=function(t){return this.lastSuccessfulFetchTimestampMillis=t,this.storage.setLastSuccessfulFetchTimestampMillis(t)},t.prototype.setActiveConfig=function(t){return this.activeConfig=t,this.storage.setActiveConfig(t)},t}();
1482/**
1483 * @license
1484 * Copyright 2019 Google LLC
1485 *
1486 * Licensed under the Apache License, Version 2.0 (the "License");
1487 * you may not use this file except in compliance with the License.
1488 * You may obtain a copy of the License at
1489 *
1490 *   http://www.apache.org/licenses/LICENSE-2.0
1491 *
1492 * Unless required by applicable law or agreed to in writing, software
1493 * distributed under the License is distributed on an "AS IS" BASIS,
1494 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1495 * See the License for the specific language governing permissions and
1496 * limitations under the License.
1497 */
1498/**
1499 * @license
1500 * Copyright 2019 Google LLC
1501 *
1502 * Licensed under the Apache License, Version 2.0 (the "License");
1503 * you may not use this file except in compliance with the License.
1504 * You may obtain a copy of the License at
1505 *
1506 *   http://www.apache.org/licenses/LICENSE-2.0
1507 *
1508 * Unless required by applicable law or agreed to in writing, software
1509 * distributed under the License is distributed on an "AS IS" BASIS,
1510 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1511 * See the License for the specific language governing permissions and
1512 * limitations under the License.
1513 */
1514function Du(t,e){return new Promise((function(n,r){var i=Math.max(e-Date.now(),0),o=setTimeout(n,i);t.addEventListener((function(){clearTimeout(o),r(pu.create("fetch-throttle",{throttleEndTimeMillis:e}))}))}))}function Lu(t){if(!(t instanceof i["c"])||!t.customData)return!1;var e=Number(t.customData["httpStatus"]);return 429===e||500===e||503===e||504===e}var Mu=function(){function t(t,e){this.client=t,this.storage=e}return t.prototype.fetch=function(t){return cu(this,void 0,void 0,(function(){var e;return lu(this,(function(n){switch(n.label){case 0:return[4,this.storage.getThrottleMetadata()];case 1:return e=n.sent()||{backoffCount:0,throttleEndTimeMillis:Date.now()},[2,this.attemptFetch(t,e)]}}))}))},t.prototype.attemptFetch=function(t,e){var n=e.throttleEndTimeMillis,r=e.backoffCount;return cu(this,void 0,void 0,(function(){var e,o,a;return lu(this,(function(s){switch(s.label){case 0:return[4,Du(t.signal,n)];case 1:s.sent(),s.label=2;case 2:return s.trys.push([2,5,,7]),[4,this.client.fetch(t)];case 3:return e=s.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return s.sent(),[2,e];case 5:if(o=s.sent(),!Lu(o))throw o;return a={throttleEndTimeMillis:Date.now()+Object(i["j"])(r),backoffCount:r+1},[4,this.storage.setThrottleMetadata(a)];case 6:return s.sent(),[2,this.attemptFetch(t,a)];case 7:return[2]}}
1514))}))},t}(),Fu="@firebase/remote-config",Uu="0.1.37";
1515/**
1516 * @license
1517 * Copyright 2019 Google LLC
1518 *
1519 * Licensed under the Apache License, Version 2.0 (the "License");
1520 * you may not use this file except in compliance with the License.
1521 * You may obtain a copy of the License at
1522 *
1523 *   http://www.apache.org/licenses/LICENSE-2.0
1524 *
1525 * Unless required by applicable law or agreed to in writing, software
1526 * distributed under the License is distributed on an "AS IS" BASIS,
1527 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1528 * See the License for the specific language governing permissions and
1529 * limitations under the License.
1530 */
1531function qu(t){function e(e,n){var r=n.instanceIdentifier,i=e.getProvider("app").getImmediate(),a=e.getProvider("installations").getImmediate();if("undefined"===typeof window)throw pu.create("registration-window");var s=i.options,u=s.projectId,c=s.apiKey,l=s.appId;if(!u)throw pu.create("registration-project-id");if(!c)throw pu.create("registration-api-key");if(!l)throw pu.create("registration-app-id");r=r||"firebase";var f=new Pu(l,i.name,r),h=new Ru(f),d=new o["b"](Fu);d.logLevel=o["a"].ERROR;var p=new mu(a,t.SDK_VERSION,r,u,c,l),v=new Mu(p,f),g=new hu(v,f,h,d),m=new Su(i,g,h,f,d);return m.ensureInitialized(),m}t.INTERNAL.registerComponent(new s["a"]("remoteConfig",e,"PUBLIC").setMultipleInstances(!0)),t.registerVersion(Fu,Uu)}qu(r["a"]);var $u="firebase",Bu="8.5.0";
1532/**
1533 * @license
1534 * Copyright 2018 Google LLC
1535 *
1536 * Licensed under the Apache License, Version 2.0 (the "License");
1537 * you may not use this file except in compliance with the License.
1538 * You may obtain a copy of the License at
1539 *
1540 *   http://www.apache.org/licenses/LICENSE-2.0
1541 *
1542 * Unless required by applicable law or agreed to in writing, software
1543 * distributed under the License is distributed on an "AS IS" BASIS,
1544 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1545 * See the License for the specific language governing permissions and
1546 * limitations under the License.
1547 */
1548r["a"].registerVersion($u,Bu,"app");var Vu="firebase",Ku="8.5.0";
1549/**
1550 * @license
1551 * Copyright 2017 Google LLC
1552 *
1553 * Licensed under the Apache License, Version 2.0 (the "License");
1554 * you may not use this file except in compliance with the License.
1555 * You may obtain a copy of the License at
1556 *
1557 *   http://www.apache.org/licenses/LICENSE-2.0
1558 *
1559 * Unless required by applicable law or agreed to in writing, software
1560 * distributed under the License is distributed on an "AS IS" BASIS,
1561 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1562 * See the License for the specific language governing permissions and
1563 * limitations under the License.
1564 */
1565console.warn("\nIt looks like you're using the development build of the Firebase JS SDK.\nWhen deploying Firebase apps to production, it is advisable to only import\nthe individual SDK components you intend to use.\n\nFor the module builds, these are available in the following manner\n(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):\n\nCommonJS Modules:\nconst firebase = require('firebase/app');\nrequire('firebase/<PACKAGE>');\n\nES Modules:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n\nTypescript:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n"),r["a"].registerVersion(Vu,Ku)},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},2909:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("6b75");function i(t){if(Array.isArray(t))return Object(r["a"])(t)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630");function o(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}var a=n("06c5");function s(){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 u(t){return i(t)||o(t)||Object(a["a"])(t)||s()}},"2a62":function(t,e,n){var r=n("825a");t.exports=function(t){var e=t["return"];if(void 0!==e)return r(e.call(t)).value}},"2cf4":function(t,e,n){var r,i,o,a=n("da84"),s=n("d039"),u=n("0366"),c=n("1be4"),l=n("cc12"),f=n("1cdc"),h=n("605d"),d=a.location,p=a.setImmediate,v=a.clearImmediate,g=a.process,m=a.MessageChannel,y=a.Dispatch,b=0,w={},_="onreadystatechange",E=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},O=function(t){return function(){E(t)}},I=function(t){E(t.data)},T=function(t){a.postMessage(t+"",d.protocol+"//"+d.host)};p&&v||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return w[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},v=function(t){delete w[t]},h?r=function(t){g.nextTick(O(t))}:y&&y.now?r=function(t){y.now(O(t))}:m&&!f?(i=new m,o=i.port2,i.port1.onmessage=I,r=u(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&d&&"file:"!==d.protocol&&!s(T)?(r=T,a.addEventListener("message",I,!1)):r=_ in l("script")?function(t){c.appendChild(l("script"))[_]=function(){c.removeChild(this),E(t)}}:function(t){setTimeout(O(t),0)}),t.exports={set:p,clear:v}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,u=s&&s.versions,c=u&&u.v8;c?(r=c.split("."),i=r[0]<4?1:r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"2d22":function(t,e,n){},"2d83":function(t,e,n){"use strict";var r=n("387f");t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},"2e67":function(t,e,n){"use strict";
1565t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f12":function(t,e,n){"use strict";n.r(e),n.d(e,"iosTransitionAnimation",(function(){return d})),n.d(e,"shadow",(function(){return s}));var r=n("ef7a"),i=n("9897"),o=(n("61cf"),n("6d28"),540),a=function(t){return document.querySelector(t+".ion-cloned-element")},s=function(t){return t.shadowRoot||t},u=function(t){var e="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=e){var r=e.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=r?r.querySelector(n):null}return t.querySelector(n)},c=function(t,e){var n="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs"),r=[];if(null!=n){var i=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=i&&(r=i.querySelectorAll("ion-buttons"))}else r=t.querySelectorAll("ion-buttons");for(var o=0,a=r;o<a.length;o++){var s=a[o],u=s.closest("ion-header"),c=u&&!u.classList.contains("header-collapse-condense-inactive"),l=s.querySelector("ion-back-button"),f=s.classList.contains("buttons-collapse"),h="start"===s.slot||""===s.slot;if(null!==l&&h&&(f&&c&&e||!f))return l}return null},l=function(t,e,n,r,i){var o=c(r,n),a=u(i),s=u(r),l=c(i,n),d=null!==o&&null!==a&&!n,p=null!==s&&null!==l&&n;if(d){var v=a.getBoundingClientRect(),g=o.getBoundingClientRect();h(t,e,n,a,v,g),f(t,e,n,o,v,g)}else if(p){var m=s.getBoundingClientRect(),y=l.getBoundingClientRect();h(t,e,n,s,m,y),f(t,e,n,l,m,y)}return{forward:d,backward:p}},f=function(t,e,n,i,o,u){var c=e?"calc(100% - "+(u.right+4)+"px)":u.left-4+"px",l=e?"7px":"-7px",f=e?"-4px":"4px",h=e?"-4px":"4px",d=e?"right":"left",p=e?"left":"right",v=[{offset:0,opacity:0,transform:"translate3d("+l+", "+(o.top-40)+"px, 0) scale(2.1)"},{offset:1,opacity:1,transform:"translate3d("+f+", "+(u.top-46)+"px, 0) scale(1)"}],g=[{offset:0,opacity:1,transform:"translate3d("+f+", "+(u.top-46)+"px, 0) scale(1)"},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d("+l+", "+(o.top-40)+"px, 0) scale(2.1)"}],m=n?g:v,y=[{offset:0,opacity:0,transform:"translate3d("+h+", "+(u.top-41)+"px, 0) scale(0.6)"},{offset:1,opacity:1,transform:"translate3d("+h+", "+(u.top-46)+"px, 0) scale(1)"}],b=[{offset:0,opacity:1,transform:"translate3d("+h+", "+(u.top-46)+"px, 0) scale(1)"},{offset:.2,opacity:0,transform:"translate3d("+h+", "+(u.top-41)+"px, 0) scale(0.6)"},{offset:1,opacity:0,transform:"translate3d("+h+", "+(u.top-41)+"px, 0) scale(0.6)"}],w=n?b:y,_=Object(r["a"])(),E=Object(r["a"])(),O=a("ion-back-button"),I=s(O).querySelector(".button-text"),T=s(O).querySelector("ion-icon");O.text=i.text,O.mode=i.mode,O.icon=i.icon,O.color=i.color,O.disabled=i.disabled,O.style.setProperty("display","block"),O.style.setProperty("position","fixed"),E.addElement(T),_.addElement(I),_.beforeStyles({"transform-origin":d+" center"}).beforeAddWrite((function(){i.style.setProperty("display","none"),O.style.setProperty(d,c)})).afterAddWrite((function(){i.style.setProperty("display",""),O.style.setProperty("display","none"),O.style.removeProperty(d)})).keyframes(m),E.beforeStyles({"transform-origin":p+" center"}).keyframes(w),t.addAnimation([_,E])},h=function(t,e,n,i,o,s){var u,c=e?"calc(100% - "+o.right+"px)":o.left+"px",l=e?"-18px":"18px",f=e?"right":"left",h=[{offset:0,opacity:0,transform:"translate3d("+l+", "+(s.top-4)+"px, 0) scale(0.49)"},{offset:.1,opacity:0},{offset:1,opacity:1,transform:"translate3d(0, "+(o.top-2)+"px, 0) scale(1)"}],d=[{offset:0,opacity:.99,transform:"translate3d(0, "+(o.top-2)+"px, 0) scale(1)"},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d("+l+", "+(s.top-4)+"px, 0) scale(0.5)"}],p=n?h:d,v=a("ion-title"),g=Object(r["a"])();v.innerText=i.innerText,v.size=i.size,v.color=i.color,g.addElement(v),g.beforeStyles((u={"transform-origin":f+" center",height:"46px",display:"",position:"relative"},u[f]=c,u)).beforeAddWrite((function(){i.style.setProperty("display","none")})).afterAddWrite((function(){i.style.setProperty("display",""),v.style.setProperty("display","none")})).keyframes(p),t.addAnimation(g)},d=function(t,e){try{var n="cubic-bezier(0.32,0.72,0,1)",a="opacity",u="transform",c="0%",f=.8,h="rtl"===t.ownerDocument.dir,d=h?"-99.5%":"99.5%",p=h?"33%":"-33%",v=e.enteringEl,g=e.leavingEl,m="back"===e.direction,y=v.querySelector(":scope > ion-content"),b=v.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),w=v.querySelectorAll(":scope > ion-header > ion-toolbar"),_=Object(r["a"])(),E=Object(r["a"])();if(_.addElement(v).duration(e.duration||o).easing(e.easing||n).fill("both").beforeRemoveClass("ion-page-invisible"),g&&t){var O=Object(r["a"])();O.addElement(t),_.addAnimation(O)}if(y||0!==w.length||0!==b.length?(E.addElement(y),E.addElement(b)):E.addElement(v.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),_.addAnimation(E),m?E.beforeClearStyles([a]).fromTo("transform","translateX("+p+")","translateX("+c+")").fromTo(a,f,1):E.beforeClearStyles([a]).fromTo("transform","translateX("+d+")","translateX("+c+")"),y){var I=s(y).querySelector(".transition-effect");if(I){var T=I.querySelector(".transition-cover"),S=I.querySelector(".transition-shadow"),k=Object(r["a"])(),C=Object(r["a"])(),x=Object(r["a"])();k.addElement(I).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),C.addElement(T).beforeClearStyles([a]).fromTo(a,0,.1),x.addElement(S).beforeClearStyles([a]).fromTo(a,.03,.7),k.addAnimation([C,x]),E.addAnimation([k])}}var j=v.querySelector("ion-header.header-collapse-condense"),A=l(_,h,m,v,g),N=A.forward,P=A.backward;if(w.forEach((function(t){var e=Object(r["a"])();e.addElement(t),_.addAnimation(e);var n=Object(r["a"])();n.addElement(t.querySelector("ion-title"));var i,o=Object(r["a"])(),u=Array.from(t.querySelectorAll("ion-buttons,[menuToggle]")),l=t.closest("ion-header"),f=l&&l.classList.contains("header-collapse-condense-inactive");i=m?u.filter((function(t){var e=t.classList.contains("buttons-collapse");return e&&!f||!e})):u.filter((function(t){return!t.classList.contains("buttons-collapse")})),o.addElement(i);var v=Object(r["a"])();v.addElement(t.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));var g=Object(r["a"])();g.addElement(s(t).querySelector(".toolbar-background"));var y=Object(r["a"])(),b=t.querySelector("ion-back-button");if(b&&y.addElement(b),e.addAnimation([n,o,v,g,y]),o.fromTo(a,.01,1),v.fromTo(a,.01,1),m)f||n.fromTo("transform","translateX("+p+")","translateX("+c+")").fromTo(a,.01,1),v.fromTo("transform","translateX("+p+")","translateX("+c+")"),y.fromTo(a,.01,1);else{j||n.fromTo("transform","translateX("+d+")","translateX("+c+")").fromTo(a,.01,1),v.fromTo("transform","translateX("+d+")","translateX("+c+")"),g.beforeClearStyles([a,"transform"]);var w=null===l||void 0===l?void 0:l.translucent;if(w?g.fromTo("transform",h?"translateX(-100%)":"translateX(100%)","translateX(0px)"):g.fromTo(a,.01,"var(--opacity)"),N||y.fromTo(a,.01,1),b&&!N){var E=Object(r["a"])();E.addElement(s(b).querySelector(".button-text")).fromTo("transform",h?"translateX(-100px)":"translateX(100px)","translateX(0px)"),e.addAnimation(E)}}})),g){var R=Object(r["a"])(),D=g.querySelector(":scope > ion-content"),L=g.querySelectorAll(":scope > ion-header > ion-toolbar"),M=g.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(D||0!==L.length||0!==M.length?(R.addElement(D),R.addElement(M)):R.addElement(g.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),_.addAnimation(R),m){R.beforeClearStyles([a]).fromTo("transform","translateX("+c+")",h?"translateX(-100%)":"translateX(100%)");var F=Object(i["g"])(g);_.afterAddWrite((function(){"normal"===_.getDirection()&&F.style.setProperty("display","none")}))}else R.fromTo("transform","translateX("+c+")","translateX("+p+")").fromTo(a,1,f);if(D){var U=s(D).querySelector(".transition-effect");if(U){var q=U.querySelector(".transition-cover"),$=U.querySelector(".transition-shadow"),B=Object(r["a"])(),V=Object(r["a"])(),K=Object(r["a"])();B.addElement(U).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),V.addElement(q).beforeClearStyles([a]).fromTo(a,.1,0),K.addElement($).beforeClearStyles([a]).fromTo(a,.7,.03),B.addAnimation([V,K]),R.addAnimation([B])}}L.forEach((function(t){var e=Object(r["a"])();e.addElement(t);var n=Object(r["a"])();n.addElement(t.querySelector("ion-title"));var i=Object(r["a"])(),o=t.querySelectorAll("ion-buttons,[menuToggle]"),l=t.closest("ion-header"),f=l&&l.classList.contains("header-collapse-condense-inactive"),d=Array.from(o).filter((function(t){var e=t.classList.contains("buttons-collapse");return e&&!f||!e}));i.addElement(d);var v=Object(r["a"])(),g=t.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");g.length>0&&v.addElement(g);var y=Object(r["a"])();y.addElement(s(t).querySelector(".toolbar-background"));var b=Object(r["a"])(),w=t.querySelector("ion-back-button");if(w&&b.addElement(w),e.addAnimation([n,i,v,b,y]),_.addAnimation(e),b.fromTo(a,.99,0),i.fromTo(a,.99,0),v.fromTo(a,.99,0),m){f||n.fromTo("transform","translateX("+c+")",h?"translateX(-100%)":"translateX(100%)").fromTo(a,.99,0),v.fromTo("transform","translateX("+c+")",h?"translateX(-100%)":"translateX(100%)"),y.beforeClearStyles([a,"transform"]);var E=null===l||void 0===l?void 0:l.translucent;if(E?y.fromTo("transform","translateX(0px)",h?"translateX(-100%)":"translateX(100%)"):y.fromTo(a,"var(--opacity)",0),w&&!P){var O=Object(r["a"])();O.addElement(s(w).querySelector(".button-text")).fromTo("transform","translateX("+c+")","translateX("+(h?-124:124)+"px)"),e.addAnimation(O)}}else f||n.fromTo("transform","translateX("+c+")","translateX("+p+")").fromTo(a,.99,0).afterClearStyles([u,a]),v.fromTo("transform","translateX("+c+")","translateX("+p+")").afterClearStyles([u,a]),b.afterClearStyles([a]),n.afterClearStyles([a]),i.afterClearStyles([a])}))}return _}catch(W){throw W}}},"30b5":function(t,e,n){"use strict";var r=n("c532");function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");
1565-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"347a":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=function(){function t(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}return t.prototype.createGesture=function(t){return new i(this,this.newID(),t.name,t.priority||0,!!t.disableScroll)},t.prototype.createBlocker=function(t){return void 0===t&&(t={}),new o(this,this.newID(),t.disable,!!t.disableScroll)},t.prototype.start=function(t,e,n){return this.canStart(t)?(this.requestedStart.set(e,n),!0):(this.requestedStart.delete(e),!1)},t.prototype.capture=function(t,e,n){if(!this.start(t,e,n))return!1;var r=this.requestedStart,i=-1e4;if(r.forEach((function(t){i=Math.max(i,t)})),i===n){this.capturedId=e,r.clear();var o=new CustomEvent("ionGestureCaptured",{detail:{gestureName:t}});return document.dispatchEvent(o),!0}return r.delete(e),!1},t.prototype.release=function(t){this.requestedStart.delete(t),this.capturedId===t&&(this.capturedId=void 0)},t.prototype.disableGesture=function(t,e){var n=this.disabledGestures.get(t);void 0===n&&(n=new Set,this.disabledGestures.set(t,n)),n.add(e)},t.prototype.enableGesture=function(t,e){var n=this.disabledGestures.get(t);void 0!==n&&n.delete(e)},t.prototype.disableScroll=function(t){this.disabledScroll.add(t),1===this.disabledScroll.size&&document.body.classList.add(a)},t.prototype.enableScroll=function(t){this.disabledScroll.delete(t),0===this.disabledScroll.size&&document.body.classList.remove(a)},t.prototype.canStart=function(t){return void 0===this.capturedId&&!this.isDisabled(t)},t.prototype.isCaptured=function(){return void 0!==this.capturedId},t.prototype.isScrollDisabled=function(){return this.disabledScroll.size>0},t.prototype.isDisabled=function(t){var e=this.disabledGestures.get(t);return!!(e&&e.size>0)},t.prototype.newID=function(){return this.gestureId++,this.gestureId},t}(),i=function(){function t(t,e,n,r,i){this.id=e,this.name=n,this.disableScroll=i,this.priority=1e6*r+e,this.ctrl=t}return t.prototype.canStart=function(){return!!this.ctrl&&this.ctrl.canStart(this.name)},t.prototype.start=function(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)},t.prototype.capture=function(){if(!this.ctrl)return!1;var t=this.ctrl.capture(this.name,this.id,this.priority);return t&&this.disableScroll&&this.ctrl.disableScroll(this.id),t},t.prototype.release=function(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))},t.prototype.destroy=function(){this.release(),this.ctrl=void 0},t}(),o=function(){function t(t,e,n,r){this.id=e,this.disable=n,this.disableScroll=r,this.ctrl=t}return t.prototype.block=function(){if(this.ctrl){if(this.disable)for(var t=0,e=this.disable;t<e.length;t++){var n=e[t];this.ctrl.disableGesture(n,this.id)}this.disableScroll&&this.ctrl.disableScroll(this.id)}},t.prototype.unblock=function(){if(this.ctrl){if(this.disable)for(var t=0,e=this.disable;t<e.length;t++){var n=e[t];this.ctrl.enableGesture(n,this.id)}this.disableScroll&&this.ctrl.enableScroll(this.id)}},t.prototype.destroy=function(){this.unblock(),this.ctrl=void 0},t}(),a="backdrop-no-scroll",s=new r},"35a1":function(t,e,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=r.length,u=0;while(s>u)i.f(t,n=r[u++],e[n]);return t}},3835:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");function i(t,e){var n=t&&("undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),e&&o.length===e)break}catch(u){s=!0,i=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}var o=n("06c5");
1565function a(){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 s(t,e){return r(t)||i(t,e)||Object(o["a"])(t,e)||a()}},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"391c":function(t,e,n){"use strict";n.r(e),n.d(e,"createGesture",(function(){return f}));var r=n("347a");n.d(e,"GESTURE_CONTROLLER",(function(){return r["a"]}));var i,o=function(t,e,n,r){var i,o,s=a(t)?{capture:!!r.capture,passive:!!r.passive}:!!r.capture;return t["__zone_symbol__addEventListener"]?(i="__zone_symbol__addEventListener",o="__zone_symbol__removeEventListener"):(i="addEventListener",o="removeEventListener"),t[i](e,n,s),function(){t[o](e,n,s)}},a=function(t){if(void 0===i)try{var e=Object.defineProperty({},"passive",{get:function(){i=!0}});t.addEventListener("optsTest",(function(){}),e)}catch(n){i=!1}return!!i},s=2e3,u=function(t,e,n,r,i){var a,u,l,f,h,d,p,v=0,g=function(r){v=Date.now()+s,e(r)&&(!u&&n&&(u=o(t,"touchmove",n,i)),l||(l=o(t,"touchend",y,i)),f||(f=o(t,"touchcancel",y,i)))},m=function(r){v>Date.now()||e(r)&&(!d&&n&&(d=o(c(t),"mousemove",n,i)),p||(p=o(c(t),"mouseup",b,i)))},y=function(t){w(),r&&r(t)},b=function(t){_(),r&&r(t)},w=function(){u&&u(),l&&l(),f&&f(),u=l=f=void 0},_=function(){d&&d(),p&&p(),d=p=void 0},E=function(){w(),_()},O=function(e){void 0===e&&(e=!0),e?(a||(a=o(t,"touchstart",g,i)),h||(h=o(t,"mousedown",m,i))):(a&&a(),h&&h(),a=h=void 0,E())},I=function(){O(!1),r=n=e=void 0};return{enable:O,stop:E,destroy:I}},c=function(t){return t instanceof Document?t:t.ownerDocument},l=function(t,e,n){var r=n*(Math.PI/180),i="x"===t,o=Math.cos(r),a=e*e,s=0,u=0,c=!1,l=0;return{start:function(t,e){s=t,u=e,l=0,c=!0},detect:function(t,e){if(!c)return!1;var n=t-s,r=e-u,f=n*n+r*r;if(f<a)return!1;var h=Math.sqrt(f),d=(i?n:r)/h;return l=d>o?1:d<-o?-1:0,c=!1,!0},isGesture:function(){return 0!==l},getDirection:function(){return l}}},f=function(t){var e=!1,n=!1,i=!0,o=!1,a=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},t),s=a.canStart,c=a.onWillStart,f=a.onStart,v=a.onEnd,g=a.notCaptured,m=a.onMove,y=a.threshold,b=a.passive,w=a.blurOnStart,_={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},E=l(a.direction,a.threshold,a.maxAngle),O=r["a"].createGesture({name:t.gestureName,priority:t.gesturePriority,disableScroll:t.disableScroll}),I=function(t){var e=p(t);return!(n||!i)&&(d(t,_),_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime=e,_.velocityX=_.velocityY=_.deltaX=_.deltaY=0,_.event=t,(!s||!1!==s(_))&&(O.release(),!!O.start()&&(n=!0,0===y?k():(E.start(_.startX,_.startY),!0))))},T=function(t){e?!o&&i&&(o=!0,h(_,t),requestAnimationFrame(S)):(h(_,t),E.detect(_.currentX,_.currentY)&&(E.isGesture()&&k()||P()))},S=function(){e&&(o=!1,m&&m(_))},k=function(){return!(O&&!O.capture())&&(e=!0,i=!1,_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime,c?c(_).then(x):x(),!0)},C=function(){if("undefined"!==typeof document){var t=document.activeElement;null!==t&&t.blur&&t.blur()}},x=function(){w&&C(),f&&f(_),i=!0},j=function(){e=!1,n=!1,o=!1,i=!0,O.release()},A=function(t){var n=e,r=i;j(),r&&(h(_,t),n?v&&v(_):g&&g(_))},N=u(a.el,I,T,A,{capture:!1,passive:b}),P=function(){j(),N.stop(),g&&g(_)};return{enable:function(t){void 0===t&&(t=!0),t||(e&&A(void 0),j()),N.enable(t)},destroy:function(){O.destroy(),N.destroy()}}},h=function(t,e){if(e){var n=t.currentX,r=t.currentY,i=t.currentTime;d(e,t);var o=t.currentX,a=t.currentY,s=t.currentTime=p(e),u=s-i;if(u>0&&u<100){var c=(o-n)/u,l=(a-r)/u;t.velocityX=.7*c+.3*t.velocityX,t.velocityY=.7*l+.3*t.velocityY}t.deltaX=o-t.startX,t.deltaY=a-t.startY,t.event=e}},d=function(t,e){var n=0,r=0;if(t){var i=t.changedTouches;if(i&&i.length>0){var o=i[0];n=o.clientX,r=o.clientY}else void 0!==t.pageX&&(n=t.pageX,r=t.pageY)}e.currentX=n,e.currentY=r},p=function(t){return t.timeStamp||Date.now()}},3934:function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3c4e":function(t,e,n){"use strict";var r=function(t){return i(t)&&!o(t)};function i(t){return!!t&&"object"===typeof t}function o(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||u(t)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function u(t){return t.$$typeof===s}function c(t){return Array.isArray(t)?[]:{}}function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?y(c(t),t,e):t}function f(t,e,n){return t.concat(e).map((function(t){return l(t,n)}))}function h(t,e){if(!e.customMerge)return y;var n=e.customMerge(t);return"function"===typeof n?n:y}function d(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}function p(t){return Object.keys(t).concat(d(t))}function v(t,e){try{return e in t}catch(n){return!1}}function g(t,e){return v(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function m(t,e,n){var r={};return n.isMergeableObject(t)&&p(t).forEach((function(e){r[e]=l(t[e],n)})),p(e).forEach((function(i){g(t,i)||(v(t,i)&&n.isMergeableObject(e[i])?r[i]=h(i,n)(t[i],e[i],n):r[i]=l(e[i],n))})),r}function y(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=l;var i=Array.isArray(e),o=Array.isArray(t),a=i===o;return a?i?n.arrayMerge(t,e,n):m(t,e,n):l(e,n)}y.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return y(t,n,e)}),{})};var b=y;t.exports=b},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",s=i.set,u=i.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},4041:function(t,e,n){},"408a":function(t,e,n){var r=n("c6b6");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},"41b3":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t,e,n,r,a){return o(t[1],e[1],n[1],r[1],a).map((function(o){return i(t[0],e[0],n[0],r[0],o)}))},i=function(t,e,n,r,i){var o=3*e*Math.pow(i-1,2),a=-3*n*i+3*n+r*i,s=t*Math.pow(i-1,3);return i*(o+i*a)-s},o=function(t,e,n,r,i){t-=i,e-=i,n-=i,r-=i;var o=s(r-3*n+3*e-t,3*n-6*e+3*t,3*e-3*t,t);return o.filter((function(t){return t>=0&&t<=1}))},a=function(t,e,n){var r=e*e-4*t*n;return r<0?[]:[(-e+Math.sqrt(r))/(2*t),(-e-Math.sqrt(r))/(2*t)]},s=function(t,e,n,r){if(0===t)return a(e,n,r);e/=t,n/=t,r/=t;var i=(3*n-e*e)/3,o=(2*e*e*e-9*e*n+27*r)/27;if(0===i)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-i),-Math.sqrt(-i)];var s=Math.pow(o/2,2)+Math.pow(i/3,3);if(0===s)return[Math.pow(o/2,.5)-e/3];if(s>0)return[Math.pow(-o/2+Math.sqrt(s),1/3)-Math.pow(o/2+Math.sqrt(s),1/3)-e/3];var u=Math.sqrt(Math.pow(-i/3,3)),c=Math.acos(-o/(2*Math.sqrt(Math.pow(-i/3,3)))),l=2*Math.pow(u,1/3);return[l*Math.cos(c/3)-e/3,l*Math.cos((c+2*Math.PI)/3)-e/3,l*Math.cos((c+4*Math.PI)/3)-e/3]}},"428f":function(t,e,n){var r=n("da84");t.exports=r},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},"467f":function(t,e,n){"use strict";var r=n("2d83");t.exports=function(t,e,n){var i=n.config.validateStatus;
1565n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"46e5":function(t,e,n){},4840:function(t,e,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},4930:function(t,e,n){var r=n("2d00"),i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())||!Symbol.sham&&r&&r<41}))},"4a7b":function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function c(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(o,c),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var l=i.concat(o).concat(a).concat(s),f=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return r.forEach(f,c),n}},"4b63":function(t,e,n){},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("0366"),i=n("7b0b"),o=n("9bdd"),a=n("e95a"),s=n("50c4"),u=n("8418"),c=n("35a1");t.exports=function(t){var e,n,l,f,h,d,p=i(t),v="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,y=void 0!==m,b=c(p),w=0;if(y&&(m=r(m,g>2?arguments[2]:void 0,2)),void 0==b||v==Array&&a(b))for(e=s(p.length),n=new v(e);e>w;w++)d=y?m(p[w],w):p[w],u(n,w,d);else for(f=b.call(p),h=f.next,n=new v;!(l=h.call(f)).done;w++)d=y?o(f,m,[l.value,w],!0):l.value,u(n,w,d);return n.length=w,n}},"4fad":function(t,e,n){var r=n("23e7"),i=n("6f53").entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5135:function(t,e,n){var r=n("7b0b"),i={}.hasOwnProperty;t.exports=function(t,e){return i.call(r(t),e)}},"51ef":function(t,e,n){},5270:function(t,e,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},"53ca":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}},5502:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return o}
vendor: 3,300 bytes, lines 1565-1570
1565));var r=n("7a23"),i="store";
1566/*!
1567 * vuex v4.0.0
1568 * (c) 2021 Evan You
1569 * @license MIT
1570 */function o(t){return void 0===t&&(t=null),Object(r["l"])(null!==t?t:i)}var a="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},s=a.__VUE_DEVTOOLS_GLOBAL_HOOK__;function u(t){s&&(t._devtoolHook=s,s.emit("vuex:init",t),s.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){s.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){s.emit("vuex:action",t,e)}),{prepend:!0}))}function c(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function l(t){return null!==t&&"object"===typeof t}function f(t){return t&&"function"===typeof t.then}function h(t,e){if(!t)throw new Error("[vuex] "+e)}function d(t,e){return function(){return t(e)}}var p=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},v={namespaced:{configurable:!0}};v.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(t,e){this._children[t]=e},p.prototype.removeChild=function(t){delete this._children[t]},p.prototype.getChild=function(t){return this._children[t]},p.prototype.hasChild=function(t){return t in this._children},p.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},p.prototype.forEachChild=function(t){c(this._children,t)},p.prototype.forEachGetter=function(t){this._rawModule.getters&&c(this._rawModule.getters,t)},p.prototype.forEachAction=function(t){this._rawModule.actions&&c(this._rawModule.actions,t)},p.prototype.forEachMutation=function(t){this._rawModule.mutations&&c(this._rawModule.mutations,t)},Object.defineProperties(p.prototype,v);var g=function(t){this.register([],t,!1)};function m(t,e,n){if(_(t,n),e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");m(t.concat(r),e.getChild(r),n.modules[r])}}g.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},g.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},g.prototype.update=function(t){m([],this.root,t)},g.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0),_(t,e);var i=new p(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&c(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},g.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r?r.runtime&&e.removeChild(n):console.warn("[vuex] trying to unregister module '"+n+"', which is not registered")},g.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var y={assert:function(t){return"function"===typeof t},expected:"function"},b={assert:function(t){return"function"===typeof t||"object"===typeof t&&"function"===typeof t.handler},expected:'function or object with "handler" function'},w={getters:y,mutations:y,actions:b};
1570function _(t,e){Object.keys(w).forEach((function(n){if(e[n]){var r=w[n];c(e[n],(function(e,i){h(r.assert(e),E(t,n,i,e,r.expected))}))}}))}function E(t,e,n,r,i){var o=e+" should be "+i+' but "'+e+"."+n+'"';return t.length>0&&(o+=' in module "'+t.join(".")+'"'),o+=" is "+JSON.stringify(r)+".",o}function O(t){return new I(t)}var I=function t(e){var n=this;void 0===e&&(e={}),h("undefined"!==typeof Promise,"vuex requires a Promise polyfill in this browser."),h(this instanceof t,"store must be called with the new operator.");var r=e.plugins;void 0===r&&(r=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new g(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null);var o=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(t,e){return s.call(o,t,e)},this.commit=function(t,e,n){return c.call(o,t,e,n)},this.strict=i;var l=this._modules.root.state;x(this,l,[],this._modules.root),C(this,l),r.forEach((function(t){return t(n)}));var f=void 0===e.devtools||e.devtools;f&&u(this)},T={state:{configurable:!0}};function S(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function k(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;x(t,n,[],t._modules.root,!0),C(t,n,e)}function C(t,e,n){var i=t._state;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,a={};c(o,(function(e,n){a[n]=d(e,t),Object.defineProperty(t.getters,n,{get:function(){return a[n]()},enumerable:!0})})),t._state=Object(r["B"])({data:e}),t.strict&&D(t),i&&n&&t._withCommit((function(){i.data=null}))}function x(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+n.join("/")),t._modulesNamespaceMap[a]=r),!o&&!i){var s=L(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){u in s&&console.warn('[vuex] state field "'+u+'" was overridden by a module with the same name at "'+n.join(".")+'"'),s[u]=r.state}))}var c=r.context=j(t,a,n);r.forEachMutation((function(e,n){var r=a+n;N(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;P(t,r,i,c)})),r.forEachGetter((function(e,n){var r=a+n;R(t,r,e,c)})),r.forEachChild((function(r,o){x(t,e,n.concat(o),r,i)}))}
1570function j(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=M(n,r,i),a=o.payload,s=o.options,u=o.type;if(s&&s.root||(u=e+u,t._actions[u]))return t.dispatch(u,a);console.error("[vuex] unknown local action type: "+o.type+", global type: "+u)},commit:r?t.commit:function(n,r,i){var o=M(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=e+u,t._mutations[u])?t.commit(u,a,s):console.error("[vuex] unknown local mutation type: "+o.type+", global type: "+u)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return A(t,e)}},state:{get:function(){return L(t.state,n)}}}),i}function A(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function N(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function P(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return f(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function R(t,e,n,r){t._wrappedGetters[e]?console.error("[vuex] duplicate getter key: "+e):t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}function D(t){Object(r["J"])((function(){return t._state.data}),(function(){h(t._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,flush:"sync"})}function L(t,e){return e.reduce((function(t,e){return t[e]}),t)}function M(t,e,n){return l(t)&&t.type&&(n=e,e=t,t=t.type),h("string"===typeof t,"expects string as the type, but found "+typeof t+"."),{type:t,payload:e,options:n}}I.prototype.install=function(t,e){t.provide(e||i,this),t.config.globalProperties.$store=this},T.state.get=function(){return this._state.data},T.state.set=function(t){h(!1,"use store.replaceState() to explicit replace store state.")},I.prototype.commit=function(t,e,n){var r=this,i=M(t,e,n),o=i.type,a=i.payload,s=i.options,u={type:o,payload:a},c=this._mutations[o];c?(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(u,r.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+o+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+o)},I.prototype.dispatch=function(t,e){var n=this,r=M(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(c){console.warn("[vuex] error in before action subscribers: "),console.error(c)}var u=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){u.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(c){console.warn("[vuex] error in after action subscribers: "),console.error(c)}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(c){console.warn("[vuex] error in error action subscribers: "),console.error(c)}e(t)}))}
1570))}console.error("[vuex] unknown action type: "+i)},I.prototype.subscribe=function(t,e){return S(t,this._subscribers,e)},I.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return S(n,this._actionSubscribers,e)},I.prototype.watch=function(t,e,n){var i=this;return h("function"===typeof t,"store.watch only accepts a function."),Object(r["J"])((function(){return t(i.state,i.getters)}),e,Object.assign({},n))},I.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._state.data=t}))},I.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),h(Array.isArray(t),"module path must be a string or an Array."),h(t.length>0,"cannot register the root module by using registerModule."),this._modules.register(t,e),x(this,this.state,t,this._modules.get(t),n.preserveState),C(this,this.state)},I.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),h(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit((function(){var n=L(e.state,t.slice(0,-1));delete n[t[t.length-1]]})),k(this)},I.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),h(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)},I.prototype.hotUpdate=function(t){this._modules.update(t),k(this,!0)},I.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(I.prototype,T);q((function(t,e){var n={};return U(e)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),F(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=$(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),q((function(t,e){var n={};return U(e)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),F(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=$(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),q((function(t,e){var n={};return U(e)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),F(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||$(this.$store,"mapGetters",t)){if(i in this.$store.getters)return this.$store.getters[i];console.error("[vuex] unknown getter: "+i)}},n[r].vuex=!0})),n})),q((function(t,e){var n={};return U(e)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),F(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=$(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function F(t){return U(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function U(t){return Array.isArray(t)||l(t)}function q(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function $(t,e,n){var r=t._modulesNamespaceMap[n];return r||console.error("[vuex] module namespace not found in "+e+"(): "+n),r}}).call(this,n("c8ba"))},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("b64b"),n("a4d3"),n("4de4"),n("e439"),n("159b"),n("dbb4");var r=n("ade3");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1570e%2?i(Object(n),!0).forEach((function(e){Object(r["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.12.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},"5a34":function(t,e,n){var r=n("44e7");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5c8d":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("1547");const i=Object(r["b"])("LocalNotifications",{web:()=>n.e("chunk-2d0bd7bb").then(n.bind(null,"2bd9")).then(t=>new t.LocalNotificationsWeb)})},"5ea3":function(t,e,n){"use strict";n.r(e),n.d(e,"MENU_BACK_BUTTON_PRIORITY",(function(){return s})),n.d(e,"OVERLAY_BACK_BUTTON_PRIORITY",(function(){return a})),n.d(e,"blockHardwareBackButton",(function(){return i})),n.d(e,"startHardwareBackButton",(function(){return o}));var r=n("f530"),i=function(){document.addEventListener("backbutton",(function(){}))},o=function(){var t=document,e=!1;t.addEventListener("backbutton",(function(){if(!e){var n=0,i=[],o=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register:function(t,e){i.push({priority:t,handler:e,id:n++})}}});t.dispatchEvent(o);var a=function(t){return Object(r["a"])(void 0,void 0,void 0,(function(){var e,n;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),t&&t.handler?(e=t.handler(s),null==e?[3,2]:[4,e]):[3,2];case 1:r.sent(),r.label=2;case 2:return[3,4];case 3:return n=r.sent(),console.error(n),[3,4];case 4:return[2]}}
1570))}))},s=function(){if(i.length>0){var t={priority:Number.MIN_SAFE_INTEGER,handler:function(){},id:-1};i.forEach((function(e){e.priority>=t.priority&&(t=e)})),e=!0,i=i.filter((function(e){return e.id!==t.id})),a(t).then((function(){return e=!1}))}};s()}}))},a=100,s=99},"5f02":function(t,e,n){"use strict";t.exports=function(t){return"object"===typeof t&&!0===t.isAxiosError}},"605d":function(t,e,n){var r=n("c6b6"),i=n("da84");t.exports="process"==r(i.process)},6069:function(t,e){t.exports="object"==typeof window},"60da":function(t,e,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),a=n("7418"),s=n("d1e7"),u=n("7b0b"),c=n("44ad"),l=Object.assign,f=Object.defineProperty;t.exports=!l||i((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||o(l({},e)).join("")!=i}))?function(t,e){var n=u(t),i=arguments.length,l=1,f=a.f,h=s.f;while(i>l){var d,p=c(arguments[l++]),v=f?o(p).concat(f(p)):o(p),g=v.length,m=0;while(g>m)d=v[m++],r&&!h.call(p,d)||(n[d]=p[d])}return n}:l},"61cf":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return f})),n.d(e,"i",(function(){return o})),n.d(e,"j",(function(){return p})),n.d(e,"k",(function(){return l})),n.d(e,"l",(function(){return v})),n.d(e,"m",(function(){return y})),n.d(e,"n",(function(){return w})),n.d(e,"o",(function(){return g})),n.d(e,"p",(function(){return m})),n.d(e,"q",(function(){return c}));var r=n("f530"),i=function(t,e){t.componentOnReady?t.componentOnReady().then((function(t){return e(t)})):c((function(){return e(t)}))},o=function(t,e){void 0===e&&(e=[]);var n={};return e.forEach((function(e){if(t.hasAttribute(e)){var r=t.getAttribute(e);null!==r&&(n[e]=t.getAttribute(e)),t.removeAttribute(e)}})),n},a=function(t,e,n,r){if("undefined"!==typeof window){var i=window,o=i&&i.Ionic&&i.Ionic.config;if(o){var a=o.get("_ael");if(a)return a(t,e,n,r);if(o._ael)return o._ael(t,e,n,r)}}return t.addEventListener(e,n,r)},s=function(t,e,n,r){if("undefined"!==typeof window){var i=window,o=i&&i.Ionic&&i.Ionic.config;if(o){var a=o.get("_rel");if(a)return a(t,e,n,r);if(o._rel)return o._rel(t,e,n,r)}}return t.removeEventListener(e,n,r)},u=function(t,e){return void 0===e&&(e=t),t.shadowRoot||e},c=function(t){return"function"===typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(t):"function"===typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t)},l=function(t){return!!t.shadowRoot&&!!t.attachShadow},f=function(t){var e=t.closest("ion-item");return e?e.querySelector("ion-label"):null},h=function(t,e){var n,r=t.getAttribute("aria-labelledby"),i=t.id,o=null!==r&&""!==r.trim()?r:e+"-lbl",a=null!==r&&""!==r.trim()?document.getElementById(r):f(t);return a?(null===r&&(a.id=o),n=a.textContent,a.setAttribute("aria-hidden","true")):""!==i.trim()&&(a=document.querySelector('label[for="'+i+'"]'),a&&(""!==a.id?o=a.id:a.id=o=i+"-lbl",n=a.textContent)),{label:a,labelId:o,labelText:n}},d=function(t,e,n,r,i){if(t||l(e)){var o=e.querySelector("input.aux-input");o||(o=e.ownerDocument.createElement("input"),o.type="hidden",o.classList.add("aux-input"),e.appendChild(o)),o.disabled=i,o.name=n,o.value=r||""}},p=function(t,e,n){return Math.max(t,Math.min(e,n))},v=function(t,e){if(!t){var n="ASSERT: "+e;throw console.error(n),new Error(n)}},g=function(t){return t.timeStamp||Date.now()},m=function(t){if(t){var e=t.changedTouches;if(e&&e.length>0){var n=e[0];return{x:n.clientX,y:n.clientY}}if(void 0!==t.pageX)return{x:t.pageX,y:t.pageY}}return{x:0,y:0}},y=function(t){var e="rtl"===document.dir;switch(t){case"start":return e;case"end":return!e;default:throw new Error('"'+t+'" is not a valid value for [side]. Use "start" or "end" instead.')}},b=function(t,e){var n=t._original||t;return{_original:t,emit:w(n.emit.bind(n),e)}},w=function(t,e){var n;return void 0===e&&(e=0),function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout.apply(void 0,Object(r["d"])([t,e],i))}}},6547:function(t,e,n){var r=n("a691"),i=n("1d80"),o=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"66b0":function(t,e,n){},"69f3":function(t,e,n){var r,i,o,a=n("7f9a"),s=n("da84"),u=n("861d"),c=n("9112"),l=n("5135"),f=n("c6cd"),h=n("f772"),d=n("d012"),p="Object already initialized",v=s.WeakMap,g=function(t){return o(t)?i(t):r(t,{})},m=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var y=f.state||(f.state=new v),b=y.get,w=y.has,_=y.set;r=function(t,e){if(w.call(y,t))throw new TypeError(p);return e.facade=t,_.call(y,t,e),e},i=function(t){return b.call(y,t)||{}},o=function(t){return w.call(y,t)}}else{var E=h("state");d[E]=!0,r=function(t,e){if(l(t,E))throw new TypeError(p);return e.facade=t,c(t,E,e),e},i=function(t){return l(t,E)?t[E]:{}},o=function(t){return l(t,E)}}t.exports={set:r,get:i,has:o,enforce:g,getterFor:m}},"6b75":function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},"6c02":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return z})),n.d(e,"b",(function(){return ne})),n.d(e,"c",(function(){return H})),n.d(e,"d",(function(){return W})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return Ut})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return ae})),n.d(e,"i",(function(){return oe}));var r=n("7a23");
1571/*!
1572  * vue-router v4.0.6
1573  * (c) 2021 Eduardo San Martin Morote
1574  * @license MIT
1575  */const i="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,o=t=>i?Symbol(t):"_vr_"+t,a=o("rvlm"),s=o("rvd"),u=o("r"),c=o("rl"),l=o("rvl"),f="undefined"!==typeof window;function h(t){return t.__esModule||i&&"Module"===t[Symbol.toStringTag]}const d=Object.assign;function p(t,e){const n={};for(const r in e){const i=e[r];n[r]=Array.isArray(i)?i.map(t):t(i)}return n}let v=()=>{};const g=/\/$/,m=t=>t.replace(g,"");function y(t,e,n="/"){let r,i={},o="",a="";const s=e.indexOf("?"),u=e.indexOf("#",s>-1?s:0);return s>-1&&(r=e.slice(0,s),o=e.slice(s+1,u>-1?u:e.length),i=t(o)),u>-1&&(r=r||e.slice(0,u),a=e.slice(u,e.length)),r=S(null!=r?r:e,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:a}}function b(t,e){let n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function w(t,e){return!e||t.toLowerCase().indexOf(e.toLowerCase())?t:t.slice(e.length)||"/"}function _(t,e,n){let r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&E(e.matched[r],n.matched[i])&&O(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function E(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function O(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(let n in t)if(!I(t[n],e[n]))return!1;return!0}function I(t,e){return Array.isArray(t)?T(t,e):Array.isArray(e)?T(e,t):t===e}function T(t,e){return Array.isArray(e)?t.length===e.length&&t.every((t,n)=>t===e[n]):1===t.length&&t[0]===e}function S(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let i,o,a=n.length-1;for(i=0;i<r.length;i++)if(o=r[i],1!==a&&"."!==o){if(".."!==o)break;a--}return n.slice(0,a).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var k,C;(function(t){t["pop"]="pop",t["push"]="push"})(k||(k={})),function(t){t["back"]="back",t["forward"]="forward",t["unknown"]=""}(C||(C={}));const x="";function j(t){if(!t)if(f){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return"/"!==t[0]&&"#"!==t[0]&&(t="/"+t),m(t)}
1575const A=/^[^#]+#/;function N(t,e){return t.replace(A,"#")+e}function P(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const R=()=>({left:window.pageXOffset,top:window.pageYOffset});function D(t){let e;if("el"in t){let n=t.el;const r="string"===typeof n&&n.startsWith("#");0;const i="string"===typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=P(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(null!=e.left?e.left:window.pageXOffset,null!=e.top?e.top:window.pageYOffset)}function L(t,e){const n=history.state?history.state.position-e:-1;return n+t}const M=new Map;function F(t,e){M.set(t,e)}function U(t){const e=M.get(t);return M.delete(t),e}let q=()=>location.protocol+"//"+location.host;function $(t,e){const{pathname:n,search:r,hash:i}=e,o=t.indexOf("#");if(o>-1){let t=i.slice(1);return"/"!==t[0]&&(t="/"+t),w(t,"")}const a=w(n,t);return a+r+i}function B(t,e,n,r){let i=[],o=[],a=null;const s=({state:o})=>{const s=$(t,location),u=n.value,c=e.value;let l=0;if(o){if(n.value=s,e.value=o,a&&a===u)return void(a=null);l=c?o.position-c.position:0}else r(s);i.forEach(t=>{t(n.value,u,{delta:l,type:k.pop,direction:l?l>0?C.forward:C.back:C.unknown})})};function u(){a=n.value}function c(t){i.push(t);const e=()=>{const e=i.indexOf(t);e>-1&&i.splice(e,1)};return o.push(e),e}function l(){const{history:t}=window;t.state&&t.replaceState(d({},t.state,{scroll:R()}),"")}function f(){for(const t of o)t();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l),{pauseListeners:u,listen:c,destroy:f}}function V(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?R():null}}function K(t){const{history:e,location:n}=window;let r={value:$(t,n)},i={value:e.state};function o(r,o,a){const s=t.indexOf("#"),u=s>-1?(n.host&&document.querySelector("base")?t:t.slice(s))+r:q()+t+r;try{e[a?"replaceState":"pushState"](o,"",u),i.value=o}catch(c){console.error(c),n[a?"replace":"assign"](u)}}function a(t,n){const a=d({},e.state,V(i.value.back,t,i.value.forward,!0),n,{position:i.value.position});o(t,a,!0),r.value=t}function s(t,n){const a=d({},i.value,e.state,{forward:t,scroll:R()});o(a.current,a,!0);const s=d({},V(r.value,t,null),{position:a.position+1},n);o(t,s,!1),r.value=t}return i.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:r,state:i,push:s,replace:a}}function W(t){t=j(t);const e=K(t),n=B(t,e.state,e.location,e.replace);function r(t,e=!0){e||n.pauseListeners(),history.go(t)}const i=d({location:"",base:t,go:r,createHref:N.bind(null,t)},e,n);return Object.defineProperty(i,"location",{get:()=>e.location.value}),Object.defineProperty(i,"state",{get:()=>e.state.value}),i}function z(t=""){let e=[],n=[x],r=0;function i(t){r++,r===n.length||n.splice(r),n.push(t)}function o(t,n,{direction:r,delta:i}){const o={direction:r,delta:i,type:k.pop};for(let a of e)a(t,n,o)}const a={location:x,state:{},base:t,createHref:N.bind(null,t),replace(t){n.splice(r--,1),i(t)},push(t,e){i(t)},listen(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},destroy(){e=[]},go(t,e=!0){const i=this.location,a=t<0?C.back:C.forward;r=Math.max(0,Math.min(r+t,n.length-1)),e&&o(this.location,i,{direction:a,delta:t})}};return Object.defineProperty(a,"location",{get:()=>n[r]}),a}function H(t){return t=location.host?t||location.pathname+location.search:"",t.indexOf("#")<0&&(t+="#"),W(t)}function G(t){return"string"===typeof t||t&&"object"===typeof t}function X(t){return"string"===typeof t||"symbol"===typeof t}const Y={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Q=o("nf");var J;(function(t){t[t["aborted"]=4]="aborted",t[t["cancelled"]=8]="cancelled",t[t["duplicated"]=16]="duplicated"})(J||(J={}));function Z(t,e){return d(new Error,{type:t,[Q]:!0},e)}function tt(t,e){return t instanceof Error&&Q in t&&(null==e||!!(t.type&e))}const et="[^/]+?",nt={sensitive:!1,strict:!1,start:!0,end:!0},rt=/[.+*?^${}()[\]/\\]/g;function it(t,e){const n=d({},nt,e);let r=[],i=n.start?"^":"";const o=[];for(const l of t){const t=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let e=0;e<l.length;e++){const r=l[e];let a=40+(n.sensitive?.25:0);if(0===r.type)e||(i+="/"),i+=r.value.replace(rt,"\\$&"),a+=40;else if(1===r.type){const{value:t,repeatable:n,optional:s,regexp:u}=r;o.push({name:t,repeatable:n,optional:s});const f=u||et;if(f!==et){a+=10;try{new RegExp(`(${f})`)}catch(c){throw new Error(`Invalid custom RegExp for param "${t}" (${f}): `+c.message)}}let h=n?`((?:${f}
1575)(?:/(?:${f}))*)`:`(${f})`;e||(h=s&&l.length<2?`(?:/${h})`:"/"+h),s&&(h+="?"),i+=h,a+=20,s&&(a+=-8),n&&(a+=-20),".*"===f&&(a+=-50)}t.push(a)}r.push(t)}if(n.strict&&n.end){const t=r.length-1;r[t][r[t].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");function s(t){const e=t.match(a),n={};if(!e)return null;for(let r=1;r<e.length;r++){const t=e[r]||"",i=o[r-1];n[i.name]=t&&i.repeatable?t.split("/"):t}return n}function u(e){let n="",r=!1;for(const i of t){r&&n.endsWith("/")||(n+="/"),r=!1;for(const t of i)if(0===t.type)n+=t.value;else if(1===t.type){const{value:o,repeatable:a,optional:s}=t,u=o in e?e[o]:"";if(Array.isArray(u)&&!a)throw new Error(`Provided param "${o}" is an array but it is not repeatable (* or + modifiers)`);const c=Array.isArray(u)?u.join("/"):u;if(!c){if(!s)throw new Error(`Missing required param "${o}"`);i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=c}}return n}return{re:a,score:r,keys:o,parse:s,stringify:u}}function ot(t,e){let n=0;while(n<t.length&&n<e.length){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?1===t.length&&80===t[0]?-1:1:t.length>e.length?1===e.length&&80===e[0]?1:-1:0}function at(t,e){let n=0;const r=t.score,i=e.score;while(n<r.length&&n<i.length){const t=ot(r[n],i[n]);if(t)return t;n++}return i.length-r.length}const st={type:0,value:""},ut=/[a-zA-Z0-9_]/;function ct(t){if(!t)return[[]];if("/"===t)return[[st]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(t){throw new Error(`ERR (${n})/"${c}": ${t}`)}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s,u=0,c="",l="";function f(){c&&(0===n?o.push({type:0,value:c}):1===n||2===n||3===n?(o.length>1&&("*"===s||"+"===s)&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:l,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):e("Invalid state to consume buffer"),c="")}function h(){c+=s}while(u<t.length)if(s=t[u++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(c&&f(),a()):":"===s?(f(),n=1):h();break;case 4:h(),n=r;break;case 1:"("===s?n=2:ut.test(s)?h():(f(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&u--);break;case 2:")"===s?"\\"==l[l.length-1]?l=l.slice(0,-1)+s:n=3:l+=s;break;case 3:f(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&u--,l="";break;default:e("Unknown state");break}else r=n,n=4;return 2===n&&e(`Unfinished custom RegExp for param "${c}"`),f(),a(),i}function lt(t,e,n){const r=it(ct(t.path),n);const i=d(r,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf===!e.record.aliasOf&&e.children.push(i),i}function ft(t,e){const n=[],r=new Map;function i(t){return r.get(t)}function o(t,n,r){let i=!r,s=dt(t);s.aliasOf=r&&r.record;const c=mt(e,t),l=[s];if("alias"in t){const e="string"===typeof t.alias?[t.alias]:t.alias;for(const t of e)l.push(d({},s,{components:r?r.record.components:s.components,path:t,aliasOf:r?r.record:s}))}let f,h;for(const e of l){let{path:l}=e;if(n&&"/"!==l[0]){let t=n.record.path,r="/"===t[t.length-1]?"":"/";e.path=n.record.path+(l&&r+l)}if(f=lt(e,n,c),r?r.alias.push(f):(h=h||f,h!==f&&h.alias.push(f),i&&t.name&&!vt(f)&&a(t.name)),"children"in s){let t=s.children;for(let e=0;e<t.length;e++)o(t[e],f,r&&r.children[e])}r=r||f,u(f)}return h?()=>{a(h)}:v}function a(t){if(X(t)){const e=r.get(t);e&&(r.delete(t),n.splice(n.indexOf(e),1),e.children.forEach(a),e.alias.forEach(a))}else{let e=n.indexOf(t);e>-1&&(n.splice(e,1),t.record.name&&r.delete(t.record.name),t.children.forEach(a),t.alias.forEach(a))}}function s(){return n}function u(t){let e=0;while(e<n.length&&at(t,n[e])>=0)e++;n.splice(e,0,t),t.record.name&&!vt(t)&&r.set(t.record.name,t)}function c(t,e){let i,o,a,s={};if("name"in t&&t.name){if(i=r.get(t.name),!i)throw Z(1,{location:t});a=i.record.name,s=d(ht(e.params,i.keys.filter(t=>!t.optional).map(t=>t.name)),t.params),o=i.stringify(s)}else if("path"in t)o=t.path,i=n.find(t=>t.re.test(o)),i&&(s=i.parse(o),a=i.record.name);else{if(i=e.name?r.get(e.name):n.find(t=>t.re.test(e.path)),!i)throw Z(1,{location:t,currentLocation:e});a=i.record.name,s=d({},e.params,t.params),o=i.stringify(s)}const u=[];let c=i;while(c)u.unshift(c.record),c=c.parent;return{name:a,path:o,params:s,matched:u,meta:gt(u)}}return e=mt({strict:!1,end:!0,sensitive:!1},e),t.forEach(t=>o(t)),{addRoute:o,resolve:c,removeRoute:a,getRoutes:s,getRecordMatcher:i}}function ht(t,e){let n={};for(let r of e)r in t&&(n[r]=t[r]);return n}function dt(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:pt(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||{}:{default:t.component}}}function pt(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(let r in t.components)e[r]="boolean"===typeof n?n:n[r];return e}function vt(t){while(t){if(t.record.aliasOf)return!0;t=t.parent}return!1}function gt(t){return t.reduce((t,e)=>d(t,e.meta),{})}function mt(t,e){let n={};for(let r in t)n[r]=r in e?e[r]:t[r];return n}
1575const yt=/#/g,bt=/&/g,wt=/\//g,_t=/=/g,Et=/\?/g,Ot=/\+/g,It=/%5B/g,Tt=/%5D/g,St=/%5E/g,kt=/%60/g,Ct=/%7B/g,xt=/%7C/g,jt=/%7D/g,At=/%20/g;function Nt(t){return encodeURI(""+t).replace(xt,"|").replace(It,"[").replace(Tt,"]")}function Pt(t){return Nt(t).replace(Ct,"{").replace(jt,"}").replace(St,"^")}function Rt(t){return Nt(t).replace(Ot,"%2B").replace(At,"+").replace(yt,"%23").replace(bt,"%26").replace(kt,"`").replace(Ct,"{").replace(jt,"}").replace(St,"^")}function Dt(t){return Rt(t).replace(_t,"%3D")}function Lt(t){return Nt(t).replace(yt,"%23").replace(Et,"%3F")}function Mt(t){return Lt(t).replace(wt,"%2F")}function Ft(t){try{return decodeURIComponent(""+t)}catch(e){}return""+t}function Ut(t){const e={};if(""===t||"?"===t)return e;const n="?"===t[0],r=(n?t.slice(1):t).split("&");for(let i=0;i<r.length;++i){const t=r[i].replace(Ot," ");let n=t.indexOf("="),o=Ft(n<0?t:t.slice(0,n)),a=n<0?null:Ft(t.slice(n+1));if(o in e){let t=e[o];Array.isArray(t)||(t=e[o]=[t]),t.push(a)}else e[o]=a}return e}function qt(t){let e="";for(let n in t){e.length&&(e+="&");const r=t[n];if(n=Dt(n),null==r){void 0!==r&&(e+=n);continue}let i=Array.isArray(r)?r.map(t=>t&&Rt(t)):[r&&Rt(r)];for(let t=0;t<i.length;t++)e+=(t?"&":"")+n,null!=i[t]&&(e+="="+i[t])}return e}function $t(t){const e={};for(let n in t){let r=t[n];void 0!==r&&(e[n]=Array.isArray(r)?r.map(t=>null==t?null:""+t):null==r?r:""+r)}return e}function Bt(){let t=[];function e(e){return t.push(e),()=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function Vt(t,e,n,r,i){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,s)=>{const u=t=>{!1===t?s(Z(4,{from:n,to:e})):t instanceof Error?s(t):G(t)?s(Z(2,{from:e,to:t})):(o&&r.enterCallbacks[i]===o&&"function"===typeof t&&o.push(t),a())},c=t.call(r&&r.instances[i],e,n,u);let l=Promise.resolve(c);t.length<3&&(l=l.then(u)),l.catch(t=>s(t))})}function Kt(t,e,n,r){const i=[];for(const o of t)for(const t in o.components){let a=o.components[t];if("beforeRouteEnter"===e||o.instances[t])if(Wt(a)){let s=a.__vccOpts||a;const u=s[e];u&&i.push(Vt(u,n,r,o,t))}else{let s=a();s=s.catch(console.error),i.push(()=>s.then(i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${t}" at "${o.path}"`));const a=h(i)?i.default:i;o.components[t]=a;let s=a.__vccOpts||a;const u=s[e];return u&&Vt(u,n,r,o,t)()}))}}return i}function Wt(t){return"object"===typeof t||"displayName"in t||"props"in t||"__vccOpts"in t}function zt(t){const e=Object(r["l"])(u),n=Object(r["l"])(c),i=Object(r["c"])(()=>e.resolve(Object(r["I"])(t.to))),o=Object(r["c"])(()=>{let{matched:t}=i.value,{length:e}=t;const r=t[e-1];let o=n.matched;if(!r||!o.length)return-1;let a=o.findIndex(E.bind(null,r));if(a>-1)return a;let s=Qt(t[e-2]);return e>1&&Qt(r)===s&&o[o.length-1].path!==s?o.findIndex(E.bind(null,t[e-2])):a}),a=Object(r["c"])(()=>o.value>-1&&Yt(n.params,i.value.params)),s=Object(r["c"])(()=>o.value>-1&&o.value===n.matched.length-1&&O(n.params,i.value.params));function l(n={}){return Xt(n)?e[Object(r["I"])(t.replace)?"replace":"push"](Object(r["I"])(t.to)):Promise.resolve()}return{route:i,href:Object(r["c"])(()=>i.value.href),isActive:a,isExactActive:s,navigate:l}}const Ht=Object(r["i"])({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},setup(t,{slots:e}){const n=Object(r["B"])(zt(t)),{options:i}=Object(r["l"])(u),o=Object(r["c"])(()=>({[Jt(t.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Jt(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&e.default(n);return t.custom?i:Object(r["k"])("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Gt=Ht;function Xt(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Yt(t,e){for(let n in e){let r=e[n],i=t[n];if("string"===typeof r){if(r!==i)return!1}else if(!Array.isArray(i)||i.length!==r.length||r.some((t,e)=>t!==i[e]))return!1}return!0}function Qt(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Jt=(t,e,n)=>null!=t?t:null!=e?e:n,Zt=Object(r["i"])({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(t,{attrs:e,slots:n}){const i=Object(r["l"])(l),o=Object(r["c"])(()=>t.route||i.value),u=Object(r["l"])(s,0),c=Object(r["c"])(()=>o.value.matched[u]);Object(r["z"])(s,u+1),Object(r["z"])(a,c),Object(r["z"])(l,o);const f=Object(r["C"])();return Object(r["J"])(()=>[f.value,c.value,t.name],([t,e,n],[r,i,o])=>{e&&(e.instances[n]=t,i&&i!==e&&t&&t===r&&(e.leaveGuards.size||(e.leaveGuards=i.leaveGuards),e.updateGuards.size||(e.updateGuards=i.updateGuards))),!t||!e||i&&E(e,i)&&r||(e.enterCallbacks[n]||[]).forEac
1575h(e=>e(t))},{flush:"post"}),()=>{const i=o.value,a=c.value,s=a&&a.components[t.name],u=t.name;if(!s)return te(n.default,{Component:s,route:i});const l=a.props[t.name],h=l?!0===l?i.params:"function"===typeof l?l(i):l:null,p=t=>{t.component.isUnmounted&&(a.instances[u]=null)},v=Object(r["k"])(s,d({},h,e,{onVnodeUnmounted:p,ref:f}));return te(n.default,{Component:v,route:i})||v}}});function te(t,e){if(!t)return null;const n=t(e);return 1===n.length?n[0]:n}const ee=Zt;function ne(t){const e=ft(t.routes,t);let n=t.parseQuery||Ut,i=t.stringifyQuery||qt,o=t.history;const a=Bt(),s=Bt(),h=Bt(),g=Object(r["G"])(Y);let m=Y;f&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const w=p.bind(null,t=>""+t),E=p.bind(null,Mt),O=p.bind(null,Ft);function I(t,n){let r,i;return X(t)?(r=e.getRecordMatcher(t),i=n):i=t,e.addRoute(i,r)}function T(t){let n=e.getRecordMatcher(t);n&&e.removeRoute(n)}function S(){return e.getRoutes().map(t=>t.record)}function k(t){return!!e.getRecordMatcher(t)}function C(t,r){if(r=d({},r||g.value),"string"===typeof t){let i=y(n,t,r.path),a=e.resolve({path:i.path},r),s=o.createHref(i.fullPath);return d(i,a,{params:O(a.params),hash:Ft(i.hash),redirectedFrom:void 0,href:s})}let a;"path"in t?a=d({},t,{path:y(n,t.path,r.path).path}):(a=d({},t,{params:E(t.params)}),r.params=E(r.params));let s=e.resolve(a,r);const u=t.hash||"";s.params=w(O(s.params));const c=b(i,d({},t,{hash:Pt(u),path:s.path}));let l=o.createHref(c);return d({fullPath:c,hash:u,query:i===qt?$t(t.query):t.query},s,{redirectedFrom:void 0,href:l})}function x(t){return"string"===typeof t?y(n,t,g.value.path):d({},t)}function j(t,e){if(m!==t)return Z(8,{from:e,to:t})}function A(t){return M(t)}function N(t){return A(d(x(t),{replace:!0}))}function P(t){const e=t.matched[t.matched.length-1];if(e&&e.redirect){const{redirect:n}=e;let r="function"===typeof n?n(t):n;return"string"===typeof r&&(r=r.indexOf("?")>-1||r.indexOf("#")>-1?r=x(r):{path:r}),d({query:t.query,hash:t.hash,params:t.params},r)}}function M(t,e){const n=m=C(t),r=g.value,o=t.state,a=t.force,s=!0===t.replace,u=P(n);if(u)return M(d(x(u),{state:o,force:a,replace:s}),e||n);const c=n;let l;return c.redirectedFrom=e,!a&&_(i,r,n)&&(l=Z(16,{to:c,from:r}),nt(r,r,!0,!1)),(l?Promise.resolve(l):$(c,r)).catch(t=>tt(t)?t:Q(t)).then(t=>{if(t){if(tt(t,2))return M(d(x(t.to),{state:o,force:a,replace:s}),e||c)}else t=V(c,r,!0,s,o);return B(c,r,t),t})}function q(t,e){const n=j(t,e);return n?Promise.reject(n):Promise.resolve()}function $(t,e){let n;const[r,i,o]=ie(t,e);n=Kt(r.reverse(),"beforeRouteLeave",t,e);for(const a of r)a.leaveGuards.forEach(r=>{n.push(Vt(r,t,e))});const u=q.bind(null,t,e);return n.push(u),re(n).then(()=>{n=[];for(const r of a.list())n.push(Vt(r,t,e));return n.push(u),re(n)}).then(()=>{n=Kt(i,"beforeRouteUpdate",t,e);for(const r of i)r.updateGuards.forEach(r=>{n.push(Vt(r,t,e))});return n.push(u),re(n)}).then(()=>{n=[];for(const r of t.matched)if(r.beforeEnter&&e.matched.indexOf(r)<0)if(Array.isArray(r.beforeEnter))for(const i of r.beforeEnter)n.push(Vt(i,t,e));else n.push(Vt(r.beforeEnter,t,e));return n.push(u),re(n)}).then(()=>(t.matched.forEach(t=>t.enterCallbacks={}),n=Kt(o,"beforeRouteEnter",t,e),n.push(u),re(n))).then(()=>{n=[];for(const r of s.list())n.push(Vt(r,t,e));return n.push(u),re(n)}).catch(t=>tt(t,8)?t:Promise.reject(t))}function B(t,e,n){for(const r of h.list())r(t,e,n)}function V(t,e,n,r,i){const a=j(t,e);if(a)return a;const s=e===Y,u=f?history.state:{};n&&(r||s?o.replace(t.fullPath,d({scroll:s&&u&&u.scroll},i)):o.push(t.fullPath,i)),g.value=t,nt(t,e,n,s),et()}let K;function W(){K=o.listen((t,e,n)=>{let r=C(t);const i=P(r);if(i)return void M(d(i,{replace:!0}),r).catch(v);m=r;const a=g.value;f&&F(L(a.fullPath,n.delta),R()),$(r,a).catch(t=>tt(t,12)?t:tt(t,2)?(M(t.to,r).catch(v),Promise.reject()):(n.delta&&o.go(-n.delta,!1),Q(t))).then(t=>{t=t||V(r,a,!1),t&&n.delta&&o.go(-n.delta,!1),B(r,a,t)}).catch(v)})}let z,H=Bt(),G=Bt();function Q(t){return et(t),G.list().forEach(e=>e(t)),Promise.reject(t)}function J(){return z&&g.value!==Y?Promise.resolve():new Promise((t,e)=>{H.add([t,e])})}
1575function et(t){z||(z=!0,W(),H.list().forEach(([e,n])=>t?n(t):e()),H.reset())}function nt(e,n,i,o){const{scrollBehavior:a}=t;if(!f||!a)return Promise.resolve();let s=!i&&U(L(e.fullPath,0))||(o||!i)&&history.state&&history.state.scroll||null;return Object(r["q"])().then(()=>a(e,n,s)).then(t=>t&&D(t)).catch(Q)}const rt=t=>o.go(t);let it;const ot=new Set,at={currentRoute:g,addRoute:I,removeRoute:T,hasRoute:k,getRoutes:S,resolve:C,options:t,push:A,replace:N,go:rt,back:()=>rt(-1),forward:()=>rt(1),beforeEach:a.add,beforeResolve:s.add,afterEach:h.add,onError:G.add,isReady:J,install(t){const e=this;t.component("RouterLink",Gt),t.component("RouterView",ee),t.config.globalProperties.$router=e,Object.defineProperty(t.config.globalProperties,"$route",{get:()=>Object(r["I"])(g)}),f&&!it&&g.value===Y&&(it=!0,A(o.location).catch(t=>{0}));const n={};for(let o in Y)n[o]=Object(r["c"])(()=>g.value[o]);t.provide(u,e),t.provide(c,Object(r["B"])(n)),t.provide(l,g);let i=t.unmount;ot.add(t),t.unmount=function(){ot.delete(t),ot.size<1&&(K(),g.value=Y,it=!1,z=!1),i()}}};return at}function re(t){return t.reduce((t,e)=>t.then(()=>e()),Promise.resolve())}function ie(t,e){const n=[],r=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let a=0;a<o;a++){const o=e.matched[a];o&&(t.matched.find(t=>E(t,o))?r.push(o):n.push(o));const s=t.matched[a];s&&(e.matched.find(t=>E(t,s))||i.push(s))}return[n,r,i]}function oe(){return Object(r["l"])(u)}function ae(){return Object(r["l"])(c)}}).call(this,n("c8ba"))},"6d28":function(t,e,n){"use strict";n.d(e,"a",(function(){return de})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return Q})),n.d(e,"d",(function(){return y})),n.d(e,"e",(function(){return Ht})),n.d(e,"f",(function(){return he})),n.d(e,"g",(function(){return Et})),n.d(e,"h",(function(){return fe})),n.d(e,"i",(function(){return V})),n.d(e,"j",(function(){return X})),n.d(e,"k",(function(){return _t})),n.d(e,"l",(function(){return jt})),n.d(e,"m",(function(){return Gt})),n.d(e,"n",(function(){return g})),n.d(e,"o",(function(){return Qt})),n.d(e,"p",(function(){return B})),n.d(e,"q",(function(){return d}));var r,i,o,a=n("f530"),s="ionic",u=!1,c=!1,l=!1,f=!1,h=!1,d="undefined"!==typeof window?window:{},p=d.CSS,v=d.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:function(t){return t()},raf:function(t){return requestAnimationFrame(t)},ael:function(t,e,n,r){return t.addEventListener(e,n,r)},rel:function(t,e,n,r){return t.removeEventListener(e,n,r)},ce:function(t,e){return new CustomEvent(t,e)}},m=function(){return(v.head.attachShadow+"").indexOf("[native")>-1}(),y=function(t){return Promise.resolve(t)},b=function(){try{return new CSSStyleSheet,"function"===typeof(new CSSStyleSheet).replace}catch(t){}return!1}(),w=function(t,e,n,r){n&&n.map((function(n){var r=n[0],i=n[1],o=n[2],a=E(t,r),s=_(e,o),u=O(r);g.ael(a,i,s,u),(e.$rmListeners$=e.$rmListeners$||[]).push((function(){return g.rel(a,i,s,u)}))}))},_=function(t,e){return function(n){try{256&t.$flags$?t.$lazyInstance$[e](n):(t.$queuedListeners$=t.$queuedListeners$||[]).push([e,n])}catch(r){te(r)}}},E=function(t,e){return 4&e?v:8&e?d:16&e?v.body:t},O=function(t){return 0!==(2&t)},I="r",T="o",S="s",k="t",C="s-id",x="sty-id",j="c-id",A="{visibility:hidden}.hydrated{visibility:inherit}",N="http://www.w3.org/1999/xlink",P=function(t,e){return void 0===e&&(e=""),function(){}},R=function(t,e){return function(){}},D=new WeakMap,L=function(t,e,n){var r=re.get(t);b&&n?(r=r||new CSSStyleSheet,r.replace(e)):r=e,re.set(t,r)},M=function(t,e,n,r){var i=U(e,n),o=re.get(i);if(t=11===t.nodeType?t:v,o)if("string"===typeof o){t=t.head||t;var s=D.get(t),u=void 0;if(s||D.set(t,s=new Set),!s.has(i)){if(t.host&&(u=t.querySelector("["+x+'="'+i+'"]')))u.innerHTML=o;else{if(g.$cssShim$){u=g.$cssShim$.createHostStyle(r,i,o,!!(10&e.$flags$));var c=u["s-sc"];c&&(i=c,s=null)}else u=v.createElement("style"),u.innerHTML=o;t.insertBefore(u,t.querySelector("link"))}s&&s.add(i)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=Object(a["d"])(Object(a["d"])([],t.adoptedStyleSheets),[o]));return i}
1575,F=function(t){var e=t.$cmpMeta$,n=t.$hostElement$,r=e.$flags$,i=P("attachStyles",e.$tagName$),o=M(m&&n.shadowRoot?n.shadowRoot:n.getRootNode(),e,t.$modeName$,n);10&r&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&r&&n.classList.add(o+"-s")),i()},U=function(t,e){return"sc-"+(e&&32&t.$flags$?t.$tagName$+"-"+e:t.$tagName$)},q=function(t){return t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{")},$=function(t){return ie.map((function(e){return e(t)})).find((function(t){return!!t}))},B=function(t){return ie.push(t)},V=function(t){return Yt(t).$modeName$},K={},W="http://www.w3.org/2000/svg",z="http://www.w3.org/1999/xhtml",H=function(t){return null!=t},G=function(t){return t=typeof t,"object"===t||"function"===t},X=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=null,o=null,a=null,s=!1,u=!1,c=[],l=function(e){for(var n=0;n<e.length;n++)i=e[n],Array.isArray(i)?l(i):null!=i&&"boolean"!==typeof i&&((s="function"!==typeof t&&!G(i))&&(i=String(i)),s&&u?c[c.length-1].$text$+=i:c.push(s?Y(null,i):i),u=s)};if(l(n),e){e.key&&(o=e.key),e.name&&(a=e.name);var f=e.className||e.class;f&&(e.class="object"!==typeof f?f:Object.keys(f).filter((function(t){return f[t]})).join(" "))}if("function"===typeof t)return t(null===e?{}:e,c,Z);var h=Y(t,null);return h.$attrs$=e,c.length>0&&(h.$children$=c),h.$key$=o,h.$name$=a,h},Y=function(t,e){var n={$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return n},Q={},J=function(t){return t&&t.$tag$===Q},Z={forEach:function(t,e){return t.map(tt).forEach(e)},map:function(t,e){return t.map(tt).map(e).map(et)}},tt=function(t){return{vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}},et=function(t){if("function"===typeof t.vtag){var e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),X.apply(void 0,Object(a["d"])([t.vtag,e],t.vchildren||[]))}var n=Y(t.vtag,t.vtext);return n.$attrs$=t.vattrs,n.$children$=t.vchildren,n.$key$=t.vkey,n.$name$=t.vname,n},nt=function(t,e,n,r,i,o){if(n!==r){var a=Zt(t,e),s=e.toLowerCase();if("class"===e){var u=t.classList,c=it(n),l=it(r);u.remove.apply(u,c.filter((function(t){return t&&!l.includes(t)}))),u.add.apply(u,l.filter((function(t){return t&&!c.includes(t)})))}else if("style"===e){for(var f in n)r&&null!=r[f]||(f.includes("-")?t.style.removeProperty(f):t.style[f]="");for(var f in r)n&&r[f]===n[f]||(f.includes("-")?t.style.setProperty(f,r[f]):t.style[f]=r[f])}else if("key"===e);else if("ref"===e)r&&r(t);else if(a||"o"!==e[0]||"n"!==e[1]){var h=G(r);if((a||h&&null!==r)&&!i)try{if(t.tagName.includes("-"))t[e]=r;else{var p=null==r?"":r;"list"===e?a=!1:null!=n&&t[e]==p||(t[e]=p)}}catch(m){}var v=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(e=s,v=!0),null==r||!1===r?!1===r&&""!==t.getAttribute(e)||(v?t.removeAttributeNS(N,e):t.removeAttribute(e)):(!a||4&o||i)&&!h&&(r=!0===r?"":r,v?t.setAttributeNS(N,e,r):t.setAttribute(e,r))}else e="-"===e[2]?e.slice(3):Zt(d,s)?s.slice(2):s[2]+e.slice(3),n&&g.rel(t,e,n,!1),r&&g.ael(t,e,r,!1)}},rt=/\s/,it=function(t){return t?t.split(rt):[]},ot=function(t,e,n,r){var i=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,o=t&&t.$attrs$||K,a=e.$attrs$||K;for(r in o)r in a||nt(i,r,o[r],void 0,n,e.$flags$);for(r in a)nt(i,r,o[r],a[r],n,e.$flags$)},at=function(t,e,n,a){var s,c,h,d=e.$children$[n],p=0;if(u||(l=!0,"slot"===d.$tag$&&(r&&a.classList.add(r+"-s"),d.$flags$|=d.$children$?2:1)),null!==d.$text$)s=d.$elm$=v.createTextNode(d.$text$);else if(1&d.$flags$)s=d.$elm$=v.createTextNode("");else{if(f||(f="svg"===d.$tag$),s=d.$elm$=v.createElementNS(f?W:z,2&d.$flags$?"slot-fb":d.$tag$),f&&"foreignObject"===d.$tag$&&(f=!1),ot(null,d,f),H(r)&&s["s-si"]!==r&&s.classList.add(s["s-si"]=r),d.$children$)for(p=0;p<d.$children$.length;++p)c=at(t,d,p,s),c&&s.appendChild(c);"svg"===d.$tag$?f=!1:"foreignObject"===s.tagName&&(f=!0)}return s["s-hn"]=o,3&d.$flags$&&(s["s-sr"]=!0,s["s-cr"]=i,s["s-sn"]=d.$name$||"",h=t&&t.$children$&&t.$children$[n],h&&h.$tag$===d.$tag$&&t.$elm$&&st(t.$elm$,!1)),s},st=function(t,e){g.$flags$|=1;for(var n=t.childNodes,r=n.length-1;r>=0;r--){var i=n[r];i["s-hn"]!==o&&i["s-ol"]&&(dt(i).insertBefore(i,ht(i)),i["s-ol"].remove(),i["s-ol"]=void 0,l=!0),e&&st(i,e)}g.$flags$&=-2},ut=function(t,e,n,r,i,a){var s,u=t["s-cr"]&&t["s-cr"].parentNode||t;for(u.shadowRoot&&u.tagName===o&&(u=u.shadowRoot);i<=a;++i)r[i]&&(s=at(null,n,i,t),s&&(r[i].$elm$=s,u.insertBefore(s,ht(e)))
1575)},ct=function(t,e,n,r,i){for(;e<=n;++e)(r=t[e])&&(i=r.$elm$,bt(r),c=!0,i["s-ol"]?i["s-ol"].remove():st(i,!0),i.remove())},lt=function(t,e,n,r){var i,o,a=0,s=0,u=0,c=0,l=e.length-1,f=e[0],h=e[l],d=r.length-1,p=r[0],v=r[d];while(a<=l&&s<=d)if(null==f)f=e[++a];else if(null==h)h=e[--l];else if(null==p)p=r[++s];else if(null==v)v=r[--d];else if(ft(f,p))pt(f,p),f=e[++a],p=r[++s];else if(ft(h,v))pt(h,v),h=e[--l],v=r[--d];else if(ft(f,v))"slot"!==f.$tag$&&"slot"!==v.$tag$||st(f.$elm$.parentNode,!1),pt(f,v),t.insertBefore(f.$elm$,h.$elm$.nextSibling),f=e[++a],v=r[--d];else if(ft(h,p))"slot"!==f.$tag$&&"slot"!==v.$tag$||st(h.$elm$.parentNode,!1),pt(h,p),t.insertBefore(h.$elm$,f.$elm$),h=e[--l],p=r[++s];else{for(u=-1,c=a;c<=l;++c)if(e[c]&&null!==e[c].$key$&&e[c].$key$===p.$key$){u=c;break}u>=0?(o=e[u],o.$tag$!==p.$tag$?i=at(e&&e[s],n,u,t):(pt(o,p),e[u]=void 0,i=o.$elm$),p=r[++s]):(i=at(e&&e[s],n,s,t),p=r[++s]),i&&dt(f.$elm$).insertBefore(i,ht(f.$elm$))}a>l?ut(t,null==r[d+1]?null:r[d+1].$elm$,n,r,s,d):s>d&&ct(e,a,l)},ft=function(t,e){return t.$tag$===e.$tag$&&("slot"===t.$tag$?t.$name$===e.$name$:t.$key$===e.$key$)},ht=function(t){return t&&t["s-ol"]||t},dt=function(t){return(t["s-ol"]?t["s-ol"]:t).parentNode},pt=function(t,e){var n,r=e.$elm$=t.$elm$,i=t.$children$,o=e.$children$,a=e.$tag$,s=e.$text$;null===s?(f="svg"===a||"foreignObject"!==a&&f,"slot"===a||ot(t,e,f),null!==i&&null!==o?lt(r,i,e,o):null!==o?(null!==t.$text$&&(r.textContent=""),ut(r,null,e,o,0,o.length-1)):null!==i&&ct(i,0,i.length-1),f&&"svg"===a&&(f=!1)):(n=r["s-cr"])?n.parentNode.textContent=s:t.$text$!==s&&(r.data=s)},vt=function(t){var e,n,r,i,o,a,s=t.childNodes;for(n=0,r=s.length;n<r;n++)if(e=s[n],1===e.nodeType){if(e["s-sr"])for(o=e["s-sn"],e.hidden=!1,i=0;i<r;i++)if(a=s[i].nodeType,s[i]["s-hn"]!==e["s-hn"]||""!==o){if(1===a&&o===s[i].getAttribute("slot")){e.hidden=!0;break}}else if(1===a||3===a&&""!==s[i].textContent.trim()){e.hidden=!0;break}vt(e)}},gt=[],mt=function(t){for(var e,n,r,i,o,a,s=0,u=t.childNodes,l=u.length;s<l;s++){if(e=u[s],e["s-sr"]&&(n=e["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,i=e["s-sn"],a=r.length-1;a>=0;a--)n=r[a],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(yt(n,i)?(o=gt.find((function(t){return t.$nodeToRelocate$===n})),c=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=e:gt.push({$slotRefNode$:e,$nodeToRelocate$:n}),n["s-sr"]&&gt.map((function(t){yt(t.$nodeToRelocate$,n["s-sn"])&&(o=gt.find((function(t){return t.$nodeToRelocate$===n})),o&&!t.$slotRefNode$&&(t.$slotRefNode$=o.$slotRefNode$))}))):gt.some((function(t){return t.$nodeToRelocate$===n}))||gt.push({$nodeToRelocate$:n}));1===e.nodeType&&mt(e)}},yt=function(t,e){return 1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e},bt=function(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(bt)},wt=function(t,e){var n=t.$hostElement$,a=t.$cmpMeta$,s=t.$vnode$||Y(null,null),f=J(e)?e:X(null,null,e);if(o=n.tagName,a.$attrsToReflect$&&(f.$attrs$=f.$attrs$||{},a.$attrsToReflect$.map((function(t){var e=t[0],r=t[1];return f.$attrs$[r]=n[e]}))),f.$tag$=null,f.$flags$|=4,t.$vnode$=f,f.$elm$=s.$elm$=n.shadowRoot||n,r=n["s-sc"],i=n["s-cr"],u=m&&0!==(1&a.$flags$),c=!1,pt(s,f),g.$flags$|=1,l){mt(f.$elm$);for(var h=void 0,d=void 0,p=void 0,y=void 0,b=void 0,w=void 0,_=0;_<gt.length;_++)h=gt[_],d=h.$nodeToRelocate$,d["s-ol"]||(p=v.createTextNode(""),p["s-nr"]=d,d.parentNode.insertBefore(d["s-ol"]=p,d));for(_=0;_<gt.length;_++)if(h=gt[_],d=h.$nodeToRelocate$,h.$slotRefNode$){y=h.$slotRefNode$.parentNode,b=h.$slotRefNode$.nextSibling,p=d["s-ol"];while(p=p.previousSibling)if(w=p["s-nr"],w&&w["s-sn"]===d["s-sn"]&&y===w.parentNode&&(w=w.nextSibling,!w||!w["s-nr"])){b=w;break}(!b&&y!==d.parentNode||d.nextSibling!==b)&&d!==b&&(!d["s-hn"]&&d["s-ol"]&&(d["s-hn"]=d["s-ol"].parentNode.nodeName),y.insertBefore(d,b))}else 1===d.nodeType&&(d.hidden=!0)}c&&vt(f.$elm$),g.$flags$&=-2,gt.length=0},_t=function(t){return Yt(t).$hostElement$},Et=function(t,e,n){var r=_t(t);
1575return{emit:function(t){return Ot(r,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}}},Ot=function(t,e,n){var r=g.ce(e,n);return t.dispatchEvent(r),r},It=function(t,e){e&&!t.$onRenderResolve$&&e["s-p"]&&e["s-p"].push(new Promise((function(e){return t.$onRenderResolve$=e})))},Tt=function(t,e){if(t.$flags$|=16,!(4&t.$flags$)){It(t,t.$ancestorComponent$);var n=function(){return St(t,e)};return he(n)}t.$flags$|=512},St=function(t,e){var n,r=P("scheduleUpdate",t.$cmpMeta$.$tagName$),i=t.$lazyInstance$;return e&&(t.$flags$|=256,t.$queuedListeners$&&(t.$queuedListeners$.map((function(t){var e=t[0],n=t[1];return Nt(i,e,n)})),t.$queuedListeners$=null),n=Nt(i,"componentWillLoad")),n=Pt(n,(function(){return Nt(i,"componentWillRender")})),r(),Pt(n,(function(){return kt(t,i,e)}))},kt=function(t,e,n){return Object(a["a"])(void 0,void 0,void 0,(function(){var r,i,o,s,u,c;return Object(a["c"])(this,(function(a){return r=t.$hostElement$,i=P("update",t.$cmpMeta$.$tagName$),o=r["s-rc"],n&&F(t),s=P("render",t.$cmpMeta$.$tagName$),Ct(t,e),g.$cssShim$&&g.$cssShim$.updateHost(r),o&&(o.map((function(t){return t()})),r["s-rc"]=void 0),s(),i(),u=r["s-p"],c=function(){return xt(t)},0===u.length?c():(Promise.all(u).then(c),t.$flags$|=4,u.length=0),[2]}))}))},Ct=function(t,e,n){try{e=e.render&&e.render(),t.$flags$&=-17,t.$flags$|=2,wt(t,e)}catch(r){te(r,t.$hostElement$)}return null},xt=function(t){var e=t.$cmpMeta$.$tagName$,n=t.$hostElement$,r=P("postUpdate",e),i=t.$lazyInstance$,o=t.$ancestorComponent$;64&t.$flags$?(Nt(i,"componentDidUpdate"),r()):(t.$flags$|=64,Rt(n),Nt(i,"componentDidLoad"),r(),t.$onReadyResolve$(n),o||At()),t.$onInstanceResolve$(n),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),512&t.$flags$&&le((function(){return Tt(t,!1)})),t.$flags$&=-517},jt=function(t){var e=Yt(t),n=e.$hostElement$.isConnected;return n&&2===(18&e.$flags$)&&Tt(e,!1),n},At=function(t){Rt(v.documentElement),le((function(){return Ot(d,"appload",{detail:{namespace:s}})}))},Nt=function(t,e,n){if(t&&t[e])try{return t[e](n)}catch(r){te(r)}},Pt=function(t,e){return t&&t.then?t.then(e):e()},Rt=function(t){return t.classList.add("hydrated")},Dt=function(t,e,n,r){var i=P("hydrateClient",e),o=t.shadowRoot,a=[],s=[],u=o?[]:null,c=r.$vnode$=Y(e,null);g.$orgLocNodes$||Mt(v.body,g.$orgLocNodes$=new Map),t[C]=n,t.removeAttribute(C),Lt(c,a,s,u,t,t,n),a.map((function(t){var n=t.$hostId$+"."+t.$nodeId$,r=g.$orgLocNodes$.get(n),i=t.$elm$;r&&m&&""===r["s-en"]&&r.parentNode.insertBefore(i,r.nextSibling),o||(i["s-hn"]=e,r&&(i["s-ol"]=r,i["s-ol"]["s-nr"]=i)),g.$orgLocNodes$.delete(n)})),o&&u.map((function(t){t&&o.appendChild(t)})),i()},Lt=function(t,e,n,r,i,o,a){var s,u,c,l;if(1===o.nodeType){for(s=o.getAttribute(j),s&&(u=s.split("."),u[0]!==a&&"0"!==u[0]||(c={$flags$:0,$hostId$:u[0],$nodeId$:u[1],$depth$:u[2],$index$:u[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},e.push(c),o.removeAttribute(j),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,t=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))),l=o.childNodes.length-1;l>=0;l--)Lt(t,e,n,r,i,o.childNodes[l],a);if(o.shadowRoot)for(l=o.shadowRoot.childNodes.length-1;l>=0;l--)Lt(t,e,n,r,i,o.shadowRoot.childNodes[l],a)}else if(8===o.nodeType)u=o.nodeValue.split("."),u[1]!==a&&"0"!==u[1]||(s=u[0],c={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},s===k?(c.$elm$=o.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,e.push(c),o.remove(),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===a&&(s===S?(c.$tag$="slot",u[5]?o["s-sn"]=c.$name$=u[5]:o["s-sn"]="",o["s-sr"]=!0,r&&(c.$elm$=v.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),o.parentNode.insertBefore(c.$elm$,o),o.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),n.push(c),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c):s===I&&(r?o.remove():(i["s-cr"]=o,o["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var f=Y(null,o.textContent);f.$elm$=o,f.$index$="0",t.$children$=[f]}},Mt=function(t,e){if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n++)Mt(t.childNodes[n],e);if(t.shadowRoot)for(n=0;n<t.shadowRoot.childNodes.length;n++)Mt(t.shadowRoot.childNodes[n],e)}
1575else if(8===t.nodeType){var r=t.nodeValue.split(".");r[0]===T&&(e.set(r[1]+"."+r[2],t),t.nodeValue="",t["s-en"]=r[3])}},Ft=function(t,e){return null==t||G(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?String(t):t},Ut=function(t,e){return Yt(t).$instanceValues$.get(e)},qt=function(t,e,n,r){var i=Yt(t),o=i.$hostElement$,a=i.$instanceValues$.get(e),s=i.$flags$,u=i.$lazyInstance$;if(n=Ft(n,r.$members$[e][0]),(!(8&s)||void 0===a)&&n!==a&&(i.$instanceValues$.set(e,n),u)){if(r.$watchers$&&128&s){var c=r.$watchers$[e];c&&c.map((function(t){try{u[t](n,a,e)}catch(r){te(r,o)}}))}2===(18&s)&&Tt(i,!1)}},$t=function(t,e,n){if(e.$members$){t.watchers&&(e.$watchers$=t.watchers);var r=Object.entries(e.$members$),i=t.prototype;if(r.map((function(t){var r=t[0],o=t[1][0];31&o||2&n&&32&o?Object.defineProperty(i,r,{get:function(){return Ut(this,r)},set:function(t){qt(this,r,t,e)},configurable:!0,enumerable:!0}):1&n&&64&o&&Object.defineProperty(i,r,{value:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Yt(this);return n.$onInstancePromise$.then((function(){var e;return(e=n.$lazyInstance$)[r].apply(e,t)}))}})})),1&n){var o=new Map;i.attributeChangedCallback=function(t,e,n){var r=this;g.jmp((function(){var e=o.get(t);r[e]=(null!==n||"boolean"!==typeof r[e])&&n}))},t.observedAttributes=r.filter((function(t){t[0];var e=t[1];return 15&e[0]})).map((function(t){var n=t[0],r=t[1],i=r[1]||n;return o.set(i,n),512&r[0]&&e.$attrsToReflect$.push([n,i]),i}))}}return t},Bt=function(t,e,r,i,o){return Object(a["a"])(void 0,void 0,void 0,(function(){var i,s,u,c,l,f,h;return Object(a["c"])(this,(function(a){switch(a.label){case 0:return 0!==(32&e.$flags$)?[3,5]:(e.$flags$|=32,o=ne(r),o.then?(i=R(),[4,o]):[3,2]);case 1:o=a.sent(),i(),a.label=2;case 2:o.isProxied||(r.$watchers$=o.watchers,$t(o,r,2),o.isProxied=!0),s=P("createInstance",r.$tagName$),e.$flags$|=8;try{new o(e)}catch(d){te(d)}return e.$flags$&=-9,e.$flags$|=128,s(),Vt(e.$lazyInstance$),o.style?(u=o.style,"string"!==typeof u&&(u=u[e.$modeName$=$(t)]),c=U(r,e.$modeName$),re.has(c)?[3,5]:(l=P("registerStyles",r.$tagName$),8&r.$flags$?[4,n.e("chunk-2d237b00").then(n.bind(null,"fbd2")).then((function(t){return t.scopeCss(u,c,!1)}))]:[3,4])):[3,5];case 3:u=a.sent(),a.label=4;case 4:L(c,u,!!(1&r.$flags$)),l(),a.label=5;case 5:return f=e.$ancestorComponent$,h=function(){return Tt(e,!0)},f&&f["s-rc"]?f["s-rc"].push(h):h(),[2]}}))}))},Vt=function(t){Nt(t,"connectedCallback")},Kt=function(t){if(0===(1&g.$flags$)){var e=Yt(t),n=e.$cmpMeta$,r=P("connectedCallback",n.$tagName$);if(1&e.$flags$)w(t,e,n.$listeners$),Vt(e.$lazyInstance$);else{e.$flags$|=1;var i=void 0;if(i=t.getAttribute(C),i){if(m&&1&n.$flags$){var o=M(t.shadowRoot,n,t.getAttribute("s-mode"));t.classList.remove(o+"-h",o+"-s")}Dt(t,n.$tagName$,i,e)}i||12&n.$flags$&&Wt(t);var a=t;while(a=a.parentNode||a.host)if(1===a.nodeType&&a.hasAttribute("s-id")&&a["s-p"]||a["s-p"]){It(e,e.$ancestorComponent$=a);break}n.$members$&&Object.entries(n.$members$).map((function(e){var n=e[0],r=e[1][0];if(31&r&&t.hasOwnProperty(n)){var i=t[n];delete t[n],t[n]=i}})),le((function(){return Bt(t,e,n)}))}r()}},Wt=function(t){var e=t["s-cr"]=v.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},zt=function(t){if(0===(1&g.$flags$)){var e=Yt(t),n=e.$lazyInstance$;e.$rmListeners$&&(e.$rmListeners$.map((function(t){return t()})),e.$rmListeners$=void 0),g.$cssShim$&&g.$cssShim$.removeHost(t),Nt(n,"disconnectedCallback")}},Ht=function(t,e){void 0===e&&(e={});var n,r=P(),i=[],o=e.exclude||[],s=d.customElements,u=v.head,c=u.querySelector("meta[charset]"),l=v.createElement("style"),f=[],h=v.querySelectorAll("["+x+"]"),p=!0,y=0;for(Object.assign(g,e),g.$resourcesUrl$=new URL(e.resourcesUrl||"./",v.baseURI).href,g.$flags$|=2;y<h.length;y++)L(h[y].getAttribute(x),q(h[y].innerHTML),!0);t.map((function(t){return t[1].map((function(e){var r={$flags$:e[0],$tagName$:e[1],$members$:e[2],$listeners$:e[3]};r.$members$=e[2],r.$listeners$=e[3],r.$attrsToReflect$=[],r.$watchers$={},!m&&1&r.$flags$&&(r.$flags$|=8);var u=r.$tagName$,c=function(t){function e(e){var n=t.call(this,e)||this;return e=n,Jt(e,r),1&r.$flags$&&(m?e.attachShadow({mode:"open",delegatesFocus:!!(16&r.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e)),n}return Object(a["b"])(e,t),e.prototype.connectedCallback=function(){var t=this;n&&(clearTimeout(n),n=null),p?f.push(this):g.jmp((function(){return Kt(t)}))},e.prototype.disconnectedCallback=function(){var t=this;g.jmp((function(){return zt(t)}))},e.prototype.componentOnReady=function(){return Yt(this).$onReadyPromise$},e}(HTMLElement);r.$lazyBundleId$=t[0],o.includes(u)||s.get(u)||(i.push(u),s.define(u,$t(c,r,1)))}))})),l.innerHTML=i+A,l.setAttribute("data-styles",""),u.insertBefore(l,c?c.nextSibling:u.firstChild),p=!1,f.length?f.map((function(t){return t.connectedCallback()})):g.jmp((function(){return n=setTimeout(At,30)})),r()},Gt=function(t){var e=new URL(t,g.$resourcesUrl$);return e.origin!==d.location.origin?e.href:e.pathname},Xt=new WeakMap,Yt=function(t){return Xt.get(t)}
1575,Qt=function(t,e){return Xt.set(e.$lazyInstance$=t,e)},Jt=function(t,e){var n={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise((function(t){return n.$onInstanceResolve$=t})),n.$onReadyPromise$=new Promise((function(t){return n.$onReadyResolve$=t})),t["s-p"]=[],t["s-rc"]=[],w(t,n,e.$listeners$),Xt.set(t,n)},Zt=function(t,e){return e in t},te=function(t,e){return(0,console.error)(t,e)},ee=new Map,ne=function(t,e,r){var i=t.$tagName$.replace(/-/g,"_"),o=t.$lazyBundleId$,a=ee.get(o);return a?a[i]:n("aa55")("./"+o+".entry.js").then((function(t){return ee.set(o,t),t[i]}),te)},re=new Map,ie=[],oe=[],ae=[],se=function(t,e){return function(n){t.push(n),h||(h=!0,e&&4&g.$flags$?le(ce):g.raf(ce))}},ue=function(t){for(var e=0;e<t.length;e++)try{t[e](performance.now())}catch(n){te(n)}t.length=0},ce=function(){ue(oe),ue(ae),(h=oe.length>0)&&g.raf(ce)},le=function(t){return y().then(t)},fe=se(oe,!1),he=se(ae,!0),de={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},"6d4d":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n("f530"),i=n("5ea3"),o=n("61cf"),a=n("7d8d"),s=n("ef7a"),u=function(t){return Object(s["a"])().duration(t?400:300)},c=function(t){var e,n,r=t.width+8,i=Object(s["a"])(),o=Object(s["a"])();t.isEndSide?(e=r+"px",n="0px"):(e=-r+"px",n="0px"),i.addElement(t.menuInnerEl).fromTo("transform","translateX("+e+")","translateX("+n+")");var c=Object(a["b"])(t),l="ios"===c,f=l?.2:.25;return o.addElement(t.backdropEl).fromTo("opacity",.01,f),u(l).addAnimation([i,o])},l=function(t){var e,n,r=Object(a["b"])(t),i=t.width;t.isEndSide?(e=-i+"px",n=i+"px"):(e=i+"px",n=-i+"px");var o=Object(s["a"])().addElement(t.menuInnerEl).fromTo("transform","translateX("+n+")","translateX(0px)"),c=Object(s["a"])().addElement(t.contentEl).fromTo("transform","translateX(0px)","translateX("+e+")"),l=Object(s["a"])().addElement(t.backdropEl).fromTo("opacity",.01,.32);return u("ios"===r).addAnimation([o,c,l])},f=function(t){var e=Object(a["b"])(t),n=t.width*(t.isEndSide?-1:1)+"px",r=Object(s["a"])().addElement(t.contentEl).fromTo("transform","translateX(0px)","translateX("+n+")");return u("ios"===e).addAnimation(r)},h=function(){var t=new Map,e=[],n=function(t){return Object(r["a"])(void 0,void 0,void 0,(function(){var e;return Object(r["c"])(this,(function(n){switch(n.label){case 0:return[4,v(t)];case 1:return e=n.sent(),e?[2,e.open()]:[2,!1]}}))}))},a=function(t){return Object(r["a"])(void 0,void 0,void 0,(function(){var e;return Object(r["c"])(this,(function(n){switch(n.label){case 0:return[4,void 0!==t?v(t):g()];case 1:return e=n.sent(),void 0!==e?[2,e.close()]:[2,!1]}}))}))},s=function(t){return Object(r["a"])(void 0,void 0,void 0,(function(){var e;return Object(r["c"])(this,(function(n){switch(n.label){case 0:return[4,v(t)];case 1:return e=n.sent(),e?[2,e.toggle()]:[2,!1]}}))}))},u=function(t,e){return Object(r["a"])(void 0,void 0,void 0,(function(){var n;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return[4,v(e)];case 1:return n=r.sent(),n&&(n.disabled=!t),[2,n]}}))}))},h=function(t,e){return Object(r["a"])(void 0,void 0,void 0,(function(){var n;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return[4,v(e)];case 1:return n=r.sent(),n&&(n.swipeGesture=t),[2,n]}}))}))},d=function(t){return Object(r["a"])(void 0,void 0,void 0,(function(){var e;return Object(r["c"])(this,(function(n){switch(n.label){case 0:return null==t?[3,2]:[4,v(t)];case 1:return e=n.sent(),[2,void 0!==e&&e.isOpen()];case 2:return[4,g()];case 3:return e=n.sent(),[2,void 0!==e]}}))}))},p=function(t){return Object(r["a"])(void 0,void 0,void 0,(function(){var e;return Object(r["c"])(this,(function(n){switch(n.label){case 0:return[4,v(t)];case 1:return e=n.sent(),e?[2,!e.disabled]:[2,!1]}}))}))},v=function(t){return Object(r["a"])(void 0,void 0,void 0,(function(){var n,i;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return[4,x()];case 1:return r.sent(),"start"===t||"end"===t?(n=C((function(e){return e.side===t&&!e.disabled})),n?[2,n]:[2,C((function(e){return e.side===t}))]):null!=t?[2,C((function(e){return e.menuId===t}))]:(i=C((function(t){return!t.disabled})),i?[2,i]:[2,e.length>0?e[0].el:void 0])}}))}))},g=function(){return Object(r["a"])(void 0,void 0,void 0,(function(){return Object(r["c"])(this,(function(t){switch(t.label){case 0:return[4,x()];case 1:return t.sent(),[2,T()]}}))}))},m=function(){return Object(r["a"])(void 0,void 0,void 0,(function(){return Object(r["c"])(this,(function(t){switch(t.label){case 0:return[4,x()];case 1:return t.sent(),[2,S()]}}))}))},y=function(){return Object(r["a"])(void 0,void 0,void 0,(function(){return Object(r["c"])(this,(function(t){switch(t.label){case 0:return[4,x()];case 1:return t.sent(),[2,k()]}}))}))},b=function(e,n){t.set(e,n)},w=function(t){e.indexOf(t)<0&&(t.disabled||E(t),e.push(t))},_=function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},E=function(t){var n=t.side;e.filter((function(e){return e.side===n&&e!==t}
1575)).forEach((function(t){return t.disabled=!0}))},O=function(t,e,n){return Object(r["a"])(void 0,void 0,void 0,(function(){var i;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return k()?[2,!1]:e?[4,g()]:[3,3];case 1:return i=r.sent(),i&&t.el!==i?[4,i.setOpen(!1,!1)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[2,t._setOpen(e,n)]}}))}))},I=function(e,n){var r=t.get(e);if(!r)throw new Error("animation not registered");var i=r(n);return i},T=function(){return C((function(t){return t._isOpen}))},S=function(){return e.map((function(t){return t.el}))},k=function(){return e.some((function(t){return t.isAnimating}))},C=function(t){var n=e.find(t);if(void 0!==n)return n.el},x=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map((function(t){return new Promise((function(e){return Object(o["c"])(t,e)}))})))};return b("reveal",f),b("push",l),b("overlay",c),"undefined"!==typeof document&&document.addEventListener("ionBackButton",(function(t){var e=T();e&&t.detail.register(i["MENU_BACK_BUTTON_PRIORITY"],(function(){return e.close()}))})),{registerAnimation:b,get:v,getMenus:m,getOpen:g,isEnabled:p,swipeGesture:h,isAnimating:y,isOpen:d,enable:u,toggle:s,close:a,open:n,_getOpenSync:T,_createAnimation:I,_register:w,_unregister:_,_setOpen:O,_setActiveMenu:E}},d=h()},"6eeb":function(t,e,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),u=n("69f3"),c=u.get,l=u.enforce,f=String(String).split("String");(t.exports=function(t,e,n,s){var u,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),u=l(n),u.source||(u.source=f.join("string"==typeof e?e:""))),t!==r?(c?!d&&t[e]&&(h=!0):delete t[e],h?t[e]=n:i(t,e,n)):h?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},"6f53":function(t,e,n){var r=n("83ab"),i=n("df75"),o=n("fc6a"),a=n("d1e7").f,s=function(t){return function(e){var n,s=o(e),u=i(s),c=u.length,l=0,f=[];while(c>l)n=u[l++],r&&!a.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}};t.exports={entries:s(!0),values:s(!1)}},7274:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a}));var r,i,o=n("1547");(function(t){t["Dark"]="DARK",t["Light"]="LIGHT",t["Default"]="DEFAULT"})(r||(r={})),function(t){t["None"]="NONE",t["Slide"]="SLIDE",t["Fade"]="FADE"}(i||(i={}));const a=Object(o["b"])("StatusBar")},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,n){var r=n("428f"),i=n("5135"),o=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},7503:function(t,e,n){"use strict";n.r(e),n.d(e,"parse",(function(){return v})),n.d(e,"stringify",(function(){return g}));
1576/*! (c) 2020 Andrea Giammarchi */
1577const{parse:r,stringify:i}=JSON,{keys:o}=Object,a=String,s="string",u={},c="object",l=(t,e)=>e,f=t=>t instanceof a?a(t):t,h=(t,e)=>typeof e===s?new a(e):e,d=(t,e,n,r)=>{const i=[];for(let s=o(n),{length:l}=s,f=0;f<l;f++){const o=s[f],l=n[o];if(l instanceof a){const a=t[l];typeof a!==c||e.has(a)?n[o]=r.call(n,o,a):(e.add(a),n[o]=u,i.push({k:o,a:[t,e,a,r]}))}else n[o]!==u&&(n[o]=r.call(n,o,l))}for(let{length:o}=i,a=0;a<o;a++){const{k:t,a:e}=i[a];n[t]=r.call(n,t,d.apply(null,e))}return n},p=(t,e,n)=>{const r=a(e.push(n)-1);return t.set(n,r),r},v=(t,e)=>{const n=r(t,h).map(f),i=n[0],o=e||l,a=typeof i===c&&i?d(n,new Set,i,o):i;return o.call({"":a},"",a)},g=(t,e,n)=>{const r=e&&typeof e===c?(t,n)=>""===t||-1<e.indexOf(t)?n:void 0:e||l,o=new Map,a=[],u=[];let f=+p(o,a,r.call({"":t},"",t)),h=!f;while(f<a.length)h=!0,u[f]=i(a[f++],d,n);return"["+u.join(",")+"]";function d(t,e){if(h)return h=!h,e;const n=r.call(this,t,e);switch(typeof n){case c:if(null===n)return n;case s:return o.get(n)||p(o,a,n)}return n}}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a23":function(t,e,n){"use strict";n.d(e,"m",(function(){return yt})),n.d(e,"n",(function(){return bt})),n.d(e,"o",(function(){return Ot})),n.d(e,"B",(function(){return pt})),n.d(e,"C",(function(){return It})),n.d(e,"G",(function(){return Tt})),n.d(e,"I",(function(){return Ct})),n.d(e,"H",(function(){return r["I"]})),n.d(e,"a",(function(){return sr})),n.d(e,"b",(function(){return Zn})),n.d(e,"c",(function(){return li})),n.d(e,"e",(function(){return gr})),n.d(e,"f",(function(){return Sr})),n.d(e,"g",(function(){return Tr})),n.d(e,"h",(function(){return Er})),n.d(e,"i",(function(){return Ln})),n.d(e,"j",(function(){return Qr})),n.d(e,"k",(function(){return fi})),n.d(e,"l",(function(){return Nr})),n.d(e,"p",(function(){return jr})),n.d(e,"q",(function(){return Jt})),n.d(e,"r",(function(){return mn})),n.d(e,"s",(function(){return Ke})),n.d(e,"t",(function(){return Ge})),n.d(e,"u",(function(){return yn})),n.d(e,"v",(function(){return We})),n.d(e,"w",(function(){return Xe})),n.d(e,"x",(function(){return dr})),n.d(e,"y",(function(){return be})),n.d(e,"z",(function(){return Ar})),n.d(e,"A",(function(){return ye})),n.d(e,"D",(function(){return hi})),n.d(e,"E",(function(){return nr})),n.d(e,"F",(function(){return ir})),n.d(e,"J",(function(){return tn})),n.d(e,"K",(function(){return _e})),n.d(e,"L",(function(){return jn})),n.d(e,"M",(function(){return we})),n.d(e,"d",(function(){return fo}));var r=n("9ff4");const i=new WeakMap,o=[];let a;const s=Symbol(""),u=Symbol("");function c(t){return t&&!0===t._isEffect}function l(t,e=r["b"]){c(t)&&(t=t.raw);const n=d(t,e);return e.lazy||n(),n}function f(t){t.active&&(p(t),t.options.onStop&&t.options.onStop(),t.active=!1)}let h=0;function d(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!o.includes(n)){p(n);try{return y(),o.push(n),a=n,t()}finally{o.pop(),b(),a=o[o.length-1]}}};return n.id=h++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}function p(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let v=!0;const g=[];function m(){g.push(v),v=!1}function y(){g.push(v),v=!0}function b(){const t=g.pop();v=void 0===t||t}function w(t,e,n){if(!v||void 0===a)return;let r=i.get(t);r||i.set(t,r=new Map);let o=r.get(n);o||r.set(n,o=new Set),o.has(a)||(o.add(a),a.deps.push(o))}function _(t,e,n,o,c,l){const f=i.get(t);if(!f)return;const h=new Set,d=t=>{t&&t.forEach(t=>{(t!==a||t.allowRecurse)&&h.add(t)})};if("clear"===e)f.forEach(d);else if("length"===n&&Object(r["m"])(t))f.forEach((t,e)=>{("length"===e||e>=o)&&d(t)});else switch(void 0!==n&&d(f.get(n)),e){case"add":Object(r["m"])(t)?Object(r["q"])(n)&&d(f.get("length")):(d(f.get(s)),Object(r["r"])(t)&&d(f.get(u)));break;case"delete":Object(r["m"])(t)||(d(f.get(s)),Object(r["r"])(t)&&d(f.get(u)));break;case"set":Object(r["r"])(t)&&d(f.get(s));break}const p=t=>{t.options.scheduler?t.options.scheduler(t):t()};h.forEach(p)}const E=Object(r["E"])("__proto__,__v_isRef,__isVue"),O=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(r["B"])),I=x(),T=x(!1,!0),S=x(!0),k=x(!0,!0),C={};function x(t=!1,e=!1){return function(n,i,o){if("__v_isReactive"===i)return!t;if("__v_isReadonly"===i)return t;if("__v_raw"===i&&o===(t?e?ft:lt:e?ct:ut).get(n))return n;const a=Object(r["m"])(n);if(!t&&a&&Object(r["j"])(C,i))return Reflect.get(C,i,o);const s=Reflect.get(n,i,o);if(Object(r["B"])(i)?O.has(i):E(i))return s;if(t||w(n,"get",i),e)return s;if(Ot(s)){const t=!a||!Object(r["q"])(i);return t?s.value:s}return Object(r["t"])(s)?t?gt(s):pt(s):s}}["includes","indexOf","lastIndexOf"].forEach(t=>{const e=Array.prototype[t];C[t]=function(...t){const n=_t(this);for(let e=0,i=this.length;e<i;e++)w(n,"get",e+"");const r=e.apply(n,t);return-1===r||!1===r?e.apply(n,t.map(_t)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{const e=Array.prototype[t];C[t]=function(...t){m();const n=e.apply(this,t);return b(),n}});const j=N(),A=N(!0);function N(t=!1){return function(e,n,i,o){let a=e[n];if(!t&&(i=_t(i),a=_t(a),!Object(r["m"])(e)&&Ot(a)&&!Ot(i)))return a.value=i,!0;const s=Object(r["m"])(e)&&Object(r["q"])(n)?Number(n)<e.length:Object(r["j"])(e,n),u=Reflect.set(e,n,i,o);return e===_t(o)&&(s?Object(r["i"])(i,a)&&_(e,"set",n,i,a):_(e,"add",n,i)),u}}function P(t,e){const n=Object(r["j"])(t,e),i=t[e],o=Reflect.deleteProperty(t,e);return o&&n&&_(t,"delete",e,void 0,i),o}function R(t,e){const n=Reflect.has(t,e);return Object(r["B"])(e)&&O.has(e)||w(t,"has",e),n}function D(t){return w(t,"iterate",Object(r["m"])(t)?"length":s),Reflect.ownKeys(t)}const L={get:I,set:j,deleteProperty:P,has:R,ownKeys:D},M={get:S,set(t,e){return!0},deleteProperty(t,e){return!0}},F=Object(r["h"])({},L,{get:T,set:A}),U=(Object(r["h"])({},M,{get:k}),t=>Object(r["t"])(t)?pt(t):t),q=t=>Object(r["t"])(t)?gt(t):t,$=t=>t,B=t=>Reflect.getPrototypeOf(t);function V(t,e,n=!1,r=!1){t=t["__v_raw"];const i=_t(t),o=_t(e);e!==o&&!n&&w(i,"get",e),!n&&w(i,"get",o);const{has:a}=B(i),s=r?$:n?q:U;return a.call(i,e)?s(t.get(e)):a.call(i,o)?s(t.get(o)):void 0}function K(t,e=!1){const n=this["__v_raw"],r=_t(n),i=_t(t);return t!==i&&!e&&w(r,"has",t),!e&&w(r,"has",i),t===i?n.has(t):n.has(t)||n.has(i)}function W(t,e=!1){return t=t["__v_raw"],!e&&w(_t(t),"iterate",s),Reflect.get(t,"size",t)}function z(t){t=_t(t);const e=_t(this),n=B(e),r=n.has.call(e,t);return r||(e.add(t),_(e,"add",t,t)),this}function H(t,e){e=_t(e);const n=_t(this),{has:i,get:o}=B(n);let a=i.call(n,t);a||(t=_t(t),a=i.call(n,t));const s=o.call(n,t);return n.set(t,e),a?Object(r["i"])(e,s)&&_(n,"set",t,e,s):_(n,"add",t,e),this}function G(t){const e=_t(this),{has:n,get:r}=B(e);let i=n.call(e,t);i||(t=_t(t),i=n.call(e,t));const o=r?r.call(e,t):void 0,a=e.delete(t);return i&&_(e,"delete",t,void 0,o),a}function X(){const t=_t(this),e=0!==t.size,n=void 0,r=t.clear();return e&&_(t,"clear",void 0,void 0,n),r}function Y(t,e){return function(n,r){const i=this,o=i["__v_raw"],a=_t(o),u=e?$:t?q:U;return!t&&w(a,"iterate",s),o.forEach((t,e)=>n.call(r,u(t),u(e),i))}}function Q(t,e,n){return function(...i){const o=this["__v_raw"],a=_t(o),c=Object(r["r"])(a),l="entries"===t||t===Symbol.iterator&&c,f="keys"===t&&c,h=o[t](...i),d=n?$:e?q:U;return!e&&w(a,"iterate",f?u:s),{next(){const{value:t,done:e}=h.next();return e?{value:t,done:e}:{value:l?[d(t[0]),d(t[1])]:d(t),done:e}},[Symbol.iterator](){return this}}}}function J(t){return function(...e){return"delete"!==t&&this}}const Z={get(t){return V(this,t)},get size(){return W(this)},has:K,add:z,set:H,delete:G,clear:X,forEach:Y(!1,!1)},tt={get(t){return V(this,t,!1,!0)},get size(){return W(this)},has:K,add:z,set:H,delete:G,clear:X,forEach:Y(!1,!0)},et={get(t){return V(this,t,!0)},get size(){return W(this,!0)},has(t){return K.call(this,t,!0)},add:J("add"),set:J("set"),delete:J("delete"),clear:J("clear"),forEach:Y(!0,!1)},nt={get(t){return V(this,t,!0,!0)},get size(){return W(this,!0)},has(t){return K.call(this,t,!0)},add:J("add"),set:J("set"),delete:J("delete"),clear:J("clear"),forEach:Y(!0,!0)},rt=["keys","values","entries",Symbol.iterator];function it(t,e){const n=e?t?nt:tt:t?et:Z;return(e,i,o)=>"__v_isReactive"===i?!t:"__v_isReadonly"===i?t:"__v_raw"===i?e:Reflect.get(Object(r["j"])(n,i)&&i in e?n:e,i,o)}rt.forEach(t=>{Z[t]=Q(t,!1,!1),et[t]=Q(t,!0,!1),tt[t]=Q(t,!1,!0),nt[t]=Q(t,!0,!0)});const ot={get:it(!1,!1)},at={get:it(!1,!0)},st={get:it(!0,!1)};it(!0,!0);const ut=new WeakMap,ct=new WeakMap,lt=new WeakMap,ft=new WeakMap;function ht(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dt(t){return t["__v_skip"]||!Object.isExtensible(t)?0:ht(Object(r["L"])(t))}function pt(t){return t&&t["__v_isReadonly"]?t:mt(t,!1,L,ot,ut)}function vt(t){return mt(t,!1,F,at,ct)}function gt(t){return mt(t,!0,M,st,lt)}function mt(t,e,n,i,o){if(!Object(r["t"])(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const a=o.get(t);if(a)return a;const s=dt(t);if(0===s)return t;const u=new Proxy(t,2===s?i:n);return o.set(t,u),u}function yt(t){return bt(t)?yt(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function bt(t){return!(!t||!t["__v_isReadonly"])}function wt(t){return yt(t)||bt(t)}function _t(t){return t&&_t(t["__v_raw"])||t}const Et=t=>Object(r["t"])(t)?pt(t):t;function Ot(t){return Boolean(t&&!0===t.__v_isRef)}function It(t){return kt(t)}function Tt(t){return kt(t,!0)}class St{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:Et(t)}
1577get value(){return w(_t(this),"get","value"),this._value}set value(t){Object(r["i"])(_t(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Et(t),_(_t(this),"set","value",t))}}function kt(t,e=!1){return Ot(t)?t:new St(t,e)}function Ct(t){return Ot(t)?t.value:t}const xt={get:(t,e,n)=>Ct(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return Ot(i)&&!Ot(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function jt(t){return yt(t)?t:new Proxy(t,xt)}class At{constructor(t,e){this._object=t,this._key=e,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(t){this._object[this._key]=t}}function Nt(t,e){return Ot(t[e])?t[e]:new At(t,e)}class Pt{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=l(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,_(_t(this),"set","value"))}}),this["__v_isReadonly"]=n}get value(){const t=_t(this);return t._dirty&&(t._value=this.effect(),t._dirty=!1),w(t,"get","value"),t._value}set value(t){this._setter(t)}}function Rt(t){let e,n;return Object(r["n"])(t)?(e=t,n=r["d"]):(e=t.get,n=t.set),new Pt(e,n,Object(r["n"])(t)||!t.set)}function Dt(t,e,n,r){let i;try{i=r?t(...r):t()}catch(o){Mt(o,e,n)}return i}function Lt(t,e,n,i){if(Object(r["n"])(t)){const o=Dt(t,e,n,i);return o&&Object(r["v"])(o)&&o.catch(t=>{Mt(t,e,n)}),o}const o=[];for(let r=0;r<t.length;r++)o.push(Lt(t[r],e,n,i));return o}function Mt(t,e,n,r=!0){const i=e?e.vnode:null;if(e){let r=e.parent;const i=e.proxy,o=n;while(r){const e=r.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,i,o))return;r=r.parent}const a=e.appContext.config.errorHandler;if(a)return void Dt(a,null,10,[t,i,o])}Ft(t,n,i,r)}function Ft(t,e,n,r=!0){console.error(t)}let Ut=!1,qt=!1;const $t=[];let Bt=0;const Vt=[];let Kt=null,Wt=0;const zt=[];let Ht=null,Gt=0;const Xt=Promise.resolve();let Yt=null,Qt=null;function Jt(t){const e=Yt||Xt;return t?e.then(this?t.bind(this):t):e}function Zt(t){let e=Bt+1,n=$t.length;const r=ue(t);while(e<n){const t=e+n>>>1,i=ue($t[t]);i<r?e=t+1:n=t}return e}function te(t){if((!$t.length||!$t.includes(t,Ut&&t.allowRecurse?Bt+1:Bt))&&t!==Qt){const e=Zt(t);e>-1?$t.splice(e,0,t):$t.push(t),ee()}}function ee(){Ut||qt||(qt=!0,Yt=Xt.then(ce))}function ne(t){const e=$t.indexOf(t);e>Bt&&$t.splice(e,1)}function re(t,e,n,i){Object(r["m"])(t)?n.push(...t):e&&e.includes(t,t.allowRecurse?i+1:i)||n.push(t),ee()}function ie(t){re(t,Kt,Vt,Wt)}function oe(t){re(t,Ht,zt,Gt)}function ae(t,e=null){if(Vt.length){for(Qt=e,Kt=[...new Set(Vt)],Vt.length=0,Wt=0;Wt<Kt.length;Wt++)Kt[Wt]();Kt=null,Wt=0,Qt=null,ae(t,e)}}function se(t){if(zt.length){const t=[...new Set(zt)];if(zt.length=0,Ht)return void Ht.push(...t);for(Ht=t,Ht.sort((t,e)=>ue(t)-ue(e)),Gt=0;Gt<Ht.length;Gt++)Ht[Gt]();Ht=null,Gt=0}}const ue=t=>null==t.id?1/0:t.id;function ce(t){qt=!1,Ut=!0,ae(t),$t.sort((t,e)=>ue(t)-ue(e));try{for(Bt=0;Bt<$t.length;Bt++){const t=$t[Bt];t&&Dt(t,null,14)}}finally{Bt=0,$t.length=0,se(t),Ut=!1,Yt=null,($t.length||zt.length)&&ce(t)}}new Set;new Map;function le(t,e,...n){const i=t.vnode.props||r["b"];let o=n;const a=e.startsWith("update:"),s=a&&e.slice(7);if(s&&s in i){const t=("modelValue"===s?"model":s)+"Modifiers",{number:e,trim:a}=i[t]||r["b"];a?o=n.map(t=>t.trim()):e&&(o=n.map(r["K"]))}let u;let c=i[u=Object(r["J"])(e)]||i[u=Object(r["J"])(Object(r["e"])(e))];!c&&a&&(c=i[u=Object(r["J"])(Object(r["k"])(e))]),c&&Lt(c,t,6,o);const l=i[u+"Once"];if(l){if(t.emitted){if(t.emitted[u])return}else(t.emitted={})[u]=!0;Lt(l,t,6,o)}}function fe(t,e,n=!1){if(!e.deopt&&void 0!==t.__emits)return t.__emits;const i=t.emits;let o={},a=!1;if(!Object(r["n"])(t)){const i=t=>{const n=fe(t,e,!0);n&&(a=!0,Object(r["h"])(o,n))};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return i||a?(Object(r["m"])(i)?i.forEach(t=>o[t]=null):Object(r["h"])(o,i),t.__emits=o):t.__emits=null}function he(t,e){return!(!t||!Object(r["u"])(e))&&(e=e.slice(2).replace(/Once$/,""),Object(r["j"])(t,e[0].toLowerCase()+e.slice(1))||Object(r["j"])(t,Object(r["k"])(e))||Object(r["j"])(t,e))}let de=0;const pe=t=>de+=t;let ve=null,ge=null;function me(t){const e=ve;return ve=t,ge=t&&t.type.__scopeId||null,e}function ye(t){ge=t}function be(){ge=null}const we=t=>_e;function _e(t,e=ve){if(!e)return t;const n=(...n)=>{de||dr(!0);const r=me(e),i=t(...n);return me(r),de||pr(),i};return n._c=!0,n}function Ee(t){const{type:e,vnode:n,proxy:i,withProxy:o,props:a,propsOptions:[s],slots:u,attrs:c,emit:l,render:f,renderCache:h,data:d,setupState:p,ctx:v}=t;let g;const m=me(t);try{let t;if(4&n.shapeFlag){const e=o||i;g=kr(f.call(e,e,h,a,p,d,v)),t=c}else{const n=e;0,g=kr(n.length>1?n(a,{attrs:c,slots:u,emit:l}):n(a,null)),t=e.props?c:Ie(c)}let m=g;if(!1!==e.inheritAttrs&&t){const e=Object.keys(t),{shapeFlag:n}=m;e.length&&(1&n||6&n)&&(s&&e.some(r["s"])&&(t=Te(t,s)),m=Ir(m,t))}n.dirs&&(m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&(m.transition=n.transition),g=m}catch(y){fr.length=0,Mt(y,t,1),g=Er(cr)}return me(m),g}function Oe(t){let e;for(let n=0;n<t.length;n++){const r=t[n];if(!mr(r))return;if(r.type!==cr||"v-if"===r.children){if(e)return;e=r}}return e}const Ie=t=>{let e;for(const n in t)("class"===n||"style"===n||Object(r["u"])(n))&&((e||(e={}))[n]=t[n]);return e},Te=(t,e)=>{const n={};for(const i in t)Object(r["s"])(i)&&i.slice(9)in e||(n[i]=t[i]);return n};function Se(t,e,n){const{props:r,children:i,component:o}=t,{props:a,children:s,patchFlag:u}=e,c=o.emitsOptions;if(e.dirs||e.transition)return!0;
1577if(!(n&&u>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||ke(r,a,c):!!a);if(1024&u)return!0;if(16&u)return r?ke(r,a,c):!!a;if(8&u){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const n=t[e];if(a[n]!==r[n]&&!he(c,n))return!0}}return!1}function ke(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(e[o]!==t[o]&&!he(n,o))return!0}return!1}function Ce({vnode:t,parent:e},n){while(e&&e.subTree===t)(t=e.vnode).el=n,e=e.parent}const xe=t=>t.__isSuspense;function je(t){const{shapeFlag:e,children:n}=t;let r,i;return 32&e?(r=Ae(n.default),i=Ae(n.fallback)):(r=Ae(n),i=kr(null)),{content:r,fallback:i}}function Ae(t){if(Object(r["n"])(t)&&(t=t()),Object(r["m"])(t)){const e=Oe(t);0,t=e}return kr(t)}function Ne(t,e){e&&e.pendingBranch?Object(r["m"])(t)?e.effects.push(...t):e.effects.push(t):oe(t)}function Pe(t,e,n,i=!1){const o={},a={};Object(r["g"])(a,br,1),t.propsDefaults=Object.create(null),De(t,e,o,a),n?t.props=i?o:vt(o):t.type.props?t.props=o:t.props=a,t.attrs=a}function Re(t,e,n,i){const{props:o,attrs:a,vnode:{patchFlag:s}}=t,u=_t(o),[c]=t.propsOptions;if(!(i||s>0)||16&s){let i;De(t,e,o,a);for(const a in u)e&&(Object(r["j"])(e,a)||(i=Object(r["k"])(a))!==a&&Object(r["j"])(e,i))||(c?!n||void 0===n[a]&&void 0===n[i]||(o[a]=Le(c,e||r["b"],a,void 0,t)):delete o[a]);if(a!==u)for(const t in a)e&&Object(r["j"])(e,t)||delete a[t]}else if(8&s){const n=t.vnode.dynamicProps;for(let i=0;i<n.length;i++){const s=n[i],l=e[s];if(c)if(Object(r["j"])(a,s))a[s]=l;else{const e=Object(r["e"])(s);o[e]=Le(c,u,e,l,t)}else a[s]=l}}_(t,"set","$attrs")}function De(t,e,n,i){const[o,a]=t.propsOptions;if(e)for(const s in e){const a=e[s];if(Object(r["w"])(s))continue;let u;o&&Object(r["j"])(o,u=Object(r["e"])(s))?n[u]=a:he(t.emitsOptions,s)||(i[s]=a)}if(a){const e=_t(n);for(let r=0;r<a.length;r++){const i=a[r];n[i]=Le(o,e,i,e[i],t)}}}function Le(t,e,n,i,o){const a=t[n];if(null!=a){const t=Object(r["j"])(a,"default");if(t&&void 0===i){const t=a.default;if(a.type!==Function&&Object(r["n"])(t)){const{propsDefaults:r}=o;n in r?i=r[n]:(Jr(o),i=r[n]=t(e),Jr(null))}else i=t}a[0]&&(Object(r["j"])(e,n)||t?!a[1]||""!==i&&i!==Object(r["k"])(n)||(i=!0):i=!1)}return i}function Me(t,e,n=!1){if(!e.deopt&&t.__props)return t.__props;const i=t.props,o={},a=[];let s=!1;if(!Object(r["n"])(t)){const i=t=>{s=!0;const[n,i]=Me(t,e,!0);Object(r["h"])(o,n),i&&a.push(...i)};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!i&&!s)return t.__props=r["a"];if(Object(r["m"])(i))for(let u=0;u<i.length;u++){0;const t=Object(r["e"])(i[u]);Fe(t)&&(o[t]=r["b"])}else if(i){0;for(const t in i){const e=Object(r["e"])(t);if(Fe(e)){const n=i[t],s=o[e]=Object(r["m"])(n)||Object(r["n"])(n)?{type:n}:n;if(s){const t=$e(Boolean,s.type),n=$e(String,s.type);s[0]=t>-1,s[1]=n<0||t<n,(t>-1||Object(r["j"])(s,"default"))&&a.push(e)}}}}return t.__props=[o,a]}function Fe(t){return"$"!==t[0]}function Ue(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function qe(t,e){return Ue(t)===Ue(e)}function $e(t,e){return Object(r["m"])(e)?e.findIndex(e=>qe(e,t)):Object(r["n"])(e)&&qe(e,t)?0:-1}function Be(t,e,n=Yr,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...r)=>{if(n.isUnmounted)return;m(),Jr(n);const i=Lt(e,n,t,r);return Jr(null),b(),i});return r?i.unshift(o):i.push(o),o}}const Ve=t=>(e,n=Yr)=>!ei&&Be(t,e,n),Ke=Ve("bm"),We=Ve("m"),ze=Ve("bu"),He=Ve("u"),Ge=Ve("bum"),Xe=Ve("um"),Ye=Ve("rtg"),Qe=Ve("rtc"),Je=(t,e=Yr)=>{Be("ec",t,e)};const Ze={};function tn(t,e,n){return en(t,e,n)}function en(t,e,{immediate:n,deep:i,flush:o,onTrack:a,onTrigger:s}=r["b"],u=Yr){let c,h,d=!1;if(Ot(t)?(c=()=>t.value,d=!!t._shallow):yt(t)?(c=()=>t,i=!0):c=Object(r["m"])(t)?()=>t.map(t=>Ot(t)?t.value:yt(t)?rn(t):Object(r["n"])(t)?Dt(t,u,2,[u&&u.proxy]):void 0):Object(r["n"])(t)?e?()=>Dt(t,u,2,[u&&u.proxy]):()=>{if(!u||!u.isUnmounted)return h&&h(),Lt(t,u,3,[p])}:r["d"],e&&i){const t=c;c=()=>rn(t())}let p=t=>{h=y.options.onStop=()=>{Dt(t,u,4)}},v=Object(r["m"])(t)?[]:Ze;const g=()=>{if(y.active)if(e){const t=y();(i||d||Object(r["i"])(t,v))&&(h&&h(),Lt(e,u,3,[t,v===Ze?void 0:v,p]),v=t)}else y()};let m;g.allowRecurse=!!e,m="sync"===o?g:"post"===o?()=>Un(g,u&&u.suspense):()=>{!u||u.isMounted?ie(g):g()};const y=l(c,{lazy:!0,onTrack:a,onTrigger:s,scheduler:m});return si(y,u),e?n?g():v=y():"post"===o?Un(y,u&&u.suspense):y(),()=>{f(y),u&&Object(r["H"])(u.effects,y)}}function nn(t,e,n){const i=this.proxy,o=Object(r["A"])(t)?()=>i[t]:t.bind(i);return en(o,e.bind(i),n,this)}function rn(t,e=new Set){if(!Object(r["t"])(t)||e.has(t))return t;if(e.add(t),Ot(t))rn(t.value,e);else if(Object(r["m"])(t))for(let n=0;n<t.length;n++)rn(t[n],e);else if(Object(r["y"])(t)||Object(r["r"])(t))t.forEach(t=>{rn(t,e)});else for(const n in t)rn(t[n],e);return t}function on(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
1577ingVNodes:new Map};return We(()=>{t.isMounted=!0}),Ge(()=>{t.isUnmounting=!0}),t}const an=[Function,Array],sn={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:an,onEnter:an,onAfterEnter:an,onEnterCancelled:an,onBeforeLeave:an,onLeave:an,onAfterLeave:an,onLeaveCancelled:an,onBeforeAppear:an,onAppear:an,onAfterAppear:an,onAppearCancelled:an},setup(t,{slots:e}){const n=Qr(),r=on();let i;return()=>{const o=e.default&&pn(e.default(),!0);if(!o||!o.length)return;const a=_t(t),{mode:s}=a;const u=o[0];if(r.isLeaving)return fn(u);const c=hn(u);if(!c)return fn(u);const l=ln(c,a,r,n);dn(c,l);const f=n.subTree,h=f&&hn(f);let d=!1;const{getTransitionKey:p}=c.type;if(p){const t=p();void 0===i?i=t:t!==i&&(i=t,d=!0)}if(h&&h.type!==cr&&(!yr(c,h)||d)){const t=ln(h,a,r,n);if(dn(h,t),"out-in"===s)return r.isLeaving=!0,t.afterLeave=()=>{r.isLeaving=!1,n.update()},fn(u);"in-out"===s&&c.type!==cr&&(t.delayLeave=(t,e,n)=>{const i=cn(r,h);i[String(h.key)]=h,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete l.delayedLeave},l.delayedLeave=n})}return u}}},un=sn;function cn(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function ln(t,e,n,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:c,onEnterCancelled:l,onBeforeLeave:f,onLeave:h,onAfterLeave:d,onLeaveCancelled:p,onBeforeAppear:v,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=e,b=String(t.key),w=cn(n,t),_=(t,e)=>{t&&Lt(t,r,9,e)},E={mode:o,persisted:a,beforeEnter(e){let r=s;if(!n.isMounted){if(!i)return;r=v||s}e._leaveCb&&e._leaveCb(!0);const o=w[b];o&&yr(t,o)&&o.el._leaveCb&&o.el._leaveCb(),_(r,[e])},enter(t){let e=u,r=c,o=l;if(!n.isMounted){if(!i)return;e=g||u,r=m||c,o=y||l}let a=!1;const s=t._enterCb=e=>{a||(a=!0,_(e?o:r,[t]),E.delayedLeave&&E.delayedLeave(),t._enterCb=void 0)};e?(e(t,s),e.length<=1&&s()):s()},leave(e,r){const i=String(t.key);if(e._enterCb&&e._enterCb(!0),n.isUnmounting)return r();_(f,[e]);let o=!1;const a=e._leaveCb=n=>{o||(o=!0,r(),_(n?p:d,[e]),e._leaveCb=void 0,w[i]===t&&delete w[i])};w[i]=t,h?(h(e,a),h.length<=1&&a()):a()},clone(t){return ln(t,e,n,r)}};return E}function fn(t){if(vn(t))return t=Ir(t),t.children=null,t}function hn(t){return vn(t)?t.children?t.children[0]:void 0:t}function dn(t,e){6&t.shapeFlag&&t.component?dn(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function pn(t,e=!1){let n=[],r=0;for(let i=0;i<t.length;i++){const o=t[i];o.type===sr?(128&o.patchFlag&&r++,n=n.concat(pn(o.children,e))):(e||o.type!==cr)&&n.push(o)}if(r>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}const vn=t=>t.type.__isKeepAlive;RegExp,RegExp;function gn(t,e){return Object(r["m"])(t)?t.some(t=>gn(t,e)):Object(r["A"])(t)?t.split(",").indexOf(e)>-1:!!t.test&&t.test(e)}function mn(t,e){bn(t,"a",e)}function yn(t,e){bn(t,"da",e)}function bn(t,e,n=Yr){const r=t.__wdc||(t.__wdc=()=>{let e=n;while(e){if(e.isDeactivated)return;e=e.parent}t()});if(Be(e,r,n),n){let t=n.parent;while(t&&t.parent)vn(t.parent.vnode)&&wn(r,e,n,t),t=t.parent}}function wn(t,e,n,i){const o=Be(e,t,i,!0);Xe(()=>{Object(r["H"])(i[e],o)},n)}function _n(t){let e=t.shapeFlag;256&e&&(e-=256),512&e&&(e-=512),t.shapeFlag=e}function En(t){return 128&t.shapeFlag?t.ssContent:t}const On=t=>"_"===t[0]||"$stable"===t,In=t=>Object(r["m"])(t)?t.map(kr):[kr(t)],Tn=(t,e,n)=>_e(t=>In(e(t)),n),Sn=(t,e)=>{const n=t._ctx;for(const i in t){if(On(i))continue;const o=t[i];if(Object(r["n"])(o))e[i]=Tn(i,o,n);else if(null!=o){0;const t=In(o);e[i]=()=>t}}},kn=(t,e)=>{const n=In(e);t.slots.default=()=>n},Cn=(t,e)=>{if(32&t.vnode.shapeFlag){const n=e._;n?(t.slots=e,Object(r["g"])(e,"_",n)):Sn(e,t.slots={})}else t.slots={},e&&kn(t,e);Object(r["g"])(t.slots,br,1)},xn=(t,e,n)=>{const{vnode:i,slots:o}=t;let a=!0,s=r["b"];if(32&i.shapeFlag){const t=e._;t?n&&1===t?a=!1:(Object(r["h"])(o,e),n||1!==t||delete o._):(a=!e.$stable,Sn(e,o)),s=e}else e&&(kn(t,e),s={default:1});if(a)for(const r in o)On(r)||r in s||delete o[r]};function jn(t,e){const n=ve;if(null===n)return t;const i=n.proxy,o=t.dirs||(t.dirs=[]);for(let a=0;a<e.length;a++){let[t,n,s,u=r["b"]]=e[a];Object(r["n"])(t)&&(t={mounted:t,updated:t}),o.push({dir:t,instance:i,value:n,oldValue:void 0,arg:s,modifiers:u})}return t}function An(t,e,n,r){const i=t.dirs,o=e&&e.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);const u=s.dir[r];u&&Lt(u,n,8,[t.el,s,t,e])}}function Nn(){return{app:null,config:{isNativeTag:r["c"],performance:!1,globalProperties:{},optionMergeStrategies:{}
1577,isCustomElement:r["c"],errorHandler:void 0,warnHandler:void 0},mixins:[],components:{},directives:{},provides:Object.create(null)}}let Pn=0;function Rn(t,e){return function(n,i=null){null==i||Object(r["t"])(i)||(i=null);const o=Nn(),a=new Set;let s=!1;const u=o.app={_uid:Pn++,_component:n,_props:i,_container:null,_context:o,version:di,get config(){return o.config},set config(t){0},use(t,...e){return a.has(t)||(t&&Object(r["n"])(t.install)?(a.add(t),t.install(u,...e)):Object(r["n"])(t)&&(a.add(t),t(u,...e))),u},mixin(t){return o.mixins.includes(t)||(o.mixins.push(t),(t.props||t.emits)&&(o.deopt=!0)),u},component(t,e){return e?(o.components[t]=e,u):o.components[t]},directive(t,e){return e?(o.directives[t]=e,u):o.directives[t]},mount(r,a,c){if(!s){const l=Er(n,i);return l.appContext=o,a&&e?e(l,r):t(l,r,c),s=!0,u._container=r,r.__vue_app__=u,l.component.proxy}},unmount(){s&&(t(null,u._container),delete u._container.__vue_app__)},provide(t,e){return o.provides[t]=e,u}};return u}}function Dn(){}function Ln(t){return Object(r["n"])(t)?{setup:t,name:t.name}:t}const Mn=t=>!!t.type.__asyncLoader;const Fn={scheduler:te,allowRecurse:!0};const Un=Ne,qn=(t,e,n,i)=>{if(Object(r["m"])(t))return void t.forEach((t,o)=>qn(t,e&&(Object(r["m"])(e)?e[o]:e),n,i));let o;if(i){if(Mn(i))return;o=4&i.shapeFlag?i.component.exposed||i.component.proxy:i.el}else o=null;const{i:a,r:s}=t;const u=e&&e.r,c=a.refs===r["b"]?a.refs={}:a.refs,l=a.setupState;if(null!=u&&u!==s&&(Object(r["A"])(u)?(c[u]=null,Object(r["j"])(l,u)&&(l[u]=null)):Ot(u)&&(u.value=null)),Object(r["A"])(s)){const t=()=>{c[s]=o,Object(r["j"])(l,s)&&(l[s]=o)};o?(t.id=-1,Un(t,n)):t()}else if(Ot(s)){const t=()=>{s.value=o};o?(t.id=-1,Un(t,n)):t()}else Object(r["n"])(s)&&Dt(s,a,12,[o,c])};function $n(t){return Bn(t)}function Bn(t,e){Dn();const{insert:n,remove:i,patchProp:o,forcePatchProp:a,createElement:s,createText:u,createComment:c,setText:h,setElementText:d,parentNode:p,nextSibling:v,setScopeId:g=r["d"],cloneNode:y,insertStaticContent:w}=t,_=(t,e,n,r=null,i=null,o=null,a=!1,s=null,u=!1)=>{t&&!yr(t,e)&&(r=X(t),K(t,i,o,!0),t=null),-2===e.patchFlag&&(u=!1,e.dynamicChildren=null);const{type:c,ref:l,shapeFlag:f}=e;switch(c){case ur:E(t,e,n,r);break;case cr:O(t,e,n,r);break;case lr:null==t&&I(e,n,r,a);break;case sr:R(t,e,n,r,i,o,a,s,u);break;default:1&f?k(t,e,n,r,i,o,a,s,u):6&f?D(t,e,n,r,i,o,a,s,u):(64&f||128&f)&&c.process(t,e,n,r,i,o,a,s,u,Q)}null!=l&&i&&qn(l,t&&t.ref,o,e)},E=(t,e,r,i)=>{if(null==t)n(e.el=u(e.children),r,i);else{const n=e.el=t.el;e.children!==t.children&&h(n,e.children)}},O=(t,e,r,i)=>{null==t?n(e.el=c(e.children||""),r,i):e.el=t.el},I=(t,e,n,r)=>{[t.el,t.anchor]=w(t.children,e,n,r)},T=({el:t,anchor:e},r,i)=>{let o;while(t&&t!==e)o=v(t),n(t,r,i),t=o;n(e,r,i)},S=({el:t,anchor:e})=>{let n;while(t&&t!==e)n=v(t),i(t),t=n;i(e)},k=(t,e,n,r,i,o,a,s,u)=>{a=a||"svg"===e.type,null==t?C(e,n,r,i,o,a,s,u):A(t,e,i,o,a,s,u)},C=(t,e,i,a,u,c,l,f)=>{let h,p;const{type:v,props:g,shapeFlag:m,transition:b,patchFlag:w,dirs:_}=t;if(t.el&&void 0!==y&&-1===w)h=t.el=y(t.el);else{if(h=t.el=s(t.type,c,g&&g.is,g),8&m?d(h,t.children):16&m&&j(t.children,h,null,a,u,c&&"foreignObject"!==v,l,f||!!t.dynamicChildren),_&&An(t,null,a,"created"),g){for(const e in g)Object(r["w"])(e)||o(h,e,null,g[e],c,t.children,a,u,G);(p=g.onVnodeBeforeMount)&&Vn(p,a,t)}x(h,t,t.scopeId,l,a)}_&&An(t,null,a,"beforeMount");const E=(!u||u&&!u.pendingBranch)&&b&&!b.persisted;E&&b.beforeEnter(h),n(h,e,i),((p=g&&g.onVnodeMounted)||E||_)&&Un(()=>{p&&Vn(p,a,t),E&&b.enter(h),_&&An(t,null,a,"mounted")},u)},x=(t,e,n,r,i)=>{if(n&&g(t,n),r)for(let o=0;o<r.length;o++)g(t,r[o]);if(i){let n=i.subTree;if(e===n){const e=i.vnode;x(t,e,e.scopeId,e.slotScopeIds,i.parent)}}},j=(t,e,n,r,i,o,a,s,u=0)=>{for(let c=u;c<t.length;c++){const u=t[c]=a?Cr(t[c]):kr(t[c]);_(null,u,e,n,r,i,o,a,s)}},A=(t,e,n,i,s,u,c)=>{const l=e.el=t.el;let{patchFlag:f,dynamicChildren:h,dirs:p}=e;f|=16&t.patchFlag;const v=t.props||r["b"],g=e.props||r["b"];let m;if((m=g.onVnodeBeforeUpdate)&&Vn(m,n,e,t),p&&An(e,t,n,"beforeUpdate"),f>0){if(16&f)P(l,e,v,g,n,i,s);else if(2&f&&v.class!==g.class&&o(l,"class",null,g.class,s),4&f&&o(l,"style",v.style,g.style,s),8&f){const r=e.dynamicProps;for(let e=0;e<r.length;e++){const u=r[e],c=v[u],f=g[u];(f!==c||a&&a(l,u))&&o(l,u,c,f,s,t.children,n,i,G)}}1&f&&t.children!==e.children&&d(l,e.children)}else c||null!=h||P(l,e,v,g,n,i,s);const y=s&&"foreignObject"!==e.type;h?N(t.dynamicChildren,h,l,n,i,y,u):c||q(t,e,l,null,n,i,y,u,!1),((m=g.onVnodeUpdated)||p)&&Un(()=>{m&&Vn(m,n,e,t),p&&An(e,t,n,"updated")},i)},N=(t,e,n,r,i,o,a)=>{for(let s=0;s<e.length;s++){const u=t[s],c=e[s],l=u.type===sr||!yr(u,c)||6&u.shapeFlag||64&u.shapeFlag?p(u.el):n;_(u,c,l,null,r,i,o,a,!0)}},P=(t,e,n,i,s,u,c)=>{if(n!==i){for(const l in i){if(Object(r["w"])(l))continue;const f=i[l],h=n[l];(f!==h||a&&a(t,l))&&o(t,l,h,f,c,e.children,s,u,G)}if(n!==r["b"])for(const a in n)Object(r["w"])(a)||a in i||o(t,a,n[a],null,c,e.children,s,u,G)}},R=(t,e,r,i,o,a,s,c,l)=>{const f=e.el=t?t.el:u(""),h=e.anchor=t?t.anchor:u("");let{patchFlag:d,dynamicChildren:p,slotScopeIds:v}=e;d>0&&(l=!0),v&&(c=c?c.concat(v):v),null==t?(n(f,r,i),n(h,r,i),j(e.children,r,h,o,a,s,c,l)):d>0&&64&d&&p&&t.dynamicChildren?(N(t.dynamicChildren,p,r,o,a,s,c),(null!=e.key||o&&e===o.subTree)&&Kn(t,e,!0)):q(t,e,r,h,o,a,s,c,l)},D=(t,e,n,r,i,o,a,s,u)=>{e.slotScopeIds=s,null==t?512&e.shapeFlag?i.ctx.activate(e,n,r,a,u):L(e,n,r,i,o,a,u):M(t,e,u)},L=(t,e,n,r,i,o,a)=>{const s=t.component=Xr(t,r,i);if(vn(t)&&(s.ctx.renderer=Q),ni(s),s.asyncDep){if(i&&i.registerDep(s,F),!t.el){const t=s.subTree=Er(cr);O(null,t,e,n)}}else F(s,t,e,n,i,o,a)},M=(t,e,n)=>{const r=e.component=t.component;if(Se(t,e,n)){if(r.asyncDep&&!r.asyncResolved)return void U(r,e,n);
1577r.next=e,ne(r.update),r.update()}else e.component=t.component,e.el=t.el,r.vnode=e},F=(t,e,n,i,o,a,s)=>{t.update=l((function(){if(t.isMounted){let e,{next:n,bu:i,u:u,parent:c,vnode:l}=t,f=n;0,n?(n.el=l.el,U(t,n,s)):n=l,i&&Object(r["l"])(i),(e=n.props&&n.props.onVnodeBeforeUpdate)&&Vn(e,c,n,l);const h=Ee(t);0;const d=t.subTree;t.subTree=h,_(d,h,p(d.el),X(d),t,o,a),n.el=h.el,null===f&&Ce(t,h.el),u&&Un(u,o),(e=n.props&&n.props.onVnodeUpdated)&&Un(()=>{Vn(e,c,n,l)},o)}else{let s;const{el:u,props:c}=e,{bm:l,m:f,parent:h}=t;l&&Object(r["l"])(l),(s=c&&c.onVnodeBeforeMount)&&Vn(s,h,e);const d=t.subTree=Ee(t);if(u&&Z?Z(e.el,d,t,o,null):(_(null,d,n,i,t,o,a),e.el=d.el),f&&Un(f,o),s=c&&c.onVnodeMounted){const t=e;Un(()=>{Vn(s,h,t)},o)}const{a:p}=t;p&&256&e.shapeFlag&&Un(p,o),t.isMounted=!0,e=n=i=null}}),Fn)},U=(t,e,n)=>{e.component=t;const r=t.vnode.props;t.vnode=e,t.next=null,Re(t,e.props,r,n),xn(t,e.children,n),m(),ae(void 0,t.update),b()},q=(t,e,n,r,i,o,a,s,u=!1)=>{const c=t&&t.children,l=t?t.shapeFlag:0,f=e.children,{patchFlag:h,shapeFlag:p}=e;if(h>0){if(128&h)return void B(c,f,n,r,i,o,a,s,u);if(256&h)return void $(c,f,n,r,i,o,a,s,u)}8&p?(16&l&&G(c,i,o),f!==c&&d(n,f)):16&l?16&p?B(c,f,n,r,i,o,a,s,u):G(c,i,o,!0):(8&l&&d(n,""),16&p&&j(f,n,r,i,o,a,s,u))},$=(t,e,n,i,o,a,s,u,c)=>{t=t||r["a"],e=e||r["a"];const l=t.length,f=e.length,h=Math.min(l,f);let d;for(d=0;d<h;d++){const r=e[d]=c?Cr(e[d]):kr(e[d]);_(t[d],r,n,null,o,a,s,u,c)}l>f?G(t,o,a,!0,!1,h):j(e,n,i,o,a,s,u,c,h)},B=(t,e,n,i,o,a,s,u,c)=>{let l=0;const f=e.length;let h=t.length-1,d=f-1;while(l<=h&&l<=d){const r=t[l],i=e[l]=c?Cr(e[l]):kr(e[l]);if(!yr(r,i))break;_(r,i,n,null,o,a,s,u,c),l++}while(l<=h&&l<=d){const r=t[h],i=e[d]=c?Cr(e[d]):kr(e[d]);if(!yr(r,i))break;_(r,i,n,null,o,a,s,u,c),h--,d--}if(l>h){if(l<=d){const t=d+1,r=t<f?e[t].el:i;while(l<=d)_(null,e[l]=c?Cr(e[l]):kr(e[l]),n,r,o,a,s,u,c),l++}}else if(l>d)while(l<=h)K(t[l],o,a,!0),l++;else{const p=l,v=l,g=new Map;for(l=v;l<=d;l++){const t=e[l]=c?Cr(e[l]):kr(e[l]);null!=t.key&&g.set(t.key,l)}let m,y=0;const b=d-v+1;let w=!1,E=0;const O=new Array(b);for(l=0;l<b;l++)O[l]=0;for(l=p;l<=h;l++){const r=t[l];if(y>=b){K(r,o,a,!0);continue}let i;if(null!=r.key)i=g.get(r.key);else for(m=v;m<=d;m++)if(0===O[m-v]&&yr(r,e[m])){i=m;break}void 0===i?K(r,o,a,!0):(O[i-v]=l+1,i>=E?E=i:w=!0,_(r,e[i],n,null,o,a,s,u,c),y++)}const I=w?Wn(O):r["a"];for(m=I.length-1,l=b-1;l>=0;l--){const t=v+l,r=e[t],h=t+1<f?e[t+1].el:i;0===O[l]?_(null,r,n,h,o,a,s,u,c):w&&(m<0||l!==I[m]?V(r,n,h,2):m--)}}},V=(t,e,r,i,o=null)=>{const{el:a,type:s,transition:u,children:c,shapeFlag:l}=t;if(6&l)return void V(t.component.subTree,e,r,i);if(128&l)return void t.suspense.move(e,r,i);if(64&l)return void s.move(t,e,r,Q);if(s===sr){n(a,e,r);for(let t=0;t<c.length;t++)V(c[t],e,r,i);return void n(t.anchor,e,r)}if(s===lr)return void T(t,e,r);const f=2!==i&&1&l&&u;if(f)if(0===i)u.beforeEnter(a),n(a,e,r),Un(()=>u.enter(a),o);else{const{leave:t,delayLeave:i,afterLeave:o}=u,s=()=>n(a,e,r),c=()=>{t(a,()=>{s(),o&&o()})};i?i(a,s,c):c()}else n(a,e,r)},K=(t,e,n,r=!1,i=!1)=>{const{type:o,props:a,ref:s,children:u,dynamicChildren:c,shapeFlag:l,patchFlag:f,dirs:h}=t;if(null!=s&&qn(s,null,n,null),256&l)return void e.ctx.deactivate(t);const d=1&l&&h;let p;if((p=a&&a.onVnodeBeforeUnmount)&&Vn(p,e,t),6&l)H(t.component,n,r);else{if(128&l)return void t.suspense.unmount(n,r);d&&An(t,null,e,"beforeUnmount"),64&l?t.type.remove(t,e,n,i,Q,r):c&&(o!==sr||f>0&&64&f)?G(c,e,n,!1,!0):(o===sr&&(128&f||256&f)||!i&&16&l)&&G(u,e,n),r&&W(t)}((p=a&&a.onVnodeUnmounted)||d)&&Un(()=>{p&&Vn(p,e,t),d&&An(t,null,e,"unmounted")},n)},W=t=>{const{type:e,el:n,anchor:r,transition:o}=t;if(e===sr)return void z(n,r);if(e===lr)return void S(t);const a=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&t.shapeFlag&&o&&!o.persisted){const{leave:e,delayLeave:r}=o,i=()=>e(n,a);r?r(t.el,a,i):i()}else a()},z=(t,e)=>{let n;while(t!==e)n=v(t),i(t),t=n;i(e)},H=(t,e,n)=>{const{bum:i,effects:o,update:a,subTree:s,um:u}=t;if(i&&Object(r["l"])(i),o)for(let r=0;r<o.length;r++)f(o[r]);a&&(f(a),K(s,t,e,n)),u&&Un(u,e),Un(()=>{t.isUnmounted=!0},e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},G=(t,e,n,r=!1,i=!1,o=0)=>{for(let a=o;a<t.length;a++)K(t[a],e,n,r,i)},X=t=>6&t.shapeFlag?X(t.component.subTree):128&t.shapeFlag?t.suspense.next():v(t.anchor||t.el),Y=(t,e,n)=>{null==t?e._vnode&&K(e._vnode,null,null,!0):_(e._vnode||null,t,e,null,null,null,n),se(),e._vnode=t},Q={p:_,um:K,m:V,r:W,mt:L,mc:j,pc:q,pbc:N,n:X,o:t};let J,Z;return e&&([J,Z]=e(Q)),{render:Y,hydrate:J,createApp:Rn(Y,J)}}function Vn(t,e,n,r=null){Lt(t,e,7,[n,r])}function Kn(t,e,n=!1){const i=t.children,o=e.children;if(Object(r["m"])(i)&&Object(r["m"])(o))for(let r=0;r<i.length;r++){const t=i[r];let e=o[r];1&e.shapeFlag&&!e.dynamicChildren&&((e.patchFlag<=0||32===e.patchFlag)&&(e=o[r]=Cr(o[r]),e.el=t.el),n||Kn(t,e))}}function Wn(t){const e=t.slice(),n=[0];let r,i,o,a,s;const u=t.length;for(r=0;r<u;r++){const u=t[r];if(0!==u){if(i=n[n.length-1],t[i]<u){e[r]=i,n.push(r);continue}o=0,a=n.length-1;while(o<a)s=(o+a)/2|0,t[n[s]]<u?o=s+1:a=s;u<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}o=n.length,a=n[o-1];while(o-- >0)n[o]=a,a=e[a];return n}const zn=t=>t.__isTeleport,Hn=t=>t&&(t.disabled||""===t.disabled),Gn=t=>"undefined"!==typeof SVGElement&&t instanceof SVGElement,Xn=(t,e)=>{const n=t&&t.to;if(Object(r["A"])(n)){if(e){const t=e(n);return t}return null}return n},Yn={__isTeleport:!0,process(t,e,n,r,i,o,a,s,u,c){const{mc:l,pc:f,pbc:h,o:{insert:d,querySelector:p,createText:v,createComment:g}}=c,m=Hn(e.props),{shapeFlag:y,children:b}=e;if(null==t){const t=e.el=v(""),c=e.anchor=v("");d(t,n,r),d(c,n,r);const f=e.target=Xn(e.props,p),h=e.targetAnchor=v("");f&&(d(h,f),a=a||Gn(f));const g=(t,e)=>{16&y&&l(b,t,e,i,o,a,s,u)};m?g(n,c):f&&g(f,h)}else{e.el=t.el;const r=e.anchor=t.anchor,l=e.target=t.target,d=e.targetAnchor=t.targetAnchor,v=Hn(t.props),g=v?n:l,y=v?r:d;if(a=a||Gn(l),e.dynamicChildren?(h(t.dynamicChildren,e.dynamicChildren,g,i,o,a,s),Kn(t,e,!0)):u||f(t,e,g,y,i,o,a,s,!1),m)v||Qn(e,n,r,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=Xn(e.props,p);t&&Qn(e,t,null,c,0)}else v&&Qn(e,l,d,c,1)}},remove(t,e,n,r,{um:i,o:{remove:o}},a){const{shapeFlag:s,children:u,anchor:c,targetAnchor:l,target:f,props:h}=t;
1577if(f&&o(l),(a||!Hn(h))&&(o(c),16&s))for(let d=0;d<u.length;d++)i(u[d],e,n,!0,r)},move:Qn,hydrate:Jn};function Qn(t,e,n,{o:{insert:r},m:i},o=2){0===o&&r(t.targetAnchor,e,n);const{el:a,anchor:s,shapeFlag:u,children:c,props:l}=t,f=2===o;if(f&&r(a,e,n),(!f||Hn(l))&&16&u)for(let h=0;h<c.length;h++)i(c[h],e,n,2);f&&r(s,e,n)}function Jn(t,e,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:u}},c){const l=e.target=Xn(e.props,u);if(l){const u=l._lpa||l.firstChild;16&e.shapeFlag&&(Hn(e.props)?(e.anchor=c(a(t),e,s(t),n,r,i,o),e.targetAnchor=u):(e.anchor=a(t),e.targetAnchor=c(u,e,l,n,r,i,o)),l._lpa=e.targetAnchor&&a(e.targetAnchor))}return e.anchor&&a(e.anchor)}const Zn=Yn,tr="components",er="directives";function nr(t,e){return or(tr,t,!0,e)||t}const rr=Symbol();function ir(t){return or(er,t)}function or(t,e,n=!0,i=!1){const o=ve||Yr;if(o){const n=o.type;if(t===tr){const t=ui(n);if(t&&(t===e||t===Object(r["e"])(e)||t===Object(r["f"])(Object(r["e"])(e))))return n}const a=ar(o[t]||n[t],e)||ar(o.appContext[t],e);return!a&&i?n:a}}function ar(t,e){return t&&(t[e]||t[Object(r["e"])(e)]||t[Object(r["f"])(Object(r["e"])(e))])}const sr=Symbol(void 0),ur=Symbol(void 0),cr=Symbol(void 0),lr=Symbol(void 0),fr=[];let hr=null;function dr(t=!1){fr.push(hr=t?null:[])}function pr(){fr.pop(),hr=fr[fr.length-1]||null}let vr=1;function gr(t,e,n,i,o){const a=Er(t,e,n,i,o,!0);return a.dynamicChildren=hr||r["a"],pr(),vr>0&&hr&&hr.push(a),a}function mr(t){return!!t&&!0===t.__v_isVNode}function yr(t,e){return t.type===e.type&&t.key===e.key}const br="__vInternal",wr=({key:t})=>null!=t?t:null,_r=({ref:t})=>null!=t?Object(r["A"])(t)||Ot(t)||Object(r["n"])(t)?{i:ve,r:t}:t:null,Er=Or;function Or(t,e=null,n=null,i=0,o=null,a=!1){if(t&&t!==rr||(t=cr),mr(t)){const r=Ir(t,e,!0);return n&&xr(r,n),r}if(ci(t)&&(t=t.__vccOpts),e){(wt(e)||br in e)&&(e=Object(r["h"])({},e));let{class:t,style:n}=e;t&&!Object(r["A"])(t)&&(e.class=Object(r["F"])(t)),Object(r["t"])(n)&&(wt(n)&&!Object(r["m"])(n)&&(n=Object(r["h"])({},n)),e.style=Object(r["G"])(n))}const s=Object(r["A"])(t)?1:xe(t)?128:zn(t)?64:Object(r["t"])(t)?4:Object(r["n"])(t)?2:0;const u={__v_isVNode:!0,["__v_skip"]:!0,type:t,props:e,key:e&&wr(e),ref:e&&_r(e),scopeId:ge,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null};if(xr(u,n),128&s){const{content:t,fallback:e}=je(u);u.ssContent=t,u.ssFallback=e}return vr>0&&!a&&hr&&(i>0||6&s)&&32!==i&&hr.push(u),u}function Ir(t,e,n=!1){const{props:i,ref:o,patchFlag:a,children:s}=t,u=e?jr(i||{},e):i;return{__v_isVNode:!0,["__v_skip"]:!0,type:t.type,props:u,key:u&&wr(u),ref:e&&e.ref?n&&o?Object(r["m"])(o)?o.concat(_r(e)):[o,_r(e)]:_r(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==sr?-1===a?16:16|a:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ir(t.ssContent),ssFallback:t.ssFallback&&Ir(t.ssFallback),el:t.el,anchor:t.anchor}}function Tr(t=" ",e=0){return Er(ur,null,t,e)}function Sr(t="",e=!1){return e?(dr(),gr(cr,null,t)):Er(cr,null,t)}function kr(t){return null==t||"boolean"===typeof t?Er(cr):Object(r["m"])(t)?Er(sr,null,t):"object"===typeof t?null===t.el?t:Ir(t):Er(ur,null,String(t))}function Cr(t){return null===t.el?t:Ir(t)}function xr(t,e){let n=0;const{shapeFlag:i}=t;if(null==e)e=null;else if(Object(r["m"])(e))n=16;else if("object"===typeof e){if(1&i||64&i){const n=e.default;return void(n&&(n._c&&pe(1),xr(t,n()),n._c&&pe(-1)))}{n=32;const r=e._;r||br in e?3===r&&ve&&(1024&ve.vnode.patchFlag?(e._=2,t.patchFlag|=1024):e._=1):e._ctx=ve}}else Object(r["n"])(e)?(e={default:e,_ctx:ve},n=32):(e=String(e),64&i?(n=16,e=[Tr(e)]):n=8);t.children=e,t.shapeFlag|=n}function jr(...t){const e=Object(r["h"])({},t[0]);for(let n=1;n<t.length;n++){const i=t[n];for(const t in i)if("class"===t)e.class!==i.class&&(e.class=Object(r["F"])([e.class,i.class]));else if("style"===t)e.style=Object(r["G"])([e.style,i.style]);else if(Object(r["u"])(t)){const n=e[t],r=i[t];n!==r&&(e[t]=n?[].concat(n,i[t]):r)}else""!==t&&(e[t]=i[t])}return e}function Ar(t,e){if(Yr){let n=Yr.provides;const r=Yr.parent&&Yr.parent.provides;r===n&&(n=Yr.provides=Object.create(r)),n[t]=e}else 0}function Nr(t,e,n=!1){const i=Yr||ve;if(i){const o=null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&t in o)return o[t];if(arguments.length>1)return n&&Object(r["n"])(e)?e():e}else 0}let Pr=!0;function Rr(t,e,n=[],i=[],o=[],a=!1){const{mixins:s,extends:u,data:c,computed:l,methods:f,watch:h,provide:d,inject:p,components:v,directives:g,beforeMount:m,mounted:y,beforeUpdate:b,updated:w,activated:_,deactivated:E,beforeDestroy:O,beforeUnmount:I,destroyed:T,unmounted:S,render:k,renderTracked:C,renderTriggered:x,errorCaptured:j,expose:A}
1577=e,N=t.proxy,P=t.ctx,R=t.appContext.mixins;a&&k&&t.render===r["d"]&&(t.render=k),a||(Pr=!1,Dr("beforeCreate","bc",e,t,R),Pr=!0,Mr(t,R,n,i,o)),u&&Rr(t,u,n,i,o,!0),s&&Mr(t,s,n,i,o);if(p)if(Object(r["m"])(p))for(let r=0;r<p.length;r++){const t=p[r];P[t]=Nr(t)}else for(const D in p){const t=p[D];Object(r["t"])(t)?P[D]=Nr(t.from||D,t.default,!0):P[D]=Nr(t)}if(f)for(const D in f){const t=f[D];Object(r["n"])(t)&&(P[D]=t.bind(N))}if(a?c&&n.push(c):(n.length&&n.forEach(e=>Fr(t,e,N)),c&&Fr(t,c,N)),l)for(const D in l){const t=l[D],e=Object(r["n"])(t)?t.bind(N,N):Object(r["n"])(t.get)?t.get.bind(N,N):r["d"];0;const n=!Object(r["n"])(t)&&Object(r["n"])(t.set)?t.set.bind(N):r["d"],i=li({get:e,set:n});Object.defineProperty(P,D,{enumerable:!0,configurable:!0,get:()=>i.value,set:t=>i.value=t})}if(h&&i.push(h),!a&&i.length&&i.forEach(t=>{for(const e in t)Ur(t[e],P,N,e)}),d&&o.push(d),!a&&o.length&&o.forEach(t=>{const e=Object(r["n"])(t)?t.call(N):t;Reflect.ownKeys(e).forEach(t=>{Ar(t,e[t])})}),a&&(v&&Object(r["h"])(t.components||(t.components=Object(r["h"])({},t.type.components)),v),g&&Object(r["h"])(t.directives||(t.directives=Object(r["h"])({},t.type.directives)),g)),a||Dr("created","c",e,t,R),m&&Ke(m.bind(N)),y&&We(y.bind(N)),b&&ze(b.bind(N)),w&&He(w.bind(N)),_&&mn(_.bind(N)),E&&yn(E.bind(N)),j&&Je(j.bind(N)),C&&Qe(C.bind(N)),x&&Ye(x.bind(N)),I&&Ge(I.bind(N)),S&&Xe(S.bind(N)),Object(r["m"])(A))if(a)0;else if(A.length){const e=t.exposed||(t.exposed=jt({}));A.forEach(t=>{e[t]=Nt(N,t)})}else t.exposed||(t.exposed=r["b"])}function Dr(t,e,n,r,i){for(let o=0;o<i.length;o++)Lr(t,e,i[o],r);Lr(t,e,n,r)}function Lr(t,e,n,r){const{extends:i,mixins:o}=n,a=n[t];if(i&&Lr(t,e,i,r),o)for(let s=0;s<o.length;s++)Lr(t,e,o[s],r);a&&Lt(a.bind(r.proxy),r,e)}function Mr(t,e,n,r,i){for(let o=0;o<e.length;o++)Rr(t,e[o],n,r,i,!0)}function Fr(t,e,n){Pr=!1;const i=e.call(n,n);Pr=!0,Object(r["t"])(i)&&(t.data===r["b"]?t.data=pt(i):Object(r["h"])(t.data,i))}function Ur(t,e,n,i){const o=i.includes(".")?qr(n,i):()=>n[i];if(Object(r["A"])(t)){const n=e[t];Object(r["n"])(n)&&tn(o,n)}else if(Object(r["n"])(t))tn(o,t.bind(n));else if(Object(r["t"])(t))if(Object(r["m"])(t))t.forEach(t=>Ur(t,e,n,i));else{const i=Object(r["n"])(t.handler)?t.handler.bind(n):e[t.handler];Object(r["n"])(i)&&tn(o,i,t)}else 0}function qr(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t<n.length&&e;t++)e=e[n[t]];return e}}function $r(t){const e=t.type,{__merged:n,mixins:r,extends:i}=e;if(n)return n;const o=t.appContext.mixins;if(!o.length&&!r&&!i)return e;const a={};return o.forEach(e=>Br(a,e,t)),Br(a,e,t),e.__merged=a}function Br(t,e,n){const i=n.appContext.config.optionMergeStrategies,{mixins:o,extends:a}=e;a&&Br(t,a,n),o&&o.forEach(e=>Br(t,e,n));for(const s in e)i&&Object(r["j"])(i,s)?t[s]=i[s](t[s],e[s],n.proxy,s):t[s]=e[s]}const Vr=t=>t?Zr(t)?t.exposed?t.exposed:t.proxy:Vr(t.parent):null,Kr=Object(r["h"])(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Vr(t.parent),$root:t=>Vr(t.root),$emit:t=>t.emit,$options:t=>$r(t),$forceUpdate:t=>()=>te(t.update),$nextTick:t=>Jt.bind(t.proxy),$watch:t=>nn.bind(t)}),Wr={get({_:t},e){const{ctx:n,setupState:i,data:o,props:a,accessCache:s,type:u,appContext:c}=t;if("__v_skip"===e)return!0;let l;if("$"!==e[0]){const u=s[e];if(void 0!==u)switch(u){case 0:return i[e];case 1:return o[e];case 3:return n[e];case 2:return a[e]}else{if(i!==r["b"]&&Object(r["j"])(i,e))return s[e]=0,i[e];if(o!==r["b"]&&Object(r["j"])(o,e))return s[e]=1,o[e];if((l=t.propsOptions[0])&&Object(r["j"])(l,e))return s[e]=2,a[e];if(n!==r["b"]&&Object(r["j"])(n,e))return s[e]=3,n[e];Pr&&(s[e]=4)}}const f=Kr[e];let h,d;return f?("$attrs"===e&&w(t,"get",e),f(t)):(h=u.__cssModules)&&(h=h[e])?h:n!==r["b"]&&Object(r["j"])(n,e)?(s[e]=3,n[e]):(d=c.config.globalProperties,Object(r["j"])(d,e)?d[e]:void 0)},set({_:t},e,n){const{data:i,setupState:o,ctx:a}=t;if(o!==r["b"]&&Object(r["j"])(o,e))o[e]=n;else if(i!==r["b"]&&Object(r["j"])(i,e))i[e]=n;else if(Object(r["j"])(t.props,e))return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(a[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:o,propsOptions:a}},s){let u;return void 0!==n[s]||t!==r["b"]&&Object(r["j"])(t,s)||e!==r["b"]&&Object(r["j"])(e,s)||(u=a[0])&&Object(r["j"])(u,s)||Object(r["j"])(i,s)||Object(r["j"])(Kr,s)||Object(r["j"])(o.config.globalProperties,s)}};const zr=Object(r["h"])({},Wr,{get(t,e){if(e!==Symbol.unscopables)return Wr.get(t,e,t)},has(t,e){const n="_"!==e[0]&&!Object(r["o"])(e);return n}});const Hr=Nn();let Gr=0;function Xr(t,e,n){const i=t.type,o=(e?e.appContext:t.appContext)||Hr,a={uid:Gr++,vnode:t,type:i,parent:e,appContext:o,root:null,next:null,subTree:null,update:null,render:null,proxy:null,exposed:null,withProxy:null,effects:null,provides:e?e.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Me(i,o),emitsOptions:fe(i,o),emit:null,emitted:null,propsDefaults:r["b"],ctx:r["b"],data:r["b"],props:r["b"],attrs:r["b"],slots:r["b"],refs:r["b"],setupState:r["b"],setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=le.bind(null,a),a}let Yr=null;const Qr=()=>Yr||ve,Jr=t=>
1577{Yr=t};function Zr(t){return 4&t.vnode.shapeFlag}let ti,ei=!1;function ni(t,e=!1){ei=e;const{props:n,children:r}=t.vnode,i=Zr(t);Pe(t,n,i,e),Cn(t,r);const o=i?ri(t,e):void 0;return ei=!1,o}function ri(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Wr);const{setup:i}=n;if(i){const n=t.setupContext=i.length>1?ai(t):null;Yr=t,m();const o=Dt(i,t,0,[t.props,n]);if(b(),Yr=null,Object(r["v"])(o)){if(e)return o.then(n=>{ii(t,n,e)}).catch(e=>{Mt(e,t,0)});t.asyncDep=o}else ii(t,o,e)}else oi(t,e)}function ii(t,e,n){Object(r["n"])(e)?t.render=e:Object(r["t"])(e)&&(t.setupState=jt(e)),oi(t,n)}function oi(t,e){const n=t.type;t.render||(ti&&n.template&&!n.render&&(n.render=ti(n.template,{isCustomElement:t.appContext.config.isCustomElement,delimiters:n.delimiters})),t.render=n.render||r["d"],t.render._rc&&(t.withProxy=new Proxy(t.ctx,zr))),Yr=t,m(),Rr(t,n),b(),Yr=null}function ai(t){const e=e=>{t.exposed=jt(e)};return{attrs:t.attrs,slots:t.slots,emit:t.emit,expose:e}}function si(t,e=Yr){e&&(e.effects||(e.effects=[])).push(t)}function ui(t){return Object(r["n"])(t)&&t.displayName||t.name}function ci(t){return Object(r["n"])(t)&&"__vccOpts"in t}function li(t){const e=Rt(t);return si(e.effect),e}function fi(t,e,n){const i=arguments.length;return 2===i?Object(r["t"])(e)&&!Object(r["m"])(e)?mr(e)?Er(t,null,[e]):Er(t,e):Er(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&mr(n)&&(n=[n]),Er(t,e,n))}Symbol("");function hi(t,e){let n;if(Object(r["m"])(t)||Object(r["A"])(t)){n=new Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r],r)}else if("number"===typeof t){0,n=new Array(t);for(let r=0;r<t;r++)n[r]=e(r+1,r)}else if(Object(r["t"])(t))if(t[Symbol.iterator])n=Array.from(t,e);else{const r=Object.keys(t);n=new Array(r.length);for(let i=0,o=r.length;i<o;i++){const o=r[i];n[i]=e(t[o],o,i)}}else n=[];return n}const di="3.0.11",pi="http://www.w3.org/2000/svg",vi="undefined"!==typeof document?document:null;let gi,mi;const yi={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e?vi.createElementNS(pi,t):vi.createElement(t,n?{is:n}:void 0);return"select"===t&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:t=>vi.createTextNode(t),createComment:t=>vi.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>vi.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){const e=t.cloneNode(!0);return"_value"in t&&(e._value=t._value),e},insertStaticContent(t,e,n,r){const i=r?mi||(mi=vi.createElementNS(pi,"svg")):gi||(gi=vi.createElement("div"));i.innerHTML=t;const o=i.firstChild;let a=o,s=a;while(a)s=a,yi.insert(a,e,n),a=i.firstChild;return[o,s]}};function bi(t,e,n){if(null==e&&(e=""),n)t.setAttribute("class",e);else{const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),t.className=e}}function wi(t,e,n){const i=t.style;if(n)if(Object(r["A"])(n)){if(e!==n){const e=i.display;i.cssText=n,"_vod"in t&&(i.display=e)}}else{for(const t in n)Ei(i,t,n[t]);if(e&&!Object(r["A"])(e))for(const t in e)null==n[t]&&Ei(i,t,"")}else t.removeAttribute("style")}const _i=/\s*!important$/;function Ei(t,e,n){if(Object(r["m"])(n))n.forEach(n=>Ei(t,e,n));else if(e.startsWith("--"))t.setProperty(e,n);else{const i=Ti(t,e);_i.test(n)?t.setProperty(Object(r["k"])(i),n.replace(_i,""),"important"):t[i]=n}}const Oi=["Webkit","Moz","ms"],Ii={};function Ti(t,e){const n=Ii[e];if(n)return n;let i=Object(r["e"])(e);if("filter"!==i&&i in t)return Ii[e]=i;i=Object(r["f"])(i);for(let r=0;r<Oi.length;r++){const n=Oi[r]+i;if(n in t)return Ii[e]=n}return e}const Si="http://www.w3.org/1999/xlink";function ki(t,e,n,i){if(i&&e.startsWith("xlink:"))null==n?t.removeAttributeNS(Si,e.slice(6,e.length)):t.setAttributeNS(Si,e,n);else{const i=Object(r["z"])(e);null==n||i&&!1===n?t.removeAttribute(e):t.setAttribute(e,i?"":n)}}function Ci(t,e,n,r,i,o,a){if("innerHTML"===e||"textContent"===e)return r&&a(r,i,o),void(t[e]=null==n?"":n);if("value"!==e||"PROGRESS"===t.tagName){if(""===n||null==n){const r=typeof t[e];if(""===n&&"boolean"===r)return void(t[e]=!0);if(null==n&&"string"===r)return t[e]="",void t.removeAttribute(e);
1577if("number"===r)return t[e]=0,void t.removeAttribute(e)}try{t[e]=n}catch(s){0}}else{t._value=n;const e=null==n?"":n;t.value!==e&&(t.value=e)}}let xi=Date.now,ji=!1;if("undefined"!==typeof window){xi()>document.createEvent("Event").timeStamp&&(xi=()=>performance.now());const t=navigator.userAgent.match(/firefox\/(\d+)/i);ji=!!(t&&Number(t[1])<=53)}let Ai=0;const Ni=Promise.resolve(),Pi=()=>{Ai=0},Ri=()=>Ai||(Ni.then(Pi),Ai=xi());function Di(t,e,n,r){t.addEventListener(e,n,r)}function Li(t,e,n,r){t.removeEventListener(e,n,r)}function Mi(t,e,n,r,i=null){const o=t._vei||(t._vei={}),a=o[e];if(r&&a)a.value=r;else{const[n,s]=Ui(e);if(r){const a=o[e]=qi(r,i);Di(t,n,a,s)}else a&&(Li(t,n,a,s),o[e]=void 0)}}const Fi=/(?:Once|Passive|Capture)$/;function Ui(t){let e;if(Fi.test(t)){let n;e={};while(n=t.match(Fi))t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[Object(r["k"])(t.slice(2)),e]}function qi(t,e){const n=t=>{const r=t.timeStamp||xi();(ji||r>=n.attached-1)&&Lt($i(t,n.value),e,5,[t])};return n.value=t,n.attached=Ri(),n}function $i(t,e){if(Object(r["m"])(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(t=>e=>!e._stopped&&t(e))}return e}const Bi=/^on[a-z]/,Vi=(t,e)=>"value"===e,Ki=(t,e,n,i,o=!1,a,s,u,c)=>{switch(e){case"class":bi(t,i,o);break;case"style":wi(t,n,i);break;default:Object(r["u"])(e)?Object(r["s"])(e)||Mi(t,e,n,i,s):Wi(t,e,i,o)?Ci(t,e,i,a,s,u,c):("true-value"===e?t._trueValue=i:"false-value"===e&&(t._falseValue=i),ki(t,e,i,o));break}};function Wi(t,e,n,i){return i?"innerHTML"===e||!!(e in t&&Bi.test(e)&&Object(r["n"])(n)):"spellcheck"!==e&&"draggable"!==e&&("form"!==e&&(("list"!==e||"INPUT"!==t.tagName)&&(("type"!==e||"TEXTAREA"!==t.tagName)&&((!Bi.test(e)||!Object(r["A"])(n))&&e in t))))}const zi="transition",Hi="animation",Gi=(t,{slots:e})=>fi(un,Yi(t),e);Gi.displayName="Transition";const Xi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Gi.props=Object(r["h"])({},un.props,Xi);function Yi(t){let{name:e="v",type:n,css:i=!0,duration:o,enterFromClass:a=e+"-enter-from",enterActiveClass:s=e+"-enter-active",enterToClass:u=e+"-enter-to",appearFromClass:c=a,appearActiveClass:l=s,appearToClass:f=u,leaveFromClass:h=e+"-leave-from",leaveActiveClass:d=e+"-leave-active",leaveToClass:p=e+"-leave-to"}=t;const v={};for(const r in t)r in Xi||(v[r]=t[r]);if(!i)return v;const g=Qi(o),m=g&&g[0],y=g&&g[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:_,onLeave:E,onLeaveCancelled:O,onBeforeAppear:I=b,onAppear:T=w,onAppearCancelled:S=_}=v,k=(t,e,n)=>{to(t,e?f:u),to(t,e?l:s),n&&n()},C=(t,e)=>{to(t,p),to(t,d),e&&e()},x=t=>(e,r)=>{const i=t?T:w,o=()=>k(e,t,r);i&&i(e,o),eo(()=>{to(e,t?c:a),Zi(e,t?f:u),i&&i.length>1||ro(e,n,m,o)})};return Object(r["h"])(v,{onBeforeEnter(t){b&&b(t),Zi(t,a),Zi(t,s)},onBeforeAppear(t){I&&I(t),Zi(t,c),Zi(t,l)},onEnter:x(!1),onAppear:x(!0),onLeave(t,e){const r=()=>C(t,e);Zi(t,h),so(),Zi(t,d),eo(()=>{to(t,h),Zi(t,p),E&&E.length>1||ro(t,n,y,r)}),E&&E(t,r)},onEnterCancelled(t){k(t,!1),_&&_(t)},onAppearCancelled(t){k(t,!0),S&&S(t)},onLeaveCancelled(t){C(t),O&&O(t)}})}function Qi(t){if(null==t)return null;if(Object(r["t"])(t))return[Ji(t.enter),Ji(t.leave)];{const e=Ji(t);return[e,e]}}function Ji(t){const e=Object(r["K"])(t);return e}function Zi(t,e){e.split(/\s+/).forEach(e=>e&&t.classList.add(e)),(t._vtc||(t._vtc=new Set)).add(e)}function to(t,e){e.split(/\s+/).forEach(e=>e&&t.classList.remove(e));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function eo(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let no=0;function ro(t,e,n,r){const i=t._endId=++no,o=()=>{i===t._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:u}=io(t,e);if(!a)return r();const c=a+"end";let l=0;const f=()=>{t.removeEventListener(c,h),o()},h=e=>{e.target===t&&++l>=u&&f()};setTimeout(()=>{l<u&&f()},s+1),t.addEventListener(c,h)}function io(t,e){const n=window.getComputedStyle(t),r=t=>
1577(n[t]||"").split(", "),i=r(zi+"Delay"),o=r(zi+"Duration"),a=oo(i,o),s=r(Hi+"Delay"),u=r(Hi+"Duration"),c=oo(s,u);let l=null,f=0,h=0;e===zi?a>0&&(l=zi,f=a,h=o.length):e===Hi?c>0&&(l=Hi,f=c,h=u.length):(f=Math.max(a,c),l=f>0?a>c?zi:Hi:null,h=l?l===zi?o.length:u.length:0);const d=l===zi&&/\b(transform|all)(,|$)/.test(n[zi+"Property"]);return{type:l,timeout:f,propCount:h,hasTransform:d}}function oo(t,e){while(t.length<e.length)t=t.concat(t);return Math.max(...e.map((e,n)=>ao(e)+ao(t[n])))}function ao(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function so(){return document.body.offsetHeight}new WeakMap,new WeakMap;const uo=Object(r["h"])({patchProp:Ki,forcePatchProp:Vi},yi);let co;function lo(){return co||(co=$n(uo))}const fo=(...t)=>{const e=lo().createApp(...t);const{mount:n}=e;return e.mount=t=>{const i=ho(t);if(!i)return;const o=e._component;Object(r["n"])(o)||o.render||o.template||(o.template=i.innerHTML),i.innerHTML="";const a=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},e};function ho(t){if(Object(r["A"])(t)){const e=document.querySelector(t);return e}return t}},"7a77":function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},"7aac":function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),u=n("1be4"),c=n("cc12"),l=n("f772"),f=">",h="<",d="prototype",p="script",v=l("IE_PROTO"),g=function(){},m=function(t){return h+p+f+t+h+"/"+p+f},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=c("iframe"),n="java"+p+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},w=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}w=r?y(r):b();var t=a.length;while(t--)delete w[d][a[t]];return w()};s[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[d]=i(t),n=new g,g[d]=null,n[v]=t):n=w(),void 0===e?n:o(n,e)}},"7d8d":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return D})),n.d(e,"c",(function(){return C})),n.d(e,"d",(function(){return L}));var r,i=n("6d28"),o=function(t){return s(t)},a=function(t,e){return"string"===typeof t&&(e=t,t=void 0),o(t).includes(e)},s=function(t){if(void 0===t&&(t=window),"undefined"===typeof t)return[];t.Ionic=t.Ionic||{};var e=t.Ionic.platforms;return null==e&&(e=t.Ionic.platforms=u(t),e.forEach((function(e){return t.document.documentElement.classList.add("plt-"+e)}))),e},u=function(t){return Object.keys(S).filter((function(e){return S[e](t)}))},c=function(t){return m(t)&&!b(t)},l=function(t){return!!I(t,/iPad/i)||!(!I(t,/Macintosh/i)||!m(t))},f=function(t){return I(t,/iPhone/i)},h=function(t){return I(t,/iPhone|iPod/i)||l(t)},d=function(t){return I(t,/android|sink/i)},p=function(t){return d(t)&&!I(t,/mobile/i)},v=function(t){var e=t.innerWidth,n=t.innerHeight,r=Math.min(e,n),i=Math.max(e,n);return r>390&&r<520&&i>620&&i<800},g=function(t){var e=t.innerWidth,n=t.innerHeight,r=Math.min(e,n),i=Math.max(e,n);return l(t)||p(t)||r>460&&r<820&&i>780&&i<1400},m=function(t){return T(t,"(any-pointer:coarse)")},y=function(t){return!m(t)},b=function(t){return w(t)||_(t)},w=function(t){return!!(t["cordova"]||t["phonegap"]||t["PhoneGap"])},_=function(t){var e=t["Capacitor"];return!(!e||!e.isNative)},E=function(t){return I(t,/electron/i)},O=function(t){return!(!t.matchMedia("(display-mode: standalone)").matches&&!t.navigator.standalone)},I=function(t,e){return e.test(t.navigator.userAgent)},T=function(t,e){return t.matchMedia(e).matches},S={ipad:l,iphone:f,ios:h,android:d,phablet:v,tablet:g,cordova:w,capacitor:_,electron:E,pwa:O,mobile:m,mobileweb:c,desktop:y,hybrid:b},k=function(){function t(){this.m=new Map}return t.prototype.reset=function(t){this.m=new Map(Object.entries(t))},t.prototype.get=function(t,e){var n=this.m.get(t);return void 0!==n?n:e},t.prototype.getBoolean=function(t,e){void 0===e&&(e=!1);var n=this.m.get(t);return void 0===n?e:"string"===typeof n?"true"===n:!!n},t.prototype.getNumber=function(t,e){var n=parseFloat(this.m.get(t));return isNaN(n)?void 0!==e?e:NaN:n},t.prototype.set=function(t,e){this.m.set(t,e)},t}(),C=new k,x=function(t){try{var e=t.sessionStorage.getItem(R);return null!==e?JSON.parse(e):{}}catch(n){return{}}},j=function(t,e){try{t.sessionStorage.setItem(R,JSON.stringify(e))}catch(n){return}},A=function(t){var e={};return t.location.search.slice(1).split("&").map((function(t){return t.split("=")})).map((function(t){var e=t[0],n=t[1];return[decodeURIComponent(e),decodeURIComponent(n)]})).filter((function(t){var e=t[0];return N(e,P)})).map((function(t){var e=t[0],n=t[1];return[e.slice(P.length),n]}
1577)).forEach((function(t){var n=t[0],r=t[1];e[n]=r})),e},N=function(t,e){return t.substr(0,e.length)===e},P="ionic:",R="ionic-persist-config",D=function(t){return t&&Object(i["i"])(t)||r},L=function(t){if(void 0===t&&(t={}),"undefined"!==typeof window){var e=window.document,n=window,o=n.Ionic=n.Ionic||{};s(n);var u=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},x(n)),{persistConfig:!1}),o.config),A(n)),t);C.reset(u),C.getBoolean("persistConfig")&&j(n,u),o.config=C,o.mode=r=C.get("mode",e.documentElement.getAttribute("mode")||(a(n,"ios")?"ios":"md")),C.set("mode",r),e.documentElement.setAttribute("mode",r),e.documentElement.classList.add(r),C.getBoolean("_testing")&&C.set("animated",!1);var c=function(t){return t.tagName&&t.tagName.startsWith("ION-")},l=function(t){return["ios","md"].includes(t)};Object(i["p"])((function(t){while(t){var e=t.mode||t.getAttribute("mode");if(e){if(l(e))return e;c(t)&&console.warn('Invalid ionic mode: "'+e+'", expected: "ios" or "md"')}t=t.parentElement}return r}))}}},"7db0":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").find,o=n("44d2"),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),u=n("9112"),c=n("6eeb"),l=n("b622"),f=n("c430"),h=n("3f8c"),d=n("ae93"),p=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,g=l("iterator"),m="keys",y="values",b="entries",w=function(){return this};t.exports=function(t,e,n,l,d,_,E){i(n,e,l);var O,I,T,S=function(t){if(t===d&&A)return A;if(!v&&t in x)return x[t];switch(t){case m:return function(){return new n(this,t)};case y:return function(){return new n(this,t)};case b:return function(){return new n(this,t)}}return function(){return new n(this)}},k=e+" Iterator",C=!1,x=t.prototype,j=x[g]||x["@@iterator"]||d&&x[d],A=!v&&j||S(d),N="Array"==e&&x.entries||j;if(N&&(O=o(N.call(new t)),p!==Object.prototype&&O.next&&(f||o(O)===p||(a?a(O,p):"function"!=typeof O[g]&&u(O,g,w)),s(O,k,!0,!0),f&&(h[k]=w))),d==y&&j&&j.name!==y&&(C=!0,A=function(){return j.call(this)}),f&&!E||x[g]===A||u(x,g,A),h[e]=A,d)if(I={values:S(y),keys:_?A:S(m),entries:S(b)},E)for(T in I)(v||C||!(T in x))&&c(x,T,I[T]);else r({target:e,proto:!0,forced:v||C},I);return I}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,n){"use strict";var r=n("d925"),i=n("e683");t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},8581:function(t,e,n){"use strict";n.d(e,"a",(function(){return F})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return v})),n.d(e,"e",(function(){return C})),n.d(e,"f",(function(){return m})),n.d(e,"g",(function(){return j})),n.d(e,"h",(function(){return P})),n.d(e,"i",(function(){return u})),n.d(e,"j",(function(){return D})),n.d(e,"k",(function(){return h})),n.d(e,"l",(function(){return d})),n.d(e,"m",(function(){return p})),n.d(e,"n",(function(){return M})),n.d(e,"o",(function(){return g}));var r=n("f530"),i=n("7d8d"),o=n("5ea3"),a=n("61cf"),s=0,u=new WeakMap,c=function(t){return{create:function(e){return y(t,e)},dismiss:function(e,n,r){return T(document,e,n,t,r)},getTop:function(){return Object(r["a"])(this,void 0,void 0,(function(){return Object(r["c"])(this,(function(e){return[2,k(document,t)]}))}))}}},l=c("ion-alert"),f=c("ion-action-sheet"),h=c("ion-loading"),d=c("ion-modal"),p=c("ion-picker"),v=c("ion-popover"),g=c("ion-toast"),m=function(t){"undefined"!==typeof document&&I(document);var e=s++;t.overlayIndex=e,t.hasAttribute("id")||(t.id="ion-overlay-"+e)},y=function(t,e){return"undefined"!==typeof customElements?customElements.whenDefined(t).then((function(){var n=document.createElement(t);return n.classList.add("overlay-hidden"),Object.assign(n,e),A(document).appendChild(n),new Promise((function(t){return Object(a["c"])(n,t)}))})):Promise.resolve()}
1577,b='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',w="input:not([type=hidden]), textarea, button, select",_=function(t,e){var n=t.querySelector(b),r=n&&n.shadowRoot;r&&(n=r.querySelector(w)||n),n?n.focus():e.focus()},E=function(t,e){var n=Array.from(t.querySelectorAll(b)),r=n.length>0?n[n.length-1]:null,i=r&&r.shadowRoot;i&&(r=i.querySelector(w)||r),r?r.focus():e.focus()},O=function(t,e){var n=k(e),r=t.target;if(n&&r)if(n===r)n.lastFocus=void 0;else{var i=Object(a["g"])(n);if(!i.contains(r))return;var o=i.querySelector(".ion-overlay-wrapper");if(!o)return;if(o.contains(r))n.lastFocus=r;else{var s=n.lastFocus;_(o,n),s===e.activeElement&&E(o,n),n.lastFocus=e.activeElement}}},I=function(t){0===s&&(s=1,t.addEventListener("focus",(function(e){return O(e,t)}),!0),t.addEventListener("ionBackButton",(function(e){var n=k(t);n&&n.backdropDismiss&&e.detail.register(o["OVERLAY_BACK_BUTTON_PRIORITY"],(function(){return n.dismiss(void 0,F)}))})),t.addEventListener("keyup",(function(e){if("Escape"===e.key){var n=k(t);n&&n.backdropDismiss&&n.dismiss(void 0,F)}})))},T=function(t,e,n,r,i){var o=k(t,r,i);return o?o.dismiss(e,n):Promise.reject("overlay does not exist")},S=function(t,e){return void 0===e&&(e="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(t.querySelectorAll(e)).filter((function(t){return t.overlayIndex>0}))},k=function(t,e,n){var r=S(t,e);return void 0===n?r[r.length-1]:r.find((function(t){return t.id===n}))},C=function(t,e,n,o,a){return Object(r["a"])(void 0,void 0,void 0,(function(){var s,u,c;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return t.presented?[2]:(t.presented=!0,t.willPresent.emit(),s=Object(i["b"])(t),u=t.enterAnimation?t.enterAnimation:i["c"].get(e,"ios"===s?n:o),[4,N(t,u,t.el,a)]);case 1:return c=r.sent(),c&&t.didPresent.emit(),"ION-TOAST"!==t.el.tagName&&x(t.el),t.keyboardClose&&t.el.focus(),[2]}}))}))},x=function(t){return Object(r["a"])(void 0,void 0,void 0,(function(){var e,n;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return e=document.activeElement,e?(n=e&&e.shadowRoot,n&&(e=n.querySelector(w)||e),[4,t.onDidDismiss()]):[2];case 1:return r.sent(),e.focus(),[2]}}))}))},j=function(t,e,n,o,a,s,c){return Object(r["a"])(void 0,void 0,void 0,(function(){var l,f,h;return Object(r["c"])(this,(function(r){switch(r.label){case 0:if(!t.presented)return[2,!1];t.presented=!1,r.label=1;case 1:return r.trys.push([1,4,,5]),t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:e,role:n}),l=Object(i["b"])(t),f=t.leaveAnimation?t.leaveAnimation:i["c"].get(o,"ios"===l?a:s),"gesture"===n?[3,3]:[4,N(t,f,t.el,c)];case 2:r.sent(),r.label=3;case 3:return t.didDismiss.emit({data:e,role:n}),u.delete(t),[3,5];case 4:return h=r.sent(),console.error(h),[3,5];case 5:return t.el.remove(),[2,!0]}}))}))},A=function(t){return t.querySelector("ion-app")||t.body},N=function(t,e,n,o){return Object(r["a"])(void 0,void 0,void 0,(function(){var a,s,c;return Object(r["c"])(this,(function(l){switch(l.label){case 0:return n.classList.remove("overlay-hidden"),a=n.shadowRoot||t.el,s=e(a,o),t.animated&&i["c"].getBoolean("animated",!0)||s.duration(0),t.keyboardClose&&s.beforeAddWrite((function(){var t=n.ownerDocument.activeElement;t&&t.matches("input, ion-input, ion-textarea")&&t.blur()})),c=u.get(t)||[],u.set(t,Object(r["d"])(Object(r["d"])([],c),[s])),[4,s.play()];case 1:return l.sent(),[2,!0]}}))}))},P=function(t,e){var n,r=new Promise((function(t){return n=t}));return R(t,e,(function(t){n(t.detail)})),r},R=function(t,e,n){var r=function(i){Object(a["b"])(t,e,r),n(i)};Object(a["a"])(t,e,r)},D=function(t){return"cancel"===t||t===F},L=function(t){return t()},M=function(t,e){if("function"===typeof t){var n=i["c"].get("_zoneGate",L);return n((function(){try{return t(e)}catch(n){console.error(n)}}))}},F="backdrop"},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;
1577t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"8df4":function(t,e,n){"use strict";var r=n("7a77");function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t,e=new i((function(e){t=e}));return{token:e,cancel:t}},t.exports=i},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9263:function(t,e,n){"use strict";var r=n("ad6d"),i=n("9f7f"),o=n("5692"),a=RegExp.prototype.exec,s=o("native-string-replace",String.prototype.replace),u=a,c=function(){var t=/a/,e=/b*/g;return a.call(t,"a"),a.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,f=void 0!==/()??/.exec("")[1],h=c||f||l;h&&(u=function(t){var e,n,i,o,u=this,h=l&&u.sticky,d=r.call(u),p=u.source,v=0,g=t;return h&&(d=d.replace("y",""),-1===d.indexOf("g")&&(d+="g"),g=String(t).slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==t[u.lastIndex-1])&&(p="(?: "+p+")",g=" "+g,v++),n=new RegExp("^(?:"+p+")",d)),f&&(n=new RegExp("^"+p+"$(?!\\s)",d)),c&&(e=u.lastIndex),i=a.call(h?n:u,g),h?i?(i.input=i.input.slice(v),i[0]=i[0].slice(v),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:c&&i&&(u.lastIndex=u.global?i.index+i[0].length:e),f&&i&&i.length>1&&s.call(i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i}),t.exports=u},9483:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r,i=function(){return Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))};function o(t,e){void 0===e&&(e={});var n=e.registrationOptions;void 0===n&&(n={}),delete e.registrationOptions;var o=function(t){var n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];e&&e[t]&&e[t].apply(e,n)};"serviceWorker"in navigator&&r.then((function(){i()?(u(t,o,n),navigator.serviceWorker.ready.then((function(t){o("ready",t)})).catch((function(t){return a(o,t)}))):(s(t,o,n),navigator.serviceWorker.ready.then((function(t){o("ready",t)})).catch((function(t){return a(o,t)})))}))}function a(t,e){navigator.onLine||t("offline"),t("error",e)}function s(t,e,n){navigator.serviceWorker.register(t,n).then((function(t){e("registered",t),t.waiting?e("updated",t):t.onupdatefound=function(){e("updatefound",t);var n=t.installing;n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?e("updated",t):e("cached",t))}}})).catch((function(t){return a(e,t)}))}function u(t,e,n){fetch(t).then((function(r){404===r.status?(e("error",new Error("Service worker not found at "+t)),c()):-1===r.headers.get("content-type").indexOf("javascript")?(e("error",new Error("Expected "+t+" to have javascript content-type, but received "+r.headers.get("content-type"))),c()):s(t,e,n)})).catch((function(t){return a(e,t)}))}function c(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(t){t.unregister()})).catch((function(t){return a(emit,t)}))}"undefined"!==typeof window&&(r="undefined"!==typeof Promise?new Promise((function(t){return window.addEventListener("load",t)})):{then:function(t){return window.addEventListener("load",t)}})},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},"96cf":function(t,e,n){var r=function(t){"use strict";var e,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(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(N){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=T(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(N){return{type:"throw",arg:N}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};function g(){}function m(){}function y(){}var b={};b[o]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(j([])));_&&_!==n&&r.call(_,o)&&(b=_);var E=y.prototype=g.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function n(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"===typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var i;function o(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}this._invoke=o}function T(t,e,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return A()}n.method=i,n.arg=o;while(1){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===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?p:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,S(t,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=l(r,t.iterator,n.arg);
vendor: 4,184 bytes, line 1577
1577if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function j(t){if(t){var n=t[o];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){while(++i<t.length)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:A}}function A(){return{value:e,done:!0}}return m.prototype=E.constructor=y,y.constructor=m,m.displayName=u(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},O(I.prototype),I.prototype[a]=function(){return this},t.AsyncIterator=I,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new I(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(E),u(E,s,"Generator"),E[o]=function(){return this},E.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=j,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},9802:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}
1577)),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"g",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return l}));
1578/*! *****************************************************************************
1579Copyright (c) Microsoft Corporation.
1580
1581Permission to use, copy, modify, and/or distribute this software for any
1582purpose with or without fee is hereby granted.
1583
1584THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1585REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1586AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1587INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1588LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1589OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1590PERFORMANCE OF THIS SOFTWARE.
1591***************************************************************************** */
1592var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function s(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;function u(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function l(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}Object.create},9897:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"f",(function(){return k})),n.d(e,"g",(function(){return j})),n.d(e,"h",(function(){return T})),n.d(e,"i",(function(){return C})),n.d(e,"j",(function(){return d}));var r=n("f530"),i=n("6d28"),o=n("61cf"),a="ionViewWillEnter",s="ionViewDidEnter",u="ionViewWillLeave",c="ionViewDidLeave",l="ionViewWillUnload",f=function(){return Promise.resolve().then(n.bind(null,"2f12"))},h=function(){return Promise.resolve().then(n.bind(null,"aaf9"))},d=function(t){return new Promise((function(e,n){Object(i["f"])((function(){p(t),v(t).then((function(n){n.animation&&n.animation.destroy(),g(t),e(n)}),(function(e){g(t),n(e)}))}))}))},p=function(t){var e=t.enteringEl,n=t.leavingEl;x(e,n,t.direction),t.showGoBack?e.classList.add("can-go-back"):e.classList.remove("can-go-back"),C(e,!1),n&&C(n,!1)},v=function(t){return Object(r["a"])(void 0,void 0,void 0,(function(){var e,n;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return[4,m(t)];case 1:return e=r.sent(),n=e&&i["a"].isBrowser?y(e,t):b(t),[2,n]}}))}))},g=function(t){var e=t.enteringEl,n=t.leavingEl;e.classList.remove("ion-page-invisible"),void 0!==n&&n.classList.remove("ion-page-invisible")},m=function(t){return Object(r["a"])(void 0,void 0,void 0,(function(){var e,n;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return t.leavingEl&&t.animated&&0!==t.duration?t.animationBuilder?[2,t.animationBuilder]:"ios"!==t.mode?[3,2]:[4,f()]:[2,void 0];case 1:return n=r.sent().iosTransitionAnimation,[3,4];case 2:return[4,h()];case 3:n=r.sent().mdTransitionAnimation,r.label=4;case 4:return e=n,[2,e]}}))}))},y=function(t,e){return Object(r["a"])(void 0,void 0,void 0,(function(){var n,i;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return[4,w(e,!0)];case 1:return r.sent(),n=t(e.baseEl,e),O(e.enteringEl,e.leavingEl),[4,E(n,e)];case 2:return i=r.sent(),e.progressCallback&&e.progressCallback(void 0),i&&I(e.enteringEl,e.leavingEl),[2,{hasCompleted:i,animation:n}]}}))}))},b=function(t){return Object(r["a"])(void 0,void 0,void 0,(function(){var e,n;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return e=t.enteringEl,n=t.leavingEl,[4,w(t,!1)];case 1:return r.sent(),O(e,n),I(e,n),[2,{hasCompleted:!0}]}}))}))},w=function(t,e){return Object(r["a"])(void 0,void 0,void 0,(function(){var n,i;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return n=void 0!==t.deepWait?t.deepWait:e,i=n?[k(t.enteringEl),k(t.leavingEl)]:[S(t.enteringEl),S(t.leavingEl)],[4,Promise.all(i)];case 1:return r.sent(),[4,_(t.viewIsReady,t.enteringEl)];case 2:return r.sent(),[2]}}))}))},_=function(t,e){return Object(r["a"])(void 0,void 0,void 0,(function(){return Object(r["c"])(this,(function(n){switch(n.label){case 0:return t?[4,t(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}
1592))}))},E=function(t,e){var n=e.progressCallback,r=new Promise((function(e){t.onFinish((function(t){return e(1===t)}))}));return n?(t.progressStart(!0),n(t)):t.play(),r},O=function(t,e){T(e,u),T(t,a)},I=function(t,e){T(t,s),T(e,c)},T=function(t,e){if(t){var n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(n)}},S=function(t){return t?new Promise((function(e){return Object(o["c"])(t,e)})):Promise.resolve()},k=function(t){return Object(r["a"])(void 0,void 0,void 0,(function(){var e,n;return Object(r["c"])(this,(function(r){switch(r.label){case 0:return e=t,e?null==e.componentOnReady?[3,2]:[4,e.componentOnReady()]:[3,4];case 1:if(n=r.sent(),null!=n)return[2];r.label=2;case 2:return[4,Promise.all(Array.from(e.children).map(k))];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},C=function(t,e){e?(t.setAttribute("aria-hidden","true"),t.classList.add("ion-page-hidden")):(t.hidden=!1,t.removeAttribute("aria-hidden"),t.classList.remove("ion-page-hidden"))},x=function(t,e,n){void 0!==t&&(t.style.zIndex="back"===n?"99":"101"),void 0!==e&&(e.style.zIndex="100")},j=function(t){if(t.classList.contains("ion-page"))return t;var e=t.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");return e||t}},"98b6":function(t,e,n){},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),u=n("50c4"),c=n("8418"),l=n("65f0"),f=n("1dde"),h=n("b622"),d=n("2d00"),p=h("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",m=d>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=f("concat"),b=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},w=!m||!y;r({target:"Array",proto:!0,forced:w},{concat:function(t){var e,n,r,i,o,a=s(this),f=l(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],b(o)){if(i=u(o.length),h+i>v)throw TypeError(g);for(n=0;n<i;n++,h++)n in o&&c(f,h,o[n])}else{if(h>=v)throw TypeError(g);c(f,h++,o)}return f.length=h,f}})},"9bdd":function(t,e,n){var r=n("825a"),i=n("2a62");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){throw i(t),a}}},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9dbb":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t){return Array.prototype.slice.call(t)}function n(t){return new Promise((function(e,n){t.onsuccess=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function r(t,e,r){var i,o=new Promise((function(o,a){i=t[e].apply(t,r),n(i).then(o,a)}));return o.request=i,o}function i(t,e,n){var i=r(t,e,n);return i.then((function(t){if(t)return new l(t,i.request)}))}function o(t,e,n){n.forEach((function(n){Object.defineProperty(t.prototype,n,{get:function(){return this[e][n]},set:function(t){this[e][n]=t}})}))}function a(t,e,n,i){i.forEach((function(i){i in n.prototype&&(t.prototype[i]=function(){return r(this[e],i,arguments)})}))}function s(t,e,n,r){r.forEach((function(r){r in n.prototype&&(t.prototype[r]=function(){return this[e][r].apply(this[e],arguments)})}))}function u(t,e,n,r){r.forEach((function(r){r in n.prototype&&(t.prototype[r]=function(){return i(this[e],r,arguments)})}))}function c(t){this._index=t}function l(t,e){this._cursor=t,this._request=e}function f(t){this._store=t}function h(t){this._tx=t,this.complete=new Promise((function(e,n){t.oncomplete=function(){e()},t.onerror=function(){n(t.error)},t.onabort=function(){n(t.error)}}))}function d(t,e,n){this._db=t,this.oldVersion=e,this.transaction=new h(n)}function p(t){this._db=t}function v(t,e,n){var i=r(indexedDB,"open",[t,e]),o=i.request;return o&&(o.onupgradeneeded=function(t){n&&n(new d(o.result,t.oldVersion,o.transaction))}),i.then((function(t){return new p(t)}))}function g(t){return r(indexedDB,"deleteDatabase",[t])}o(c,"_index",["name","keyPath","multiEntry","unique"]),a(c,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),u(c,"_index",IDBIndex,["openCursor","o
1592penKeyCursor"]),o(l,"_cursor",["direction","key","primaryKey","value"]),a(l,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(t){t in IDBCursor.prototype&&(l.prototype[t]=function(){var e=this,r=arguments;return Promise.resolve().then((function(){return e._cursor[t].apply(e._cursor,r),n(e._request).then((function(t){if(t)return new l(t,e._request)}))}))})})),f.prototype.createIndex=function(){return new c(this._store.createIndex.apply(this._store,arguments))},f.prototype.index=function(){return new c(this._store.index.apply(this._store,arguments))},o(f,"_store",["name","keyPath","indexNames","autoIncrement"]),a(f,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),u(f,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),s(f,"_store",IDBObjectStore,["deleteIndex"]),h.prototype.objectStore=function(){return new f(this._tx.objectStore.apply(this._tx,arguments))},o(h,"_tx",["objectStoreNames","mode"]),s(h,"_tx",IDBTransaction,["abort"]),d.prototype.createObjectStore=function(){return new f(this._db.createObjectStore.apply(this._db,arguments))},o(d,"_db",["name","version","objectStoreNames"]),s(d,"_db",IDBDatabase,["deleteObjectStore","close"]),p.prototype.transaction=function(){return new h(this._db.transaction.apply(this._db,arguments))},o(p,"_db",["name","version","objectStoreNames"]),s(p,"_db",IDBDatabase,["close"]),["openCursor","o
1592penKeyCursor"].forEach((function(t){[f,c].forEach((function(n){t in n.prototype&&(n.prototype[t.replace("open","iterate")]=function(){var n=e(arguments),r=n[n.length-1],i=this._store||this._index,o=i[t].apply(i,n.slice(0,-1));o.onsuccess=function(){r(o.result)}})}))})),[c,f].forEach((function(t){t.prototype.getAll||(t.prototype.getAll=function(t,e){var n=this,r=[];return new Promise((function(i){n.iterateCursor(t,(function(t){t?(r.push(t.value),void 0===e||r.length!=e?t.continue():i(r)):i(r)}))}))})})),t.openDb=v,t.deleteDb=g,Object.defineProperty(t,"__esModule",{value:!0})}))},"9dcd":function(t,e,n){var r;(function(i){"use strict";var o,a=20,s=1,u=1e6,c=1e6,l=-7,f=21,h=!1,d="[big.js] ",p=d+"Invalid ",v=p+"decimal places",g=p+"rounding mode",m=d+"Division by zero",y={},b=void 0,w=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _(){function t(e){var n=this;if(!(n instanceof t))return e===b?_():new t(e);if(e instanceof t)n.s=e.s,n.e=e.e,n.c=e.c.slice();else{if("string"!==typeof e){if(!0===t.strict)throw TypeError(p+"number");e=0===e&&1/e<0?"-0":String(e)}E(n,e)}n.constructor=t}return t.prototype=y,t.DP=a,t.RM=s,t.NE=l,t.PE=f,t.strict=h,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}function E(t,e){var n,r,i;if(!w.test(e))throw Error(p+"number");for(t.s="-"==e.charAt(0)?(e=e.slice(1),-1):1,(n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),i=e.length,r=0;r<i&&"0"==e.charAt(r);)++r;if(r==i)t.c=[t.e=0];else{for(;i>0&&"0"==e.charAt(--i););for(t.e=n-r-1,t.c=[],n=0;r<=i;)t.c[n++]=+e.charAt(r++)}return t}function O(t,e,n,r){var i=t.c;if(n===b&&(n=t.constructor.RM),0!==n&&1!==n&&2!==n&&3!==n)throw Error(g);if(e<1)r=3===n&&(r||!!i[0])||0===e&&(1===n&&i[0]>=5||2===n&&(i[0]>5||5===i[0]&&(r||i[1]!==b))),i.length=1,r?(t.e=t.e-e+1,i[0]=1):i[0]=t.e=0;else if(e<i.length){if(r=1===n&&i[e]>=5||2===n&&(i[e]>5||5===i[e]&&(r||i[e+1]!==b||1&i[e-1]))||3===n&&(r||!!i[0]),i.length=e--,r)for(;++i[e]>9;)i[e]=0,e--||(++t.e,i.unshift(1));for(e=i.length;!i[--e];)i.pop()}return t}function I(t,e,n){var r=t.e,i=t.c.join(""),o=i.length;if(e)i=i.charAt(0)+(o>1?"."+i.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)i="0"+i;i="0."+i}else if(r>0)if(++r>o)for(r-=o;r--;)i+="0";else r<o&&(i=i.slice(0,r)+"."+i.slice(r));else o>1&&(i=i.charAt(0)+"."+i.slice(1));return t.s<0&&n?"-"+i:i}y.abs=function(){var t=new this.constructor(this);return t.s=1,t},y.cmp=function(t){var e,n=this,r=n.c,i=(t=new n.constructor(t)).c,o=n.s,a=t.s,s=n.e,u=t.e;if(!r[0]||!i[0])return r[0]?o:i[0]?-a:0;if(o!=a)return o;if(e=o<0,s!=u)return s>u^e?1:-1;for(a=(s=r.length)<(u=i.length)?s:u,o=-1;++o<a;)if(r[o]!=i[o])return r[o]>i[o]^e?1:-1;return s==u?0:s>u^e?1:-1},y.div=function(t){var e=this,n=e.constructor,r=e.c,i=(t=new n(t)).c,o=e.s==t.s?1:-1,a=n.DP;if(a!==~~a||a<0||a>u)throw Error(v);if(!i[0])throw Error(m);if(!r[0])return t.s=o,t.c=[t.e=0],t;var s,c,l,f,h,d=i.slice(),p=s=i.length,g=r.length,y=r.slice(0,s),w=y.length,_=t,E=_.c=[],I=0,T=a+(_.e=e.e-t.e)+1;for(_.s=o,o=T<0?0:T,d.unshift(0);w++<s;)y.push(0);do{for(l=0;l<10;l++){if(s!=(w=y.length))f=s>w?1:-1;else for(h=-1,f=0;++h<s;)if(i[h]!=y[h]){f=i[h]>y[h]?1:-1;break}if(!(f<0))break;for(c=w==s?i:d;w;){if(y[--w]<c[w]){for(h=w;h&&!y[--h];)y[h]=9;--y[h],y[w]+=10}y[w]-=c[w]}for(;!y[0];)y.shift()}E[I++]=f?l:++l,y[0]&&f?y[w]=r[p]||0:y=[r[p]]}while((p++<g||y[0]!==b)&&o--);return E[0]||1==I||(E.shift(),_.e--,T--),I>T&&O(_,T,n.RM,y[0]!==b),_},y.eq=function(t){return 0===this.cmp(t)},y.gt=function(t){return this.cmp(t)>0},y.gte=function(t){return this.cmp(t)>-1},y.lt=function(t){return this.cmp(t)<0},y.lte=function(t){return this.cmp(t)<1},y.minus=y.sub=function(t){var e,n,r,i,o=this,a=o.constructor,s=o.s,u=(t=new a(t)).s;if(s!=u)return t.s=-u,o.plus(t);var c=o.c.slice(),l=o.e,f=t.c,h=t.e;if(!c[0]||!f[0])return f[0]?t.s=-u:c[0]?t=new a(o):t.s=1,t;if(s=l-h){for((i=s<0)?(s=-s,r=c):(h=l,r=f),r.reverse(),u=s;u--;)r.push(0);r.reverse()}else for(n=((i=c.length<f.length)?c:f).length,s=u=0;u<n;u++)if(c[u]!=f[u]){i=c[u]<f[u];break}if(i&&(r=c,c=f,f=r,t.s=-t.s),(u=(n=f.length)-(e=c.length))>0)for(;u--;)c[e++]=0;for(u=e;n>s;){if(c[--n]<f[n]){for(e=n;e&&!c[--e];)c[e]=9;--c[e],c[n]+=10}c[n]-=f[n]}for(;0===c[--u];)c.pop();for(;0===c[0];)c.shift(),--h;return c[0]||(t.s=1,c=[h=0]),t.c=c,t.e=h,t},y.mod=function(t){var e,n=this,r=n.constructor,i=n.s,o=(t=new r(t)).s;if(!t.c[0])throw Error(m);return n.s=t.s=1,e=1==t.cmp(n),n.s=i,t.s=o,e?new r(n):(i=r.DP,o=r.RM,r.DP=r.RM=0,n=n.div(t),r.DP=i,r.RM=o,this.minus(n.times(t)))},y.plus=y.add=function(t){var e,n,r,i=this,o=i.constructor;if(t=new o(t),i.s!=t.s)return t.s=-t.s,i.minus(t);var a=i.e,s=i.c,u=t.e,c=t.c;if(!s[0]||!c[0])return c[0]||(s[0]?t=new o(i):t.s=i.s),t;if(s=s.slice(),e=a-u){for(e>0?(u=a,r=c):(e=-e,r=s),r.reverse();e--;)r.push(0);r.reverse()}for(s.length-c.length<0&&(r=c,c=s,s=r),e=c.length,n=0;e;s[e]%=10)n=(s[--e]=s[e]+c[e]+n)/10|0;for(n&&(s.unshift(n),++u),e=s.length;0===s[--e];)s.pop();return t.c=s,t.e=u,t},y.pow=function(t){var e=this,n=new e.constructor("1"),r=n,i=t<0;if(t!==~~t||t<-c||t>c)throw Error(p+"exponent");for(i&&(t=-t);;){if(1&t&&(r=r.times(e)),t>>=1,!t)break;e=e.times(e)}return i?n.div(r):r},y.prec=function(t,e){if(t!==~~t||t<1||t>u)throw Error(p+"precision");return O(new this.constructor(this),t,e)}
1592,y.round=function(t,e){if(t===b)t=0;else if(t!==~~t||t<-u||t>u)throw Error(v);return O(new this.constructor(this),t+this.e+1,e)},y.sqrt=function(){var t,e,n,r=this,i=r.constructor,o=r.s,a=r.e,s=new i("0.5");if(!r.c[0])return new i(r);if(o<0)throw Error(d+"No square root");o=Math.sqrt(r+""),0===o||o===1/0?(e=r.c.join(""),e.length+a&1||(e+="0"),o=Math.sqrt(e),a=((a+1)/2|0)-(a<0||1&a),t=new i((o==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+a)):t=new i(o+""),a=t.e+(i.DP+=4);do{n=t,t=s.times(n.plus(r.div(n)))}while(n.c.slice(0,a).join("")!==t.c.slice(0,a).join(""));return O(t,(i.DP-=4)+t.e+1,i.RM)},y.times=y.mul=function(t){var e,n=this,r=n.constructor,i=n.c,o=(t=new r(t)).c,a=i.length,s=o.length,u=n.e,c=t.e;if(t.s=n.s==t.s?1:-1,!i[0]||!o[0])return t.c=[t.e=0],t;for(t.e=u+c,a<s&&(e=i,i=o,o=e,c=a,a=s,s=c),e=new Array(c=a+s);c--;)e[c]=0;for(u=s;u--;){for(s=0,c=a+u;c>u;)s=e[c]+o[u]*i[c-u-1]+s,e[c--]=s%10,s=s/10|0;e[c]=s}for(s?++t.e:e.shift(),u=e.length;!e[--u];)e.pop();return t.c=e,t},y.toExponential=function(t,e){var n=this,r=n.c[0];if(t!==b){if(t!==~~t||t<0||t>u)throw Error(v);for(n=O(new n.constructor(n),++t,e);n.c.length<t;)n.c.push(0)}return I(n,!0,!!r)},y.toFixed=function(t,e){var n=this,r=n.c[0];if(t!==b){if(t!==~~t||t<0||t>u)throw Error(v);for(n=O(new n.constructor(n),t+n.e+1,e),t=t+n.e+1;n.c.length<t;)n.c.push(0)}return I(n,!1,!!r)},y.toJSON=y.toString=function(){var t=this,e=t.constructor;return I(t,t.e<=e.NE||t.e>=e.PE,!!t.c[0])},y.toNumber=function(){var t=Number(I(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(t.toString()))throw Error(d+"Imprecise conversion");return t},y.toPrecision=function(t,e){var n=this,r=n.constructor,i=n.c[0];if(t!==b){if(t!==~~t||t<1||t>u)throw Error(p+"precision");for(n=O(new r(n),t,e);n.c.length<t;)n.c.push(0)}return I(n,t<=n.e||n.e<=r.NE||n.e>=r.PE,!!i)},y.valueOf=function(){var t=this,e=t.constructor;if(!0===e.strict)throw Error(d+"valueOf disallowed");return I(t,t.e<=e.NE||t.e>=e.PE,!0)},o=_(),o["default"]=o.Big=o,r=function(){return o}.call(e,n,e,t),void 0===r||(t.exports=r)})()},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=u,t}},"9f7f":function(t,e,n){"use strict";var r=n("d039");function i(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},"9ff4":function(t,e,n){"use strict";(function(t){function r(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return E})),n.d(e,"c",(function(){return T})),n.d(e,"d",(function(){return I})),n.d(e,"e",(function(){return Y})),n.d(e,"f",(function(){return Z})),n.d(e,"g",(function(){return rt})),n.d(e,"h",(function(){return x})),n.d(e,"i",(function(){return et})),n.d(e,"j",(function(){return N})),n.d(e,"k",(function(){return J})),n.d(e,"l",(function(){return nt})),n.d(e,"m",(function(){return P})),n.d(e,"n",(function(){return M})),n.d(e,"o",(function(){return o})),n.d(e,"p",(function(){return v})),n.d(e,"q",(function(){return z})),n.d(e,"r",(function(){return R})),n.d(e,"s",(function(){return C})),n.d(e,"t",(function(){return q})),n.d(e,"u",(function(){return k})),n.d(e,"v",(function(){return $})),n.d(e,"w",(function(){return H})),n.d(e,"x",(function(){return g})),n.d(e,"y",(function(){return D})),n.d(e,"z",(function(){return s})),n.d(e,"A",(function(){return F})),n.d(e,"B",(function(){return U})),n.d(e,"C",(function(){return y})),n.d(e,"D",(function(){return b})),n.d(e,"E",(function(){return r})),n.d(e,"F",(function(){return h})),n.d(e,"G",(function(){return u})),n.d(e,"H",(function(){return j})),n.d(e,"I",(function(){return w})),n.d(e,"J",(function(){return tt})),n.d(e,"K",(function(){return it})),n.d(e,"L",(function(){return K}));const i="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decode
1592URI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",o=r(i);const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",s=r(a);function u(t){if(P(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=u(F(r)?f(r):r);if(i)for(const t in i)e[t]=i[t]}return e}if(q(t))return t}const c=/;(?![^(]*\))/g,l=/:(.+)/;function f(t){const e={};return t.split(c).forEach(t=>{if(t){const n=t.split(l);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function h(t){let e="";if(F(t))e=t;else if(P(t))for(let n=0;n<t.length;n++){const r=h(t[n]);r&&(e+=r+" ")}else if(q(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const d="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",p="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",v=r(d),g=r(p);function m(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=y(t[r],e[r]);return n}function y(t,e){if(t===e)return!0;let n=L(t),r=L(e);if(n||r)return!(!n||!r)&&t.getTime()===e.getTime();if(n=P(t),r=P(e),n||r)return!(!n||!r)&&m(t,e);if(n=q(t),r=q(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,o=Object.keys(e).length;if(i!==o)return!1;for(const n in t){const r=t.hasOwnProperty(n),i=e.hasOwnProperty(n);if(r&&!i||!r&&i||!y(t[n],e[n]))return!1}}return String(t)===String(e)}function b(t,e){return t.findIndex(t=>y(t,e))}const w=t=>null==t?"":q(t)?JSON.stringify(t,_,2):String(t),_=(t,e)=>R(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[e,n])=>(t[e+" =>"]=n,t),{})}:D(e)?{[`Set(${e.size})`]:[...e.values()]}:!q(e)||P(e)||W(e)?e:String(e),E={},O=[],I=()=>{},T=()=>!1,S=/^on[^a-z]/,k=t=>S.test(t),C=t=>t.startsWith("onUpdate:"),x=Object.assign,j=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},A=Object.prototype.hasOwnProperty,N=(t,e)=>A.call(t,e),P=Array.isArray,R=t=>"[object Map]"===V(t),D=t=>"[object Set]"===V(t),L=t=>t instanceof Date,M=t=>"function"===typeof t,F=t=>"string"===typeof t,U=t=>"symbol"===typeof t,q=t=>null!==t&&"object"===typeof t,$=t=>q(t)&&M(t.then)&&M(t.catch),B=Object.prototype.toString,V=t=>B.call(t),K=t=>V(t).slice(8,-1),W=t=>"[object Object]"===V(t),z=t=>F(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,H=r(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),G=t=>{const e=Object.create(null);return n=>{const r=e[n];return r||(e[n]=t(n))}},X=/-(\w)/g,Y=G(t=>t.replace(X,(t,e)=>e?e.toUpperCase():"")),Q=/\B([A-Z])/g,J=G(t=>t.replace(Q,"-$1").toLowerCase()),Z=G(t=>t.charAt(0).toUpperCase()+t.slice(1)),tt=G(t=>t?"on"+Z(t):""),et=(t,e)=>t!==e&&(t===t||e===e),nt=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},rt=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},it=t=>{const e=parseFloat(t);return isNaN(e)?t:e}}).call(this,n("c8ba"))},a237:function(t,e,n){},a2bf:function(t,e,n){"use strict";var r=n("e8b5"),i=n("50c4"),o=n("0366"),a=function(t,e,n,s,u,c,l,f){var h,d=u,p=0,v=!!l&&o(l,f,3);while(p<s){if(p in n){if(h=v?v(n[p],p,e):n[p],c>
vendor: 7,651 bytes, lines 1592-1607
15920&&r(h))d=a(t,e,h,i(h.length),d,c-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[d]=h}d++}p++}return d};t.exports=a},a2cd:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s}));
1593/*! *****************************************************************************
1594Copyright (c) Microsoft Corporation.
1595
1596Permission to use, copy, modify, and/or distribute this software for any
1597purpose with or without fee is hereby granted.
1598
1599THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1600REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1601AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1602INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1603LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1604OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1605PERFORMANCE OF THIS SOFTWARE.
1606***************************************************************************** */
1607var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function a(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;function s(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}Object.create},a4b4:function(t,e,n){var r=n("342f");t.exports=/web0s(?!.*chrome)/i.test(r)},a4d3:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),s=n("83ab"),u=n("4930"),c=n("fdbf"),l=n("d039"),f=n("5135"),h=n("e8b5"),d=n("861d"),p=n("825a"),v=n("7b0b"),g=n("fc6a"),m=n("c04e"),y=n("5c6c"),b=n("7c73"),w=n("df75"),_=n("241c"),E=n("057f"),O=n("7418"),I=n("06cf"),T=n("9bf2"),S=n("d1e7"),k=n("9112"),C=n("6eeb"),x=n("5692"),j=n("f772"),A=n("d012"),N=n("90e3"),P=n("b622"),R=n("e538"),D=n("746f"),L=n("d44e"),M=n("69f3"),F=n("b727").forEach,U=j("hidden"),q="Symbol",$="prototype",B=P("toPrimitive"),V=M.set,K=M.getterFor(q),W=Object[$],z=i.Symbol,H=o("JSON","stringify"),G=I.f,X=T.f,Y=E.f,Q=S.f,J=x("symbols"),Z=x("op-symbols"),tt=x("string-to-symbol-registry"),et=x("symbol-to-string-registry"),nt=x("wks"),rt=i.QObject,it=!rt||!rt[$]||!rt[$].findChild,ot=s&&l((function(){return 7!=b(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=G(W,e);r&&delete W[e],X(t,e,n),r&&t!==W&&X(W,e,r)}:X,at=function(t,e){var n=J[t]=b(z[$]);return V(n,{type:q,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof z},ut=function(t,e,n){t===W&&ut(Z,e,n),p(t);var r=m(e,!0);return p(n),f(J,r)?(n.enumerable?(f(t,U)&&t[U][r]&&(t[U][r]=!1),n=b(n,{enumerable:y(0,!1)})):(f(t,U)||X(t,U,y(1,{})),t[U][r]=!0),ot(t,r,n)):X(t,r,n)},ct=function(t,e){p(t);var n=g(e),r=w(n).concat(pt(n));return F(r,(function(e){s&&!ft.call(n,e)||ut(t,e,n[e])})),t},lt=function(t,e){return void 0===e?b(t):ct(b(t),e)},ft=function(t){var e=m(t,!0),n=Q.call(this,e);return!(this===W&&f(J,e)&&!f(Z,e))&&(!(n||!f(this,e)||!f(J,e)||f(this,U)&&this[U][e])||n)},ht=function(t,e){var n=g(t),r=m(e,!0);if(n!==W||!f(J,r)||f(Z,r)){var i=G(n,r);return!i||!f(J,r)||f(n,U)&&n[U][r]||(i.enumerable=!0),i}},dt=function(t){var e=Y(g(t)),n=[];return F(e,(function(t){f(J,t)||f(A,t)||n.push(t)})),n},pt=function(t){var e=t===W,n=Y(e?Z:g(t)),r=[];return F(n,(function(t){!f(J,t)||e&&!f(W,t)||r.push(J[t])})),r};if(u||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=N(t),n=function(t){this===W&&n.call(Z,t),f(this,U)&&f(this[U],e)&&(this[U][e]=!1),ot(this,e,y(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},C(z[$],"toString",(function(){return K(this).tag})),C(z,"withoutSetter",(function(t){return at(N(t),t)})),S.f=ft,T.f=ut,I.f=ht,_.f=E.f=dt,O.f=pt,R.f=function(t){return at(P(t),t)},s&&(X(z[$],"description",{configurable:!0,get:function(){return K(this).description}}),a||C(W,"propertyIsEnumerable",ft,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:z}),F(w(nt),(function(t){D(t)})),r({target:q,stat:!0,forced:!u},{for:function(t){var e=String(t);if(f(tt,e))return tt[e];var n=z(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(f(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:lt,defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ht}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:dt,getOwnPropertySymbols:pt}),r({target:"Object",stat:!0,forced:l((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(v(t))}}),H){var vt=!u||l((function(){var t=z();return"[null]"!=H([t])||"{}"!=H({a:t})||"{}"!=H(Object(t))}));r({target:"JSON",stat:!0,forced:vt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(d(e)||void 0!==t)&&!st(t))return h(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!st(e))return e}),i[1]=e,H.apply(null,i)}})}z[$][B]||k(z[$],B,z[$].valueOf),L(z,q),A[U]=!0},a630:function(t,e,n){var r=n("23e7"),i=n("4df4"),o=n("1c7e"),a=!o((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:a},{from:i})},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a79d:function(t,e,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("fea9"),a=n("d039"),s=n("d066"),u=n("4840"),c=n("cdf9"),l=n("6eeb"),f=!!o&&a((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(t){var e=u(this,s("Promise")),n="function"==typeof t;
1607return this.then(n?function(n){return c(e,t()).then((function(){return n}))}:t,n?function(n){return c(e,t()).then((function(){throw n}))}:t)}}),!i&&"function"==typeof o){var h=s("Promise").prototype["finally"];o.prototype["finally"]!==h&&l(o.prototype,"finally",h,{unsafe:!0})}},a8e9:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return N})),n.d(e,"c",(function(){return A})),n.d(e,"d",(function(){return W})),n.d(e,"e",(function(){return x})),n.d(e,"f",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"h",(function(){return c})),n.d(e,"i",(function(){return l})),n.d(e,"j",(function(){return at})),n.d(e,"k",(function(){return q})),n.d(e,"l",(function(){return g})),n.d(e,"m",(function(){return z})),n.d(e,"n",(function(){return h})),n.d(e,"o",(function(){return d})),n.d(e,"p",(function(){return Q})),n.d(e,"q",(function(){return st})),n.d(e,"r",(function(){return m})),n.d(e,"s",(function(){return U})),n.d(e,"t",(function(){return w})),n.d(e,"u",(function(){return _})),n.d(e,"v",(function(){return O})),n.d(e,"w",(function(){return B})),n.d(e,"x",(function(){return I})),n.d(e,"y",(function(){return k})),n.d(e,"z",(function(){return y})),n.d(e,"A",(function(){return b})),n.d(e,"B",(function(){return S})),n.d(e,"C",(function(){return E})),n.d(e,"D",(function(){return T})),n.d(e,"E",(function(){return F})),n.d(e,"F",(function(){return D})),n.d(e,"G",(function(){return V})),n.d(e,"H",(function(){return K})),n.d(e,"I",(function(){return $})),n.d(e,"J",(function(){return et})),n.d(e,"K",(function(){return tt})),n.d(e,"L",(function(){return L})),n.d(e,"M",(function(){return Y})),n.d(e,"N",(function(){return J})),n.d(e,"O",(function(){return Z})),n.d(e,"P",(function(){return C}));var r=n("fbb0"),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(t,e){if(!t)throw a(e)},a=function(t){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},s=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):55296===(64512&i)&&r+1<t.length&&56320===(64512&t.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&t.charCodeAt(++r)),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},u=function(t){var e=[],n=0,r=0;while(n<t.length){var i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){o=t[n++];var a=t[n++],s=t[n++],u=((7&i)<<18|(63&o)<<12|(63&a)<<6|63&s)-65536;e[r++]=String.fromCharCode(55296+(u>>10)),e[r++]=String.fromCharCode(56320+(1023&u))}else{o=t[n++],a=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return e.join("")},c={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(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<t.length;i+=3){var o=t[i],a=i+1<t.length,s=a?t[i+1]:0,u=i+2<t.length,c=u?t[i+2]:0,l=o>>2,f=(3&o)<<4|s>>4,h=(15&s)<<2|c>>6,d=63&c;u||(d=64,a||(h=64)),r.push(n[l],n[f],n[h],n[d])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(s(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):u(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<t.length;){var o=n[t.charAt(i++)],a=i<t.length,s=a?n[t.charAt(i)]:0;++i;var u=i<t.length,c=u?n[t.charAt(i)]:64;++i;var l=i<t.length,f=l?n[t.charAt(i)]:64;if(++i,null==o||null==s||null==c||null==f)throw Error();var h=o<<2|s>>4;if(r.push(h),64!==c){var d=s<<4&240|c>>2;if(r.push(d),64!==f){var p=c<<6&192|f;r.push(p)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},l=function(t){var e=s(t);return c.encodeByteArray(e,!0)},f=function(t){try{return c.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};
1608/**
1609 * @license
1610 * Copyright 2017 Google LLC
1611 *
1612 * Licensed under the Apache License, Version 2.0 (the "License");
1613 * you may not use this file except in compliance with the License.
1614 * You may obtain a copy of the License at
1615 *
1616 *   http://www.apache.org/licenses/LICENSE-2.0
1617 *
1618 * Unless required by applicable law or agreed to in writing, software
1619 * distributed under the License is distributed on an "AS IS" BASIS,
1620 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1621 * See the License for the specific language governing permissions and
1622 * limitations under the License.
1623 */
1624/**
1625 * @license
1626 * Copyright 2017 Google LLC
1627 *
1628 * Licensed under the Apache License, Version 2.0 (the "License");
1629 * you may not use this file except in compliance with the License.
1630 * You may obtain a copy of the License at
1631 *
1632 *   http://www.apache.org/licenses/LICENSE-2.0
1633 *
1634 * Unless required by applicable law or agreed to in writing, software
1635 * distributed under the License is distributed on an "AS IS" BASIS,
1636 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1637 * See the License for the specific language governing permissions and
1638 * limitations under the License.
1639 */
1640function h(t){return d(void 0,t)}function d(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:var n=e;return new Date(n.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var r in e)e.hasOwnProperty(r)&&p(r)&&(t[r]=d(t[r],e[r]));return t}function p(t){return"__proto__"!==t}
1641/**
1642 * @license
1643 * Copyright 2017 Google LLC
1644 *
1645 * Licensed under the Apache License, Version 2.0 (the "License");
1646 * you may not use this file except in compliance with the License.
1647 * You may obtain a copy of the License at
1648 *
1649 *   http://www.apache.org/licenses/LICENSE-2.0
1650 *
1651 * Unless required by applicable law or agreed to in writing, software
1652 * distributed under the License is distributed on an "AS IS" BASIS,
1653 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1654 * See the License for the specific language governing permissions and
1655 * limitations under the License.
1656 */var v=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return t.prototype.wrapCallback=function(t){var e=this;return function(n,r){n?e.reject(n):e.resolve(r),"function"===typeof t&&(e.promise.catch((function(){})),1===t.length?t(n):t(n,r))}},t}();
1657/**
1658 * @license
1659 * Copyright 2021 Google LLC
1660 *
1661 * Licensed under the Apache License, Version 2.0 (the "License");
1662 * you may not use this file except in compliance with the License.
1663 * You may obtain a copy of the License at
1664 *
1665 *   http://www.apache.org/licenses/LICENSE-2.0
1666 *
1667 * Unless required by applicable law or agreed to in writing, software
1668 * distributed under the License is distributed on an "AS IS" BASIS,
1669 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1670 * See the License for the specific language governing permissions and
1671 * limitations under the License.
1672 */function g(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n={alg:"none",type:"JWT"},i=e||"demo-project",o=t.iat||0,a=t.sub||t.user_id;if(!a)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var s=Object(r["a"])({iss:"https://securetoken.google.com/"+i,aud:i,iat:o,exp:o+3600,auth_time:o,sub:a,user_id:a,firebase:{sign_in_provider:"custom",identities:{}}},t),u="";return[c.encodeString(JSON.stringify(n),!1),c.encodeString(JSON.stringify(s),!1),u].join(".")}
1673/**
1674 * @license
1675 * Copyright 2017 Google LLC
1676 *
1677 * Licensed under the Apache License, Version 2.0 (the "License");
1678 * you may not use this file except in compliance with the License.
1679 * You may obtain a copy of the License at
1680 *
1681 *   http://www.apache.org/licenses/LICENSE-2.0
1682 *
1683 * Unless required by applicable law or agreed to in writing, software
1684 * distributed under the License is distributed on an "AS IS" BASIS,
1685 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1686 * See the License for the specific language governing permissions and
1687 * limitations under the License.
1688 */function m(){return"undefined"!==typeof navigator&&"string"===typeof navigator["userAgent"]?navigator["userAgent"]:""}function y(){return"undefined"!==typeof window&&!!(window["cordova"]||window["ph
1688onegap"]||window["PhoneGap"])&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(m())}function b(){try{return"[object process]"===Object.prototype.toString.call(t.process)}catch(e){return!1}}function w(){return"object"===typeof self&&self.self===self}function _(){var t="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof t&&void 0!==t.id}function E(){return"object"===typeof navigator&&"ReactNative"===navigator["product"]}function O(){return m().indexOf("Electron/")>=0}function I(){var t=m();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function T(){return m().indexOf("MSAppHost/")>=0}function S(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN}function k(){return"indexedDB"in self&&null!=indexedDB}function C(){return new Promise((function(t,e){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),t(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var t;e((null===(t=i.error)||void 0===t?void 0:t.message)||"")}}catch(o){e(o)}}))}function x(){return!(!navigator||!navigator.cookieEnabled)}
1689/**
1690 * @license
1691 * Copyright 2017 Google LLC
1692 *
1693 * Licensed under the Apache License, Version 2.0 (the "License");
1694 * you may not use this file except in compliance with the License.
1695 * You may obtain a copy of the License at
1696 *
1697 *   http://www.apache.org/licenses/LICENSE-2.0
1698 *
1699 * Unless required by applicable law or agreed to in writing, software
1700 * distributed under the License is distributed on an "AS IS" BASIS,
1701 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1702 * See the License for the specific language governing permissions and
1703 * limitations under the License.
1704 */
1705var j="FirebaseError",A=function(t){function e(n,r,i){var o=t.call(this,r)||this;return o.code=n,o.customData=i,o.name=j,Object.setPrototypeOf(o,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,N.prototype.create),o}return Object(r["b"])(e,t),e}(Error),N=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=e[0]||{},i=this.service+"/"+t,o=this.errors[t],a=o?P(o,r):"Error",s=this.serviceName+": "+a+" ("+i+").",u=new A(i,s,r);return u},t}();function P(t,e){return t.replace(R,(function(t,n){var r=e[n];return null!=r?String(r):"<"+n+"?>"}))}var R=/\{\$([^}]+)}/g;
1706/**
1707 * @license
1708 * Copyright 2017 Google LLC
1709 *
1710 * Licensed under the Apache License, Version 2.0 (the "License");
1711 * you may not use this file except in compliance with the License.
1712 * You may obtain a copy of the License at
1713 *
1714 *   http://www.apache.org/licenses/LICENSE-2.0
1715 *
1716 * Unless required by applicable law or agreed to in writing, software
1717 * distributed under the License is distributed on an "AS IS" BASIS,
1718 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1719 * See the License for the specific language governing permissions and
1720 * limitations under the License.
1721 */function D(t){return JSON.parse(t)}function L(t){return JSON.stringify(t)}
1722/**
1723 * @license
1724 * Copyright 2017 Google LLC
1725 *
1726 * Licensed under the Apache License, Version 2.0 (the "License");
1727 * you may not use this file except in compliance with the License.
1728 * You may obtain a copy of the License at
1729 *
1730 *   http://www.apache.org/licenses/LICENSE-2.0
1731 *
1732 * Unless required by applicable law or agreed to in writing, software
1733 * distributed under the License is distributed on an "AS IS" BASIS,
1734 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1735 * See the License for the specific language governing permissions and
1736 * limitations under the License.
1737 */var M=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=D(f(o[0])||""),n=D(f(o[1])||""),i=o[2],r=n["d"]||{},delete n["d"]}catch(a){}return{header:e,claims:n,data:r,signature:i}},F=function(t){var e=M(t),n=e.claims;return!!n&&"object"===typeof n&&n.hasOwnProperty("iat")},U=function(t){var e=M(t).claims;return"object"===typeof e&&!0===e["admin"]};
1738/**
1739 * @license
1740 * Copyright 2017 Google LLC
1741 *
1742 * Licensed under the Apache License, Version 2.0 (the "License");
1743 * you may not use this file except in compliance with the License.
1744 * You may obtain a copy of the License at
1745 *
1746 *   http://www.apache.org/licenses/LICENSE-2.0
1747 *
1748 * Unless required by applicable law or agreed to in writing, software
1749 * distributed under the License is distributed on an "AS IS" BASIS,
1750 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1751 * See the License for the specific language governing permissions and
1752 * limitations under the License.
1753 */
1754function q(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function $(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0}function B(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function V(t,e,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e.call(n,t[i],i,t));return r}
1755/**
1756 * @license
1757 * Copyright 2017 Google LLC
1758 *
1759 * Licensed under the Apache License, Version 2.0 (the "License");
1760 * you may not use this file except in compliance with the License.
1761 * You may obtain a copy of the License at
1762 *
1763 *   http://www.apache.org/licenses/LICENSE-2.0
1764 *
1765 * Unless required by applicable law or agreed to in writing, software
1766 * distributed under the License is distributed on an "AS IS" BASIS,
1767 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1768 * See the License for the specific language governing permissions and
1769 * limitations under the License.
1770 */function K(t){for(var e=[],n=function(t,n){Array.isArray(n)?n.forEach((function(n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))})):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],s=o[1];n(a,s)}return e.length?"&"+e.join("&"):""}
1771/**
1772 * @license
1773 * Copyright 2017 Google LLC
1774 *
1775 * Licensed under the Apache License, Version 2.0 (the "License");
1776 * you may not use this file except in compliance with the License.
1777 * You may obtain a copy of the License at
1778 *
1779 *   http://www.apache.org/licenses/LICENSE-2.0
1780 *
1781 * Unless required by applicable law or agreed to in writing, software
1782 * distributed under the License is distributed on an "AS IS" BASIS,
1783 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1784 * See the License for the specific language governing permissions and
1785 * limitations under the License.
1786 */
1787var W=function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}return t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(t,e){e||(e=0);var n=this.W_;if("string"===typeof t)for(var r=0;r<16;r++)n[r]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(r=0;r<16;r++)n[r]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}var o,a,s=this.chain_[0],u=this.chain_[1],c=this.chain_[2],l=this.chain_[3],f=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=l^u&(c^l),a=1518500249):(o=u^c^l,a=1859775393):r<60?(o=u&c|l&(u|c),a=2400959708):(o=u^c^l,a=3395469782);i=(s<<5|s>>>27)+o+f+a+n[r]&4294967295;f=l,l=c,c=4294967295&(u<<30|u>>>2),u=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+f&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);var n=e-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;while(r<e){if(0===o)while(r<=n)this.compress_(t,r),r+=this.blockSize;if("string"===typeof t){while(r<e)if(i[o]=t.charCodeAt(r),++o,++r,o===this.blockSize){this.compress_(i),o=0;break}}else while(r<e)if(i[o]=t[r],++o,++r,o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=e}},t.prototype.digest=function(){var t=[],e=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&e,e/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)t[r]=this.chain_[n]>>i&255,++r;return t},t}();function z(t,e){var n=new H(t,e);return n.subscribe.bind(n)}var H=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
1787ise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then((function(){t(n)})).catch((function(t){n.error(t)}))}return t.prototype.next=function(t){this.forEachObserver((function(e){e.next(t)}))},t.prototype.error=function(t){this.forEachObserver((function(e){e.error(t)})),this.close(t)},t.prototype.complete=function(){this.forEachObserver((function(t){t.complete()})),this.close()},t.prototype.subscribe=function(t,e,n){var r,i=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");r=G(t,["next","error","complete"])?t:{next:t,error:e,complete:n},void 0===r.next&&(r.next=X),void 0===r.error&&(r.error=X),void 0===r.complete&&(r.complete=X);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(t){}})),this.observers.push(r),o},t.prototype.unsubscribeOne=function(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},t.prototype.forEachObserver=function(t){if(!this.finalized)for(var e=0;e<this.observers.length;e++)this.sendOne(e,t)},t.prototype.sendOne=function(t,e){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[t])try{e(n.observers[t])}catch(r){"undefined"!==typeof console&&console.error&&console.error(r)}}))},t.prototype.close=function(t){var e=this;this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then((function(){e.observers=void 0,e.onNoObservers=void 0})))},t}();function G(t,e){if("object"!==typeof t||null===t)return!1;for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i in t&&"function"===typeof t[i])return!0}return!1}function X(){}
1788/**
1789 * @license
1790 * Copyright 2017 Google LLC
1791 *
1792 * Licensed under the Apache License, Version 2.0 (the "License");
1793 * you may not use this file except in compliance with the License.
1794 * You may obtain a copy of the License at
1795 *
1796 *   http://www.apache.org/licenses/LICENSE-2.0
1797 *
1798 * Unless required by applicable law or agreed to in writing, software
1799 * distributed under the License is distributed on an "AS IS" BASIS,
1800 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1801 * See the License for the specific language governing permissions and
1802 * limitations under the License.
1803 */var Y=function(t,e,n,r){var i;if(r<e?i="at least "+e:r>n&&(i=0===n?"none":"no more than "+n),i){var o=t+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".";throw new Error(o)}};function Q(t,e){return t+" failed: "+e+" argument "}function J(t,e,n,r){if((!r||n)&&"function"!==typeof n)throw new Error(Q(t,e)+"must be a valid function.")}function Z(t,e,n,r){if((!r||n)&&("object"!==typeof n||null===n))throw new Error(Q(t,e)+"must be a valid context object.")}
1804/**
1805 * @license
1806 * Copyright 2017 Google LLC
1807 *
1808 * Licensed under the Apache License, Version 2.0 (the "License");
1809 * you may not use this file except in compliance with the License.
1810 * You may obtain a copy of the License at
1811 *
1812 *   http://www.apache.org/licenses/LICENSE-2.0
1813 *
1814 * Unless required by applicable law or agreed to in writing, software
1815 * distributed under the License is distributed on an "AS IS" BASIS,
1816 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1817 * See the License for the specific language governing permissions and
1818 * limitations under the License.
1819 */var tt=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);if(i>=55296&&i<=56319){var a=i-55296;r++,o(r<t.length,"Surrogate pair missing trail surrogate.");var s=t.charCodeAt(r)-56320;i=65536+(a<<10)+s}i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):i<65536?(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},et=function(t){for(var e=0,n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e++:r<2048?e+=2:r>=55296&&r<=56319?(e+=4,n++):e+=3}return e},nt=1e3,rt=2,it=144e5,ot=.5;function at(t,e,n){void 0===e&&(e=nt),void 0===n&&(n=rt);var r=e*Math.pow(n,t),i=Math.round(ot*r*(Math.random()-.5)*2);return Math.min(it,r+i)}
1820/**
1821 * @license
1822 * Copyright 2020 Google LLC
1823 *
1824 * Licensed under the Apache License, Version 2.0 (the "License");
1825 * you may not use this file except in compliance with the License.
1826 * You may obtain a copy of the License at
1827 *
1828 *   http://www.apache.org/licenses/LICENSE-2.0
1829 *
1830 * Unless required by applicable law or agreed to in writing, software
1831 * distributed under the License is distributed on an "AS IS" BASIS,
1832 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1833 * See the License for the specific language governing permissions and
1834 * limitations under the License.
1835 */
1836/**
1837 * @license
1838 * Copyright 2021 Google LLC
1839 *
1840 * Licensed under the Apache License, Version 2.0 (the "License");
1841 * you may not use this file except in compliance with the License.
1842 * You may obtain a copy of the License at
1843 *
1844 *   http://www.apache.org/licenses/LICENSE-2.0
1845 *
1846 * Unless required by applicable law or agreed to in writing, software
1847 * distributed under the License is distributed on an "AS IS" BASIS,
1848 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1849 * See the License for the specific language governing permissions and
1850 * limitations under the License.
1851 */
1852function st(t){return t&&t._delegate?t._delegate:t}}).call(this,n("c8ba"))},aaf9:function(t,e,n){"use strict";n.r(e),n.d(e,"mdTransitionAnimation",(function(){return o}));var r=n("ef7a"),i=n("9897"),o=(n("61cf"),n("6d28"),function(t,e){var n="40px",o="0px",a="back"===e.direction,s=e.enteringEl,u=e.leavingEl,c=Object(i["g"])(s),l=c.querySelector("ion-toolbar"),f=Object(r["a"])();if(f.addElement(c).fill("both").beforeRemoveClass("ion-page-invisible"),a?f.duration(e.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):f.duration(e.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY("+n+")","translateY("+o+")").fromTo("opacity",.01,1),l){var h=Object(r["a"])();h.addElement(l),f.addAnimation(h)}if(u&&a){f.duration(e.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var d=Object(r["a"])();d.addElement(Object(i["g"])(u)).onFinish((function(t){1===t&&d.elements.length>0&&d.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY("+o+")","translateY("+n+")").fromTo("opacity",1,0),f.addAnimation(d)}return f})},ab13:function(t,e,n){var r=n("b622"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},abfd:function(t,e,n){"use strict";
1853/*! *****************************************************************************
1854Copyright (c) Microsoft Corporation. All rights reserved.
1855Licensed under the Apache License, Version 2.0 (the "License"); you may not use
1856this file except in compliance with the License. You may obtain a copy of the
1857License at http://www.apache.org/licenses/LICENSE-2.0
1858
1859THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1860KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
1861WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
1862MERCHANTABLITY OR NON-INFRINGEMENT.
1863
1864See the Apache Version 2.0 License for specific language governing permissions
1865and limitations under the License.
1866***************************************************************************** */
1867function r(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}
1868/**
1869 * @license
1870 * Copyright 2017 Google LLC
1871 *
1872 * Licensed under the Apache License, Version 2.0 (the "License");
1873 * you may not use this file except in compliance with the License.
1874 * You may obtain a copy of the License at
1875 *
1876 *   http://www.apache.org/licenses/LICENSE-2.0
1877 *
1878 * Unless required by applicable law or agreed to in writing, software
1879 * distributed under the License is distributed on an "AS IS" BASIS,
1880 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1881 * See the License for the specific language governing permissions and
1882 * limitations under the License.
1883 */var i;n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return d}));var o,a=[];(function(t){t[t["DEBUG"]=0]="DEBUG",t[t["VERBOSE"]=1]="VERBOSE",t[t["INFO"]=2]="INFO",t[t["WARN"]=3]="WARN",t[t["ERROR"]=4]="ERROR",t[t["SILENT"]=5]="SILENT"})(o||(o={}));var s={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},u=o.INFO,c=(i={},i[o.DEBUG]="log",i[o.VERBOSE]="log",i[o.INFO]="info",i[o.WARN]="warn",i[o.ERROR]="error",i),l=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(e<t.logLevel)){var o=(new Date).toISOString(),a=c[e];if(!a)throw new Error("Attempted to log a message with an invali
1883d logType (value: "+e+")");console[a].apply(console,r(["["+o+"]  "+t.name+":"],n))}},f=function(){function t(t){this.name=t,this._logLevel=u,this._logHandler=l,this._userLogHandler=null,a.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in o))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"===typeof t?s[t]:t},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!==typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.DEBUG],t)),this._logHandler.apply(this,r([this,o.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.VERBOSE],t)),this._logHandler.apply(this,r([this,o.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.INFO],t)),this._logHandler.apply(this,r([this,o.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.WARN],t)),this._logHandler.apply(this,r([this,o.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.ERROR],t)),this._logHandler.apply(this,r([this,o.ERROR],t))},t}();function h(t){a.forEach((function(e){e.setLogLevel(t)}))}function d(t,e){for(var n=function(n){var r=null;e&&e.level&&(r=s[e.level]),n.userLogHandler=null===t?null:function(e,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=i.map((function(t){if(null==t)return null;if("string"===typeof t)return t;if("number"===typeof t||"boolean"===typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(e){return null}})).filter((function(t){return t})).join(" ");n>=(null!==r&&void 0!==r?r:e.logLevel)&&t({level:o[n].toLowerCase(),message:s,args:i,type:e.name})}},r=0,i=a;r<i.length;r++){var u=i[r];n(u)}}},ac1f:function(t,e,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},ade3:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},ae93:function(t,e,n){"use strict";var r,i,o,a=n("d039"),s=n("e163"),u=n("9112"),c=n("5135"),l=n("b622"),f=n("c430"),h=l("iterator"),d=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=s(s(o)),i!==Object.prototype&&(r=i)):d=!0);var v=void 0==r||a((function(){var t={};return r[h].call(t)!==t}));v&&(r={}),f&&!v||c(r,h)||u(r,h,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(t,e,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,u="name";r&&!(u in o)&&i(o,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},b50d:function(t,e,n){"use strict";var r=n("c532"),i=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),u=n("c345"),c=n("3934"),l=n("2d83");t.exports=function(t){return new Promise((function(e,n){var f=t.data,h=t.headers;r.isFormData(f)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";h.Authorization="Basic "+btoa(p+":"+v)}var g=s(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,o=t.responseType&&"text"!==t.responseType?d.response:d.responseText,a={data:o,status:d.status,statusText:d.statusText,headers:r,config:t,request:d};i(e,n,a),d=null}},d.onabort=function(){d&&(n(l("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(l("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var m=(t.withCredentials||c(g))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;m&&(h[t.xsrfHeaderName]=m)}if("setRequestHeader"in d&&r.forEach(h,(function(t,e){"undefined"===typeof f&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)}
1883)),r.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(y){if("json"!==t.responseType)throw y}"function"===typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),n(t),d=null)})),f||(f=null),d.send(f)}))}},b575:function(t,e,n){var r,i,o,a,s,u,c,l,f=n("da84"),h=n("06cf").f,d=n("2cf4").set,p=n("1cdc"),v=n("a4b4"),g=n("605d"),m=f.MutationObserver||f.WebKitMutationObserver,y=f.document,b=f.process,w=f.Promise,_=h(f,"queueMicrotask"),E=_&&_.value;E||(r=function(){var t,e;g&&(t=b.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},p||g||v||!m||!y?w&&w.resolve?(c=w.resolve(void 0),c.constructor=w,l=c.then,a=function(){l.call(c,r)}):a=g?function(){b.nextTick(r)}:function(){d.call(f,r)}:(s=!0,u=y.createTextNode(""),new m(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),t.exports=E||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),u=n("fdbf"),c=i("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;t.exports=function(t){return o(c,t)&&(s||"string"==typeof c[t])||(s&&o(l,t)?c[t]=l[t]:c[t]=f("Symbol."+t)),c[t]}},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(t){return o(i(t))}})},b680:function(t,e,n){"use strict";var r=n("23e7"),i=n("a691"),o=n("408a"),a=n("1148"),s=n("d039"),u=1..toFixed,c=Math.floor,l=function(t,e,n){return 0===e?n:e%2===1?l(t,e-1,n*t):l(t*t,e/2,n)},f=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},h=function(t,e,n){var r=-1,i=n;while(++r<6)i+=e*t[r],t[r]=i%1e7,i=c(i/1e7)},d=function(t,e){var n=6,r=0;while(--n>=0)r+=t[n],t[n]=c(r/e),r=r%e*1e7},p=function(t){var e=6,n="";while(--e>=0)if(""!==n||0===e||0!==t[e]){var r=String(t[e]);n=""===n?r:n+a.call("0",7-r.length)+r}return n},v=u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}));r({target:"Number",proto:!0,forced:v},{toFixed:function(t){var e,n,r,s,u=o(this),c=i(t),v=[0,0,0,0,0,0],g="",m="0";if(c<0||c>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(g="-",u=-u),u>1e-21)if(e=f(u*l(2,69,1))-69,n=e<0?u*l(2,-e,1):u/l(2,e,1),n*=4503599627370496,e=52-e,e>0){h(v,0,n),r=c;while(r>=7)h(v,1e7,0),r-=7;h(v,l(10,r,1),0),r=e-1;while(r>=23)d(v,1<<23),r-=23;d(v,1<<r),h(v,1,1),d(v,2),m=p(v)}else h(v,0,n),h(v,1<<-e,0),m=p(v)+a.call("0",c);return c>0?(s=m.length,m=g+(s<=c?"0."+a.call("0",c-s)+m:m.slice(0,s-c)+"."+m.slice(s-c))):m=g+m,m}})},b727:function(t,e,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),s=n("65f0"),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,f=6==t,h=7==t,d=5==t||f;return function(p,v,g,m){for(var y,b,w=o(p),_=i(w),E=r(v,g,3),O=a(_.length),I=0,T=m||s,S=e?T(p,O):n||h?T(p,0):void 0;O>I;I++)if((d||I in _)&&(y=_[I],b=E(y,I,w),t))if(e)S[I]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return I;case 2:u.call(S,y)}else switch(t){case 4:return!1;case 7:u.call(S,y)}return f?-1:c||l?l:S}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},b7aa:function(t,e,n){"use strict";(function(t){var e=n("cc84");(function(){var n,r="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)};function i(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof t&&t,e];for(var n=0;n<e.length;++n){var r=e[n];if(r&&r.Math==Math)return r}return globalThis}var o=i(this);function a(t,e){if(e){var n=o;t=t.split(".");for(var i=0;i<t.length-1;i++){var a=t[i];a in n||(n[a]={}),n=n[a]}t=t[t.length-1],i=n[t],e=e(i),e!=i&&null!=e&&r(n,t,{configurable:!0,writable:!0,value:e})}}function s(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function u(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:s(t)}}a("Promise",(function(t){function e(t){this.b=0,this.c=void 0,this.a=[];var e=this.f();try{t(e.resolve,e.reject)}catch(n){e.reject(n)}}function n(){this.a=null}function r(t){return t instanceof e?t:new e((function(e){e(t)}))}if(t)return t;n.prototype.b=function(t){if(null==this.a){this.a=[];var e=this;this.c((function(){e.g()}))}this.a.push(t)};var i=o.setTimeout;n.prototype.c=function(t){i(t,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var n=t[e];t[e]=null;try{n()}catch(r){this.f(r)}}}this.a=null},n.prototype.f=function(t){this.c((function(){throw t}))},e.prototype.f=function(){function t(t){return function(r){n||(n=!0,t.call(e,r))}}var e=this,n=!1;return{resolve:t(this.m),reject:t(this.g)}}
vendor: 1,338 bytes, line 1883
1883,e.prototype.m=function(t){if(t===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.s(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.v(t):this.h(t)}},e.prototype.v=function(t){var e=void 0;try{e=t.then}catch(n){return void this.g(n)}"function"==typeof e?this.u(e,t):this.h(t)},e.prototype.g=function(t){this.i(2,t)},e.prototype.h=function(t){this.i(1,t)},e.prototype.i=function(t,e){if(0!=this.b)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.b);this.b=t,this.c=e,this.l()},e.prototype.l=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)a.b(this.a[t]);this.a=null}};var a=new n;return e.prototype.s=function(t){var e=this.f();t.Qa(e.resolve,e.reject)},e.prototype.u=function(t,e){var n=this.f();try{t.call(e,n.resolve,n.reject)}catch(r){n.reject(r)}},e.prototype.then=function(t,n){function r(t,e){return"function"==typeof t?function(e){try{i(t(e))}catch(n){o(n)}}:e}var i,o,a=new e((function(t,e){i=t,o=e}));return this.Qa(r(t,i),r(n,o)),a},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Qa=function(t,e){function n(){switch(r.b){case 1:t(r.c);break;case 2:e(r.c);break;default:throw Error("Unexpected state: "+r.b)}}var r=this;null==this.a?a.b(n):this.a.push(n)}
1883,e.resolve=r,e.reject=function(t){return new e((function(e,n){n(t)}))},e.race=function(t){return new e((function(e,n){for(var i=u(t),o=i.next();!o.done;o=i.next())r(o.value).Qa(e,n)}))},e.all=function(t){var n=u(t),i=n.next();return i.done?r([]):new e((function(t,e){function o(e){return function(n){a[e]=n,s--,0==s&&t(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).Qa(o(a.length-1),e),i=n.next()}while(!i.done)}))},e}));var c=c||{},l=this||self,f=/^[\w+/_-]+[=]{0,2}$/,h=null;function d(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&f.test(t)?t:""}function p(){}function v(t){var e=typeof t;return"object"!=e?e:t?Array.isArray(t)?"array":e:"null"}function g(t){var e=v(t);return"array"==e||"object"==e&&"number"==typeof t.length}function m(t){return"function"==v(t)}function y(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function b(t){return Object.prototype.hasOwnProperty.call(t,w)&&t[w]||(t[w]=++_)}var w="closure_uid_"+(1e9*Math.random()>>>0),_=0;function E(t,e,n){return t.call.apply(t.bind,arguments)}function O(t,e,n){if(!t)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),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function I(t,e,n){return I=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?E:O,I.apply(null,arguments)}function T(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var S=Date.now;function k(t,e){function n(){}n.prototype=e.prototype,t.ab=e.prototype,t.prototype=new n,t.prototype.constructor=t}function C(t){return t}
1883function x(t,e,n){this.code=N+t,this.message=e||P[t]||"",this.a=n||null}function j(t){var e=t&&t.code;return e?new x(e.substring(N.length),t.message,t.serverResponse):null}k(x,Error),x.prototype.w=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},x.prototype.toJSON=function(){return this.w()};var A,N="auth/",P={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
1883ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
1883d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},R={ld:{Ta:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Za:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Wa:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},sd:{Ta:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Za:"https://securetoken.googleapis.com/v1/token",Wa:"https://identitytoolkit.googleapis.com/v2/",id:"p"},ud:{Ta:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Za:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Wa:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},vd:{Ta:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Za:"https://test-securetoken.sandbox.googleapis.com/v1/token",Wa:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function D(t){for(var e in R)if(R[e].id===t)return t=R[e],{firebaseEndpoint:t.Ta,secureTokenEndpoint:t.Za,identityPlatformEndpoint:t.Wa};return null}function L(t){if(!t)return!1;
1883try{return!!t.$goog_Thenable}catch(e){return!1}}function M(t){if(Error.captureStackTrace)Error.captureStackTrace(this,M);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function F(t,e){t=t.split("%s");for(var n="",r=t.length-1,i=0;i<r;i++)n+=t[i]+(i<e.length?e[i]:"%s");M.call(this,n+t[r])}function U(t,e){throw new F("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function q(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function $(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function B(){this.b=this.a=null}A=D("__EID__")?"__EID__":void 0,k(M,Error),M.prototype.name="CustomError",k(F,M),F.prototype.name="AssertionError",q.prototype.get=function(){if(0<this.b){this.b--;var t=this.a;this.a=t.next,t.next=null}else t=this.c();return t};var V=new q((function(){return new W}),(function(t){t.reset()}));function K(){var t=Ae,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function W(){this.next=this.b=this.a=null}B.prototype.add=function(t,e){var n=V.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},W.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},W.prototype.reset=function(){this.next=this.b=this.a=null};var z=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"===typeof t)return"string"!==typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},H=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i="string"===typeof t?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)};function G(t,e){for(var n="string"===typeof t?t.split(""):t,r=t.length-1;0<=r;--r)r in n&&e.call(void 0,n[r],r,t)}var X=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=[],i=0,o="string"===typeof t?t.split(""):t,a=0;a<n;a++)if(a in o){var s=o[a];e.call(void 0,s,a,t)&&(r[i++]=s)}return r},Y=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=Array(n),i="string"===typeof t?t.split(""):t,o=0;o<n;o++)o in i&&(r[o]=e.call(void 0,i[o],o,t));return r},Q=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var n=t.length,r="string"===typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t))return!0;return!1};function J(t){t:{for(var e=os,n=t.length,r="string"===typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t)){e=i;break t}e=-1}return 0>e?null:"string"===typeof t?t.charAt(e):t[e]}function Z(t,e){return 0<=z(t,e)}function tt(t,e){var n;return e=z(t,e),(n=0<=e)&&Array.prototype.splice.call(t,e,1),n}function et(t,e){G(t,(function(n,r){e.call(void 0,n,r,t)&&1==Array.prototype.splice.call(t,r,1).length&&0}))}function nt(t){return Array.prototype.concat.apply([],arguments)}function rt(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}var it,ot=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},at=/&/g,st=/</g,ut=/>/g,ct=/"/g,lt=/'/g,ft=/\x00/g,ht=/[\x00&<>"']/;function dt(t,e){return-1!=t.indexOf(e)}function pt(t,e){return t<e?-1:t>e?1:0}t:{var vt=l.navigator;if(vt){var gt=vt.userAgent;if(gt){it=gt;break t}}it=""}function mt(t){return dt(it,t)}function yt(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function bt(t){for(var e in t)return!1;return!0}function wt(t){var e,n={};for(e in t)n[e]=t[e];return n}var _t="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Et(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i],r)t[n]=r[n];for(var o=0;o<_t.length;o++)n=_t[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function Ot(t,e){t:{try{var n=t&&t.ownerDocument,r=n&&(n.defaultView||n.parentWindow);if(r=r||l,r.Element&&r.Location){var i=r;break t}}catch(a){}i=null}if(i&&"undefined"!=typeof i[e]&&(!t||!(t instanceof i[e])&&(t instanceof i.Location||t instanceof i.Element))){if
1883(y(t))try{var o=t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch(a){o="<object could not be stringified>"}else o=void 0===t?"undefined":null===t?"null":typeof t;U("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function It(t,e){this.a=t===Ct&&e||"",this.b=kt}function Tt(t){return t instanceof It&&t.constructor===It&&t.b===kt?t.a:(U("expected object of type Const, got '"+t+"'"),"type_error:Const")}It.prototype.sa=!0,It.prototype.ra=function(){return this.a},It.prototype.toString=function(){return"Const{"+this.a+"}"};var St,kt={},Ct={};function xt(){if(void 0===St){var t=null,e=l.trustedTypes;if(e&&e.createPolicy){try{t=e.createPolicy("goog#html",{createHTML:C,createScript:C,createScriptURL:C})}catch(n){l.console&&l.console.error(n.message)}St=t}else St=t}return St}function jt(t,e){this.a=e===Dt?t:""}function At(t){return t instanceof jt&&t.constructor===jt?t.a:(U("expected object of type TrustedResourceUrl, got '"+t+"' of type "+v(t)),"type_error:TrustedResourceUrl")}function Nt(t,e){var n=Tt(t);if(!Rt.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return t=n.replace(Pt,(function(t,r){if(!Object.prototype.hasOwnProperty.call(e,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return t=e[r],t instanceof It?Tt(t):encodeURIComponent(String(t))})),Lt(t)}jt.prototype.sa=!0,jt.prototype.ra=function(){return this.a.toString()},jt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Pt=/%{(\w+)}/g,Rt=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Dt={};function Lt(t){var e=xt();return t=e?e.createScriptURL(t):t,new jt(t,Dt)}function Mt(t,e){this.a=e===Kt?t:""}function Ft(t){return t instanceof Mt&&t.constructor===Mt?t.a:(U("expected object of type SafeUrl, got '"+t+"' of type "+v(t)),"type_error:SafeUrl")}Mt.prototype.sa=!0,Mt.prototype.ra=function(){return this.a.toString()},Mt.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Ut=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,qt=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,$t=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Bt(t){if(t instanceof Mt)return t;if(t="object"==typeof t&&t.sa?t.ra():String(t),$t.test(t))t=new Mt(t,Kt);else{t=String(t),t=t.replace(/(%0A|%0D)/g,"");var e=t.match(qt);t=e&&Ut.test(e[1])?new Mt(t,Kt):null}return t}function Vt(t){return t instanceof Mt?t:(t="object"==typeof t&&t.sa?t.ra():String(t),$t.test(t)||(t="about:invalid#zClosurez"),new Mt(t,Kt))}var Kt={},Wt=new Mt("about:invalid#zClosurez",Kt);function zt(t,e,n){this.a=n===Gt?t:""}function Ht(t){return t instanceof zt&&t.constructor===zt?t.a:(U("expected object of type SafeHtml, got '"+t+"' of type "+v(t)),"type_error:SafeHtml")}zt.prototype.sa=!0,zt.prototype.ra=function(){return this.a.toString()},zt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Gt={};function Xt(t,e){Ot(t,"HTMLScriptElement"),t.src=At(e),(e=t.ownerDocument&&t.ownerDocument.defaultView)&&e!=l?e=d(e.document):(null===h&&
1883(h=d(l.document)),e=h),e&&t.setAttribute("nonce",e)}function Yt(t,e,n,r){return t=t instanceof Mt?t:Vt(t),e=e||l,n=n instanceof It?Tt(n):n||"",e.open(Ft(t),n,r,void 0)}function Qt(t,e){for(var n=t.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1<n.length;)r+=n.shift()+i.shift();return r+n.join("%s")}function Jt(t){return ht.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(at,"&amp;")),-1!=t.indexOf("<")&&(t=t.replace(st,"&lt;")),-1!=t.indexOf(">")&&(t=t.replace(ut,"&gt;")),-1!=t.indexOf('"')&&(t=t.replace(ct,"&quot;")),-1!=t.indexOf("'")&&(t=t.replace(lt,"&#39;")),-1!=t.indexOf("\0")&&(t=t.replace(ft,"&#0;"))),t}function Zt(t){return Zt[" "](t),t}function te(t,e){var n=de;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}Zt[" "]=p;var ee,ne=mt("Opera"),re=mt("Trident")||mt("MSIE"),ie=mt("Edge"),oe=ie||re,ae=mt("Gecko")&&!(dt(it.toLowerCase(),"webkit")&&!mt("Edge"))&&!(mt("Trident")||mt("MSIE"))&&!mt("Edge"),se=dt(it.toLowerCase(),"webkit")&&!mt("Edge");function ue(){var t=l.document;return t?t.documentMode:void 0}t:{var ce="",le=function(){var t=it;return ae?/rv:([^\);]+)(\)|;)/.exec(t):ie?/Edge\/([\d\.]+)/.exec(t):re?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):se?/WebKit\/(\S+)/.exec(t):ne?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(le&&(ce=le?le[1]:""),re){var fe=ue();if(null!=fe&&fe>parseFloat(ce)){ee=String(fe);break t}}ee=ce}var he,de={};function pe(t){return te(t,(function(){for(var e=0,n=ot(String(ee)).split("."),r=ot(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=pt(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||pt(0==a[2].length,0==s[2].length)||pt(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e}))}if(l.document&&re){var ve=ue();he=ve||(parseInt(ee,10)||void 0)}else he=void 0;var ge=he;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(Zd){}var me=!re||9<=Number(ge);function ye(t){var e=document;return"string"===typeof t?e.getElementById(t):t}function be(t,e){yt(e,(function(e,n){e&&"object"==typeof e&&e.sa&&(e=e.ra()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:Ee.hasOwnProperty(n)?t.setAttribute(Ee[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e}))}var we,_e,Ee={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Oe(t,e,n){var r=arguments,i=document,o=String(r[0]),a=r[1];if(!me&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',Jt(a.name),'"'),a.type){o.push(' type="',Jt(a.type),'"');var s={};Et(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=Te(i,o),a&&("string"===typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):be(o,a)),2<r.length&&Ie(i,o,r),o}function Ie(t,e,n){function r(n){n&&e.appendChild("string"===typeof n?t.createTextNode(n):n)}for(var i=2;i<n.length;i++){var o=n[i];if(!g(o)||y(o)&&0<o.nodeType)r(o);else{t:{if(o&&"number"==typeof o.length){if(y(o)){var a="function"==typeof o.item||"string"==typeof o.item;break t}if(m(o)){a="function"==typeof o.item;break t}}a=!1}H(a?rt(o):o,r)}}}function Te(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function Se(t){l.setTimeout((function(){throw t}),0)}function ke(){var t=l.MessageChannel;if("undefined"===typeof t&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!mt("Presto")&&(t=function(){var t=Te(document,"IFRAME");t.style.display="none",document.documentElement.appendChild(t);var e=t.contentWindow;t=e.document,t.open(),t.close();var n="callImmediate"+Math.random(),r="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=I((function(t){"*"!=r&&t.origin!=r||t.data!=n||this.port1.onmessage()}),this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,r)}}}),"undefined"!==typeof t&&!mt("Trident")&&!mt("MSIE")){var e=new t,n={},r=n;return e.port1.onmessage=function(){if(void 0!==n.next){n=n.next;var t=n.Gb;n.Gb=null,t()}},function(t){r.next={Gb:t},r=r.next,e.port2.postMessage(0)}}return function(t){l.setTimeout(t,0)}}function Ce(t,e){_e||xe(),je||(_e(),je=!0),Ae.add(t,e)}function xe(){if(l.Promise&&l.Promise.resolve){var t=l.Promise.resolve(void 0);_e=function(){t.then(Ne)}}else _e=function(){var t=Ne;!m(l.setImmediate)||l.Window&&l.Window.prototype&&!mt("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(we||(we=ke()),we(t)):l.setImmediate(t)}}var je=!1,Ae=new B;function Ne(){for(var t;t=K();
1883){try{t.a.call(t.b)}catch(e){Se(e)}$(V,t)}je=!1}function Pe(t,e){if(this.a=Re,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=p)try{var n=this;t.call(e,(function(t){Ge(n,De,t)}),(function(t){if(!(t instanceof rn))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(e){}Ge(n,Le,t)}))}catch(r){Ge(this,Le,r)}}var Re=0,De=2,Le=3;function Me(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Me.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Fe=new q((function(){return new Me}),(function(t){t.reset()}));function Ue(t,e,n){var r=Fe.get();return r.g=t,r.b=e,r.f=n,r}function qe(t){if(t instanceof Pe)return t;var e=new Pe(p);return Ge(e,De,t),e}function $e(t){return new Pe((function(e,n){n(t)}))}function Be(t,e,n){Xe(t,e,n,null)||Ce(T(e,t))}function Ve(t){return new Pe((function(e,n){var r=t.length,i=[];if(r)for(var o,a=function(t,n){r--,i[t]=n,0==r&&e(i)},s=function(t){n(t)},u=0;u<t.length;u++)o=t[u],Be(o,T(a,u),s);else e(i)}))}function Ke(t){return new Pe((function(e){var n=t.length,r=[];if(n)for(var i,o=function(t,i,o){n--,r[t]=i?{Pb:!0,value:o}:{Pb:!1,reason:o},0==n&&e(r)},a=0;a<t.length;a++)i=t[a],Be(i,T(o,a,!0),T(o,a,!1));else e(r)}))}function We(t,e){if(t.a==Re)if(t.c){var n=t.c;if(n.b){for(var r=0,i=null,o=null,a=n.b;a&&(a.c||(r++,a.a==t&&(i=a),!(i&&1<r)));a=a.next)i||(o=a);i&&(n.a==Re&&1==r?We(n,e):(o?(r=o,r.next==n.f&&(n.f=r),r.next=r.next.next):Je(n),Ze(n,i,Le,e)))}t.c=null}else Ge(t,Le,e)}function ze(t,e){t.b||t.a!=De&&t.a!=Le||Qe(t),t.f?t.f.next=e:t.b=e,t.f=e}function He(t,e,n,r){var i=Ue(null,null,null);return i.a=new Pe((function(t,o){i.g=e?function(n){try{var i=e.call(r,n);t(i)}catch(a){o(a)}}:t,i.b=n?function(e){try{var i=n.call(r,e);void 0===i&&e instanceof rn?o(e):t(i)}catch(a){o(a)}}:o})),i.a.c=t,ze(t,i),i.a}function Ge(t,e,n){t.a==Re&&(t===n&&(e=Le,n=new TypeError("Promise cannot resolve to itself")),t.a=1,Xe(n,t.$c,t.ad,t)||(t.i=n,t.a=e,t.c=null,Qe(t),e!=Le||n instanceof rn||en(t,n)))}function Xe(t,e,n,r){if(t instanceof Pe)return ze(t,Ue(e||p,n||null,r)),!0;if(L(t))return t.then(e,n,r),!0;if(y(t))try{var i=t.then;if(m(i))return Ye(t,i,e,n,r),!0}catch(o){return n.call(r,o),!0}return!1}function Ye(t,e,n,r,i){function o(t){s||(s=!0,r.call(i,t))}function a(t){s||(s=!0,n.call(i,t))}var s=!1;try{e.call(t,a,o)}catch(u){o(u)}}function Qe(t){t.h||(t.h=!0,Ce(t.gc,t))}function Je(t){var e=null;return t.b&&(e=t.b,t.b=e.next,e.next=null),t.b||(t.f=null),e}function Ze(t,e,n,r){if(n==Le&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,tn(e,n,r);else try{e.c?e.g.call(e.f):tn(e,n,r)}catch(i){nn.call(null,i)}$(Fe,e)}function tn(t,e,n){e==De?t.g.call(t.f,n):t.b&&t.b.call(t.f,n)}function en(t,e){t.g=!0,Ce((function(){t.g&&nn.call(null,e)}))}Pe.prototype.then=function(t,e,n){return He(this,m(t)?t:null,m(e)?e:null,n)},Pe.prototype.$goog_Thenable=!0,n=Pe.prototype,n.oa=function(t,e){return t=Ue(t,t,e),t.c=!0,ze(this,t),this},n.o=function(t,e){return He(this,null,t,e)},n.cancel=function(t){if(this.a==Re){var e=new rn(t);Ce((function(){We(this,e)}),this)}},n.$c=function(t){this.a=Re,Ge(this,De,t)},n.ad=function(t){this.a=Re,Ge(this,Le,t)},n.gc=function(){for(var t;t=Je(this);)Ze(this,t,this.a,this.i);this.h=!1};var nn=Se;function rn(t){M.call(this,t)}function on(){0!=an&&(sn[b(this)]=this),this.xa=this.xa,this.pa=this.pa}k(rn,M),rn.prototype.name="cancel";var an=0,sn={};function un(t){if(!t.xa&&(t.xa=!0,t.Da(),0!=an)){var e=b(t);if(0!=an&&t.pa&&0<t.pa.length)throw Error(t+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete sn[e]}}on.prototype.xa=!1,on.prototype.Da=function(){if(this.pa)for(;this.pa.length;)this.pa.shift()()};var cn=Object.freeze||function(t){return t},ln=!re||9<=Number(ge),fn=re&&!pe("9"),hn=function(){if(!l.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{l.addEventListener("test",p,e),l.removeEventListener("test",p,e)}catch(n){}return t}();function dn(t,e){this.type=t,this.b=this.target=e,this.defaultPrevented=!1}function pn(t,e){if(dn.call(this,t?t.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.b=e,e=t.relatedTarget){if(ae){t:{try{Zt(e.nodeName);var i=!0;break t}catch(o){}i=!1}i||(e=null)}}
1883else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,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!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"===typeof t.pointerType?t.pointerType:vn[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}dn.prototype.preventDefault=function(){this.defaultPrevented=!0},k(pn,dn);var vn=cn({2:"touch",3:"pen",4:"mouse"});pn.prototype.preventDefault=function(){pn.ab.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,fn)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}},pn.prototype.g=function(){return this.a};var gn="closure_listenable_"+(1e6*Math.random()|0),mn=0;function yn(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.Va=i,this.key=++mn,this.va=this.Pa=!1}function bn(t){t.va=!0,t.listener=null,t.proxy=null,t.src=null,t.Va=null}function wn(t){this.src=t,this.a={},this.b=0}function _n(t,e){var n=e.type;n in t.a&&tt(t.a[n],e)&&(bn(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function En(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.va&&o.listener==e&&o.capture==!!n&&o.Va==r)return i}return-1}wn.prototype.add=function(t,e,n,r,i){var o=t.toString();t=this.a[o],t||(t=this.a[o]=[],this.b++);var a=En(t,e,r,i);return-1<a?(e=t[a],n||(e.Pa=!1)):(e=new yn(e,this.src,o,!!r,i),e.Pa=n,t.push(e)),e};var On="closure_lm_"+(1e6*Math.random()|0),In={};function Tn(t,e,n,r,i){if(r&&r.once)Cn(t,e,n,r,i);else if(Array.isArray(e))for(var o=0;o<e.length;o++)Tn(t,e[o],n,r,i);else n=Mn(n),t&&t[gn]?Un(t,e,n,y(r)?!!r.capture:!!r,i):Sn(t,e,n,!1,r,i)}function Sn(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=y(i)?!!i.capture:!!i,s=Dn(t);if(s||(t[On]=s=new wn(t)),n=s.add(e,n,r,a,o),!n.proxy){if(r=kn(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)hn||(i=a),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(An(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}0}}function kn(){var t=Rn,e=ln?function(n){return t.call(e.src,e.listener,n)}:function(n){if(n=t.call(e.src,e.listener,n),!n)return n};return e}function Cn(t,e,n,r,i){if(Array.isArray(e))for(var o=0;o<e.length;o++)Cn(t,e[o],n,r,i);else n=Mn(n),t&&t[gn]?qn(t,e,n,y(r)?!!r.capture:!!r,i):Sn(t,e,n,!0,r,i)}function xn(t,e,n,r,i){if(Array.isArray(e))for(var o=0;o<e.length;o++)xn(t,e[o],n,r,i);else r=y(r)?!!r.capture:!!r,n=Mn(n),t&&t[gn]?(t=t.v,e=String(e).toString(),e in t.a&&(o=t.a[e],n=En(o,n,r,i),-1<n&&(bn(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--)))):t&&(t=Dn(t))&&(e=t.a[e.toString()],t=-1,e&&(t=En(e,n,r,i)),(n=-1<t?e[t]:null)&&jn(n))}function jn(t){if("number"!==typeof t&&t&&!t.va){var e=t.src;if(e&&e[gn])_n(e.v,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(An(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=Dn(e))?(_n(n,t),0==n.b&&(n.src=null,e[On]=null)):bn(t)}}}function An(t){return t in In?In[t]:In[t]="on"+t}function Nn(t,e,n,r){var i=!0;if((t=Dn(t))&&(e=t.a[e.toString()]))for(e=e.concat(),t=0;t<e.length;t++){var o=e[t];o&&o.capture==n&&!o.va&&(o=Pn(o,r),i=i&&!1!==o)}return i}function Pn(t,e){var n=t.listener,r=t.Va||t.src;return t.Pa&&jn(t),n.call(r,e)}function Rn(t,e){if(t.va)return!0;if(!ln){if(!e)t:{e=["window","event"];for(var n=l,r=0;r<e.length;r++)if(n=n[e[r]],null==n){e=null;break t}e=n}if(r=e,e=new pn(r,this),n=!0,!(0>r.keyCode||void 0!=r.returnValue)){t:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break t}catch(a){i=!0}(i||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=e.b;i;i=i.parentNode)r.push(i);for(t=t.type,i=r.length-1;0<=i;i--){e.b=r[i];var o=Nn(r[i],t,!0,e);n=n&&o}for(i=0;i<r.length;i++)e.b=r[i],o=Nn(r[i],t,!1,e),n=n&&o}return n}return Pn(t,new pn(e,this))}function Dn(t){return t=t[On],t instanceof wn?t:null}var Ln="__closure_events_fn_"+(1e9*Math.random()>>>0);function Mn(t){return m(t)?t:(t[Ln]||(t[Ln]=function(e){return t.handleEvent(e)}),t[Ln])}function Fn(){on.call(this),this.v=new wn(this),this.ac=this,this.gb=null}function Un(t,e,n,r,i){t.v.add(String(e),n,!1,r,i)}function qn(t,e,n,r,i){t.v.add(String(e),n,!0,r,i)}function $n(t,e,n,r){if(e=t.v.a[String(e)],!e)return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.va&&a.capture==n){var s=a.listener,u=a.Va||a.src;a.Pa&&_n(t.v,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}function Bn(t,e,n){if(m(t))n&&(t=I(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=I(t.handleEvent,t)}return 2147483647<Number(e)?-1:l.setTimeout(t,e||0)}function Vn(t){var e=null;return new Pe((function(n,r){e=Bn((function(){n(void 0)}),t),-1==e&&r(Error("Failed to schedule timer."))})).o((function(t){throw l.clearTimeout(e),t}))}function Kn(t){if(t.W&&"function"==typeof t.W)return t.W();if("string"===typeof t)return t.split("");
1883if(g(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}function Wn(t){if(t.Y&&"function"==typeof t.Y)return t.Y();if(!t.W||"function"!=typeof t.W){if(g(t)||"string"===typeof t){var e=[];t=t.length;for(var n=0;n<t;n++)e.push(n);return e}for(var r in e=[],n=0,t)e[n++]=r;return e}}function zn(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(g(t)||"string"===typeof t)H(t,e,void 0);else for(var n=Wn(t),r=Kn(t),i=r.length,o=0;o<i;o++)e.call(void 0,r[o],n&&n[o],t)}function Hn(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Hn)for(n=t.Y(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function Gn(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];Xn(t.b,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.c!=t.a.length){var i={};for(n=e=0;e<t.a.length;)r=t.a[e],Xn(i,r)||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function Xn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}k(Fn,on),Fn.prototype[gn]=!0,Fn.prototype.addEventListener=function(t,e,n,r){Tn(this,t,e,n,r)},Fn.prototype.removeEventListener=function(t,e,n,r){xn(this,t,e,n,r)},Fn.prototype.dispatchEvent=function(t){var e,n=this.gb;if(n)for(e=[];n;n=n.gb)e.push(n);n=this.ac;var r=t.type||t;if("string"===typeof t)t=new dn(t,n);else if(t instanceof dn)t.target=t.target||n;else{var i=t;t=new dn(r,n),Et(t,i)}if(i=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.b=e[o];i=$n(a,r,!0,t)&&i}if(a=t.b=n,i=$n(a,r,!0,t)&&i,i=$n(a,r,!1,t)&&i,e)for(o=0;o<e.length;o++)a=t.b=e[o],i=$n(a,r,!1,t)&&i;return i},Fn.prototype.Da=function(){if(Fn.ab.Da.call(this),this.v){var t,e=this.v;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)bn(n[r]);delete e.a[t],e.b--}}this.gb=null},n=Hn.prototype,n.W=function(){Gn(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},n.Y=function(){return Gn(this),this.a.concat()},n.clear=function(){this.b={},this.c=this.a.length=0},n.get=function(t,e){return Xn(this.b,t)?this.b[t]:e},n.set=function(t,e){Xn(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},n.forEach=function(t,e){for(var n=this.Y(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var Yn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Qn(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}function Jn(t,e){var n;this.a=this.l=this.c="",this.g=null,this.h=this.f="",this.i=!1,t instanceof Jn?(this.i=void 0!==e?e:t.i,Zn(this,t.c),this.l=t.l,this.a=t.a,tr(this,t.g),this.f=t.f,er(this,wr(t.b)),this.h=t.h):t&&(n=String(t).match(Yn))?(this.i=!!e,Zn(this,n[1]||"",!0),this.l=ar(n[2]||""),this.a=ar(n[3]||"",!0),tr(this,n[4]),this.f=ar(n[5]||"",!0),er(this,n[6]||"",!0),this.h=ar(n[7]||"")):(this.i=!!e,this.b=new pr(null,this.i))}function Zn(t,e,n){t.c=n?ar(e,!0):e,t.c&&(t.c=t.c.replace(/:$/,""))}function tr(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.g=e}else t.g=null}function er(t,e,n){e instanceof pr?(t.b=e,Er(t.b,t.i)):(n||(e=sr(e,hr)),t.b=new pr(e,t.i))}function nr(t,e,n){t.b.set(e,n)}function rr(t,e){return t.b.get(e)}function ir(t){return t instanceof Jn?new Jn(t):new Jn(t,void 0)}function or(t,e,n,r){var i=new Jn(null,void 0);return t&&Zn(i,t),e&&(i.a=e),n&&tr(i,n),r&&(i.f=r),i}function ar(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function sr(t,e,n){return"string"===typeof t?(t=encodeURI(t).replace(e,ur),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function ur(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(15&t).toString(16)}Jn.prototype.toString=function(){var t=[],e=this.c;e&&t.push(sr(e,cr,!0),":");var n=this.a;return(n||"file"==e)&&(t.push("//"),(e=this.l)&&t.push(sr(e,cr,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n=this.g,null!=n&&t.push(":",String(n))),(n=this.f)&&(this.a&&"/"!=n.charAt(0)&&t.push("/"),t.push(sr(n,"/"==n.charAt(0)?fr:lr,!0))),(n=this.b.toString())&&t.pu
1883sh("?",n),(n=this.h)&&t.push("#",sr(n,dr)),t.join("")},Jn.prototype.resolve=function(t){var e=new Jn(this),n=!!t.c;n?Zn(e,t.c):n=!!t.l,n?e.l=t.l:n=!!t.a,n?e.a=t.a:n=null!=t.g;var r=t.f;if(n)tr(e,t.g);else if(n=!!t.f){if("/"!=r.charAt(0))if(this.a&&!this.f)r="/"+r;else{var i=e.f.lastIndexOf("/");-1!=i&&(r=e.f.substr(0,i+1)+r)}if(i=r,".."==i||"."==i)r="";else if(dt(i,"./")||dt(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a<i.length;){var s=i[a++];"."==s?r&&a==i.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),r&&a==i.length&&o.push("")):(o.push(s),r=!0)}r=o.join("/")}else r=i}return n?e.f=r:n=""!==t.b.toString(),n?er(e,wr(t.b)):n=!!t.h,n&&(e.h=t.h),e};var cr=/[#\/\?@]/g,lr=/[#\?:]/g,fr=/[#\?]/g,hr=/[#\?@]/g,dr=/#/g;function pr(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function vr(t){t.a||(t.a=new Hn,t.b=0,t.c&&Qn(t.c,(function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)})))}function gr(t){var e=Wn(t);if("undefined"==typeof e)throw Error("Keys are undefined");var n=new pr(null,void 0);t=Kn(t);for(var r=0;r<e.length;r++){var i=e[r],o=t[r];Array.isArray(o)?br(n,i,o):n.add(i,o)}return n}function mr(t,e){vr(t),e=_r(t,e),Xn(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,t=t.a,Xn(t.b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Gn(t)))}function yr(t,e){return vr(t),e=_r(t,e),Xn(t.a.b,e)}function br(t,e,n){mr(t,e),0<n.length&&(t.c=null,t.a.set(_r(t,e),rt(n)),t.b+=n.length)}function wr(t){var e=new pr;return e.c=t.c,t.a&&(e.a=new Hn(t.a),e.b=t.b),e}function _r(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function Er(t,e){e&&!t.f&&(vr(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(mr(this,e),br(this,n,t))}),t)),t.f=e}function Or(t){var e=[];return Tr(new Ir,t,e),e.join("")}function Ir(){}function Tr(t,e,n){if(null==e)n.push("null");else{if("object"==typeof e){if(Array.isArray(e)){var r=e;e=r.length,n.push("[");for(var i="",o=0;o<e;o++)n.push(i),Tr(t,r[o],n),i=",";return void n.push("]")}if(!(e instanceof String||e instanceof Number||e instanceof Boolean)){for(r in n.push("{"),i="",e)Object.prototype.hasOwnProperty.call(e,r)&&(o=e[r],"function"!=typeof o&&(n.push(i),Cr(r,n),n.push(":"),Tr(t,o,n),i=","));return void n.push("}")}e=e.valueOf()}switch(typeof e){case"string":Cr(e,n);break;case"number":n.push(isFinite(e)&&!isNaN(e)?String(e):"null");break;case"boolean":n.push(String(e));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof e)}}}n=pr.prototype,n.add=function(t,e){vr(this),this.c=null,t=_r(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},n.clear=function(){this.a=this.c=null,this.b=0},n.forEach=function(t,e){vr(this),this.a.forEach((function(n,r){H(n,(function(n){t.call(e,n,r,this)}),this)}),this)},n.Y=function(){vr(this);for(var t=this.a.W(),e=this.a.Y(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},n.W=function(t){vr(this);var e=[];if("string"===typeof t)yr(this,t)&&(e=nt(e,this.a.get(_r(this,t))));else{t=this.a.W();for(var n=0;n<t.length;n++)e=nt(e,t[n])}return e},n.set=function(t,e){return vr(this),this.c=null,t=_r(this,t),yr(this,t)&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},n.get=function(t,e){return t?(t=this.W(t),0<t.length?String(t[0]):e):e},n.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.Y(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.W(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),t.push(a)}}return this.c=t.join("&")};var Sr={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},kr=/\uffff/.test("ï¿¿")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function Cr(t,e){e.push('"',t.replace(kr,(function(t){var e=Sr[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),Sr[t]=e),e})),'"')}function xr(){var t=Zr();return re&&!!ge&&11==ge||/Edge\/\d+/.test(t)}function jr(){return l.window&&l.window.location.href||self&&self.location&&self.location.href||""}function Ar(t,e){e=e||l.window;var n="about:blank";t&&(n=Ft(Bt(t)||Wt)),e.location.href=n}function Nr(t,e){var n,r=[];
1883for(n in t)n in e?typeof t[n]!=typeof e[n]?r.push(n):"object"==typeof t[n]&&null!=t[n]&&null!=e[n]?0<Nr(t[n],e[n]).length&&r.push(n):t[n]!==e[n]&&r.push(n):r.push(n);for(n in e)n in t||r.push(n);return r}function Pr(){var t=Zr();return t=Yr(t)!=Xr?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null,!(t&&30>t)&&(!re||!ge||9<ge)}function Rr(t){return t=(t||Zr()).toLowerCase(),!!(t.match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function Dr(t){t=t||l.window;try{t.close()}catch(e){}}function Lr(t,e,n){var r=Math.floor(1e9*Math.random()).toString();e=e||500,n=n||600;var i=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-e)/2;for(a in e={width:e,height:n,top:0<i?i:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=Zr().toLowerCase(),r&&(e.target=r,dt(n,"crios/")&&(e.target="_blank")),Yr(Zr())==Gr&&(t=t||"http://localhost",e.scrollbars=!0),n=t||"",(t=e)||(t={}),r=window,e=n instanceof Mt?n:Bt("undefined"!=typeof n.href?n.href:String(n))||Wt,n=t.target||n.target,i=[],t)switch(a){case"width":case"height":case"top":case"left":i.push(a+"="+t[a]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(a+"="+(t[a]?1:0))}var a=i.join(",");if((mt("iPhone")&&!mt("iPod")&&!mt("iPad")||mt("iPad")||mt("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(a=Te(document,"A"),Ot(a,"HTMLAnchorElement"),e=e instanceof Mt?e:Vt(e),a.href=Ft(e),a.setAttribute("target",n),t.noreferrer&&a.setAttribute("rel","noreferrer"),t=document.createEvent("MouseEvent"),t.initMouseEvent("click",!0,!0,r,1),a.dispatchEvent(t),a={}):t.noreferrer?(a=Yt("",r,n,a),t=Ft(e),a&&(oe&&dt(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),a.opener=null,t='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Jt(t)+'">',t=(r=xt())?r.createHTML(t):t,t=new zt(t,null,Gt),r=a.document)&&(r.write(Ht(t)),r.close())):(a=Yt(e,r,n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}function Mr(t){return new Pe((function(e){function n(){Vn(2e3).then((function(){if(t&&!t.closed)return n();e()}))}return n()}))}var Fr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Ur=/^[^@]+@[^@]+$/;function qr(){var t=null;return new Pe((function(e){"complete"==l.document.readyState?e():(t=function(){e()},Cn(window,"load",t))})).o((function(e){throw xn(window,"load",t),e}))}function $r(){return Br(void 0)?qr().then((function(){return new Pe((function(t,e){var n=l.document,r=setTimeout((function(){e(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(r),t()}),!1)}))})):$e(Error("Cordova must run in an Android or iOS file scheme."))}function Br(t){return t=t||Zr(),!("file:"!==ii()&&"ionic:"!==ii()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function Vr(){var t=l.window;try{return!(!t||t==t.top)}catch(e){return!1}}function Kr(){return"undefined"!==typeof l.WorkerGlobalScope&&"function"===typeof l.importScripts}function Wr(){return e["a"].INTERNAL.hasOwnProperty("reactNative")?"ReactNative":e["a"].INTERNAL.hasOwnProperty("node")?"Node":Kr()?"Worker":"Browser"}function zr(){var t=Wr();return"ReactNative"===t||"Node"===t}function Hr(){for(var t=50,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}var Gr="Firefox",Xr="Chrome";function Yr(t){var e=t.toLowerCase();return dt(e,"opera/")||dt(e,"opr/")||dt(e,"opios/")?"Opera":dt(e,"iemobile")?"IEMobile":dt(e,"msie")||dt(e,"trident/")?"IE":dt(e,"edge/")?"Edge":dt(e,"firefox/")?Gr:dt(e,"silk/")?"Silk":dt(e,"blackberry")?"Blackberry":dt(e,"webos")?"Webos":!dt(e,"safari/")||dt(e,"chrome/")||dt(e,"crios/")||dt(e,"android")?!dt(e,"chrome/")&&!dt(e,"crios/")||dt(e,"edge/")?dt(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":Xr:"Safari"}var Qr={md:"FirebaseCore-web",od:"FirebaseUI-web"};function Jr(t,e){e=e||[];var n,r=[],i={};for(n in Qr)i[Qr[n]]=!0;for(n=0;n<e.length;n++)"undefined"!==typeof i[e[n]]&&(delete i[e[n]],r.push(e[n]));return r.sort(),e=r,e.length||(e=["FirebaseCore-web"]),r=Wr(),"Browser"===r?(i=Zr(),r=Yr(i)):"Worker"===r&&(i=Zr(),r=Yr(i)+"-"+r),r+"/JsCore/"+t+"/"+e.join(",")}function Zr(){return l.navigator&&l.navigator.userAgent||""}function ti(t,e){t=t.split("."),e=e||l;for(var n=0;n<t.length&&"object"==typeof e&&null!=e;n++)e=e[t[n]];return n!=t.length&&(e=void 0),e}function ei(){try{var t=l.localStorage,e=ci();if(t)return t.setItem(e,"1"),t.removeItem(e),!xr()||!!l.indexedDB}catch(n){return Kr()&&!!l.indexedDB}return!1}function ni(){return(ri()||"chrome-extension:"===ii()||Br())&&!zr()&&ei()&&!Kr()}function ri(){return"http:"===ii()||"https:"===ii()}function ii(){return l.location&&l.location.protocol||null}function oi(t){return t=t||Zr(),!Rr(t)&&Yr(t)!=Gr}function ai(t){return"undefined"===typeof t?null:Or(t)}function si(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&null!==t[e]&&void 0!==t[e]&&(n[e]=t[e]);return n}function ui(t){if(null!==t)return JSON.parse(t)}function ci(t){return t||Math.floor(1e9*Math.random()).toString()}function li(t){return t=t||Zr(),"Safari"!=Yr(t)&&!t.toLowerCase().match(/iphone|ipad|ipod/)}function fi(){var t=l.___jsl;if(t&&t.H)for(var e in t.H)if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=t.H[e].L.concat(),t.CP)for(var n=0;n<t.CP.length;n++)t.CP[n]=null}function hi(t,e){if(t>
1883e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=Zr(),e=Wr(),this.b=Rr(t)||"ReactNative"===e}function di(){var t=l.document;return!t||"undefined"===typeof t.visibilityState||"visible"==t.visibilityState}function pi(){var t=l.document,e=null;return di()||!t?qe():new Pe((function(n){e=function(){di()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)})).o((function(n){throw t.removeEventListener("visibilitychange",e,!1),n}))}function vi(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(n){}return null}function gi(){return!(!ti("fireauth.oauthhelper",l)&&!ti("fireauth.iframe",l))}function mi(){var t=l.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}function yi(){var t=l.navigator;return t&&t.serviceWorker?qe().then((function(){return t.serviceWorker.ready})).then((function(t){return t.active||null})).o((function(){return null})):qe(null)}hi.prototype.get=function(){var t=l.navigator;return!t||"boolean"!==typeof t.onLine||!ri()&&"chrome-extension:"!==ii()&&"undefined"===typeof t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var bi,wi={};function _i(t){wi[t]||(wi[t]=!0,"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(t))}try{var Ei={};Object.defineProperty(Ei,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Ei,"abcd",{configurable:!0,enumerable:!0,value:2}),bi=2==Ei.abcd}catch(Zd){bi=!1}function Oi(t,e,n){bi?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function Ii(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&Oi(t,n,e[n])}function Ti(t){var e={};return Ii(e,t),e}function Si(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function ki(t,e){if(!e||!e.length)return!0;if(!t)return!1;for(var n=0;n<e.length;n++){var r=t[e[n]];if(void 0===r||null===r||""===r)return!1}return!0}function Ci(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Oi(e,n,Ci(t[n]));return e}function xi(t){var e=t&&(t[Ri]?"phone":null);if(!(e&&t&&t[Pi]))throw new x("internal-error","Internal assert: invalid MultiFactorInfo object");Oi(this,"uid",t[Pi]),Oi(this,"displayName",t[Ai]||null);var n=null;t[Ni]&&(n=new Date(t[Ni]).toUTCString()),Oi(this,"enrollmentTime",n),Oi(this,"factorId",e)}function ji(t){try{var e=new Di(t)}catch(n){e=null}return e}xi.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var Ai="displayName",Ni="enrolledAt",Pi="mfaEnrollmentId",Ri="phoneInfo";function Di(t){xi.call(this,t),Oi(this,"phoneNumber",t[Ri])}function Li(t){var e={},n=t[qi],r=t[Bi],i=t[Vi];if(t=ji(t[$i]),!i||i!=Fi&&i!=Ui&&!n||i==Ui&&!r||i==Mi&&!t)throw Error("Invalid checkActionCode response!");i==Ui?(e[Wi]=n||null,e[Hi]=n||null,e[Ki]=r):(e[Wi]=r||null,e[Hi]=r||null,e[Ki]=n||null),e[zi]=t||null,Oi(this,Xi,i),Oi(this,Gi,Ci(e))}k(Di,xi),Di.prototype.w=function(){var t=Di.ab.w.call(this);return t.phoneNumber=this.phoneNumber,t};var Mi="REVERT_SECOND_FACTOR_ADDITION",Fi="EMAIL_SIGNIN",Ui="VERIFY_AND_CHANGE_EMAIL",qi="email",$i="mfaInfo",Bi="newEmail",Vi="requestType",Ki="email",Wi="fromEmail",zi="multiFactorInfo",Hi="previousEmail",Gi="data",Xi="operation";function Yi(t){t=ir(t);var e=rr(t,Qi)||null,n=rr(t,Ji)||null,r=rr(t,eo)||null;if(r=r&&ro[r]||null,!e||!n||!r)throw new x("argument-error",Qi+", "+Ji+"and "+eo+" are required in a valid action code URL.");Ii(this,{apiKey:e,operation:r,code:n,continueUrl:rr(t,Zi)||null,languageCode:rr(t,to)||null,tenantId:rr(t,no)||null})}var Qi="apiKey",Ji="oobCode",Zi="continueUrl",to="languageCode",eo="mode",no="tenantId",ro={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:Mi,signIn:Fi,verifyAndChangeEmail:Ui,verifyEmail:"VERIFY_EMAIL"};function io(t){try{return new Yi(t)}catch(e){return null}}function oo(t){var e=t[lo];if("undefined"===typeof e)throw new x("missing-continue-uri");if("string"!==typeof e||"string"===typeof e&&!e.length)throw new x("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[ao];if(n&&"object"===typeof n){e=n[po];var r=n[fo];if(n=n[ho],"string"===typeof e&&e.length){if(this.a=e,"undefined"!==typeof r&&"boolean"!==typeof r)throw new x("argument-error",fo+" property must be a boolean when specified.");if(this.g=!!r,"undefined"!==typeof n&&("string"!==typeof n||"string"===typeof n&&!n.length))throw new x("argument-error",ho+" property must be a non empty string when specified.");this.b=n||null}else{if("undefined"!==typeof e)throw new x("argument-error",po+" property must be a non empty string when specified.");if("undefined"!==typeof r||"undefined"!==typeof n)throw new x("missing-android-pkg-name")}}else if("undefined"!==typeof n)throw new x("argument-error",ao+" property must be a non null object when specified.");if(this.f=null,(e=t[co])&&"object"===typeof e){if(e=e[vo],"string"===typeof e&&e.length)this.f=e;else if("undefined"!==typeof e)throw new x("argument-error",vo+" property must be a non empty string when specified.")}else if("undefined"!==typeof e)throw new x("argument-error",co+" property must be a non null object when specified.");if(e=t[uo],"undefined"!==typeof e&&"boolean"!==typeof e)throw new x("argument-error",uo+" property must be a boolean when specified.");if(this.c=!!e,t=t[so],"undefined"!==typeof t&&("string"!==typeof t||"string"===typeof t&&!t.length))throw new x("argument-error",so+" property must be a non empty string when specified.");this.i=t||null}var ao="android",so="dynamicLinkDomain",uo="handleCodeInApp",co="iOS",lo="url",fo="installApp",ho="minimumVersion",po="packageName",vo="bundleId";function go(t){var e={};for(var n in e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i,e)null===e[n]&&delete e[n];return e}function mo(t){return Y(t,(function(t){return t=t.toString(16),1<t.length?t:"0"+t})).join("")}var yo=null;function bo(t){var e=[];return wo(t,(function(t){e.push(t)})),e}function wo(t,e){function n(e){for(;r<t.length;){var n=t.charAt(r++),i=yo[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}_o();for(var r=0;;){var i=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===i)break;e(i<<2|o>>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}function _o(){if(!yo){yo={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var r=t.concat(e[n].split("")),i=0;i<r.length;i++){var o=r[i];void 0===yo[o]&&(yo[o]=i)}}}function Eo(t){var e=Io(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.h=t,this.a=e.exp,this.i=e.sub,t=Date.now()/1e3,this.g=e.iat||(t>this.a?this.a:t),this.b=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.c=!!e.is_anonymous||"anonymous"==this.b}function Oo(t){try{return new Eo(t)}catch(e){return null}}function Io(t){if(!t)return null;
1883if(t=t.split("."),3!=t.length)return null;t=t[1];for(var e=(4-t.length%4)%4,n=0;n<e;n++)t+=".";try{var r=bo(t);for(t=[],n=e=0;e<r.length;){var i=r[e++];if(128>i)t[n++]=String.fromCharCode(i);else if(191<i&&224>i){var o=r[e++];t[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(239<i&&365>i){o=r[e++];var a=r[e++],s=r[e++],u=((7&i)<<18|(63&o)<<12|(63&a)<<6|63&s)-65536;t[n++]=String.fromCharCode(55296+(u>>10)),t[n++]=String.fromCharCode(56320+(1023&u))}else o=r[e++],a=r[e++],t[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}return JSON.parse(t.join(""))}catch(c){}return null}Eo.prototype.T=function(){return this.f},Eo.prototype.l=function(){return this.c},Eo.prototype.toString=function(){return this.h};var To="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),So=["client_id","response_type","scope","redirect_uri","state"],ko={nd:{Ja:"locale",ua:700,ta:600,fa:"facebook.com",Xa:So},pd:{Ja:null,ua:500,ta:750,fa:"github.com",Xa:So},qd:{Ja:"hl",ua:515,ta:680,fa:"google.com",Xa:So},wd:{Ja:"lang",ua:485,ta:705,fa:"twitter.com",Xa:To},kd:{Ja:"locale",ua:640,ta:600,fa:"apple.com",Xa:[]}};function Co(t){for(var e in ko)if(ko[e].fa==t)return ko[e];return null}function xo(t){var e={};e["facebook.com"]=Ro,e["google.com"]=Lo,e["github.com"]=Do,e["twitter.com"]=Mo;var n=t&&t[Ao];try{if(n)return e[n]?new e[n](t):new Po(t);if("undefined"!==typeof t[jo])return new No(t)}catch(r){}return null}var jo="idToken",Ao="providerId";function No(t){var e=t[Ao];if(!e&&t[jo]){var n=Oo(t[jo]);n&&n.b&&(e=n.b)}if(!e)throw Error("Invalid additional user info!");"anonymous"!=e&&"custom"!=e||(e=null),n=!1,"undefined"!==typeof t.isNewUser?n=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),Oi(this,"providerId",e),Oi(this,"isNewUser",n)}function Po(t){No.call(this,t),t=ui(t.rawUserInfo||"{}"),Oi(this,"profile",Ci(t||{}))}function Ro(t){if(Po.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Do(t){if(Po.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Oi(this,"username",this.profile&&this.profile.login||null)}function Lo(t){if(Po.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function Mo(t){if(Po.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Oi(this,"username",t.screenName||null)}function Fo(t){var e=ir(t),n=rr(e,"link"),r=rr(ir(n),"link");return e=rr(e,"deep_link_id"),rr(ir(e),"link")||e||r||n||t}function Uo(t,e){if(!t&&!e)throw new x("internal-error","Internal assert: no raw session string available");if(t&&e)throw new x("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?qo:$o}k(Po,No),k(Ro,Po),k(Do,Po),k(Lo,Po),k(Mo,Po);var qo="enroll",$o="signin";function Bo(){}function Vo(t,e){return t.then((function(t){if(t[Ls]){var n=Oo(t[Ls]);if(!n||e!=n.i)throw new x("user-mismatch");return t}throw new x("user-mismatch")})).o((function(t){throw t&&t.code&&t.code==N+"user-not-found"?new x("user-mismatch"):t}))}function Ko(t,e){if(!e)throw new x("internal-error","failed to construct a credential");this.a=e,Oi(this,"providerId",t),Oi(this,"signInMethod",t)}function Wo(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function zo(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new Ko(t.providerId,t.pendingToken)}catch(e){}return null}function Ho(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&Oi(this,"idToken",e.idToken),e.accessToken&&Oi(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&Oi(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new x("internal-error","failed to construct a credential");Oi(this,"accessToken",e.oauthToken),Oi(this,"secret",e.oauthTokenSecret)}Oi(this,"providerId",t),Oi(this,"signInMethod",n)}function Go(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,t.nonce&&!t.a&&(e.nonce=t.nonce),e={postBody:gr(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function Xo(t){if(t&&t.providerId&&t.signInMethod){var e={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new Ho(t.providerId,e,t.signInMethod)}catch(n){}}return null}function Yo(t,e){this.Qc=e||[],Ii(this,{providerId:t,isOAuthProvider:!0}),this.Ib={},this.pb=(Co(t)||{}).Ja||null,this.ob=null}function Qo(t){if("string"!==typeof t||0!=t.indexOf("saml."))throw new x("argument-error",'SAML provider IDs must be prefixed with "saml."');Yo.call(this,t,[])}function Jo(t){Yo.call(this,t,So),this.a=[]}function Zo(){Jo.call(this,"facebook.com")}function ta(t){if(!t)throw new x("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return y(t)&&(e=t.accessToken),(new Zo).credential({accessToken:e})}function ea(){Jo.call(this,"github.com")}function na(t){if(!t)throw new x("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return y(t)&&(e=t.accessToken),(new ea).credential({accessToken:e})}function ra(){Jo.call(this,"google.com"),this.Ca("profile")}function ia(t,e){var n=t;return y(t)&&(n=t.idToken,e=t.accessToken),(new ra).credential({idToken:n,accessToken:e})}function oa(){Yo.call(this,"twitter.com",To)}function aa(t,e){var n=t;if(y(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new x("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new Ho("twitter.com",n,"twitter.com")}function sa(t,e,n){this.a=t,this.f=e,Oi(this,"providerId","password"),Oi(this,"signInMethod",n===ca.EMAIL_LINK_SIGN_IN_METHOD?ca.EMAIL_LINK_SIGN_IN_METHOD:ca.EMAIL_PASSWORD_SIGN_IN_METHOD)}function ua(t){return t&&t.email&&t.password?new sa(t.email,t.password,t.signInMethod):null}function ca(){Ii(this,{providerId:"password",isOAuthProvider:!1})}function la(t,e){if(e=fa(e),!e)throw new x("argument-error","Invalid email link!");return new sa(t,e.code,ca.EMAIL_LINK_SIGN_IN_METHOD)}function fa(t){return t=Fo(t),(t=io(t))&&t.operation===Fi?t:null}function ha(t){if(!(t.eb&&t.cb||t.La&&t.ea))throw new x("internal-error");this.a=t,Oi(this,"providerId","phone"),this.fa="phone",Oi(this,"signInMethod","phone")}function da(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return H(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){t[n]&&(e[n]=t[n])})),new ha(e)}return null}function pa(t){return t.a.La&&t.a.ea?{temporaryProof:t.a.La,phoneNumber:t.a.ea}:{sessionInfo:t.a.eb,code:t.a.cb}}function va(t){try{this.a=t||e["a"].auth()}catch(n){throw new x("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Ii(this,{providerId:"phone",isOAuthProvider:!1})}function ga(t,e){if(!t)throw new x("missing-verification-id");if(!e)throw new x("missing-verification-code");return new ha({eb:t,cb:e})}function ma(t){if(t.temporaryProof&&t.phoneNumber)return new ha({La:t.temporaryProof,ea:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,r=t&&t.oauthTokenSecret,i=t&&t.nonce,o=t&&t.oauthIdToken,a=t&&t.pendingToken;try{switch(e){case"google.com":return ia(o,n);case"facebook.com":return ta(n);case"github.com":return na(n);case"twitter.com":return aa(n,r);default:return n||r||o||a?a?0==e.indexOf("saml.")?new Ko(e,a):new Ho(e,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new Jo(e).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(s){return null}}function ya(t){if(!t.isOAuthProvider)throw new x("invalid-oauth-provider")}function ba(t,e,n,r,i,o,a){if(this.c=t,this.b=e||null,this.g=n||null,this.f=r||null,this.i=o||null,this.h=a||null,this.a=i||null,!this.g&&!this.a)throw new x("invalid-auth-event");
1883if(this.g&&this.a)throw new x("invalid-auth-event");if(this.g&&!this.f)throw new x("invalid-auth-event")}function wa(t){return t=t||{},t.type?new ba(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&j(t.error),t.postBody,t.tenantId):null}function _a(){this.b=null,this.a=[]}Uo.prototype.Ha=function(){return this.a?qe(this.a):qe(this.b)},Uo.prototype.w=function(){return this.type==qo?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},Bo.prototype.ka=function(){},Bo.prototype.b=function(){},Bo.prototype.c=function(){},Bo.prototype.w=function(){},Ko.prototype.ka=function(t){return hu(t,Wo(this))},Ko.prototype.b=function(t,e){var n=Wo(this);return n.idToken=e,du(t,n)},Ko.prototype.c=function(t,e){return Vo(pu(t,Wo(this)),e)},Ko.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},Ho.prototype.ka=function(t){return hu(t,Go(this))},Ho.prototype.b=function(t,e){var n=Go(this);return n.idToken=e,du(t,n)},Ho.prototype.c=function(t,e){var n=Go(this);return Vo(pu(t,n),e)},Ho.prototype.w=function(){var t={providerId:this.providerId,sign
1883InMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},Yo.prototype.Ka=function(t){return this.Ib=wt(t),this},k(Qo,Yo),k(Jo,Yo),Jo.prototype.Ca=function(t){return Z(this.a,t)||this.a.push(t),this},Jo.prototype.Qb=function(){return rt(this.a)},Jo.prototype.credential=function(t,e){var n;if(n=y(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null},!n.idToken&&!n.accessToken)throw new x("argument-error","credential failed: must provide the ID token and/or the access token.");return new Ho(this.providerId,n,this.providerId)},k(Zo,Jo),Oi(Zo,"PROVIDER_ID","facebook.com"),Oi(Zo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),k(ea,Jo),Oi(ea,"PROVIDER_ID","github.com"),Oi(ea,"GITHUB_SIGN_IN_METHOD","github.com"),k(ra,Jo),Oi(ra,"PROVIDER_ID","google.com"),Oi(ra,"GOOGLE_SIGN_IN_METHOD","google.com"),k(oa,Yo),Oi(oa,"PROVIDER_ID","twitter.com"),Oi(oa,"TWITTER_SIGN_IN_METHOD","twitter.com"),sa.prototype.ka=function(t){return this.signInMethod==ca.EMAIL_LINK_SIGN_IN_METHOD?Xu(t,Eu,{email:this.a,oobCode:this.f}):Xu(t,Ku,{email:this.a,password:this.f})},sa.prototype.b=function(t,e){return this.signInMethod==ca.EMAIL_LINK_SIGN_IN_METHOD?Xu(t,Ou,{idToken:e,email:this.a,oobCode:this.f}):Xu(t,Lu,{idToken:e,email:this.a,password:this.f})},sa.prototype.c=function(t,e){return Vo(this.ka(t),e)},sa.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Ii(ca,{PROVIDER_ID:"password"}),Ii(ca,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Ii(ca,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),ha.prototype.ka=function(t){return t.fb(pa(this))},ha.prototype.b=function(t,e){var n=pa(this);return n.idToken=e,Xu(t,zu,n)},ha.prototype.c=function(t,e){var n=pa(this);return n.operation="REAUTH",t=Xu(t,Hu,n),Vo(t,e)},ha.prototype.w=function(){var t={providerId:"phone"};return this.a.eb&&(t.verificationId=this.a.eb),this.a.cb&&(t.verificationCode=this.a.cb),this.a.La&&(t.temporaryProof=this.a.La),this.a.ea&&(t.phoneNumber=this.a.ea),t},va.prototype.fb=function(t,e){var n=this.a.a;return qe(e.verify()).then((function(r){if("string"!==typeof r)throw new x("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(e.type){case"recaptcha":var i,o=y(t)?t.session:null,a=y(t)?t.phoneNumber:t;return i=o&&o.type==qo?o.Ha().then((function(t){return ou(n,{idToken:t,phoneEnrollmentInfo:{phoneNumber:a,recaptchaToken:r}})})):o&&o.type==$o?o.Ha().then((function(e){return su(n,{mfaPendingCredential:e,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:r}})})):iu(n,{phoneNumber:a,recaptchaToken:r}),i.then((function(t){return"function"===typeof e.reset&&e.reset(),t}),(function(t){throw"function"===typeof e.reset&&e.reset(),t}));default:throw new x("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Ii(va,{PROVIDER_ID:"phone"}),Ii(va,{PHONE_SIGN_IN_METHOD:"phone"}),ba.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},ba.prototype.T=function(){return this.h},ba.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var Ea,Oa=null;function Ia(t){var e=Oa;e.a.push(t),e.b||(e.b=function(t){for(var n=0;n<e.a.length;n++)e.a[n](t)},t=ti("universalLinks.subscribe",l),"function"===typeof t&&t(null,e.b))}function Ta(t){var e="unauthorized-domain",n=void 0,r=ir(t);t=r.a,r=r.c,"chrome-extension"==r?n=Qt("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):"http"==r||"https"==r?n=Qt("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",x.call(this,e,n)}
1883function Sa(t,e,n){x.call(this,t,n),t=e||{},t.Jb&&Oi(this,"email",t.Jb),t.ea&&Oi(this,"phoneNumber",t.ea),t.credential&&Oi(this,"credential",t.credential),t.Zb&&Oi(this,"tenantId",t.Zb)}function ka(t){if(t.code){var e=t.code||"";0==e.indexOf(N)&&(e=e.substring(N.length));var n={credential:ma(t),Zb:t.tenantId};if(t.email)n.Jb=t.email;else if(t.phoneNumber)n.ea=t.phoneNumber;else if(!n.credential)return new x(e,t.message||void 0);return new Sa(e,n,t.message)}return null}function Ca(){}function xa(t){return t.c||(t.c=t.b())}function ja(){}function Aa(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<e.length;n++){var r=e[n];try{return new ActiveXObject(r),t.f=r}catch(i){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function Na(){}function Pa(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=I(this.qc,this),this.a.onerror=I(this.Sb,this),this.a.onprogress=I(this.rc,this),this.a.ontimeout=I(this.vc,this)}function Ra(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Da(t,e,n){this.reset(t,e,n,void 0,void 0)}k(Ta,x),k(Sa,x),Sa.prototype.w=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber),this.tenantId&&(t.tenantId=this.tenantId);var e=this.credential&&this.credential.w();return e&&Et(t,e),t},Sa.prototype.toJSON=function(){return this.w()},Ca.prototype.c=null,k(ja,Ca),ja.prototype.a=function(){var t=Aa(this);return t?new ActiveXObject(t):new XMLHttpRequest},ja.prototype.b=function(){var t={};return Aa(this)&&(t[0]=!0,t[1]=!0),t},Ea=new ja,k(Na,Ca),Na.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new Pa;throw Error("Unsupported browser")},Na.prototype.b=function(){return{}},n=Pa.prototype,n.open=function(t,e,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(t,e)},n.send=function(t){if(t){if("string"!=typeof t)throw Error("Only string data is supported");this.a.send(t)}else this.a.send()},n.abort=function(){this.a.abort()},n.setRequestHeader=function(){},n.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},n.qc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Ra(this,4)},n.Sb=function(){this.status=500,this.response=this.responseText="",Ra(this,4)},n.vc=function(){this.Sb()},n.rc=function(){this.status=200,Ra(this,1)},n.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Da.prototype.a=null;function La(t){this.f=t,this.b=this.c=this.a=null}function Ma(t,e){this.name=t,this.value=e}Da.prototype.reset=function(t,e,n,r,i){"number"==typeof i||0,r||S(),delete this.a},Ma.prototype.toString=function(){return this.name};var Fa=new Ma("SEVERE",1e3),Ua=new Ma("WARNING",900),qa=new Ma("CONFIG",700),$a=new Ma("FINE",500);function Ba(t){return t.c?t.c:t.a?Ba(t.a):(U("Root logger has no level set."),null)}La.prototype.log=function(t,e,n){if(t.value>=Ba(this).value)for(m(e)&&(e=e()),t=new Da(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var Va={},Ka=null;function Wa(t){var e;if(Ka||(Ka=new La(""),Va[""]=Ka,Ka.c=qa),!(e=Va[t])){e=new La(t);var n=t.lastIndexOf("."),r=t.substr(n+1);n=Wa(t.substr(0,n)),n.b||(n.b={}),n.b[r]=e,e.a=n,Va[t]=e}return e}function za(t,e){t&&t.log($a,e,void 0)}function Ha(t){this.f=t}function Ga(t){Fn.call(this),this.u=t,this.h=void 0,this.readyState=Xa,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.l=new Headers,this.b=null,this.s="GET",this.f="",this.a=!1,this.i=Wa("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}k(Ha,Ca),Ha.prototype.a=function(){return new Ga(this.f)},Ha.prototype.b=function(t){return function(){return t}}({}),k(Ga,Fn);var Xa=0;function Ya(t){t.c.read().then(t.pc.bind(t)).catch(t.Ua.bind(t))}function Qa(t){t.readyState=4,t.g=null,t.c=null,t.m=null,Ja(t)}function Ja(t){t.onreadystatechange&&t.onreadystatechange.call(t)}
1883function Za(t){Fn.call(this),this.headers=new Hn,this.D=t||null,this.c=!1,this.C=this.a=null,this.h=this.R=this.l="",this.f=this.O=this.i=this.J=!1,this.g=0,this.s=null,this.m=ts,this.u=this.S=!1}n=Ga.prototype,n.open=function(t,e){if(this.readyState!=Xa)throw this.abort(),Error("Error reopening a connection");this.s=t,this.f=e,this.readyState=1,Ja(this)},n.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.l,method:this.s,credentials:this.h,cache:void 0};t&&(e.body=t),this.u.fetch(new Request(this.f,e)).then(this.uc.bind(this),this.Ua.bind(this))},n.abort=function(){this.response=this.responseText="",this.l=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,Qa(this)),this.readyState=Xa},n.uc=function(t){this.a&&(this.g=t,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=t.headers,this.readyState=2,Ja(this)),this.a&&(this.readyState=3,Ja(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.sc.bind(this),this.Ua.bind(this)):"undefined"!==typeof l.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.m=new TextDecoder,Ya(this)):t.text().then(this.tc.bind(this),this.Ua.bind(this)))))},n.pc=function(t){if(this.a){var e=this.m.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?Qa(this):Ja(this),3==this.readyState&&Ya(this)}},n.tc=function(t){this.a&&(this.response=this.responseText=t,Qa(this))},n.sc=function(t){this.a&&(this.response=t,Qa(this))},n.Ua=function(t){var e=this.i;e&&e.log(Ua,"Failed to fetch url "+this.f,t instanceof Error?t:Error(t)),this.a&&Qa(this)},n.setRequestHeader=function(t,e){this.l.append(t,e)},n.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.i)&&t.log(Ua,"Attempting to get response header but no headers have been received for url: "+this.f,void 0),"")},n.getAllResponseHeaders=function(){if(!this.b){var t=this.i;return t&&t.log(Ua,"Attempting to get all response headers but no headers have been received for url: "+this.f,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(Ga.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(t){this.h=t?"include":"same-origin"}}),k(Za,Fn);var ts="";Za.prototype.b=Wa("goog.net.XhrIo");var es=/^https?$/i,ns=["POST","PUT"];function rs(t,e,n,r,i){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);n=n?n.toUpperCase():"GET",t.l=e,t.h="",t.R=n,t.J=!1,t.c=!0,t.a=t.D?t.D.a():Ea.a(),t.C=t.D?xa(t.D):xa(Ea),t.a.onreadystatechange=I(t.Vb,t);try{za(t.b,ps(t,"Opening Xhr")),t.O=!0,t.a.open(n,String(e),!0),t.O=!1}catch(a){return za(t.b,ps(t,"Error opening Xhr: "+a.message)),void as(t,a)}e=r||"";var o=new Hn(t.headers);i&&zn(i,(function(t,e){o.set(e,t)})),i=J(o.Y()),r=l.FormData&&e instanceof l.FormData,!Z(ns,n)||i||r||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(t,e){this.a.setRequestHeader(e,t)}),t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.S&&(t.a.withCredentials=t.S);try{ls(t),0<t.g&&(t.u=is(t.a),za(t.b,ps(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.u)),t.u?(t.a.timeout=t.g,t.a.ontimeout=I(t.Ma,t)):t.s=Bn(t.Ma,t.g,t)),za(t.b,ps(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(a){za(t.b,ps(t,"Send error: "+a.message)),as(t,a)}}function is(t){return re&&pe(9)&&"number"===typeof t.timeout&&void 0!==t.ontimeout}function os(t){return"content-type"==t.toLowerCase()}function as(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,ss(t),cs(t)}function ss(t){t.J||(t.J=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function us(t){if(t.c&&"undefined"!=typeof c)if(t.C[1]&&4==fs(t)&&2==hs(t))za(t.b,ps(t,"Local request error detected and ignored"));else if(t.i&&4==fs(t))Bn(t.Vb,0,t);else if(t.dispatchEvent("readystatechange"),4==fs(t)){za(t.b,ps(t,"Request complete")),t.c=!1;try{var e,n=hs(t);t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r
1883=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.l).match(Yn)[1]||null;if(!o&&l.self&&l.self.location){var a=l.self.location.protocol;o=a.substr(0,a.length-1)}i=!es.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var s=2<fs(t)?t.a.statusText:""}catch(u){za(t.b,"Can not get status: "+u.message),s=""}t.h=s+" ["+hs(t)+"]",ss(t)}}finally{cs(t)}}}function cs(t,e){if(t.a){ls(t);var n=t.a,r=t.C[0]?p:null;t.a=null,t.C=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){(t=t.b)&&t.log(Fa,"Problem encountered resetting onreadystatechange: "+i.message,void 0)}}}function ls(t){t.a&&t.u&&(t.a.ontimeout=null),t.s&&(l.clearTimeout(t.s),t.s=null)}function fs(t){return t.a?t.a.readyState:0}function hs(t){try{return 2<fs(t)?t.a.status:-1}catch(e){return-1}}function ds(t){try{return t.a?t.a.responseText:""}catch(e){return za(t.b,"Can not get responseText: "+e.message),""}}function ps(t,e){return e+" ["+t.R+" "+t.l+" "+hs(t)+"]"}function vs(t){var e=Cs;this.g=[],this.u=e,this.s=t||null,this.f=this.a=!1,this.c=void 0,this.v=this.C=this.i=!1,this.h=0,this.b=null,this.l=0}function gs(t,e,n){t.a=!0,t.c=n,t.f=!e,_s(t)}function ms(t){if(t.a){if(!t.v)throw new Es(t);t.v=!1}}function ys(t,e){bs(t,null,e,void 0)}function bs(t,e,n,r){t.g.push([e,n,r]),t.a&&_s(t)}function ws(t){return Q(t.g,(function(t){return m(t[1])}))}function _s(t){if(t.h&&t.a&&ws(t)){var e=t.h,n=Ts[e];n&&(l.clearTimeout(n.a),delete Ts[e]),t.h=0}t.b&&(t.b.l--,delete t.b),e=t.c;for(var r=n=!1;t.g.length&&!t.i;){var i=t.g.shift(),o=i[0],a=i[1];if(i=i[2],o=t.f?a:o)try{var s=o.call(i||t.s,e);void 0!==s&&(t.f=t.f&&(s==e||s instanceof Error),t.c=e=s),(L(e)||"function"===typeof l.Promise&&e instanceof l.Promise)&&(r=!0,t.i=!0)}catch(u){e=u,t.f=!0,ws(t)||(n=!0)}}t.c=e,r&&(s=I(t.m,t,!0),r=I(t.m,t,!1),e instanceof vs?(bs(e,s,r),e.C=!0):e.then(s,r)),n&&(e=new Is(e),Ts[e.a]=e,t.h=e.a)}function Es(){M.call(this)}function Os(){M.call(this)}function Is(t){this.a=l.setTimeout(I(this.c,this),0),this.b=t}n=Za.prototype,n.Ma=function(){"undefined"!=typeof c&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",za(this.b,ps(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},n.abort=function(){this.a&&this.c&&(za(this.b,ps(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),cs(this))},n.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),cs(this,!0)),Za.ab.Da.call(this)},n.Vb=function(){this.xa||(this.O||this.i||this.f?us(this):this.Jc())},n.Jc=function(){us(this)},n.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case ts:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var t=this.b;return t&&t.log(Fa,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return za(this.b,"Can not get response: "+e.message),null}},vs.prototype.cancel=function(t){if(this.a)this.c instanceof vs&&this.c.cancel();else{if(this.b){var e=this.b;delete this.b,t?e.cancel(t):(e.l--,0>=e.l&&e.cancel())}this.u?this.u.call(this.s,this):this.v=!0,this.a||(t=new Os(this),ms(this),gs(this,!1,t))}},vs.prototype.m=function(t,e){this.i=!1,gs(this,t,e)},vs.prototype.then=function(t,e,n){var r,i,o=new Pe((function(t,e){r=t,i=e}));return bs(this,r,(function(t){t instanceof Os?o.cancel():i(t)})),o.then(t,e,n)},vs.prototype.$goog_Thenable=!0,k(Es,M),Es.prototype.message="Deferred has already fired",Es.prototype.name="AlreadyCalledError",k(Os,M),Os.prototype.message="Deferred was canceled",Os.prototype.name="CanceledError",Is.prototype.c=function(){throw delete Ts[this.a],this.b};var Ts={};function Ss(t){var e={},n=e.document||document,r=At(t).toString(),i=Te(document,"SCRIPT"),o={Wb:i,Ma:void 0},a=new vs(o),s=null,u=null!=e.timeout?e.timeout:5e3;return 0<u&&(s=window.setTimeout((function(){xs(i,!0);var t=new Ns(As,"Timeout reached for loading script "+r);ms(a),gs(a,!1,t)}),u),o.Ma=s),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(xs(i,e.xd||!1,s),ms(a),gs(a,!0,null))},i.onerror=function(){xs(i,!0,s);var t=new Ns(js,"Error while loading script "+r);ms(a),gs(a,!1,t)},o=e.attributes||{}
1883,Et(o,{type:"text/javascript",charset:"UTF-8"}),be(i,o),Xt(i,t),ks(n).appendChild(i),a}function ks(t){var e;return(e=(t||document).getElementsByTagName("HEAD"))&&0!=e.length?e[0]:t.documentElement}function Cs(){if(this&&this.Wb){var t=this.Wb;t&&"SCRIPT"==t.tagName&&xs(t,!0,this.Ma)}}function xs(t,e,n){null!=n&&l.clearTimeout(n),t.onload=p,t.onerror=p,t.onreadystatechange=p,e&&window.setTimeout((function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),0)}var js=0,As=1;function Ns(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),M.call(this,n),this.code=t}function Ps(t){this.f=t}function Rs(t,n,r){if(this.c=t,t=n||{},this.l=t.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=t.secureTokenTimeout||Ms,this.g=wt(t.secureTokenHeaders||Fs),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.v=t.firebaseTimeout||Us,this.a=wt(t.firebaseHeaders||qs),r&&(this.a["X-Client-Version"]=r,this.g["X-Client-Version"]=r),r="Node"==Wr(),r=l.XMLHttpRequest||r&&e["a"].INTERNAL.node&&e["a"].INTERNAL.node.XMLHttpRequest,!r&&!Kr())throw new x("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,Kr()?this.f=new Ha(self):zr()?this.f=new Ps(r):this.f=new Na,this.b=null}k(Ns,M),k(Ps,Ca),Ps.prototype.a=function(){return new this.f},Ps.prototype.b=function(){return{}};var Ds,Ls="idToken",Ms=new hi(3e4,6e4),Fs={"Content-Type":"application/x-www-form-urlencoded"},Us=new hi(3e4,6e4),qs={"Content-Type":"application/json"};function $s(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function Bs(t,e){e&&(t.l=Vs("https://securetoken.googleapis.com/v1/token",e),t.h=Vs("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",e),t.i=Vs("https://identitytoolkit.googleapis.com/v2/",e))}function Vs(t,e){return t=ir(t),e=ir(e.url),t.f=t.a+t.f,Zn(t,e.c),t.a=e.a,tr(t,e.g),t.toString()}function Ks(t,e){e?(t.a["X-Client-Version"]=e,t.g["X-Client-Version"]=e):(delete t.a["X-Client-Version"],delete t.g["X-Client-Version"])}function Ws(t,e,n,r,i,o,a){Pr()||Kr()?t=I(t.u,t):(Ds||(Ds=new Pe((function(t,e){Gs(t,e)}))),t=I(t.s,t)),t(e,n,r,i,o,a)}Rs.prototype.T=function(){return this.b},Rs.prototype.u=function(t,e,n,r,i,o){if(Kr()&&("undefined"===typeof l.fetch||"undefined"===typeof l.Headers||"undefined"===typeof l.Request))throw new x("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var a=new Za(this.f);if(o){a.g=Math.max(0,o);var s=setTimeout((function(){a.dispatchEvent("timeout")}),o)}Un(a,"complete",(function(){s&&clearTimeout(s);var t=null;try{t=JSON.parse(ds(this))||null}catch(n){t=null}e&&e(t)})),qn(a,"ready",(function(){s&&clearTimeout(s),un(this)})),qn(a,"timeout",(function(){s&&clearTimeout(s),un(this),e&&e(null)})),rs(a,t,n,r,i)};var zs=new It(Ct,"https://apis.google.com/js/client.js?onload=%{onload}"),Hs="__fcb"+Math.floor(1e6*Math.random()).toString();function Gs(t,e){if(((window.gapi||{}).client||{}).request)t();else{l[Hs]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))};var n=Nt(zs,{onload:Hs});ys(Ss(n),(function(){e(Error("CORS_UNSUPPORTED"))}))}}function Xs(t,e){return new Pe((function(n,r){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?Ws(t,t.l+"?key="+encodeURIComponent(t.c),(function(t){t?t.error?r(Qu(t)):t.access_token&&t.refresh_token?n(t):r(new x("internal-error")):r(new x("network-request-failed"))}),"POST",gr(e).toString(),t.g,t.m.get()):r(new x("internal-error"))}))}function Ys(t,e,n,r,i,o,a){var s=ir(e+n);nr(s,"key",t.c),a&&nr(s,"cb",Date.now().toString());var u="GET"==r;if(u)for(var c in i)i.hasOwnProperty(c)&&nr(s,c,i[c]);return new Pe((function(e,n){Ws(t,s.toString(),(function(t){t?t.error?n(Qu(t,o||{})):e(t):n(new x("network-request-failed"))}),r,u?void 0:Or(si(i)),t.a,t.v.get())}))}function Qs(t){if(t=t.email,"string"!==typeof t||!Ur.test(t))throw new x("invalid-email")}function Js(t){"email"in t&&Qs(t)}function Zs(t,e){return Xu(t,bu,{identifier:e,continueUri:ri()?jr():"http://localhost"}).then((function(t){return t.signinMethods||[]}))}function tu(t){return Xu(t,Au,{}).then((function(t){return t.authorizedDomains||[]}))}function eu(t){if(!t[Ls]){if(t.mfaPendingCredential)throw new x("multi-factor-auth-required",null,wt(t));throw new x("internal-error")}}function nu(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new x("internal-error")}else{if(!t.sessionInfo)throw new x("missing-verification-id");if(!t.code)throw new x("missing-verification-code")}}Rs.prototype.s=function(t,e,n,r,i){var o=this;Ds.then((function(){window.gapi.client.setApiKey(o.c);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:n,body:r,headers:i,authType:"none",callback:function(t){window.gapi.auth.setToken(a),e&&e(t)}})})).o((function(t){e&&e({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})}))},Rs.prototype.zb=function(){return Xu(this,Mu,{})},Rs.prototype.Bb=function(t,e){return Xu(this,Du,{idToken:t,email:e})},Rs.prototype.Cb=function(t,e){return Xu(this,Lu,{idToken:t,password:e})};var ru={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function iu(t,e){return Xu(t,Ru,e)}function ou(t,e){return Xu(t,Fu,e).then((function(t){return t.phoneSessionInfo.sessionInfo}))}function au(t){if(!t.phoneVerificationInfo)throw new x("internal-error");
1883if(!t.phoneVerificationInfo.sessionInfo)throw new x("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new x("missing-verification-code")}function su(t,e){return Xu(t,Uu,e).then((function(t){return t.phoneResponseInfo.sessionInfo}))}function uu(t,e,n){return Xu(t,_u,{idToken:e,deleteProvider:n})}function cu(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new x("internal-error")}function lu(t,e){return e.oauthIdToken&&e.providerId&&0==e.providerId.indexOf("oidc.")&&!e.pendingToken&&(t.sessionId?e.nonce=t.sessionId:t.postBody&&(t=new pr(t.postBody),yr(t,"nonce")&&(e.nonce=t.get("nonce")))),e}function fu(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=ka(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=ka(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=ka(t)):t.errorMessage&&(e=Yu(t.errorMessage)),e)throw e;eu(t)}function hu(t,e){return e.returnIdpCredential=!0,Xu(t,qu,e)}function du(t,e){return e.returnIdpCredential=!0,Xu(t,Bu,e)}function pu(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,Xu(t,$u,e)}function vu(t){if(!t.oobCode)throw new x("invalid-action-code")}n=Rs.prototype,n.Db=function(t,e){var n={idToken:t},r=[];return yt(ru,(function(t,i){var o=e[i];null===o?r.push(t):i in e&&(n[i]=o)})),r.length&&(n.deleteAttribute=r),Xu(this,Du,n)},n.vb=function(t,e){return t={requestType:"PASSWORD_RESET",email:t},Et(t,e),Xu(this,ju,t)},n.wb=function(t,e){return t={requestType:"EMAIL_SIGNIN",email:t},Et(t,e),Xu(this,ku,t)},n.ub=function(t,e){return t={requestType:"VERIFY_EMAIL",idToken:t},Et(t,e),Xu(this,Cu,t)},n.Eb=function(t,e,n){return t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},Et(t,n),Xu(this,xu,t)},n.fb=function(t){return Xu(this,Wu,t)},n.nb=function(t,e){return Xu(this,Pu,{oobCode:t,newPassword:e})},n.Ra=function(t){return Xu(this,mu,{oobCode:t})},n.jb=function(t){return Xu(this,gu,{oobCode:t})};var gu={endpoint:"setAccountInfo",A:vu,Z:"email",B:!0},mu={endpoint:"resetPassword",A:vu,G:function(t){var e=t.requestType;if(!e||!t.email&&"EMAIL_SIGNIN"!=e&&"VERIFY_AND_CHANGE_EMAIL"!=e)throw new x("internal-error")},B:!0},yu={endpoint:"signupNewUser",A:function(t){if(Qs(t),!t.password)throw new x("weak-password")},G:eu,V:!0,B:!0},bu={endpoint:"createAuthUri",B:!0},wu={endpoint:"deleteAccount",N:["idToken"]},_u={endpoint:"setAccountInfo",N:["idToken","deleteProvider"],A:function(t){if(!Array.isArray(t.deleteProvider))throw new x("internal-error")}},Eu={endpoint:"emailLinkSignin",N:["email","oobCode"],A:Qs,G:eu,V:!0,B:!0},Ou={endpoint:"emailLinkSignin",N:["idToken","email","oobCode"],A:Qs,G:eu,V:!0},Iu={endpoint:"accounts/mfaEnrollment:finalize",N:["idToken","phoneVerificationInfo"],A:au,G:eu,B:!0,Na:!0},Tu={endpoint:"accounts/mfaSignIn:finalize",N:["mfaPendingCredential","phoneVerificationInfo"],A:au,G:eu,B:!0,Na:!0},Su={endpoint:"getAccountInfo"},ku={endpoint:"getOobConfirmationCode",N:["requestType"],A:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new x("internal-error");Qs(t)},Z:"email",B:!0},Cu={endpoint:"getOobConfirmationCode",N:["idToken","requestType"],A:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new x("internal-error")},Z:"email",B:!0},xu={endpoint:"getOobConfirmationCode",N:["idToken","newEmail","requestType"],A:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new x("internal-error")},Z:"email",B:!0},ju={endpoint:"getOobConfirmationCode",N:["requestType"],A:function(t){if("PASSWORD_RESET"!=t.requestType)throw new x("internal-error");Qs(t)},Z:"email",B:!0},Au={lb:!0,endpoint:"getProjectConfig",Ub:"GET"},Nu={lb:!0,endpoint:"getRecaptchaParam",Ub:"GET",G:function(t){if(!t.recaptchaSiteKey)throw new x("internal-error")}},Pu={endpoint:"resetPassword",A:vu,Z:"email",B:!0},Ru={endpoint:"sendVerificationCode",N:["phoneNumber","recaptchaToken"],Z:"sessionInfo",B:!0},Du={endpoint:"setAccountInfo",N:["idToken"],A:Js,V:!0},Lu={endpoint:"setAccountInfo",N:["idToken"],A:function(t){if(Js(t),!t.password)throw new x("weak-password")},G:eu,V:!0},Mu={endpoint:"signupNewUser",G:eu,V:!0,B:!0},Fu={endpoint:"accounts/mfaEnrollment:start",N:["idToken","phoneEnrollmentInfo"],A:function(t){if(!t.phone
1883EnrollmentInfo)throw new x("internal-error");if(!t.phoneEnrollmentInfo.phoneNumber)throw new x("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new x("missing-app-credential")},G:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new x("internal-error")},B:!0,Na:!0},Uu={endpoint:"accounts/mfaSignIn:start",N:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(t){if(!t.phoneSignInInfo||!t.phoneSignInInfo.recaptchaToken)throw new x("missing-app-credential")},G:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new x("internal-error")},B:!0,Na:!0},qu={endpoint:"verifyAssertion",A:cu,Ya:lu,G:fu,V:!0,B:!0},$u={endpoint:"verifyAssertion",A:cu,Ya:lu,G:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new x("user-not-found");if(t.errorMessage)throw Yu(t.errorMessage);eu(t)},V:!0,B:!0},Bu={endpoint:"verifyAssertion",A:function(t){if(cu(t),!t.idToken)throw new x("internal-error")},Ya:lu,G:fu,V:!0},Vu={endpoint:"verifyCustomToken",A:function(t){if(!t.token)throw new x("invalid-custom-token")},G:eu,V:!0,B:!0},Ku={endpoint:"verifyPassword",A:function(t){if(Qs(t),!t.password)throw new x("wrong-password")},G:eu,V:!0,B:!0},Wu={endpoint:"verifyPhoneNumber",A:nu,G:eu,B:!0},zu={endpoint:"verifyPhoneNumber",A:function(t){if(!t.idToken)throw new x("internal-error");nu(t)},G:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",ka(t);eu(t)}},Hu={Hb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:nu,G:eu,B:!0},Gu={endpoint:"accounts/mfaEnrollment:withdraw",N:["idToken","mfaEnrollmentId"],G:function(t){if(!!t[Ls]^!!t.refreshToken)throw new x("internal-error")},B:!0,Na:!0};function Xu(t,e,n){if(!ki(n,e.N))return $e(new x("internal-error"));var r,i=!!e.Na,o=e.Ub||"POST";return qe(n).then(e.A).then((function(){return e.V&&(n.returnSecureToken=!0),e.B&&t.b&&"undefined"===typeof n.tenantId&&(n.tenantId=t.b),Ys(t,i?t.i:t.h,e.endpoint,o,n,e.Hb,e.lb||!1)})).then((function(t){return r=t,e.Ya?e.Ya(n,r):r})).then(e.G).then((function(){if(!e.Z)return r;if(!(e.Z in r))throw new x("internal-error");return r[e.Z]}))}function Yu(t){return Qu({error:{errors:[{message:t}],code:400,message:t}})}function Qu(t,e){var n=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",r={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=r[n]?new x(r[n]):null)return n;for(var i in n=t.error&&t.error.message||"",r={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
1883NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},Et(r,e||{}),e=(e=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<e.length?e[1]:void 0,r)if(0===n.indexOf(i))return new x(r[i],e);return!e&&t&&(e=ai(t)),new x("internal-error",e)}function Ju(t){this.b=t,this.a=null,this.rb=Zu(this)}function Zu(t){return ac().then((function(){return new Pe((function(e,n){ti("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:ti("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(r){function i(){clearTimeout(o),e()}t.a=r,t.a.restyle({setHideOnLeave:!1});var o=setTimeout((function(){n(Error("Network Error"))}),ic.get());r.ping(i).then(i,(function(){n(Error("Network Error"))}))}))}))}))}function tc(t,e){return t.rb.then((function(){return new Pe((function(n){t.a.send(e.type,e,n,ti("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}function ec(t,e){t.rb.then((function(){t.a.register("authEvent",e,ti("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}var nc=new It(Ct,"https://apis.google.com/js/api.js?onload=%{onload}"),rc=new hi(3e4,6e4),ic=new hi(5e3,15e3),oc=null;
1883function ac(){return oc||(oc=new Pe((function(t,e){function n(){fi(),ti("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){fi(),e(Error("Network Error"))},timeout:rc.get()})}if(ti("gapi.iframes.Iframe"))t();else if(ti("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();l[r]=function(){ti("gapi.load")?n():e(Error("Network Error"))},r=Nt(nc,{onload:r}),qe(Ss(r)).o((function(){e(Error("Network Error"))}))}})).o((function(t){throw oc=null,t})))}function sc(t,e,n,r){this.l=t,this.h=e,this.i=n,this.g=r,this.f=null,this.g?(t=ir(this.g.url),t=or(t.c,t.a,t.g,"/emulator/auth/iframe")):t=or("https",this.l,null,"/__/auth/iframe"),this.a=t,nr(this.a,"apiKey",this.h),nr(this.a,"appName",this.i),this.b=null,this.c=[]}function uc(t,e,n,r,i,o){this.u=t,this.s=e,this.c=n,this.m=r,this.v=o,this.i=this.g=this.l=null,this.a=i,this.h=this.f=null}function cc(t){try{return e["a"].app(t).auth().Ga()}catch(n){return[]}}function lc(t,e,n,r,i,o){this.s=t,this.g=e,this.b=n,this.f=o,this.c=r||null,this.i=i||null,this.l=this.u=this.C=null,this.h=[],this.m=this.a=null}function fc(t){var e=jr();return tu(t).then((function(t){t:{var n=ir(e),r=n.c;n=n.a;for(var i=0;i<t.length;i++){var o=t[i],a=n,s=r;if(0==o.indexOf("chrome-extension://")?a=ir(o).a==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:Fr.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){t=!0;break t}}t=!1}if(!t)throw new Ta(jr())}))}function hc(t){return t.m||(t.m=qr().then((function(){if(!t.u){var e=t.c,n=t.i,r=cc(t.b),i=new sc(t.s,t.g,t.b,t.f);i.f=e,i.b=n,i.c=rt(r||[]),t.u=i.toString()}t.v=new Ju(t.u),vc(t)}))),t.m}function dc(t){return t.l||(t.C=t.c?Jr(t.c,cc(t.b)):null,t.l=new Rs(t.g,D(t.i),t.C),t.f&&Bs(t.l,t.f)),t.l}function pc(t,e,n,r,i,o,a,s,u,c,l,f){return t=new uc(t,e,n,r,i,f),t.l=o,t.g=a,t.i=s,t.b=wt(u||null),t.f=c,t.yb(l).toString()}function vc(t){if(!t.v)throw Error("IfcHandler must be initialized!");ec(t.v,(function(e){var n={};if(e&&e.authEvent){var r=!1;for(e=wa(e.authEvent),n=0;n<t.h.length;n++)r=t.h[n](e)||r;return n={},n.status=r?"ACK":"ERROR",qe(n)}return n.status="ERROR",qe(n)}))}function gc(t){var e={type:"webStorageSupport"};return hc(t).then((function(){return tc(t.v,e)})).then((function(t){if(t&&t.length&&"undefined"!==typeof t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()}))}function mc(t){if(this.a=t||e["a"].INTERNAL.reactNative&&e["a"].INTERNAL.reactNative.AsyncStorage,!this.a)throw new x("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function yc(t){this.b=t,this.a={},this.f=I(this.c,this)}sc.prototype.toString=function(){return this.f?nr(this.a,"v",this.f):mr(this.a.b,"v"),this.b?nr(this.a,"eid",this.b):mr(this.a.b,"eid"),this.c.length?nr(this.a,"fw",this.c.join(",")):mr(this.a.b,"fw"),this.a.toString()},uc.prototype.yb=function(t){return this.h=t,this},uc.prototype.toString=function(){if(this.v){var t=ir(this.v.url);t=or(t.c,t.a,t.g,"/emulator/auth/handler")}else t=or("https",this.u,null,"/__/auth/handler");if(nr(t,"apiKey",this.s),nr(t,"appName",this.c),nr(t,"authType",this.m),this.a.isOAuthProvider){var n=this.a;try{var r=e["a"].app(this.c).auth().la()}catch(u){r=null}for(var i in n.ob=r,nr(t,"providerId",this.a.providerId),r=this.a,n=si(r.Ib),n)n[i]=n[i].toString();i=r.Qc,n=wt(n);for(var o=0;o<i.length;o++){var a=i[o];a in n&&delete n[a]}r.pb&&r.ob&&!n[r.pb]&&(n[r.pb]=r.ob),bt(n)||nr(t,"customParameters",ai(n))}if("function"===typeof this.a.Qb&&(r=this.a.Qb(),r.length&&nr(t,"scopes",r.join(","))),this.l?nr(t,"redirectUrl",this.l):mr(t.b,"redirectUrl"),this.g?nr(t,"eventId",this.g):mr(t.b,"eventId"),this.i?nr(t,"v",this.i):mr(t.b,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!rr(t,s)&&nr(t,s,this.b[s]);return this.h?nr(t,"tid",this.h):mr(t.b,"tid"),this.f?nr(t,"eid",this.f):mr(t.b,"eid"),s=cc(this.c),s.length&&nr(t,"fw",s.join(",")),t.toString()},n=lc.prototype,n.Ob=function(t,e,n){var r=new x("popup-closed-by-user"),i=new x("web-storage-unsupported"),o=this,a=!1;return this.ma().then((function(){gc(o).then((function(n){n||(t&&Dr(t),e(i),a=!0)}))})).o((function(){})).then((function(){if(!a)return Mr(t)})).then((function(){if(!a)return Vn(n).then((function(){e(r)}))}))},n.Xb=function(){var t=Zr();return!oi(t)&&!li(t)},n.Tb=function(){return!1}
1883,n.Mb=function(t,e,n,r,i,o,a,s){if(!t)return $e(new x("popup-blocked"));if(a&&!oi())return this.ma().o((function(e){Dr(t),i(e)})),r(),qe();this.a||(this.a=fc(dc(this)));var u=this;return this.a.then((function(){var e=u.ma().o((function(e){throw Dr(t),i(e),e}));return r(),e})).then((function(){if(ya(n),!a){var r=pc(u.s,u.g,u.b,e,n,null,o,u.c,void 0,u.i,s,u.f);Ar(r,t)}})).o((function(t){throw"auth/network-request-failed"==t.code&&(u.a=null),t}))},n.Nb=function(t,e,n,r){this.a||(this.a=fc(dc(this)));var i=this;return this.a.then((function(){ya(e);var o=pc(i.s,i.g,i.b,t,e,jr(),n,i.c,void 0,i.i,r,i.f);Ar(o)})).o((function(t){throw"auth/network-request-failed"==t.code&&(i.a=null),t}))},n.ma=function(){var t=this;return hc(this).then((function(){return t.v.rb})).o((function(){throw t.a=null,new x("network-request-failed")}))},n.$b=function(){return!0},n.Ea=function(t){this.h.push(t)},n.Sa=function(t){et(this.h,(function(e){return e==t}))},n=mc.prototype,n.get=function(t){return qe(this.a.getItem(t)).then((function(t){return t&&ui(t)}))},n.set=function(t,e){return qe(this.a.setItem(t,ai(e)))},n.U=function(t){return qe(this.a.removeItem(t))},n.ca=function(){},n.ia=function(){};var bc,wc=[];function _c(){var t=Kr()?self:null;if(H(wc,(function(n){n.b==t&&(e=n)})),!e){var e=new yc(t);wc.push(e)}return e}function Ec(t,e,n){bt(t.a)&&t.b.addEventListener("message",t.f),"undefined"===typeof t.a[e]&&(t.a[e]=[]),t.a[e].push(n)}function Oc(t){this.a=t}function Ic(t){this.c=t,this.b=!1,this.a=[]}function Tc(t,e,n,r){var i,o,a,s,u=n||{},c=null;if(t.b)return $e(Error("connection_unavailable"));var l=r?800:50,f="undefined"!==typeof MessageChannel?new MessageChannel:null;return new Pe((function(n,r){f?(i=Math.floor(Math.random()*Math.pow(10,20)).toString(),f.port1.start(),a=setTimeout((function(){r(Error("unsupported_event"))}),l),o=function(t){t.data.eventId===i&&("ack"===t.data.status?(clearTimeout(a),s=setTimeout((function(){r(Error("timeout"))}),3e3)):"done"===t.data.status?(clearTimeout(s),"undefined"!==typeof t.data.response?n(t.data.response):r(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),r(Error("invalid_response"))))},c={messageChannel:f,onMessage:o},t.a.push(c),f.port1.addEventListener("message",o),t.c.postMessage({eventType:e,eventId:i,data:u},[f.port2])):r(Error("connection_unavailable"))})).then((function(e){return Sc(t,c),e})).o((function(e){throw Sc(t,c),e}))}function Sc(t,e){if(e){var n=e.messageChannel,r=e.onMessage;n&&(n.port1.removeEventListener("message",r),n.port1.close()),et(t.a,(function(t){return t==e}))}}function kc(){if(!Nc())throw new x("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=l.indexedDB,this.type="indexedDB",this.g=this.v=this.f=this.l=null,this.s=!1,this.h=null;var t=this;Kr()&&self?(this.v=_c(),Ec(this.v,"keyChanged",(function(e,n){return Mc(t).then((function(e){return 0<e.length&&H(t.a,(function(t){t(e)})),{keyProcessed:Z(e,n.key)}}))})),Ec(this.v,"ping",(function(){return qe(["keyChanged"])}))):yi().then((function(e){(t.h=e)&&(t.g=new Ic(new Oc(e)),Tc(t.g,"ping",null,!0).then((function(e){e[0].fulfilled&&Z(e[0].value,"keyChanged")&&(t.s=!0)})).o((function(){})))}))}function Cc(t){return new Pe((function(e,n){var r=t.m.deleteDatabase("firebaseLocalStorageDb");r.onsuccess=function(){e()},r.onerror=function(t){n(Error(t.target.error))}}))}function xc(t){return new Pe((function(e,n){var r=t.m.open("firebaseLocalStorageDb",1);r.onerror=function(t){try{t.preventDefault()}catch(e){}n(Error(t.target.error))},r.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){n(e)}},r.onsuccess=function(r){r=r.target.result,r.objectStoreNames.contains("firebaseLocalStorage")?e(r):Cc(t).then((function(){return xc(t)})).then((function(t){e(t)})).o((function(t){n(t)}))}}))}function jc(t){return t.i||(t.i=xc(t)),t.i}function Ac(t,e){function n(i,o){jc(t).then(e).then(i).o((function(e){if(!(3<++r))return jc(t).then((function(e){return e.close(),t.i=void 0,n(i,o)})).o((function(t){o(t)}));o(e)}))}var r=0;return new Pe(n)}function Nc(){try{return!!l.indexedDB}
1883catch(Zd){return!1}}function Pc(t){return t.objectStore("firebaseLocalStorage")}function Rc(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function Dc(t){return new Pe((function(e,n){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){n(t.target.error)}}))}function Lc(t,e){return t.g&&t.h&&mi()===t.h?Tc(t.g,"keyChanged",{key:e},t.s).then((function(){})).o((function(){})):qe()}function Mc(t){return jc(t).then((function(t){var e=Pc(Rc(t,!1));return e.getAll?Dc(e.getAll()):new Pe((function(t,n){var r=[],i=e.openCursor();i.onsuccess=function(e){(e=e.target.result)?(r.push(e.value),e["continue"]()):t(r)},i.onerror=function(t){n(t.target.error)}}))})).then((function(e){var n={},r=[];if(0==t.b){for(r=0;r<e.length;r++)n[e[r].fbase_key]=e[r].value;r=Nr(t.c,n),t.c=n}return r}))}function Fc(t){function e(){t.f=setTimeout((function(){t.l=Mc(t).then((function(e){0<e.length&&H(t.a,(function(t){t(e)}))})).then((function(){e()})).o((function(t){"STOP_EVENT"!=t.message&&e()}))}),800)}Uc(t),e()}function Uc(t){t.l&&t.l.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function qc(t){var e=this,n=null;this.a=[],this.type="indexedDB",this.c=t,this.b=qe().then((function(){if(Nc()){var t=ci(),r="__sak"+t;return bc||(bc=new kc),n=bc,n.set(r,t).then((function(){return n.get(r)})).then((function(e){if(e!==t)throw Error("indexedDB not supported!");return n.U(r)})).then((function(){return n})).o((function(){return e.c}))}return e.c})).then((function(t){return e.type=t.type,t.ca((function(t){H(e.a,(function(e){e(t)}))})),t}))}function $c(){this.a={},this.type="inMemory"}function Bc(){if(!Kc()){if("Node"==Wr())throw new x("internal-error","The LocalStorage compatibility library was not found.");throw new x("web-storage-unsupported")}this.a=Vc()||e["a"].INTERNAL.node.localStorage,this.type="localStorage"}function Vc(){try{var t=l.localStorage,e=ci();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Kc(){var t="Node"==Wr();if(t=Vc()||t&&e["a"].INTERNAL.node&&e["a"].INTERNAL.node.localStorage,!t)return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(n){return!1}}function Wc(){this.type="nullStorage"}function zc(){if(!Gc()){if("Node"==Wr())throw new x("internal-error","The SessionStorage compatibility library was not found.");throw new x("web-storage-unsupported")}this.a=Hc()||e["a"].INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Hc(){try{var t=l.sessionStorage,e=ci();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Gc(){var t="Node"==Wr();if(t=Hc()||t&&e["a"].INTERNAL.node&&e["a"].INTERNAL.node.sessionStorage,!t)return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(n){return!1}}function Xc(){var t={};t.Browser=Jc,t.Node=Zc,t.ReactNative=tl,t.Worker=el,this.a=t[Wr()]}yc.prototype.c=function(t){var e=t.data.eventType,n=t.data.eventId,r=this.a[e];if(r&&0<r.length){t.ports[0].postMessage({status:"ack",eventId:n,eventType:e,response:null});var i=[];H(r,(function(e){i.push(qe().then((function(){return e(t.origin,t.data.data)})))})),Ke(i).then((function(r){var i=[];H(r,(function(t){i.push({fulfilled:t.Pb,value:t.value,reason:t.reason?t.reason.message:void 0})})),H(i,(function(t){for(var e in t)"undefined"===typeof t[e]&&delete t[e]})),t.ports[0].postMessage({status:"done",eventId:n,eventType:e,response:i})}))}},Oc.prototype.postMessage=function(t,e){this.a.postMessage(t,e)},Ic.prototype.close=function(){for(;0<this.a.length;)Sc(this,this.a[0]);this.b=!0},n=kc.prototype,n.set=function(t,e){var n=this,r=!1;return Ac(this,(function(e){return e=Pc(Rc(e,!0)),Dc(e.get(t))})).then((function(i){return Ac(n,(function(o){if(o=Pc(Rc(o,!0)),i)return i.value=e,Dc(o.put(i));n.b++,r=!0;var a={};return a.fbase_key=t,a.value=e,Dc(o.add(a))}))})).then((function(){return n.c[t]=e,Lc(n,t)})).oa((function(){r&&n.b--}))},n.get=function(t){return Ac(this,(function(e){return Dc(Pc(Rc(e,!1)).get(t))})).then((function(t){return t&&t.value}))},n.U=function(t){var e=this,n=!1;return Ac(this,(function(r){return n=!0,e.b++,Dc(Pc(Rc(r,!0))["delete"](t))})).then((function(){return delete e.c[t],Lc(e,t)})).oa((function(){n&&e.b--}))},n.ca=function(t){0==this.a.length&&Fc(this),this.a.push(t)},n.ia=function(t){et(this.a,(function(e){return e==t})),0==this.a.length&&Uc(this)},n=qc.prototype,n.get=function(t){return this.b.then((function(e){return e.get(t)}))},n.set=function(t,e){return this.b.then((function(n){return n.set(t,e)}))},n.U=function(t){return this.b.then((function(e){return e.U(t)}))},n.ca=function(t){this.a.push(t)},n.ia=function(t){et(this.a,(function(e){return e==t}))},n=$c.prototype,n.get=function(t){return qe(this.a[t])},n.set=function(t,e){return this.a[t]=e,qe()},n.U=function(t){return delete this.a[t],qe()},n.ca=function(){},n.ia=function(){},n=Bc.prototype,n.get=function(t){var e=this;return qe().then((function(){var n=e.a.getItem(t);return ui(n)}))},n.set=function(t,e){var n=this;return qe().then((function(){var r=ai(e);null===r?n.U(t):n.a.setItem(t,r)}))},n.U=function(t){var e=this;return qe().then((function(){e.a.removeItem(t)}))},n.ca=function(t){l.window&&Tn(l.window,"storage",t)},n.ia=function(t){l.window&&xn(l.window,"storage",t)},n=Wc.prototype,n.get=function(){return qe(null)},n.set=function(){return qe()},n.U=function(){return qe()},n.ca=function(){},n.ia=function(){},n=zc.prototype,n.get=function(t){var e=this;return qe().then((function(){var n=e.a.getItem(t);return ui(n)}))},n.set=function(t,e){var n=this;return qe().then((function(){var r=ai(e);null===r?n.U(t):n.a.setItem(t,r)}))},n.U=function(t){var e=this;return qe().then((function(){e.a.removeItem(t)}))},n.ca=function(){},n.ia=function(){};var Yc,Qc,Jc={F:Bc,bb:zc},Zc={F:Bc,bb:zc},tl={F:mc,bb:Wc},el={F:Bc,bb:Wc},nl={rd:"local",NONE:"none",td:"session"};function rl(t){var e=new x("invalid-persistence-type"),n=new x("unsupported-persistence-type");t:{for(r in nl)if(nl[r]==t){var r=!0;break t}r=!1}if(!r||"string"!==typeof t)throw e;switch(Wr()){case"ReactNative":if("session"===t)throw n;break;case"Node":if("none"!==t)throw n;break;case"Worker":if("session"===t||!Nc()&&"none"!==t)throw n;break;default:if(!ei()&&"none"!==t)throw n}}
1883function il(){var t=!(li(Zr())||!Vr()),e=oi(),n=ei();this.m=t,this.h=e,this.l=n,this.a={},Yc||(Yc=new Xc),t=Yc;try{this.g=!xr()&&gi()||!l.indexedDB?new t.a.F:new qc(Kr()?new $c:new t.a.F)}catch(r){this.g=new $c,this.h=!0}try{this.i=new t.a.bb}catch(r){this.i=new $c}this.v=new $c,this.f=I(this.Yb,this),this.b={}}function ol(){return Qc||(Qc=new il),Qc}function al(t,e){switch(e){case"session":return t.i;case"none":return t.v;default:return t.g}}function sl(t,e){return"firebase:"+t.name+(e?":"+e:"")}function ul(t,e,n){var r=sl(e,n),i=al(t,e.F);return t.get(e,n).then((function(o){var a=null;try{a=ui(l.localStorage.getItem(r))}catch(s){}if(a&&!o)return l.localStorage.removeItem(r),t.set(e,a,n);a&&o&&"localStorage"!=i.type&&l.localStorage.removeItem(r)}))}function cl(t,e,n){return n=sl(e,n),"local"==e.F&&(t.b[n]=null),al(t,e.F).U(n)}function ll(t){fl(t),t.c=setInterval((function(){for(var e in t.a){var n=l.localStorage.getItem(e),r=t.b[e];n!=r&&(t.b[e]=n,n=new pn({type:"storage",key:e,target:window,oldValue:r,newValue:n,a:!0}),t.Yb(n))}}),1e3)}function fl(t){t.c&&(clearInterval(t.c),t.c=null)}function hl(t){this.a=t,this.b=ol()}n=il.prototype,n.get=function(t,e){return al(this,t.F).get(sl(t,e))},n.set=function(t,e,n){var r=sl(t,n),i=this,o=al(this,t.F);return o.set(r,e).then((function(){return o.get(r)})).then((function(e){"local"==t.F&&(i.b[r]=e)}))},n.addListener=function(t,e,n){t=sl(t,e),this.l&&(this.b[t]=l.localStorage.getItem(t)),bt(this.a)&&(al(this,"local").ca(this.f),this.h||(xr()||!gi())&&l.indexedDB||!this.l||ll(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(n)},n.removeListener=function(t,e,n){t=sl(t,e),this.a[t]&&(et(this.a[t],(function(t){return t==n})),0==this.a[t].length&&delete this.a[t]),bt(this.a)&&(al(this,"local").ia(this.f),fl(this))},n.Yb=function(t){if(t&&t.g){var e=t.a.key;if(null==e)for(var n in this.a){var r=this.b[n];"undefined"===typeof r&&(r=null);var i=l.localStorage.getItem(n);i!==r&&(this.b[n]=i,this.mb(n))}else if(0==e.indexOf("firebase:")&&this.a[e]){if("undefined"!==typeof t.a.a?al(this,"local").ia(this.f):fl(this),this.m)if(n=l.localStorage.getItem(e),r=t.a.newValue,r!==n)null!==r?l.localStorage.setItem(e,r):l.localStorage.removeItem(e);else if(this.b[e]===r&&"undefined"===typeof t.a.a)return;var o=this;n=function(){"undefined"===typeof t.a.a&&o.b[e]===l.localStorage.getItem(e)||(o.b[e]=l.localStorage.getItem(e),o.mb(e))},re&&ge&&10==ge&&l.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(n,10):n()}}else H(t,I(this.mb,this))},n.mb=function(t){this.a[t]&&H(this.a[t],(function(t){t()}))};var dl,pl={name:"authEvent",F:"local"};function vl(t){return t.b.get(pl,t.a).then((function(t){return wa(t)}))}function gl(){this.a=ol()}function ml(){this.b=-1}function yl(t,e){this.b=bl,this.f=l.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.l=l.Int32Array?new Int32Array(64):Array(64),void 0===dl&&(dl=l.Int32Array?new Int32Array(Sl):Sl),this.reset()}k(yl,ml);for(var bl=64,wl=bl-1,_l=[],El=0;El<wl;El++)_l[El]=0;var Ol=nt(128,_l);function Il(t){for(var e=t.f,n=t.l,r=0,i=0;i<e.length;)n[r++]=e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3],i=4*r;for(e=16;64>e;e++){i=0|n[e-15],r=0|n[e-2];var o=(0|n[e-16])+((i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,a=(0|n[e-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[e]=o+a|0}r=0|t.a[0],i=0|t.a[1];var s=0|t.a[2],u=0|t.a[3],c=0|t.a[4],l=0|t.a[5],f=0|t.a[6];for(o=0|t.a[7],e=0;64>e;e++){var h=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;a=c&l^~c&f,o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0,a=a+(0|dl[e])|0,a=o+(a+(0|n[e])|0)|0,o=f,f=l,l=c,c=u+a|0,u=s,s=i,i=r,r=a+h|0}t.a[0]=t.a[0]+r|0,t.a[1]=t.a[1]+i|0,t.a[2]=t.a[2]+s|0,t.a[3]=t.a[3]+u|0,t.a[4]=t.a[4]+c|0,t.a[5]=t.a[5]+l|0,t.a[6]=t.a[6]+f|0,t.a[7]=t.a[7]+o|0}function Tl(t,e,n){void 0===n&&(n=e.length);var r=0,i=t.c;if("string"===typeof e)for(;r<n;)t.f[i++]=e.charCodeAt(r++),i==t.b&&(Il(t),i=0);else{if(!g(e))throw Error("message must be string or array");for(;r<n;){var o=e[r++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");t.f[i++]=o,i==t.b&&(Il(t),i=0)}}t.c=i,t.g+=n}yl.prototype.reset=function(){this.g=this.c=0,this.a=l.Int32Array?new Int32Array(this.h):rt(this.h)};var Sl=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
1883734187,3204031479,3329325298];function kl(){yl.call(this,8,Cl)}k(kl,yl);var Cl=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function xl(t,e,n,r,i,o){this.v=t,this.i=e,this.l=n,this.m=r||null,this.u=i||null,this.s=o,this.h=e+":"+n,this.C=new gl,this.g=new hl(this.h),this.f=null,this.b=[],this.a=this.c=null}function jl(t){return new x("invalid-cordova-configuration",t)}function Al(){for(var t=20,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}function Nl(t){var e=new kl;Tl(e,t),t=[];var n=8*e.g;56>e.c?Tl(e,Ol,56-e.c):Tl(e,Ol,e.b-(e.c-56));for(var r=63;56<=r;r--)e.f[r]=255&n,n/=256;for(Il(e),r=n=0;r<e.i;r++)for(var i=24;0<=i;i-=8)t[n++]=e.a[r]>>i&255;return mo(t)}function Pl(t,e,n,r,i){var o=Al(),a=new ba(e,r,null,o,new x("no-auth-event"),null,i),s=ti("BuildInfo.packageName",l);if("string"!==typeof s)throw new x("invalid-cordova-configuration");var u=ti("BuildInfo.displayName",l),c={};if(Zr().toLowerCase().match(/iphone|ipad|ipod/))c.ibi=s;
1883else{if(!Zr().toLowerCase().match(/android/))return $e(new x("operation-not-supported-in-this-environment"));c.apn=s}u&&(c.appDisplayName=u),o=Nl(o),c.sessionId=o;var f=pc(t.v,t.i,t.l,e,n,null,r,t.m,c,t.u,i,t.s);return t.ma().then((function(){var e=t.h;return t.C.a.set(pl,a.w(),e)})).then((function(){var e=ti("cordova.plugins.browsertab.isAvailable",l);if("function"!==typeof e)throw new x("invalid-cordova-configuration");var n=null;e((function(e){if(e){if(n=ti("cordova.plugins.browsertab.openUrl",l),"function"!==typeof n)throw new x("invalid-cordova-configuration");n(f)}else{if(n=ti("cordova.InAppBrowser.open",l),"function"!==typeof n)throw new x("invalid-cordova-configuration");e=Zr(),t.a=n(f,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}function Rl(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(r){}}function Dl(t){return t.f||(t.f=t.ma().then((function(){return new Pe((function(e){function n(r){return e(r),t.Sa(n),!1}t.Ea(n),Ml(t)}))}))),t.f}function Ll(t){var e=null;return vl(t.g).then((function(n){return e=n,n=t.g,cl(n.b,pl,n.a)})).then((function(){return e}))}function Ml(t){function e(e){r=!0,i&&i.cancel(),Ll(t).then((function(r){var i=n;if(r&&e&&e.url){var o=null;i=Fo(e.url),-1!=i.indexOf("/__/auth/callback")&&(o=ir(i),o=ui(rr(o,"firebaseError")||null),o=(o="object"===typeof o?j(o):null)?new ba(r.c,r.b,null,null,o,null,r.T()):new ba(r.c,r.b,i,r.f,null,null,r.T())),i=o||n}Rl(t,i)}))}var n=new ba("unknown",null,null,null,new x("no-auth-event")),r=!1,i=Vn(500).then((function(){return Ll(t).then((function(){r||Rl(t,n)}))})),o=l.handleOpenURL;l.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(ti("BuildInfo.packageName",l).toLowerCase()+"://")&&e({url:t}),"function"===typeof o)try{o(t)}catch(n){console.error(n)}},Oa||(Oa=new _a),Ia(e)}function Fl(t){this.a=t,this.b=ol()}n=xl.prototype,n.ma=function(){return this.Ia?this.Ia:this.Ia=$r().then((function(){if("function"!==typeof ti("universalLinks.subscribe",l))throw jl("cordova-universal-links-plugin-fix is not installed");if("undefined"===typeof ti("BuildInfo.packageName",l))throw jl("cordova-plugin-buildinfo is not installed");if("function"!==typeof ti("cordova.plugins.browsertab.openUrl",l))throw jl("cordova-plugin-browsertab is not installed");if("function"!==typeof ti("cordova.InAppBrowser.open",l))throw jl("cordova-plugin-inappbrowser is not installed")}),(function(){throw new x("cordova-not-ready")}))}
1883,n.Ob=function(t,e){return e(new x("operation-not-supported-in-this-environment")),qe()},n.Mb=function(){return $e(new x("operation-not-supported-in-this-environment"))},n.$b=function(){return!1},n.Xb=function(){return!0},n.Tb=function(){return!0},n.Nb=function(t,e,n,r){if(this.c)return $e(new x("redirect-operation-pending"));var i=this,o=l.document,a=null,s=null,u=null,c=null;return this.c=qe().then((function(){return ya(e),Dl(i)})).then((function(){return Pl(i,t,e,n,r)})).then((function(){return new Pe((function(t,e){s=function(){var e=ti("cordova.plugins.browsertab.close",l);return t(),"function"===typeof e&&e(),i.a&&"function"===typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ea(s),u=function(){a||(a=Vn(2e3).then((function(){e(new x("redirect-cancelled-by-user"))})))},c=function(){di()&&u()},o.addEventListener("resume",u,!1),Zr().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",c,!1)})).o((function(t){return Ll(i).then((function(){throw t}))}))})).oa((function(){u&&o.removeEventListener("resume",u,!1),c&&o.removeEventListener("visibilitychange",c,!1),a&&a.cancel(),s&&i.Sa(s),i.c=null}))},n.Ea=function(t){this.b.push(t),Dl(this).o((function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new ba("unknown",null,null,null,new x("no-auth-event")),t(e))}))},n.Sa=function(t){et(this.b,(function(e){return e==t}))};var Ul={name:"pendingRedirect",F:"session"};function ql(t){return t.b.set(Ul,"pending",t.a)}function $l(t){return cl(t.b,Ul,t.a)}function Bl(t){return t.b.get(Ul,t.a).then((function(t){return"pending"==t}))}function Vl(t,e,n,r){this.i={},this.u=0,this.D=t,this.v=e,this.m=n,this.J=r,this.h=[],this.f=!1,this.l=I(this.s,this),this.b=new of,this.C=new df,this.g=new Fl(nf(this.v,this.m)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.C,this.c.linkViaPopup=this.C,this.c.reauthViaPopup=this.C,this.a=Kl(this.D,this.v,this.m,A,this.J)}function Kl(t,n,r,i,o){var a=e["a"].SDK_VERSION||null;return Br()?new xl(t,n,r,a,i,o):new lc(t,n,r,a,i,o)}function Wl(t){t.f||(t.f=!0,t.a.Ea(t.l));var e=t.a;return t.a.ma().o((function(n){throw t.a==e&&t.reset(),n}))}function zl(t){t.a.Xb()&&Wl(t).o((function(e){var n=new ba("unknown",null,null,null,new x("operation-not-supported-in-this-environment"));Jl(e)&&t.s(n)})),t.a.Tb()||af(t.b)}function Hl(t,e){Z(t.h,e)||t.h.push(e),t.f||Bl(t.g).then((function(e){e?$l(t.g).then((function(){Wl(t).o((function(e){var n=new ba("unknown",null,null,null,new x("operation-not-supported-in-this-environment"));Jl(e)&&t.s(n)}))})):zl(t)})).o((function(){zl(t)}))}function Gl(t,e){et(t.h,(function(t){return t==e}))}Vl.prototype.reset=function(){this.f=!1,this.a.Sa(this.l),this.a=Kl(this.D,this.v,this.m,null,this.J),this.i={}},Vl.prototype.s=function(t){if(!t)throw new x("invalid-auth-event");if(6e5<=Date.now()-this.u&&(this.i={},this.u=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,n=0;n<this.h.length;n++){var r=this.h[n];if(r.Fb(t.c,t.b)){(e=this.c[t.c])&&(e.h(t,r),t&&(t.f||t.b)&&(this.i[t.getUid()]=!0,this.u=Date.now())),e=!0;break}}return af(this.b),e};var Xl=new hi(2e3,1e4),Yl=new hi(3e4,6e4);function Ql(t,e,n,r,i,o,a){return t.a.Mb(e,n,r,(function(){t.f||(t.f=!0,t.a.Ea(t.l))}),(function(){t.reset()}),i,o,a)}function Jl(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function Zl(t,e,n,r,i){var o;return ql(t.g).then((function(){return t.a.Nb(e,n,r,i).o((function(e){if(Jl(e))throw new x("operation-not-supported-in-this-environment");return o=e,$l(t.g).then((function(){throw o}))})).then((function(){return t.a.$b()?new Pe((function(){})):$l(t.g).then((function(){return t.qa()})).then((function(){})).o((function(){}))}))}))}function tf(t,e,n,r,i){return t.a.Ob(r,(function(t){e.na(n,null,t,i)}),Xl.get())}Vl.prototype.qa=function(){return this.b.qa()};var ef={};function nf(t,e,n){return t=t+":"+e,n&&(t=t+":"+n.url),t}function rf(t,e,n,r){var i=nf(e,n,r);return ef[i]||(ef[i]=new Vl(t,e,n,r)),ef[i]}function of(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function af(t){t.g||(t.g=!0,ff(t,!1,null,null))}function sf(t){t.g&&!t.i&&ff(t,!1,null,null)}function uf(t,e,n){n=n.Fa(e.c,e.b);var r=e.g,i=e.f,o=e.i,a=e.T(),s=!!e.c.match(/Redirect$/);n(r,i,a,o).then((function(e){ff(t,s,e,null)})).o((function(e){ff(t,s,null,e)}))}function cf(t,e){if(t.b=function(){return $e(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}function lf(t,e){if(t.b=function(){return qe(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}
1883function ff(t,e,n,r){e?r?cf(t,r):lf(t,n):lf(t,{user:null}),t.f=[],t.c=[]}function hf(t){var e=new x("timeout");t.a&&t.a.cancel(),t.a=Vn(Yl.get()).then((function(){t.b||(t.g=!0,ff(t,!0,null,e))}))}function df(){}function pf(t,e){var n=t.b,r=t.c;e.Fa(r,n)(t.g,t.f,t.T(),t.i).then((function(t){e.na(r,t,null,n)})).o((function(t){e.na(r,null,t,n)}))}function vf(){this.ib=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.ib},set:function(t){this.ib=t},enumerable:!1})}function gf(t,e){this.a=e,Oi(this,"verificationId",t)}function mf(t,e,n,r){return new va(t).fb(e,n).then((function(t){return new gf(t,r)}))}function yf(t){var e=Io(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new x("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Ii(this,{token:t,expirationTime:vi(1e3*e.exp),authTime:vi(1e3*e.auth_time),issuedAtTime:vi(1e3*e.iat),signInProvider:e.firebase&&e.firebase.sign_in_provider?e.firebase.sign_in_provider:null,signInSecondFactor:e.firebase&&e.firebase.sign_in_second_factor?e.firebase.sign_in_second_factor:null,claims:e})}function bf(t,e,n){var r=e&&e[_f];if(!r)throw new x("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=wt(e),this.g=n,this.c=new Uo(null,r),this.b=[];var i=this;H(e[wf]||[],(function(t){(t=ji(t))&&i.b.push(t)})),Oi(this,"auth",this.a),Oi(this,"session",this.c),Oi(this,"hints",this.b)}of.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},of.prototype.h=function(t,e){if(t){this.reset(),this.g=!0;var n=t.c,r=t.b,i=t.a&&"auth/web-storage-unsupported"==t.a.code,o=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;this.i=!(!i&&!o),"unknown"!=n||i||o?t.a?(ff(this,!0,null,t.a),qe()):e.Fa(n,r)?uf(this,t,e):$e(new x("invalid-auth-event")):(ff(this,!1,null,null),qe())}else $e(new x("invalid-auth-event"))},of.prototype.qa=function(){var t=this;return new Pe((function(e,n){t.b?t.b().then(e,n):(t.f.push(e),t.c.push(n),hf(t))}))},df.prototype.h=function(t,e){if(t){var n=t.c,r=t.b;t.a?(e.na(t.c,null,t.a,t.b),qe()):e.Fa(n,r)?pf(t,e):$e(new x("invalid-auth-event"))}else $e(new x("invalid-auth-event"))},gf.prototype.confirm=function(t){return t=ga(this.verificationId,t),this.a(t)};var wf="mfaInfo",_f="mfaPendingCredential";function Ef(t,e,n,r){x.call(this,"multi-factor-auth-required",r,e),this.b=new bf(t,e,n),Oi(this,"resolver",this.b)}function Of(t,e,n){if(t&&y(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new Ef(e,t.serverResponse,n,t.message)}catch(r){}return null}function If(){}function Tf(t,e,n,r){return n.Ha().then((function(n){return n={idToken:n},"undefined"!==typeof r&&(n.displayName=r),Et(n,{phoneVerificationInfo:pa(t.a)}),Xu(e,Iu,n)}))}function Sf(t,e,n){return n.Ha().then((function(n){return n={mfaPendingCredential:n},Et(n,{phoneVerificationInfo:pa(t.a)}),Xu(e,Tu,n)}))}function kf(t){Oi(this,"factorId",t.fa),this.a=t}function Cf(t){if(kf.call(this,t),this.a.fa!=va.PROVIDER_ID)throw new x("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function xf(t,e){for(var n in dn.call(this,t),e)this[n]=e[n]}function jf(t,e){this.a=t,this.b=[],this.c=I(this.yc,this),Tn(this.a,"userReloaded",this.c);var n=[];e&&e.multiFactor&&e.multiFactor.enrolledFactors&&H(e.multiFactor.enrolledFactors,(function(t){var e=null,r={};if(t){t.uid&&(r[Pi]=t.uid),t.displayName&&(r[Ai]=t.displayName),t.enrollmentTime&&(r[Ni]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(r[Ri]=t.phoneNumber);try{e=new Di(r)}catch(i){}t=e}else t=null;t&&n.push(t)})),Nf(this,n)}function Af(t){var e=[];return H(t.mfaInfo||[],(function(t){(t=ji(t))&&e.push(t)})),e}function Nf(t,e){t.b=e,Oi(t,"enrolledFactors",e)}function Pf(t,e,n){if(this.h=t,this.i=e,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function Rf(t,e){return e?(t.a=t.c,t.g()):(e=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),e)}function Df(t,e){t.stop(),t.b=Vn(Rf(t,e)).then((function(){return pi()})).then((function(){return t.h()})).then((function(){Df(t,!0)})).o((function(e){t.i(e)&&Df(t,!1)}))}function Lf(t){this.f=t,this.b=this.a=null,this.c=Date.now()}function Mf(t,e){"undefined"===typeof e&&(t.b?(e=t.b,e=e.a-e.g):e=0),t.c=Date.now()+1e3*e}function Ff(t,e){t.b=Oo(e[Ls]||""),t.a=e.refreshToken,e=e.expires
1883In,Mf(t,"undefined"!==typeof e?Number(e):void 0)}function Uf(t,e){t.b=e.b,t.a=e.a,t.c=e.c}function qf(t,e){return Xs(t.f,e).then((function(e){return t.b=Oo(e.access_token),t.a=e.refresh_token,Mf(t,e.expires_in),{accessToken:t.b.toString(),refreshToken:t.a}})).o((function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e}))}function $f(t,e){this.a=t||null,this.b=e||null,Ii(this,{lastSignInTime:vi(e||null),creationTime:vi(t||null)})}function Bf(t){return new $f(t.a,t.b)}function Vf(t,e,n,r,i,o){Ii(this,{uid:t,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:o||null,providerId:e})}function Kf(t,n,r){this.J=[],this.l=t.apiKey,this.m=t.appName,this.s=t.authDomain||null;var i=e["a"].SDK_VERSION?Jr(e["a"].SDK_VERSION):null;this.a=new Rs(this.l,D(A),i),t.emulatorConfig&&Bs(this.a,t.emulatorConfig),this.b=new Lf(this.a),Zf(this,n[Ls]),Ff(this.b,n),Oi(this,"refreshToken",this.b.a),rh(this,r||{}),Fn.call(this),this.R=!1,this.s&&ni()&&(this.i=rf(this.s,this.l,this.m)),this.S=[],this.h=null,this.u=Yf(this),this.aa=I(this.hb,this);var o=this;this.ya=null,this.Oa=function(t){o.wa(t.h)},this.ja=null,this.Aa=function(t){Bs(o.a,t.c)},this.X=null,this.$=[],this.Ba=function(t){Hf(o,t.f)},this.ba=null,this.O=new jf(this,r),Oi(this,"multiFactor",this.O)}function Wf(t,e){t.ja&&xn(t.ja,"languageCodeChanged",t.Oa),(t.ja=e)&&Tn(e,"languageCodeChanged",t.Oa)}function zf(t,e){t.X&&xn(t.X,"emulatorConfigChanged",t.Aa),(t.X=e)&&Tn(e,"emulatorConfigChanged",t.Aa)}function Hf(t,n){t.$=n,Ks(t.a,e["a"].SDK_VERSION?Jr(e["a"].SDK_VERSION,t.$):null)}function Gf(t,e){t.ba&&xn(t.ba,"frameworkChanged",t.Ba),(t.ba=e)&&Tn(e,"frameworkChanged",t.Ba)}function Xf(t){try{return e["a"].app(t.m).auth()}catch(n){throw new x("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function Yf(t){return new Pf((function(){return t.I(!0)}),(function(t){return!(!t||"auth/network-request-failed"!=t.code)}),(function(){var e=t.b.c-Date.now()-3e5;return 0<e?e:0}))}function Qf(t){t.D||t.u.b||(t.u.start(),xn(t,"tokenChanged",t.aa),Tn(t,"tokenChanged",t.aa))}function Jf(t){xn(t,"tokenChanged",t.aa),t.u.stop()}function Zf(t,e){t.za=e,Oi(t,"_lat",e)}function th(t,e){et(t.S,(function(t){return t==e}))}function eh(t){for(var e=[],n=0;n<t.S.length;n++)e.push(t.S[n](t));return Ke(e).then((function(){return t}))}function nh(t){t.i&&!t.R&&(t.R=!0,Hl(t.i,t))}function rh(t,e){Ii(t,{uid:e.uid,displayName:e.displayName||null,photoURL:e.photoURL||null,email:e.email||null,emailVerified:e.emailVerified||!1,phoneNumber:e.phoneNumber||null,isAnonymous:e.isAnonymous||!1,tenantId:e.tenantId||null,metadata:new $f(e.createdAt,e.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function ih(){}function oh(t){return qe().then((function(){if(t.D)throw new x("app-deleted")}))}function ah(t){return Y(t.providerData,(function(t){return t.providerId}))}function sh(t,e){e&&(uh(t,e.providerId),t.providerData.push(e))}function uh(t,e){et(t.providerData,(function(t){return t.providerId==e}))}function ch(t,e,n){("uid"!=e||n)&&t.hasOwnProperty(e)&&Oi(t,e,n)}function lh(t,e){t!=e&&(Ii(t,{uid:e.uid,displayName:e.displayName,photoURL:e.photoURL,email:e.email,emailVerified:e.emailVerified,phoneNumber:e.phoneNumber,isAnonymous:e.isAnonymous,tenantId:e.tenantId,providerData:[]}),e.metadata?Oi(t,"metadata",Bf(e.metadata)):Oi(t,"metadata",new $f),H(e.providerData,(function(e){sh(t,e)})),Uf(t.b,e.b),Oi(t,"refreshToken",t.b.a),Nf(t.O,e.O.b))}function fh(t){return t.I().then((function(e){var n=t.isAnonymous;return dh(t,e).then((function(){return n||ch(t,"isAnonymous",!1),e}))}))}function hh(t,e){e[Ls]&&t.za!=e[Ls]&&(Ff(t.b,e),t.dispatchEvent(new xf("tokenChanged")),Zf(t,e[Ls]),ch(t,"refreshToken",t.b.a))}function dh(t,e){return Xu(t.a,Su,{idToken:e}).then(I(t.Kc,t))}function ph(t){return(t=t.providerUserInfo)&&t.length?Y(t,(function(t){return new Vf(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)})):[]}function vh(t,e){return fh(t).then((function(){if(Z(ah(t),e))return eh(t).then((function(){throw new x("provider-already-linked")}))}))}function gh(t,e,n){var r=ma(e);return e=xo(e),Ti({user:t,credential:r,additionalUserInfo:e,operationType:n})}function mh(t,e){return hh(t,e),t.reload().then((function(){return t}))}function yh(t,n,r,i,o){if(!ni())return $e(new x("operation-not-supported-in-this-environment"));if(t.h&&!o)return $e(t.h);var a=Co(r.providerId),s=ci(t.uid+":::"),u=null;(!oi()||Vr())&&t.s&&r.isOAuthProvider&&(u=pc(t.s,t.l,t.m,n,r,null,s,e["a"].SDK_VERSION||null,null,null,t.tenantId));var c=Lr(u,a&&a.ua,a&&a.ta);return i=i().then((function(){if(wh(t),!o)return t.I().then((function(){}))})).then((function(){return Ql(t.i,c,n,r,s,!!u,t.tenantId)})).then((function(){return new Pe((function(e,r){t.na(n,null,new x("cancelled-popup-request"),t.g||null),t.f=e,t.C=r,t.g=s,t.c=tf(t.i,t,n,c,s)}))})).then((function(t){return c&&Dr(c),t?Ti(t):null})).o((function(t){throw c&&Dr(c),t})),_h(t,i,o)}function bh(t,e,n,r,i){if(!ni())return $e(new x("operation-not-supported-in-this-environment"));if(t.h&&!i)return $e(t.h);var o=null,a=ci(t.uid+":::");return r=r().then((function(){if(wh(t),!i)return t.I().then((function(){}))})).then((function(){return t.ga=a,eh(t)})).then((function(e){return t.ha&&(e=t.ha,e=e.b.set(kh,t.w(),e.a)),e})).then((function(){return Zl(t.i,e,n,a,t.tenantId)})).o((function(e){if(o=e,t.ha)return Ch(t.ha);throw o})).then((function(){if(o)throw o})),_h(t,r,i)}function wh(t){if(!t.i||!t.R){if(t.i&&!t.R)throw new x("internal-error");throw new x("auth-domain-config-required")}}function _h(t,e,n){var r=Eh(t,e,n);return t.J.push(r),r.oa((function(){tt(t.J,r)})),r.o((function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=Of(e.w(),Xf(t),I(t.jc,t))),n||e}))}function Eh(t,e,n){return t.h&&!n?(e.cancel(),$e(t.h)):e.o((function(e){throw!e||"auth/user-disabled"!=e.code&&"auth/user-token-expired"!=e.code||(t.h||t.dispatchEvent(new xf("userInvalidated")),t.h=e),e}))}function Oh(t){if(!t.apiKey)return null;var e={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName,emulatorConfig:t.emulatorConfig},n={};if(!t.stsTokenManager||!t.stsTokenManager.accessToken)return null;n[Ls]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null;var r=t.stsTokenManager.expirationTime;r&&(n.expiresIn=(r-Date.now())/1e3);var i=new Kf(e,n,t);return t.providerData&&H(t.providerData,(function(t){t&&sh(i,Ti(t))})),t.redirectEventId&&(i.ga=t.redirectEventId),i}function Ih(t,e,n,r){var i=new Kf(t,e);return n&&(i.ha=n),r&&Hf(i,r),i.reload().then((function(){return i}))}function Th(t,e,n,r){var i=t.b,o={};return o[Ls]=i.b&&i.b.toString(),o.refreshToken=i.a,e=new Kf(e||{apiKey:t.l,authDomain:t.s,appName:t.m},o),n&&(e.ha=n),r&&Hf(e,r),lh(e,t),e}function Sh(t){this.a=t,this.b=ol()}bf.prototype.Rc=function(t){var e=this;return t.sb(this.a.a,this.c).then((function(t){var n=wt(e.f);return delete n[wf],delete n[_f],Et(n,t),e.g(n)}))},k(Ef,x),If.prototype.sb=function(t,e,n){return e.type==qo?Tf(this,t,e,n):Sf(this,t,e)},k(kf,If),k(Cf,kf),k(xf,dn),n=jf.prototype,n.yc=function(t){Nf(this,Af(t.hd))},n.Rb=function(){return this.a.I().then((function(t){return new Uo(t,null)}))},n.fc=function(t,e){var n=this,r=this.a.a;return this.Rb().then((function(n){return t.sb(r,n,e)})).then((function(t){return hh(n.a,t),n.a.reload()}))},n.bd=function(t){var e=this,n="string"===typeof t?t:t.uid,r=this.a.a;return this.a.I().then((function(t){return Xu(r,Gu,{idToken:t,mfaEnrollmentId:n})})).then((function(t){var r=X(e.b,(function(t){return t.uid!=n}));return Nf(e,r),hh(e.a,t),e.a.reload().o((function(t){if("auth/user-token-expired"!=t.code)throw t}))}))},n.w=function(){return{multiFactor:{enrolledFactors:Y(this.b,(function(t){return t.w()}))}}},Pf.prototype.start=function(){this.a=this.c,Df(this,!0)},Pf.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},Lf.prototype.w=function(){return{apiKey:this.f.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:this.c}},Lf.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?$e(new x("user-token-expired")):t||!this.b||Date.now()>this.c-3e4?this.a?qf(this,{grant_type:"refresh_token",refresh_token:this.a}):qe(null):qe({accessToken:this.b.toString(),refreshToken:this.a})},$f.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},k(Kf,Fn),Kf.prototype.wa=function(t){this.ya=t,$s(this.a,t)},Kf.prototype.la=function(){return this.ya},Kf.prototype.Ga=function(){return rt(this.$)},Kf.prototype.hb=function(){this.u.b&&(this.u.stop(),this.u.start())},Oi(Kf.prototype,"providerId","firebase"),n=Kf.prototype,n.reload=function(){var t=this;return _h(this,oh(this).then((function(){return fh(t).then((function(){return eh(t)})).then(ih)})))},n.oc=function(t){return this.I(t).then((function(t){return new yf
1883(t)}))},n.I=function(t){var e=this;return _h(this,oh(this).then((function(){return e.b.getToken(t)})).then((function(t){if(!t)throw new x("internal-error");return t.accessToken!=e.za&&(Zf(e,t.accessToken),e.dispatchEvent(new xf("tokenChanged"))),ch(e,"refreshToken",t.refreshToken),t.accessToken})))},n.Kc=function(t){if(t=t.users,!t||!t.length)throw new x("internal-error");t=t[0],rh(this,{uid:t.localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=ph(t),n=0;n<e.length;n++)sh(this,e[n]);ch(this,"isAnonymous",!(this.email&&t.passwordHash)&&!(this.providerData&&this.providerData.length)),this.dispatchEvent(new xf("userReloaded",{hd:t}))},n.Lc=function(t){return _i("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.tb(t)},n.tb=function(t){var e=this,n=null;return _h(this,t.c(this.a,this.uid).then((function(t){return hh(e,t),n=gh(e,t,"reauthenticate"),e.h=null,e.reload()})).then((function(){return n})),!0)},n.Cc=function(t){return _i("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.qb(t)},n.qb=function(t){var e=this,n=null;return _h(this,vh(this,t.providerId).then((function(){return e.I()})).then((function(n){return t.b(e.a,n)})).then((function(t){return n=gh(e,t,"link"),mh(e,t)})).then((function(){return n})))},n.Dc=function(t,e){var n=this;return _h(this,vh(this,"phone").then((function(){return mf(Xf(n),t,e,I(n.qb,n))})))},n.Mc=function(t,e){var n=this;return _h(this,qe().then((function(){return mf(Xf(n),t,e,I(n.tb,n))})),!0)},n.Bb=function(t){var e=this;return _h(this,this.I().then((function(n){return e.a.Bb(n,t)})).then((function(t){return hh(e,t),e.reload()})))},n.ed=function(t){var e=this;return _h(this,this.I().then((function(n){return t.b(e.a,n)})).then((function(t){return hh(e,t),e.reload()})))},n.Cb=function(t){var e=this;return _h(this,this.I().then((function(n){return e.a.Cb(n,t)})).then((function(t){return hh(e,t),e.reload()})))},n.Db=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return oh(this);var e=this;return _h(this,this.I().then((function(n){return e.a.Db(n,{displayName:t.displayName,photoUrl:t.photoURL})})).then((function(t){return hh(e,t),ch(e,"displayName",t.displayName||null),ch(e,"photoURL",t.photoUrl||null),H(e.providerData,(function(t){"password"===t.providerId&&(Oi(t,"displayName",e.displayName),Oi(t,"photoURL",e.photoURL))})),eh(e)})).then(ih))},n.cd=function(t){var e=this;return _h(this,fh(this).then((function(n){return Z(ah(e),t)?uu(e.a,n,[t]).then((function(t){var n={};return H(t.providerUserInfo||[],(function(t){n[t.providerId]=!0})),H(ah(e),(function(t){n[t]||uh(e,t)})),n[va.PROVIDER_ID]||Oi(e,"phoneNumber",null),eh(e)})):eh(e).then((function(){throw new x("no-such-provider")}))})))},n.delete=function(){var t=this;return _h(this,this.I().then((function(e){return Xu(t.a,wu,{idToken:e})})).then((function(){t.dispatchEvent(new xf("userDeleted"))}))).then((function(){for(var e=0;e<t.J.length;e++)t.J[e].cancel("app-deleted");Wf(t,null),zf(t,null),Gf(t,null),t.J=[],t.D=!0,Jf(t),Oi(t,"refreshToken",null),t.i&&Gl(t.i,t)}))},n.Fb=function(t,e){return!!("linkViaPopup"==t&&(this.g||null)==e&&this.f||"reauthViaPopup"==t&&(this.g||null)==e&&this.f||"linkViaRedirect"==t&&(this.ga||null)==e||"reauthViaRedirect"==t&&(this.ga||null)==e)},n.na=function(t,e,n,r){"linkViaPopup"!=t&&"reauthViaPopup"!=t||r!=(this.g||null)||(n&&this.C?this.C(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},n.Fa=function(t,e){return"linkViaPopup"==t&&e==(this.g||null)?I(this.Kb,this):"reauthViaPopup"==t&&e==(this.g||null)?I(this.Lb,this):"linkViaRedirect"==t&&(this.ga||null)==e?I(this.Kb,this):"reauthViaRedirect"==t&&(this.ga||null)==e?I(this.Lb,this):null},n.Ec=function(t){var e=this;return yh(this,"linkViaPopup",t,(function(){return vh(e,t.providerId).then((function(){return eh(e)}))}),!1)},n.Nc=function(t){return yh(this,"reauthViaPopup",t,(function(){return qe()}),!0)},n.Fc=function(t){var e=this;return bh(this,"linkViaRedirect",t,(function(){return vh(e,t.providerId)}),!1)},n.Oc=function(t){return bh(this,"reauthViaRedirect",t,(function(){return qe()}),!0)},n.Kb=function(t,e,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return n=this.I().then((function(n){return du(i.a,{requestUri:t,postBody:r,sessionId:e,idToken:n})})).then((function(t){return o=gh(i,t,"link"),mh(i,t)})).then((function(){return o}
1883)),_h(this,n)},n.Lb=function(t,e,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null,a=qe().then((function(){return Vo(pu(i.a,{requestUri:t,sessionId:e,postBody:r,tenantId:n}),i.uid)})).then((function(t){return o=gh(i,t,"reauthenticate"),hh(i,t),i.h=null,i.reload()})).then((function(){return o}));return _h(this,a,!0)},n.ub=function(t){var e=this,n=null;return _h(this,this.I().then((function(e){return n=e,"undefined"===typeof t||bt(t)?{}:go(new oo(t))})).then((function(t){return e.a.ub(n,t)})).then((function(t){if(e.email!=t)return e.reload()})).then((function(){})))},n.Eb=function(t,e){var n=this,r=null;return _h(this,this.I().then((function(t){return r=t,"undefined"===typeof e||bt(e)?{}:go(new oo(e))})).then((function(e){return n.a.Eb(r,t,e)})).then((function(t){if(n.email!=t)return n.reload()})).then((function(){})))},n.jc=function(t){var e=null,n=this;return t=Vo(qe(t),n.uid).then((function(t){return e=gh(n,t,"reauthenticate"),hh(n,t),n.h=null,n.reload()})).then((function(){return e})),_h(this,t,!0)},n.toJSON=function(){return this.w()},n.w=function(){var t={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.s,stsTokenManager:this.b.w(),redirectEventId:this.ga||null};return this.metadata&&Et(t,this.metadata.w()),H(this.providerData,(function(e){t.providerData.push(Si(e))})),Et(t,this.O.w()),t};var kh={name:"redirectUser",F:"session"};function Ch(t){return cl(t.b,kh,t.a)}function xh(t,e){return t.b.get(kh,t.a).then((function(t){return t&&e&&(t.authDomain=e),Oh(t||{})}))}function jh(t){this.a=t,this.b=ol(),this.c=null,this.f=Nh(this),this.b.addListener(Rh("local"),this.a,I(this.g,this))}function Ah(t,e){var n,r=[];for(n in nl)nl[n]!==e&&r.push(cl(t.b,Rh(nl[n]),t.a));return r.push(cl(t.b,Ph,t.a)),Ve(r)}function Nh(t){var e=Rh("local"),n=Rh("session"),r=Rh("none");return ul(t.b,e,t.a).then((function(){return t.b.get(n,t.a)})).then((function(i){return i?n:t.b.get(r,t.a).then((function(n){return n?r:t.b.get(e,t.a).then((function(n){return n?e:t.b.get(Ph,t.a).then((function(t){return t?Rh(t):e}))}))}))})).then((function(e){return t.c=e,Ah(t,e.F)})).o((function(){t.c||(t.c=e)}))}jh.prototype.g=function(){var t=this,e=Rh("local");Uh(this,(function(){return qe().then((function(){return t.c&&"local"!=t.c.F?t.b.get(e,t.a):null})).then((function(n){if(n)return Ah(t,"local").then((function(){t.c=e}))}))}))};var Ph={name:"persistence",F:"session"};function Rh(t){return{name:"authUser",F:t}}function Dh(t){return Uh(t,(function(){return t.b.set(Ph,t.c.F,t.a)}))}function Lh(t,e){return Uh(t,(function(){return t.b.set(t.c,e.w(),t.a)}))}function Mh(t){return Uh(t,(function(){return cl(t.b,t.c,t.a)}))}function Fh(t,e,n){return Uh(t,(function(){return t.b.get(t.c,t.a).then((function(t){return t&&e&&(t.authDomain=e),t&&n&&(t.emulatorConfig=n),Oh(t||{})}))}))}function Uh(t,e){return t.f=t.f.then(e,e),t.f}function qh(t){if(this.l=!1,Oi(this,"settings",new vf),Oi(this,"app",t),!ed(this).options||!ed(this).options.apiKey)throw new x("invalid-api-key");t=e["a"].SDK_VERSION?Jr(e["a"].SDK_VERSION):null,this.a=new Rs(ed(this).options&&ed(this).options.apiKey,D(A),t),this.R=[],this.s=[],this.O=[],this.hb=e["a"].INTERNAL.createSubscribe(I(this.zc,this)),this.X=void 0,this.bc=e["a"].INTERNAL.createSubscribe(I(this.Ac,this)),Yh(this,null),this.i=new jh(ed(this).options.apiKey+":"+ed(this).name),this.D=new Sh(ed(this).options.apiKey+":"+ed(this).name),this.$=ad(this,Jh(this)),this.h=ad(this,Zh(this)),this.ba=!1,this.ja=I(this.Zc,this),this.Ba=I(this.da,this),this.ya=I(this.mc,this),this.za=I(this.wc,this),this.Aa=I(this.xc,this),this.b=null,Hh(this),this.INTERNAL={},this.INTERNAL["delete"]=I(this.delete,this),this.INTERNAL.logFramework=I(this.Gc,this),this.u=0,Fn.call(this),Wh(this),this.J=[],this.P=null}function $h(t){dn.call(this,"languageCodeChanged"),this.h=t}function Bh(t){dn.call(this,"emulatorConfigChanged"),this.c=t}function Vh(t){dn.call(this,"frameworkChanged"),this.f=t}function Kh(t){"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),l.document&&!t&&qr().then((function(){var t=l.document.createElement("div");t.innerText="Running in emulator mode. Do not use with production credentials.",t.style.position="fixed",t.style.width="100%",t.style.backgroundColor="#ffffff",t.style.border=".1em solid #000000",t.style.color="#ff0000",t.style.bottom="0px",t.style.left="0px",t.style.margin="0px",t.style.zIndex=1e4,t.style.textAlign="center",t.classList.add("firebase-emulator-warning"),l.document.body.appendChild(t)}))}function Wh(t){Object.defineProperty(t,"lc",{get:function(){return this.la()},set:function(t){this.wa(t)},enumerable:!1}),t.aa=null,Object.defineProperty(t,"ti",{get:function(){return this.T()},set:function(t){this.yb(t)},enumerable:!1}),t.S=null,Object.defineProperty(t,"emulatorConfig",{get:function(){if(this.P){var t=ir(this.P.url);t=Ti({protocol:t.c,host:t.a,port:t.g,options:Ti({disableWarnings:this.P.ec})})}else t=null;return t},enumerable:!1})}function zh(t){return t.Oa||$e(new x("auth-domain-config-required"))}function Hh(t){var e=ed(t).options.authDomain,n=ed(t).options.apiKey;e&&ni()&&(t.Oa=t.$.then((function(){if(!t.l){if(t.b=rf(e,n,ed(t).name,t.P),Hl(t.b,t),nd(t)&&nh(nd(t)),t.m){nh(t.m);var r=t.m;r.wa(t.la()),Wf(r,t),r=t.m,Hf(r,t.J),Gf(r,t),r=t.m,Bs(r.a,t.P),zf(r,t),t.m=null}return t.b}})))}function Gh(t){if(!ni())return $e(new x("operation-not-supported-in-this-environment"));var e=zh(t).then((function(){return t.b.qa()})).then((function(t){return t?Ti(t):null}));return ad(t,e)}function Xh(t,e){var n={};return n.apiKey=ed(t).options.apiKey,n.authDomain=ed(t).options.authDomain,n.appName=ed(t).name,t.P&&(n.emulatorConfig=t.P),t.$.then((function(){return Ih(n,e,t.D,t.Ga())})).then((function(e){return nd(t)&&e.uid==nd(t).uid?(lh(nd(t),e),t.da(e)):(Yh(t,e),nh(e),t.da(e))})).then((function(){id(t)}))}function Yh(t,e){nd(t)&&(th(nd(t),t.Ba),xn(nd(t),"tokenChanged",t.ya),xn(nd(t),"userDeleted",t.za),xn(nd(t),"userInvalidated",t.Aa),Jf(nd(t))),e&&(e.S.push(t.Ba),Tn(e,"tokenChanged",t.ya),Tn(e,"userDeleted",t.za),Tn(e,"userInvalidated",t.Aa),0<t.u&&Qf(e)),Oi(t,"currentUser",e),e&&(e.wa(t.la()),Wf(e,t),Hf(e,t.J),Gf(e,t),Bs(e.a,t.P),zf(e,t))}function Qh(t){var e=xh(t.D,ed(t).options.authDomain).then((function(e){return(t.m=e)&&(e.ha=t.D),Ch(t.D)}));return ad(t,e)}function Jh(t){var e=ed(t).options.authDomain,n=Qh(t).then((function(){return Fh(t.i,e,t.P)})).then((function(e){return e?(e.ha=t.D,t.m&&(t.m.ga||null)==(e.ga||null)?e:e.reload().then((function(){return Lh(t.i,e).then((function(){return e}))})).o((function(n){return"auth/network-request-failed"==n.code?e:Mh(t.i)}))):null})).then((function(e){Yh(t,e||null)}));return ad(t,n)}function Zh(t){return t.$.then((function(){return Gh(t)})).o((function(){})).then((function(){if(!t.l)return t.ja()})).o((function(){})).then((function(){if(!t.l){t.ba=!0;var e=t.i;e.b.addListener(Rh("local"),e.a,t.ja)}}))}function td(t,e){var n=null,r=null;return ad(t,e.then((function(e){return n=ma(e),r=xo(e),Xh(t,e)}),(function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=Of(e.w(),t,I(t.kc,t))),n||e})).then((function(){return Ti({user:nd(t),credential:n,additionalUserInfo:r,operationType:"signIn"})})))}function ed(t){return t.app}
1883function nd(t){return t.currentUser}function rd(t){return nd(t)&&nd(t)._lat||null}function id(t){if(t.ba){for(var e=0;e<t.s.length;e++)t.s[e]&&t.s[e](rd(t));if(t.X!==t.getUid()&&t.O.length)for(t.X=t.getUid(),e=0;e<t.O.length;e++)t.O[e]&&t.O[e](rd(t))}}function od(t,e){t.O.push(e),ad(t,t.h.then((function(){!t.l&&Z(t.O,e)&&t.X!==t.getUid()&&(t.X=t.getUid(),e(rd(t)))})))}function ad(t,e){return t.R.push(e),e.oa((function(){tt(t.R,e)})),e}function sd(){}function ud(){this.a={},this.b=1e12}jh.prototype.xb=function(t){var e=null,n=this;return rl(t),Uh(this,(function(){return t!=n.c.F?n.b.get(n.c,n.a).then((function(r){return e=r,Ah(n,t)})).then((function(){if(n.c=Rh(t),e)return n.b.set(n.c,e,n.a)})):qe()}))},k(qh,Fn),k($h,dn),k(Bh,dn),k(Vh,dn),n=qh.prototype,n.xb=function(t){return t=this.i.xb(t),ad(this,t)},n.wa=function(t){this.aa===t||this.l||(this.aa=t,$s(this.a,this.aa),this.dispatchEvent(new $h(this.la())))},n.la=function(){return this.aa},n.fd=function(){var t=l.navigator;this.wa(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)},n.gd=function(t,e){if(!this.P){if(!/^https?:\/\//.test(t))throw new x("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");e=!!e&&!!e.disableWarnings,Kh(e),this.P={url:t,ec:e},this.settings.ib=!0,Bs(this.a,this.P),this.dispatchEvent(new Bh(this.P))}},n.Gc=function(t){this.J.push(t),Ks(this.a,e["a"].SDK_VERSION?Jr(e["a"].SDK_VERSION,this.J):null),this.dispatchEvent(new Vh(this.J))},n.Ga=function(){return rt(this.J)},n.yb=function(t){this.S===t||this.l||(this.S=t,this.a.b=this.S)},n.T=function(){return this.S},n.toJSON=function(){return{apiKey:ed(this).options.apiKey,authDomain:ed(this).options.authDomain,appName:ed(this).name,currentUser:nd(this)&&nd(this).w()}},n.Fb=function(t,e){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==e&&!!this.f;default:return!1}},n.na=function(t,e,n,r){"signInViaPopup"==t&&this.g==r&&(n&&this.C?this.C(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},n.Fa=function(t,e){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.g==e&&this.f?I(this.ic,this):null},n.ic=function(t,e,n,r){var i=this,o={requestUri:t,postBody:r,sessionId:e,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),i.$.then((function(){return td(i,hu(i.a,o))}))},n.Xc=function(t){if(!ni())return $e(new x("operation-not-supported-in-this-environment"));var n=this,r=Co(t.providerId),i=ci(),o=null;(!oi()||Vr())&&ed(this).options.authDomain&&t.isOAuthProvider&&(o=pc(ed(this).options.authDomain,ed(this).options.apiKey,ed(this).name,"signInViaPopup",t,null,i,e["a"].SDK_VERSION||null,null,null,this.T(),this.P));var a=Lr(o,r&&r.ua,r&&r.ta);return r=zh(this).then((function(e){return Ql(e,a,"signInViaPopup",t,i,!!o,n.T())})).then((function(){return new Pe((function(t,e){n.na("signInViaPopup",null,new x("cancelled-popup-request"),n.g),n.f=t,n.C=e,n.g=i,n.c=tf(n.b,n,"signInViaPopup",a,i)}))})).then((function(t){return a&&Dr(a),t?Ti(t):null})).o((function(t){throw a&&Dr(a),t})),ad(this,r)},n.Yc=function(t){if(!ni())return $e(new x("operation-not-supported-in-this-environment"));var e=this,n=zh(this).then((function(){return Dh(e.i)})).then((function(){return Zl(e.b,"signInViaRedirect",t,void 0,e.T())}));return ad(this,n)},n.qa=function(){var t=this;return Gh(this).then((function(e){return t.b&&sf(t.b.b),e})).o((function(e){throw t.b&&sf(t.b.b),e}))},n.dd=function(t){if(!t)return $e(new x("null-user"));if(this.S!=t.tenantId)return $e(new x("tenant-id-mismatch"));var e=this,n={};n.apiKey=ed(this).options.apiKey,n.authDomain=ed(this).options.authDomain,n.appName=ed(this).name;var r=Th(t,n,e.D,e.Ga());return ad(this,this.h.then((function(){if(ed(e).options.apiKey!=t.l)return r.reload()})).then((function(){return nd(e)&&t.uid==nd(e).uid?(lh(nd(e),t),e.da(t)):(Yh(e,r),nh(r),e.da(r))})).then((function(){id(e)})))},n.Ab=function(){var t=this,e=this.h.then((function(){return t.b&&sf(t.b.b),nd(t)?(Yh(t,null),Mh(t.i).then((function(){id(t)}))):qe()}));return ad(this,e)},n.Zc=function(){var t=this;return Fh(this.i,ed(this).options.authDomain).then((function(e){if(!t.l){var n;if(n=nd(t)&&e){n=nd(t).uid;var r=e.uid;n=void 0!==n&&null!==n&&""!==n&&void 0!==r&&null!==r&&""!==r&&n==r}if(n)return lh(nd(t),e),nd(t).I();(nd(t)||e)&&(Yh(t,e),e&&(nh(e),e.ha=t.D),t.b&&Hl(t.b,t),id(t))}}))},n.da=function(t){return Lh(this.i,t)},n.mc=function(){id(this),this.da(nd(this))},n.wc=function(){this.Ab()},n.xc=function(){this.Ab()},n.kc=function(t){var e=this;return this.h.then((function(){return td(e,qe(t))}))},n.zc=function(t){var e=this;this.addAuthTokenListener((function(){t.next(nd(e))}))},n.Ac=function(t){var e=this;od(this,(function(){t.next(nd(e))}))},n.Ic=function(t,e,n){var r=this;return this.ba&&Promise.resolve().then((function(){"function"===typeof t?t(nd(r)):"function"===typeof t.next&&t.next(nd(r))})),this.hb(t,e,n)},n.Hc=function(t,e,n){var r=this;return this.ba&&Promise.resolve().then((function(){r.X=r.getUid(),"function"===typeof t?t(nd(r)):"function"===typeof t.next&&t.next(nd(r))})),this.bc(t,e,n)},n.nc=function(t){var e=this,n=this.h.then((function(){return nd(e)?nd(e).I(t).then((function(t){return{accessToken:t}})):null}));return ad(this,n)},n.Tc=function(t){var e=this;return this.h.then((function(){return td(e,Xu(e.a,Vu,{token:t}))})).then((function(t){var n=t.user;return ch(n,"isAnonymous",!1),e.da(n),t}))},n.Uc=function(t,e){var n=this;return this.h.then((function(){return td(n,Xu(n.a,Ku,{email:t,password:e}))}))},n.dc=function(t,e){var n=this;return this.h.then((function(){return td(n,Xu(n.a,yu,{email:t,password:e}))}))},n.$a=function(t){var e=this;return this.h.then((function(){return td(e,t.ka(e.a))}))},n.Sc=function(t){return _i("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.$a(t)},n.zb=function(){var t=this;return this.h.then((function(){var e=nd(t);if(e&&e.isAnonymous){var n=Ti({providerId:null,isNewUser:!1});return Ti({user:e,credential:null,additionalUserInfo:n,operationType:"signIn"})}return td(t,t.a.zb()).then((function(e){var n=e.user;return ch(n,"isAnonymous",!0),t.da(n),e}))}))},n.getUid=function(){return nd(this)&&nd(this).uid||null},n.cc=function(t){this.addAuthTokenListener(t),this.u++,0<this.u&&nd(this)&&Qf(nd(this))},n.Pc=function(t){var e=this;H(this.s,(function(n){n==t&&e.u--})),0>this.u&&(this.u=0),0==this.u&&nd(this)&&Jf(nd(this)),this.removeAuthTokenListener(t)},n.addAuthTokenListener=function(t){var e=this;this.s.push(t),ad(this,this.h.then((function(){e.l||Z(e.s,t)&&t(rd(e))})))},n.removeAuthTokenListener=function(t){et(this.s,(function(e){return e==t}))},n.delete=function(){this.l=!0;for(var t=0;t<this.R.length;t++)this.R[t].cancel("app-deleted");return this.R=[],this.i&&(t=this.i,t.b.removeListener(Rh("local"),t.a,this.ja)),this.b&&(Gl(this.b,this),sf(this.b.b)),Promise.resolve()},n.hc=function(t){return ad(this,Zs(this.a,t))},n.Bc=function(t){return!!fa(t)},n.wb=function(t,e){var n=this;return ad(this,qe().then((function(){var t=new oo(e);if(!t.c)throw new x("argument-error",uo+" must be true when sending sign in link to email");return go(t)})).then((function(e){return n.a.wb(t,e)})).then((function(){})))},n.jd=function(t){return this.Ra(t).then((function(t){return t.data.email}))},n.nb=function(t,e){return ad(this,this.a.nb(t,e).then((function(){})))},n.Ra=function(t){return ad(this,this.a.Ra(t).then((function(t){return new Li(t)})))},n.jb=function(t){return ad(this,this.a.jb(t).then((function(){})))},n.vb=function(t,e){var n=this;return ad(this,qe().then((function(){return"undefined"===typeof e||bt(e)?{}:go(new oo(e))})).then((function(e){return n.a.vb(t,e)})).then((function(){})))},n.Wc=function(t,e){return ad(this,mf(this,t,e,I(this.$a,this)))},n.Vc=function(t,e){var n=this;return ad(this,qe().then((function(){var r=e||jr(),i=la(t,r);if(r=fa(r),!r)throw new x("argument-error","Invalid email link!");if(r.tenantId!==n.T())throw new x("tenant-id-mismatch");return n.$a(i)})))},sd.prototype.render=function(){},sd.prototype.reset=function(){},sd.prototype.getResponse=function(){},sd.prototype.execute=function(){};var cd=null;function ld(t,e){return(e=fd(e))&&t.a[e]||null}function fd(t){return(t="undefined"===typeof t?1e12:t)?t.toString():null}function hd(t,e){this.g=!1,this.c=e,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=ye(t);var n=this;this.i=function(){n.execute()},this.h?this.execute():Tn(this.f,"click",this.i)}function dd(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function pd(){}function vd(){}ud.prototype.render=function(t,e){return this.a[this.b.toString()]=new hd(t,e),this.b++},ud.prototype.reset=function(t){var e=ld(this,t);t=fd(t),e&&t&&(e.delete(),delete this.a[t])},ud.prototype.getResponse=function(t){return(t=ld(this,t))?t.getResponse():null},ud.prototype.execute=function(t){(t=ld(this,t))&&t.execute()},hd.prototype.getResponse=function(){return dd(this),this.b},hd.prototype.execute=function(){dd(this);var t=this;this.a||(this.a=setTimeout((function(){t.b=Hr();var e=t.c.callback,n=t.c["expired-callback"];if(e)try{e(t.b)}catch(r){}t.a=setTimeout((function(){if(t.a=null,t.b=null,n)try{n()}catch(r){}t.h&&t.execute()}),6e4)}),500))},hd.prototype.delete=function(){dd(this),this.g=!0,clearTimeout(this.a),this.a=null,xn(this.f,"click",this.i)},Oi(pd,"FACTOR_ID","phone"),vd.prototype.g=function(){return cd||(cd=new ud),qe(cd)},vd.prototype.c=function(){};var gd=null;function md(){this.b=l.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var yd=new It(Ct,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),bd=new hi(3e4,6e4);md.prototype.g=function(t){var e=this;return new Pe((function(n,r){var i=setTimeout((function(){r(new x("network-request-failed"))}),bd.get());if(!l.grecaptcha||t!==e.f&&!e.b){l[e.a]=function(){if(l.grecaptcha){e.f=t;var o=l.grecaptcha.render;
1883l.grecaptcha.render=function(t,n){return t=o(t,n),e.b++,t},clearTimeout(i),n(l.grecaptcha)}else clearTimeout(i),r(new x("internal-error"));delete l[e.a]};var o=Nt(yd,{onload:e.a,hl:t||""});qe(Ss(o)).o((function(){clearTimeout(i),r(new x("internal-error","Unable to load external reCAPTCHA dependencies!"))}))}else clearTimeout(i),n(l.grecaptcha)}))},md.prototype.c=function(){this.b--};var wd=null;function _d(t,e,n,r,i,o,a){if(Oi(this,"type","recaptcha"),this.c=this.f=null,this.D=!1,this.v=e,this.g=null,a?(gd||(gd=new vd),a=gd):(wd||(wd=new md),a=wd),this.m=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Id])throw new x("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Td],!l.document)throw new x("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!ye(e)||!this.i&&ye(e).hasChildNodes())throw new x("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new Rs(t,o||null,i||null),this.u=r||function(){return null};var s=this;this.l=[];var u=this.a[Ed];this.a[Ed]=function(t){if(Sd(s,t),"function"===typeof u)u(t);else if("string"===typeof u){var e=ti(u,l);"function"===typeof e&&e(t)}};var c=this.a[Od];this.a[Od]=function(){if(Sd(s,null),"function"===typeof c)c();else if("string"===typeof c){var t=ti(c,l);"function"===typeof t&&t()}}}var Ed="callback",Od="expired-callback",Id="sitekey",Td="size";function Sd(t,e){for(var n=0;n<t.l.length;n++)try{t.l[n](e)}catch(r){}}function kd(t,e){et(t.l,(function(t){return t==e}))}function Cd(t,e){return t.h.push(e),e.oa((function(){tt(t.h,e)})),e}function xd(t){if(t.D)throw new x("internal-error","RecaptchaVerifier instance has been destroyed.")}function jd(t,n,r){var i=!1;try{this.b=r||e["a"].app()}catch(s){throw new x("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new x("invalid-api-key");r=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().Ga()}catch(s){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}a=e["a"].SDK_VERSION?Jr(e["a"].SDK_VERSION,a):null,_d.call(this,r,t,n,(function(){try{var t=o.b.auth().la()}catch(e){t=null}return t}),a,D(A),i)}function Ad(t,e,n,r){t:{n=Array.prototype.slice.call(n);for(var i=0,o=!1,a=0;a<e.length;a++)if(e[a].optional)o=!0;else{if(o)throw new x("internal-error","Argument validator encountered a required argument after an optional argument.");i++}if(o=e.length,n.length<i||o<n.length)r="Expected "+(i==o?1==i?"1 argument":i+" arguments":i+"-"+o+" arguments")+" but got "+n.length+".";else{for(i=0;i<n.length;i++)if(o=e[i].optional&&void 0===n[i],!e[i].M(n[i])&&!o){if(e=e[i],0>i||i>=Nd.length)throw new x("internal-error","Argument validator received an unsupported number of arguments.");n=Nd[i],r=(r?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.K+".";break t}r=null}}if(r)throw new x("argument-error",t+" failed: "+r)}n=_d.prototype,n.Ia=function(){var t=this;return this.f?this.f:this.f=Cd(this,qe().then((function(){if(ri()&&!Kr())return qr();throw new x("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return t.m.g(t.u())})).then((function(e){return t.g=e,Xu(t.s,Nu,{})})).then((function(e){t.a[Id]=e.recaptchaSiteKey})).o((function(e){throw t.f=null,e})))},n.render=function(){xd(this);var t=this;return Cd(this,this.Ia().then((function(){if(null===t.c){var e=t.v;if(!t.i){var n=ye(e);e=Oe("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c})))},n.verify=function(){xd(this);var t=this;return Cd(this,this.render().then((function(e){return new Pe((function(n){var r=t.g.getResponse(e);if(r)n(r);else{var i=function(e){e&&(kd(t,i),n(e))};t.l.push(i),t.i&&t.g.execute(t.c)}}))})))},n.reset=function(){xd(this),null!==this.c&&this.g.reset(this.c)},n.clear=function(){xd(this),this.D=!0,this.m.c();for(var t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){t=ye(this.v);for(var e;e=t.firstChild;)t.removeChild(e)}}
1883,k(jd,_d);var Nd="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Pd(t,e){return{name:t||"",K:"a valid string",optional:!!e,M:function(t){return"string"===typeof t}}}function Rd(t,e){return{name:t||"",K:"a boolean",optional:!!e,M:function(t){return"boolean"===typeof t}}}function Dd(t,e){return{name:t||"",K:"a valid object",optional:!!e,M:y}}function Ld(t,e){return{name:t||"",K:"a function",optional:!!e,M:function(t){return"function"===typeof t}}}function Md(t,e){return{name:t||"",K:"null",optional:!!e,M:function(t){return null===t}}}function Fd(){return{name:"",K:"an HTML element",optional:!1,M:function(t){return!!(t&&t instanceof Element)}}}function Ud(){return{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(t){return!!(t&&t instanceof qh)}}}function qd(){return{name:"app",K:"an instance of Firebase App",optional:!0,M:function(t){return!!(t&&t instanceof e["a"].app.App)}}}function $d(t){return{name:t?t+"Credential":"credential",K:t?"a valid "+t+" credential":"a valid credential",optional:!1,M:function(e){if(!e)return!1;var n=!t||e.providerId===t;return!(!e.ka||!n)}}}function Bd(){return{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(t){return!!t&&!!t.sb}}}function Vd(){return{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}}function Kd(t,e){return y(t)&&"string"===typeof t.type&&t.type===e&&"function"===typeof t.Ha}function Wd(t){return y(t)&&"string"===typeof t.uid}function zd(){return{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!==typeof t.type||"function"!==typeof t.verify)}}}function Hd(t,e,n,r){return{name:n||"",K:t.K+" or "+e.K,optional:!!r,M:function(n){return t.M(n)||e.M(n)}}}function Gd(t,e){for(var n in e){var r=e[n].name;t[r]=Qd(r,t[n],e[n].j)}}function Xd(t,e){for(var n in e){var r=e[n].name;r!==n&&Object.defineProperty(t,r,{get:T((function(t){return this[t]}),n),set:T((function(t,e,n,r){Ad(t,[n],[r],!0),this[e]=r}),r,n,e[n].kb),enumerable:!0})}}function Yd(t,e,n,r){t[e]=Qd(e,n,r)}function Qd(t,e,n){function r(){var t=Array.prototype.slice.call(arguments);return Ad(o,n,t),e.apply(this,t)}if(!n)return e;var i,o=Jd(t);for(i in e)r[i]=e[i];for(i in e.prototype)r.prototype[i]=e.prototype[i];return r}function Jd(t){return t=t.split("."),t[t.length-1]}Gd(qh.prototype,{jb:{name:"applyActionCode",j:[Pd("code")]},Ra:{name:"checkActionCode",j:[Pd("code")]},nb:{name:"confirmPasswordReset",j:[Pd("code"),Pd("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[Pd("email"),Pd("password")]},hc:{name:"fetchSignInMethodsForEmail",j:[Pd("email")]},qa:{name:"getRedirectResult",j:[]},Bc:{name:"isSignInWithEmailLink",j:[Pd("emailLink")]},Hc:{name:"onAuthStateChanged",j:[Hd(Dd(),Ld(),"nextOrObserver"),Ld("opt_error",!0),Ld("opt_completed",!0)]},Ic:{name:"onIdTokenChanged",j:[Hd(Dd(),Ld(),"nextOrObserver"),Ld("opt_error",!0),Ld("opt_completed",!0)]},vb:{name:"sendPasswordResetEmail",j:[Pd("email"),Hd(Dd("opt_actionCodeSettings",!0),Md(null,!0),"opt_actionCodeSettings",!0)]},wb:{name:"sendSignInLinkToEmail",j:[Pd("email"),Dd("actionCodeSettings")]},xb:{name:"setPersistence",j:[Pd("persistence")]},Sc:{name:"signInAndRetrieveDataWithCredential",j:[$d()]},zb:{name:"signInAnonymously",j:[]},$a:{name:"signInWithCredential",j:[$d()]},Tc:{name:"signInWithCustomToken",j:[Pd("token")]},Uc:{name:"signInWithEmailAndPassword",j:[Pd("email"),Pd("password")]},Vc:{name:"signInWithEmailLink",j:[Pd("email"),Pd("emailLink",!0)]},Wc:{name:"signInWithPhoneNumber",j:[Pd("phoneNumber"),zd()]},Xc:{name:"signInWithPopup",j:[Vd()]},Yc:{name:"signInWithRedirect",j:[Vd()]},dd:{name:"updateCurrentUser",j:[Hd(function(t){return{name:"user",K:"an instance of Firebase User",optional:!!t,M:function(t){return!!(t&&t instanceof Kf)}}}(),Md(),"user")]},Ab:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Pd(null,!0)]},fd:{name:"useDeviceLanguage",j:[]},gd:{name:"useEmulator",j:[Pd("url"),Dd("options",!0)]},jd:{name:"verifyPasswordResetCode",j:[Pd("code")]}}),Xd(qh.prototype,{lc:{name:"languageCode",kb:Hd(Pd(),Md(),"languageCode")},ti:{name:"tenantId",kb:Hd(Pd(),Md(),"tenantId")}}),qh.Persistence=nl,qh.Persistence.LOCAL="local",qh.Persistence.SESSION="session",qh.Persistence.NONE="none",Gd(Kf.prototype,{delete:{name:"delete",j:[]},oc:{name:"getIdTokenResult",j:[Rd("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Rd("opt_forceRefresh",!0)]},Cc:{name:"linkAndRetrieveDataWithCredential",j:[$d()]},qb:{name:"linkWithCredential",j:[$d()]},Dc:{name:"linkWithPhoneNumber",j:[Pd("phoneNumber"),zd()]},Ec:{name:"linkWithPopup",j:[Vd()]},Fc:{name:"linkWithRedirect",j:[Vd()]},Lc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[$d()]},tb:{name:"reauthenticateWithCredential",j:[$d()]},Mc:{name:"reauthenticateWithPhoneNumber",j:[Pd("phoneNumber"),zd()]},Nc:{name:"reauthenticateWithPopup",j:[Vd()]},Oc:{name:"reauthenticateWithRedirect",j:[Vd()]},reload:{name:"reload",j:[]},ub:{name:"sendEmailVerification",j:[Hd(Dd("opt_actionCodeSettings",!0),Md(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Pd(null,!0)]},cd:{name:"unlink",j:[Pd("provider")]},Bb:{name:"updateEmail",j:[Pd("email")]},Cb:{name:"updatePassword",j:[Pd("password")]},ed:{name:"updatePhoneNumber",j:[$d("phone")]},Db:{name:"updateProfile",j:[Dd("profile")]},Eb:{name:"verifyBeforeUpdateEmail",j:[Pd("email"),Hd(Dd("opt_actionCodeSettings",!0),Md(null,!0),"opt_actionCodeSettings",!0)]}}),Gd(ud.prototype,{execute:{name:"execute"},render:{name:"render"}
1883,reset:{name:"reset"},getResponse:{name:"getResponse"}}),Gd(sd.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Gd(Pe.prototype,{oa:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),Xd(vf.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",kb:Rd("appVerificationDisabledForTesting")}}),Gd(gf.prototype,{confirm:{name:"confirm",j:[Pd("verificationCode")]}}),Yd(Bo,"fromJSON",(function(t){t="string"===typeof t?JSON.parse(t):t;for(var e,n=[Xo,ua,da,zo],r=0;r<n.length;r++)if(e=n[r](t))return e;return null}),[Hd(Pd(),Dd(),"json")]),Yd(ca,"credential",(function(t,e){return new sa(t,e)}),[Pd("email"),Pd("password")]),Gd(sa.prototype,{w:{name:"toJSON",j:[Pd(null,!0)]}}),Gd(Zo.prototype,{Ca:{name:"addScope",j:[Pd("scope")]},Ka:{name:"setCustomParameters",j:[Dd("customOAuthParameters")]}}),Yd(Zo,"credential",ta,[Hd(Pd(),Dd(),"token")]),Yd(ca,"credentialWithLink",la,[Pd("email"),Pd("emailLink")]),Gd(ea.prototype,{Ca:{name:"addScope",j:[Pd("scope")]},Ka:{name:"setCustomParameters",j:[Dd("customOAuthParameters")]}}),Yd(ea,"credential",na,[Hd(Pd(),Dd(),"token")]),Gd(ra.prototype,{Ca:{name:"addScope",j:[Pd("scope")]},Ka:{name:"setCustomParameters",j:[Dd("customOAuthParameters")]}}),Yd(ra,"credential",ia,[Hd(Pd(),Hd(Dd(),Md()),"idToken"),Hd(Pd(),Md(),"accessToken",!0)]),Gd(oa.prototype,{Ka:{name:"setCustomParameters",j:[Dd("customOAuthParameters")]}}),Yd(oa,"credential",aa,[Hd(Pd(),Dd(),"token"),Pd("secret",!0)]),Gd(Jo.prototype,{Ca:{name:"addScope",j:[Pd("scope")]},credential:{name:"credential",j:[Hd(Pd(),Hd(Dd(),Md()),"optionsOrIdToken"),Hd(Pd(),Md(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[Dd("customOAuthParameters")]}}),Gd(Ho.prototype,{w:{name:"toJSON",j:[Pd(null,!0)]}}),Gd(Ko.prototype,{w:{name:"toJSON",j:[Pd(null,!0)]}}),Yd(va,"credential",ga,[Pd("verificationId"),Pd("verificationCode")]),Gd(va.prototype,{fb:{name:"verifyPhoneNumber",j:[Hd(Pd(),function(t,e){return{name:t||"phoneInfoOptions",K:"valid phone info options",optional:!!e,M:function(t){return!!t&&(t.session&&t.phoneNumber?Kd(t.session,qo)&&"string"===typeof t.phoneNumber:t.session&&t.multiFactorHint?Kd(t.session,$o)&&Wd(t.multiFactorHint):t.session&&t.multiFactorUid?Kd(t.session,$o)&&"string"===typeof t.multiFactorUid:!!t.phoneNumber&&"string"===typeof t.phoneNumber)}}}(),"phoneInfoOptions"),zd()]}}),Gd(ha.prototype,{w:{name:"toJSON",j:[Pd(null,!0)]}}),Gd(x.prototype,{toJSON:{name:"toJSON",j:[Pd(null,!0)]}}),Gd(Sa.prototype,{toJSON:{name:"toJSON",j:[Pd(null,!0)]}}),Gd(Ta.prototype,{toJSON:{name:"toJSON",j:[Pd(null,!0)]}}),Gd(Ef.prototype,{toJSON:{name:"toJSON",j:[Pd(null,!0)]}}),Gd(bf.prototype,{Rc:{name:"resolveSignIn",j:[Bd()]}}),Gd(jf.prototype,{Rb:{name:"getSession",j:[]},fc:{name:"enroll",j:[Bd(),Pd("displayName",!0)]},bd:{name:"unenroll",j:[Hd({name:"multiFactorInfo",K:"a valid multiFactorInfo",optional:!1,M:Wd},Pd(),"multiFactorInfoIdentifier")]}}),Gd(jd.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Yd(Yi,"parseLink",io,[Pd("link")]),Yd(pd,"assertion",(function(t){return new Cf(t)}),[$d("phone")]),function(){if("undefined"===typeof e["a"]||!e["a"].INTERNAL||!e["a"].INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:Fi,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:Mi,VERIFY_AND_CHANGE_EMAIL:Ui,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:qh,AuthCredential:Bo,Error:x};Yd(t,"EmailAuthProvider",ca,[]),Yd(t,"FacebookAuthProvider",Zo,[]),Yd(t,"GithubAuthProvider",ea,[]),Yd(t,"GoogleAuthProvider",ra,[]),Yd(t,"TwitterAuthProvider",oa,[]),Yd(t,"OAuthProvider",Jo,[Pd("providerId")]),Yd(t,"SAMLAuthProvider",Qo,[Pd("providerId")]),Yd(t,"PhoneAuthProvider",va,[Ud()]),Yd(t,"RecaptchaVerifier",jd,[Hd(Pd(),Fd(),"recaptchaContainer"),Dd("recaptchaParameters",!0),qd()]),Yd(t,"ActionCodeURL",Yi,[]),Yd(t,"PhoneMultiFactorGenerator",pd,[]),e["a"].INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return t=t.getProvider("app").getImmediate(),new qh(t)},multipleInstances:!1,serviceProps:t,instantiationMode:"LAZY",type:"PUBLIC"}),e["a"].INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(t){return t=t.getProvider("auth").getImmediate(),{getUid:I(t.getUid,t),getToken:I(t.nc,t),addAuthTokenListener:I(t.cc,t),removeAuthTokenListener:I(t.Pc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),e["a"].registerVersion("@firebase/auth","0.16.5"),e["a"].INTERNAL.extendNamespace({User:Kf})}()}).apply("undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})}).call(this,n("c8ba"))},b85c:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");var r=n("06c5");function i(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
1883if(!n){if(Array.isArray(t)||(n=Object(r["a"])(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}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 a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(u)throw a}}}}},bc3a:function(t,e,n){t.exports=n("cee4")},bec5:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return f}));var r=n("6c02"),i=n("7a23");const o=()=>{const t=[],e={},n=t=>{switch(t.routerAction){case"replace":i(t);break;case"pop":o(t);break;default:a(t);break}"root"===t.routerDirection&&(s(),a(t))},r=n=>{const r=t.findIndex(t=>t.id===n.id);r>-1&&t.splice(r,1,n);const i=e[n.tab||""];if(i){const t=i.findIndex(t=>t.id===n.id);t>-1?i.splice(t,1,n):i.push(n)}else n.tab&&(e[n.tab]=[n])},i=e=>{const n=u(e.tab);n&&n.pop(),t.pop(),a(e)},o=e=>{const n=u(e.tab);let r;if(n){r=n[n.length-1];while(r&&r.id!==e.id)n.pop(),r=n[n.length-1];n.pop(),n.push(e)}r=t[t.length-1];while(r&&r.id!==e.id)t.pop(),r=t[t.length-1];t.pop(),t.push(e)},a=e=>{const n=u(e.tab);n&&(n[n.length-1]&&n[n.length-1].id===e.id&&n.pop(),n.push(e)),t.push(e)},s=()=>{t.length=0,Object.keys(e).forEach(t=>{e[t]=[]})},u=t=>{let n;return t&&(n=e[t],n||(n=e[t]=[])),n},c=()=>t[t.length-2]||l(),l=()=>t[t.length-1],f=(e=1)=>t.length>e,h=t=>{const e=u(t);if(e)return e[0]},d=t=>{const e=u(t);if(e)return e[e.length-1]},p=e=>{const n=u(e.tab);if(n)for(let t=n.length-2;t>=0;t--){const r=n[t];if(r&&r.pathname===e.pushedByRoute)return r}for(let r=t.length-2;r>=0;r--){const n=t[r];if(n&&n.pathname===e.pushedByRoute)return n}};return{current:l,previous:c,add:n,canGoBack:f,update:r,getFirstRouteInfoForTab:h,getCurrentRouteInfoForTab:d,findLastLocation:p}},a={main:0},s=(t="main")=>{var e;const n=(null!==(e=a[t])&&void 0!==e?e:0)+1;return a[t]=n,n.toString()},u=(t,e)=>{let n={direction:void 0,action:void 0};e.afterEach((t,e,r)=>{if(r)return;const{direction:i,action:o}=n,a=history.state.replaced?"replace":void 0;d(t,o||a,i),n={direction:void 0,action:void 0}});const i=o();let a,u,c,l=[];"undefined"!==typeof document&&document.addEventListener("ionBackButton",e=>{e.detail.register(0,e=>{t.history.go(-1),e()})}),t.history.listen((t,e,r)=>{n={action:r.type,direction:""===r.direction?"forward":r.direction}});const f=(t,n)=>{const o=i.current();if(o&&o.pushedByRoute){const a=i.findLastLocation(o);a?(u=Object.assign(Object.assign({},a),{routerAction:"pop",routerDirection:"back",routerAnimation:n||o.routerAnimation}),o.lastPathname===o.pushedByRoute||a.pathname===o.pushedByRoute&&""===o.tab&&""===a.tab?e.back():e.replace({path:a.pathname,query:Object(r["f"])(a.search)})):h(t,"pop","back")}else h(t,"pop","back")},h=(t,n,r,i,o)=>{u={routerAction:n,routerDirection:r,routerAnimation:i,tab:o},"push"===n?e.push(t):e.replace(t)},d=(t,e,n)=>{let r;r=u&&"replace"===u.routerAction?i.previous():i.current(),r||(r={pathname:"",search:""});const o=r.pathname+r.search;if(o!==t.fullPath){if(!u){if("replace"===e)u={routerAction:"replace",routerDirection:"none",tab:c};else if("pop"===e){const t=i.current();if(t&&t.pushedByRoute){const e=i.findLastLocation(t);u=Object.assign(Object.assign({},e),{routerAction:"pop",routerDirection:"back"})}else u={routerAction:"pop",routerDirection:"none",tab:c}}u||(u={routerAction:"push",routerDirection:n||"forward",tab:c})}let o;if(null===u||void 0===u?void 0:u.id)o=Object.assign(Object.assign({},u),{lastPathname:r.pathname}),i.add(o);else{const e="push"===u.routerAction&&"forward"===u.routerDirection;if(o=Object.assign(Object.assign({id:s("routeInfo")},u),{lastPathname:r.pathname,pathname:t.path,search:t.fullPath&&t.fullPath.split("?")[1]||"",params:t.params&&t.params,prevRouteLastPathname:r.lastPathname}),e)o.tab=r.tab,o.pushedByRoute=""!==r.pathname?r.pathname:void 0;else if("pop"===o.routerAction){const t=i.findLastLocation(o);o.pushedByRoute=null===t||void 0===t?void 0:t.pushedByRoute}else if("push"===o.routerAction&&o.tab!==r.tab){const t=i.getCurrentRouteInfoForTab(o.tab);o.pushedByRoute=null===t||void 0===t?void 0:t.pushedByRoute}else if("replace"===o.routerAction){const t=i.current(),e=null===t||void 0===t?void 0:t.pushedByRoute,n=void 0!==e&&e!==o.pathname?e:o.pushedByRoute;o.lastPathname=(null===t||void 0===t?void 0:t.pathname)||o.lastPathname,o.pushedByRoute=n,o.routerDirection=(null===t||void 0===t?void 0:t.routerDirection)||o.routerDirection,o.routerAnimation=(null===t||void 0===t?void 0:t.routerAnimation)||o.routerAnimation,o.prevRouteLastPathname=null===t||void 0===t?void 0:t.lastPathname}i.add(o)}a=o}u=void 0,l.forEach(t=>t(a))},p=()=>a,v=(t=1)=>i.canGoBack(t),g=t=>{const{routerAnimation:n,routerDirection:r,routerLink:i}=t;u={routerAnimation:n,routerDirection:r||"forward",routerAction:"push"},e.push(i)}
1883,m=(t,n)=>{const o=i.getFirstRouteInfoForTab(t);if(o){const t=Object.assign({},o);t.pathname=n,u=Object.assign(Object.assign({},t),{routerAction:"pop",routerDirection:"back"}),e.push({path:t.pathname,query:Object(r["f"])(t.search)})}},y=(t,n)=>{if(!n)return;const o=i.getCurrentRouteInfoForTab(t),[a]=n.split("?");o?(u=Object.assign(Object.assign({},u),{routerAction:"push",routerDirection:"none",tab:t}),o.pathname===a?e.push({path:o.pathname,query:Object(r["f"])(o.search)}):e.push({path:a,query:Object(r["f"])(o.search)})):h(a,"push","none",void 0,t)},b=t=>{c=t;const e=Object.assign({},i.current());e.tab!==t&&(e.tab=t,i.update(e))},w=t=>{l.push(t)};return{handleNavigateBack:f,handleSetCurrentTab:b,getCurrentRouteInfo:p,canGoBack:v,navigate:g,resetTab:m,changeTab:y,registerHistoryChangeListener:w}},c=t=>{let e={};const n=t=>{delete e[t]},r=t=>e[t],o=(t,e)=>{t.ionPageElement=e,t.ionRoute=!0},a=(t,e,n=!1)=>{let r=f(t.pathname,e,!1,n);return r&&r.params!==t.params&&(delete r.vueComponentData.propsFunctionResult,r.params=t.params),r},u=(t,e,n=!0,r=!1)=>f(t.lastPathname,e,n,r),c=(t,e,n=!1)=>f(t,e,!1,n),l=(t,e)=>e.find(e=>{if(e.pathname===t)return e}),f=(n,r,i=!1,o=!1)=>{const a=e=>{if(i&&!e.ionRoute||""===n)return!1;const r=t.resolve(n);let a;return a=o?r.matched.find(t=>t===e.matchedRoute&&(n===e.pathname||t.path.includes(":"))):r.matched.find(t=>t===e.matchedRoute),a?e:void 0};if(r){const i=e[r];if(!i)return;const o=t?i.find(a):l(n,i);if(o)return o}else for(let t in e){const r=e[t],i=l(n,r);if(i)return i}},h=(t,e,n,r,o)=>({id:s("viewItem"),pathname:r.pathname,outletId:t,matchedRoute:n,ionPageElement:o,vueComponent:e,vueComponentRef:Object(i["G"])(),ionRoute:!1,mount:!1,exact:r.pathname===n.path,params:r.params,vueComponentData:{}}),d=t=>{const{outletId:n}=t;e[n]?e[n].push(t):e[n]=[t]},p=(t,n)=>{if(!n)throw Error("outletId required");const r=e[n];r&&(e[n]=r.filter(e=>e.id!==t.id))},v=t=>{const n=e[t];if(n){const n=e[t].filter(t=>t.mount);return n}return[]};return{clear:n,findViewItemByRouteInfo:a,findLeavingViewItemByRouteInfo:u,findViewItemByPathname:c,createViewItem:h,getChildrenToRender:v,add:d,remove:p,registerIonPage:o,getViewStack:r}},l=t=>{const e=Object.assign({},t);delete e.tabsPrefix;const n=Object(r["b"])(e),i=u(t,n),o=c(n),a=n.install.bind(n);n.install=t=>{t.provide("navManager",i),t.provide("viewStacks",o),a(t)};const s=n.isReady.bind(n);return n.isReady=()=>s(),n},f=t=>Object(r["d"])(t)},bfa9:function(t,e,n){"use strict";var r=n("3c4e"),i=n.n(r);let o;o=class{get length(){return Object.keys(this).length}key(t){return Object.keys(this)[t]}setItem(t,e){this[t]=e.toString()}getItem(t){return this[t]}removeItem(t){delete this[t]}clear(){for(let t of Object.keys(this))delete this[t]}};class a{constructor(){this._queue=[],this._flushing=!1}enqueue(t){return this._queue.push(t),this._flushing?Promise.resolve():this.flushQueue()}flushQueue(){this._flushing=!0;const t=()=>{const e=this._queue.shift();if(e)return e.then(t);this._flushing=!1};return Promise.resolve(t())}}const s={replaceArrays:{arrayMerge:(t,e,n)=>e},concatArrays:{arrayMerge:(t,e,n)=>t.concat(...e)}};function u(t,e,n){return i()(t,e,s[n])}let c=JSON;class l{constructor(t){this._mutex=new a,this.subscriber=t=>e=>t.subscribe(e),"undefined"===typeof t&&(t={}),this.key=null!=t.key?t.key:"vuex",this.subscribed=!1,this.supportCircular=t.supportCircular||!1,this.supportCircular&&(c=n("7503")),this.mergeOption=t.mergeOption||"replaceArrays";let e=!0;try{window.localStorage.getItem("")}catch(r){e=!1}if(t.storage)this.storage=t.storage;else if(e)this.storage=window.localStorage;else{if(!o)throw new Error("Neither 'window' is defined, nor 'MockStorage' is available");this.storage=new o}this.reducer=null!=t.reducer?t.reducer:null==t.modules?t=>t:e=>t.modules.reduce((t,n)=>u(t,{[n]:e[n]},this.mergeOption),{}),this.filter=t.filter||(t=>!0),this.strictMode=t.strictMode||!1,this.RESTORE_MUTATION=function(t,e){const n=u(t,e||{},this.mergeOption);for(const r of Object.keys(n))this._vm.$set(t,r,n[r])},this.asyncStorage=t.asyncStorage||!1,this.asyncStorage?(this.restoreState=null!=t.restoreState?t.restoreState:(t,e)=>e.getItem(t).then(t=>"string"===typeof t?this.supportCircular?c.parse(t||"{}"):JSON.parse(t||"{}"):t||{}),this.saveState=null!=t.saveState?t.saveState:(t,e,n)=>n.setItem(t,this.asyncStorage?u({},e||{},this.mergeOption):this.supportCircular?c.stringify(e):JSON.stringify(e)),this.plugin=t=>{t.restored=this.restoreState(this.key,this.storage).then(e=>{this.strictMode?t.commit("RESTORE_MUTATION",e):t.replaceState(u(t.state,e||{},this.mergeOption)),this.subscriber(t)((t,e)=>{this.filter(t)&&this._mutex.enqueue(this.saveState(this.key,this.reducer(e),this.storage))}),this.subscribed=!0})}):(this.restoreState=null!=t.restoreState?t.restoreState:(t,e)=>{const n=e.getItem(t);return"string"===typeof n?this.supportCircular?c.parse(n||"{}"):JSON.parse(n||"{}"):n||{}},this.saveState=null!=t.saveState?t.saveState:(t,e,n)=>n.setItem(t,this.supportCircular?c.stringify(e):JSON.stringify(e)),this.plugin=t=>{const e=this.restoreState(this.key,this.storage);this.strictMode?t.commit("RESTORE_MUTATION",e):t.replaceState(u(t.state,e||{},this.mergeOption)),this.subscriber(t)((t,e)=>{this.filter(t)&&this.saveState(this.key,this.reducer(e),this.storage)}),this.subscribed=!0})}}e["a"]=l},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},c345:function(t,e,n){"use strict";var r=n("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c401:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e){t.exports=!1},c532:function(t,e,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return"undefined"===typeof t}
vendor: 2,027 bytes, line 1883
1883function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function u(t){return"[object ArrayBuffer]"===i.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function l(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function f(t){return"string"===typeof t}function h(t){return"number"===typeof t}function d(t){return null!==t&&"object"===typeof t}function p(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function v(t){return"[object Date]"===i.call(t)}function g(t){return"[object File]"===i.call(t)}function m(t){return"[object Blob]"===i.call(t)}function y(t){return"[object Function]"===i.call(t)}function b(t){return d(t)&&y(t.pipe)}function w(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function _(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function E(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function O(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function I(){var t={};function e(e,n){p(t[n])&&p(e)?t[n]=I(t[n],e):p(e)?t[n]=I({},e):o(e)?t[n]=e.slice():t[n]=e}for(var n=0,r=arguments.length;n<r;n++)O(arguments[n],e);return t}function T(t,e,n){return O(e,(function(e,i){t[i]=n&&"function"===typeof e?r(e,n):e})),t}function S(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:u,isBuffer:s,isFormData:c,isArrayBufferView:l,isString:f,isNumber:h,isObject:d,isPlainObject:p,isUndefined:a,isDate:v,isFile:g,isBlob:m,isFunction:y,isStream:b,
1883isURLSearchParams:w,isStandardBrowserEnv:E,forEach:O,merge:I,extend:T,trim:_,stripBOM:S}},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c7b2:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return Ir})),n.d(e,"b",(function(){return Sr})),n.d(e,"c",(function(){return Tr})),n.d(e,"d",(function(){return kr})),n.d(e,"e",(function(){return Cr})),n.d(e,"f",(function(){return xr})),n.d(e,"g",(function(){return Er})),n.d(e,"h",(function(){return Or}));
1884/*! *****************************************************************************
1885Copyright (c) Microsoft Corporation.
1886
1887Permission to use, copy, modify, and/or distribute this software for any
1888purpose with or without fee is hereby granted.
1889
1890THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1891REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1892AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1893INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1894LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1895OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1896PERFORMANCE OF THIS SOFTWARE.
1897***************************************************************************** */
1898var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var a,s="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},u=u||{},c=s||self;function l(){}function f(t){var e=typeof t;return e="object"!=e?e:t?Array.isArray(t)?"array":e:"null","array"==e||"object"==e&&"number"==typeof t.length}function h(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function d(t){return Object.prototype.hasOwnProperty.call(t,p)&&t[p]||(t[p]=++v)}var p="closure_uid_"+(1e9*Math.random()>>>0),v=0;function g(t,e,n){return t.call.apply(t.bind,arguments)}function m(t,e,n){if(!t)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),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function y(t,e,n){return y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g:m,y.apply(null,arguments)}function b(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function w(){return Date.now()}function _(t,e){function n(){}n.prototype=e.prototype,t.X=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.Kb=function(t,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return e.prototype[n].apply(t,i)}}function E(){this.j=this.j,this.i=this.i}var O=0;E.prototype.j=!1,E.prototype.ja=function(){if(!this.j&&(this.j=!0,this.G(),0!=O))d(this)},E.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var I=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"===typeof t)return"string"!==typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},T=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i="string"===typeof t?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)};function S(t){t:{for(var e=Un,n=t.length,r="string"===typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t)){e=i;break t}e=-1}return 0>e?null:"string"===typeof t?t.charAt(e):t[e]}function k(t){return Array.prototype.concat.apply([],arguments)}function C(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}function x(t){return/^[\s\xa0]*$/.test(t)}var j,A=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function N(t,e){return-1!=t.indexOf(e)}function P(t,e){return t<e?-1:t>e?1:0}t:{var R=c.navigator;if(R){var D=R.userAgent;if(D){j=D;break t}}j=""}function L(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function M(t){var e={};for(var n in t)e[n]=t[n];return e}var F="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1898ing toString valueOf".split(" ");function U(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i],r)t[n]=r[n];for(var o=0;o<F.length;o++)n=F[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function q(t){return q[" "](t),t}function $(t,e){var n=tt;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}q[" "]=l;var B,V=N(j,"Opera"),K=N(j,"Trident")||N(j,"MSIE"),W=N(j,"Edge"),z=W||K,H=N(j,"Gecko")&&!(N(j.toLowerCase(),"webkit")&&!N(j,"Edge"))&&!(N(j,"Trident")||N(j,"MSIE"))&&!N(j,"Edge"),G=N(j.toLowerCase(),"webkit")&&!N(j,"Edge");function X(){var t=c.document;return t?t.documentMode:void 0}t:{var Y="",Q=function(){var t=j;return H?/rv:([^\);]+)(\)|;)/.exec(t):W?/Edge\/([\d\.]+)/.exec(t):K?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):G?/WebKit\/(\S+)/.exec(t):V?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(Q&&(Y=Q?Q[1]:""),K){var J=X();if(null!=J&&J>parseFloat(Y)){B=String(J);break t}}B=Y}var Z,tt={};function et(t){return $(t,(function(){for(var e=0,n=A(String(B)).split("."),r=A(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=P(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||P(0==a[2].length,0==s[2].length)||P(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e}))}if(c.document&&K){var nt=X();Z=nt||(parseInt(B,10)||void 0)}else Z=void 0;var rt=Z,it=!K||9<=Number(rt),ot=K&&!et("9"),at=function(){if(!c.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{c.addEventListener("test",l,e),c.removeEventListener("test",l,e)}catch(n){}return t}();function st(t,e){this.type=t,this.a=this.target=e,this.defaultPrevented=!1}function ut(t,e){if(st.call(this,t?t.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.a=e,e=t.relatedTarget){if(H){t:{try{q(e.nodeName);var i=!0;break t}catch(o){}i=!1}i||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,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!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"===typeof t.pointerType?t.pointerType:ct[t.pointerType]||"",this.c=t,t.defaultPrevented&&this.b()}}st.prototype.b=function(){this.defaultPrevented=!0},_(ut,st);var ct={2:"touch",3:"pen",4:"mouse"};ut.prototype.b=function(){ut.X.b.call(this);var t=this.c;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,ot)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var lt="closure_listenable_"+(1e6*Math.random()|0),ft=0;function ht(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.ca=i,this.key=++ft,this.Y=this.Z=!1}function dt(t){t.Y=!0,t.listener=null,t.proxy=null,t.src=null,t.ca=null}function pt(t){this.src=t,this.a={},this.b=0}function vt(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=I(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(dt(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function gt(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.Y&&o.listener==e&&o.capture==!!n&&o.ca==r)return i}return-1}pt.prototype.add=function(t,e,n,r,i){var o=t.toString();t=this.a[o],t||(t=this.a[o]=[],this.b++);var a=gt(t,e,r,i);return-1<a?(e=t[a],n||(e.Z=!1)):(e=new ht(e,this.src,o,!!r,i),e.Z=n,t.push(e)),e};var mt="closure_lm_"+(1e6*Math.random()|0),yt={};function bt(t,e,n,r,i){if(r&&r.once)return Et(t,e,n,r,i);if(Array.isArray(e)){for(var o=0;o<e.length;o++)bt(t,e[o],n,r,i);return null}return n=jt(n),t&&t[lt]?t.va(e,n,h(r)?!!r.capture:!!r,i):wt(t,e,n,!1,r,i)}function wt(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=h(i)?!!i.capture:!!i;if(a&&!it)return null;var s=Ct(t);if(s||(t[mt]=s=new pt(t)),n=s.add(e,n,r,a,o),n.proxy)return n;if(r=_t(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)at||(i=a),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(Tt(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function _t(){var t=kt,e=it?function(n){return t.call(e.src,e.listener,n)}:function(n){if(n=t.call(e.src,e.listener,n),!n)return n};return e}function Et(t,e,n,r,i){if(Array.isArray(e)){for(var o=0;o<e.length;o++)Et(t,e[o],n,r,i);return null}return n=jt(n),t&&t[lt]?t.wa(e,n,h(r)?!!r.capture:!!r,i):wt(t,e,n,!0,r,i)}function Ot(t,e,n,r,i){if(Array.isArray(e))for(var o=0;o<e.length;o++)Ot(t,e[o],n,r,i);else r=h(r)?!!r.capture:!!r,n=jt(n),t&&t[lt]?(t=t.c,e=String(e).toString(),e in t.a&&(o=t.a[e],n=gt(o,n,r,i),-1<n&&(dt(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--)))):t&&(t=Ct(t))&&(e=t.a[e.toString()],t=-1,e&&(t=gt(e,n,r,i)),(n=-1<t?e[t]:null)&&It(n))}function It(t){if("number"!==typeof t&&t&&!t.Y){var e=t.src;if(e&&e[lt])vt(e.c,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(Tt(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=Ct(e))?(vt(n,t),0==n.b&&(n.src=null,e[mt]=null)):dt(t)}}}function Tt(t){return t in yt?yt[t]:yt[t]="on"+t}function St(t,e){var n=t.listener,r=t.ca||t.src;return t.Z&&It(t),n.call(r,e)}function kt(t,e){if(t.Y)return!0;
1898if(!it){if(!e)t:{e=["window","event"];for(var n=c,r=0;r<e.length;r++)if(n=n[e[r]],null==n){e=null;break t}e=n}return e=new ut(e,this),St(t,e)}return St(t,new ut(e,this))}function Ct(t){return t=t[mt],t instanceof pt?t:null}var xt="__closure_events_fn_"+(1e9*Math.random()>>>0);function jt(t){return"function"===typeof t?t:(t[xt]||(t[xt]=function(e){return t.handleEvent(e)}),t[xt])}function At(){E.call(this),this.c=new pt(this),this.J=this,this.C=null}function Nt(t,e){var n,r=t.C;if(r)for(n=[];r;r=r.C)n.push(r);if(t=t.J,r=e.type||e,"string"===typeof e)e=new st(e,t);else if(e instanceof st)e.target=e.target||t;else{var i=e;e=new st(r,t),U(e,i)}if(i=!0,n)for(var o=n.length-1;0<=o;o--){var a=e.a=n[o];i=Pt(a,r,!0,e)&&i}if(a=e.a=t,i=Pt(a,r,!0,e)&&i,i=Pt(a,r,!1,e)&&i,n)for(o=0;o<n.length;o++)a=e.a=n[o],i=Pt(a,r,!1,e)&&i}function Pt(t,e,n,r){if(e=t.c.a[String(e)],!e)return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.Y&&a.capture==n){var s=a.listener,u=a.ca||a.src;a.Z&&vt(t.c,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}_(At,E),At.prototype[lt]=!0,a=At.prototype,a.addEventListener=function(t,e,n,r){bt(this,t,e,n,r)},a.removeEventListener=function(t,e,n,r){Ot(this,t,e,n,r)},a.G=function(){if(At.X.G.call(this),this.c){var t,e=this.c;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)dt(n[r]);delete e.a[t],e.b--}}this.C=null},a.va=function(t,e,n,r){return this.c.add(String(t),e,!1,n,r)},a.wa=function(t,e,n,r){return this.c.add(String(t),e,!0,n,r)};var Rt=c.JSON.stringify;function Dt(){this.b=this.a=null}var Lt,Mt=new(function(){function t(t,e){this.c=t,this.f=e,this.b=0,this.a=null}return t.prototype.get=function(){var t;return 0<this.b?(this.b--,t=this.a,this.a=t.next,t.next=null):t=this.c(),t},t}())((function(){return new Ut}),(function(t){t.reset()}));function Ft(){var t=Kt,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function Ut(){this.next=this.b=this.a=null}function qt(t){c.setTimeout((function(){throw t}),0)}function $t(t,e){Lt||Bt(),Vt||(Lt(),Vt=!0),Kt.add(t,e)}function Bt(){var t=c.Promise.resolve(void 0);Lt=function(){t.then(Wt)}}Dt.prototype.add=function(t,e){var n=Mt.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},Ut.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},Ut.prototype.reset=function(){this.next=this.b=this.a=null};var Vt=!1,Kt=new Dt;function Wt(){for(var t;t=Ft();){try{t.a.call(t.b)}catch(n){qt(n)}var e=Mt;e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}Vt=!1}function zt(t,e){At.call(this),this.b=t||1,this.a=e||c,this.f=y(this.Za,this),this.g=w()}function Ht(t){t.aa=!1,t.M&&(t.a.clearTimeout(t.M),t.M=null)}function Gt(t,e,n){if("function"===typeof t)n&&(t=y(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=y(t.handleEvent,t)}return 2147483647<Number(e)?-1:c.setTimeout(t,e||0)}function Xt(t){t.a=Gt((function(){t.a=null,t.c&&(t.c=!1,Xt(t))}),t.h);var e=t.b;t.b=null,t.g.apply(null,e)}_(zt,At),a=zt.prototype,a.aa=!1,a.M=null,a.Za=function(){if(this.aa){var t=w()-this.g;0<t&&t<.8*this.b?this.M=this.a.setTimeout(this.f,this.b-t):(this.M&&(this.a.clearTimeout(this.M),this.M=null),Nt(this,"tick"),this.aa&&(Ht(this),this.start()))}},a.start=function(){this.aa=!0,this.M||(this.M=this.a.setTimeout(this.f,this.b),this.g=w())},a.G=function(){zt.X.G.call(this),Ht(this),delete this.a};var Yt=function(t){function e(e,n){var r=t.call(this)||this;return r.g=e,r.h=n,r.b=null,r.c=!1,r.a=null,r}return i(e,t),e.prototype.f=function(t){this.b=arguments,this.a?this.c=!0:Xt(this)},e.prototype.G=function(){t.prototype.G.call(this),this.a&&(c.clearTimeout(this.a),this.a=null,this.c=!1,this.b=null)},e}(E);function Qt(t){E.call(this),this.b=t,this.a={}}_(Qt,E);var Jt=[];function Zt(t,e,n,r){Array.isArray(n)||(n&&(Jt[0]=n.toString()),n=Jt);for(var i=0;i<n.length;i++){var o=bt(e,n[i],r||t.handleEvent,!1,t.b||t);if(!o)break;t.a[o.key]=o}}function te(t){L(t.a,(function(t,e){this.a.hasOwnProperty(e)&&It(t)}),t),t.a={}}function ee(){this.a=!0}function ne(t,e,n,r,i,o){t.info((function(){if(t.a)if(o)for(var a="",s=o.split("&"),u=0;u<s.length;u++){var c=s[u].split("=");if(1<c.length){var l=c[0];c=c[1];var f=l.split("_");a=2<=f.length&&"type"==f[1]?a+(l+"=")+c+"&":a+(l+"=redacted&")}}else a=null;else a=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+e+"\n"+n+"\n"+a}))}function re(t,e,n,r,i,o,a){t.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+e+"\n"+n+"\n"+o+" "+a}))}function ie(t,e,n,r){t.info((function(){return"XMLHTTP TEXT ("+e+"): "+ae(t,n)+(r?" "+r:"")}))}function oe(t,e){t.info((function(){return"TIMEOUT: "+e}))}function ae(t,e){if(!t.a)return e;if(!e)return null;try{var n=JSON.parse(e);if(n)for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var r=n[t];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 Rt(n)}catch(s){return e}}Qt.prototype.G=function(){Qt.X.G.call(this),te(this)},Qt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},ee.prototype.info=function(){};var se={},ue=null;function ce(){return ue=ue||new At}function le(t){st.call(this,se.Fa,t)}function fe(t){var e=ce();Nt(e,new le(e,t))}function he(t,e){st.call(this,se.STAT_EVENT,t),this.stat=e}function de(t){var e=ce();Nt(e,new he(e,t))}function pe(t){st.call(this,se.Ga,t)}function ve(t,e){if("function"!==typeof t)throw Error("Fn must not be null and must be a function");return c.setTimeout((function(){t()}),e)}se.Fa="serverreachability",_(le,st),se.STAT_EVENT="statevent",_(he,st),se.Ga="timingevent",_(pe,st);var ge={NO_ERROR:0,$a:1,nb:2,mb:3,hb:4,lb:5,ob:6,Da:7,TIMEOUT:8,rb:9},me={fb:"complete",Bb:"success",Ea:"error",Da:"abort",tb:"ready",ub:"readystatechange",TIMEOUT:"timeout",pb:"incrementaldata",sb:"progress",ib:"downloadprogress",Jb:"uploadprogress"};function ye(){}function be(t){var e;return(e=t.a)||(e=t.a={}),e}function we(){}ye.prototype.a=null;var _e,Ee={OPEN:"a",eb:"b",Ea:"c",qb:"d"};function Oe(){st.call(this,"d")}function Ie(){st.call(this,"c")}function Te(){}function Se(t,e,n,r){this.g=t,this.c=e,this.f=n,this.S=r||1,this.J=new Qt(this),this.P=ke,t=z?125:void 0,this.R=new zt(t),this.B=null,this.b=!1,this.j=this.l=this.i=this.H=this.u=this.T=this.o=null,this.s=[],this.a=null,this.D=0,this.h=this.m=null,this.N=-1,this.A=!1,this.O=0,this.F=null,this.V=this.C=this.U=this.I=!1}_(Oe,st),_(Ie,st),_(Te,ye),_e=new Te;var ke=45e3,Ce={},xe={};function je(t,e,n){t.H=1,t.i=tn(Ge(e)),t.j=n,t.I=!0,Ae(t,null)}function Ae(t,e){t.u=w(),Re(t),t.l=Ge(t.i);var n=t.l,r=t.S;Array.isArray(r)||(r=[String(r)]),gn(n.b,"t",r),t.D=0,t.a=vr(t.g,t.g.C?e:null),0<t.O&&(t.F=new Yt(y(t.Ca,t,t.a),t.O)),Zt(t.J,t.a,"readystatechange",t.Xa),e=t.B?M(t.B):{},t.j?(t.m||(t.m="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.a.ba(t.l,t.m,t.j,e)):(t.m="GET",t.a.ba(t.l,t.m,null,e)),fe(1),ne(t.c,t.m,t.l,t.f,t.S,t.j)}function Ne(t,e,n){for(var r=!0;!t.A&&t.D<n.length;){var i=Pe(t,n);if(i==xe){4==e&&(t.h=4,de(14),r=!1),ie(t.c,t.f,null,"[Incomplete Response]");break}if(i==Ce){t.h=4,de(15),ie(t.c,t.f,n,"[Invalid Chunk]"),r=!1;break}ie(t.c,t.f,i,null),Ue(t,i)}4==e&&0==n.length&&(t.h=1,de(16),r=!1),t.b=t.b&&r,r?0<n.length&&!t.V&&(t.V=!0,e=t.g,e.a==t&&e.U&&!e.F&&(e.c.info("Great, no buffering proxy detected. Bytes received: "+n.length),sr(e),e.F=!0,de(11))):(ie(t.c,t.f,n,"[Invalid Chunked Response]"),Fe(t),Me(t))}function Pe(t,e){var n=t.D,r=e.indexOf("\n",n);return-1==r?xe:(n=Number(e.substring(n,r)),isNaN(n)?Ce:(r+=1,r+n>e.length?xe:(e=e.substr(r,n),t.D=r+n,e)))}function Re(t){t.T=w()+t.P,De(t,t.P)}function De(t,e){if(null!=t.o)throw Error("WatchDog timer not null");t.o=ve(y(t.Va,t),e)}function Le(t){t.o&&(c.clearTimeout(t.o),t.o=null)}function Me(t){0==t.g.v||t.A||lr(t.g,t)}function Fe(t){Le(t);var e=t.F;e&&"function"==typeof e.ja&&e.ja(),t.F=null,Ht(t.R),te(t.J),t.a&&(e=t.a,t.a=null,e.abort(),e.ja())}function Ue(t,e){try{var n=t.g;if(0!=n.v&&(n.a==t||In(n.b,t)))if(n.I=t.N,!t.C&&In(n.b,t)&&3==n.v){try{var r=n.ka.a.parse(e)}catch(g){r=null}if(Array.isArray(r)&&3==r.length){var i=r;
vendor: 18,016 bytes, line 1898
1898if(0==i[0]){t:if(!n.j){if(n.a){if(!(n.a.u+3e3<t.u))break t;cr(n),Qn(n)}ar(n),de(18)}}else n.oa=i[1],0<n.oa-n.P&&37500>i[2]&&n.H&&0==n.o&&!n.m&&(n.m=ve(y(n.Sa,n),6e3));if(1>=On(n.b)&&n.ea){try{n.ea()}catch(g){}n.ea=void 0}}else hr(n,11)}else if((t.C||n.a==t)&&cr(n),!x(e))for(e=r=n.ka.a.parse(e),r=0;r<e.length;r++)if(i=e[r],n.P=i[0],i=i[1],2==n.v)if("c"==i[0]){n.J=i[1],n.ga=i[2];var o=i[3];null!=o&&(n.ha=o,n.c.info("VER="+n.ha));var a=i[4];null!=a&&(n.pa=a,n.c.info("SVER="+n.pa));var s=i[5];if(null!=s&&"number"===typeof s&&0<s){var u=1.5*s;n.D=u,n.c.info("backChannelRequestTimeoutMs_="+u)}u=n;var c=t.a;if(c){var l=c.a?c.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(l){var f=u.b;!f.a&&(N(l,"spdy")||N(l,"quic")||N(l,"h2"))&&(f.f=f.g,f.a=new Set,f.b&&(Tn(f,f.b),f.b=null))}if(u.A){var h=c.a?c.a.getResponseHeader("X-HTTP-Session-Id"):null;h&&(u.na=h,Ze(u.B,u.A,h))}}n.v=3,n.f&&n.f.ta(),n.U&&(n.N=w()-t.u,n.c.info("Handshake RTT: "+n.N+"ms")),u=n;var d=t;if(u.la=pr(u,u.C?u.ga:null,u.fa),d.C){Sn(u.b,d);var p=d,v=u.D;v&&p.setTimeout(v),p.o&&(Le(p),Re(p)),u.a=d}else or(u);0<n.g.length&&tr(n)}else"stop"!=i[0]&&"close"!=i[0]||hr(n,7);else 3==n.v&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?hr(n,7):Yn(n):"noop"!=i[0]&&n.f&&n.f.sa(i),n.o=0);fe(4)}catch(g){}}function qe(t){if(t.K&&"function"==typeof t.K)return t.K();if("string"===typeof t)return t.split("");if(f(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}function $e(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(f(t)||"string"===typeof t)T(t,e,void 0);else{if(t.L&&"function"==typeof t.L)var n=t.L();else if(t.K&&"function"==typeof t.K)n=void 0;else if(f(t)||"string"===typeof t){n=[];for(var r=t.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,t)n[r++]=i;r=qe(t),i=r.length;for(var o=0;o<i;o++)e.call(void 0,r[o],n&&n[o],t)}}function Be(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Be)for(n=t.L(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function Ve(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];Ke(t.b,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.c!=t.a.length){var i={};for(n=e=0;e<t.a.length;)r=t.a[e],Ke(i,r)||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function Ke(t,e){return Object.prototype.hasOwnProperty.call(t,e)}a=Se.prototype,a.setTimeout=function(t){this.P=t},a.Xa=function(t){t=t.target;var e=this.F;e&&3==Wn(t)?e.f():this.Ca(t)},a.Ca=function(t){try{if(t==this.a)t:{var e=Wn(this.a),n=this.a.ua(),r=this.a.W();if(!(3>e||3==e&&!z&&!this.a.$())){this.A||4!=e||7==n||fe(8==n||0>=r?3:2),Le(this);var i=this.a.W();this.N=i;var o=this.a.$();if(this.b=200==i,re(this.c,this.m,this.l,this.f,this.S,e,i),this.b){if(this.U&&!this.C){e:{if(this.a){var a,s=this.a;if((a=s.a?s.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!x(a)){var u=a;break e}}u=null}if(!u){this.b=!1,this.h=3,de(12),Fe(this),Me(this);break t}ie(this.c,this.f,u,"Initial handshake response via X-HTTP-Initial-Response"),this.C=!0,Ue(this,u)}this.I?(Ne(this,e,o),z&&this.b&&3==e&&(Zt(this.J,this.R,"tick",this.Wa),this.R.start())):(ie(this.c,this.f,o,null),Ue(this,o)),4==e&&Fe(this),this.b&&!this.A&&(4==e?lr(this.g,this):(this.b=!1,Re(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.h=3,de(12)):(this.h=0,de(13)),Fe(this),Me(this)}}}catch(c){}},a.Wa=function(){if(this.a){var t=Wn(this.a),e=this.a.$();this.D<e.length&&(Le(this),Ne(this,t,e),this.b&&4!=t&&Re(this))}},a.cancel=function(){this.A=!0,Fe(this)},a.Va=function(){this.o=null;var t=w();0<=t-this.T?(oe(this.c,this.l),2!=this.H&&(fe(3),de(17)),Fe(this),this.h=2,Me(this)):De(this,this.T-t)},a=Be.prototype,a.K=function(){Ve(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},a.L=function(){return Ve(this),this.a.concat()},a.get=function(t,e){return Ke(this.b,t)?this.b[t]:e},a.set=function(t,e){Ke(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},a.forEach=function(t,e){for(var n=this.L(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var We=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function ze(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}function He(t,e){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,t instanceof He){this.a=void 0!==e?e:t.a,Xe(this,t.f),this.j=t.j,Ye(this,t.c),Qe(this,t.h),this.g=t.g,e=t.b;var n=new hn;n.c=e.c,e.a&&(n.a=new Be(e.a),n.b=e.b),Je(this,n),this.i=t.i}else t&&(n=String(t).match(We))?(this.a=!!e,Xe(this,n[1]||"",!0),this.j=rn(n[2]||""),Ye(this,n[3]||"",!0),Qe(this,n[4]),this.g=rn(n[5]||"",!0),Je(this,n[6]||"",!0),this.i=rn(n[7]||"")):(this.a=!!e,this.b=new hn(null,this.a))}function Ge(t){return new He(t)}function Xe(t,e,n){t.f=n?rn(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Ye(t,e,n){t.c=n?rn(e,!0):e}function Qe(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.h=e}else t.h=null}function Je(t,e,n){e instanceof hn?(t.b=e,yn(t.b,t.a)):(n||(e=on(e,ln)),t.b=new hn(e,t.a))}function Ze(t,e,n){t.b.set(e,n)}function tn(t){return Ze(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^w()).toString(36)),t}function en(t){return t instanceof He?Ge(t):new He(t,void 0)}function nn(t,e,n,r){var i=new He(null,void 0);return t&&Xe(i,t),e&&Ye(i,e),n&&Qe(i,n),r&&(i.g=r),i}function rn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function on(t,e,n){return"string"===typeof t?(t=encodeURI(t).replace(e,an),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function an(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(15&t).toString(16)}He.prototype.toString=function(){var t=[],e=this.f;e&&t.push(on(e,sn,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(on(e,sn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n=this.h,null!=n&&t.push(":",String(n))),(n=this.g)&&(this.c&&"/"!=n.charAt(0)&&t.push("/"),t.push(on(n,"/"==n.charAt(0)?cn:un,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",on(n,fn)),t.join("")};var sn=/[#\/\?@]/g,un=/[#\?:]/g,cn=/[#\?]/g,ln=/[#\?@]/g,fn=/#/g;function hn(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function dn(t){t.a||(t.a=new Be,t.b=0,t.c&&ze(t.c,(function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)})))}function pn(t,e){dn(t),e=mn(t,e),Ke(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,t=t.a,Ke(t.b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Ve(t)))}function vn(t,e){return dn(t),e=mn(t,e),Ke(t.a.b,e)}function gn(t,e,n){pn(t,e),0<n.length&&(t.c=null,t.a.set(mn(t,e),C(n)),t.b+=n.length)}function mn(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function yn(t,e){e&&!t.f&&(dn(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(pn(this,e),gn(this,n,t))}),t)),t.f=e}a=hn.prototype,a.add=function(t,e){dn(this),this.c=null,t=mn(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},a.forEach=function(t,e){dn(this),this.a.forEach((function(n,r){T(n,(function(n){t.call(e,n,r,this)}),this)}),this)},a.L=function(){dn(this);for(var t=this.a.K(),e=this.a.L(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},a.K=function(t){dn(this);var e=[];if("string"===typeof t)vn(this,t)&&(e=k(e,this.a.get(mn(this,t))));else{t=this.a.K();for(var n=0;n<t.length;n++)e=k(e,t[n])}return e},a.set=function(t,e){return dn(this),this.c=null,t=mn(this,t),vn(this,t)&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},a.get=function(t,e){return t?(t=this.K(t),0<t.length?String(t[0]):e):e},a.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.L(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.K(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),t.push(a)}}return this.c=t.join("&")};var bn=function(){function t(t,e){this.b=t,this.a=e}return t}();function wn(t){this.g=t||_n,c.PerformanceNavigationTiming?(t=c.performance.getEntriesByType("navigation"),t=0<t.length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol)):t=!!(c.ia&&c.ia.ya&&c.ia.ya()&&c.ia.ya().Lb),this.f=t?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}var _n=10;function En(t){return!!t.b||!!t.a&&t.a.size>=t.f}function On(t){return t.b?1:t.a?t.a.size:0}function In(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function Tn(t,e){t.a?t.a.add(e):t.b=e}function Sn(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function kn(t){var e,n;if(null!=t.b)return t.c.concat(t.b.s);if(null!=t.a&&0!==t.a.size){var r=t.c;try{for(var i=o(t.a.values()),a=i.next();!a.done;a=i.next()){var s=a.value;r=r.concat(s.s)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}return C(t.c)}function Cn(){}function xn(){this.a=new Cn}function jn(t,e,n){var r=n||"";try{$e(t,(function(t,n){var i=t;h(t)&&(i=Rt(t)),e.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function An(t,e){var n=new ee;if(c.Image){var r=new Image;r.onload=b(Nn,n,r,"TestLoadImage: loaded",!0,e),r.onerror=b(Nn,n,r,"TestLoadImage: error",!1,e),r.onabort=b(Nn,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=b(Nn,n,r,"TestLoadImage: timeout",!1,e),c.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=t}else e(!1)}function Nn(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}wn.prototype.cancel=function(){var t,e;if(this.c=kn(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=o(this.a.values()),r=n.next();!r.done;r=n.next()){var i=r.value;i.cancel()}}catch(a){t={error:a}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},Cn.prototype.stringify=function(t){return c.JSON.stringify(t,void 0)},Cn.prototype.parse=function(t){return c.JSON.parse(t,void 0)};var Pn=c.JSON.parse;function Rn(t){At.call(this),this.headers=new Be,this.H=t||null,this.b=!1,this.s=this.a=null,this.B="",this.h=0,this.f="",this.g=this.A=this.l=this.u=!1,this.o=0,this.m=null,this.I=Dn,this.D=this.F=!1}_(Rn,At);var Dn="",Ln=/^https?$/i,Mn=["POST","PUT"];function Fn(t){return K&&et(9)&&"number"===typeof t.timeout&&void 0!==t.ontimeout}function Un(t){return"content-type"==t.toLowerCase()}function qn(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,$n(t),Vn(t)}function $n(t){t.u||(t.u=!0,Nt(t,"complete"),Nt(t,"error"))}function Bn(t){if(t.b&&"undefined"!=typeof u&&(!t.s[1]||4!=Wn(t)||2!=t.W()))if(t.l&&4==Wn(t))Gt(t.za,0,t);else if(Nt(t,"readystatechange"),4==Wn(t)){t.b=!1;try{var e,n=t.W();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.B).match(We)[1]||null;if(!o&&c.self&&c.self.location){var a=c.self.location.protocol;o=a.substr(0,a.length-1)}i=!Ln.test(o?o.toLowerCase():"")}e=i}var s=e;if(s)Nt(t,"complete"),Nt(t,"success");else{t.h=6;try{var l=2<Wn(t)?t.a.statusText:""}catch(n){l=""}t.f=l+" ["+t.W()+"]",$n(t)}}finally{Vn(t)}}}function Vn(t,e){if(t.a){Kn(t);var n=t.a,r=t.s[0]?l:null;t.a=null,t.s=null,e||Nt(t,"ready");try{n.onreadystatechange=r}catch(i){}}}function Kn(t){t.a&&t.D&&(t.a.ontimeout=null),t.m&&(c.clearTimeout(t.m),t.m=null)}function Wn(t){return t.a?t.a.readyState:0}function zn(t){var e="";return L(t,(function(t,n){e+=n,e+=":",e+=t,e+="\r\n"})),e}function Hn(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}r||(n=zn(n),"string"===typeof t?null!=n&&encodeURIComponent(String(n)):Ze(t,e,n))}function Gn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function Xn(t){this.pa=0,this.g=[],this.c=new ee,this.ga=this.la=this.B=this.fa=this.a=this.na=this.A=this.V=this.i=this.O=this.l=null,this.Oa=this.R=0,this.La=Gn("failFast",!1,t),this.H=this.m=this.j=this.h=this.f=null,this.S=!0,this.I=this.oa=this.P=-1,this.T=this.o=this.u=0,this.Ha=Gn("baseRetryDelayMs",5e3,t),this.Ra=Gn("retryDelaySeedMs",1e4,t),this.Ma=Gn("forwardChannelMaxRetries",2,t),this.ma=Gn("forwardChannelRequestTimeoutMs",2e4,t),this.Na=t&&t.g||void 0,this.D=void 0,this.C=t&&t.supportsCrossDomainXhr||!1,this.J="",this.b=new wn(t&&t.concurrentRequestLimit),this.ka=new xn,this.da=t&&t.fastHandshake||!1,this.Ia=t&&t.b||!1,t&&t.f&&(this.c.a=!1),t&&t.forceLongPolling&&(this.S=!1),this.U=!this.da&&this.S&&t&&t.detectBufferingProxy||!1,this.ea=void 0,this.N=0,this.F=!1,this.s=null,(this.Ka=t&&t.c||!1)&&this.c.info("Opt-in to enable Chrome Origin Trials.")}function Yn(t){if(Jn(t),3==t.v){var e=t.R++,n=Ge(t.B);Ze(n,"SID",t.J),Ze(n,"RID",e),Ze(n,"TYPE","terminate"),rr(t,n),e=new Se(t,t.c,e,void 0),e.H=2,e.i=tn(Ge(n)),n=!1,c.navigator&&c.navigator.sendBeacon&&(n=c.navigator.sendBeacon(e.i.toString(),"")),!n&&c.Image&&((new Image).src=e.i,n=!0),n||(e.a=vr(e.g,null),e.a.ba(e.i)),e.u=w(),Re(e)}dr(t)}function Qn(t){t.a&&(sr(t),t.a.cancel(),t.a=null)}function Jn(t){Qn(t),t.j&&(c.clearTimeout(t.j),t.j=null),cr(t),t.b.cancel(),t.h&&("number"===typeof t.h&&c.clearTimeout(t.h),t.h=null)}function Zn(t,e){t.g.push(new bn(t.Oa++,e)),3==t.v&&tr(t)}function tr(t){En(t.b)||t.h||(t.h=!0,$t(t.Ba,t),t.u=0)}function er(t,e){return!(On(t.b)>=t.b.f-(t.h?1:0))&&(t.h?(t.g=e.s.concat(t.g),!0):!(1==t.v||2==t.v||t.u>=(t.La?0:t.Ma))&&(t.h=ve(y(t.Ba,t,e),fr(t,t.u)),t.u++,!0))}function nr(t,e){var n;n=e?e.f:t.R++;var r=Ge(t.B);Ze(r,"SID",t.J),Ze(r,"RID",n),Ze(r,"AID",t.P),rr(t,r),t.i&&t.l&&Hn(r,t.i,t.l),n=new Se(t,t.c,n,t.u+1),null===t.i&&(n.B=t.l),e&&(t.g=e.s.concat(t.g)),e=ir(t,n,1e3),n.setTimeout(Math.round(.5*t.ma)+Math.round(.5*t.ma*Math.random())),Tn(t.b,n),je(n,r,e)}function rr(t,e){t.f&&$e({},(function(t,n){Ze(e,n,t)}))}function ir(t,e,n){n=Math.min(t.g.length,n);var r=t.f?y(t.f.Ja,t.f,t):null;t:for(var i=t.g,o=-1;;){var a=["count="+n];-1==o?0<n?(o=i[0].b,a.push("ofs="+o)):o=0:a.push("ofs="+o);for(var s=!0,u=0;u<n;u++){var c=i[u].b,l=i[u].a;if(c-=o,0>c)o=Math.max(0,i[u].b-100),s=!1;else try{jn(l,a,"req"+c+"_")}catch(f){r&&r(l)}}if(s){r=a.join("&");break t}}return t=t.g.splice(0,n),e.s=t,r}function or(t){t.a||t.j||(t.T=1,$t(t.Aa,t),t.o=0)}function ar(t){return!(t.a||t.j||3<=t.o)&&(t.T++,t.j=ve(y(t.Aa,t),fr(t,t.o)),t.o++,!0)}function sr(t){null!=t.s&&(c.clearTimeout(t.s),t.s=null)}function ur(t){t.a=new Se(t,t.c,"rpc",t.T),null===t.i&&(t.a.B=t.l),t.a.O=0;var e=Ge(t.la);Ze(e,"RID","rpc"),Ze(e,"SID",t.J),Ze(e,"CI",t.H?"0":"1"),Ze(e,"AID",t.P),rr(t,e),Ze(e,"TYPE","xmlhttp"),t.i&&t.l&&Hn(e,t.i,t.l),t.D&&t.a.setTimeout(t.D);var n=t.a;t=t.ga,n.H=1,n.i=tn(Ge(e)),n.j=null,n.I=!0,Ae(n,t)}function cr(t){null!=t.m&&(c.clearTimeout(t.m),t.m=null)}function lr(t,e){var n=null;if(t.a==e){cr(t),sr(t),t.a=null;var r=2}else{if(!In(t.b,e))return;n=e.s,Sn(t.b,e),r=1}if(t.I=e.N,0!=t.v)if(e.b)if(1==r){n=e.j?e.j.length:0,e=w()-e.u;var i=t.u;r=ce(),Nt(r,new pe(r,n,e,i)),tr(t)}else or(t);else if(i=e.h,3==i||0==i&&0<t.I||!(1==r&&er(t,e)||2==r&&ar(t)))switch(n&&0<n.length&&(e=t.b,e.c=e.c.concat(n)),i){case 1:hr(t,5);break;case 4:hr(t,10);break;case 3:hr(t,6);break;default:hr(t,2)}}function fr(t,e){var n=t.Ha+Math.floor(Math.random()*t.Ra);return t.f||(n*=2),n*e}function hr(t,e){if(t.c.info("Error code "+e),2==e){var n=null;t.f&&(n=null);var r=y(t.Ya,t);n||(n=new He("//www.google.com/images/cleardot.gif"),c.location&&"http"==c.location.protocol||Xe(n,"https"),tn(n)),An(n.toString(),r)}else de(2);t.v=0,t.f&&t.f.ra(e),dr(t),Jn(t)}function dr(t){t.v=0,t.I=-1,t.f&&(0==kn(t.b).length&&0==t.g.length||(t.b.c.length=0,C(t.g),t.g.length=0),t.f.qa())}function pr(t,e,n){var r=en(n);if(""!=r.c)e&&Ye(r,e+"."+r.c),Qe(r,r.h);else{var i=c.location;r=nn(i.protocol,e?e+"."+i.hostname:i.hostname,+i.port,n)}return t.V&&L(t.V,(function(t,e){Ze(r,e,t)})),e=t.A,n=t.na,e&&n&&Ze(r,e,n),Ze(r,"VER",t.ha),rr(t,r),r}function vr(t,e){if(e&&!t.C)throw Error("Can't create secondary domain capable XhrIo object.");return e=new Rn(t.Na),e.F=t.C,e}function gr(){}function mr(){if(K&&!(10<=Number(rt)))throw Error("Environmental error: no available transport.")}function yr(t,e){At.call(this),this.a=new Xn(e),this.o=t,this.b=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.a.l=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.a&&(t?t["X-WebChannel-Client-Profile"]=e.a:t={"X-WebChannel-Client-Profile":e.a}),this.a.O=t,(t=e&&e.httpHeadersOverwriteParam)&&!x(t)&&(this.a.i=t),this.m=e&&e.supportsCrossDomainXhr||!1,this.l=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!x(e)&&(this.a.A=e,t=this.b,null!==t&&e in t&&(t=this.b,e in t&&delete t[e])),this.f=new _r(this)}function br(t){Oe.call(this);var e=t.__sm__;if(e){t:{for(var n in e){t=n;break t}t=void 0}(this.c=t)?(t=this.c,this.data=null!==e&&t in e?e[t]:void 0):this.data=e}else this.data=t}function wr(){Ie.call(this),this.status=1}function _r(t){this.a=t}a=Rn.prototype,a.ba=function(t,e,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+t);e=e?e.toUpperCase():"GET",this.B=t,this.f="",this.h=0,this.u=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=this.H?be(this.H):be(_e),this.a.onreadystatechange=y(this.za,this);try{this.A=!0,this.a.open(e,String(t),!0),this.A=!1}catch(o){return void qn(this,o)}t=n||"";var i=new Be(this.headers);r&&$e(r,(function(t,e){i.set(e,t)})),r=S(i.L()),n=c.FormData&&t instanceof c.FormData,!(0<=I(Mn,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;
1898charset=utf-8"),i.forEach((function(t,e){this.a.setRequestHeader(e,t)}),this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{Kn(this),0<this.o&&((this.D=Fn(this.a))?(this.a.timeout=this.o,this.a.ontimeout=y(this.xa,this)):this.m=Gt(this.xa,this.o,this)),this.l=!0,this.a.send(t),this.l=!1}catch(o){qn(this,o)}},a.xa=function(){"undefined"!=typeof u&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,Nt(this,"timeout"),this.abort(8))},a.abort=function(t){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=t||7,Nt(this,"complete"),Nt(this,"abort"),Vn(this))},a.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),Vn(this,!0)),Rn.X.G.call(this)},a.za=function(){this.j||(this.A||this.l||this.g?Bn(this):this.Ua())},a.Ua=function(){Bn(this)},a.W=function(){try{return 2<Wn(this)?this.a.status:-1}catch(t){return-1}},a.$=function(){try{return this.a?this.a.responseText:""}catch(t){return""}},a.Pa=function(t){if(this.a){var e=this.a.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),Pn(e)}},a.ua=function(){return this.h},a.Qa=function(){return"string"===typeof this.f?this.f:String(this.f)},a=Xn.prototype,a.ha=8,a.v=1,a.Ba=function(t){if(this.h)if(this.h=null,1==this.v){if(!t){this.R=Math.floor(1e5*Math.random()),t=this.R++;var e,n=new Se(this,this.c,t,void 0),r=this.l;if(this.O&&(r?(r=M(r),U(r,this.O)):r=this.O),null===this.i&&(n.B=r),this.da)t:{for(var i=e=0;i<this.g.length;i++){var o=this.g[i];if(o="__data__"in o.a&&(o=o.a.__data__,"string"===typeof o)?o.length:void 0,void 0===o)break;if(e+=o,4096<e){e=i;break t}if(4096===e||i===this.g.length-1){e=i+1;break t}}e=1e3}else e=1e3;e=ir(this,n,e),i=Ge(this.B),Ze(i,"RID",t),Ze(i,"CVER",22),this.A&&Ze(i,"X-HTTP-Session-Id",this.A),rr(this,i),this.i&&r&&Hn(i,this.i,r),Tn(this.b,n),this.Ia&&Ze(i,"TYPE","init"),this.da?(Ze(i,"$req",e),Ze(i,"SID","null"),n.U=!0,je(n,i,null)):je(n,i,e),this.v=2}}else 3==this.v&&(t?nr(this,t):0==this.g.length||En(this.b)||nr(this))},a.Aa=function(){if(this.j=null,ur(this),this.U&&!(this.F||null==this.a||0>=this.N)){var t=2*this.N;this.c.info("BP detection timer enabled: "+t),this.s=ve(y(this.Ta,this),t)}},a.Ta=function(){this.s&&(this.s=null,this.c.info("BP detection timeout reached."),this.c.info("Buffering proxy detected and switch to long-polling!"),this.H=!1,this.F=!0,de(10),Qn(this),ur(this))},a.Sa=function(){null!=this.m&&(this.m=null,Qn(this),ar(this),de(19))},a.Ya=function(t){t?(this.c.info("Successfully pinged google.com"),de(2)):(this.c.info("Failed to ping google.com"),de(1))},a=gr.prototype,a.ta=function(){},a.sa=function(){},a.ra=function(){},a.qa=function(){},a.Ja=function(){},mr.prototype.a=function(t,e){return new yr(t,e)},_(yr,At),yr.prototype.g=function(){this.a.f=this.f,this.m&&(this.a.C=!0);var t=this.a,e=this.o,n=this.b||void 0;de(0),t.fa=e,t.V=n||{},t.H=t.S,t.B=pr(t,null,t.fa),tr(t)},yr.prototype.close=function(){Yn(this.a)},yr.prototype.h=function(t){if("string"===typeof t){var e={};e.__data__=t,Zn(this.a,e)}else this.l?(e={},e.__data__=Rt(t),Zn(this.a,e)):Zn(this.a,t)},yr.prototype.G=function(){this.a.f=null,delete this.f,Yn(this.a),delete this.a,yr.X.G.call(this)},_(br,Oe),_(wr,Ie),_(_r,gr),_r.prototype.ta=function(){Nt(this.a,"a")},_r.prototype.sa=function(t){Nt(this.a,new br(t))},_r.prototype.ra=function(t){Nt(this.a,new wr(t))},_r.prototype.qa=function(){Nt(this.a,"b")},mr.prototype.createWebChannel=mr.prototype.a,yr.prototype.send=yr.prototype.h,yr.prototype.open=yr.prototype.g,yr.prototype.close=yr.prototype.close,ge.NO_ERROR=0,ge.TIMEOUT=8,ge.HTTP_ERROR=6,me.COMPLETE="complete",we.EventType=Ee,Ee.OPEN="a",Ee.CLOSE="b",Ee.ERROR="c",Ee.MESSAGE="d",At.prototype.listen=At.prototype.va,Rn.prototype.listenOnce=Rn.prototype.wa,Rn.prototype.getLastError=Rn.prototype.Qa,Rn.prototype.getLastErrorCode=Rn.prototype.ua,Rn.prototype.getStatus=Rn.prototype.W,Rn.prototype.getResponseJson=Rn.prototype.Pa,Rn.prototype.getResponseText=Rn.prototype.$,Rn.prototype.send=Rn.prototype.ba;var Er=function(){return new mr},Or=function(){return ce()},Ir=ge,Tr=me,Sr=se,kr={gb:0,jb:1,kb:2,Db:3,Ib:4,Fb:5,Gb:6,Eb:7,Cb:8,Hb:9,PROXY:10,NOPROXY:11,Ab:12,wb:13,xb:14,vb:15,yb:16,zb:17,bb:18,ab:19,cb:20},Cr=we,xr=Rn}).call(this,n("c8ba"))},c8af:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);while(e.length>
1898u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},caad:function(t,e,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("44d2");r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cc84:function(t,e,n){"use strict";
1899/*! *****************************************************************************
1900Copyright (c) Microsoft Corporation.
1901
1902Permission to use, copy, modify, and/or distribute this software for any
1903purpose with or without fee is hereby granted.
1904
1905THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1906REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1907AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1908INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1909LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1910OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1911PERFORMANCE OF THIS SOFTWARE.
1912***************************************************************************** */var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.create;Object.create;var i,o,a=n("a8e9"),s=n("ffa6"),u=n("abfd"),c=(i={},i["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",i["bad-app-name"]="Illegal App name: '{$appName}",i["duplicate-app"]="Firebase App named '{$appName}' already exists",i["app-deleted"]="Firebase App named '{$appName}' already deleted",i["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",i["invalid-log-argument"]="First argument to `onLog` must be null or a function.",i),l=new a["b"]("app","Firebase",c),f="@firebase/app",h="0.6.21",d="@firebase/analytics",p="@firebase/app-check",v="@firebase/auth",g="@firebase/database",m="@firebase/functions",y="@firebase/installations",b="@firebase/messaging",w="@firebase/performance",_="@firebase/remote-config",E="@firebase/storage",O="@firebase/firestore",I="firebase-wrapper",T="[DEFAULT]",S=(o={},o[f]="fire-core",o[d]="fire-analytics",o[p]="fire-app-check",o[v]="fire-auth",o[g]="fire-rtdb",o[m]="fire-fn",o[y]="fire-iid",o[b]="fire-fcm",o[w]="fire-perf",o[_]="fire-rc",o[E]="fire-gcs",o[O]="fire-fst",o["fire-js"]="fire-js",o[I]="fire-js-all",o),k=new u["b"]("@firebase/app"),C=function(){function t(t,e,n){var r=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=Object(a["n"])(t),this.container=new s["b"](e.name),this._addComponent(new s["a"]("app",(function(){return r}),"PUBLIC")),this.firebase_.INTERNAL.components.forEach((function(t){return r._addComponent(t)}))}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise((function(e){t.checkDestroyed_(),e()})).then((function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map((function(t){return t.delete()})))})).then((function(){t.isDeleted_=!0}))},t.prototype._getService=function(t,e){return void 0===e&&(e=T),this.checkDestroyed_(),this.container.getProvider(t).getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e=T),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){k.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},t.prototype._addOrOverwriteComponent=function(t){this.container.addOrOverwriteComponent(t)},t.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw l.create("app-deleted",{appName:this.name_})},t}();C.prototype.name&&C.prototype.options||C.prototype.delete||console.log("dc");var x="8.5.0";
1913/**
1914 * @license
1915 * Copyright 2019 Google LLC
1916 *
1917 * Licensed under the Apache License, Version 2.0 (the "License");
1918 * you may not use this file except in compliance with the License.
1919 * You may obtain a copy of the License at
1920 *
1921 *   http://www.apache.org/licenses/LICENSE-2.0
1922 *
1923 * Unless required by applicable law or agreed to in writing, software
1924 * distributed under the License is distributed on an "AS IS" BASIS,
1925 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1926 * See the License for the specific language governing permissions and
1927 * limitations under the License.
1928 */function j(t){var e={},n=new Map,r={__esModule:!0,initializeApp:c,app:o,registerVersion:d,setLogLevel:u["c"],onLog:p,apps:null,SDK_VERSION:x,INTERNAL:{registerComponent:h,removeApp:i,components:n,useAsService:v}};function i(t){delete e[t]}function o(t){if(t=t||T,!Object(a["k"])(e,t))throw l.create("no-app",{appName:t});return e[t]}function c(n,i){if(void 0===i&&(i={}),"object"!==typeof i||null===i){var o=i;i={name:o}}var s=i;void 0===s.name&&(s.name=T);var u=s.name;if("string"!==typeof u||!u)throw l.create("bad-app-name",{appName:String(u)});if(Object(a["k"])(e,u))throw l.create("duplicate-app",{appName:u});var c=new t(n,s,r);return e[u]=c,c}function f(){return Object.keys(e).map((function(t){return e[t]}))}function h(i){var s=i.name;if(n.has(s))return k.debug("There were multiple attempts to register component "+s+"."),"PUBLIC"===i.type?r[s]:null;if(n.set(s,i),"PUBLIC"===i.type){var u=function(t){if(void 0===t&&(t=o()),"function"!==typeof t[s])throw l.create("invalid-app-argument",{appName:s});return t[s]()};void 0!==i.serviceProps&&Object(a["o"])(u,i.serviceProps),r[s]=u,t.prototype[s]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._getService.bind(this,s);return n.apply(this,i.multipleInstances?t:[])}}for(var c=0,f=Object.keys(e);c<f.length;c++){var h=f[c];e[h]._addComponent(i)}return"PUBLIC"===i.type?r[s]:null}function d(t,e,n){var r,i=null!==(r=S[t])&&void 0!==r?r:t;n&&(i+="-"+n);var o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){var u=['Unable to register library "'+i+'" with version "'+e+'":'];return o&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&a&&u.push("and"),a&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void k.warn(u.join(" "))}h(new s["a"](i+"-version",(function(){return{library:i,version:e}}),"VERSION"))}function p(t,e){if(null!==t&&"function"!==typeof t)throw l.create("invalid-log-argument");Object(u["d"])(t,e)}function v(t,e){if("serverAuth"===e)return null;var n=e;return n}return r["default"]=r,Object.defineProperty(r,"apps",{get:f}),o["App"]=t,r}
1929/**
1930 * @license
1931 * Copyright 2019 Google LLC
1932 *
1933 * Licensed under the Apache License, Version 2.0 (the "License");
1934 * you may not use this file except in compliance with the License.
1935 * You may obtain a copy of the License at
1936 *
1937 *   http://www.apache.org/licenses/LICENSE-2.0
1938 *
1939 * Unless required by applicable law or agreed to in writing, software
1940 * distributed under the License is distributed on an "AS IS" BASIS,
1941 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1942 * See the License for the specific language governing permissions and
1943 * limitations under the License.
1944 */function A(){var t=j(C);function e(e){Object(a["o"])(t,e)}return t.INTERNAL=r(r({},t.INTERNAL),{createFirebaseNamespace:A,extendNamespace:e,createSubscribe:a["m"],ErrorFactory:a["b"],deepExtend:a["o"]}),t}var N=A(),P=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){var t=this.container.getProviders();return t.map((function(t){if(R(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null})).filter((function(t){return t})).join(" ")},t}();
1945/**
1946 * @license
1947 * Copyright 2019 Google LLC
1948 *
1949 * Licensed under the Apache License, Version 2.0 (the "License");
1950 * you may not use this file except in compliance with the License.
1951 * You may obtain a copy of the License at
1952 *
1953 *   http://www.apache.org/licenses/LICENSE-2.0
1954 *
1955 * Unless required by applicable law or agreed to in writing, software
1956 * distributed under the License is distributed on an "AS IS" BASIS,
1957 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1958 * See the License for the specific language governing permissions and
1959 * limitations under the License.
1960 */function R(t){var e=t.getComponent();return"VERSION"===(null===e||void 0===e?void 0:e.type)}
1961/**
1962 * @license
1963 * Copyright 2019 Google LLC
1964 *
1965 * Licensed under the Apache License, Version 2.0 (the "License");
1966 * you may not use this file except in compliance with the License.
1967 * You may obtain a copy of the License at
1968 *
1969 *   http://www.apache.org/licenses/LICENSE-2.0
1970 *
1971 * Unless required by applicable law or agreed to in writing, software
1972 * distributed under the License is distributed on an "AS IS" BASIS,
1973 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1974 * See the License for the specific language governing permissions and
1975 * limitations under the License.
1976 */function D(t,e){t.INTERNAL.registerComponent(new s["a"]("platform-logger",(function(t){return new P(t)}),"PRIVATE")),t.registerVersion(f,h,e),t.registerVersion("fire-js","")}
1977/**
1978 * @license
1979 * Copyright 2017 Google LLC
1980 *
1981 * Licensed under the Apache License, Version 2.0 (the "License");
1982 * you may not use this file except in compliance with the License.
1983 * You may obtain a copy of the License at
1984 *
1985 *   http://www.apache.org/licenses/LICENSE-2.0
1986 *
1987 * Unless required by applicable law or agreed to in writing, software
1988 * distributed under the License is distributed on an "AS IS" BASIS,
1989 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1990 * See the License for the specific language governing permissions and
1991 * limitations under the License.
1992 */if(Object(a["t"])()&&void 0!==self.firebase){k.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var L=self.firebase.SDK_VERSION;L&&L.indexOf("LITE")>=0&&k.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var M=N.initializeApp;N.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(a["A"])()&&k.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/@rollup/plugin-node-resolve\n      '),M.apply(void 0,t)};var F=N;D(F);e["a"]=F},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce1f:function(t,e,n){},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},cee4:function(t,e,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function u(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var c=u(s);c.Axios=o,c.create=function(t){return u(a(c.defaults,t))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(t){return Promise.all(t)}
1992,c.spread=n("0df6"),c.isAxiosError=n("5f02"),t.exports=c,t.exports.default=c},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d28b:function(t,e,n){var r=n("746f");r("iterator")},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d784:function(t,e,n){"use strict";n("ac1f");var r=n("6eeb"),i=n("d039"),o=n("b622"),a=n("9112"),s=o("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),c=function(){return"$0"==="a".replace(/./,"$0")}(),l=o("replace"),f=function(){return!!/./[l]&&""===/./[l]("a","$0")}(),h=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,l){var d=o(t),p=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),v=p&&!i((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[s]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!p||!v||"replace"===t&&(!u||!c||f)||"split"===t&&!h){var g=/./[d],m=n(d,""[t],(function(t,e,n,r,i){return e.exec===RegExp.prototype.exec?p&&!i?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=m[0],b=m[1];r(String.prototype,t,y),r(RegExp.prototype,d,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}l&&a(RegExp.prototype[d],"sham",!0)}},d81d:function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").map,o=n("1dde"),a=o("map");r({target:"Array",proto:!0,forced:!a},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},d867:function(t,e,n){"use strict";n.d(e,"D",(function(){return u["c"]})),n.d(e,"E",(function(){return u["b"]})),n.d(e,"F",(function(){return a["a"]})),n.d(e,"H",(function(){return u["o"]})),n.d(e,"a",(function(){return ht})),n.d(e,"b",(function(){return tt})),n.d(e,"c",(function(){return I})),n.d(e,"d",(function(){return T})),n.d(e,"e",(function(){return S})),n.d(e,"f",(function(){return k})),n.d(e,"g",(function(){return C})),n.d(e,"h",(function(){return x})),n.d(e,"i",(function(){return gt})),n.d(e,"j",(function(){return j})),n.d(e,"k",(function(){return A})),n.d(e,"l",(function(){return N})),n.d(e,"m",(function(){return P})),n.d(e,"n",(function(){return Ot})),n.d(e,"o",(function(){return et})),n.d(e,"p",(function(){return rt})),n.d(e,"q",(function(){return R})),n.d(e,"r",(function(){return D})),n.d(e,"s",(function(){return L})),n.d(e,"t",(function(){return M})),n.d(e,"u",(function(){return F})),n.d(e,"v",(function(){return lt})),n.d(e,"w",(function(){return it})),n.d(e,"x",(function(){return st})),n.d(e,"y",(function(){return U})),n.d(e,"z",(function(){return q})),n.d(e,"A",(function(){return $})),n.d(e,"B",(function(){return B})),n.d(e,"C",(function(){return Z})),n.d(e,"G",(function(){return St}));var r=n("faff"),i=n("ff79"),o=n("7a23"),a=(n("ef7a"),n("2f12"),n("aaf9"),n("41b3"),n("391c"),n("7d8d")),s=(n("61cf"),n("2196"),n("9897")),u=(n("6d4d"),n("8581")),c=(n("347a"),n("6d28")),l=(n("5ea3"),function(t){var e=window,n=e.Ionic;if(!n||!n.config||"Object"===n.config.constructor.name)return e.Ionic=e.Ionic||{},e.Ionic.config=Object.assign(Object.assign({},e.Ionic.config),t),e.Ionic.config;console.error("ionic config was already initialized")});function f(){var t=[];if("undefined"!==typeof window){var e=window;e.customElements&&(!e.Element||e.Element.prototype.closest&&e.Element.prototype.matches&&e.Element.prototype.remove&&e.Element.prototype.getRootNode)||t.push(n.e("polyfills-dom").then(n.t.bind(null,"41d0",7)));var r=function(){try{var t=new URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}};"function"===typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!e.NodeList||e.NodeList.prototype.forEach)&&e.fetch&&r()&&"undefined"!=typeof WeakMap||t.push(n.e("polyfills-core-js").then(n.t.bind(null,"b7aa3",7)))}return Promise.all(t)}var h=a["d"],d=function(){return c["b"]&&c["b"].supports&&c["b"].supports("color","var(--c)")?Object(c["d"])():n.e("chunk-2d217e6a").then(n.t.bind(null,"c964",7)).then((function(){return(c["n"].$cssShim$=c["q"].__cssshim)?c["n"].$cssShim$.i():0}))},p=function(t,e){return"undefined"===typeof window?Promise.resolve():d().then((function(){return h(),Object(c["e"])(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4],"disabled":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[
19921],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[
19921],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]}
1992,[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),e)}))};(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}})();var v=n("6c02");const g="update:modelValue",m="modelValue",y="routerLink",b="navManager",w="router",_=t=>{var e;return(null===(e=t)||void 0===e?void 0:e.split(" "))||[]},E=(t,e,n=[])=>{var r;return[...Array.from((null===(r=t.value)||void 0===r?void 0:r.classList)||[]),...n].filter((t,n,r)=>!e.has(t)&&r.indexOf(t)===n)},O=(t,e=[],n={})=>{const{modelProp:r,modelUpdateEvent:i,externalModelUpdateEvent:a}=n,s=Object(o["i"])((e,{attrs:n,slots:s,emit:u})=>{var c;let l=e[r];const f=Object(o["C"])(),h=new Set(_(n.class)),d=t=>{if(t.el){const e=Array.isArray(i)?i:[i];e.forEach(e=>{t.el.addEventListener(e.toLowerCase(),t=>{l=(null===t||void 0===t?void 0:t.target)[r],u(g,l),u(a,t)})})}},p=Object(o["j"])(),v=null===(c=null===p||void 0===p?void 0:p.appContext)||void 0===c?void 0:c.provides[b],m=v?Object(o["l"])(b):void 0,y=t=>{const{routerLink:n}=e;if(!n)return;const r=Object.keys(e).filter(t=>t.startsWith(w));if(void 0!==m){let n={event:t};r.forEach(t=>{n[t]=e[t]}),m.navigate(n)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{l=e[r],_(n.class).forEach(t=>{h.add(t)});const u=e.onClick,c=t=>{void 0!==u&&u(t),t.defaultPrevented||y(t)};let p=Object.assign(Object.assign({},e),{ref:f,class:E(f,h),onClick:c,onVnodeBeforeMount:i&&a?d:void 0});return r&&(p=Object.assign(Object.assign({},p),{[r]:e.hasOwnProperty("modelValue")?e.modelValue:l})),Object(o["k"])(t,p,s.default&&s.default())}});return s.displayName=t,s.props=[...e,y],r&&(s.props.push(m),s.emits=[g,a]),s},I=O("ion-button",["color","buttonType","disabled","expand","fill","routerDirection","routerAnimation","download","href","rel","shape","size","strong","target","type","ionFocus","ionBlur"]),T=O("ion-buttons",["collapse"]),S=O("ion-checkbox",["color","name","checked","indeterminate","disabled","value","ionChange","ionFocus","ionBlur","ionStyle"],{modelProp:"checked",modelUpdateEvent:["v-ionChange","v-ion-change"],externalModelUpdateEvent:"ionChange"}),k=O("ion-chip",["color","outline","disabled"]),C=O("ion-content",["color","fullscreen","forceOverscroll","scrollX","scrollY","scrollEvents","ionScrollStart","ionScroll","ionScrollEnd"]),x=O("ion-header",["collapse","translucent"]),j=O("ion-input",["fireFocusEvents","color","accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","spellcheck","step","size","type","value","ionInput","ionChange","ionBlur","ionFocus","ionStyle"],{modelProp:"value",modelUpdateEvent:["v-ionChange","v-ion-change"],externalModelUpdateEvent:"ionChange"}),A=O("ion-item",["color","button","detail","detailIcon","disabled","download","href","rel","lines","routerAnimation","routerDirection","target","type"]),N=O("ion-label",["color","position","ionColor","ionStyle"]),P=O("ion-list",["lines","inset"]),R=O("ion-searchbar",["color","animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","debounce","disabled","inputmode","enterkeyhint","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value","ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus","ionStyle"],{modelProp:"value",modelUpdateEvent:["v-ionChange","v-ion-change"],externalModelUpdateEvent:"ionChange"}),D=O("ion-skeleton-text",["animated"]),L=O("ion-slide"),M=O("ion-slides",["options","pager","scrollbar","ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"]),F=O("ion-spinner",["color","duration","name","paused"]),U=O("ion-text",["color"]),q=O("ion-title",["color","size","ionStyle"]),$=O("ion-toggle",["color","name","checked","disabled","value","ionChange","ionFocus","ionBlur","ionStyle"],{modelProp:"checked",modelUpdateEvent:["v-ionChange","v-ion-change"],externalModelUpdateEvent:"ionChange"}),B=O("ion-toolbar",["color"]);var V;(function(t){t["WillEnter"]="onIonViewWillEnter",t["DidEnter"]="onIonViewDidEnter",t["WillLeave"]="onIonViewWillLeave",t["DidLeave"]="onIonViewDidLeave"})(V||(V={}));const K={[s["a"]]:V.WillEnter,[s["b"]]:V.DidEnter,[s["c"]]:V.WillLeave,[s["d"]]:V.DidLeave},W={main:0},z=(t="main")=>{var e;const n=(null!==(e=W[t])&&void 0!==e?e:0)+1;return W[t]=n,n.toString()},H=(t,e,n)=>{(null===t||void 0===t?void 0:t[n])&&t[n].bind(null===e||void 0===e?void 0:e.value)();const r=null===e||void 0===e?void 0:e.value;if((null===r||void 0===r?void 0:r[n])&&r[n](),r){const t=K[n],e=r[t];e&&e.forEach(t=>t())}},G=()=>{if("undefined"!==typeof window){const t=window.Ionic;if(t&&t.config)return t.config}return null},X=t=>!["3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5"].includes(t),Y=t=>"ionChange"===t?"v-ionchange":t.toLowerCase(),Q=t=>"ionChange"===t?"v-ion-change":t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),J=(t=!0)=>{const e=t?Q:Y;return{ael:(t,n,r,i)=>t.addEventListener(e(n),r,i),rel:(t,n,r,i)=>t.removeEventListener(e(n),r,i),ce:(t,n)=>new CustomEvent(e(t),n)}},Z={async install(t,e={}){if("undefined"!==typeof window){const{ael:n,rel:r,ce:i}
1992=J(X(t.version));l(Object.assign(Object.assign({},e),{_ael:n,_rel:r})),await f(),await p(window,{exclude:["ion-tabs"],ce:i,ael:n,rel:r})}}},tt=Object(o["i"])({name:"IonBackButton",setup(t,{attrs:e,slots:n}){const r=Object(o["l"])("navManager"),i=()=>{const t=e["default-href"]||e["defaultHref"],n=e["router-animation"]||e["routerAnimation"];r.handleNavigateBack(t,n)};return()=>Object(o["k"])("ion-back-button",Object.assign({onClick:i},e),n.default&&n.default())}}),et=Object(o["i"])({name:"IonPage",props:{isInOutlet:{type:Boolean,default:!1},registerIonPage:{type:Function,default:()=>{}}},mounted(){this.$props.registerIonPage(this.$refs.ionPage)},setup(t,{attrs:e,slots:n}){const r=t.isInOutlet?"ion-page-invisible":"";return()=>Object(o["k"])("div",Object.assign(Object.assign({["class"]:"ion-page "+r},e),{ref:"ionPage"}),n.default&&n.default())}});let nt=Symbol(0);const rt=Object(o["i"])({name:"IonRouterOutlet",setup(t,{attrs:e}){var n,r;const i=Object(o["l"])(v["g"]),a=Object(v["h"])(),u=Object(o["l"])(nt,0);let c=!1;e.tabs&&(null===(r=null===(n=a.matched[u])||void 0===n?void 0:n.children)||void 0===r?void 0:r.length)>0&&(console.warn("[@ionic/vue Deprecation]: Your child routes are nested inside of each tab in your routing config. This format will not be supported in Ionic Vue v6.0. Instead, write your child routes as sibling routes. See https://ionicframework.com/docs/vue/navigation#child-routes-within-tabs for more information."),c=!0);const l=Object(o["c"])(()=>{const t=a.matched[u];return t&&e.tabs&&a.matched[u+1]&&c?a.matched[a.matched.length-1]:t});Object(o["z"])(nt,u+1),Object(o["z"])(v["e"],l);const f=Object(o["C"])(),h=z("ion-router-outlet"),d=Object(o["l"])("navManager"),p=Object(o["l"])("viewStacks"),g=Object(o["G"])([]);let m,y=!1;Object(o["J"])([a,l],([t,e],[n,r])=>{e===r&&t.matched[t.matched.length-1]!==e||I(l)});const b=()=>{const t=G(),e=t&&t.get("swipeBackEnabled","ios"===f.value.mode);if(!e)return!1;const n=p.getViewStack(h);if(!n||n.length<=1)return!1;const r=d.getCurrentRouteInfo(),i=p.findViewItemByRouteInfo({pathname:r.pushedByRoute||""},h,c);return!!i},w=async()=>{const t=d.getCurrentRouteInfo(),{routerAnimation:e}=t,n=p.findViewItemByRouteInfo({pathname:t.pushedByRoute||""},h,c),r=p.findViewItemByRouteInfo(t,h,c);if(r){let t=e;const i=n.ionPageElement,o=r.ionPageElement,a=n.routerAnimation;void 0===t&&void 0!==a&&(t=a),r.routerAnimation=t,await E(i,o,"back",d.canGoBack(2),!0,t)}return Promise.resolve()},_=t=>{if(t)y=!0,d.handleNavigateBack();else{const t=d.getCurrentRouteInfo(),e=p.findViewItemByRouteInfo({pathname:t.pushedByRoute||""},h,c);e.ionPageElement.setAttribute("aria-hidden","true"),e.ionPageElement.classList.add("ion-page-hidden")}};Object(o["J"])(f,()=>{f.value.swipeHandler={canStart:b,onStart:w,onEnd:_}});const E=(t,e,n,r,i,o)=>new Promise(a=>y?(y=!1,a(!1)):t===e?a(!1):void requestAnimationFrame(()=>{requestAnimationFrame(async()=>{t.classList.add("ion-page-invisible");const s=await f.value.commit(t,e,{deepWait:!0,duration:void 0===n||"root"===n||"none"===n?0:void 0,direction:n,showGoBack:r,progressAnimation:i,animationBuilder:o});return a(s)})})),O=async()=>{const t=d.getCurrentRouteInfo(),{routerDirection:e,routerAction:n,routerAnimation:r,prevRouteLastPathname:i}=t,o=p.findViewItemByRouteInfo(t,h,c);let a=p.findLeavingViewItemByRouteInfo(t,h,!0,c);const u=o.ionPageElement;if(o!==a){if(!a&&i&&(a=p.findViewItemByPathname(i,h,c)),H(o.vueComponent,o.vueComponentRef,s["a"]),a&&o!==a){let i=r;const c=a.ionPageElement;H(a.vueComponent,a.vueComponentRef,s["c"]);const l=o.routerAnimation;if(void 0===i&&"back"===e&&void 0!==l&&(i=l),a.routerAnimation=i,await E(u,c,e,!!t.pushedByRoute,!1,i),c.classList.add("ion-page-hidden"),c.setAttribute("aria-hidden","true"),"replace"===n)a.mount=!1,a.ionPageElement=void 0,a.ionRoute=!1;else if("push"!==n||"forward"!==e){const t="none"!==e&&a&&o!==a;t&&(a.mount=!1,a.ionPageElement=void 0,a.ionRoute=!1)}H(a.vueComponent,a.vueComponentRef,s["d"])}else requestAnimationFrame(()=>u.classList.remove("ion-page-invisible"));H(o.vueComponent,o.vueComponentRef,s["b"]),g.value=p.getChildrenToRender(h)}},I=t=>{const e=a.matched[0];if(m||(m=e.path),!t.value||t.value!==e&&e.path!==m)return;const n=d.getCurrentRouteInfo();let r=p.findViewItemByRouteInfo(n,h,c);r||(r=p.createViewItem(h,t.value.components.default,t.value,n),p.add(r)),r.mount?O():(r.mount=!0,r.registerCallback=()=>{O(),r.registerCallback=void 0}),g.value=p.getChildrenToRender(h)};l.value&&I(l),Object(o["w"])(()=>p.clear(h));const T=(t,e)=>{const n=t.ionPageElement;p.registerIonPage(t,e),t.registerCallback?t.registerCallback():n&&!n.classList.contains("ion-page-invisible")&&e.classList.remove("ion-page-invisible")};return{id:h,components:g,injectedRoute:i,ionRouterOutlet:f,registerIonPage:T}},render(){const{components:t,registerIonPage:e,injectedRoute:n}=this;return Object(o["k"])("ion-router-outlet",{ref:"ionRouterOutlet"},t&&t.map(t=>{var r,i;let a={ref:t.vueComponentRef,key:t.pathname,isInOutlet:!0,registerIonPage:n=>e(t,n)};const s=null===(i=null===(r=t.matchedRoute)||void 0===r?void 0:r.props)||void 0===i?void 0:i.default,u=()=>{var e;const r=null===(e=t.vueComponentData)||void 0===e?void 0:e.propsFunctionResult;if(r)return r;{const e=s(n);return t.vueComponentData=Object.assign(Object.assign({},t.vueComponentData),{propsFunctionResult:e}),e}},c=s?!0===s?t.params:"function"===typeof s?u():s:null;return a=Object.assign(Object.assign({},a),c),Object(o["k"])(t.vueComponent,a)}))}}),it=Object(o["i"])({name:"IonTabButton",props:{_getTabState:{type:Function,default:()=>({})},disabled:Boolean,download:String,href:String,rel:String,layout:String,selected:Boolean,tab:String,target:String},setup(t,{slots:e}){const n=Object(o["l"])("navManager"),r=e=>{e.cancelable&&e.preventDefault();const{tab:r,href:i,_getTabState:o}=t,a=o(),s=a.tabs[r]||{},u=s.originalHref||i,c=s.currentHref||i,l=a.activeTab;l===r?u!==c&&n.resetTab(r,u):n.changeTab(r,c)};return()=>Object(o["k"])("ion-tab-button",Object.assign({onClick:r},t),e.default&&e.default())}}),ot="ionTabsWillChange",at="ionTabsDidChange",st=Object(o["i"])({name:"IonTabs",emits:[ot,at],render(){var t;const{$slots:e,$emit:n}=this,r=e.default&&e.default();
1992let i=[Object(o["k"])("div",{class:"tabs-inner",style:{position:"relative",flex:"1",contain:"layout size style"}},[Object(o["k"])(rt,{tabs:!0})])];if(r&&r.length>0){const e=r.find(t=>t.type&&"IonTabBar"===t.type.name),o=e&&"top"===(null===(t=e.props)||void 0===t?void 0:t.slot);e&&(e.props||(e.props={}),e.props._tabsWillChange=t=>n(ot,{tab:t}),e.props._tabsDidChange=t=>n(at,{tab:t})),i=o?[...r,...i]:[...i,...r]}return Object(o["k"])("ion-tabs",{style:{display:"flex",position:"absolute",top:"0",left:"0",right:"0",bottom:"0","flex-direction":"column",width:"100%",height:"100%",contain:"layout size style","z-index":"0"}},i)}}),ut=t=>{var e;return"IonTabButton"===(null===(e=t.type)||void 0===e?void 0:e.name)},ct=t=>{let e=[];return t.forEach(t=>{if(ut(t))e.push(t);else if(Array.isArray(t.children)&&t.children.length>1){const n=ct(t.children);e=[...e,...n]}}),e},lt=Object(o["i"])({name:"IonTabBar",props:{_tabsWillChange:{type:Function,default:()=>{}},_tabsDidChange:{type:Function,default:()=>{}}},data(){return{tabState:{activeTab:void 0,tabs:{}},tabVnodes:[]}},updated(){this.setupTabState(Object(o["l"])("navManager"))},methods:{setupTabState(t){const e=this.$data.tabState,n=Object(o["j"])(),r=this.$data.tabVnodes=ct(n.subTree.children||[]);r.forEach(t=>{e.tabs[t.props.tab]={originalHref:t.props.href,currentHref:t.props.href,ref:t},t.component.props._getTabState=()=>e}),this.checkActiveTab(t)},checkActiveTab(t){const e=t.getCurrentRouteInfo(),n=this.$data.tabVnodes,{tabs:r,activeTab:i}=this.$data.tabState,o=this.$data.tabState,a=Object.keys(r),s=a.find(t=>{const n=r[t].originalHref;return e.pathname.startsWith(n)});if(n.forEach(t=>{const e=r[t.props.tab];e&&e.originalHref===t.props.href||(r[t.props.tab]={originalHref:t.props.href,currentHref:t.props.href,ref:t})}),s&&i){const t=this.$data.tabState.tabs[i].currentHref;s===i&&t===e.pathname||(r[s]=Object.assign(Object.assign({},r[s]),{currentHref:e.pathname+(e.search||"")})),"pop"===e.routerAction&&s!==i&&(r[i]=Object.assign(Object.assign({},r[i]),{currentHref:r[i].originalHref}))}const u=n.find(t=>{var e;return ut(t)&&(null===(e=t.props)||void 0===e?void 0:e.tab)===s}),c=this.$refs.ionTabBar,l=s!==i;c&&(u?(l&&this.$props._tabsWillChange(s),t.handleSetCurrentTab(s),c.selectedTab=o.activeTab=s,l&&this.$props._tabsDidChange(s)):c.selectedTab=o.activeTab="")}},mounted(){const t=Object(o["l"])("navManager");this.setupTabState(t),t.registerHistoryChangeListener(()=>this.checkActiveTab(t))},setup(t,{slots:e}){return()=>Object(o["k"])("ion-tab-bar",{ref:"ionTabBar"},e.default&&e.default())}}),ft=Object(o["G"])([]),ht=Object(o["i"])({name:"IonApp",setup(t,{attrs:e,slots:n}){return()=>Object(o["k"])("ion-app",Object.assign({},e),[n.default&&n.default(),...ft.value])}}),dt=t=>{ft.value=[...ft.value,t]},pt=t=>{ft.value=ft.value.filter(e=>e!==t)},vt=(t=dt,e=pt)=>{let n;const r=(e,r,i={},a)=>{delete i["modal"],delete i["popover"];const s=document.createElement("div");return a&&s.classList.add(...a),e.appendChild(s),n=Object(o["k"])(o["b"],{to:s},Object(o["k"])(r,Object.assign({},i))),t(n),s},i=()=>(n&&e(n),Promise.resolve());return{attachViewToDom:r,removeViewFromDom:i}},gt=(Object(o["i"])({name:"IonNav",setup(){const t=Object(o["G"])([]),e=e=>t.value=[...t.value,e],n=e=>t.value=t.value.filter(t=>t!==e),r=vt(e,n);return()=>Object(o["k"])("ion-nav",{delegate:r},t.value)}}),Object(o["i"])({name:"IonIcon",props:{ariaLabel:String,color:String,flipRtl:Boolean,icon:String,ios:String,lazy:String,md:String,mode:String,name:String,size:String,src:String},setup(t,{slots:e}){return()=>{var n,r;const{icon:i,ios:s,md:u}=t;let c;return c=s||u?Object(a["a"])("ios")?null!==(n=null!==s&&void 0!==s?s:u)&&void 0!==n?n:i:null!==(r=null!==u&&void 0!==u?u:s)&&void 0!==r?r:i:i,Object(o["k"])("ion-icon",Object.assign(Object.assign({},t),{icon:c}),e)}}}));let mt=!1,yt=!1,bt=!1,wt=!1;const _t=t=>{const e=t.vnode.props;mt||void 0===e.onOnWillPresent||(console.warn("[@ionic/vue Deprecation]: @onWillPresent has been deprecated in favor of @willPresent and will be removed in Ionic Vue v6.0."),mt=!0),yt||void 0===e.onOnDidPresent||(console.warn("[@ionic/vue Deprecation]: @onDidPresent has been deprecated 
1992in favor of @didPresent and will be removed in Ionic Vue v6.0."),yt=!0),bt||void 0===e.onOnWillDismiss||(console.warn("[@ionic/vue Deprecation]: @onWillDismiss has been deprecated in favor of @willDismiss and will be removed in Ionic Vue v6.0."),bt=!0),wt||void 0===e.onOnDidDismiss||(console.warn("[@ionic/vue Deprecation]: @onDidDismiss has been deprecated in favor of @didDismiss and will be removed in Ionic Vue v6.0."),wt=!0)},Et=(t,e=[],n)=>{const r=t.toLowerCase().split("-").join(""),i=[{componentEv:r+"willpresent",frameworkEv:"willPresent",deprecatedEv:"onWillPresent"},{componentEv:r+"didpresent",frameworkEv:"didPresent",deprecatedEv:"onDidPresent"},{componentEv:r+"willdismiss",frameworkEv:"willDismiss",deprecatedEv:"onWillDismiss"},{componentEv:r+"diddismiss",frameworkEv:"didDismiss",deprecatedEv:"onDidDismiss"}],a=[{componentEv:t+"-will-present",frameworkEv:"willPresent",deprecatedEv:"onWillPresent"},{componentEv:t+"-did-present",frameworkEv:"didPresent",deprecatedEv:"onDidPresent"},{componentEv:t+"-will-dismiss",frameworkEv:"willDismiss",deprecatedEv:"onWillDismiss"},{componentEv:t+"-did-dismiss",frameworkEv:"didDismiss",deprecatedEv:"onDidDismiss"}],s=Object(o["i"])((t,{slots:e,emit:r})=>{const s=Object(o["j"])(),u=X(s.appContext.app.version)?a:i;_t(s);const c=Object(o["C"])(),l=async()=>{const e=t.isOpen;e&&await p(t)},f=async(e,n)=>{const r=e.props.isOpen,i=n.props.isOpen;r!==i&&(r?await p(t):await d())},h=async()=>{await d()},d=async()=>{c.value&&(await c.value,c.value=c.value.dismiss(),await c.value,c.value=void 0)},p=async t=>{var i;if(c.value&&await c.value,null===(i=c.value)||void 0===i?void 0:i.present)return void await c.value.present();const o=Object.assign({},t);delete o.onWillPresent,delete o.onDidPresent,delete o.onWillDismiss,delete o.onDidDismiss;const a=e.default&&e.default()[0];c.value=n.create(Object.assign(Object.assign({},o),{component:a})),c.value=await c.value,u.forEach(t=>{c.value.addEventListener(t.componentEv,()=>{r(t.frameworkEv),r(t.deprecatedEv)})}),await c.value.present()};return()=>Object(o["k"])("div",{style:{display:"none"},onVnodeMounted:l,onVnodeUpdated:f,onVnodeBeforeUnmount:h,isOpen:t.isOpen})});return s.displayName=t,s.props=[...e,"isOpen"],s.emits=["willPresent","didPresent","willDismiss","didDismiss","onWillPresent","onDidPresent","onWillDismiss","onDidDismiss"],s},Ot=(u["c"],u["b"],u["k"],Et("ion-modal",["animated","backdropDismiss","component","componentProps","cssClass","enterAnimation","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","swipeToClose"],u["l"])),It=(u["m"],u["d"],u["o"],(t,e,n)=>{if(n){const r=n,i=r.proxy[t]||(r.proxy[t]=[]),o=(...t)=>{if(!r.isUnmounted)return t?e(...t):e()};return i.push(o),o}console.warn("[@ionic/vue]: Ionic Lifecycle Hooks can only be used during execution of setup().")}),Tt=t=>(e,n=Object(o["j"])())=>It(t,e,n),St=Tt(V.WillEnter),kt=(Tt(V.DidEnter),Tt(V.WillLeave),Tt(V.DidLeave),u["l"].create.bind(u["l"]));u["l"].create=t=>kt(Object.assign(Object.assign({},t),{delegate:vt()}));const Ct=u["d"].create.bind(u["d"]);u["d"].create=t=>Ct(Object.assign(Object.assign({},t),{delegate:vt()})),Object(r["a"])({"arrow-back-sharp":i["b"],"caret-back-sharp":i["g"],"chevron-back":i["i"],"chevron-forward":i["j"],close:i["k"],"close-circle":i["l"],"close-sharp":i["m"],"menu-outline":i["o"],"menu-sharp":i["p"],"reorder-two-sharp":i["t"],"reorder-three-outline":i["s"],"search-outline":i["x"],"search-sharp":i["y"]})},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(t,e,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),u=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,n,r=a(t),i=s.f,c=o(r),l={},f=0;while(c.length>f)n=i(r,e=c[f++]),void 0!==n&&u(l,e,n);return l}})},dd40:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},ddb0:function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("e260"),a=n("9112"),s=n("b622"),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var f in i){var h=r[f],d=h&&h.prototype;if(d){if(d[u]!==l)try{a(d,u,l)}catch(v){d[u]=l}if(d[c]||a(d,c,f),i[f])for(var p in o)if(d[p]!==o[p])try{a(d,p,o[p])}catch(v){d[p]=o[p]}}}},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,r="/"===a.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),a="/"===o(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&a&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;
vendor: 4,103 bytes, lines 1992-1997
1992return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e01a:function(t,e,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("5135"),s=n("861d"),u=n("9bf2").f,c=n("e893"),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new l(t):void 0===t?l():l(t);return""===t&&(f[e]=!0),e};c(h,l);var d=h.prototype=l.prototype;d.constructor=h;var p=d.toString,v="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(a(f,t))return"";var n=v?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},e09e:function(t,e,n){},e163:function(t,e,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("7dd0"),u="Array Iterator",c=a.set,l=a.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),u=i((function(){a(1)})),c=!s||u;r({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},e538:function(t,e,n){var r=n("b622");e.f=r},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e680:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return vc})),n.d(e,"b",(function(){return gc})),n.d(e,"c",(function(){return oc})),n.d(e,"d",(function(){return ic})),n.d(e,"e",(function(){return I})),n.d(e,"f",(function(){return cc})),n.d(e,"g",(function(){return uc})),n.d(e,"h",(function(){return Ys})),n.d(e,"i",(function(){return mc})),n.d(e,"j",(function(){return bc})),n.d(e,"k",(function(){return Bs})),n.d(e,"l",(function(){return Ic})),n.d(e,"m",(function(){return fc})),n.d(e,"n",(function(){return rc})),n.d(e,"o",(function(){return Ec})),n.d(e,"p",(function(){return sc})),n.d(e,"q",(function(){return Tc})),n.d(e,"r",(function(){return Oc})),n.d(e,"s",(function(){return wc})),n.d(e,"t",(function(){return $s}));var r=n("a8e9"),i=n("abfd"),o=n("c7b2"),a=n("a2cd"),s=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.sequenceNumberHandler=function(t){return n.t(t)},this.i=function(t){return e.writeSequenceNumber(t)})}return t.prototype.t=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.i&&this.i(t),t},t}();s.o=-1;
1993/**
1994 * @license
1995 * Copyright 2017 Google LLC
1996 *
1997 * Licensed under the Apache License, Version 2.0 (the "License");
1998 * you may not use this file except in compliance with the License.
1999 * You may obtain a copy of the License at
2000 *
2001 *   http://www.apache.org/licenses/LICENSE-2.0
2002 *
2003 * Unless required by applicable law or agreed to in writing, software
2004 * distributed under the License is distributed on an "AS IS" BASIS,
2005 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2006 * See the License for the specific language governing permissions and
2007 * limitations under the License.
2008 */
2009var u={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},c=function(t){function e(e,n){var r=this;return(r=t.call(this,n)||this).code=e,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return Object(a["b"])(e,t),e}(Error),l=new i["b"]("@firebase/firestore");function f(){return l.logLevel}function h(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(l.logLevel<=i["a"].DEBUG){var r=e.map(v);l.debug.apply(l,Object(a["d"])(["Firestore (8.5.0): "+t],r))}}function d(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(l.logLevel<=i["a"].ERROR){var r=e.map(v);l.error.apply(l,Object(a["d"])(["Firestore (8.5.0): "+t],r))}}function p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(l.logLevel<=i["a"].WARN){var r=e.map(v);l.warn.apply(l,Object(a["d"])(["Firestore (8.5.0): "+t],r))}}function v(t){if("string"==typeof t)return t;try{return e=t,JSON.stringify(e)}catch(e){return t}var e}
2010/**
2011 * @license
2012 * Copyright 2017 Google LLC
2013 *
2014 * Licensed under the Apache License, Version 2.0 (the "License");
2015 * you may not use this file except in compliance with the License.
2016 * You may obtain a copy of the License at
2017 *
2018 *   http://www.apache.org/licenses/LICENSE-2.0
2019 *
2020 * Unless required by applicable law or agreed to in writing, software
2021 * distributed under the License is distributed on an "AS IS" BASIS,
2022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2023 * See the License for the specific language governing permissions and
2024 * limitations under the License.
2025 */function g(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE (8.5.0) INTERNAL ASSERTION FAILED: "+t;throw d(e),new Error(e)}function m(t,e){t||g()}function y(t,e){return t}
2026/**
2027 * @license
2028 * Copyright 2020 Google LLC
2029 *
2030 * Licensed under the Apache License, Version 2.0 (the "License");
2031 * you may not use this file except in compliance with the License.
2032 * You may obtain a copy of the License at
2033 *
2034 *   http://www.apache.org/licenses/LICENSE-2.0
2035 *
2036 * Unless required by applicable law or agreed to in writing, software
2037 * distributed under the License is distributed on an "AS IS" BASIS,
2038 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2039 * See the License for the specific language governing permissions and
2040 * limitations under the License.
2041 */function b(t){var e="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(n);else for(var r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}
2042/**
2043 * @license
2044 * Copyright 2017 Google LLC
2045 *
2046 * Licensed under the Apache License, Version 2.0 (the "License");
2047 * you may not use this file except in compliance with the License.
2048 * You may obtain a copy of the License at
2049 *
2050 *   http://www.apache.org/licenses/LICENSE-2.0
2051 *
2052 * Unless required by applicable law or agreed to in writing, software
2053 * distributed under the License is distributed on an "AS IS" BASIS,
2054 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2055 * See the License for the specific language governing permissions and
2056 * limitations under the License.
2057 */var w=function(){function t(){}return t.u=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var r=b(40),i=0;i<r.length;++i)n.length<20&&r[i]<e&&(n+=t.charAt(r[i]%t.length));return n},t}();function _(t,e){return t<e?-1:t>e?1:0}function E(t,e,n){return t.length===e.length&&t.every((function(t,r){return n(t,e[r])}))}function O(t){return t+"\0"}
2058/**
2059 * @license
2060 * Copyright 2017 Google LLC
2061 *
2062 * Licensed under the Apache License, Version 2.0 (the "License");
2063 * you may not use this file except in compliance with the License.
2064 * You may obtain a copy of the License at
2065 *
2066 *   http://www.apache.org/licenses/LICENSE-2.0
2067 *
2068 * Unless required by applicable law or agreed to in writing, software
2069 * distributed under the License is distributed on an "AS IS" BASIS,
2070 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2071 * See the License for the specific language governing permissions and
2072 * limitations under the License.
2073 */var I=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new c(u.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new c(u.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new c(u.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new c(u.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,Math.floor(1e6*(e-1e3*n)))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype._compareTo=function(t){return this.seconds===t.seconds?_(this.nanoseconds,t.nanoseconds):_(this.seconds,t.seconds)},t.prototype.isEqual=function(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds},t.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},t.prototype.toJSON=function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}},t.prototype.valueOf=function(){var t=this.seconds- -62135596800;return String(t).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},t}(),T=function(){function t(t){this.timestamp=t}return t.fromTimestamp=function(e){return new t(e)},t.min=function(){return new t(new I(0,0))},t.prototype.compareTo=function(t){return this.timestamp._compareTo(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.toTimestamp=function(){return this.timestamp},t}();
2074/**
2075 * @license
2076 * Copyright 2017 Google LLC
2077 *
2078 * Licensed under the Apache License, Version 2.0 (the "License");
2079 * you may not use this file except in compliance with the License.
2080 * You may obtain a copy of the License at
2081 *
2082 *   http://www.apache.org/licenses/LICENSE-2.0
2083 *
2084 * Unless required by applicable law or agreed to in writing, software
2085 * distributed under the License is distributed on an "AS IS" BASIS,
2086 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2087 * See the License for the specific language governing permissions and
2088 * limitations under the License.
2089 */
2090/**
2091 * @license
2092 * Copyright 2017 Google LLC
2093 *
2094 * Licensed under the Apache License, Version 2.0 (the "License");
2095 * you may not use this file except in compliance with the License.
2096 * You may obtain a copy of the License at
2097 *
2098 *   http://www.apache.org/licenses/LICENSE-2.0
2099 *
2100 * Unless required by applicable law or agreed to in writing, software
2101 * distributed under the License is distributed on an "AS IS" BASIS,
2102 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2103 * See the License for the specific language governing permissions and
2104 * limitations under the License.
2105 */function S(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function k(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function C(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}
2106/**
2107 * @license
2108 * Copyright 2017 Google LLC
2109 *
2110 * Licensed under the Apache License, Version 2.0 (the "License");
2111 * you may not use this file except in compliance with the License.
2112 * You may obtain a copy of the License at
2113 *
2114 *   http://www.apache.org/licenses/LICENSE-2.0
2115 *
2116 * Unless required by applicable law or agreed to in writing, softw
2116are
2117 * distributed under the License is distributed on an "AS IS" BASIS,
2118 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2119 * See the License for the specific language governing permissions and
2120 * limitations under the License.
2121 */var x=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&g(),void 0===n?n=t.length-e:n>t.length-e&&g(),this.segments=t,this.offset=e,this.len=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.len},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.comparator(this,e)},t.prototype.child=function(e){var n=this.segments.slice(this.offset,this.limit());return e instanceof t?e.forEach((function(t){n.push(t)})):n.push(e),this.construct(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.popFirst=function(t){return t=void 0===t?1:t,this.construct(this.segments,this.offset+t,this.length-t)},t.prototype.popLast=function(){return this.construct(this.segments,this.offset,this.length-1)},t.prototype.firstSegment=function(){return this.segments[this.offset]},t.prototype.lastSegment=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.isEmpty=function(){return 0===this.length},t.prototype.isPrefixOf=function(t){if(t.length<this.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.isImmediateParentOf=function(t){if(this.length+1!==t.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.forEach=function(t){for(var e=this.offset,n=this.limit();e<n;e++)t(this.segments[e])},t.prototype.toArray=function(){return this.segments.slice(this.offset,this.limit())},t.comparator=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){var i=t.get(r),o=e.get(r);if(i<o)return-1;if(i>o)return 1}return t.length<e.length?-1:t.length>e.length?1:0},t}(),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["b"])(e,t),e.prototype.construct=function(t,n,r){return new e(t,n,r)},e.prototype.canonicalString=function(){return this.toArray().join("/")},e.prototype.toString=function(){return this.canonicalString()},e.fromString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=[],i=0,o=t;i<o.length;i++){var a=o[i];if(a.indexOf("//")>=0)throw new c(u.INVALID_ARGUMENT,"Invalid segment ("+a+"). Paths must not contain // in them.");r.push.apply(r,a.split("/").filter((function(t){return t.length>0})))}return new e(r)},e.emptyPath=function(){return new e([])},e}(x),A=/^[_a-zA-Z][_a-zA-Z0-9]*$/,N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["b"])(e,t),e.prototype.construct=function(t,n,r){return new e(t,n,r)},e.isValidIdentifier=function(t){return A.test(t)},e.prototype.canonicalString=function(){return this.toArray().map((function(t){return t=t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),e.isValidIdentifier(t)||(t="`"+t+"`"),t})).join(".")},e.prototype.toString=function(){return this.canonicalString()},e.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},e.keyField=function(){return new e(["__name__"])},e.fromServerFormat=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new c(u.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},a=!1;i<t.length;){var s=t[i];if("\\"===s){if(i+1===t.length)throw new c(u.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var l=t[i+1];if("\\"!==l&&"."!==l&&"`"!==l)throw new c(u.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);r+=l,i+=2}else"`"===s?(a=!a,i++):"."!==s||a?(r+=s,i++):(o(),i++)}if(o(),a)throw new c(u.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e.emptyPath=function(){return new e([])},e}(x),P=function(){function t(t){this.fields=t,t.sort(N.comparator)}return t.prototype.covers=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].isPrefixOf(t))return!0;return!1},t.prototype.isEqual=function(t){return E(this.fields,t.fields,(function(t,e){return t.isEqual(e)}))},t}(),R=function(){function t(t){this.binaryString=t}return t.fromBase64String=function(e){return new t(atob(e))},t.fromUint8Array=function(e){return new t(function(t){for(var e="",n=0;n<t.length;++n)e+=String.fromCharCode(t[n]);return e}(e))},t.prototype.toBase64=function(){return t=this.binaryString,btoa(t);var t},t.prototype.toUint8Array=function(){return function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}(this.binaryString)},t.prototype.approximateByteSize=function(){return 2*this.binaryString.length},t.prototype.compareTo=function(t){return _(this.binaryString,t.binaryString)},t.prototype.isEqual=function(t){return this.binaryString===t.binaryString},t}();R.EMPTY_BYTE_STRING=new R("");var D=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function L(t){if(m(!!t),"string"==typeof t){var e=0,n=D.exec(t);if(m(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),e=Number(r)}var i=new Date(t);return{seconds:Math.floor(i.getTime()/1e3),nanos:e}}return{seconds:M(t.seconds),nanos:M(t.nanos)}}function M(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function F(t){return"string"==typeof t?R.fromBase64String(t):R.fromUint8Array(t)}
2122/**
2123 * @license
2124 * Copyright 2020 Google LLC
2125 *
2126 * Licensed under the Apache License, Version 2.0 (the "License");
2127 * you may not use this file except in compliance with the License.
2128 * You may obtain a copy of the License at
2129 *
2130 *   http://www.apache.org/licenses/LICENSE-2.0
2131 *
2132 * Unless required by applicable law or agreed to in writing, software
2133 * distributed under the License is distributed on an "AS IS" BASIS,
2134 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2135 * See the License for the specific language governing permissions and
2136 * limitations under the License.
2137 */function U(t){var e,n;return"server_timestamp"===(null===(n=((null===(e=null==t?void 0:t.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function q(t){var e=t.mapValue.fields.__previous_value__;return U(e)?q(e):e}function $(t){var e=L(t.mapValue.fields.__local_write_time__.timestampValue);return new I(e.seconds,e.nanos)}
2138/**
2139 * @license
2140 * Copyright 2017 Google LLC
2141 *
2142 * Licensed under the Apache License, Version 2.0 (the "License");
2143 * you may not use this file except in compliance with the License.
2144 * You may obtain a copy of the License at
2145 *
2146 *   http://www.apache.org/licenses/LICENSE-2.0
2147 *
2148 * Unless required by applicable law or agreed to in writing, software
2149 * distributed under the License is distributed on an "AS IS" BASIS,
2150 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2151 * See the License for the specific language governing permissions and
2152 * limitations under the License.
2153 */function B(t){return null==t}function V(t){return 0===t&&1/t==-1/0}function K(t){return"number"==typeof t&&Number.isInteger(t)&&!V(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}
2154/**
2155 * @license
2156 * Copyright 2017 Google LLC
2157 *
2158 * Licensed under the Apache License, Version 2.0 (the "License");
2159 * you may not use this file except in compliance with the License.
2160 * You may obtain a copy of the License at
2161 *
2162 *   http://www.apache.org/licenses/LICENSE-2.0
2163 *
2164 * Unless required by applicable law or agreed to in writing, software
2165 * distributed under the License is distributed on an "AS IS" BASIS,
2166 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2167 * See the License for the specific language governing permissions and
2168 * limitations under the License.
2169 */var W=function(){function t(t){this.path=t}return t.fromPath=function(e){return new t(j.fromString(e))},t.fromName=function(e){return new t(j.fromString(e).popFirst(5))},t.prototype.hasCollectionId=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===j.comparator(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.comparator=function(t,e){return j.comparator(t.path,e.path)},t.isDocumentKey=function(t){return t.length%2==0},t.fromSegments=function(e){return new t(new j(e.slice()))},t}();
2170/**
2171 * @license
2172 * Copyright 2020 Google LLC
2173 *
2174 * Licensed under the Apache License, Version 2.0 (the "License");
2175 * you may not use this file except in compliance with the License.
2176 * You may obtain a copy of the License at
2177 *
2178 *   http://www.apache.org/licenses/LICENSE-2.0
2179 *
2180 * Unless required by applicable law or agreed to in writing, software
2181 * distributed under the License is distributed on an "AS IS" BASIS,
2182 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2183 * See the License for the specific language governing permissions and
2184 * limitations under the License.
2185 */function z(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?U(t)?4:10:g()}function H(t,e){var n=z(t);if(n!==z(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return $(t).isEqual($(e));case 3:return function(t,e){if("string"==typeof t.timestampValue&&"string"==typeof e.timestampValue&&t.timestampValue.length===e.timestampValue.length)return t.timestampValue===e.timestampValue;var n=L(t.timestampValue),r=L(e.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(t,e){return F(t.bytesValue).isEqual(F(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return M(t.geoPointValue.latitude)===M(e.geoPointValue.latitude)&&M(t.geoPointValue.longitude)===M(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return M(t.integerValue)===M(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=M(t.doubleValue),r=M(e.doubleValue);return n===r?V(n)===V(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return E(t.arrayValue.values||[],e.arrayValue.values||[],H);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(S(n)!==S(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!H(n[i],r[i])))return!1;return!0}(t,e);default:return g()}}function G(t,e){return void 0!==(t.values||[]).find((function(t){return H(t,e)}))}function X(t,e){var n=z(t),r=z(e);
2185if(n!==r)return _(n,r);switch(n){case 0:return 0;case 1:return _(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=M(t.integerValue||t.doubleValue),r=M(e.integerValue||e.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(t,e);case 3:return Y(t.timestampValue,e.timestampValue);case 4:return Y($(t),$(e));case 5:return _(t.stringValue,e.stringValue);case 6:return function(t,e){var n=F(t),r=F(e);return n.compareTo(r)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),r=e.split("/"),i=0;i<n.length&&i<r.length;i++){var o=_(n[i],r[i]);if(0!==o)return o}return _(n.length,r.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=_(M(t.latitude),M(e.latitude));return 0!==n?n:_(M(t.longitude),M(e.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(t,e){for(var n=t.values||[],r=e.values||[],i=0;i<n.length&&i<r.length;++i){var o=X(n[i],r[i]);if(o)return o}return _(n.length,r.length)}(t.arrayValue,e.arrayValue);case 10:return function(t,e){var n=t.fields||{},r=Object.keys(n),i=e.fields||{},o=Object.keys(i);r.sort(),o.sort();for(var a=0;a<r.length&&a<o.length;++a){var s=_(r[a],o[a]);if(0!==s)return s;var u=X(n[r[a]],i[o[a]]);if(0!==u)return u}return _(r.length,o.length)}(t.mapValue,e.mapValue);default:throw g()}}function Y(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return _(t,e);var n=L(t),r=L(e),i=_(n.seconds,r.seconds);return 0!==i?i:_(n.nanos,r.nanos)}function Q(t){return J(t)}function J(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?function(t){var e=L(t);return"time("+e.seconds+","+e.nanos+")"}(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?F(t.bytesValue).toBase64():"referenceValue"in t?(n=t.referenceValue,W.fromName(n).toString()):"geoPointValue"in t?"geo("+(e=t.geoPointValue).latitude+","+e.longitude+")":"arrayValue"in t?function(t){for(var e="[",n=!0,r=0,i=t.values||[];r<i.length;r++)n?n=!1:e+=",",e+=J(i[r]);return e+"]"}(t.arrayValue):"mapValue"in t?function(t){for(var e="{",n=!0,r=0,i=Object.keys(t.fields||{}).sort();r<i.length;r++){var o=i[r];n?n=!1:e+=",",e+=o+":"+J(t.fields[o])}return e+"}"}(t.mapValue):g();var e,n}function Z(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.canonicalString()}}function tt(t){return!!t&&"integerValue"in t}function et(t){return!!t&&"arrayValue"in t}function nt(t){return!!t&&"nullValue"in t}function rt(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function it(t){return!!t&&"mapValue"in t}
2186/**
2187 * @license
2188 * Copyright 2017 Google LLC
2189 *
2190 * Licensed under the Apache License, Version 2.0 (the "License");
2191 * you may not use this file except in compliance with the License.
2192 * You may obtain a copy of the License at
2193 *
2194 *   http://www.apache.org/licenses/LICENSE-2.0
2195 *
2196 * Unless required by applicable law or agreed to in writing, software
2197 * distributed under the License is distributed on an "AS IS" BASIS,
2198 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2199 * See the License for the specific language governing permissions and
2200 * limitations under the License.
2201 */var ot=function(){function t(t){this.overlayMap=new Map,this.partialValue=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(e){return t.extractNestedValue(this.buildProto(),e)},t.prototype.toProto=function(){return this.field(N.emptyPath())},t.prototype.set=function(t,e){this.setOverlay(t,e)},t.prototype.setAll=function(t){var e=this;t.forEach((function(t,n){t?e.set(n,t):e.delete(n)}))},t.prototype.delete=function(t){this.setOverlay(t,null)},t.prototype.isEqual=function(t){return H(this.buildProto(),t.buildProto())},t.prototype.setOverlay=function(t,e){for(var n=this.overlayMap,r=0;r<t.length-1;++r){var i=t.get(r),o=n.get(i);o instanceof Map?n=o:o&&10===z(o)?(o=new Map(Object.entries(o.mapValue.fields||{})),n.set(i,o),n=o):(o=new Map,n.set(i,o),n=o)}n.set(t.lastSegment(),e)},t.prototype.applyOverlay=function(e,n){var r=this,i=!1,o=t.extractNestedValue(this.partialValue,e),a=it(o)?Object.assign({},o.mapValue.fields):{};
2201return n.forEach((function(t,n){if(t instanceof Map){var o=r.applyOverlay(e.child(n),t);null!=o&&(a[n]=o,i=!0)}else null!==t?(a[n]=t,i=!0):a.hasOwnProperty(n)&&(delete a[n],i=!0)})),i?{mapValue:{fields:a}}:null},t.prototype.buildProto=function(){var t=this.applyOverlay(N.emptyPath(),this.overlayMap);return null!=t&&(this.partialValue=t,this.overlayMap.clear()),this.partialValue},t.extractNestedValue=function(t,e){if(e.isEmpty())return t;for(var n=t,r=0;r<e.length-1;++r){if(!n.mapValue.fields)return null;if(!it(n=n.mapValue.fields[e.get(r)]))return null}return(n=(n.mapValue.fields||{})[e.lastSegment()])||null},t.prototype.clone=function(){return new t(this.buildProto())},t}();function at(t){var e=[];return k(t.fields||{},(function(t,n){var r=new N([t]);if(it(n)){var i=at(n.mapValue).fields;if(0===i.length)e.push(r);else for(var o=0,a=i;o<a.length;o++){var s=a[o];e.push(r.child(s))}}else e.push(r)})),new P(e)
2202/**
2203 * @license
2204 * Copyright 2017 Google LLC
2205 *
2206 * Licensed under the Apache License, Version 2.0 (the "License");
2207 * you may not use this file except in compliance with the License.
2208 * You may obtain a copy of the License at
2209 *
2210 *   http://www.apache.org/licenses/LICENSE-2.0
2211 *
2212 * Unless required by applicable law or agreed to in writing, software
2213 * distributed under the License is distributed on an "AS IS" BASIS,
2214 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2215 * See the License for the specific language governing permissions and
2216 * limitations under the License.
2217 */}var st=function(){function t(t,e,n,r,i){this.key=t,this.documentType=e,this.version=n,this.data=r,this.documentState=i}return t.newInvalidDocument=function(e){return new t(e,0,T.min(),ot.empty(),0)},t.newFoundDocument=function(e,n,r){return new t(e,1,n,r,0)},t.newNoDocument=function(e,n){return new t(e,2,n,ot.empty(),0)},t.newUnknownDocument=function(e,n){return new t(e,3,n,ot.empty(),2)},t.prototype.convertToFoundDocument=function(t,e){return this.version=t,this.documentType=1,this.data=e,this.documentState=0,this},t.prototype.convertToNoDocument=function(t){return this.version=t,this.documentType=2,this.data=ot.empty(),this.documentState=0,this},t.prototype.convertToUnknownDocument=function(t){return this.version=t,this.documentType=3,this.data=ot.empty(),this.documentState=2,this},t.prototype.setHasCommittedMutations=function(){return this.documentState=2,this},t.prototype.setHasLocalMutations=function(){return this.documentState=1,this},Object.defineProperty(t.prototype,"hasLocalMutations",{get:function(){return 1===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCommittedMutations",{get:function(){return 2===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.hasLocalMutations||this.hasCommittedMutations},enumerable:!1,configurable:!0}),t.prototype.isValidDocument=function(){return 0!==this.documentType},t.prototype.isFoundDocument=function(){return 1===this.documentType},t.prototype.isNoDocument=function(){return 2===this.documentType},t.prototype.isUnknownDocument=function(){return 3===this.documentType},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)},t.prototype.clone=function(){return new t(this.key,this.documentType,this.version,this.data.clone(),this.documentState)},t.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+JSON.stringify(this.data.toProto())+", {documentType: "+this.documentType+"}), {documentState: "+this.documentState+"})"},t}(),ut=function(t,e,n,r,i,o,a){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=a,this.h=null};
2218/**
2219 * @license
2220 * Copyright 2019 Google LLC
2221 *
2222 * Licensed under the Apache License, Version 2.0 (the "License");
2223 * you may not use this file except in compliance with the License.
2224 * You may obtain a copy of the License at
2225 *
2226 *   http://www.apache.org/licenses/LICENSE-2.0
2227 *
2228 * Unless required by applicable law or agreed to in writing, software
2229 * distributed under the License is distributed on an "AS IS" BASIS,
2230 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2231 * See the License for the specific language governing permissions and
2232 * limitations under the License.
2233 */function ct(t,e,n,r,i,o,a){return void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null),new ut(t,e,n,r,i,o,a)}function lt(t){var e=y(t);if(null===e.h){var n=e.path.canonicalString();null!==e.collectionGroup&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map((function(t){return function(t){return t.field.canonicalString()+t.op.toString()+Q(t.value)}(t)})).join(","),n+="|ob:",n+=e.orderBy.map((function(t){return function(t){return t.field.canonicalString()+t.dir}(t)})).join(","),B(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=Ot(e.startAt)),e.endAt&&(n+="|ub:",n+=Ot(e.endAt)),e.h=n}return e.h}function ft(t,e){if(t.limit!==e.limit)return!1;if(t.orderBy.length!==e.orderBy.length)return!1;for(var n=0;n<t.orderBy.length;n++)if(!Tt(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(var r=0;r<t.filters.length;r++)if(i=t.filters[r],o=e.filters[r],i.op!==o.op||!i.field.isEqual(o.field)||!H(i.value,o.value))return!1;var i,o;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!kt(t.startAt,e.startAt)&&kt(t.endAt,e.endAt)}function ht(t){return W.isDocumentKey(t.path)&&null===t.collectionGroup&&0===t.filters.length}var dt=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).field=e,i.op=n,i.value=r,i}return Object(a["b"])(e,t),e.create=function(t,n,r){return t.isKeyField()?"in"===n||"not-in"===n?this.l(t,n,r):new pt(t,n,r):"array-contains"===n?new yt(t,r):"in"===n?new bt(t,r):"not-in"===n?new wt(t,r):"array-contains-any"===n?new _t(t,r):new e(t,n,r)},e.l=function(t,e,n){return"in"===e?new vt(t,n):new gt(t,n)},e.prototype.matches=function(t){var e=t.data.field(this.field);return"!="===this.op?null!==e&&this.m(X(e,this.value)):null!==e&&z(this.value)===z(e)&&this.m(X(e,this.value))},e.prototype.m=function(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case"!=":return 0!==t;case">":return t>0;case">=":return t>=0;default:return g()}},e.prototype.g=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},e}((function(){})),pt=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=W.fromName(r.referenceValue),i}return Object(a["b"])(e,t),e.prototype.matches=function(t){var e=W.comparator(t.key,this.key);return this.m(e)},e}(dt),vt=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=mt("in",n),r}return Object(a["b"])(e,t),e.prototype.matches=function(t){return this.keys.some((function(e){return e.isEqual(t.key)}))},e}(dt),gt=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"not-in",n)||this).keys=mt("not-in",n),r}return Object(a["b"])(e,t),e.prototype.matches=function(t){return!this.keys.some((function(e){return e.isEqual(t.key)}))},e}(dt);function mt(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map((function(t){return W.fromName(t.referenceValue)}))}var yt=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return Object(a["b"])(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return et(e)&&G(e.arrayValue,this.value)},e}(dt),bt=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return Object(a["b"])(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return null!==e&&G(this.value.arrayValue,e)},e}(dt),wt=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return Object(a["b"])(e,t),e.prototype.matches=function(t){if(G(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var e=t.data.field(this.field);return null!==e&&!G(this.value.arrayValue,e)},e}(dt),_t=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return Object(a["b"])(e,t),e.prototype.matches=function(t){var e=this,n=t.data.field(this.field);return!(!et(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return G(e.value.arrayValue,t)}))},e}(dt),Et=function(t,e){this.position=t,this.before=e};function Ot(t){return(t.before?"b":"a")+":"+t.position.map((function(t){return Q(t)})).join(",")}var It=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function Tt(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}function St(t,e,n){for(var r=0,i=0;i<t.position.length;i++){var o=e[i],a=t.position[i];if(r=o.field.isKeyField()?W.comparator(W.fromName(a.referenceValue),n.key):X(a,n.data.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return t.before?r<=0:r<0}function kt(t,e){if(null===t)return null===e;if(null===e)return!1;if(t.before!==e.before||t.position.length!==e.position.length)return!1;for(var n=0;n<t.position.length;n++)if(!H(t.position[n],e.position[n]))return!1;return!0}
2234/**
2235 * @license
2236 * Copyright 2017 Google LLC
2237 *
2238 * Licensed under the Apache License, Version 2.0 (the "License");
2239 * you may not use this file except in compliance with the License.
2240 * You may obtain a copy of the License at
2241 *
2242 *   http://www.apache.org/licenses/LICENSE-2.0
2243 *
2244 * Unless required by applicable law or agreed to in writing, software
2245 * distributed under the License is distributed on an "AS IS" BASIS,
2246 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2247 * See the License for the specific language governing permissions and
2248 * limitations under the License.
2249 */var Ct=function(t,e,n,r,i,o,a,s){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o="F"),void 0===a&&(a=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=o,this.startAt=a,this.endAt=s,this.p=null,this.T=null,this.startAt,this.endAt};function xt(t,e,n,r,i,o,a,s){return new Ct(t,e,n,r,i,o,a,s)}function jt(t){return new Ct(t)}function At(t){return!B(t.limit)&&"F"===t.limitType}function Nt(t){return!B(t.limit)&&"L"===t.limitType}function Pt(t){return t.explicitOrderBy.length>0?t.explicitOrderBy[0].field:null}function Rt(t){for(var e=0,n=t.filters;e<n.length;e++){var r=n[e];if(r.g())return r.field}return null}function Dt(t){return null!==t.collectionGroup}function Lt(t){var e=y(t);if(null===e.p){e.p=[];var n=Rt(e),r=Pt(e);if(null!==n&&null===r)n.isKeyField()||e.p.push(new It(n)),e.p.push(new It(N.keyField(),"asc"));else{for(var i=!1,o=0,a=e.explicitOrderBy;o<a.length;o++){var s=a[o];e.p.push(s),s.field.isKeyField()&&(i=!0)}if(!i){var u=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e.p.push(new It(N.keyField(),u))}}}return e.p}function Mt(t){var e=y(t);if(!e.T)if("F"===e.limitType)e.T=ct(e.path,e.collectionGroup,Lt(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],r=0,i=Lt(e);r<i.length;r++){var o=i[r],a="desc"===o.dir?"asc":"desc";n.push(new It(o.field,a))}var s=e.endAt?new Et(e.endAt.position,!e.endAt.before):null,u=e.startAt?new Et(e.startAt.position,!e.startAt.before):null;e.T=ct(e.path,e.collectionGroup,n,e.filters,e.limit,s,u)}return e.T}function Ft(t,e,n){return new Ct(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function Ut(t,e){return ft(Mt(t),Mt(e))&&t.limitType===e.limitType}function qt(t){return lt(Mt(t))+"|lt:"+t.limitType}function $t(t){return"Query(target="+function(t){var e=t.path.canonicalString();return null!==t.collectionGroup&&(e+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(e+=", filters: ["+t.filters.map((function(t){return(e=t).field.canonicalString()+" "+e.op+" "+Q(e.value);var e})).join(", ")+"]"),B(t.limit)||(e+=", limit: "+t.limit),t.orderBy.length>0&&(e+=", orderBy: ["+t.orderBy.map((function(t){return function(t){return t.field.canonicalString()+" ("+t.dir+")"}(t)})).join(", ")+"]"),t.startAt&&(e+=", startAt: "+Ot(t.startAt)),t.endAt&&(e+=", endAt: "+Ot(t.endAt)),"Target("+e+")"}(Mt(t))+"; limitType="+t.limitType+")"}function Bt(t,e){return e.isFoundDocument()&&function(t,e){var n=e.key.path;return null!==t.collectionGroup?e.key.hasCollectionId(t.collectionGroup)&&t.path.isPrefixOf(n):W.isDocumentKey(t.path)?t.path.isEqual(n):t.path.isImmediateParentOf(n)}(t,e)&&function(t,e){for(var n=0,r=t.explicitOrderBy;n<r.length;n++){var i=r[n];if(!i.field.isKeyField()&&null===e.data.field(i.field))return!1}return!0}(t,e)&&function(t,e){for(var n=0,r=t.filters;n<r.length;n++)if(!r[n].matches(e))return!1;return!0}(t,e)&&function(t,e){return!(t.startAt&&!St(t.startAt,Lt(t),e))&&(!t.endAt||!St(t.endAt,Lt(t),e))}(t,e)}function Vt(t){return function(e,n){for(var r=!1,i=0,o=Lt(t);i<o.length;i++){var a=o[i],s=Kt(a,e,n);if(0!==s)return s;r=r||a.field.isKeyField()}return 0}}function Kt(t,e,n){var r=t.field.isKeyField()?W.comparator(e.key,n.key):function(t,e,n){var r=e.data.field(t),i=n.data.field(t);return null!==r&&null!==i?X(r,i):g()}(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return g()}}
2250/**
2251 * @license
2252 * Copyright 2020 Google LLC
2253 *
2254 * Licensed under the Apache License, Version 2.0 (the "License");
2255 * you may not use this file except in compliance with the License.
2256 * You may obtain a copy of the License at
2257 *
2258 *   http://www.apache.org/licenses/LICENSE-2.0
2259 *
2260 * Unless required by applicable law or agreed to in writing, software
2261 * distributed under the License is distributed on an "AS IS" BASIS,
2262 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2263 * See the License for the specific language governing permissions and
2264 * limitations under the License.
2265 */function Wt(t,e){if(t.I){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:V(e)?"-0":e}}function zt(t){return{integerValue:""+t}}function Ht(t,e){return K(e)?zt(e):Wt(t,e)}
2266/**
2267 * @license
2268 * Copyright 2018 Google LLC
2269 *
2270 * Licensed under the Apache License, Version 2.0 (the "License");
2271 * you may not use this file except in compliance with the License.
2272 * You may obtain a copy of the License at
2273 *
2274 *   http://www.apache.org/licenses/LICENSE-2.0
2275 *
2276 * Unless required by applicable law or agreed to in writing, software
2277 * distributed under the License is distributed on an "AS IS" BASIS,
2278 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2279 * See the License for the specific language governing permissions and
2280 * limitations under the License.
2281 */var Gt=function(){this._=void 0};function Xt(t,e,n){return t instanceof Jt?function(t,e){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:t.seconds,nanos:t.nanoseconds}}}};return e&&(n.fields.__previous_value__=e),{mapValue:n}}(n,e):t instanceof Zt?te(t,e):t instanceof ee?ne(t,e):function(t,e){var n=Qt(t,e),r=ie(n)+ie(t.A);return tt(n)&&tt(t.A)?zt(r):Wt(t.R,r)}(t,e)}function Yt(t,e,n){return t instanceof Zt?te(t,e):t instanceof ee?ne(t,e):n}function Qt(t,e){return t instanceof re?tt(n=e)||function(t){return!!t&&"doubleValue"in t}(n)?e:{integerValue:0}:null;var n}var Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["b"])(e,t),e}(Gt),Zt=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return Object(a["b"])(e,t),e}(Gt);function te(t,e){for(var n=oe(e),r=function(t){n.some((function(e){return H(e,t)}))||n.push(t)},i=0,o=t.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var ee=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return Object(a["b"])(e,t),e}(Gt);function ne(t,e){for(var n=oe(e),r=function(t){n=n.filter((function(e){return!H(e,t)}))},i=0,o=t.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var re=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).R=e,r.A=n,r}return Object(a["b"])(e,t),e}(Gt);function ie(t){return M(t.integerValue||t.doubleValue)}function oe(t){return et(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}
2282/**
2283 * @license
2284 * Copyright 2017 Google LLC
2285 *
2286 * Licensed under the Apache License, Version 2.0 (the "License");
2287 * you may not use this file except in compliance with the License.
2288 * You may obtain a copy of the License at
2289 *
2290 *   http://www.apache.org/licenses/LICENSE-2.0
2291 *
2292 * Unless required by applicable law or agreed to in writing, software
2293 * distributed under the License is distributed on an "AS IS" BASIS,
2294 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2295 * See the License for the specific language governing permissions and
2296 * limitations under the License.
2297 */var ae=function(t,e){this.field=t,this.transform=e},se=function(t,e){this.version=t,this.transformResults=e},ue=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.none=function(){return new t},t.exists=function(e){return new t(void 0,e)},t.updateTime=function(e){return new t(e)},Object.defineProperty(t.prototype,"isNone",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}();function ce(t,e){return void 0!==t.updateTime?e.isFoundDocument()&&e.version.isEqual(t.updateTime):void 0===t.exists||t.exists===e.isFoundDocument()}var le=function(){};function fe(t,e,n){t instanceof ge?function(t,e,n){var r=t.value.clone(),i=be(t.fieldTransforms,e,n.transformResults);r.setAll(i),e.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(t,e,n):t instanceof me?function(t,e,n){if(ce(t.precondition,e)){var r=be(t.fieldTransforms,e,n.transformResults),i=e.data;i.setAll(ye(t)),i.setAll(r),e.convertToFoundDocument(n.version,i).setHasCommittedMutations()}else e.convertToUnknownDocument(n.version)}(t,e,n):function(t,e,n){e.convertToNoDocument(n.version).setHasCommittedMutations()}(0,e,n)}function he(t,e,n){t instanceof ge?function(t,e,n){if(ce(t.precondition,e)){var r=t.value.clone(),i=we(t.fieldTransforms,n,e);r.setAll(i),e.convertToFoundDocument(ve(e),r).setHasLocalMutations()}}(t,e,n):t instanceof me?function(t,e,n){if(ce(t.precondition,e)){var r=we(t.fieldTransforms,n,e),i=e.data;i.setAll(ye(t)),i.setAll(r),e.convertToFoundDocument(ve(e),i).setHasLocalMutations()}}(t,e,n):function(t,e){ce(t.precondition,e)&&e.convertToNoDocument(T.min())}(t,e)}function de(t,e){for(var n=null,r=0,i=t.fieldTransforms;r<i.length;r++){var o=i[r],a=e.data.field(o.field),s=Qt(o.transform,a||null);null!=s&&(null==n&&(n=ot.empty()),n.set(o.field,s))}return n||null}function pe(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!function(t,e){return void 0===t&&void 0===e||!(!t||!e)&&E(t,e,(function(t,e){return function(t,e){return t.field.isEqual(e.field)&&function(t,e){return t instanceof Zt&&e instanceof Zt||t instanceof ee&&e instanceof ee?E(t.elements,e.elements,H):t instanceof re&&e instanceof re?H(t.A,e.A):t instanceof Jt&&e instanceof Jt}(t.transform,e.transform)}(t,e)}))}(t.fieldTransforms,e.fieldTransforms)&&(0===t.type?t.value.isEqual(e.value):1!==t.type||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask))}function ve(t){return t.isFoundDocument()?t.version:T.min()}var ge=function(t){function e(e,n,r,i){void 0===i&&(i=[]);var o=this;return(o=t.call(this)||this).key=e,o.value=n,o.precondition=r,o.fieldTransforms=i,o.type=0,o}return Object(a["b"])(e,t),e}(le),me=function(t){function e(e,n,r,i,o){void 0===o&&(o=[]);var a=this;return(a=t.call(this)||this).key=e,a.data=n,a.fieldMask=r,a.prec
2297ondition=i,a.fieldTransforms=o,a.type=1,a}return Object(a["b"])(e,t),e}(le);function ye(t){var e=new Map;return t.fieldMask.fields.forEach((function(n){if(!n.isEmpty()){var r=t.data.field(n);e.set(n,r)}})),e}function be(t,e,n){var r=new Map;m(t.length===n.length);for(var i=0;i<n.length;i++){var o=t[i],a=o.transform,s=e.data.field(o.field);r.set(o.field,Yt(a,s,n[i]))}return r}function we(t,e,n){for(var r=new Map,i=0,o=t;i<o.length;i++){var a=o[i],s=a.transform,u=n.data.field(a.field);r.set(a.field,Xt(s,u,e))}return r}var _e,Ee,Oe=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.precondition=n,r.type=2,r.fieldTransforms=[],r}return Object(a["b"])(e,t),e}(le),Ie=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.precondition=n,r.type=3,r.fieldTransforms=[],r}return Object(a["b"])(e,t),e}(le),Te=function(t){this.count=t};function Se(t){switch(t){case u.OK:return g();case u.CANCELLED:case u.UNKNOWN:case u.DEADLINE_EXCEEDED:case u.RESOURCE_EXHAUSTED:case u.INTERNAL:case u.UNAVAILABLE:case u.UNAUTHENTICATED:return!1;case u.INVALID_ARGUMENT:case u.NOT_FOUND:case u.ALREADY_EXISTS:case u.PERMISSION_DENIED:case u.FAILED_PRECONDITION:case u.ABORTED:case u.OUT_OF_RANGE:case u.UNIMPLEMENTED:case u.DATA_LOSS:return!0;default:return g()}}function ke(t){if(void 0===t)return d("GRPC error has no .code"),u.UNKNOWN;switch(t){case _e.OK:return u.OK;case _e.CANCELLED:return u.CANCELLED;case _e.UNKNOWN:return u.UNKNOWN;case _e.DEADLINE_EXCEEDED:return u.DEADLINE_EXCEEDED;case _e.RESOURCE_EXHAUSTED:return u.RESOURCE_EXHAUSTED;case _e.INTERNAL:return u.INTERNAL;case _e.UNAVAILABLE:return u.UNAVAILABLE;case _e.UNAUTHENTICATED:return u.UNAUTHENTICATED;case _e.INVALID_ARGUMENT:return u.INVALID_ARGUMENT;case _e.NOT_FOUND:return u.NOT_FOUND;case _e.ALREADY_EXISTS:return u.ALREADY_EXISTS;case _e.PERMISSION_DENIED:return u.PERMISSION_DENIED;case _e.FAILED_PRECONDITION:return u.FAILED_PRECONDITION;case _e.ABORTED:return u.ABORTED;case _e.OUT_OF_RANGE:return u.OUT_OF_RANGE;case _e.UNIMPLEMENTED:return u.UNIMPLEMENTED;case _e.DATA_LOSS:return u.DATA_LOSS;default:return g()}}(Ee=_e||(_e={}))[Ee.OK=0]="OK",Ee[Ee.CANCELLED=1]="CANCELLED",Ee[Ee.UNKNOWN=2]="UNKNOWN",Ee[Ee.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ee[Ee.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ee[Ee.NOT_FOUND=5]="NOT_FOUND",Ee[Ee.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ee[Ee.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ee[Ee.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ee[Ee.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ee[Ee.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ee[Ee.ABORTED=10]="ABORTED",Ee[Ee.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ee[Ee.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ee[Ee.INTERNAL=13]="INTERNAL",Ee[Ee.UNAVAILABLE=14]="UNAVAILABLE",Ee[Ee.DATA_LOSS=15]="DATA_LOSS";
2298/**
2299 * @license
2300 * Copyright 2017 Google LLC
2301 *
2302 * Licensed under the Apache License, Version 2.0 (the "License");
2303 * you may not use this file except in compliance with the License.
2304 * You may obtain a copy of the License at
2305 *
2306 *   http://www.apache.org/licenses/LICENSE-2.0
2307 *
2308 * Unless required by applicable law or agreed to in writing, software
2309 * distributed under the License is distributed on an "AS IS" BASIS,
2310 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2311 * See the License for the specific language governing permissions and
2312 * limitations under the License.
2313 */
2314var Ce=function(){function t(t,e){this.comparator=t,this.root=e||je.EMPTY}return t.prototype.insert=function(e,n){return new t(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,je.BLACK,null,null))},t.prototype.remove=function(e){return new t(this.comparator,this.root.remove(e,this.comparator).copy(null,null,je.BLACK,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.isEmpty();){var n=this.comparator(t,e.key);if(0===n)return e.value;n<0?e=e.left:n>0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n.isEmpty();){var r=this.comparator(t,n.key);if(0===r)return e+n.left.size;r<0?n=n.left:(e+=n.left.size+1,n=n.right)}return-1},t.prototype.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size}
2314,enumerable:!1,configurable:!0}),t.prototype.minKey=function(){return this.root.minKey()},t.prototype.maxKey=function(){return this.root.maxKey()},t.prototype.inorderTraversal=function(t){return this.root.inorderTraversal(t)},t.prototype.forEach=function(t){this.inorderTraversal((function(e,n){return t(e,n),!1}))},t.prototype.toString=function(){var t=[];return this.inorderTraversal((function(e,n){return t.push(e+":"+n),!1})),"{"+t.join(", ")+"}"},t.prototype.reverseTraversal=function(t){return this.root.reverseTraversal(t)},t.prototype.getIterator=function(){return new xe(this.root,null,this.comparator,!1)},t.prototype.getIteratorFrom=function(t){return new xe(this.root,t,this.comparator,!1)},t.prototype.getReverseIterator=function(){return new xe(this.root,null,this.comparator,!0)},t.prototype.getReverseIteratorFrom=function(t){return new xe(this.root,t,this.comparator,!0)},t}(),xe=function(){function t(t,e,n,r){this.isReverse=r,this.nodeStack=[];for(var i=1;!t.isEmpty();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this.isReverse?t.left:t.right;else{if(0===i){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}return t.prototype.getNext=function(){var t=this.nodeStack.pop(),e={key:t.key,value:t.value};if(this.isReverse)for(t=t.left;!t.isEmpty();)this.nodeStack.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack.push(t),t=t.left;return e},t.prototype.hasNext=function(){return this.nodeStack.length>0},t.prototype.peek=function(){if(0===this.nodeStack.length)return null;var t=this.nodeStack[this.nodeStack.length-1];return{key:t.key,value:t.value}},t}(),je=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:t.EMPTY,this.right=null!=o?o:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.isEmpty=function(){return!1},t.prototype.inorderTraversal=function(t){return this.left.inorderTraversal(t)||t(this.key,this.value)||this.right.inorderTraversal(t)},t.prototype.reverseTraversal=function(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)},t.prototype.min=function(){return this.left.isEmpty()?this:this.left.min()},t.prototype.minKey=function(){return this.min().key},t.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},t.prototype.insert=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.insert(t,e,n))).fixUp()},t.prototype.removeMin=function(){if(this.left.isEmpty())return t.EMPTY;var e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),(e=e.copy(null,null,null,e.left.removeMin(),null)).fixUp()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,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(e,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(e,i.key)){if(i.right.isEmpty())return t.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(e,n))}return i.fixUp()},t.prototype.isRed=function(){return this.color},t.prototype.fixUp=function(){var t=this;return t.right.isRed()&&!t.left.isRed()&&(t=t.rotateLeft()),t.left.isRed()&&t.left.left.isRed()&&(t=t.rotateRight()),t.left.isRed()&&t.right.isRed()&&(t=t.colorFlip()),t},t.prototype.moveRedLeft=function(){var t=this.colorFlip();return t.right.left.isRed()&&(t=(t=(t=t.copy(null,null,null,null,t.right.rotateRight())).rotateLeft()).colorFlip()),t},t.prototype.moveRedRight=function(){var t=this.colorFlip();return t.left.left.isRed()&&(t=(t=t.rotateRight()).colorFlip()),t},t.prototype.rotateLeft=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.rotateRight=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.colorFlip=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.checkMaxDepth=function(){var t=this.check();return Math.pow(2,t)<=this.size+1},t.prototype.check=function(){if(this.isRed()&&this.left.isRed())throw g();if(this.right.isRed())throw g();var t=this.left.check();if(t!==this.right.check())throw g();return t+(this.isRed()?0:1)},t}();
2314je.EMPTY=null,je.RED=!0,je.BLACK=!1,je.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw g()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw g()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw g()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw g()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw g()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.insert=function(t,e,n){return new je(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.isEmpty=function(){return!0},t.prototype.inorderTraversal=function(t){return!1},t.prototype.reverseTraversal=function(t){return!1},t.prototype.minKey=function(){return null},t.prototype.maxKey=function(){return null},t.prototype.isRed=function(){return!1},t.prototype.checkMaxDepth=function(){return!0},t.prototype.check=function(){return 0},t}());
2315/**
2316 * @license
2317 * Copyright 2017 Google LLC
2318 *
2319 * Licensed under the Apache License, Version 2.0 (the "License");
2320 * you may not use this file except in compliance with the License.
2321 * You may obtain a copy of the License at
2322 *
2323 *   http://www.apache.org/licenses/LICENSE-2.0
2324 *
2325 * Unless required by applicable law or agreed to in writing, software
2326 * distributed under the License is distributed on an "AS IS" BASIS,
2327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2328 * See the License for the specific language governing permissions and
2329 * limitations under the License.
2330 */
2331var Ae=function(){function t(t){this.comparator=t,this.data=new Ce(this.comparator)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.minKey()},t.prototype.last=function(){return this.data.maxKey()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.inorderTraversal((function(e,n){return t(e),!1}))},t.prototype.forEachInRange=function(t,e){for(var n=this.data.getIteratorFrom(t[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,t[1])>=0)return;e(r.key)}},t.prototype.forEachWhile=function(t,e){var n;for(n=void 0!==e?this.data.getIteratorFrom(e):this.data.getIterator();n.hasNext();)if(!t(n.getNext().key))return},t.prototype.firstAfterOrEqual=function(t){var e=this.data.getIteratorFrom(t);return e.hasNext()?e.getNext().key:null},t.prototype.getIterator=function(){return new Ne(this.data.getIterator())},t.prototype.getIteratorFrom=function(t){return new Ne(this.data.getIteratorFrom(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).insert(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype.isEmpty=function(){return this.data.isEmpty()},t.prototype.unionWith=function(t){var e=this;return e.size<t.size&&(e=t,t=this),t.forEach((function(t){e=e.add(t)})),e},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.data.getIterator(),r=e.data.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(0!==this.comparator(i,o))return!1}return!0},t.prototype.toArray=function(){var t=[];return this.forEach((function(e){t.push(e)})),t},t.prototype.toString=function(){var t=[];return this.forEach((function(e){return t.push(e)})),"SortedSet("+t.toString()+")"},t.prototype.copy=function(e){var n=new t(this.comparator);return n.data=e,n},t}(),Ne=function(){function t(t){this.iter=t}return t.prototype.getNext=function(){return this.iter.getNext().key},t.prototype.hasNext=function(){return this.iter.hasNext()},t}(),Pe=new Ce(W.comparator);function Re(){return Pe}var De=new Ce(W.comparator);function Le(){return De}var Me=new Ce(W.comparator);function Fe(){return Me}var Ue=new Ae(W.comparator);function qe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Ue,r=0,i=t;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var $e=new Ae(_);function Be(){return $e}
2332/**
2333 * @license
2334 * Copyright 2017 Google LLC
2335 *
2336 * Licensed under the Apache License, Version 2.0 (the "License");
2337 * you may not use this file except in compliance with the License.
2338 * You may obtain a copy of the License at
2339 *
2340 *   http://www.apache.org/licenses/LICENSE-2.0
2341 *
2342 * Unless required by applicable law or agreed to in writing, software
2343 * distributed under the License is distributed on an "AS IS" BASIS,
2344 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2345 * See the License for the specific language governing permissions and
2346 * limitations under the License.
2347 */var Ve=function(){function t(t,e,n,r,i){this.snapshotVersion=t,this.targetChanges=e,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}return t.createSynthesizedRemoteEventForCurrentChange=function(e,n){var r=new Map;return r.set(e,Ke.createSynthesizedTargetChangeForCurrentChange(e,n)),new t(T.min(),r,Be(),Re(),qe())},t}(),Ke=function(){function t(t,e,n,r,i){this.resumeToken=t,this.current=e,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}return t.createSynthesizedTargetChangeForCurrentChange=function(e,n){return new t(R.EMPTY_BYTE_STRING,n,qe(),qe(),qe())},t}(),We=function(t,e,n,r){this.v=t,this.removedTargetIds=e,this.key=n,this.P=r},ze=function(t,e){this.targetId=t,this.V=e},He=function(t,e,n,r){void 0===n&&(n=R.EMPTY_BYTE_STRING),void 0===r&&(r=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=r},Ge=function(){function t(){this.S=0,this.D=Qe(),this.C=R.EMPTY_BYTE_STRING,this.N=!1,this.F=!0}return Object.defineProperty(t.prototype,"current",{get:function(){return this.N},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.C},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"k",{get:function(){return 0!==this.S},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"O",{get:function(){return this.F},enumerable:!1,configurable:!0}),t.prototype.$=function(t){t.approximateByteSize()>0&&(this.F=!0,this.C=t)},t.prototype.M=function(){var t=qe(),e=qe(),n=qe();return this.D.forEach((function(r,i){switch(i){case 0:t=t.add(r);break;case 2:e=e.add(r);break;case 1:n=n.add(r);break;default:g()}})),new Ke(this.C,this.N,t,e,n)},t.prototype.L=function(){this.F=!1,this.D=Qe()},t.prototype.B=function(t,e){this.F=!0,this.D=this.D.insert(t,e)},t.prototype.q=function(t){this.F=!0,this.D=this.D.remove(t)},t.prototype.U=function(){this.S+=1},t.prototype.K=function(){this.S-=1},t.prototype.j=function(){this.F=!0,this.N=!0},t}(),Xe=function(){function t(t){this.W=t,this.G=new Map,this.H=Re(),this.J=Ye(),this.Y=new Ae(_)}return t.prototype.X=function(t){for(var e=0,n=t.v;e<n.length;e++){var r=n[e];t.P&&t.P.isFoundDocument()?this.Z(r,t.P):this.tt(r,t.key,t.P)}for(var i=0,o=t.removedTargetIds;i<o.length;i++)r=o[i],this.tt(r,t.key,t.P)},t.prototype.et=function(t){var e=this;this.forEachTarget(t,(function(n){var r=e.nt(n);switch(t.state){case 0:e.st(n)&&r.$(t.resumeToken);break;case 1:r.K(),r.k||r.L(),r.$(t.resumeToken);break;case 2:r.K(),r.k||e.removeTarget(n);break;case 3:e.st(n)&&(r.j(),r.$(t.resumeToken));break;case 4:e.st(n)&&(e.it(n),r.$(t.resumeToken));break;default:g()}}))},t.prototype.forEachTarget=function(t,e){var n=this;t.targetIds.length>
23470?t.targetIds.forEach(e):this.G.forEach((function(t,r){n.st(r)&&e(r)}))},t.prototype.rt=function(t){var e=t.targetId,n=t.V.count,r=this.ot(e);if(r){var i=r.target;if(ht(i))if(0===n){var o=new W(i.path);this.tt(e,o,st.newNoDocument(o,T.min()))}else m(1===n);else this.ct(e)!==n&&(this.it(e),this.Y=this.Y.add(e))}},t.prototype.ut=function(t){var e=this,n=new Map;this.G.forEach((function(r,i){var o=e.ot(i);if(o){if(r.current&&ht(o.target)){var a=new W(o.target.path);null!==e.H.get(a)||e.at(i,a)||e.tt(i,a,st.newNoDocument(a,t))}r.O&&(n.set(i,r.M()),r.L())}}));var r=qe();this.J.forEach((function(t,n){var i=!0;n.forEachWhile((function(t){var n=e.ot(t);return!n||2===n.purpose||(i=!1,!1)})),i&&(r=r.add(t))}));var i=new Ve(t,n,this.Y,this.H,r);return this.H=Re(),this.J=Ye(),this.Y=new Ae(_),i},t.prototype.Z=function(t,e){if(this.st(t)){var n=this.at(t,e.key)?2:0;this.nt(t).B(e.key,n),this.H=this.H.insert(e.key,e),this.J=this.J.insert(e.key,this.ht(e.key).add(t))}},t.prototype.tt=function(t,e,n){if(this.st(t)){var r=this.nt(t);this.at(t,e)?r.B(e,1):r.q(e),this.J=this.J.insert(e,this.ht(e).delete(t)),n&&(this.H=this.H.insert(e,n))}},t.prototype.removeTarget=function(t){this.G.delete(t)},t.prototype.ct=function(t){var e=this.nt(t).M();return this.W.getRemoteKeysForTarget(t).size+e.addedDocuments.size-e.removedDocuments.size},t.prototype.U=function(t){this.nt(t).U()},t.prototype.nt=function(t){var e=this.G.get(t);return e||(e=new Ge,this.G.set(t,e)),e},t.prototype.ht=function(t){var e=this.J.get(t);return e||(e=new Ae(_),this.J=this.J.insert(t,e)),e},t.prototype.st=function(t){var e=null!==this.ot(t);return e||h("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.ot=function(t){var e=this.G.get(t);return e&&e.k?null:this.W.lt(t)},t.prototype.it=function(t){var e=this;this.G.set(t,new Ge),this.W.getRemoteKeysForTarget(t).forEach((function(n){e.tt(t,n,null)}))},t.prototype.at=function(t,e){return this.W.getRemoteKeysForTarget(t).has(e)},t}();function Ye(){return new Ce(W.comparator)}function Qe(){return new Ce(W.comparator)}
2348/**
2349 * @license
2350 * Copyright 2017 Google LLC
2351 *
2352 * Licensed under the Apache License, Version 2.0 (the "License");
2353 * you may not use this file except in compliance with the License.
2354 * You may obtain a copy of the License at
2355 *
2356 *   http://www.apache.org/licenses/LICENSE-2.0
2357 *
2358 * Unless required by applicable law or agreed to in writing, software
2359 * distributed under the License is distributed on an "AS IS" BASIS,
2360 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2361 * See the License for the specific language governing permissions and
2362 * limitations under the License.
2363 */var Je={asc:"ASCENDING",desc:"DESCENDING"},Ze={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},tn=function(t,e){this.databaseId=t,this.I=e};function en(t,e){return t.I?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function nn(t,e){return t.I?e.toBase64():e.toUint8Array()}function rn(t,e){return en(t,e.toTimestamp())}function on(t){return m(!!t),T.fromTimestamp(function(t){var e=L(t);return new I(e.seconds,e.nanos)}(t))}function an(t,e){return function(t){return new j(["projects",t.projectId,"databases",t.database])}(t).child("documents").child(e).canonicalString()}function sn(t){var e=j.fromString(t);return m(An(e)),e}function un(t,e){return an(t.databaseId,e.path)}function cn(t,e){var n=sn(e);if(n.get(1)!==t.databaseId.projectId)throw new c(u.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new c(u.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new W(dn(n))}function ln(t,e){return an(t.databaseId,e)}function fn(t){var e=sn(t);return 4===e.length?j.emptyPath():dn(e)}function hn(t){return new j(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function dn(t){return m(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function pn(t,e,n){return{name:un(t,e),fields:n.toProto().mapValue.fields}}function vn(t,e,n){var r=cn(t,e.name),i=on(e.updateTime),o=new ot({mapValue:{fields:e.fields}}),a=st.newFoundDocument(r,i,o);return n&&a.setHasCommittedMutations(),n?a.setHasCommittedMutations():a}function gn(t,e){var n;if(e instanceof ge)n={update:pn(t,e.key,e.value)};else if(e instanceof Oe)n={delete:un(t,e.key)};else if(e instanceof me)n={update:pn(t,e.key,e.data),updateMask:jn(e.fieldMask)};else{if(!(e instanceof Ie))return g();n={verify:un(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map((function(t){return function(t,e){var n=e.transform;if(n instanceof Jt)return{fieldPath:e.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof Zt)return{fieldPath:e.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof ee)return{fieldPath:e.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof re)return{fieldPath:e.field.canonicalString(),increment:n.A};throw g()}(0,t)}))),e.precondition.isNone||(n.currentDocument=function(t,e){return void 0!==e.updateTime?{updateTime:rn(t,e.updateTime)}:void 0!==e.exists?{exists:e.exists}:g()}(t,e.precondition)),n}function mn(t,e){var n=e.currentDocument?function(t){return void 0!==t.updateTime?ue.updateTime(on(t.updateTime)):void 0!==t.exists?ue.exists(t.exists):ue.none()}(e.currentDocument):ue.none(),r=e.updateTransforms?e.updateTransforms.map((function(e){return function(t,e){var n=null;if("setToServerValue"in e)m("REQUEST_TIME"===e.setToServerValue),n=new Jt;else if("appendMissingElements"in e){var r=e.appendMissingElements.values||[];n=new Zt(r)}else if("removeAllFromArray"in e){var i=e.removeAllFromArray.values||[];n=new ee(i)}else"increment"in e?n=new re(t,e.increment):g();var o=N.fromServerFormat(e.fieldPath);return new ae(o,n)}(t,e)})):[];if(e.update){e.update.name;var i=cn(t,e.update.name),o=new ot({mapValue:{fields:e.update.fields}});if(e.updateMask){var a=function(t){var e=t.fieldPaths||[];return new P(e.map((function(t){return N.fromServerFormat(t)})))}(e.updateMask);return new me(i,o,a,n,r)}return new ge(i,o,n,r)}if(e.delete){var s=cn(t,e.delete);return new Oe(s,n)}if(e.verify){var u=cn(t,e.verify);return new Ie(u,n)}return g()}function yn(t,e){return{documents:[ln(t,e.path)]}}function bn(t,e){var n={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(n.parent=ln(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=ln(t,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);var i=function(t){if(0!==t.length){var e=t.map((function(t){return function(t){if("=="===t.op){if(rt(t.value))return{unaryFilter:{field:Sn(t.field),op:"IS_NAN"}};if(nt(t.value))return{unaryFilter:{field:Sn(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(rt(t.value))return{unaryFilter:{field:Sn(t.field),op:"IS_NOT_NA
2363N"}};if(nt(t.value))return{unaryFilter:{field:Sn(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Sn(t.field),op:Tn(t.op),value:t.value}}}(t)}));return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);i&&(n.structuredQuery.where=i);var o=function(t){if(0!==t.length)return t.map((function(t){return function(t){return{field:Sn(t.field),direction:In(t.dir)}}(t)}))}(e.orderBy);o&&(n.structuredQuery.orderBy=o);var a=function(t,e){return t.I||B(e)?e:{value:e}}(t,e.limit);return null!==a&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=En(e.startAt)),e.endAt&&(n.structuredQuery.endAt=En(e.endAt)),n}function wn(t){var e=fn(t.parent),n=t.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){m(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var a=[];n.where&&(a=_n(n.where));var s=[];n.orderBy&&(s=n.orderBy.map((function(t){return function(t){return new It(kn(t.field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(t.direction))}(t)})));var u=null;n.limit&&(u=function(t){var e;return B(e="object"==typeof t?t.value:t)?null:e}(n.limit));var c=null;n.startAt&&(c=On(n.startAt));var l=null;return n.endAt&&(l=On(n.endAt)),xt(e,i,s,a,u,"F",c,l)}function _n(t){return t?void 0!==t.unaryFilter?[xn(t)]:void 0!==t.fieldFilter?[Cn(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map((function(t){return _n(t)})).reduce((function(t,e){return t.concat(e)})):g():[]}function En(t){return{before:t.before,values:t.position}}function On(t){var e=!!t.before,n=t.values||[];return new Et(n,e)}function In(t){return Je[t]}function Tn(t){return Ze[t]}function Sn(t){return{fieldPath:t.canonicalString()}}function kn(t){return N.fromServerFormat(t.fieldPath)}function Cn(t){return dt.create(kn(t.fieldFilter.field),function(t){switch(t){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return g()}}(t.fieldFilter.op),t.fieldFilter.value)}function xn(t){switch(t.unaryFilter.op){case"IS_NAN":var e=kn(t.unaryFilter.field);return dt.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=kn(t.unaryFilter.field);return dt.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=kn(t.unaryFilter.field);return dt.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=kn(t.unaryFilter.field);return dt.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return g()}}function jn(t){var e=[];return t.fields.forEach((function(t){return e.push(t.canonicalString())})),{fieldPaths:e}}function An(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}
2364/**
2365 * @license
2366 * Copyright 2017 Google LLC
2367 *
2368 * Licensed under the Apache License, Version 2.0 (the "License");
2369 * you may not use this file except in compliance with the License.
2370 * You may obtain a copy of the License at
2371 *
2372 *   http://www.apache.org/licenses/LICENSE-2.0
2373 *
2374 * Unless required by applicable law or agreed to in writing, software
2375 * distributed under the License is distributed on an "AS IS" BASIS,
2376 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2377 * See the License for the specific language governing permissions and
2378 * limitations under the License.
2379 */function Nn(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=Rn(e)),e=Pn(t.get(n),e);return Rn(e)}function Pn(t,e){for(var n=e,r=t.length,i=0;i<r;i++){var o=t.charAt(i);switch(o){case"\0":n+="��";break;case"�":n+="��";break;default:n+=o}}return n}function Rn(t){return t+"��"}function Dn(t){var e=t.length;if(m(e>=2),2===e)return m("�"===t.charAt(0)&&"�"===t.charAt(1)),j.emptyPath();for(var n=e-2,r=[],i="",o=0;o<e;){var a=t.indexOf("�",o);switch((a<0||a>n)&&g(),t.charAt(a+1)){case"�":var s=t.substring(o,a),u=void 0;0===i.length?u=s:(u=i+=s,i=""),r.push(u);break;case"�":i+=t.substring(o,a),i+="\0";break;case"�":i+=t.substring(o,a+1);break;default:g()}o=a+2}return new j(r)}
2380/**
2381 * @license
2382 * Copyright 2017 Google LLC
2383 *
2384 * Licensed under the Apache License, Version 2.0 (the "License");
2385 * you may not use this file except in compliance with the License.
2386 * You may obtain a copy of the License at
2387 *
2388 *   http://www.apache.org/licenses/LICENSE-2.0
2389 *
2390 * Unless required by applicable law or agreed to in writing, software
2391 * distributed under the License is distributed on an "AS IS" BASIS,
2392 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2393 * See the License for the specific language governing permissions and
2394 * limitations under the License.
2395 */var Ln=function(t,e){this.seconds=t,this.nanoseconds=e},Mn=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Mn.store="owner",Mn.key="owner";var Fn=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Fn.store="mutationQueues",Fn.keyPath="userId";var Un=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Un.store="mutations",Un.keyPath="batchId",Un.userMutationsIndex="userMutationsIndex",Un.userMutationsKeyPath=["userId","batchId"];var qn=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,Nn(e)]},t.key=function(t,e,n){return[t,Nn(e),n]},t}();qn.store="documentMutations",qn.PLACEHOLDER=new qn;var $n=function(t,e){this.path=t,this.readTime=e},Bn=function(t,e){this.path=t,this.version=e},Vn=function(t,e,n,r,i,o){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o};Vn.store="remoteDocuments",Vn.readTimeIndex="readTimeIndex",Vn.readTimeIndexPath="readTime",Vn.collectionReadTimeIndex="collectionReadTimeIndex",Vn.collectionReadTimeIndexPath=["parentPath","readTime"];var Kn=function(t){this.byteSize=t};Kn.store="remoteDocumentGlobal",Kn.key="remoteDocumentGlobalKey";var Wn=function(t,e,n,r,i,o,a){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=a};Wn.store="targets",Wn.keyPath="targetId",Wn.queryTargetsIndexName="queryTargetsIndex",Wn.queryTargetsKeyPath=["canonicalId","targetId"];var zn=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};zn.store="targetDocuments",zn.keyPath=["targetId","path"],zn.documentTargetsIndex="documentTargetsIndex",zn.documentTargetsKeyPath=["path","targetId"];var Hn=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};Hn.key="targetGlobalKey",Hn.store="targetGlobal";var Gn=function(t,e){this.collectionId=t,this.parent=e};Gn.store="collectionParents",Gn.keyPath=["collectionId","parent"];var Xn=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};Xn.store="clientMetadata",Xn.keyPath="clientId";var Yn=function(t,e,n){this.bundleId=t,this.createTime=e,this.version=n};Yn.store="bundles",Yn.keyPath="bundleId";var Qn=function(t,e,n){this.name=t,this.readTime=e,this.bundledQuery=n};Qn.store="namedQueries",Qn.keyPath="name";var Jn=Object(a["d"])(Object(a["d"])([],Object(a["d"])(Object(a["d"])([],Object(a["d"])(Object(a["d"])([],Object(a["d"])(Object(a["d"])([],[Fn.store,Un.store,qn.store,Vn.store,Wn.store,Mn.store,Hn.store,zn.store]),[Xn.store])),[Kn.store])),[Gn.store])),[Yn.store,Qn.store]),Zn="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",tr=function(){function t(){this.onCommittedListeners=[]}return t.prototype.addOnCommittedListener=function(t){this.onCommittedListeners.push(t)},t.prototype.raiseOnCommittedEvent=function(){this.onCommittedListeners.forEach((function(t){return t()}))},t}(),er=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},nr=function(){function t(t){var e=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,t((function(t){e.isDone=!0,e.result=t,e.nextCallback&&e.nextCallback(t)}),(function(t){e.isDone=!0,e.error=t,e.catchCallback&&e.catchCallback(t)}))}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.callbackAttached&&g(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new t((function(t,i){r.nextCallback=function(n){r.wrapSuccess(e,n).next(t,i)},r.catchCallback=function(e){r.wrapFailure(n,e).next(t,i)}}))},t.prototype.toPromise=function(){var t=this;return new Promise((function(e,n){t.next(e,n)}))},t.prototype.wrapUserFunction=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.wrapSuccess=function(e,n){return e?this.wrapUserFunction((function(){return e(n)})):t.resolve(n)},t.prototype.wrapFailure=function(e,n){return e?this.wrapUserFunction((function(){return e(n)})):t.reject(n)},t.resolve=function(e){return new t((function(t,n){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.waitFor=function(e){return new t((function(t,n){var r=0,i=0,o=!1;e.forEach((function(e){++r,e.next((function(){++i,o&&i===r&&t()}),(function(t){return n(t)}))})),o=!0,i===r&&t()}))},t.or=function(e){for(var n=t.resolve(!1),r=function(e){n=n.next((function(n){return n?t.resolve(n):e()}))},i=0,o=e;i<o.length;i++)r(o[i]);return n},t.forEach=function(t,e){var n=this,r=[];return t.forEach((function(t,i){r.push(e.call(n,t,i))})),this.waitFor(r)},t}(),rr=function(){function t(t,e){var n=this;this.action=t,this.transaction=e,this.aborted=!1,this.ft=new er,this.transaction.oncomplete=function(){n.ft.resolve()},this.transaction.onabort=function(){e.error?n.ft.reject(new ar(t,e.error)):n.ft.resolve()},this.transaction.onerror=function(e){var r=fr(e.target.error);n.ft.reject(new ar(t,r))}}return t.open=function(e,n,r,i){try{return new t(n,e.transaction(i,r))}catch(e){throw new ar(n,e)}},Object.defineProperty(t.prototype,"dt",{get:function(){return this.ft.promise}
2395,enumerable:!1,configurable:!0}),t.prototype.abort=function(t){t&&this.ft.reject(t),this.aborted||(h("SimpleDb","Aborting transaction:",t?t.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},t.prototype.store=function(t){var e=this.transaction.objectStore(t);return new ur(e)},t}(),ir=function(){function e(t,n,i){this.name=t,this.version=n,this.wt=i,12.2===e._t(Object(r["r"])())&&d("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return e.delete=function(t){return h("SimpleDb","Removing database:",t),cr(window.indexedDB.deleteDatabase(t)).toPromise()},e.yt=function(){if("undefined"==typeof indexedDB)return!1;if(e.gt())return!0;var t=Object(r["r"])(),n=e._t(t),i=0<n&&n<10,o=e.Et(t),a=0<o&&o<4.5;return!(t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||i||a)},e.gt=function(){var e;return"undefined"!=typeof t&&"YES"===(null===(e=Object({VUE_APP_apiKey:"AIzaSyBiC0udW4lthdkpbwPH1FjWn8brpR88-as",VUE_APP_projectId:"cryptoexchange-184fa",VUE_APP_storageBucket:"cryptoexchange-184fa.appspot.com",VUE_APP_authDomain:"cryptoexchange-184fa.firebaseapp.com",VUE_APP_messagingSenderId:"453214051140",VUE_APP_appId:"1:453214051140:web:e15703622560f052c01511",NODE_ENV:"production",BASE_URL:"/"}))||void 0===e?void 0:e.Tt)},e.It=function(t,e){return t.store(e)},e._t=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(n)},e.Et=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype.At=function(t){return Object(a["a"])(this,void 0,void 0,(function(){var e,n=this;return Object(a["c"])(this,(function(r){switch(r.label){case 0:return this.db?[3,2]:(h("SimpleDb","Opening database:",this.name),e=this,[4,new Promise((function(e,r){var i=indexedDB.open(n.name,n.version);i.onsuccess=function(t){var n=t.target.result;e(n)},i.onblocked=function(){r(new ar(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=function(e){var n=e.target.error;"VersionError"===n.name?r(new c(u.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):r(new ar(t,n))},i.onupgradeneeded=function(t){h("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',t.oldVersion);var e=t.target.result;n.wt.Rt(e,i.transaction,t.oldVersion,n.version).next((function(){h("SimpleDb","Database upgrade to version "+n.version+" complete")}))}}))]);case 1:e.db=r.sent(),r.label=2;case 2:return[2,(this.bt&&(this.db.onversionchange=function(t){return n.bt(t)}),this.db)]}}))}))},e.prototype.vt=function(t){this.bt=t,this.db&&(this.db.onversionchange=function(e){return t(e)})},e.prototype.runTransaction=function(t,e,n,r){return Object(a["a"])(this,void 0,void 0,(function(){var i,o,s,u,c;return Object(a["c"])(this,(function(l){switch(l.label){case 0:i="readonly"===e,o=0,s=function(){var e,s,c,l,f;return Object(a["c"])(this,(function(a){switch(a.label){case 0:++o,a.label=1;case 1:return a.trys.push([1,4,,5]),[4,u.At(t)];case 2:return u.db=a.sent(),e=rr.open(u.db,t,i?"readonly":"readwrite",n),s=r(e).catch((function(t){return e.abort(t),nr.reject(t)})).toPromise(),c={},s.catch((function(){})),[4,e.dt];case 3:return[2,(c.value=(a.sent(),s),c)];case 4:return l=a.sent(),f="FirebaseError"!==l.name&&o<3,h("SimpleDb","Transaction failed with error:",l.message,"Retrying:",f),u.close(),f?[3,5]:[2,{value:Promise.reject(l)}];case 5:return[2]}}
2395))},u=this,l.label=1;case 1:return[5,s()];case 2:if("object"==typeof(c=l.sent()))return[2,c.value];l.label=3;case 3:return[3,1];case 4:return[2]}}))}))},e.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},e}(),or=function(){function t(t){this.Pt=t,this.Vt=!1,this.St=null}return Object.defineProperty(t.prototype,"isDone",{get:function(){return this.Vt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dt",{get:function(){return this.St},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.Pt=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.Vt=!0},t.prototype.Ct=function(t){this.St=t},t.prototype.delete=function(){return cr(this.Pt.delete())},t}(),ar=function(t){function e(e,n){var r=this;return(r=t.call(this,u.UNAVAILABLE,"IndexedDB transaction '"+e+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return Object(a["b"])(e,t),e}(c);function sr(t){return"IndexedDbTransactionError"===t.name}var ur=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(h("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(h("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),cr(n)},t.prototype.add=function(t){return h("SimpleDb","ADD",this.store.name,t,t),cr(this.store.add(t))},t.prototype.get=function(t){var e=this;return cr(this.store.get(t)).next((function(n){return void 0===n&&(n=null),h("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return h("SimpleDb","DELETE",this.store.name,t),cr(this.store.delete(t))},t.prototype.count=function(){return h("SimpleDb","COUNT",this.store.name),cr(this.store.count())},t.prototype.Nt=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.xt(n,(function(t,e){r.push(e)})).next((function(){return r}))},t.prototype.Ft=function(t,e){h("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.kt=!1;var r=this.cursor(n);return this.xt(r,(function(t,e,n){return n.delete()}))},t.prototype.Ot=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.xt(r,e)},t.prototype.$t=function(t){var e=this.cursor({});return new nr((function(n,r){e.onerror=function(t){var e=fr(t.target.error);r(e)},e.onsuccess=function(e){var r=e.target.result;r?t(r.primaryKey,r.value).next((function(t){t?r.continue():n()})):n()}}))},t.prototype.xt=function(t,e){var n=[];return new nr((function(r,i){t.onerror=function(t){i(t.target.error)},t.onsuccess=function(t){var i=t.target.result;if(i){var o=new or(i),a=e(i.primaryKey,i.value,o);if(a instanceof nr){var s=a.catch((function(t){return o.done(),nr.reject(t)}));n.push(s)}o.isDone?r():null===o.Dt?i.continue():i.continue(o.Dt)}else r()}})).next((function(){return nr.waitFor(n)}))},t.prototype.options=function(t,e){var n;return void 0!==t&&("string"==typeof t?n=t:e=t),{index:n,range:e}},t.prototype.cursor=function(t){var e="next";if(t.reverse&&(e="prev"),t.index){var n=this.store.index(t.index);return t.kt?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function cr(t){return new nr((function(e,n){t.onsuccess=function(t){var n=t.target.result;e(n)},t.onerror=function(t){var e=fr(t.target.error);n(e)}}))}var lr=!1;function fr(t){var e=ir._t(Object(r["r"])());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var i=new c("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return lr||(lr=!0,setTimeout((function(){throw i}),0)),i}}return t}
2396/**
2397 * @license
2398 * Copyright 2020 Google LLC
2399 *
2400 * Licensed under the Apache License, Version 2.0 (the "License");
2401 * you may not use this file except in compliance with the License.
2402 * You may obtain a copy of the License at
2403 *
2404 *   http://www.apache.org/licenses/LICENSE-2.0
2405 *
2406 * Unless required by applicable law or agreed to in writing, software
2407 * distributed under the License is distributed on an "AS IS" BASIS,
2408 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2409 * See the License for the specific language governing permissions and
2410 * limitations under the License.
2411 */var hr=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Mt=e,r.currentSequenceNumber=n,r}return Object(a["b"])(e,t),e}(tr);function dr(t,e){var n=y(t);return ir.It(n.Mt,e)}
2412/**
2413 * @license
2414 * Copyright 2017 Google LLC
2415 *
2416 * Licensed under the Apache License, Version 2.0 (the "License");
2417 * you may not use this file except in compliance with the License.
2418 * You may obtain a copy of the License at
2419 *
2420 *   http://www.apache.org/licenses/LICENSE-2.0
2421 *
2422 * Unless required by applicable law or agreed to in writing, software
2423 * distributed under the License is distributed on an "AS IS" BASIS,
2424 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2425 * See the License for the specific language governing permissions and
2426 * limitations under the License.
2427 */var pr=function(){function t(t,e,n,r){this.batchId=t,this.localWriteTime=e,this.baseMutations=n,this.mutations=r}return t.prototype.applyToRemoteDocument=function(t,e){for(var n=e.mutationResults,r=0;r<this.mutations.length;r++){var i=this.mutations[r];i.key.isEqual(t.key)&&fe(i,t,n[r])}},t.prototype.applyToLocalView=function(t){for(var e=0,n=this.baseMutations;e<n.length;e++)(o=n[e]).key.isEqual(t.key)&&he(o,t,this.localWriteTime);for(var r=0,i=this.mutations;r<i.length;r++){var o;(o=i[r]).key.isEqual(t.key)&&he(o,t,this.localWriteTime)}},t.prototype.applyToLocalDocumentSet=function(t){var e=this;this.mutations.forEach((function(n){var r=t.get(n.key),i=r;e.applyToLocalView(i),r.isValidDocument()||i.convertToNoDocument(T.min())}))},t.prototype.keys=function(){return this.mutations.reduce((function(t,e){return t.add(e.key)}),qe())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&E(this.mutations,t.mutations,(function(t,e){return pe(t,e)}))&&E(this.baseMutations,t.baseMutations,(function(t,e){return pe(t,e)}))},t}(),vr=function(){function t(t,e,n,r){this.batch=t,this.commitVersion=e,this.mutationResults=n,this.docVersions=r}return t.from=function(e,n,r){m(e.mutations.length===r.length);for(var i=Fe(),o=e.mutations,a=0;a<o.length;a++)i=i.insert(o[a].key,r[a].version);return new t(e,n,r,i)},t}(),gr=function(){function t(t,e,n,r,i,o,a){void 0===i&&(i=T.min()),void 0===o&&(o=T.min()),void 0===a&&(a=R.EMPTY_BYTE_STRING),this.target=t,this.targetId=e,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a}return t.prototype.withSequenceNumber=function(e){return new t(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.withResumeToken=function(e,n){return new t(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.withLastLimboFreeSnapshotVersion=function(e){return new t(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken)},t}(),mr=function(t){this.Lt=t};function yr(t,e){if(e.document)return vn(t.Lt,e.document,!!e.hasCommittedMutations);if(e.noDocument){var n=W.fromSegments(e.noDocument.path),r=Or(e.noDocument.readTime),i=st.newNoDocument(n,r);return e.hasCommittedMutations?i.setHasCommittedMutations():i}if(e.unknownDocument){var o=W.fromSegments(e.unknownDocument.path);return r=Or(e.unknownDocument.version),st.newUnknownDocument(o,r)}return g()}function br(t,e,n){var r=wr(n),i=e.key.path.popLast().toArray();if(e.isFoundDocument()){var o=function(t,e){return{name:un(t,e.key),fields:e.data.toProto().mapValue.fields,updateTime:en(t,e.version.toTimestamp())}}(t.Lt,e),a=e.hasCommittedMutations;return new Vn(null,null,o,a,r,i)}if(e.isNoDocument()){var s=e.key.path.toArray(),u=Er(e.version);return a=e.hasCommittedMutations,new Vn(null,new $n(s,u),null,a,r,i)}if(e.isUnknownDocument()){var c=e.key.path.toArray(),l=Er(e.version);return new Vn(new Bn(c,l),null,null,!0,r,i)}return g()}function wr(t){var e=t.toTimestamp();return[e.seconds,e.nanoseconds]}function _r(t){var e=new I(t[0],t[1]);return T.fromTimestamp(e)}function Er(t){var e=t.toTimestamp();return new Ln(e.seconds,e.nanoseconds)}function Or(t){var e=new I(t.seconds,t.nanoseconds);return T.fromTimestamp(e)}function Ir(t,e){for(var n=(e.baseMutations||[]).map((function(e){return mn(t.Lt,e)})),r=0;r<e.mutations.length-1;++r){var i=e.mutations[r];if(r+1<e.mutations.length&&void 0!==e.mutations[r+1].transform){var o=e.mutations[r+1];i.updateTransforms=o.transform.fieldTransforms,e.mutations.splice(r+1,1),++r}}var a=e.mutations.map((function(e){return mn(t.Lt,e)})),s=I.fromMillis(e.localWriteTimeMs);return new pr(e.batchId,s,n,a)}function Tr(t){var e,n,r=Or(t.readTime),i=void 0!==t.lastLimboFreeSnapshotVersion?Or(t.lastLimboFreeSnapshotVersion):T.min();return void 0!==t.query.documents?(m(1===(n=t.query).documents.length),e=Mt(jt(fn(n.documents[0])))):e=function(t){return Mt(wn(t))}(t.query),new gr(e,t.targetId,0,t.lastListenSequenceNumber,r,i,R.fromBase64String(t.resumeToken))}function Sr(t,e){var n,r=Er(e.snapshotVersion),i=Er(e.lastLimboFreeSnapshotVersion);n=ht(e.target)?yn(t.Lt,e.target):bn(t.Lt,e.target);var o=e.resumeToken.toBase64();return new Wn(e.targetId,lt(e.target),r,o,e.sequenceNumber,i,n)}function kr(t){var e=wn({parent:t.parent,structuredQuery:t.structuredQuery});return"LAST"===t.limitType?Ft(e,e.limit,"L"):e}
2428/**
2429 * @license
2430 * Copyright 2020 Google LLC
2431 *
2432 * Licensed under the Apache License, Version 2.0 (the "License");
2433 * you may not use this file except in compliance with the License.
2434 * You may obtain a copy of the License at
2435 *
2436 *   http://www.apache.org/licenses/LICENSE-2.0
2437 *
2438 * Unless required by applicable law or agreed to in writing, software
2439 * distributed under the License is distributed on an "AS IS" BASIS,
2440 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2441 * See the License for the specific language governing permissions and
2442 * limitations under the License.
2443 */var Cr=function(){function t(){}return t.prototype.getBundleMetadata=function(t,e){return xr(t).get(e).next((function(t){if(t)return{id:(e=t).bundleId,createTime:Or(e.createTime),version:e.version};var e}))},t.prototype.saveBundleMetadata=function(t,e){return xr(t).put({bundleId:(n=e).id,createTime:Er(on(n.createTime)),version:n.version});var n},t.prototype.getNamedQuery=function(t,e){return jr(t).get(e).next((function(t){if(t)return{name:(e=t).name,query:kr(e.bundledQuery),readTime:Or(e.readTime)};var e}))},t.prototype.saveNamedQuery=function(t,e){return jr(t).put(function(t){return{name:t.name,readTime:Er(on(t.readTime)),bundledQuery:t.bundledQuery}}(e))},t}();function xr(t){return dr(t,Yn.store)}function jr(t){return dr(t,Qn.store)}
2444/**
2445 * @license
2446 * Copyright 2019 Google LLC
2447 *
2448 * Licensed under the Apache License, Version 2.0 (the "License");
2449 * you may not use this file except in compliance with the License.
2450 * You may obtain a copy of the License at
2451 *
2452 *   http://www.apache.org/licenses/LICENSE-2.0
2453 *
2454 * Unless required by applicable law or agreed to in writing, software
2455 * distributed under the License is distributed on an "AS IS" BASIS,
2456 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2457 * See the License for the specific language governing permissions and
2458 * limitations under the License.
2459 */var Ar=function(){function t(){this.Bt=new Nr}return t.prototype.addToCollectionParentIndex=function(t,e){return this.Bt.add(e),nr.resolve()},t.prototype.getCollectionParents=function(t,e){return nr.resolve(this.Bt.getEntries(e))},t}(),Nr=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.lastSegment(),n=t.popLast(),r=this.index[e]||new Ae(j.comparator),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.has=function(t){var e=t.lastSegment(),n=t.popLast(),r=this.index[e];return r&&r.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new Ae(j.comparator)).toArray()},t}(),Pr=function(){function t(){this.qt=new Nr}return t.prototype.addToCollectionParentIndex=function(t,e){var n=this;if(!this.qt.has(e)){var r=e.lastSegment(),i=e.popLast();t.addOnCommittedListener((function(){n.qt.add(e)}));var o={collectionId:r,parent:Nn(i)};return Rr(t).put(o)}return nr.resolve()},t.prototype.getCollectionParents=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[O(e),""],!1,!0);return Rr(t).Nt(r).next((function(t){for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.collectionId!==e)break;n.push(Dn(o.parent))}return n}))},t}();function Rr(t){return dr(t,Gn.store)}
2460/**
2461 * @license
2462 * Copyright 2018 Google LLC
2463 *
2464 * Licensed under the Apache License, Version 2.0 (the "License");
2465 * you may not use this file except in compliance with the License.
2466 * You may obtain a copy of the License at
2467 *
2468 *   http://www.apache.org/licenses/LICENSE-2.0
2469 *
2470 * Unless required by applicable law or agreed to in writing, software
2471 * distributed under the License is distributed on an "AS IS" BASIS,
2472 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2473 * See the License for the specific language governing permissions and
2474 * limitations under the License.
2475 */var Dr={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},Lr=function(){function t(t,e,n){this.cacheSizeCollectionThreshold=t,this.percentileToCollect=e,this.maximumSequenceNumbersToCollect=n}return t.withCacheSize=function(e){return new t(e,t.DEFAULT_COLLECTION_PERCENTILE,t.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)},t}();
2476/**
2477 * @license
2478 * Copyright 2020 Google LLC
2479 *
2480 * Licensed under the Apache License, Version 2.0 (the "License");
2481 * you may not use this file except in compliance with the License.
2482 * You may obtain a copy of the License at
2483 *
2484 *   http://www.apache.org/licenses/LICENSE-2.0
2485 *
2486 * Unless required by applicable law or agreed to in writing, software
2487 * distributed under the License is distributed on an "AS IS" BASIS,
2488 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2489 * See the License for the specific language governing permissions and
2490 * limitations under the License.
2491 */function Mr(t,e,n){var r=t.store(Un.store),i=t.store(qn.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,u=r.Ot({range:a},(function(t,e,n){return s++,n.delete()}));o.push(u.next((function(){m(1===s)})));for(var c=[],l=0,f=n.mutations;l<f.length;l++){var h=f[l],d=qn.key(e,h.key.path,n.batchId);o.push(i.delete(d)),c.push(h.key)}return nr.waitFor(o).next((function(){return c}))}function Fr(t){if(!t)return 0;var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw g();e=t.noDocument}return JSON.stringify(e).length}
2492/**
2493 * @license
2494 * Copyright 2017 Google LLC
2495 *
2496 * Licensed under the Apache License, Version 2.0 (the "License");
2497 * you may not use this file except in compliance with the License.
2498 * You may obtain a copy of the License at
2499 *
2500 *   http://www.apache.org/licenses/LICENSE-2.0
2501 *
2502 * Unless required by applicable law or agreed to in writing, software
2503 * distributed under the License is distributed on an "AS IS" BASIS,
2504 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2505 * See the License for the specific language governing permissions and
2506 * limitations under the License.
2507 */Lr.DEFAULT_COLLECTION_PERCENTILE=10,Lr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Lr.DEFAULT=new Lr(41943040,Lr.DEFAULT_COLLECTION_PERCENTILE,Lr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Lr.DISABLED=new Lr(-1,0,0);var Ur=function(){function t(t,e,n,r){this.userId=t,this.R=e,this.Ut=n,this.referenceDelegate=r,this.Qt={}}return t.Kt=function(e,n,r,i){return m(""!==e.uid),new t(e.isAuthenticated()?e.uid:"",n,r,i)},t.prototype.checkEmpty=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return $r(t).Ot({index:Un.userMutationsIndex,range:n},(function(t,n,r){e=!1,r.done()})).next((function(){return e}))},t.prototype.addMutationBatch=function(t,e,n,r){var i=this,o=Br(t),a=$r(t);return a.add({}).next((function(s){m("number"==typeof s);for(var u=new pr(s,e,n,r),c=function(t,e,n){var r=n.baseMutations.map((function(e){return gn(t.Lt,e)})),i=n.mutations.map((function(e){return gn(t.Lt,e)}));return new Un(e,n.batchId,n.localWriteTime.toMillis(),r,i)}(i.R,i.userId,u),l=[],f=new Ae((function(t,e){return _(t.canonicalString(),e.canonicalString())})),h=0,d=r;h<d.length;h++){var p=d[h],v=qn.key(i.userId,p.key.path,s);f=f.add(p.key.path.popLast()),l.push(a.put(c)),l.push(o.put(v,qn.PLACEHOLDER))}return f.forEach((function(e){l.push(i.Ut.addToCollectionParentIndex(t,e))})),t.addOnCommittedListener((function(){i.Qt[s]=u.keys()})),nr.waitFor(l).next((function(){return u}))}))},t.prototype.lookupMutationBatch=function(t,e){var n=this;return $r(t).get(e).next((function(t){return t?(m(t.userId===n.userId),Ir(n.R,t)):null}))},t.prototype.jt=function(t,e){var n=this;return this.Qt[e]?nr.resolve(this.Qt[e]):this.lookupMutationBatch(t,e).next((function(t){if(t){var r=t.keys();return n.Qt[e]=r,r}return null}))},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=this,r=e+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return $r(t).Ot({index:Un.userMutationsIndex,range:i},(function(t,e,i){e.userId===n.userId&&(m(e.batchId>=r),o=Ir(n.R,e)),i.done()})).next((function(){return o}))},t.prototype.getHighestUnacknowledgedBatchId=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return $r(t).Ot({index:Un.userMutationsIndex,range:e,reverse:!0},(function(t,e,r){n=e.batchId,r.done()})).next((function(){return n}))},t.prototype.getAllMutationBatches=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return $r(t).Nt(Un.userMutationsIndex,n).next((function(t){return t.map((function(t){return Ir(e.R,t)}))}))},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,r=qn.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return Br(t).Ot({range:i},(function(r,i,a){var s=r[0],u=r[1],c=r[2],l=Dn(u);if(s===n.userId&&e.path.isEqual(l))return $r(t).get(c).next((function(t){if(!t)throw g();m(t.userId===n.userId),o.push(Ir(n.R,t))}));a.done()})).next((function(){return o}
2507))},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,r=new Ae(_),i=[];return e.forEach((function(e){var o=qn.prefixForPath(n.userId,e.path),a=IDBKeyRange.lowerBound(o),s=Br(t).Ot({range:a},(function(t,i,o){var a=t[0],s=t[1],u=t[2],c=Dn(s);a===n.userId&&e.path.isEqual(c)?r=r.add(u):o.done()}));i.push(s)})),nr.waitFor(i).next((function(){return n.Wt(t,r)}))},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=this,r=e.path,i=r.length+1,o=qn.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new Ae(_);return Br(t).Ot({range:a},(function(t,e,o){var a=t[0],u=t[1],c=t[2],l=Dn(u);a===n.userId&&r.isPrefixOf(l)?l.length===i&&(s=s.add(c)):o.done()})).next((function(){return n.Wt(t,s)}))},t.prototype.Wt=function(t,e){var n=this,r=[],i=[];return e.forEach((function(e){i.push($r(t).get(e).next((function(t){if(null===t)throw g();m(t.userId===n.userId),r.push(Ir(n.R,t))})))})),nr.waitFor(i).next((function(){return r}))},t.prototype.removeMutationBatch=function(t,e){var n=this;return Mr(t.Mt,this.userId,e).next((function(r){return t.addOnCommittedListener((function(){n.Gt(e.batchId)})),nr.forEach(r,(function(e){return n.referenceDelegate.markPotentiallyOrphaned(t,e)}))}))},t.prototype.Gt=function(t){delete this.Qt[t]},t.prototype.performConsistencyCheck=function(t){var e=this;return this.checkEmpty(t).next((function(n){if(!n)return nr.resolve();var r=IDBKeyRange.lowerBound(qn.prefixForUser(e.userId)),i=[];return Br(t).Ot({range:r},(function(t,n,r){if(t[0]===e.userId){var o=Dn(t[1]);i.push(o)}else r.done()})).next((function(){m(0===i.length)}))}))},t.prototype.containsKey=function(t,e){return qr(t,this.userId,e)},t.prototype.zt=function(t){var e=this;return Vr(t).get(this.userId).next((function(t){return t||new Fn(e.userId,-1,"")}))},t}();function qr(t,e,n){var r=qn.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return Br(t).Ot({range:o,kt:!0},(function(t,n,r){var o=t[0],s=t[1];t[2],o===e&&s===i&&(a=!0),r.done()})).next((function(){return a}))}function $r(t){return dr(t,Un.store)}function Br(t){return dr(t,qn.store)}function Vr(t){return dr(t,Fn.store)}
2508/**
2509 * @license
2510 * Copyright 2017 Google LLC
2511 *
2512 * Licensed under the Apache License, Version 2.0 (the "License");
2513 * you may not use this file except in compliance with the License.
2514 * You may obtain a copy of the License at
2515 *
2516 *   http://www.apache.org/licenses/LICENSE-2.0
2517 *
2518 * Unless required by applicable law or agreed to in writing, software
2519 * distributed under the License is distributed on an "AS IS" BASIS,
2520 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2521 * See the License for the specific language governing permissions and
2522 * limitations under the License.
2523 */var Kr=function(){function t(t){this.Ht=t}return t.prototype.next=function(){return this.Ht+=2,this.Ht},t.Jt=function(){return new t(0)},t.Yt=function(){return new t(-1)},t}(),Wr=function(){function t(t,e){this.referenceDelegate=t,this.R=e}return t.prototype.allocateTargetId=function(t){var e=this;return this.Xt(t).next((function(n){var r=new Kr(n.highestTargetId);return n.highestTargetId=r.next(),e.Zt(t,n).next((function(){return n.highestTargetId}))}))},t.prototype.getLastRemoteSnapshotVersion=function(t){return this.Xt(t).next((function(t){return T.fromTimestamp(new I(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.getHighestSequenceNumber=function(t){return this.Xt(t).next((function(t){return t.highestListenSequenceNumber}))},t.prototype.setTargetsMetadata=function(t,e,n){var r=this;return this.Xt(t).next((function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.toTimestamp()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Zt(t,i)}))},t.prototype.addTargetData=function(t,e){var n=this;return this.te(t,e).next((function(){return n.Xt(t).next((function(r){return r.targetCount+=1,n.ee(e,r),n.Zt(t,r)}))}))},t.prototype.updateTargetData=function(t,e){return this.te(t,e)},t.prototype.removeTargetData=function(t,e){var n=this;return this.removeMatchingKeysForTargetId(t,e.targetId).next((function(){return zr(t).delete(e.targetId)})).next((function(){return n.Xt(t)})).next((function(e){return m(e.targetCount>0),e.targetCount-=1,n.Zt(t,e)}))},t.prototype.removeTargets=function(t,e,n){var r=this,i=0,o=[];return zr(t).Ot((function(a,s){var u=Tr(s);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,o.push(r.removeTargetData(t,u)))})).next((function(){return nr.waitFor(o)})).next((function(){return i}))},t.prototype.forEachTarget=function(t,e){return zr(t).Ot((function(t,n){var r=Tr(n);e(r)}))},t.prototype.Xt=function(t){return Hr(t).get(Hn.key).next((function(t){return m(null!==t),t}))},t.prototype.Zt=function(t,e){return Hr(t).put(Hn.key,e)},t.prototype.te=function(t,e){return zr(t).put(Sr(this.R,e))},t.prototype.ee=function(t,e){var n=!1;return t.targetId>e.highestTargetId&&(e.highestTargetId=t.targetId,n=!0),t.sequenceNumber>e.highestListenSequenceNumber&&(e.highestListenSequenceNumber=t.sequenceNumber,n=!0),n},t.prototype.getTargetCount=function(t){return this.Xt(t).next((function(t){return t.targetCount}))},t.prototype.getTargetData=function(t,e){var n=lt(e),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return zr(t).Ot({range:r,index:Wn.queryTargetsIndexName},(function(t,n,r){var o=Tr(n);ft(e,o.target)&&(i=o,r.done())})).next((function(){return i}))},t.prototype.addMatchingKeys=function(t,e,n){var r=this,i=[],o=Gr(t);return e.forEach((function(e){var a=Nn(e.path);i.push(o.put(new zn(n,a))),i.push(r.referenceDelegate.addReference(t,n,e))})),nr.waitFor(i)},t.prototype.removeMatchingKeys=function(t,e,n){var r=this,i=Gr(t);return nr.forEach(e,(function(e){var o=Nn(e.path);return nr.waitFor([i.delete([n,o]),r.referenceDelegate.removeReference(t,n,e)])}))},t.prototype.removeMatchingKeysForTargetId=function(t,e){var n=Gr(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=Gr(t),i=qe();return r.Ot({range:n,kt:!0},(function(t,e,n){var r=Dn(t[1]),o=new W(r);
2523i=i.add(o)})).next((function(){return i}))},t.prototype.containsKey=function(t,e){var n=Nn(e.path),r=IDBKeyRange.bound([n],[O(n)],!1,!0),i=0;return Gr(t).Ot({index:zn.documentTargetsIndex,kt:!0,range:r},(function(t,e,n){var r=t[0];t[1],0!==r&&(i++,n.done())})).next((function(){return i>0}))},t.prototype.lt=function(t,e){return zr(t).get(e).next((function(t){return t?Tr(t):null}))},t}();
2524/**
2525 * @license
2526 * Copyright 2017 Google LLC
2527 *
2528 * Licensed under the Apache License, Version 2.0 (the "License");
2529 * you may not use this file except in compliance with the License.
2530 * You may obtain a copy of the License at
2531 *
2532 *   http://www.apache.org/licenses/LICENSE-2.0
2533 *
2534 * Unless required by applicable law or agreed to in writing, software
2535 * distributed under the License is distributed on an "AS IS" BASIS,
2536 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2537 * See the License for the specific language governing permissions and
2538 * limitations under the License.
2539 */function zr(t){return dr(t,Wn.store)}function Hr(t){return dr(t,Hn.store)}function Gr(t){return dr(t,zn.store)}
2540/**
2541 * @license
2542 * Copyright 2017 Google LLC
2543 *
2544 * Licensed under the Apache License, Version 2.0 (the "License");
2545 * you may not use this file except in compliance with the License.
2546 * You may obtain a copy of the License at
2547 *
2548 *   http://www.apache.org/licenses/LICENSE-2.0
2549 *
2550 * Unless required by applicable law or agreed to in writing, software
2551 * distributed under the License is distributed on an "AS IS" BASIS,
2552 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2553 * See the License for the specific language governing permissions and
2554 * limitations under the License.
2555 */function Xr(t){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){if(t.code!==u.FAILED_PRECONDITION||t.message!==Zn)throw t;return h("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}
2556/**
2557 * @license
2558 * Copyright 2020 Google LLC
2559 *
2560 * Licensed under the Apache License, Version 2.0 (the "License");
2561 * you may not use this file except in compliance with the License.
2562 * You may obtain a copy of the License at
2563 *
2564 *   http://www.apache.org/licenses/LICENSE-2.0
2565 *
2566 * Unless required by applicable law or agreed to in writing, software
2567 * distributed under the License is distributed on an "AS IS" BASIS,
2568 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2569 * See the License for the specific language governing permissions and
2570 * limitations under the License.
2571 */function Yr(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=_(n,i);return 0===a?_(r,o):a}var Qr=function(){function t(t){this.ne=t,this.buffer=new Ae(Yr),this.se=0}return t.prototype.ie=function(){return++this.se},t.prototype.re=function(t){var e=[t,this.ie()];if(this.buffer.size<this.ne)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();Yr(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!1,configurable:!0}),t}(),Jr=function(){function t(t,e){this.garbageCollector=t,this.asyncQueue=e,this.oe=!1,this.ce=null}return t.prototype.start=function(t){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.ue(t)},t.prototype.stop=function(){this.ce&&(this.ce.cancel(),this.ce=null)},Object.defineProperty(t.prototype,"started",{get:function(){return null!==this.ce},enumerable:!1,configurable:!0}),t.prototype.ue=function(t){var e=this,n=this.oe?3e5:6e4;h("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.ce=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",n,(function(){return Object(a["a"])(e,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:this.ce=null,this.oe=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.collectGarbage(this.garbageCollector)];case 2:return n.sent(),[3,7];case 3:return sr(e=n.sent())?(h("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]):[3,4];case 4:return[4,Xr(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.ue(t)];case 8:return n.sent(),[2]}}))}))}))},t}(),Zr=function(){function t(t,e){this.ae=t,this.params=e}return t.prototype.calculateTargetCount=function(t,e){return this.ae.he(t).next((function(t){return Math.floor(e/100*t)}))},t.prototype.nthSequenceNumber=function(t,e){var n=this;if(0===e)return nr.resolve(s.o);var r=new Qr(e);return this.ae.forEachTarget(t,(function(t){return r.re(t.sequenceNumber)})).next((function(){return n.ae.le(t,(function(t){return r.re(t)}))}
2571)).next((function(){return r.maxValue}))},t.prototype.removeTargets=function(t,e,n){return this.ae.removeTargets(t,e,n)},t.prototype.removeOrphanedDocuments=function(t,e){return this.ae.removeOrphanedDocuments(t,e)},t.prototype.collect=function(t,e){var n=this;return-1===this.params.cacheSizeCollectionThreshold?(h("LruGarbageCollector","Garbage collection skipped; disabled"),nr.resolve(Dr)):this.getCacheSize(t).next((function(r){return r<n.params.cacheSizeCollectionThreshold?(h("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.cacheSizeCollectionThreshold),Dr):n.fe(t,e)}))},t.prototype.getCacheSize=function(t){return this.ae.getCacheSize(t)},t.prototype.fe=function(t,e){var n,r,o,a,s,u,c,l=this,d=Date.now();return this.calculateTargetCount(t,this.params.percentileToCollect).next((function(e){return e>l.params.maximumSequenceNumbersToCollect?(h("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.params.maximumSequenceNumbersToCollect+" from "+e),r=l.params.maximumSequenceNumbersToCollect):r=e,a=Date.now(),l.nthSequenceNumber(t,r)})).next((function(r){return n=r,s=Date.now(),l.removeTargets(t,n,e)})).next((function(e){return o=e,u=Date.now(),l.removeOrphanedDocuments(t,n)})).next((function(t){return c=Date.now(),f()<=i["a"].DEBUG&&h("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(a-d)+"ms\n\tDetermined least recently used "+r+" in "+(s-a)+"ms\n\tRemoved "+o+" targets in "+(u-s)+"ms\n\tRemoved "+t+" documents in "+(c-u)+"ms\nTotal Duration: "+(c-d)+"ms"),nr.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:o,documentsRemoved:t})}))},t}(),ti=function(){function t(t,e){this.db=t,this.garbageCollector=function(t,e){return new Zr(t,e)}(this,e)}return t.prototype.he=function(t){var e=this.de(t);return this.db.getTargetCache().getTargetCount(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype.de=function(t){var e=0;return this.le(t,(function(t){e++})).next((function(){return e}))},t.prototype.forEachTarget=function(t,e){return this.db.getTargetCache().forEachTarget(t,e)},t.prototype.le=function(t,e){return this.we(t,(function(t,n){return e(n)}))},t.prototype.addReference=function(t,e,n){return ei(t,n)},t.prototype.removeReference=function(t,e,n){return ei(t,n)},t.prototype.removeTargets=function(t,e,n){return this.db.getTargetCache().removeTargets(t,e,n)},t.prototype.markPotentiallyOrphaned=function(t,e){return ei(t,e)},t.prototype._e=function(t,e){return function(t,e){var n=!1;return Vr(t).$t((function(r){return qr(t,r,e).next((function(t){return t&&(n=!0),nr.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.removeOrphanedDocuments=function(t,e){var n=this,r=this.db.getRemoteDocumentCache().newChangeBuffer(),i=[],o=0;return this.we(t,(function(a,s){if(s<=e){var u=n._e(t,a).next((function(e){if(!e)return o++,r.getEntry(t,a).next((function(){return r.removeEntry(a),Gr(t).delete([0,Nn(a.path)])}))}));i.push(u)}})).next((function(){return nr.waitFor(i)})).next((function(){return r.apply(t)})).next((function(){return o}))},t.prototype.removeTarget=function(t,e){var n=e.withSequenceNumber(t.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(t,n)},t.prototype.updateLimboDocument=function(t,e){return ei(t,e)},t.prototype.we=function(t,e){var n,r=Gr(t),i=s.o;return r.Ot({index:zn.documentTargetsIndex},(function(t,r){var o=t[0],a=(t[1],r.path),u=r.sequenceNumber;0===o?(i!==s.o&&e(new W(Dn(n)),i),i=u,n=a):i=s.o})).next((function(){i!==s.o&&e(new W(Dn(n)),i)}))},t.prototype.getCacheSize=function(t){return this.db.getRemoteDocumentCache().getSize(t)},t}();function ei(t,e){return Gr(t).put(function(t,e){return new zn(0,Nn(t.path),e)}(e,t.currentSequenceNumber))}
2572/**
2573 * @license
2574 * Copyright 2017 Google LLC
2575 *
2576 * Licensed under the Apache License, Version 2.0 (the "License");
2577 * you may not use this file except in compliance with the License.
2578 * You may obtain a copy of the License at
2579 *
2580 *   http://www.apache.org/licenses/LICENSE-2.0
2581 *
2582 * Unless required by applicable law or agreed to in writing, softw
2582are
2583 * distributed under the License is distributed on an "AS IS" BASIS,
2584 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2585 * See the License for the specific language governing permissions and
2586 * limitations under the License.
2587 */var ni=function(){function t(t,e){this.mapKeyFn=t,this.equalsFn=e,this.inner={}}return t.prototype.get=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];if(this.equalsFn(a,t))return s}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.mapKeyFn(t),r=this.inner[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(this.equalsFn(r[i][0],t))return void(r[i]=[t,e]);r.push([t,e])}else this.inner[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.equalsFn(n[r][0],t))return 1===n.length?delete this.inner[e]:n.splice(r,1),!0;return!1},t.prototype.forEach=function(t){k(this.inner,(function(e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];t(a,s)}}))},t.prototype.isEmpty=function(){return C(this.inner)},t}(),ri=function(){function t(){this.changes=new ni((function(t){return t.toString()}),(function(t,e){return t.isEqual(e)})),this.changesApplied=!1}return t.prototype.getReadTime=function(t){var e=this.changes.get(t);return e?e.readTime:T.min()},t.prototype.addEntry=function(t,e){this.assertNotApplied(),this.changes.set(t.key,{document:t,readTime:e})},t.prototype.removeEntry=function(t,e){void 0===e&&(e=null),this.assertNotApplied(),this.changes.set(t,{document:st.newInvalidDocument(t),readTime:e})},t.prototype.getEntry=function(t,e){this.assertNotApplied();var n=this.changes.get(e);return void 0!==n?nr.resolve(n.document):this.getFromCache(t,e)},t.prototype.getEntries=function(t,e){return this.getAllFromCache(t,e)},t.prototype.apply=function(t){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(t)},t.prototype.assertNotApplied=function(){},t}(),ii=function(){function t(t,e){this.R=t,this.Ut=e}return t.prototype.addEntry=function(t,e,n){return si(t).put(ui(e),n)},t.prototype.removeEntry=function(t,e){var n=si(t),r=ui(e);return n.delete(r)},t.prototype.updateMetadata=function(t,e){var n=this;return this.getMetadata(t).next((function(r){return r.byteSize+=e,n.me(t,r)}))},t.prototype.getEntry=function(t,e){var n=this;return si(t).get(ui(e)).next((function(t){return n.ye(e,t)}))},t.prototype.ge=function(t,e){var n=this;return si(t).get(ui(e)).next((function(t){return{document:n.ye(e,t),size:Fr(t)}}))},t.prototype.getEntries=function(t,e){var n=this,r=Re();return this.pe(t,e,(function(t,e){var i=n.ye(t,e);r=r.insert(t,i)})).next((function(){return r}))},t.prototype.Ee=function(t,e){var n=this,r=Re(),i=new Ce(W.comparator);return this.pe(t,e,(function(t,e){var o=n.ye(t,e);r=r.insert(t,o),i=i.insert(t,Fr(e))})).next((function(){return{documents:r,Te:i}}))},t.prototype.pe=function(t,e,n){if(e.isEmpty())return nr.resolve();var r=IDBKeyRange.bound(e.first().path.toArray(),e.last().path.toArray()),i=e.getIterator(),o=i.getNext();return si(t).Ot({range:r},(function(t,e,r){for(var a=W.fromSegments(t);o&&W.comparator(o,a)<0;)n(o,null),o=i.getNext();o&&o.isEqual(a)&&(n(o,e),o=i.hasNext()?i.getNext():null),o?r.Ct(o.path.toArray()):r.done()})).next((function(){for(;o;)n(o,null),o=i.hasNext()?i.getNext():null}))},t.prototype.getDocumentsMatchingQuery=function(t,e,n){var r=this,i=Re(),o=e.path.length+1,a={};if(n.isEqual(T.min())){var s=e.path.toArray();a.range=IDBKeyRange.lowerBound(s)}else{var u=e.path.toArray(),c=wr(n);a.range=IDBKeyRange.lowerBound([u,c],!0),a.index=Vn.collectionReadTimeIndex}return si(t).Ot(a,(function(t,n,a){if(t.length===o){var s=yr(r.R,n);e.path.isPrefixOf(s.key.path)?Bt(e,s)&&(i=i.insert(s.key,s)):a.done()}})).next((function(){return i}))},t.prototype.newChangeBuffer=function(t){return new oi(this,!!t&&t.trackRemovals)},t.prototype.getSize=function(t){return this.getMetadata(t).next((function(t){return t.byteSize}))},t.prototype.getMetadata=function(t){return ai(t).get(Kn.key).next((function(t){return m(!!t),t}))},t.prototype.me=function(t,e){return ai(t).put(Kn.key,e)},t.prototype.ye=function(t,e){if(e){var n=yr(this.R,e);if(!n.isNoDocument()||!n.version.isEqual(T.min()))return n}return st.newInvalidDocument(t)},t}(),oi=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Ie=e,r.trackRemovals=n,r.Ae=new ni((function(t){return t.toString()}),(function(t,e){return t.isEqual(e)})),r}return Object(a["b"])(e,t),e.prototype.applyChanges=function(t){var e=this,n=[],r=0,i=new Ae((function(t,e){return _(t.canonicalString(),e.canonicalString())}));
2587return this.changes.forEach((function(o,a){var s=e.Ae.get(o);if(a.document.isValidDocument()){var u=br(e.Ie.R,a.document,e.getReadTime(o));i=i.add(o.path.popLast());var c=Fr(u);r+=c-s,n.push(e.Ie.addEntry(t,o,u))}else if(r-=s,e.trackRemovals){var l=br(e.Ie.R,st.newNoDocument(o,T.min()),e.getReadTime(o));n.push(e.Ie.addEntry(t,o,l))}else n.push(e.Ie.removeEntry(t,o))})),i.forEach((function(r){n.push(e.Ie.Ut.addToCollectionParentIndex(t,r))})),n.push(this.Ie.updateMetadata(t,r)),nr.waitFor(n)},e.prototype.getFromCache=function(t,e){var n=this;return this.Ie.ge(t,e).next((function(t){return n.Ae.set(e,t.size),t.document}))},e.prototype.getAllFromCache=function(t,e){var n=this;return this.Ie.Ee(t,e).next((function(t){var e=t.documents;return t.Te.forEach((function(t,e){n.Ae.set(t,e)})),e}))},e}(ri);
2588/**
2589 * @license
2590 * Copyright 2017 Google LLC
2591 *
2592 * Licensed under the Apache License, Version 2.0 (the "License");
2593 * you may not use this file except in compliance with the License.
2594 * You may obtain a copy of the License at
2595 *
2596 *   http://www.apache.org/licenses/LICENSE-2.0
2597 *
2598 * Unless required by applicable law or agreed to in writing, software
2599 * distributed under the License is distributed on an "AS IS" BASIS,
2600 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2601 * See the License for the specific language governing permissions and
2602 * limitations under the License.
2603 */function ai(t){return dr(t,Kn.store)}function si(t){return dr(t,Vn.store)}function ui(t){return t.path.toArray()}
2604/**
2605 * @license
2606 * Copyright 2020 Google LLC
2607 *
2608 * Licensed under the Apache License, Version 2.0 (the "License");
2609 * you may not use this file except in compliance with the License.
2610 * You may obtain a copy of the License at
2611 *
2612 *   http://www.apache.org/licenses/LICENSE-2.0
2613 *
2614 * Unless required by applicable law or agreed to in writing, software
2615 * distributed under the License is distributed on an "AS IS" BASIS,
2616 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2617 * See the License for the specific language governing permissions and
2618 * limitations under the License.
2619 */var ci=function(){function t(t){this.R=t}return t.prototype.Rt=function(t,e,n,r){var i=this;m(n<r&&n>=0&&r<=11);var o=new rr("createOrUpgrade",e);n<1&&r>=1&&(function(t){t.createObjectStore(Mn.store)}(t),function(t){t.createObjectStore(Fn.store,{keyPath:Fn.keyPath}),t.createObjectStore(Un.store,{keyPath:Un.keyPath,autoIncrement:!0}).createIndex(Un.userMutationsIndex,Un.userMutationsKeyPath,{unique:!0}),t.createObjectStore(qn.store)}(t),li(t),function(t){t.createObjectStore(Vn.store)}(t));var a=nr.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(zn.store),t.deleteObjectStore(Wn.store),t.deleteObjectStore(Hn.store)}(t),li(t)),a=a.next((function(){return function(t){var e=t.store(Hn.store),n=new Hn(0,0,T.min().toTimestamp(),0);return e.put(Hn.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(a=a.next((function(){return function(t,e){return e.store(Un.store).Nt().next((function(n){t.deleteObjectStore(Un.store),t.createObjectStore(Un.store,{keyPath:Un.keyPath,autoIncrement:!0}).createIndex(Un.userMutationsIndex,Un.userMutationsKeyPath,{unique:!0});var r=e.store(Un.store),i=n.map((function(t){return r.put(t)}));return nr.waitFor(i)}))}(t,o)}))),a=a.next((function(){!function(t){t.createObjectStore(Xn.store,{keyPath:Xn.keyPath})}(t)}))),n<5&&r>=5&&(a=a.next((function(){return i.Re(o)}))),n<6&&r>=6&&(a=a.next((function(){return function(t){t.createObjectStore(Kn.store)}(t),i.be(o)}
2619))),n<7&&r>=7&&(a=a.next((function(){return i.ve(o)}))),n<8&&r>=8&&(a=a.next((function(){return i.Pe(t,o)}))),n<9&&r>=9&&(a=a.next((function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(Vn.store);e.createIndex(Vn.readTimeIndex,Vn.readTimeIndexPath,{unique:!1}),e.createIndex(Vn.collectionReadTimeIndex,Vn.collectionReadTimeIndexPath,{unique:!1})}(e)}))),n<10&&r>=10&&(a=a.next((function(){return i.Ve(o)}))),n<11&&r>=11&&(a=a.next((function(){!function(t){t.createObjectStore(Yn.store,{keyPath:Yn.keyPath})}(t),function(t){t.createObjectStore(Qn.store,{keyPath:Qn.keyPath})}(t)}))),a},t.prototype.be=function(t){var e=0;return t.store(Vn.store).Ot((function(t,n){e+=Fr(n)})).next((function(){var n=new Kn(e);return t.store(Kn.store).put(Kn.key,n)}))},t.prototype.Re=function(t){var e=this,n=t.store(Fn.store),r=t.store(Un.store);return n.Nt().next((function(n){return nr.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Nt(Un.userMutationsIndex,i).next((function(r){return nr.forEach(r,(function(r){m(r.userId===n.userId);var i=Ir(e.R,r);return Mr(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.ve=function(t){var e=t.store(zn.store),n=t.store(Vn.store);return t.store(Hn.store).get(Hn.key).next((function(t){var r=[];return n.Ot((function(n,i){var o=new j(n),a=function(t){return[0,Nn(t)]}(o);r.push(e.get(a).next((function(n){return n?nr.resolve():function(n){return e.put(new zn(0,Nn(n),t.highestListenSequenceNumber))}(o)})))})).next((function(){return nr.waitFor(r)}))}))},t.prototype.Pe=function(t,e){t.createObjectStore(Gn.store,{keyPath:Gn.keyPath});var n=e.store(Gn.store),r=new Nr,i=function(t){if(r.add(t)){var e=t.lastSegment(),i=t.popLast();return n.put({collectionId:e,parent:Nn(i)})}};return e.store(Vn.store).Ot({kt:!0},(function(t,e){var n=new j(t);return i(n.popLast())})).next((function(){return e.store(qn.store).Ot({kt:!0},(function(t,e){t[0];var n=t[1],r=(t[2],Dn(n));return i(r.popLast())}))}))},t.prototype.Ve=function(t){var e=this,n=t.store(Wn.store);return n.Ot((function(t,r){var i=Tr(r),o=Sr(e.R,i);return n.put(o)}))},t}();function li(t){t.createObjectStore(zn.store,{keyPath:zn.keyPath}).createIndex(zn.documentTargetsIndex,zn.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(Wn.store,{keyPath:Wn.keyPath}).createIndex(Wn.queryTargetsIndexName,Wn.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(Hn.store)}var fi="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",hi=function(){function t(e,n,r,i,o,a,s,l,f,h){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Se=o,this.window=a,this.document=s,this.De=f,this.Ce=h,this.Ne=null,this.xe=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Fe=null,this.inForeground=!1,this.ke=null,this.Oe=null,this.$e=Number.NEGATIVE_INFINITY,this.Me=function(t){return Promise.resolve()},!t.yt())throw new c(u.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new ti(this,i),this.Le=n+"main",this.R=new mr(l),this.Be=new ir(this.Le,11,new ci(this.R)),this.qe=new Wr(this.referenceDelegate,this.R),this.Ut=new Pr,this.Ue=function(t,e){return new ii(t,e)}(this.R,this.Ut),this.Qe=new Cr,this.window&&this.window.localStorage?this.Ke=this.window.localStorage:(this.Ke=null,!1===h&&d("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.prototype.start=function(){var t=this;return this.je().then((function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new c(u.FAILED_PRECONDITION,fi);return t.We(),t.Ge(),t.ze(),t.runTransaction("getHighestListenSequenceNumber","readonly",(function(e){return t.qe.getHighestSequenceNumber(e)}))})).then((function(e){t.Ne=new s(e,t.De)})).then((function(){t.xe=!0})).catch((function(e){return t.Be&&t.Be.close(),Promise.reject(e)}))},t.prototype.He=function(t){var e=this;return this.Me=function(n){return Object(a["a"])(e,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){return this.started?[2,t(n)]:[2]}))}))},t(this.isPrimary)},t.prototype.setDatabaseDeletedListener=function(t){var e=this;this.Be.vt((function(n){return Object(a["a"])(e,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){switch(e.label){case 0:return null===n.newVersion?[4,t()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}
2619))}))}))},t.prototype.setNetworkEnabled=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Se.enqueueAndForget((function(){return Object(a["a"])(e,void 0,void 0,(function(){return Object(a["c"])(this,(function(t){switch(t.label){case 0:return this.started?[4,this.je()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.je=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(e){return pi(e).put(new Xn(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next((function(){if(t.isPrimary)return t.Je(e).next((function(e){e||(t.isPrimary=!1,t.Se.enqueueRetryable((function(){return t.Me(!1)})))}))})).next((function(){return t.Ye(e)})).next((function(n){return t.isPrimary&&!n?t.Xe(e).next((function(){return!1})):!!n&&t.Ze(e).next((function(){return!0}))}))})).catch((function(e){if(sr(e))return h("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return h("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((function(e){t.isPrimary!==e&&t.Se.enqueueRetryable((function(){return t.Me(e)})),t.isPrimary=e}))},t.prototype.Je=function(t){var e=this;return di(t).get(Mn.key).next((function(t){return nr.resolve(e.tn(t))}))},t.prototype.en=function(t){return pi(t).delete(this.clientId)},t.prototype.nn=function(){return Object(a["a"])(this,void 0,void 0,(function(){var t,e,n,r,i=this;return Object(a["c"])(this,(function(o){switch(o.label){case 0:return!this.isPrimary||this.sn(this.$e,18e5)?[3,2]:(this.$e=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(t){var e=dr(t,Xn.store);return e.Nt().next((function(t){var n=i.rn(t,18e5),r=t.filter((function(t){return-1===n.indexOf(t)}));return nr.forEach(r,(function(t){return e.delete(t.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:if(t=o.sent(),this.Ke)for(e=0,n=t;e<n.length;e++)r=n[e],this.Ke.removeItem(this.on(r.clientId));o.label=2;case 2:return[2]}}
2619))}))},t.prototype.ze=function(){var t=this;this.Oe=this.Se.enqueueAfterDelay("client_metadata_refresh",4e3,(function(){return t.je().then((function(){return t.nn()})).then((function(){return t.ze()}))}))},t.prototype.tn=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.Ye=function(t){var e=this;return this.Ce?nr.resolve(!0):di(t).get(Mn.key).next((function(n){if(null!==n&&e.sn(n.leaseTimestampMs,5e3)&&!e.cn(n.ownerId)){if(e.tn(n)&&e.networkEnabled)return!0;if(!e.tn(n)){if(!n.allowTabSynchronization)throw new c(u.FAILED_PRECONDITION,fi);return!1}}return!(!e.networkEnabled||!e.inForeground)||pi(t).Nt().next((function(t){return void 0===e.rn(t,5e3).find((function(t){if(e.clientId!==t.clientId){var n=!e.networkEnabled&&t.networkEnabled,r=!e.inForeground&&t.inForeground,i=e.networkEnabled===t.networkEnabled;if(n||r&&i)return!0}return!1}))}))})).next((function(t){return e.isPrimary!==t&&h("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t}))},t.prototype.shutdown=function(){return Object(a["a"])(this,void 0,void 0,(function(){var t=this;return Object(a["c"])(this,(function(e){switch(e.label){case 0:return this.xe=!1,this.un(),this.Oe&&(this.Oe.cancel(),this.Oe=null),this.an(),this.hn(),[4,this.Be.runTransaction("shutdown","readwrite",[Mn.store,Xn.store],(function(e){var n=new hr(e,s.o);return t.Xe(n).next((function(){return t.en(n)}))}))];case 1:return e.sent(),this.Be.close(),this.ln(),[2]}}))}))},t.prototype.rn=function(t,e){var n=this;return t.filter((function(t){return n.sn(t.updateTimeMs,e)&&!n.cn(t.clientId)}))},t.prototype.fn=function(){var t=this;return this.runTransaction("getActiveClients","readonly",(function(e){return pi(e).Nt().next((function(e){return t.rn(e,18e5).map((function(t){return t.clientId}))}))}))},Object.defineProperty(t.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),t.prototype.getMutationQueue=function(t){return Ur.Kt(t,this.R,this.Ut,this.referenceDelegate)},t.prototype.getTargetCache=function(){return this.qe},t.prototype.getRemoteDocumentCache=function(){return this.Ue},t.prototype.getIndexManager=function(){return this.Ut},t.prototype.getBundleCache=function(){return this.Qe},t.prototype.runTransaction=function(t,e,n){var r=this;h("IndexedDbPersistence","Starting transaction:",t);var i,o="readonly"===e?"readonly":"readwrite";return this.Be.runTransaction(t,o,Jn,(function(o){return i=new hr(o,r.Ne?r.Ne.next():s.o),"readwrite-primary"===e?r.Je(i).next((function(t){return!!t||r.Ye(i)})).next((function(e){if(!e)throw d("Failed to obtain primary lease for action '"+t+"'."),r.isPrimary=!1,r.Se.enqueueRetryable((function(){return r.Me(!1)})),new c(u.FAILED_PRECONDITION,Zn);return n(i)})).next((function(t){return r.Ze(i).next((function(){return t}))})):r.dn(i).next((function(){return n(i)}))})).then((function(t){return i.raiseOnCommittedEvent(),t}))},t.prototype.dn=function(t){var e=this;return di(t).get(Mn.key).next((function(t){if(null!==t&&e.sn(t.leaseTimestampMs,5e3)&&!e.cn(t.ownerId)&&!e.tn(t)&&!(e.Ce||e.allowTabSynchronization&&t.allowTabSynchronization))throw new c(u.FAILED_PRECONDITION,fi)}))},t.prototype.Ze=function(t){var e=new Mn(this.clientId,this.allowTabSynchronization,Date.now());return di(t).put(Mn.key,e)},t.yt=function(){return ir.yt()},t.prototype.Xe=function(t){var e=this,n=di(t);return n.get(Mn.key).next((function(t){return e.tn(t)?(h("IndexedDbPersistence","Releasing primary lease."),n.delete(Mn.key)):nr.resolve()}))},t.prototype.sn=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(d("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.We=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.ke=function(){t.Se.enqueueAndForget((function(){return t.inForeground="visible"===t.document.visibilityState,t.je()}))},this.document.addEventListener("visibilitychange",this.ke),this.inForeground="visible"===this.document.visibilityState)},t.prototype.an=function(){this.ke&&(this.document.removeEventListener("visibilitychange",this.ke),this.ke=null)},t.prototype.Ge=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.Fe=function(){e.un(),e.Se.enqueueAndForget((function(){return e.shutdown()}))},this.window.addEventListener("unload",this.Fe))},t.prototype.hn=function(){this.Fe&&(this.window.removeEventListener("unload",this.Fe),this.Fe=null)},t.prototype.cn=function(t){var e;try{var n=null!==(null===(e=this.Ke)||void 0===e?void 0:e.getItem(this.on(t)));return h("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(t){return d("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype.un=function(){if(this.Ke)try{this.Ke.setItem(this.on(this.clientId),String(Date.now()))}catch(t){d("Failed to set zombie client id.",t)}},t.prototype.ln=function(){if(this.Ke)try{this.Ke.removeItem(this.on(this.clientId))}catch(t){}},t.prototype.on=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function di(t){return dr(t,Mn.store)}function pi(t){return dr(t,Xn.store)}function vi(t,e){var n=t.projectId;return t.isDefaultDatabase||(n+="."+t.database),"firestore/"+e+"/"+n+"/"
2620/**
2621 * @license
2622 * Copyright 2020 Google LLC
2623 *
2624 * Licensed under the Apache License, Version 2.0 (the "License");
2625 * you may not use this file except in compliance with the License.
2626 * You may obtain a copy of the License at
2627 *
2628 *   http://www.apache.org/licenses/LICENSE-2.0
2629 *
2630 * Unless required by applicable law or agreed to in writing, software
2631 * distributed under the License is distributed on an "AS IS" BASIS,
2632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2633 * See the License for the specific language governing permissions and
2634 * limitations under the License.
2635 */}var gi=function(t,e){this.progress=t,this.wn=e},mi=function(){function t(t,e,n){this.Ue=t,this._n=e,this.Ut=n}return t.prototype.mn=function(t,e){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKey(t,e).next((function(r){return n.yn(t,e,r)}))},t.prototype.yn=function(t,e,n){return this.Ue.getEntry(t,e).next((function(t){for(var e=0,r=n;e<r.length;e++)r[e].applyToLocalView(t);return t}))},t.prototype.gn=function(t,e){t.forEach((function(t,n){for(var r=0,i=e;r<i.length;r++)i[r].applyToLocalView(n)}))},t.prototype.pn=function(t,e){var n=this;return this.Ue.getEntries(t,e).next((function(e){return n.En(t,e).next((function(){return e}))}))},t.prototype.En=function(t,e){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKeys(t,e).next((function(t){return n.gn(e,t)}))},t.prototype.getDocumentsMatchingQuery=function(t,e,n){return function(t){return W.isDocumentKey(t.path)&&null===t.collectionGroup&&0===t.filters.length}(e)?this.Tn(t,e.path):Dt(e)?this.In(t,e,n):this.An(t,e,n)},t.prototype.Tn=function(t,e){return this.mn(t,new W(e)).next((function(t){var e=Le();return t.isFoundDocument()&&(e=e.insert(t.key,t)),e}))},t.prototype.In=function(t,e,n){var r=this,i=e.collectionGroup,o=Le();return this.Ut.getCollectionParents(t,i).next((function(a){return nr.forEach(a,(function(a){var s=function(t,e){return new Ct(e,null,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,t.startAt,t.endAt)}(e,a.child(i));return r.An(t,s,n).next((function(t){t.forEach((function(t,e){o=o.insert(t,e)}))}))})).next((function(){return o}))}))},t.prototype.An=function(t,e,n){var r,i,o=this;return this.Ue.getDocumentsMatchingQuery(t,e,n).next((function(n){return r=n,o._n.getAllMutationBatchesAffectingQuery(t,e)})).next((function(e){return i=e,o.Rn(t,i,r).next((function(t){r=t;for(var e=0,n=i;e<n.length;e++)for(var o=n[e],a=0,s=o.mutations;a<s.length;a++){var u=s[a],c=u.key,l=r.get(c);null==l&&(l=st.newInvalidDocument(c),r=r.insert(c,l)),he(u,l,o.localWriteTime),l.isFoundDocument()||(r=r.remove(c))}}))})).next((function(){return r.forEach((function(t,n){Bt(e,n)||(r=r.remove(t))})),r}))},t.prototype.Rn=function(t,e,n){for(var r=qe(),i=0,o=e;i<o.length;i++)for(var a=0,s=o[i].mutations;a<s.length;a++){var u=s[a];u instanceof me&&null===n.get(u.key)&&(r=r.add(u.key))}var c=n;return this.Ue.getEntries(t,r).next((function(t){return t.forEach((function(t,e){e.isFoundDocument()&&(c=c.insert(t,e))})),c}))},t}(),yi=function(){function t(t,e,n,r){this.targetId=t,this.fromCache=e,this.bn=n,this.vn=r}return t.Pn=function(e,n){for(var r=qe(),i=qe(),o=0,a=n.docChanges;o<a.length;o++){var s=a[o];switch(s.type){case 0:r=r.add(s.doc.key);break;case 1:i=i.add(s.doc.key)}}return new t(e,n.fromCache,r,i)},t}(),bi=function(){function t(){}return t.prototype.Vn=function(t){this.Sn=t},t.prototype.getDocumentsMatchingQuery=function(t,e,n,r){var o=this;return function(t){return 0===t.filters.length&&null===t.limit&&null==t.startAt&&null==t.endAt&&(0===t.explicitOrderBy.length||1===t.explicitOrderBy.length&&t.explicitOrderBy[0].field.isKeyField())}(e)||n.isEqual(T.min())?this.Dn(t,e):this.Sn.pn(t,r).next((function(a){var s=o.Cn(e,a);return(At(e)||Nt(e))&&o.Nn(e.limitType,s,r,n)?o.Dn(t,e):(f()<=i["a"].DEBUG&&h("QueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),$t(e)),o.Sn.getDocumentsMatchingQuery(t,e,n).next((function(t){return s.forEach((function(e){t=t.insert(e.key,e)})),t})))}))},t.prototype.Cn=function(t,e){var n=new Ae(Vt(t));return e.forEach((function(e,r){Bt(t,r)&&(n=n.add(r))})),n},t.prototype.Nn=function(t,e,n,r){if(n.size!==e.size)return!0;var i="F"===t?e.last():e.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)},t.prototype.Dn=function(t,e){return f()<=i["a"].DEBUG&&h("QueryEngine","Using full collection scan to execute query:",$t(e)),this.Sn.getDocumentsMatchingQuery(t,e,T.min())},t}(),wi=function(){function t(t,e,n,r){this.persistence=t,this.xn=e,this.R=r,this.Fn=new Ce(_),this.kn=new ni((function(t){return lt(t)}),ft),this.On=T.min(),this._n=t.getMutationQueue(n),this.$n=t.getRemoteDocumentCache(),this.qe=t.getTargetCache(),this.Mn=new mi(this.$n,this._n,this.persistence.getIndexManager()),this.Qe=t.getBundleCache(),this.xn.Vn(this.Mn)}return t.prototype.collectGarbage=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.collect(n,e.Fn)}))},t}();
2636/**
2637 * @license
2638 * Copyright 2017 Google LLC
2639 *
2640 * Licensed under the Apache License, Version 2.0 (the "License");
2641 * you may not use this file except in compliance with the License.
2642 * You may obtain a copy of the License at
2643 *
2644 *   http://www.apache.org/licenses/LICENSE-2.0
2645 *
2646 * Unless required by applicable law or agreed to in writing, software
2647 * distributed under the License is distributed on an "AS IS" BASIS,
2648 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2649 * See the License for the specific language governing permissions and
2650 * limitations under the License.
2651 */function _i(t,e,n,r){return new wi(t,e,n,r)}function Ei(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i,o;return Object(a["c"])(this,(function(a){switch(a.label){case 0:return n=y(t),r=n._n,i=n.Mn,[4,n.persistence.runTransaction("Handle user change","readonly",(function(t){var o;return n._n.getAllMutationBatches(t).next((function(a){return o=a,r=n.persistence.getMutationQueue(e),i=new mi(n.$n,r,n.persistence.getIndexManager()),r.getAllMutationBatches(t)})).next((function(e){for(var n=[],r=[],a=qe(),s=0,u=o;s<u.length;s++){var c=u[s];n.push(c.batchId);for(var l=0,f=c.mutations;l<f.length;l++){var h=f[l];a=a.add(h.key)}}for(var d=0,p=e;d<p.length;d++){var v=p[d];r.push(v.batchId);for(var g=0,m=v.mutations;g<m.length;g++){var y=m[g];a=a.add(y.key)}}return i.pn(t,a).next((function(t){return{Ln:t,removedBatchIds:n,addedBatchIds:r}}))}))}))];case 1:return o=a.sent(),[2,(n._n=r,n.Mn=i,n.xn.Vn(n.Mn),o)]}}))}))}function Oi(t,e){var n=y(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(t){var r=e.batch.keys(),i=n.$n.newChangeBuffer({trackRemovals:!0});return function(t,e,n,r){var i=n.batch,o=i.keys(),a=nr.resolve();return o.forEach((function(t){a=a.next((function(){return r.getEntry(e,t)})).next((function(e){var o=n.docVersions.get(t);m(null!==o),e.version.compareTo(o)<0&&(i.applyToRemoteDocument(e,n),e.isValidDocument()&&r.addEntry(e,n.commitVersion))}))})),a.next((function(){return t._n.removeMutationBatch(e,i)}))}(n,t,e,i).next((function(){return i.apply(t)})).next((function(){return n._n.performConsistencyCheck(t)})).next((function(){return n.Mn.pn(t,r)}))}))}function Ii(t){var e=y(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",(function(t){return e.qe.getLastRemoteSnapshotVersion(t)}))}function Ti(t,e){var n=y(t),r=e.snapshotVersion,i=n.Fn;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(function(t){var o=n.$n.newChangeBuffer({trackRemovals:!0});i=n.Fn;var a=[];
2651e.targetChanges.forEach((function(e,o){var s=i.get(o);if(s){a.push(n.qe.removeMatchingKeys(t,e.removedDocuments,o).next((function(){return n.qe.addMatchingKeys(t,e.addedDocuments,o)})));var u=e.resumeToken;if(u.approximateByteSize()>0){var c=s.withResumeToken(u,r).withSequenceNumber(t.currentSequenceNumber);i=i.insert(o,c),function(t,e,n){return m(e.resumeToken.approximateByteSize()>0),0===t.resumeToken.approximateByteSize()||e.snapshotVersion.toMicroseconds()-t.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0}(s,c,e)&&a.push(n.qe.updateTargetData(t,c))}}}));var s=Re();if(e.documentUpdates.forEach((function(r,i){e.resolvedLimboDocuments.has(r)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(t,r))})),a.push(Si(t,o,e.documentUpdates,r,void 0).next((function(t){s=t}))),!r.isEqual(T.min())){var u=n.qe.getLastRemoteSnapshotVersion(t).next((function(e){return n.qe.setTargetsMetadata(t,t.currentSequenceNumber,r)}));a.push(u)}return nr.waitFor(a).next((function(){return o.apply(t)})).next((function(){return n.Mn.En(t,s)})).next((function(){return s}))})).then((function(t){return n.Fn=i,t}))}function Si(t,e,n,r,i){var o=qe();return n.forEach((function(t){return o=o.add(t)})),e.getEntries(t,o).next((function(t){var o=Re();return n.forEach((function(n,a){var s=t.get(n),u=(null==i?void 0:i.get(n))||r;a.isNoDocument()&&a.version.isEqual(T.min())?(e.removeEntry(n,u),o=o.insert(n,a)):!s.isValidDocument()||a.version.compareTo(s.version)>0||0===a.version.compareTo(s.version)&&s.hasPendingWrites?(e.addEntry(a,u),o=o.insert(n,a)):h("LocalStore","Ignoring outdated watch update for ",n,". Current version:",s.version," Watch version:",a.version)})),o}))}function ki(t,e){var n=y(t);return n.persistence.runTransaction("Get next mutation batch","readonly",(function(t){return void 0===e&&(e=-1),n._n.getNextMutationBatchAfterBatchId(t,e)}))}function Ci(t,e){var n=y(t);return n.persistence.runTransaction("Allocate target","readwrite",(function(t){var r;return n.qe.getTargetData(t,e).next((function(i){return i?(r=i,nr.resolve(r)):n.qe.allocateTargetId(t).next((function(i){return r=new gr(e,i,0,t.currentSequenceNumber),n.qe.addTargetData(t,r).next((function(){return r}))}))}))})).then((function(t){var r=n.Fn.get(t.targetId);return(null===r||t.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.Fn=n.Fn.insert(t.targetId,t),n.kn.set(e,t.targetId)),t}))}function xi(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var r,i,o,s;return Object(a["c"])(this,(function(a){switch(a.label){case 0:r=y(t),i=r.Fn.get(e),o=n?"readwrite":"readwrite-primary",a.label=1;case 1:return a.trys.push([1,4,,5]),n?[3,3]:[4,r.persistence.runTransaction("Release target",o,(function(t){return r.persistence.referenceDelegate.removeTarget(t,i)}))];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:if(!sr(s=a.sent()))throw s;return h("LocalStore","Failed to update sequence numbers for target "+e+": "+s),[3,5];case 5:return r.Fn=r.Fn.remove(e),r.kn.delete(i.target),[2]}}))}))}function ji(t,e,n){var r=y(t),i=T.min(),o=qe();return r.persistence.runTransaction("Execute query","readonly",(function(t){return function(t,e,n){var r=y(t),i=r.kn.get(n);return void 0!==i?nr.resolve(r.Fn.get(i)):r.qe.getTargetData(e,n)}(r,t,Mt(e)).next((function(e){if(e)return i=e.lastLimboFreeSnapshotVersion,r.qe.getMatchingKeysForTargetId(t,e.targetId).next((function(t){o=t}))})).next((function(){return r.xn.getDocumentsMatchingQuery(t,e,n?i:T.min(),n?o:qe())})).next((function(t){return{documents:t,Bn:o}}))}))}function Ai(t,e){var n=y(t),r=y(n.qe),i=n.Fn.get(e);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(function(t){return r.lt(t,e).next((function(t){return t?t.target:null}))}))}function Ni(t){var e=y(t);return e.persistence.runTransaction("Get new document changes","readonly",(function(t){return function(t,e,n){var r=y(t),i=Re(),o=wr(n),a=si(e),s=IDBKeyRange.lowerBound(o,!0);return a.Ot({index:Vn.readTimeIndex,range:s},(function(t,e){var n=yr(r.R,e);i=i.insert(n.key,n),o=e.readTime})).next((function(){return{wn:i,readTime:_r(o)}}))}(e.$n,t,e.On)}
2651)).then((function(t){var n=t.wn,r=t.readTime;return e.On=r,n}))}function Pi(t){return Object(a["a"])(this,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){return[2,(e=y(t)).persistence.runTransaction("Synchronize last document change read time","readonly",(function(t){return function(t){var e=si(t),n=T.min();return e.Ot({index:Vn.readTimeIndex,reverse:!0},(function(t,e,r){e.readTime&&(n=_r(e.readTime)),r.done()})).next((function(){return n}))}(t)})).then((function(t){e.On=t}))]}))}))}function Ri(t,e,n,r){return Object(a["a"])(this,void 0,void 0,(function(){var i,o,s,u,c,l,f,h,d,p;return Object(a["c"])(this,(function(a){switch(a.label){case 0:for(i=y(t),o=qe(),s=Re(),u=Fe(),c=0,l=n;c<l.length;c++)f=l[c],h=e.qn(f.metadata.name),f.document&&(o=o.add(h)),s=s.insert(h,e.Un(f)),u=u.insert(h,e.Qn(f.metadata.readTime));return d=i.$n.newChangeBuffer({trackRemovals:!0}),[4,Ci(i,function(t){return Mt(jt(j.fromString("__bundle__/docs/"+t)))}(r))];case 1:return p=a.sent(),[2,i.persistence.runTransaction("Apply bundle documents","readwrite",(function(t){return Si(t,d,s,T.min(),u).next((function(e){return d.apply(t),e})).next((function(e){return i.qe.removeMatchingKeysForTargetId(t,p.targetId).next((function(){return i.qe.addMatchingKeys(t,o,p.targetId)})).next((function(){return i.Mn.En(t,e)})).next((function(){return e}))}))}))]}}))}))}function Di(t,e,n){return void 0===n&&(n=qe()),Object(a["a"])(this,void 0,void 0,(function(){var r,i;return Object(a["c"])(this,(function(o){switch(o.label){case 0:return[4,Ci(t,Mt(kr(e.bundledQuery)))];case 1:return r=o.sent(),[2,(i=y(t)).persistence.runTransaction("Save named query","readwrite",(function(t){var o=on(e.readTime);if(r.snapshotVersion.compareTo(o)>=0)return i.Qe.saveNamedQuery(t,e);var a=r.withResumeToken(R.EMPTY_BYTE_STRING,o);return i.Fn=i.Fn.insert(a.targetId,a),i.qe.updateTargetData(t,a).next((function(){return i.qe.removeMatchingKeysForTargetId(t,r.targetId)})).next((function(){return i.qe.addMatchingKeys(t,n,r.targetId)})).next((function(){return i.Qe.saveNamedQuery(t,e)}))}))]}}))}))
2652/**
2653 * @license
2654 * Copyright 2020 Google LLC
2655 *
2656 * Licensed under the Apache License, Version 2.0 (the "License");
2657 * you may not use this file except in compliance with the License.
2658 * You may obtain a copy of the License at
2659 *
2660 *   http://www.apache.org/licenses/LICENSE-2.0
2661 *
2662 * Unless required by applicable law or agreed to in writing, software
2663 * distributed under the License is distributed on an "AS IS" BASIS,
2664 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2665 * See the License for the specific language governing permissions and
2666 * limitations under the License.
2667 */}var Li=function(){function t(t){this.R=t,this.Kn=new Map,this.jn=new Map}return t.prototype.getBundleMetadata=function(t,e){return nr.resolve(this.Kn.get(e))},t.prototype.saveBundleMetadata=function(t,e){var n;return this.Kn.set(e.id,{id:(n=e).id,version:n.version,createTime:on(n.createTime)}),nr.resolve()},t.prototype.getNamedQuery=function(t,e){return nr.resolve(this.jn.get(e))},t.prototype.saveNamedQuery=function(t,e){return this.jn.set(e.name,function(t){return{name:t.name,query:kr(t.bundledQuery),readTime:on(t.readTime)}}(e)),nr.resolve()},t}(),Mi=function(){function t(){this.Wn=new Ae(Fi.Gn),this.zn=new Ae(Fi.Hn)}return t.prototype.isEmpty=function(){return this.Wn.isEmpty()},t.prototype.addReference=function(t,e){var n=new Fi(t,e);this.Wn=this.Wn.add(n),this.zn=this.zn.add(n)},t.prototype.Jn=function(t,e){var n=this;t.forEach((function(t){return n.addReference(t,e)}))},t.prototype.removeReference=function(t,e){this.Yn(new Fi(t,e))},t.prototype.Xn=function(t,e){var n=this;t.forEach((function(t){return n.removeReference(t,e)}))},t.prototype.Zn=function(t){var e=this,n=new W(new j([])),r=new Fi(n,t),i=new Fi(n,t+1),o=[];return this.zn.forEachInRange([r,i],(function(t){e.Yn(t),o.push(t.key)})),o},t.prototype.ts=function(){var t=this;this.Wn.forEach((function(e){return t.Yn(e)}))},t.prototype.Yn=function(t){this.Wn=this.Wn.delete(t),this.zn=this.zn.delete(t)},t.prototype.es=function(t){var e=new W(new j([])),n=new Fi(e,t),r=new Fi(e,t+1),i=qe();
2667return this.zn.forEachInRange([n,r],(function(t){i=i.add(t.key)})),i},t.prototype.containsKey=function(t){var e=new Fi(t,0),n=this.Wn.firstAfterOrEqual(e);return null!==n&&t.isEqual(n.key)},t}(),Fi=function(){function t(t,e){this.key=t,this.ns=e}return t.Gn=function(t,e){return W.comparator(t.key,e.key)||_(t.ns,e.ns)},t.Hn=function(t,e){return _(t.ns,e.ns)||W.comparator(t.key,e.key)},t}(),Ui=function(){function t(t,e){this.Ut=t,this.referenceDelegate=e,this._n=[],this.ss=1,this.rs=new Ae(Fi.Gn)}return t.prototype.checkEmpty=function(t){return nr.resolve(0===this._n.length)},t.prototype.addMutationBatch=function(t,e,n,r){var i=this.ss;this.ss++,this._n.length>0&&this._n[this._n.length-1];var o=new pr(i,e,n,r);this._n.push(o);for(var a=0,s=r;a<s.length;a++){var u=s[a];this.rs=this.rs.add(new Fi(u.key,i)),this.Ut.addToCollectionParentIndex(t,u.key.path.popLast())}return nr.resolve(o)},t.prototype.lookupMutationBatch=function(t,e){return nr.resolve(this.os(e))},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=e+1,r=this.cs(n),i=r<0?0:r;return nr.resolve(this._n.length>i?this._n[i]:null)},t.prototype.getHighestUnacknowledgedBatchId=function(){return nr.resolve(0===this._n.length?-1:this.ss-1)},t.prototype.getAllMutationBatches=function(t){return nr.resolve(this._n.slice())},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,r=new Fi(e,0),i=new Fi(e,Number.POSITIVE_INFINITY),o=[];return this.rs.forEachInRange([r,i],(function(t){var e=n.os(t.ns);o.push(e)})),nr.resolve(o)},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,r=new Ae(_);return e.forEach((function(t){var e=new Fi(t,0),i=new Fi(t,Number.POSITIVE_INFINITY);n.rs.forEachInRange([e,i],(function(t){r=r.add(t.ns)}))})),nr.resolve(this.us(r))},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=e.path,r=n.length+1,i=n;W.isDocumentKey(i)||(i=i.child(""));var o=new Fi(new W(i),0),a=new Ae(_);return this.rs.forEachWhile((function(t){var e=t.key.path;return!!n.isPrefixOf(e)&&(e.length===r&&(a=a.add(t.ns)),!0)}),o),nr.resolve(this.us(a))},t.prototype.us=function(t){var e=this,n=[];return t.forEach((function(t){var r=e.os(t);null!==r&&n.push(r)})),n},t.prototype.removeMutationBatch=function(t,e){var n=this;m(0===this.hs(e.batchId,"removed")),this._n.shift();var r=this.rs;return nr.forEach(e.mutations,(function(i){var o=new Fi(i.key,e.batchId);return r=r.delete(o),n.referenceDelegate.markPotentiallyOrphaned(t,i.key)})).next((function(){n.rs=r}))},t.prototype.Gt=function(t){},t.prototype.containsKey=function(t,e){var n=new Fi(e,0),r=this.rs.firstAfterOrEqual(n);return nr.resolve(e.isEqual(r&&r.key))},t.prototype.performConsistencyCheck=function(t){return this._n.length,nr.resolve()},t.prototype.hs=function(t,e){return this.cs(t)},t.prototype.cs=function(t){return 0===this._n.length?0:t-this._n[0].batchId},t.prototype.os=function(t){var e=this.cs(t);return e<0||e>=this._n.length?null:this._n[e]},t}(),qi=function(){function t(t,e){this.Ut=t,this.ls=e,this.docs=new Ce(W.comparator),this.size=0}return t.prototype.addEntry=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,a=this.ls(e);return this.docs=this.docs.insert(r,{document:e.clone(),size:a,readTime:n}),this.size+=a-o,this.Ut.addToCollectionParentIndex(t,r.path.popLast())},t.prototype.removeEntry=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.getEntry=function(t,e){var n=this.docs.get(e);return nr.resolve(n?n.document.clone():st.newInvalidDocument(e))},t.prototype.getEntries=function(t,e){var n=this,r=Re();return e.forEach((function(t){var e=n.docs.get(t);r=r.insert(t,e?e.document.clone():st.newInvalidDocument(t))})),nr.resolve(r)},t.prototype.getDocumentsMatchingQuery=function(t,e,n){for(var r=Re(),i=new W(e.path.child("")),o=this.docs.getIteratorFrom(i);o.hasNext();){var a=o.getNext(),s=a.key,u=a.value,c=u.document,l=u.readTime;if(!e.path.isPrefixOf(s.path))break;l.compareTo(n)<=0||Bt(e,c)&&(r=r.insert(c.key,c.clone()))}return nr.resolve(r)},t.prototype.fs=function(t,e){return nr.forEach(this.docs,(function(t){return e(t)}))},t.prototype.newChangeBuffer=function(t){return new $i(this)},t.prototype.getSize=function(t){return nr.resolve(this.size)},t}(),$i=function(t){function e(e){var n=this;return(n=t.call(this)||this).Ie=e,n}return Object(a["b"])(e,t),e.prototype.applyChanges=function(t){var e=this,n=[];
2667return this.changes.forEach((function(r,i){i.document.isValidDocument()?n.push(e.Ie.addEntry(t,i.document,e.getReadTime(r))):e.Ie.removeEntry(r)})),nr.waitFor(n)},e.prototype.getFromCache=function(t,e){return this.Ie.getEntry(t,e)},e.prototype.getAllFromCache=function(t,e){return this.Ie.getEntries(t,e)},e}(ri),Bi=function(){function t(t){this.persistence=t,this.ds=new ni((function(t){return lt(t)}),ft),this.lastRemoteSnapshotVersion=T.min(),this.highestTargetId=0,this.ws=0,this._s=new Mi,this.targetCount=0,this.ys=Kr.Jt()}return t.prototype.forEachTarget=function(t,e){return this.ds.forEach((function(t,n){return e(n)})),nr.resolve()},t.prototype.getLastRemoteSnapshotVersion=function(t){return nr.resolve(this.lastRemoteSnapshotVersion)},t.prototype.getHighestSequenceNumber=function(t){return nr.resolve(this.ws)},t.prototype.allocateTargetId=function(t){return this.highestTargetId=this.ys.next(),nr.resolve(this.highestTargetId)},t.prototype.setTargetsMetadata=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.ws&&(this.ws=e),nr.resolve()},t.prototype.te=function(t){this.ds.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.ys=new Kr(e),this.highestTargetId=e),t.sequenceNumber>this.ws&&(this.ws=t.sequenceNumber)},t.prototype.addTargetData=function(t,e){return this.te(e),this.targetCount+=1,nr.resolve()},t.prototype.updateTargetData=function(t,e){return this.te(e),nr.resolve()},t.prototype.removeTargetData=function(t,e){return this.ds.delete(e.target),this._s.Zn(e.targetId),this.targetCount-=1,nr.resolve()},t.prototype.removeTargets=function(t,e,n){var r=this,i=0,o=[];return this.ds.forEach((function(a,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(r.ds.delete(a),o.push(r.removeMatchingKeysForTargetId(t,s.targetId)),i++)})),nr.waitFor(o).next((function(){return i}))},t.prototype.getTargetCount=function(t){return nr.resolve(this.targetCount)},t.prototype.getTargetData=function(t,e){var n=this.ds.get(e)||null;return nr.resolve(n)},t.prototype.addMatchingKeys=function(t,e,n){return this._s.Jn(e,n),nr.resolve()},t.prototype.removeMatchingKeys=function(t,e,n){this._s.Xn(e,n);var r=this.persistence.referenceDelegate,i=[];return r&&e.forEach((function(e){i.push(r.markPotentiallyOrphaned(t,e))})),nr.waitFor(i)},t.prototype.removeMatchingKeysForTargetId=function(t,e){return this._s.Zn(e),nr.resolve()},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=this._s.es(e);return nr.resolve(n)},t.prototype.containsKey=function(t,e){return nr.resolve(this._s.containsKey(e))},t}(),Vi=function(){function t(t,e){var n=this;this.gs={},this.Ne=new s(0),this.xe=!1,this.xe=!0,this.referenceDelegate=t(this),this.qe=new Bi(this),this.Ut=new Ar,this.Ue=function(t,e){return new qi(t,(function(t){return n.referenceDelegate.ps(t)}))}(this.Ut),this.R=new mr(e),this.Qe=new Li(this.R)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.shutdown=function(){return this.xe=!1,Promise.resolve()},Object.defineProperty(t.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),t.prototype.setDatabaseDeletedListener=function(){},t.prototype.setNetworkEnabled=function(){},t.prototype.getIndexManager=function(){return this.Ut},t.prototype.getMutationQueue=function(t){var e=this.gs[t.toKey()];return e||(e=new Ui(this.Ut,this.referenceDelegate),this.gs[t.toKey()]=e),e},t.prototype.getTargetCache=function(){return this.qe},t.prototype.getRemoteDocumentCache=function(){return this.Ue},t.prototype.getBundleCache=function(){return this.Qe},t.prototype.runTransaction=function(t,e,n){var r=this;h("MemoryPersistence","Starting transaction:",t);var i=new Ki(this.Ne.next());return this.referenceDelegate.Es(),n(i).next((function(t){return r.referenceDelegate.Ts(i).next((function(){return t}))})).toPromise().then((function(t){return i.raiseOnCommittedEvent(),t}))},t.prototype.Is=function(t,e){return nr.or(Object.values(this.gs).map((function(n){return function(){return n.containsKey(t,e)}})))},t}(),Ki=function(t){function e(e){var n=this;return(n=t.call(this)||this).currentSequenceNumber=e,n}return Object(a["b"])(e,t),e}(tr),Wi=function(){function t(t){this.persistence=t,this.As=new Mi,this.Rs=null}return t.bs=function(e){return new t(e)},Object.defineProperty(t.prototype,"vs",{get:function(){if(this.Rs)return this.Rs;throw g()}
2667,enumerable:!1,configurable:!0}),t.prototype.addReference=function(t,e,n){return this.As.addReference(n,e),this.vs.delete(n.toString()),nr.resolve()},t.prototype.removeReference=function(t,e,n){return this.As.removeReference(n,e),this.vs.add(n.toString()),nr.resolve()},t.prototype.markPotentiallyOrphaned=function(t,e){return this.vs.add(e.toString()),nr.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.As.Zn(e.targetId).forEach((function(t){return n.vs.add(t.toString())}));var r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(t,e.targetId).next((function(t){t.forEach((function(t){return n.vs.add(t.toString())}))})).next((function(){return r.removeTargetData(t,e)}))},t.prototype.Es=function(){this.Rs=new Set},t.prototype.Ts=function(t){var e=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return nr.forEach(this.vs,(function(r){var i=W.fromPath(r);return e.Ps(t,i).next((function(t){t||n.removeEntry(i)}))})).next((function(){return e.Rs=null,n.apply(t)}))},t.prototype.updateLimboDocument=function(t,e){var n=this;return this.Ps(t,e).next((function(t){t?n.vs.delete(e.toString()):n.vs.add(e.toString())}))},t.prototype.ps=function(t){return 0},t.prototype.Ps=function(t,e){var n=this;return nr.or([function(){return nr.resolve(n.As.containsKey(e))},function(){return n.persistence.getTargetCache().containsKey(t,e)},function(){return n.persistence.Is(t,e)}])},t}(),zi=function(){function t(t){this.uid=t}return t.prototype.isAuthenticated=function(){return null!=this.uid},t.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();
2668/**
2669 * @license
2670 * Copyright 2017 Google LLC
2671 *
2672 * Licensed under the Apache License, Version 2.0 (the "License");
2673 * you may not use this file except in compliance with the License.
2674 * You may obtain a copy of the License at
2675 *
2676 *   http://www.apache.org/licenses/LICENSE-2.0
2677 *
2678 * Unless required by applicable law or agreed to in writing, software
2679 * distributed under the License is distributed on an "AS IS" BASIS,
2680 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2681 * See the License for the specific language governing permissions and
2682 * limitations under the License.
2683 */function Hi(t,e){return"firestore_clients_"+t+"_"+e}function Gi(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.isAuthenticated()&&(r+="_"+e.uid),r}function Xi(t,e){return"firestore_targets_"+t+"_"+e}zi.UNAUTHENTICATED=new zi(null),zi.GOOGLE_CREDENTIALS=new zi("google-credentials-uid"),zi.FIRST_PARTY=new zi("first-party-uid");var Yi=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.Vs=function(e,n,r){var i,o=JSON.parse(r),a="object"==typeof o&&-1!==["pending","acknowledged","rejected"].indexOf(o.state)&&(void 0===o.error||"object"==typeof o.error);return a&&o.error&&(a="string"==typeof o.error.message&&"string"==typeof o.error.code)&&(i=new c(o.error.code,o.error.message)),a?new t(e,n,o.state,i):(d("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.Ss=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),Qi=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.Vs=function(e,n){var r,i=JSON.parse(n),o="object"==typeof i&&-1!==["not-current","current","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error);return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(r=new c(i.error.code,i.error.message)),o?new t(e,i.state,r):(d("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.Ss=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),Ji=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.Vs=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Be(),a=0;i&&a<r.activeTargetIds.length;++a)i=K(r.activeTargetIds[a]),o=o.add(r.activeTargetIds[a]);
2683return i?new t(e,o):(d("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),Zi=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.Vs=function(e){var n=JSON.parse(e);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new t(n.clientId,n.onlineState):(d("SharedClientState","Failed to parse online state: "+e),null)},t}(),to=function(){function t(){this.activeTargetIds=Be()}return t.prototype.Ds=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.Cs=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.Ss=function(){var t={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),eo=function(){function t(t,e,n,r,i){this.window=t,this.Se=e,this.persistenceKey=n,this.Ns=r,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.xs=this.Fs.bind(this),this.ks=new Ce(_),this.started=!1,this.Os=[];var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.$s=Hi(this.persistenceKey,this.Ns),this.Ms=function(t){return"firestore_sequence_number_"+t}(this.persistenceKey),this.ks=this.ks.insert(this.Ns,new to),this.Ls=new RegExp("^firestore_clients_"+o+"_([^_]*)$"),this.Bs=new RegExp("^firestore_mutations_"+o+"_(\\d+)(?:_(.*))?$"),this.qs=new RegExp("^firestore_targets_"+o+"_(\\d+)$"),this.Us=function(t){return"firestore_online_state_"+t}(this.persistenceKey),this.Qs=function(t){return"firestore_bundle_loaded_"+t}(this.persistenceKey),this.window.addEventListener("storage",this.xs)}return t.yt=function(t){return!(!t||!t.localStorage)},t.prototype.start=function(){return Object(a["a"])(this,void 0,void 0,(function(){var t,e,n,r,i,o,s,u,c,l,f,h=this;return Object(a["c"])(this,(function(a){switch(a.label){case 0:return[4,this.syncEngine.fn()];case 1:for(t=a.sent(),e=0,n=t;e<n.length;e++)(r=n[e])!==this.Ns&&(i=this.getItem(Hi(this.persistenceKey,r)))&&(o=Ji.Vs(r,i))&&(this.ks=this.ks.insert(o.clientId,o));for(this.Ks(),(s=this.storage.getItem(this.Us))&&(u=this.js(s))&&this.Ws(u),c=0,l=this.Os;c<l.length;c++)f=l[c],this.Fs(f);return this.Os=[],this.window.addEventListener("unload",(function(){return h.shutdown()})),this.started=!0,[2]}}))}))},t.prototype.writeSequenceNumber=function(t){this.setItem(this.Ms,JSON.stringify(t))},t.prototype.getAllActiveQueryTargets=function(){return this.Gs(this.ks)},t.prototype.isActiveQueryTarget=function(t){var e=!1;return this.ks.forEach((function(n,r){r.activeTargetIds.has(t)&&(e=!0)})),e},t.prototype.addPendingMutation=function(t){this.zs(t,"pending")},t.prototype.updateMutationState=function(t,e,n){this.zs(t,e,n),this.Hs(t)},t.prototype.addLocalQueryTarget=function(t){var e="not-current";if(this.isActiveQueryTarget(t)){var n=this.storage.getItem(Xi(this.persistenceKey,t));if(n){var r=Qi.Vs(t,n);r&&(e=r.state)}}return this.Js.Ds(t),this.Ks(),e},t.prototype.removeLocalQueryTarget=function(t){this.Js.Cs(t),this.Ks()},t.prototype.isLocalQueryTarget=function(t){return this.Js.activeTargetIds.has(t)},t.prototype.clearQueryState=function(t){this.removeItem(Xi(this.persistenceKey,t))},t.prototype.updateQueryState=function(t,e,n){this.Ys(t,e,n)},t.prototype.handleUserChange=function(t,e,n){var r=this;e.forEach((function(t){r.Hs(t)})),this.currentUser=t,n.forEach((function(t){r.addPendingMutation(t)}))},t.prototype.setOnlineState=function(t){this.Xs(t)},t.prototype.notifyBundleLoaded=function(){this.Zs()},t.prototype.shutdown=function(){this.started&&(this.window.removeEventListener("storage",this.xs),this.removeItem(this.$s),this.started=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return h("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){h("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){h("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.Fs=function(t){var e=this,n=t;if(n.storageArea===this.storage){if(h("SharedClientState","EVENT",n.key,n.newValue),n.key===this.$s)return void d("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Se.enqueueRetryable((function(){return Object(a["a"])(e,void 0,void 0,(function(){var t,e,r,i,o,u;
2683return Object(a["c"])(this,(function(a){if(this.started){if(null!==n.key)if(this.Ls.test(n.key)){if(null==n.newValue)return t=this.ti(n.key),[2,this.ei(t,null)];if(e=this.ni(n.key,n.newValue))return[2,this.ei(e.clientId,e)]}else if(this.Bs.test(n.key)){if(null!==n.newValue&&(r=this.si(n.key,n.newValue)))return[2,this.ii(r)]}else if(this.qs.test(n.key)){if(null!==n.newValue&&(i=this.ri(n.key,n.newValue)))return[2,this.oi(i)]}else if(n.key===this.Us){if(null!==n.newValue&&(o=this.js(n.newValue)))return[2,this.Ws(o)]}else if(n.key===this.Ms)(u=function(t){var e=s.o;if(null!=t)try{var n=JSON.parse(t);m("number"==typeof n),e=n}catch(t){d("SharedClientState","Failed to read sequence number from WebStorage",t)}return e}(n.newValue))!==s.o&&this.sequenceNumberHandler(u);else if(n.key===this.Qs)return[2,this.syncEngine.ci()]}else this.Os.push(n);return[2]}))}))}))}},Object.defineProperty(t.prototype,"Js",{get:function(){return this.ks.get(this.Ns)},enumerable:!1,configurable:!0}),t.prototype.Ks=function(){this.setItem(this.$s,this.Js.Ss())},t.prototype.zs=function(t,e,n){var r=new Yi(this.currentUser,t,e,n),i=Gi(this.persistenceKey,this.currentUser,t);this.setItem(i,r.Ss())},t.prototype.Hs=function(t){var e=Gi(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.Xs=function(t){var e={clientId:this.Ns,onlineState:t};this.storage.setItem(this.Us,JSON.stringify(e))},t.prototype.Ys=function(t,e,n){var r=Xi(this.persistenceKey,t),i=new Qi(t,e,n);this.setItem(r,i.Ss())},t.prototype.Zs=function(){this.setItem(this.Qs,"value-not-used")},t.prototype.ti=function(t){var e=this.Ls.exec(t);return e?e[1]:null},t.prototype.ni=function(t,e){var n=this.ti(t);return Ji.Vs(n,e)},t.prototype.si=function(t,e){var n=this.Bs.exec(t),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return Yi.Vs(new zi(i),r,e)},t.prototype.ri=function(t,e){var n=this.qs.exec(t),r=Number(n[1]);return Qi.Vs(r,e)},t.prototype.js=function(t){return Zi.Vs(t)},t.prototype.ii=function(t){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){return t.user.uid===this.currentUser.uid?[2,this.syncEngine.ui(t.batchId,t.state,t.error)]:(h("SharedClientState","Ignoring mutation for non-active user "+t.user.uid),[2])}))}))},t.prototype.oi=function(t){return this.syncEngine.ai(t.targetId,t.state,t.error)},t.prototype.ei=function(t,e){var n=this,r=e?this.ks.insert(t,e):this.ks.remove(t),i=this.Gs(this.ks),o=this.Gs(r),a=[],s=[];return o.forEach((function(t){i.has(t)||a.push(t)})),i.forEach((function(t){o.has(t)||s.push(t)})),this.syncEngine.hi(a,s).then((function(){n.ks=r}))},t.prototype.Ws=function(t){this.ks.get(t.clientId)&&this.onlineStateHandler(t.onlineState)},t.prototype.Gs=function(t){var e=Be();return t.forEach((function(t,n){e=e.unionWith(n.activeTargetIds)})),e},t}(),no=function(){function t(){this.li=new to,this.fi={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}return t.prototype.addPendingMutation=function(t){},t.prototype.updateMutationState=function(t,e,n){},t.prototype.addLocalQueryTarget=function(t){return this.li.Ds(t),this.fi[t]||"not-current"},t.prototype.updateQueryState=function(t,e,n){this.fi[t]=e},t.prototype.removeLocalQueryTarget=function(t){this.li.Cs(t)},t.prototype.isLocalQueryTarget=function(t){return this.li.activeTargetIds.has(t)},t.prototype.clearQueryState=function(t){delete this.fi[t]},t.prototype.getAllActiveQueryTargets=function(){return this.li.activeTargetIds},t.prototype.isActiveQueryTarget=function(t){return this.li.activeTargetIds.has(t)},t.prototype.start=function(){return this.li=new to,Promise.resolve()},t.prototype.handleUserChange=function(t,e,n){},t.prototype.setOnlineState=function(t){},t.prototype.shutdown=function(){},t.prototype.writeSequenceNumber=function(t){},t.prototype.notifyBundleLoaded=function(){},t}(),ro=function(){function t(){}return t.prototype.di=function(t){},t.prototype.shutdown=function(){},t}(),io=function(){function t(){var t=this;this.wi=function(){return t._i()},this.mi=function(){return t.yi()},this.gi=[],this.pi()}return t.prototype.di=function(t){this.gi.push(t)},t.prototype.shutdown=function(){window.removeEventListener("online",this.wi),window.removeEventListener("offline",this.mi)},t.prototype.pi=function(){window.addEventListener("online",this.wi),window.addEventListener("offline",this.mi)},t.prototype._i=function(){h("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.gi;t<e.length;t++)(0,e[t])(0)},t.prototype.yi=function(){h("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.gi;t<e.length;t++)(0,e[t])(1)},t.yt=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),oo={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},ao=function(){function t(t){this.Ei=t.Ei,this.Ti=t.Ti}return t.prototype.Ii=function(t){this.Ai=t},t.prototype.Ri=function(t){this.bi=t},t.prototype.onMessage=function(t){this.vi=t},t.prototype.close=function(){this.Ti()},t.prototype.send=function(t){this.Ei(t)},t.prototype.Pi=function(){this.Ai()},t.prototype.Vi=function(t){this.bi(t)},t.prototype.Si=function(t){this.vi(t)},t}(),so=function(t){function e(e){var n=this;return(n=t.call(this,e)||this).forceLongPolling=e.forceLongPolling,n.autoDetectLongPolling=e.autoDetectLongPolling,n}return Object(a["b"])(e,t),e.prototype.ki=function(t,e,n,r){return new Promise((function(i,a){var s=new o["f"];
2683s.listenOnce(o["c"].COMPLETE,(function(){try{switch(s.getLastErrorCode()){case o["a"].NO_ERROR:var e=s.getResponseJson();h("Connection","XHR received:",JSON.stringify(e)),i(e);break;case o["a"].TIMEOUT:h("Connection",'RPC "'+t+'" timed out'),a(new c(u.DEADLINE_EXCEEDED,"Request time out"));break;case o["a"].HTTP_ERROR:var n=s.getStatus();if(h("Connection",'RPC "'+t+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var r=s.getResponseJson().error;if(r&&r.status&&r.message){var l=function(t){var e=t.toLowerCase().replace(/_/g,"-");return Object.values(u).indexOf(e)>=0?e:u.UNKNOWN}(r.status);a(new c(l,r.message))}else a(new c(u.UNKNOWN,"Server responded with status "+s.getStatus()))}else a(new c(u.UNAVAILABLE,"Connection failed."));break;default:g()}}finally{h("Connection",'RPC "'+t+'" completed.')}}));var l=JSON.stringify(r);s.send(e,"POST",l,n,15)}))},e.prototype.$i=function(t,e){var n=[this.Di,"/","google.firestore.v1.Firestore","/",t,"/channel"],i=Object(o["g"])(),a=Object(o["h"])(),s={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.Fi(s.initMessageHeaders,e),Object(r["z"])()||Object(r["C"])()||Object(r["v"])()||Object(r["x"])()||Object(r["D"])()||Object(r["u"])()||(s.httpHeadersOverwriteParam="$httpHeaders");var l=n.join("");h("Connection","Creating WebChannel: "+l,s);var f=i.createWebChannel(l,s),d=!1,v=!1,g=new ao({Ei:function(t){v?h("Connection","Not sending because WebChannel is closed:",t):(d||(h("Connection","Opening WebChannel transport."),f.open(),d=!0),h("Connection","WebChannel sending:",t),f.send(t))},Ti:function(){return f.close()}}),y=function(t,e,n){t.listen(e,(function(t){try{n(t)}catch(t){setTimeout((function(){throw t}),0)}}))};return y(f,o["e"].EventType.OPEN,(function(){v||h("Connection","WebChannel transport opened.")})),y(f,o["e"].EventType.CLOSE,(function(){v||(v=!0,h("Connection","WebChannel transport closed"),g.Vi())})),y(f,o["e"].EventType.ERROR,(function(t){v||(v=!0,p("Connection","WebChannel transport errored:",t),g.Vi(new c(u.UNAVAILABLE,"The operation could not be completed")))})),y(f,o["e"].EventType.MESSAGE,(function(t){var e;if(!v){var n=t.data[0];m(!!n);var r=n,i=r.error||(null===(e=r[0])||void 0===e?void 0:e.error);if(i){h("Connection","WebChannel received error:",i);var o=i.status,a=function(t){var e=_e[t];if(void 0!==e)return ke(e)}(o),s=i.message;void 0===a&&(a=u.INTERNAL,s="Unknown error status: "+o+" with message "+i.message),v=!0,g.Vi(new c(a,s)),f.close()}else h("Connection","WebChannel received:",n),g.Si(n)}})),y(a,o["b"].STAT_EVENT,(function(t){t.stat===o["d"].PROXY?h("Connection","Detected buffering proxy"):t.stat===o["d"].NOPROXY&&h("Connection","Detected no buffering proxy")})),setTimeout((function(){g.Pi()}),0),g},e}(function(){function t(t){this.databaseInfo=t,this.databaseId=t.databaseId;var e=t.ssl?"https":"http";this.Di=e+"://"+t.host,this.Ci="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return t.prototype.Ni=function(t,e,n,r){var i=this.xi(t,e);h("RestConnection","Sending: ",i,n);var o={};return this.Fi(o,r),this.ki(t,i,o,n).then((function(t){return h("RestConnection","Received: ",t),t}),(function(e){throw p("RestConnection",t+" failed with error: ",e,"url: ",i,"request:",n),e}))},t.prototype.Oi=function(t,e,n,r){return this.Ni(t,e,n,r)},t.prototype.Fi=function(t,e){if(t["X-Goog-Api-Client"]="gl-js/ fire/8.5.0",t["Content-Type"]="text/plain",this.databaseInfo.appId&&(t["X-Firebase-GMPID"]=this.databaseInfo.appId),e)for(var n in e.authHeaders)e.authHeaders.hasOwnProperty(n)&&(t[n]=e.authHeaders[n])},t.prototype.xi=function(t,e){var n=oo[t];return this.Di+"/v1/"+e+":"+n},t}());
2684/**
2685 * @license
2686 * Copyright 2020 Google LLC
2687 *
2688 * Licensed under the Apache License, Version 2.0 (the "License");
2689 * you may not use this file except in compliance with the License.
2690 * You may obtain a copy of the License at
2691 *
2692 *   http://www.apache.org/licenses/LICENSE-2.0
2693 *
2694 * Unless required by applicable law or agreed to in writing, softw
2694are
2695 * distributed under the License is distributed on an "AS IS" BASIS,
2696 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2697 * See the License for the specific language governing permissions and
2698 * limitations under the License.
2699 */
2700/**
2701 * @license
2702 * Copyright 2020 Google LLC
2703 *
2704 * Licensed under the Apache License, Version 2.0 (the "License");
2705 * you may not use this file except in compliance with the License.
2706 * You may obtain a copy of the License at
2707 *
2708 *   http://www.apache.org/licenses/LICENSE-2.0
2709 *
2710 * Unless required by applicable law or agreed to in writing, software
2711 * distributed under the License is distributed on an "AS IS" BASIS,
2712 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2713 * See the License for the specific language governing permissions and
2714 * limitations under the License.
2715 */function uo(){return"undefined"!=typeof window?window:null}function co(){return"undefined"!=typeof document?document:null}
2716/**
2717 * @license
2718 * Copyright 2020 Google LLC
2719 *
2720 * Licensed under the Apache License, Version 2.0 (the "License");
2721 * you may not use this file except in compliance with the License.
2722 * You may obtain a copy of the License at
2723 *
2724 *   http://www.apache.org/licenses/LICENSE-2.0
2725 *
2726 * Unless required by applicable law or agreed to in writing, software
2727 * distributed under the License is distributed on an "AS IS" BASIS,
2728 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2729 * See the License for the specific language governing permissions and
2730 * limitations under the License.
2731 */function lo(t){return new tn(t,!0)}var fo=function(){function t(t,e,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.Se=t,this.timerId=e,this.Mi=n,this.Li=r,this.Bi=i,this.qi=0,this.Ui=null,this.Qi=Date.now(),this.reset()}return t.prototype.reset=function(){this.qi=0},t.prototype.Ki=function(){this.qi=this.Bi},t.prototype.ji=function(t){var e=this;this.cancel();var n=Math.floor(this.qi+this.Wi()),r=Math.max(0,Date.now()-this.Qi),i=Math.max(0,n-r);i>0&&h("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.qi+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.Ui=this.Se.enqueueAfterDelay(this.timerId,i,(function(){return e.Qi=Date.now(),t()})),this.qi*=this.Li,this.qi<this.Mi&&(this.qi=this.Mi),this.qi>this.Bi&&(this.qi=this.Bi)},t.prototype.Gi=function(){null!==this.Ui&&(this.Ui.skipDelay(),this.Ui=null)},t.prototype.cancel=function(){null!==this.Ui&&(this.Ui.cancel(),this.Ui=null)},t.prototype.Wi=function(){return(Math.random()-.5)*this.qi},t}(),ho=function(){function t(t,e,n,r,i,o){this.Se=t,this.zi=n,this.Hi=r,this.Ji=i,this.listener=o,this.state=0,this.Yi=0,this.Xi=null,this.stream=null,this.Zi=new fo(t,e)}return t.prototype.tr=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.er=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.nr()},t.prototype.stop=function(){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(t){switch(t.label){case 0:return this.tr()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
2731))}))},t.prototype.sr=function(){this.state=0,this.Zi.reset()},t.prototype.ir=function(){var t=this;this.er()&&null===this.Xi&&(this.Xi=this.Se.enqueueAfterDelay(this.zi,6e4,(function(){return t.rr()})))},t.prototype.cr=function(t){this.ur(),this.stream.send(t)},t.prototype.rr=function(){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(t){return this.er()?[2,this.close(0)]:[2]}))}))},t.prototype.ur=function(){this.Xi&&(this.Xi.cancel(),this.Xi=null)},t.prototype.close=function(t,e){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(n){switch(n.label){case 0:return this.ur(),this.Zi.cancel(),this.Yi++,3!==t?this.Zi.reset():e&&e.code===u.RESOURCE_EXHAUSTED?(d(e.toString()),d("Using maximum backoff delay to prevent overloading the backend."),this.Zi.Ki()):e&&e.code===u.UNAUTHENTICATED&&this.Ji.invalidateToken(),null!==this.stream&&(this.ar(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Ri(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.ar=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.hr(this.Yi),n=this.Yi;this.Ji.getToken().then((function(e){t.Yi===n&&t.lr(e)}),(function(n){e((function(){var e=new c(u.UNKNOWN,"Fetching auth token failed: "+n.message);return t.dr(e)}))}))},t.prototype.lr=function(t){var e=this,n=this.hr(this.Yi);this.stream=this.wr(t),this.stream.Ii((function(){n((function(){return e.state=2,e.listener.Ii()}))})),this.stream.Ri((function(t){n((function(){return e.dr(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.nr=function(){var t=this;this.state=4,this.Zi.ji((function(){return Object(a["a"])(t,void 0,void 0,(function(){return Object(a["c"])(this,(function(t){return this.state=0,this.start(),[2]}))}))}))},t.prototype.dr=function(t){return h("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.hr=function(t){var e=this;return function(n){e.Se.enqueueAndForget((function(){return e.Yi===t?n():(h("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),po=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).R=i,a}return Object(a["b"])(e,t),e.prototype.wr=function(t){return this.Hi.$i("Listen",t)},e.prototype.onMessage=function(t){this.Zi.reset();var e=function(t,e){var n;if("targetChange"in e){e.targetChange;var r=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:g()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(t,e){return t.I?(m(void 0===e||"string"==typeof e),R.fromBase64String(e||"")):(m(void 0===e||e instanceof Uint8Array),R.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),a=(s=e.targetChange.cause)&&function(t){var e=void 0===t.code?u.UNKNOWN:ke(t.code);return new c(e,t.message||"")}(s);n=new He(r,i,o,a||null)}else if("documentChange"in e){e.documentChange,(r=e.documentChange).document,r.document.name,r.document.updateTime,i=cn(t,r.document.name),o=on(r.document.updateTime);var s=new ot({mapValue:{fields:r.document.fields}}),l=(a=st.newFoundDocument(i,o,s),r.targetIds||[]),f=r.removedTargetIds||[];n=new We(l,f,a.key,a)}else if("documentDelete"in e)e.documentDelete,(r=e.documentDelete).document,i=cn(t,r.document),o=r.readTime?on(r.readTime):T.min(),s=st.newNoDocument(i,o),a=r.removedTargetIds||[],n=new We([],a,s.key,s);else if("documentRemove"in e)e.documentRemove,(r=e.documentRemove).document,i=cn(t,r.document),o=r.removedTargetIds||[],n=new We([],o,i,null);else{if(!("filter"in e))return g();e.filter;var h=e.filter;h.targetId,r=h.count||0,i=new Te(r),o=h.targetId,n=new ze(o,i)}return n}(this.R,t),n=function(t){if(!("targetChange"in t))return T.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?T.min():e.readTime?on(e.readTime):T.min()}(t);return this.listener._r(e,n)},e.prototype.mr=function(t){var e={};e.database=hn(this.R),e.addTarget=function(t,e){var n,r=e.target;return(n=ht(r)?{documents:yn(t,r)}:{query:bn(t,r)}).targetId=e.targetId,e.resumeToken.approximateByteSize()>0?n.resumeToken=nn(t,e.resumeToken):e.snapshotVersion.compareTo(T.min())>0&&(n.readTime=en(t,e.snapshotVersion.toTimestamp())),n}(this.R,t);var n=function(t,e){var n=function(t,e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return g()}}(0,e.purpose);return null==n?null:{"goog-listen-tags":n}}(this.R,t);n&&(e.labels=n),this.cr(e)},e.prototype.yr=function(t){var e={};e.database=hn(this.R),e.removeTarget=t,this.cr(e)},e}(ho),vo=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).R=i,a.gr=!1,a}return Object(a["b"])(e,t),Object.defineProperty(e.prototype,"pr",{get:function(){return this.gr}
2731,enumerable:!1,configurable:!0}),e.prototype.start=function(){this.gr=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.ar=function(){this.gr&&this.Er([])},e.prototype.wr=function(t){return this.Hi.$i("Write",t)},e.prototype.onMessage=function(t){if(m(!!t.streamToken),this.lastStreamToken=t.streamToken,this.gr){this.Zi.reset();var e=function(t,e){return t&&t.length>0?(m(void 0!==e),t.map((function(t){return function(t,e){var n=t.updateTime?on(t.updateTime):on(e);return n.isEqual(T.min())&&(n=on(e)),new se(n,t.transformResults||[])}(t,e)}))):[]}(t.writeResults,t.commitTime),n=on(t.commitTime);return this.listener.Tr(n,e)}return m(!t.writeResults||0===t.writeResults.length),this.gr=!0,this.listener.Ir()},e.prototype.Ar=function(){var t={};t.database=hn(this.R),this.cr(t)},e.prototype.Er=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map((function(t){return gn(e.R,t)}))};this.cr(n)},e}(ho),go=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).credentials=e,i.Hi=n,i.R=r,i.Rr=!1,i}return Object(a["b"])(e,t),e.prototype.br=function(){if(this.Rr)throw new c(u.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.Ni=function(t,e,n){var r=this;return this.br(),this.credentials.getToken().then((function(i){return r.Hi.Ni(t,e,n,i)})).catch((function(t){throw"FirebaseError"===t.name?(t.code===u.UNAUTHENTICATED&&r.credentials.invalidateToken(),t):new c(u.UNKNOWN,t.toString())}))},e.prototype.Oi=function(t,e,n){var r=this;return this.br(),this.credentials.getToken().then((function(i){return r.Hi.Oi(t,e,n,i)})).catch((function(t){throw"FirebaseError"===t.name?(t.code===u.UNAUTHENTICATED&&r.credentials.invalidateToken(),t):new c(u.UNKNOWN,t.toString())}))},e.prototype.terminate=function(){this.Rr=!0},e}((function(){})),mo=function(){function t(t,e){this.asyncQueue=t,this.onlineStateHandler=e,this.state="Unknown",this.vr=0,this.Pr=null,this.Vr=!0}return t.prototype.Sr=function(){var t=this;0===this.vr&&(this.Dr("Unknown"),this.Pr=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(function(){return t.Pr=null,t.Cr("Backend didn't respond within 10 seconds."),t.Dr("Offline"),Promise.resolve()})))},t.prototype.Nr=function(t){"Online"===this.state?this.Dr("Unknown"):(this.vr++,this.vr>=1&&(this.Fr(),this.Cr("Connection failed 1 times. Most recent error: "+t.toString()),this.Dr("Offline")))},t.prototype.set=function(t){this.Fr(),this.vr=0,"Online"===t&&(this.Vr=!1),this.Dr(t)},t.prototype.Dr=function(t){t!==this.state&&(this.state=t,this.onlineStateHandler(t))},t.prototype.Cr=function(t){var e="Could not reach Cloud Firestore backend. "+t+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.Vr?(d(e),this.Vr=!1):h("OnlineStateTracker",e)},t.prototype.Fr=function(){null!==this.Pr&&(this.Pr.cancel(),this.Pr=null)},t}(),yo=function(t,e,n,r,i){var o=this;this.localStore=t,this.datastore=e,this.asyncQueue=n,this.remoteSyncer={},this.kr=[],this.Or=new Map,this.$r=new Set,this.Mr=[],this.Lr=i,this.Lr.di((function(t){n.enqueueAndForget((function(){return Object(a["a"])(o,void 0,void 0,(function(){return Object(a["c"])(this,(function(t){switch(t.label){case 0:return ko(this)?(h("RemoteStore","Restarting streams for network reachability change."),[4,function(t){return Object(a["a"])(this,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:return(e=y(t)).$r.add(4),[4,wo(e)];case 1:return n.sent(),e.Br.set("Unknown"),e.$r.delete(4),[4,bo(e)];case 2:return n.sent(),[2]}}))}))}(this)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
2731))}))}))})),this.Br=new mo(n,r)};
2732/**
2733 * @license
2734 * Copyright 2017 Google LLC
2735 *
2736 * Licensed under the Apache License, Version 2.0 (the "License");
2737 * you may not use this file except in compliance with the License.
2738 * You may obtain a copy of the License at
2739 *
2740 *   http://www.apache.org/licenses/LICENSE-2.0
2741 *
2742 * Unless required by applicable law or agreed to in writing, software
2743 * distributed under the License is distributed on an "AS IS" BASIS,
2744 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2745 * See the License for the specific language governing permissions and
2746 * limitations under the License.
2747 */function bo(t){return Object(a["a"])(this,void 0,void 0,(function(){var e,n;return Object(a["c"])(this,(function(r){switch(r.label){case 0:if(!ko(t))return[3,4];e=0,n=t.Mr,r.label=1;case 1:return e<n.length?[4,(0,n[e])(!0)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}}))}))}function wo(t){return Object(a["a"])(this,void 0,void 0,(function(){var e,n;return Object(a["c"])(this,(function(r){switch(r.label){case 0:e=0,n=t.Mr,r.label=1;case 1:return e<n.length?[4,(0,n[e])(!1)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}}
2747))}))}function _o(t,e){var n=y(t);n.Or.has(e.targetId)||(n.Or.set(e.targetId,e),So(n)?To(n):Bo(n).er()&&Oo(n,e))}function Eo(t,e){var n=y(t),r=Bo(n);n.Or.delete(e),r.er()&&Io(n,e),0===n.Or.size&&(r.er()?r.ir():ko(n)&&n.Br.set("Unknown"))}function Oo(t,e){t.qr.U(e.targetId),Bo(t).mr(e)}function Io(t,e){t.qr.U(e),Bo(t).yr(e)}function To(t){t.qr=new Xe({getRemoteKeysForTarget:function(e){return t.remoteSyncer.getRemoteKeysForTarget(e)},lt:function(e){return t.Or.get(e)||null}}),Bo(t).start(),t.Br.Sr()}function So(t){return ko(t)&&!Bo(t).tr()&&t.Or.size>0}function ko(t){return 0===y(t).$r.size}function Co(t){t.qr=void 0}function xo(t){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){return t.Or.forEach((function(e,n){Oo(t,e)})),[2]}))}))}function jo(t,e){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(n){return Co(t),So(t)?(t.Br.Nr(e),To(t)):t.Br.set("Unknown"),[2]}))}))}function Ao(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var r,i,o;return Object(a["c"])(this,(function(s){switch(s.label){case 0:if(t.Br.set("Online"),!(e instanceof He&&2===e.state&&e.cause))return[3,6];s.label=1;case 1:return s.trys.push([1,3,,5]),[4,function(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i,o;return Object(a["c"])(this,(function(a){switch(a.label){case 0:n=e.cause,r=0,i=e.targetIds,a.label=1;case 1:return r<i.length?(o=i[r],t.Or.has(o)?[4,t.remoteSyncer.rejectListen(o,n)]:[3,3]):[3,5];case 2:a.sent(),t.Or.delete(o),t.qr.removeTarget(o),a.label=3;case 3:a.label=4;case 4:return r++,[3,1];case 5:return[2]}}
2747))}))}(t,e)];case 2:return s.sent(),[3,5];case 3:return r=s.sent(),h("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),[4,No(t,r)];case 4:return s.sent(),[3,5];case 5:return[3,13];case 6:if(e instanceof We?t.qr.X(e):e instanceof ze?t.qr.rt(e):t.qr.et(e),n.isEqual(T.min()))return[3,13];s.label=7;case 7:return s.trys.push([7,11,,13]),[4,Ii(t.localStore)];case 8:return i=s.sent(),n.compareTo(i)>=0?[4,function(t,e){var n=t.qr.ut(e);return n.targetChanges.forEach((function(n,r){if(n.resumeToken.approximateByteSize()>0){var i=t.Or.get(r);i&&t.Or.set(r,i.withResumeToken(n.resumeToken,e))}})),n.targetMismatches.forEach((function(e){var n=t.Or.get(e);if(n){t.Or.set(e,n.withResumeToken(R.EMPTY_BYTE_STRING,n.snapshotVersion)),Io(t,e);var r=new gr(n.target,e,1,n.sequenceNumber);Oo(t,r)}})),t.remoteSyncer.applyRemoteEvent(n)}(t,n)]:[3,10];case 9:s.sent(),s.label=10;case 10:return[3,13];case 11:return h("RemoteStore","Failed to raise snapshot:",o=s.sent()),[4,No(t,o)];case 12:return s.sent(),[3,13];case 13:return[2]}}
2747))}))}function No(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var r=this;return Object(a["c"])(this,(function(i){switch(i.label){case 0:if(!sr(e))throw e;return t.$r.add(1),[4,wo(t)];case 1:return i.sent(),t.Br.set("Offline"),n||(n=function(){return Ii(t.localStore)}),t.asyncQueue.enqueueRetryable((function(){return Object(a["a"])(r,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){switch(e.label){case 0:return h("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return e.sent(),t.$r.delete(1),[4,bo(t)];case 2:return e.sent(),[2]}}))}))})),[2]}}))}))}function Po(t,e){return e().catch((function(n){return No(t,n,e)}))}function Ro(t){return Object(a["a"])(this,void 0,void 0,(function(){var e,n,r,i,o;return Object(a["c"])(this,(function(a){switch(a.label){case 0:e=y(t),n=Vo(e),r=e.kr.length>0?e.kr[e.kr.length-1].batchId:-1,a.label=1;case 1:if(!function(t){return ko(t)&&t.kr.length<10}(e))return[3,7];a.label=2;case 2:return a.trys.push([2,4,,6]),[4,ki(e.localStore,r)];case 3:return null===(i=a.sent())?(0===e.kr.length&&n.ir(),[3,7]):(r=i.batchId,function(t,e){t.kr.push(e);var n=Vo(t);n.er()&&n.pr&&n.Er(e.mutations)}(e,i),[3,6]);case 4:return o=a.sent(),[4,No(e,o)];case 5:return a.sent(),[3,6];case 6:return[3,1];case 7:return Do(e)&&Lo(e),[2]}}))}))}function Do(t){return ko(t)&&!Vo(t).tr()&&t.kr.length>0}function Lo(t){Vo(t).start()}function Mo(t){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){return Vo(t).Ar(),[2]}))}))}function Fo(t){return Object(a["a"])(this,void 0,void 0,(function(){var e,n,r,i;return Object(a["c"])(this,(function(o){for(e=Vo(t),n=0,r=t.kr;n<r.length;n++)i=r[n],e.Er(i.mutations);return[2]}))}))}function Uo(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var r,i;return Object(a["c"])(this,(function(o){switch(o.label){case 0:return r=t.kr.shift(),i=vr.from(r,e,n),[4,Po(t,(function(){return t.remoteSyncer.applySuccessfulWrite(i)}))];case 1:return o.sent(),[4,Ro(t)];case 2:return o.sent(),[2]}}))}))}function qo(t,e){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(n){switch(n.label){case 0:return e&&Vo(t).pr?[4,function(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r;return Object(a["c"])(this,(function(i){switch(i.label){case 0:return Se(r=e.code)&&r!==u.ABORTED?(n=t.kr.shift(),Vo(t).sr(),[4,Po(t,(function(){return t.remoteSyncer.rejectFailedWrite(n.batchId,e)}))]):[3,3];case 1:return i.sent(),[4,Ro(t)];case 2:i.sent(),i.label=3;case 3:return[2]}}
2747))}))}(t,e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return Do(t)&&Lo(t),[2]}}))}))}function $o(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n;return Object(a["c"])(this,(function(r){switch(r.label){case 0:return n=y(t),e?(n.$r.delete(2),[4,bo(n)]):[3,2];case 1:return r.sent(),[3,5];case 2:return e?[3,4]:(n.$r.add(2),[4,wo(n)]);case 3:r.sent(),n.Br.set("Unknown"),r.label=4;case 4:r.label=5;case 5:return[2]}}))}))}function Bo(t){var e=this;return t.Ur||(t.Ur=function(t,e,n){var r=y(t);return r.br(),new po(e,r.Hi,r.credentials,r.R,n)}(t.datastore,t.asyncQueue,{Ii:xo.bind(null,t),Ri:jo.bind(null,t),_r:Ao.bind(null,t)}),t.Mr.push((function(n){return Object(a["a"])(e,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){switch(e.label){case 0:return n?(t.Ur.sr(),So(t)?To(t):t.Br.set("Unknown"),[3,3]):[3,1];case 1:return[4,t.Ur.stop()];case 2:e.sent(),Co(t),e.label=3;case 3:return[2]}}))}))}))),t.Ur}function Vo(t){var e=this;return t.Qr||(t.Qr=function(t,e,n){var r=y(t);return r.br(),new vo(e,r.Hi,r.credentials,r.R,n)}(t.datastore,t.asyncQueue,{Ii:Mo.bind(null,t),Ri:qo.bind(null,t),Ir:Fo.bind(null,t),Tr:Uo.bind(null,t)}),t.Mr.push((function(n){return Object(a["a"])(e,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){switch(e.label){case 0:return n?(t.Qr.sr(),[4,Ro(t)]):[3,2];case 1:return e.sent(),[3,4];case 2:return[4,t.Qr.stop()];case 3:e.sent(),t.kr.length>0&&(h("RemoteStore","Stopping write stream with "+t.kr.length+" pending writes"),t.kr=[]),e.label=4;case 4:return[2]}}
2747))}))}))),t.Qr
2748/**
2749 * @license
2750 * Copyright 2017 Google LLC
2751 *
2752 * Licensed under the Apache License, Version 2.0 (the "License");
2753 * you may not use this file except in compliance with the License.
2754 * You may obtain a copy of the License at
2755 *
2756 *   http://www.apache.org/licenses/LICENSE-2.0
2757 *
2758 * Unless required by applicable law or agreed to in writing, software
2759 * distributed under the License is distributed on an "AS IS" BASIS,
2760 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2761 * See the License for the specific language governing permissions and
2762 * limitations under the License.
2763 */}var Ko=function(){function t(t,e,n,r,i){this.asyncQueue=t,this.timerId=e,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new er,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((function(t){}))}return t.createAndSchedule=function(e,n,r,i,o){var a=new t(e,n,Date.now()+r,i,o);return a.start(r),a},t.prototype.start=function(t){var e=this;this.timerHandle=setTimeout((function(){return e.handleDelayElapsed()}),t)},t.prototype.skipDelay=function(){return this.handleDelayElapsed()},t.prototype.cancel=function(t){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new c(u.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
2763)},t.prototype.handleDelayElapsed=function(){var t=this;this.asyncQueue.enqueueAndForget((function(){return null!==t.timerHandle?(t.clearTimeout(),t.op().then((function(e){return t.deferred.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},t}();function Wo(t,e){if(d("AsyncQueue",e+": "+t),sr(t))return new c(u.UNAVAILABLE,e+": "+t);throw t}
2764/**
2765 * @license
2766 * Copyright 2017 Google LLC
2767 *
2768 * Licensed under the Apache License, Version 2.0 (the "License");
2769 * you may not use this file except in compliance with the License.
2770 * You may obtain a copy of the License at
2771 *
2772 *   http://www.apache.org/licenses/LICENSE-2.0
2773 *
2774 * Unless required by applicable law or agreed to in writing, software
2775 * distributed under the License is distributed on an "AS IS" BASIS,
2776 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2777 * See the License for the specific language governing permissions and
2778 * limitations under the License.
2779 */var zo=function(){function t(t){this.comparator=t?function(e,n){return t(e,n)||W.comparator(e.key,n.key)}:function(t,e){return W.comparator(t.key,e.key)},this.keyedMap=Le(),this.sortedSet=new Ce(this.comparator)}return t.emptySet=function(e){return new t(e.comparator)},t.prototype.has=function(t){return null!=this.keyedMap.get(t)},t.prototype.get=function(t){return this.keyedMap.get(t)},t.prototype.first=function(){return this.sortedSet.minKey()},t.prototype.last=function(){return this.sortedSet.maxKey()},t.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},t.prototype.indexOf=function(t){var e=this.keyedMap.get(t);return e?this.sortedSet.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t){this.sortedSet.inorderTraversal((function(e,n){return t(e),!1}))},t.prototype.add=function(t){var e=this.delete(t.key);return e.copy(e.keyedMap.insert(t.key,t),e.sortedSet.insert(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.copy(this.keyedMap.remove(t),this.sortedSet.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(!i.isEqual(o))return!1}return!0},t.prototype.toString=function(){var t=[];return this.forEach((function(e){t.push(e.toString())})),0===t.length?"DocumentSet ()":"DocumentSet (\n  "+t.join("  \n")+"\n)"},t.prototype.copy=function(e,n){var r=new t;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r},t}(),Ho=function(){function t(){this.Kr=new Ce(W.comparator)}return t.prototype.track=function(t){var e=t.doc.key,n=this.Kr.get(e);n?0!==t.type&&3===n.type?this.Kr=this.Kr.insert(e,t):3===t.type&&1!==n.type?this.Kr=this.Kr.insert(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.Kr=this.Kr.insert(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.Kr=this.Kr.insert(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.Kr=this.Kr.remove(e):1===t.type&&2===n.type?this.Kr=this.Kr.insert(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.Kr=this.Kr.insert(e,{type:2,doc:t.doc}):g():this.Kr=this.Kr.insert(e,t)},t.prototype.jr=function(){var t=[];return this.Kr.inorderTraversal((function(e,n){t.push(n)})),t},t}(),Go=function(){function t(t,e,n,r,i,o,a,s){this.query=t,this.docs=e,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=s}return t.fromInitialDocuments=function(e,n,r,i){var o=[];return n.forEach((function(t){o.push({type:0,doc:t})})),new t(e,n,zo.emptySet(n),o,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.syncStateChanged===t.syncStateChanged&&this.mutatedKeys.isEqual(t.mutatedKeys)&&Ut(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.oldDocs.isEqual(t.oldDocs)))return!1;var e=this.docChanges,n=t.docChanges;if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(e[r].type!==n[r].type||!e[r].doc.isEqual(n[r].doc))return!1;return!0},t}(),Xo=function(){this.Wr=void 0,this.listeners=[]},Yo=function(){this.queries=new ni((function(t){return qt(t)}),Ut),this.onlineState="Unknown",this.Gr=new Set};
2780/**
2781 * @license
2782 * Copyright 2017 Google LLC
2783 *
2784 * Licensed under the Apache License, Version 2.0 (the "License");
2785 * you may not use this file except in compliance with the License.
2786 * You may obtain a copy of the License at
2787 *
2788 *   http://www.apache.org/licenses/LICENSE-2.0
2789 *
2790 * Unless required by applicable law or agreed to in writing, software
2791 * distributed under the License is distributed on an "AS IS" BASIS,
2792 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2793 * See the License for the specific language governing permissions and
2794 * limitations under the License.
2795 */function Qo(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i,o,s,u,c;return Object(a["c"])(this,(function(a){switch(a.label){case 0:if(n=y(t),r=e.query,i=!1,(o=n.queries.get(r))||(i=!0,o=new Xo),!i)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),s=o,[4,n.onListen(r)];case 2:return s.Wr=a.sent(),[3,4];case 3:return u=a.sent(),c=Wo(u,"Initialization of query '"+$t(e.query)+"' failed"),[2,void e.onError(c)];case 4:return n.queries.set(r,o),o.listeners.push(e),e.zr(n.onlineState),o.Wr&&e.Hr(o.Wr)&&ea(n),[2]}}))}))}function Jo(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i,o,s;return Object(a["c"])(this,(function(a){return n=y(t),r=e.query,i=!1,(o=n.queries.get(r))&&(s=o.listeners.indexOf(e))>=0&&(o.listeners.splice(s,1),i=0===o.listeners.length),i?[2,(n.queries.delete(r),n.onUnlisten(r))]:[2]}))}))}function Zo(t,e){for(var n=y(t),r=!1,i=0,o=e;i<o.length;i++){var a=o[i],s=a.query,u=n.queries.get(s);if(u){for(var c=0,l=u.listeners;c<l.length;c++)l[c].Hr(a)&&(r=!0);u.Wr=a}}r&&ea(n)}function ta(t,e,n){var r=y(t),i=r.queries.get(e);if(i)for(var o=0,a=i.listeners;o<a.length;o++)a[o].onError(n);r.queries.delete(e)}function ea(t){t.Gr.forEach((function(t){t.next()}))}var na=function(){function t(t,e,n){this.query=t,this.Jr=e,this.Yr=!1,this.Xr=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.Hr=function(t){if(!this.options.includeMetadataChanges){for(var e=[],n=0,r=t.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&e.push(i)}t=new Go(t.query,t.docs,t.oldDocs,e,t.mutatedKeys,t.fromCache,t.syncStateChanged,!0)}var o=!1;return this.Yr?this.Zr(t)&&(this.Jr.next(t),o=!0):this.eo(t,this.onlineState)&&(this.no(t),o=!0),this.Xr=t,o},t.prototype.onError=function(t){this.Jr.error(t)},t.prototype.zr=function(t){this.onlineState=t;var e=!1;return this.Xr&&!this.Yr&&this.eo(this.Xr,t)&&(this.no(this.Xr),e=!0),e},t.prototype.eo=function(t,e){if(!t.fromCache)return!0;var n="Offline"!==e;return!(this.options.so&&n||t.docs.isEmpty()&&"Offline"!==e)},t.prototype.Zr=function(t){if(t.docChanges.length>0)return!0;var e=this.Xr&&this.Xr.hasPendingWrites!==t.hasPendingWrites;return!(!t.syncStateChanged&&!e)&&!0===this.options.includeMetadataChanges},t.prototype.no=function(t){t=Go.fromInitialDocuments(t.query,t.docs,t.mutatedKeys,t.fromCache),this.Yr=!0,this.Jr.next(t)},t}(),ra=function(){function t(t,e){this.payload=t,this.byteLength=e}return t.prototype.io=function(){return"metadata"in this.payload},t}(),ia=function(){function t(t){this.R=t}return t.prototype.qn=function(t){return cn(this.R,t)},t.prototype.Un=function(t){return t.metadata.exists?vn(this.R,t.document,!1):st.newNoDocument(this.qn(t.metadata.name),this.Qn(t.metadata.readTime))},t.prototype.Qn=function(t){return on(t)},t}(),oa=function(){function t(t,e,n){this.ro=t,this.localStore=e,this.R=n,this.queries=[],this.documents=[],this.progress=aa(t)}return t.prototype.oo=function(t){this.progress.bytesLoaded+=t.byteLength;var e=this.progress.documentsLoaded;return t.payload.namedQuery?this.queries.push(t.payload.namedQuery):t.payload.documentMetadata?(this.documents.push({metadata:t.payload.documentMetadata}),t.payload.documentMetadata.exists||++e):t.payload.document&&(this.documents[this.documents.length-1].document=t.payload.document,++e),e!==this.progress.documentsLoaded?(this.progress.documentsLoaded=e,Object.assign({},this.progress)):null},t.prototype.co=function(t){for(var e=new Map,n=new ia(this.R),r=0,i=t;r<i.length;r++){var o=i[r];if(o.metadata.queries)for(var a=n.qn(o.metadata.name),s=0,u=o.metadata.queries;s<u.length;s++){var c=u[s],l=(e.get(c)||qe()).add(a);e.set(c,l)}}return e},t.prototype.complete=function(){return Object(a["a"])(this,void 0,void 0,(function(){var t,e,n,r,i;return Object(a["c"])(this,(function(o){switch(o.label){case 0:return[4,Ri(this.localStore,new ia(this.R),this.documents,this.ro.id)];case 1:t=o.sent(),e=this.co(this.documents),n=0,r=this.queries,o.label=2;case 2:return n<r.length?(i=r[n],[4,Di(this.localStore,i,e.get(i.name))]):[3,5];case 3:o.sent(),o.label=4;case 4:return n++,[3,2];case 5:return[2,(this.progress.taskState="Success",new gi(Object.assign({},this.progress),t))]}}))}))},t}();
2796/**
2797 * @license
2798 * Copyright 2020 Google LLC
2799 *
2800 * Licensed under the Apache License, Version 2.0 (the "License");
2801 * you may not use this file except in compliance with the License.
2802 * You may obtain a copy of the License at
2803 *
2804 *   http://www.apache.org/licenses/LICENSE-2.0
2805 *
2806 * Unless required by applicable law or agreed to in writing, software
2807 * distributed under the License is distributed on an "AS IS" BASIS,
2808 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2809 * See the License for the specific language governing permissions and
2810 * limitations under the License.
2811 */function aa(t){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:t.totalDocuments,totalBytes:t.totalBytes}}
2812/**
2813 * @license
2814 * Copyright 2017 Google LLC
2815 *
2816 * Licensed under the Apache License, Version 2.0 (the "License");
2817 * you may not use this file except in compliance with the License.
2818 * You may obtain a copy of the License at
2819 *
2820 *   http://www.apache.org/licenses/LICENSE-2.0
2821 *
2822 * Unless required by applicable law or agreed to in writing, software
2823 * distributed under the License is distributed on an "AS IS" BASIS,
2824 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2825 * See the License for the specific language governing permissions and
2826 * limitations under the License.
2827 */var sa=function(t){this.key=t},ua=function(t){this.key=t},ca=function(){function t(t,e){this.query=t,this.uo=e,this.ao=null,this.current=!1,this.ho=qe(),this.mutatedKeys=qe(),this.lo=Vt(t),this.fo=new zo(this.lo)}return Object.defineProperty(t.prototype,"wo",{get:function(){return this.uo},enumerable:!1,configurable:!0}),t.prototype._o=function(t,e){var n=this,r=e?e.mo:new Ho,i=e?e.fo:this.fo,o=e?e.mutatedKeys:this.mutatedKeys,a=i,s=!1,u=At(this.query)&&i.size===this.query.limit?i.last():null,c=Nt(this.query)&&i.size===this.query.limit?i.first():null;if(t.inorderTraversal((function(t,e){var l=i.get(t),f=Bt(n.query,e)?e:null,h=!!l&&n.mutatedKeys.has(l.key),d=!!f&&(f.hasLocalMutations||n.mutatedKeys.has(f.key)&&f.hasCommittedMutations),p=!1;l&&f?l.data.isEqual(f.data)?h!==d&&(r.track({type:3,doc:f}),p=!0):n.yo(l,f)||(r.track({type:2,doc:f}),p=!0,(u&&n.lo(f,u)>0||c&&n.lo(f,c)<0)&&(s=!0)):!l&&f?(r.track({type:0,doc:f}),p=!0):l&&!f&&(r.track({type:1,doc:l}),p=!0,(u||c)&&(s=!0)),p&&(f?(a=a.add(f),o=d?o.add(t):o.delete(t)):(a=a.delete(t),o=o.delete(t)))})),At(this.query)||Nt(this.query))for(;a.size>this.query.limit;){var l=At(this.query)?a.last():a.first();a=a.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{fo:a,mo:r,Nn:s,mutatedKeys:o}},t.prototype.yo=function(t,e){return t.hasLocalMutations&&e.hasCommittedMutations&&!e.hasLocalMutations},t.prototype.applyChanges=function(t,e,n){var r=this,i=this.fo;this.fo=t.fo,this.mutatedKeys=t.mutatedKeys;var o=t.mo.jr();o.sort((function(t,e){return function(t,e){var n=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return g()}};return n(t)-n(e)}(t.type,e.type)||r.lo(t.doc,e.doc)})),this.po(n);var a=e?this.Eo():[],s=0===this.ho.size&&this.current?1:0,u=s!==this.ao;return this.ao=s,0!==o.length||u?{snapshot:new Go(this.query,t.fo,i,o,t.mutatedKeys,0===s,u,!1),To:a}:{To:a}},t.prototype.zr=function(t){return this.current&&"Offline"===t?(this.current=!1,this.applyChanges({fo:this.fo,mo:new Ho,mutatedKeys:this.mutatedKeys,Nn:!1},!1)):{To:[]}},t.prototype.Io=function(t){return!this.uo.has(t)&&!!this.fo.has(t)&&!this.fo.get(t).hasLocalMutations},t.prototype.po=function(t){var e=this;t&&(t.addedDocuments.forEach((function(t){return e.uo=e.uo.add(t)})),t.modifiedDocuments.forEach((function(t){})),t.removedDocuments.forEach((function(t){return e.uo=e.uo.delete(t)})),this.current=t.current)},t.prototype.Eo=function(){var t=this;if(!this.current)return[];var e=this.ho;this.ho=qe(),this.fo.forEach((function(e){t.Io(e.key)&&(t.ho=t.ho.add(e.key))}));var n=[];return e.forEach((function(e){t.ho.has(e)||n.push(new ua(e))})),this.ho.forEach((function(t){e.has(t)||n.push(new sa(t))})),n},t.prototype.Ao=function(t){this.uo=t.Bn,this.ho=qe();var e=this._o(t.documents);return this.applyChanges(e,!0)},t.prototype.Ro=function(){return Go.fromInitialDocuments(this.query,this.fo,this.mutatedKeys,0===this.ao)},t}(),la=function(t,e,n){this.query=t,this.targetId=e,this.view=n},fa=function(t){this.key=t,this.bo=!1},ha=function(){function t(t,e,n,r,i,o){this.localStore=t,this.remoteStore=e,this.eventManager=n,this.sharedCl
2827ientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.vo={},this.Po=new ni((function(t){return qt(t)}),Ut),this.Vo=new Map,this.So=new Set,this.Do=new Ce(W.comparator),this.Co=new Map,this.No=new Mi,this.xo={},this.Fo=new Map,this.ko=Kr.Yt(),this.onlineState="Unknown",this.Oo=void 0}return Object.defineProperty(t.prototype,"isPrimaryClient",{get:function(){return!0===this.Oo},enumerable:!1,configurable:!0}),t}();function da(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i,o,s,u;return Object(a["c"])(this,(function(a){switch(a.label){case 0:return n=Ba(t),(o=n.Po.get(e))?(r=o.targetId,n.sharedClientState.addLocalQueryTarget(r),i=o.view.Ro(),[3,4]):[3,1];case 1:return[4,Ci(n.localStore,Mt(e))];case 2:return s=a.sent(),u=n.sharedClientState.addLocalQueryTarget(s.targetId),r=s.targetId,[4,pa(n,e,r,"current"===u)];case 3:i=a.sent(),n.isPrimaryClient&&_o(n.remoteStore,s),a.label=4;case 4:return[2,i]}}))}))}function pa(t,e,n,r){return Object(a["a"])(this,void 0,void 0,(function(){var i,o,s,u,c,l;return Object(a["c"])(this,(function(f){switch(f.label){case 0:return t.$o=function(e,n,r){return function(t,e,n,r){return Object(a["a"])(this,void 0,void 0,(function(){var i,o,s;return Object(a["c"])(this,(function(a){switch(a.label){case 0:return i=e.view._o(n),i.Nn?[4,ji(t.localStore,e.query,!1).then((function(t){var n=t.documents;return e.view._o(n,i)}))]:[3,2];case 1:i=a.sent(),a.label=2;case 2:return o=r&&r.targetChanges.get(e.targetId),s=e.view.applyChanges(i,t.isPrimaryClient,o),[2,(ka(t,e.targetId,s.To),s.snapshot)]}}))}))}(t,e,n,r)},[4,ji(t.localStore,e,!0)];case 1:return i=f.sent(),o=new ca(e,i.Bn),s=o._o(i.documents),u=Ke.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==t.onlineState),c=o.applyChanges(s,t.isPrimaryClient,u),ka(t,n,c.To),l=new la(e,n,o),[2,(t.Po.set(e,l),t.Vo.has(n)?t.Vo.get(n).push(e):t.Vo.set(n,[e]),c.snapshot)]}}))}))}function va(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i;return Object(a["c"])(this,(function(o){switch(o.label){case 0:return n=y(t),r=n.Po.get(e),(i=n.Vo.get(r.targetId)).length>1?[2,(n.Vo.set(r.targetId,i.filter((function(t){return!Ut(t,e)}))),void n.Po.delete(e))]:n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)?[3,2]:[4,xi(n.localStore,r.targetId,!1).then((function(){n.sharedClientState.clearQueryState(r.targetId),Eo(n.remoteStore,r.targetId),Ta(n,r.targetId)})).catch(Xr)]):[3,3];case 1:o.sent(),o.label=2;case 2:return[3,5];case 3:return Ta(n,r.targetId),[4,xi(n.localStore,r.targetId,!0)];case 4:o.sent(),o.label=5;case 5:return[2]}}
2827))}))}function ga(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var r,i,o,s;return Object(a["c"])(this,(function(a){switch(a.label){case 0:r=Va(t),a.label=1;case 1:return a.trys.push([1,5,,6]),[4,function(t,e){var n,r=y(t),i=I.now(),o=e.reduce((function(t,e){return t.add(e.key)}),qe());return r.persistence.runTransaction("Locally write mutations","readwrite",(function(t){return r.Mn.pn(t,o).next((function(o){n=o;for(var a=[],s=0,u=e;s<u.length;s++){var c=u[s],l=de(c,n.get(c.key));null!=l&&a.push(new me(c.key,l,at(l.toProto().mapValue),ue.exists(!0)))}return r._n.addMutationBatch(t,i,a,e)}))})).then((function(t){return t.applyToLocalDocumentSet(n),{batchId:t.batchId,changes:n}}))}(r.localStore,e)];case 2:return i=a.sent(),r.sharedClientState.addPendingMutation(i.batchId),function(t,e,n){var r=t.xo[t.currentUser.toKey()];r||(r=new Ce(_)),r=r.insert(e,n),t.xo[t.currentUser.toKey()]=r}(r,i.batchId,n),[4,ja(r,i.changes)];case 3:return a.sent(),[4,Ro(r.remoteStore)];case 4:return a.sent(),[3,6];case 5:return o=a.sent(),s=Wo(o,"Failed to persist write"),n.reject(s),[3,6];case 6:return[2]}}
2827))}))}function ma(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r;return Object(a["c"])(this,(function(i){switch(i.label){case 0:n=y(t),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,Ti(n.localStore,e)];case 2:return r=i.sent(),e.targetChanges.forEach((function(t,e){var r=n.Co.get(e);r&&(m(t.addedDocuments.size+t.modifiedDocuments.size+t.removedDocuments.size<=1),t.addedDocuments.size>0?r.bo=!0:t.modifiedDocuments.size>0?m(r.bo):t.removedDocuments.size>0&&(m(r.bo),r.bo=!1))})),[4,ja(n,r,e)];case 3:return i.sent(),[3,6];case 4:return[4,Xr(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}}))}))}function ya(t,e,n){var r=y(t);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){var i=[];r.Po.forEach((function(t,n){var r=n.view.zr(e);r.snapshot&&i.push(r.snapshot)})),function(t,e){var n=y(t);n.onlineState=e;var r=!1;n.queries.forEach((function(t,n){for(var i=0,o=n.listeners;i<o.length;i++)o[i].zr(e)&&(r=!0)})),r&&ea(n)}(r.eventManager,e),i.length&&r.vo._r(i),r.onlineState=e,r.isPrimaryClient&&r.sharedCl
2827ientState.setOnlineState(e)}}function ba(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var r,i,o,s,u,c;return Object(a["c"])(this,(function(a){switch(a.label){case 0:return(r=y(t)).sharedClientState.updateQueryState(e,"rejected",n),i=r.Co.get(e),(o=i&&i.key)?(s=(s=new Ce(W.comparator)).insert(o,st.newNoDocument(o,T.min())),u=qe().add(o),c=new Ve(T.min(),new Map,new Ae(_),s,u),[4,ma(r,c)]):[3,2];case 1:return a.sent(),r.Do=r.Do.remove(o),r.Co.delete(e),xa(r),[3,4];case 2:return[4,xi(r.localStore,e,!1).then((function(){return Ta(r,e,n)})).catch(Xr)];case 3:a.sent(),a.label=4;case 4:return[2]}}))}))}function wa(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i;return Object(a["c"])(this,(function(o){switch(o.label){case 0:n=y(t),r=e.batch.batchId,o.label=1;case 1:return o.trys.push([1,4,,6]),[4,Oi(n.localStore,e)];case 2:return i=o.sent(),Ia(n,r,null),Oa(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),[4,ja(n,i)];case 3:return o.sent(),[3,6];case 4:return[4,Xr(o.sent())];case 5:return o.sent(),[3,6];case 6:return[2]}}
2827))}))}function _a(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var r,i;return Object(a["c"])(this,(function(o){switch(o.label){case 0:r=y(t),o.label=1;case 1:return o.trys.push([1,4,,6]),[4,function(t,e){var n=y(t);return n.persistence.runTransaction("Reject batch","readwrite-primary",(function(t){var r;return n._n.lookupMutationBatch(t,e).next((function(e){return m(null!==e),r=e.keys(),n._n.removeMutationBatch(t,e)})).next((function(){return n._n.performConsistencyCheck(t)})).next((function(){return n.Mn.pn(t,r)}))}))}(r.localStore,e)];case 2:return i=o.sent(),Ia(r,e,n),Oa(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),[4,ja(r,i)];case 3:return o.sent(),[3,6];case 4:return[4,Xr(o.sent())];case 5:return o.sent(),[3,6];case 6:return[2]}}))}))}function Ea(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i,o,s;return Object(a["c"])(this,(function(a){switch(a.label){case 0:ko((n=y(t)).remoteStore)||h("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,function(t){var e=y(t);return e.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(t){return e._n.getHighestUnacknowledgedBatchId(t)}))}(n.localStore)];case 2:return-1===(r=a.sent())?[2,void e.resolve()]:((i=n.Fo.get(r)||[]).push(e),n.Fo.set(r,i),[3,4]);case 3:return o=a.sent(),s=Wo(o,"Initialization of waitForPendingWrites() operation failed"),e.reject(s),[3,4];case 4:return[2]}}
2827))}))}function Oa(t,e){(t.Fo.get(e)||[]).forEach((function(t){t.resolve()})),t.Fo.delete(e)}function Ia(t,e,n){var r=y(t),i=r.xo[r.currentUser.toKey()];if(i){var o=i.get(e);o&&(n?o.reject(n):o.resolve(),i=i.remove(e)),r.xo[r.currentUser.toKey()]=i}}function Ta(t,e,n){void 0===n&&(n=null),t.sharedClientState.removeLocalQueryTarget(e);for(var r=0,i=t.Vo.get(e);r<i.length;r++){var o=i[r];t.Po.delete(o),n&&t.vo.Mo(o,n)}t.Vo.delete(e),t.isPrimaryClient&&t.No.Zn(e).forEach((function(e){t.No.containsKey(e)||Sa(t,e)}))}function Sa(t,e){t.So.delete(e.path.canonicalString());var n=t.Do.get(e);null!==n&&(Eo(t.remoteStore,n),t.Do=t.Do.remove(e),t.Co.delete(n),xa(t))}function ka(t,e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];o instanceof sa?(t.No.addReference(o.key,e),Ca(t,o)):o instanceof ua?(h("SyncEngine","Document no longer in limbo: "+o.key),t.No.removeReference(o.key,e),t.No.containsKey(o.key)||Sa(t,o.key)):g()}}function Ca(t,e){var n=e.key,r=n.path.canonicalString();t.Do.get(n)||t.So.has(r)||(h("SyncEngine","New document in limbo: "+n),t.So.add(r),xa(t))}function xa(t){for(;t.So.size>0&&t.Do.size<t.maxConcurrentLimboResolutions;){var e=t.So.values().next().value;t.So.delete(e);var n=new W(j.fromString(e)),r=t.ko.next();t.Co.set(r,new fa(n)),t.Do=t.Do.insert(n,r),_o(t.remoteStore,new gr(Mt(jt(n.path)),r,2,s.o))}}function ja(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var r,i,o,s;return Object(a["c"])(this,(function(u){switch(u.label){case 0:return r=y(t),i=[],o=[],s=[],r.Po.isEmpty()?[3,3]:(r.Po.forEach((function(t,a){s.push(r.$o(a,e,n).then((function(t){if(t){r.isPrimaryClient&&r.sharedCl
2827ientState.updateQueryState(a.targetId,t.fromCache?"not-current":"current"),i.push(t);var e=yi.Pn(a.targetId,t);o.push(e)}})))})),[4,Promise.all(s)]);case 1:return u.sent(),r.vo._r(i),[4,function(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i,o,s,u,c,l,f;return Object(a["c"])(this,(function(a){switch(a.label){case 0:n=y(t),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(t){return nr.forEach(e,(function(e){return nr.forEach(e.bn,(function(r){return n.persistence.referenceDelegate.addReference(t,e.targetId,r)})).next((function(){return nr.forEach(e.vn,(function(r){return n.persistence.referenceDelegate.removeReference(t,e.targetId,r)}))}))}))}))];case 2:return a.sent(),[3,4];case 3:if(!sr(r=a.sent()))throw r;return h("LocalStore","Failed to update sequence numbers: "+r),[3,4];case 4:for(i=0,o=e;i<o.length;i++)s=o[i],u=s.targetId,s.fromCache||(c=n.Fn.get(u),l=c.snapshotVersion,f=c.withLastLimboFreeSnapshotVersion(l),n.Fn=n.Fn.insert(u,f));return[2]}}))}))}(r.localStore,o)];case 2:u.sent(),u.label=3;case 3:return[2]}}
2827))}))}function Aa(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r;return Object(a["c"])(this,(function(i){switch(i.label){case 0:return(n=y(t)).currentUser.isEqual(e)?[3,3]:(h("SyncEngine","User change. New user:",e.toKey()),[4,Ei(n.localStore,e)]);case 1:return r=i.sent(),n.currentUser=e,function(t,e){t.Fo.forEach((function(t){t.forEach((function(t){t.reject(new c(u.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))}))})),t.Fo.clear()}(n),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),[4,ja(n,r.Ln)];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))}function Na(t,e){var n=y(t),r=n.Co.get(e);if(r&&r.bo)return qe().add(r.key);var i=qe(),o=n.Vo.get(e);if(!o)return i;for(var a=0,s=o;a<s.length;a++){var u=s[a],c=n.Po.get(u);i=i.unionWith(c.view.wo)}return i}function Pa(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i;return Object(a["c"])(this,(function(o){switch(o.label){case 0:return[4,ji((n=y(t)).localStore,e.query,!0)];case 1:return r=o.sent(),i=e.view.Ao(r),[2,(n.isPrimaryClient&&ka(n,e.targetId,i.To),i)]}}))}))}function Ra(t){return Object(a["a"])(this,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){return[2,Ni((e=y(t)).localStore).then((function(t){return ja(e,t)}))]}))}))}function Da(t,e,n,r){return Object(a["a"])(this,void 0,void 0,(function(){var i,o;return Object(a["c"])(this,(function(a){switch(a.label){case 0:return[4,function(t,e){var n=y(t),r=y(n._n);return n.persistence.runTransaction("Lookup mutation documents","readonly",(function(t){return r.jt(t,e).next((function(e){return e?n.Mn.pn(t,e):nr.resolve(null)}))}))}((i=y(t)).localStore,e)];case 1:return null===(o=a.sent())?[3,6]:"pending"!==n?[3,3]:[4,Ro(i.remoteStore)];case 2:return a.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(Ia(i,e,r||null),Oa(i,e),function(t,e){y(y(t)._n).Gt(e)}(i.localStore,e)):g(),a.label=4;case 4:return[4,ja(i,o)];case 5:return a.sent(),[3,7];case 6:h("SyncEngine","Cannot apply mutation batch with id: "+e),a.label=7;case 7:return[2]}}
2827))}))}function La(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i,o,s,u,c,l;return Object(a["c"])(this,(function(a){switch(a.label){case 0:return Ba(n=y(t)),Va(n),!0!==e||!0===n.Oo?[3,3]:(r=n.sharedClientState.getAllActiveQueryTargets(),[4,Ma(n,r.toArray())]);case 1:return i=a.sent(),n.Oo=!0,[4,$o(n.remoteStore,!0)];case 2:for(a.sent(),o=0,s=i;o<s.length;o++)u=s[o],_o(n.remoteStore,u);return[3,7];case 3:return!1!==e||!1===n.Oo?[3,7]:(c=[],l=Promise.resolve(),n.Vo.forEach((function(t,e){n.sharedClientState.isLocalQueryTarget(e)?c.push(e):l=l.then((function(){return Ta(n,e),xi(n.localStore,e,!0)})),Eo(n.remoteStore,e)})),[4,l]);case 4:return a.sent(),[4,Ma(n,c)];case 5:return a.sent(),function(t){var e=y(t);e.Co.forEach((function(t,n){Eo(e.remoteStore,n)})),e.No.ts(),e.Co=new Map,e.Do=new Ce(W.comparator)}(n),n.Oo=!1,[4,$o(n.remoteStore,!1)];case 6:a.sent(),a.label=7;case 7:return[2]}}))}))}function Ma(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i,o,s,u,c,l,f,h,d,p,v,g;return Object(a["c"])(this,(function(a){switch(a.label){case 0:n=y(t),r=[],i=[],o=0,s=e,a.label=1;case 1:return o<s.length?(u=s[o],c=void 0,(l=n.Vo.get(u))&&0!==l.length?[4,Ci(n.localStore,Mt(l[0]))]:[3,7]):[3,13];case 2:c=a.sent(),f=0,h=l,a.label=3;case 3:return f<h.length?(d=h[f],p=n.Po.get(d),[4,Pa(n,p)]):[3,6];case 4:(v=a.sent()).snapshot&&i.push(v.snapshot),a.label=5;case 5:return f++,[3,3];case 6:return[3,11];case 7:return[4,Ai(n.localStore,u)];case 8:return g=a.sent(),[4,Ci(n.localStore,g)];case 9:return c=a.sent(),[4,pa(n,Fa(g),u,!1)];case 10:a.sent(),a.label=11;case 11:r.push(c),a.label=12;case 12:return o++,[3,1];case 13:return[2,(n.vo._r(i),r)]}}))}))}function Fa(t){return xt(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)}function Ua(t){var e=y(t);return y(y(e.localStore).persistence).fn()}function qa(t,e,n,r){return Object(a["a"])(this,void 0,void 0,(function(){var i,o,s;return Object(a["c"])(this,(function(a){switch(a.label){case 0:return(i=y(t)).Oo?(h("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!i.Vo.has(e))return[3,8];switch(n){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,Ni(i.localStore)];case 3:return o=a.sent(),s=Ve.createSynthesizedRemoteEventForCurrentChange(e,"current"===n),[4,ja(i,o,s)];case 4:return a.sent(),[3,8];case 5:return[4,xi(i.localStore,e,!0)];case 6:return a.sent(),Ta(i,e,r),[3,8];case 7:g(),a.label=8;case 8:return[2]}}
2827))}))}function $a(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var r,i,o,s,u,c,l,f,d,p;return Object(a["c"])(this,(function(v){switch(v.label){case 0:if(!(r=Ba(t)).Oo)return[3,10];i=0,o=e,v.label=1;case 1:return i<o.length?(s=o[i],r.Vo.has(s)?(h("SyncEngine","Adding an already active target "+s),[3,5]):[4,Ai(r.localStore,s)]):[3,6];case 2:return u=v.sent(),[4,Ci(r.localStore,u)];case 3:return c=v.sent(),[4,pa(r,Fa(u),c.targetId,!1)];case 4:v.sent(),_o(r.remoteStore,c),v.label=5;case 5:return i++,[3,1];case 6:l=function(t){return Object(a["c"])(this,(function(e){switch(e.label){case 0:return r.Vo.has(t)?[4,xi(r.localStore,t,!1).then((function(){Eo(r.remoteStore,t),Ta(r,t)})).catch(Xr)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))},f=0,d=n,v.label=7;case 7:return f<d.length?(p=d[f],[5,l(p)]):[3,10];case 8:v.sent(),v.label=9;case 9:return f++,[3,7];case 10:return[2]}}))}))}function Ba(t){var e=y(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=ma.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=Na.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=ba.bind(null,e),e.vo._r=Zo.bind(null,e.eventManager),e.vo.Mo=ta.bind(null,e.eventManager),e}function Va(t){var e=y(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=wa.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=_a.bind(null,e),e}function Ka(t,e,n){var r=y(t);(function(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var r,i,o,s,u,c;return Object(a["c"])(this,(function(a){switch(a.label){case 0:return a.trys.push([0,14,,15]),[4,e.getMetadata()];case 1:return r=a.sent(),[4,function(t,e){var n=y(t),r=on(e.createTime);return n.persistence.runTransaction("hasNewerBundle","readonly",(function(t){return n.Qe.getBundleMetadata(t,e.id)})).then((function(t){return!!t&&t.createTime.compareTo(r)>=0}))}(t.localStore,r)];case 2:return a.sent()?[4,e.close()]:[3,4];case 3:return[2,(a.sent(),void n._completeWith(function(t){return{taskState:"Success",documentsLoaded:t.totalDocuments,bytesLoaded:t.totalBytes,totalDocuments:t.totalDocuments,totalBytes:t.totalBytes}}(r)))];case 4:return n._updateProgress(aa(r)),i=new oa(r,t.localStore,e.R),[4,e.Lo()];case 5:o=a.sent(),a.label=6;case 6:return o?[4,i.oo(o)]:[3,10];case 7:return(s=a.sent())&&n._updateProgress(s),[4,e.Lo()];case 8:o=a.sent(),a.label=9;case 9:return[3,6];case 10:return[4,i.complete()];case 11:return u=a.sent(),[4,ja(t,u.wn,void 0)];case 12:return a.sent(),[4,function(t,e){var n=y(t);return n.persistence.runTransaction("Save bundle","readwrite",(function(t){return n.Qe.saveBundleMetadata(t,e)}))}(t.localStore,r)];case 13:return a.sent(),n._completeWith(u.progress),[3,15];case 14:return p("SyncEngine","Loading bundle failed with "+(c=a.sent())),n._failWith(c),[3,15];case 15:return[2]}}
2827))}))}
2828/**
2829 * @license
2830 * Copyright 2020 Google LLC
2831 *
2832 * Licensed under the Apache License, Version 2.0 (the "License");
2833 * you may not use this file except in compliance with the License.
2834 * You may obtain a copy of the License at
2835 *
2836 *   http://www.apache.org/licenses/LICENSE-2.0
2837 *
2838 * Unless required by applicable law or agreed to in writing, software
2839 * distributed under the License is distributed on an "AS IS" BASIS,
2840 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2841 * See the License for the specific language governing permissions and
2842 * limitations under the License.
2843 */)(r,e,n).then((function(){r.sharedClientState.notifyBundleLoaded()}))}var Wa=function(){function t(){this.synchronizeTabs=!1}return t.prototype.initialize=function(t){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){switch(e.label){case 0:return this.R=lo(t.databaseInfo.databaseId),this.sharedClientState=this.Bo(t),this.persistence=this.qo(t),[4,this.persistence.start()];case 1:return e.sent(),this.gcScheduler=this.Uo(t),this.localStore=this.Qo(t),[2]}}))}))},t.prototype.Uo=function(t){return null},t.prototype.Qo=function(t){return _i(this.persistence,new bi,t.initialUser,this.R)},t.prototype.qo=function(t){return new Vi(Wi.bs,this.R)},t.prototype.Bo=function(t){return new no},t.prototype.terminate=function(){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(t){switch(t.label){case 0:return this.gcScheduler&&this.gcScheduler.stop(),[4,this.sharedClientState.shutdown()];case 1:return t.sent(),[4,this.persistence.shutdown()];case 2:return t.sent(),[2]}}))}))},t}(),za=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).Ko=e,i.cacheSizeBytes=n,i.forceOwnership=r,i.synchronizeTabs=!1,i}return Object(a["b"])(e,t),e.prototype.initialize=function(e){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(n){switch(n.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return n.sent(),[4,Pi(this.localStore)];case 2:return n.sent(),[4,this.Ko.initialize(this,e)];case 3:return n.sent(),[4,Va(this.Ko.syncEngine)];case 4:return n.sent(),[4,Ro(this.Ko.remoteStore)];case 5:return n.sent(),[2]}}))}))},e.prototype.Qo=function(t){return _i(this.persistence,new bi,t.initialUser,this.R)},e.prototype.Uo=function(t){var e=this.persistence.referenceDelegate.garbageCollector;return new Jr(e,t.asyncQueue)},e.prototype.qo=function(t){var e=vi(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?Lr.withCacheSize(this.cacheSizeBytes):Lr.DEFAULT;return new hi(this.synchronizeTabs,e,t.clientId,n,t.asyncQueue,uo(),co(),this.R,this.sharedClientState,!!this.forceOwnership)},e.prototype.Bo=function(t){return new no},e}(Wa),Ha=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n,!1)||this).Ko=e,r.cacheSizeBytes=n,r.synchronizeTabs=!0,r}return Object(a["b"])(e,t),e.prototype.initialize=function(e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r=this;return Object(a["c"])(this,(function(i){switch(i.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return i.sent(),n=this.Ko.syncEngine,this.sharedClientState instanceof eo?(this.sharedClientState.syncEngine={ui:Da.bind(null,n),ai:qa.bind(null,n),hi:$a.bind(null,n),fn:Ua.bind(null,n),ci:Ra.bind(null,n)},[4,this.sharedClientState.start()]):[3,3];case 2:i.sent(),i.label=3;case 3:return[4,this.persistence.He((function(t){return Object(a["a"])(r,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){switch(e.label){case 0:return[4,La(this.Ko.syncEngine,t)];case 1:return e.sent(),this.gcScheduler&&(t&&!this.gcScheduler.started?this.gcScheduler.start(this.localStore):t||this.gcScheduler.stop()),[2]}}))}))}))];case 4:return i.sent(),[2]}}))}))},e.prototype.Bo=function(t){var e=uo();if(!eo.yt(e))throw new c(u.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=vi(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey);return new eo(e,t.asyncQueue,n,t.clientId,t.initialUser)},e}(za),Ga=function(){function t(){}return t.prototype.initialize=function(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n=this;return Object(a["c"])(this,(function(r){switch(r.label){case 0:return this.localStore?[3,2]:(this.localStore=t.localStore,this.sharedCl
2843ientState=t.sharedClientState,this.datastore=this.createDatastore(e),this.remoteStore=this.createRemoteStore(e),this.eventManager=this.createEventManager(e),this.syncEngine=this.createSyncEngine(e,!t.synchronizeTabs),this.sharedClientState.onlineStateHandler=function(t){return ya(n.syncEngine,t,1)},this.remoteStore.remoteSyncer.handleCredentialChange=Aa.bind(null,this.syncEngine),[4,$o(this.remoteStore,this.syncEngine.isPrimaryClient)]);case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},t.prototype.createEventManager=function(t){return new Yo},t.prototype.createDatastore=function(t){var e,n=lo(t.databaseInfo.databaseId),r=(e=t.databaseInfo,new so(e));return function(t,e,n){return new go(t,e,n)}(t.credentials,r,n)},t.prototype.createRemoteStore=function(t){var e,n,r,i,o,a=this;return e=this.localStore,n=this.datastore,r=t.asyncQueue,i=function(t){return ya(a.syncEngine,t,0)},o=io.yt()?new io:new ro,new yo(e,n,r,i,o)},t.prototype.createSyncEngine=function(t,e){return function(t,e,n,r,i,o,a){var s=new ha(t,e,n,r,i,o);return a&&(s.Oo=!0),s}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,t.initialUser,t.maxConcurrentLimboResolutions,e)},t.prototype.terminate=function(){return function(t){return Object(a["a"])(this,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:return e=y(t),h("RemoteStore","RemoteStore shutting down."),e.$r.add(5),[4,wo(e)];case 1:return n.sent(),e.Lr.shutdown(),e.Br.set("Unknown"),[2]}}))}))}(this.remoteStore)},t}();
2844/**
2845 * @license
2846 * Copyright 2020 Google LLC
2847 *
2848 * Licensed under the Apache License, Version 2.0 (the "License");
2849 * you may not use this file except in compliance with the License.
2850 * You may obtain a copy of the License at
2851 *
2852 *   http://www.apache.org/licenses/LICENSE-2.0
2853 *
2854 * Unless required by applicable law or agreed to in writing, software
2855 * distributed under the License is distributed on an "AS IS" BASIS,
2856 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2857 * See the License for the specific language governing permissions and
2858 * limitations under the License.
2859 */function Xa(t,e){void 0===e&&(e=10240);var n=0;return{read:function(){return Object(a["a"])(this,void 0,void 0,(function(){var r;return Object(a["c"])(this,(function(i){return n<t.byteLength?(r={value:t.slice(n,n+e),done:!1},[2,(n+=e,r)]):[2,{done:!0}]}))}))},cancel:function(){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(t){return[2]}))}))},releaseLock:function(){},closed:Promise.reject("unimplemented")}}
2860/**
2861 * @license
2862 * Copyright 2020 Google LLC
2863 *
2864 * Licensed under the Apache License, Version 2.0 (the "License");
2865 * you may not use this file except in compliance with the License.
2866 * You may obtain a copy of the License at
2867 *
2868 *   http://www.apache.org/licenses/LICENSE-2.0
2869 *
2870 * Unless required by applicable law or agreed to in writing, software
2871 * distributed under the License is distributed on an "AS IS" BASIS,
2872 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2873 * See the License for the specific language governing permissions and
2874 * limitations under the License.
2875 */
2876/**
2877 * @license
2878 * Copyright 2017 Google LLC
2879 *
2880 * Licensed under the Apache License, Version 2.0 (the "License");
2881 * you may not use this file except in compliance with the License.
2882 * You may obtain a copy of the License at
2883 *
2884 *   http://www.apache.org/licenses/LICENSE-2.0
2885 *
2886 * Unless required by applicable law or agreed to in writing, software
2887 * distributed under the License is distributed on an "AS IS" BASIS,
2888 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2889 * See the License for the specific language governing permissions and
2890 * limitations under the License.
2891 */var Ya=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.observer.next&&this.jo(this.observer.next,t)},t.prototype.error=function(t){this.observer.error?this.jo(this.observer.error,t):console.error("Uncaught Error in snapshot listener:",t)},t.prototype.Wo=function(){this.muted=!0}
2891,t.prototype.jo=function(t,e){var n=this;this.muted||setTimeout((function(){n.muted||t(e)}),0)},t}(),Qa=function(){function t(t,e){var n=this;this.Go=t,this.R=e,this.metadata=new er,this.buffer=new Uint8Array,this.zo=new TextDecoder("utf-8"),this.Ho().then((function(t){t&&t.io()?n.metadata.resolve(t.payload.metadata):n.metadata.reject(new Error("The first element of the bundle is not a metadata, it is\n             "+JSON.stringify(null==t?void 0:t.payload)))}),(function(t){return n.metadata.reject(t)}))}return t.prototype.close=function(){return this.Go.cancel()},t.prototype.getMetadata=function(){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(t){return[2,this.metadata.promise]}))}))},t.prototype.Lo=function(){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(t){switch(t.label){case 0:return[4,this.getMetadata()];case 1:return[2,(t.sent(),this.Ho())]}}))}))},t.prototype.Ho=function(){return Object(a["a"])(this,void 0,void 0,(function(){var t,e,n,r;return Object(a["c"])(this,(function(i){switch(i.label){case 0:return[4,this.Jo()];case 1:return null===(t=i.sent())?[2,null]:(e=this.zo.decode(t),n=Number(e),isNaN(n)&&this.Yo("length string ("+e+") is not valid number"),[4,this.Xo(n)]);case 2:return r=i.sent(),[2,new ra(JSON.parse(r),t.length+n)]}}))}))},t.prototype.Zo=function(){return this.buffer.findIndex((function(t){return t==="{".charCodeAt(0)}))},t.prototype.Jo=function(){return Object(a["a"])(this,void 0,void 0,(function(){var t,e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:return this.Zo()<0?[4,this.tc()]:[3,3];case 1:if(n.sent())return[3,3];n.label=2;case 2:return[3,0];case 3:return 0===this.buffer.length?[2,null]:((t=this.Zo())<0&&this.Yo("Reached the end of bundle when a length string is expected."),e=this.buffer.slice(0,t),[2,(this.buffer=this.buffer.slice(t),e)])}}))}))},t.prototype.Xo=function(t){return Object(a["a"])(this,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:return this.buffer.length<t?[4,this.tc()]:[3,3];case 1:n.sent()&&this.Yo("Reached the end of bundle when more is expected."),n.label=2;case 2:return[3,0];case 3:return e=this.zo.decode(this.buffer.slice(0,t)),[2,(this.buffer=this.buffer.slice(t),e)]}}))}))},t.prototype.Yo=function(t){throw this.Go.cancel(),new Error("Invalid bundle format: "+t)},t.prototype.tc=function(){return Object(a["a"])(this,void 0,void 0,(function(){var t,e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:return[4,this.Go.read()];case 1:return(t=n.sent()).done||((e=new Uint8Array(this.buffer.length+t.value.length)).set(this.buffer),e.set(t.value,this.buffer.length),this.buffer=e),[2,t.done]}}))}))},t}(),Ja=function(){function t(t){this.datastore=t,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}return t.prototype.lookup=function(t){return Object(a["a"])(this,void 0,void 0,(function(){var e,n=this;return Object(a["c"])(this,(function(r){switch(r.label){case 0:if(this.ensureCommitNotCalled(),this.mutations.length>0)throw new c(u.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i,o,s,u;return Object(a["c"])(this,(function(a){switch(a.label){case 0:return n=y(t),r=hn(n.R)+"/documents",i={documents:e.map((function(t){return un(n.R,t)}))},[4,n.Oi("BatchGetDocuments",r,i)];case 1:return o=a.sent(),s=new Map,o.forEach((function(t){var e=function(t,e){return"found"in e?function(t,e){m(!!e.found),e.found.name,e.found.updateTime;var n=cn(t,e.found.name),r=on(e.found.updateTime),i=new ot({mapValue:{fields:e.found.fields}});return st.newFoundDocument(n,r,i)}(t,e):"missing"in e?function(t,e){m(!!e.missing),m(!!e.readTime);var n=cn(t,e.missing),r=on(e.readTime);return st.newNoDocument(n,r)}(t,e):g()}(n.R,t);s.set(e.key.toString(),e)})),u=[],[2,(e.forEach((function(t){var e=s.get(t.toString());m(!!e),u.push(e)})),u)]}}))}))}(this.datastore,t)];
2891case 1:return[2,((e=r.sent()).forEach((function(t){return n.recordVersion(t)})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.toMutation(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.update=function(t,e){try{this.write(e.toMutation(t,this.preconditionForUpdate(t)))}catch(t){this.lastWriteError=t}this.writtenDocs.add(t.toString())},t.prototype.delete=function(t){this.write(new Oe(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.commit=function(){return Object(a["a"])(this,void 0,void 0,(function(){var t,e=this;return Object(a["c"])(this,(function(n){switch(n.label){case 0:if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;return t=this.readVersions,this.mutations.forEach((function(e){t.delete(e.key.toString())})),t.forEach((function(t,n){var r=W.fromPath(n);e.mutations.push(new Ie(r,e.precondition(r)))})),[4,function(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i;return Object(a["c"])(this,(function(o){switch(o.label){case 0:return n=y(t),r=hn(n.R)+"/documents",i={writes:e.map((function(t){return gn(n.R,t)}))},[4,n.Ni("Commit",r,i)];case 1:return o.sent(),[2]}}))}))}(this.datastore,this.mutations)];case 1:return n.sent(),this.committed=!0,[2]}}))}))},t.prototype.recordVersion=function(t){var e;if(t.isFoundDocument())e=t.version;else{if(!t.isNoDocument())throw g();e=T.min()}var n=this.readVersions.get(t.key.toString());if(n){if(!e.isEqual(n))throw new c(u.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(t.key.toString(),e)},t.prototype.precondition=function(t){var e=this.readVersions.get(t.toString());return!this.writtenDocs.has(t.toString())&&e?ue.updateTime(e):ue.none()},t.prototype.preconditionForUpdate=function(t){var e=this.readVersions.get(t.toString());if(!this.writtenDocs.has(t.toString())&&e){if(e.isEqual(T.min()))throw new c(u.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ue.updateTime(e)}return ue.exists(!0)},t.prototype.write=function(t){this.ensureCommitNotCalled(),this.mutations.push(t)},t.prototype.ensureCommitNotCalled=function(){},t}(),Za=function(){function t(t,e,n,r){this.asyncQueue=t,this.datastore=e,this.updateFunction=n,this.deferred=r,this.ec=5,this.Zi=new fo(this.asyncQueue,"transaction_retry")}return t.prototype.run=function(){this.nc()},t.prototype.nc=function(){var t=this;this.Zi.ji((function(){return Object(a["a"])(t,void 0,void 0,(function(){var t,e,n=this;return Object(a["c"])(this,(function(r){return t=new Ja(this.datastore),(e=this.sc(t))&&e.then((function(e){n.asyncQueue.enqueueAndForget((function(){return t.commit().then((function(){n.deferred.resolve(e)})).catch((function(t){n.ic(t)}))}))})).catch((function(t){n.ic(t)})),[2]}))}))}))},t.prototype.sc=function(t){try{var e=this.updateFunction(t);return!B(e)&&e.catch&&e.then?e:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.deferred.reject(t),null}},t.prototype.ic=function(t){var e=this;this.ec>0&&this.rc(t)?(this.ec-=1,this.asyncQueue.enqueueAndForget((function(){return e.nc(),Promise.resolve()}))):this.deferred.reject(t)},t.prototype.rc=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!Se(e)}return!1},t}(),ts=function(){function t(t,e,n){var r=this;this.credentials=t,this.asyncQueue=e,this.databaseInfo=n,this.user=zi.UNAUTHENTICATED,this.clientId=w.u(),this.credentialListener=function(){},this.receivedInitialUser=new er,this.credentials.setChangeListener((function(t){h("FirestoreClient","Received user=",t.uid),r.user=t,r.credentialListener(t),r.receivedInitialUser.resolve()}))}return t.prototype.getConfiguration=function(){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(t){switch(t.label){case 0:return[4,this.receivedInitialUser.promise];case 1:return[2,(t.sent(),{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,credentials:this.credentials,initialUser:this.user,maxConcurrentLimboResolutions:100})]}}))}))},t.prototype.setCredentialChangeListener=function(t){var e=this;this.credentialListener=t,this.receivedInitialUser.promise.then((function(){return e.credentialListener(e.user)}))},t.prototype.verifyNotTerminated=function(){if(this.asyncQueue.isShuttingDown)throw new c(u.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.terminate=function(){var t=this;this.asyncQueue.enterRestrictedMode();var e=new er;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((function(){return Object(a["a"])(t,void 0,void 0,(function(){var t,n;return Object(a["c"])(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),this.onlineComponents?[4,this.onlineComponents.terminate()]:[3,2];case 1:r.sent(),r.label=2;case 2:return this.offlineComponents?[4,this.offlineComponents.terminate()]:[3,4];case 3:r.sent(),r.label=4;case 4:return this.credentials.removeChangeListener(),e.resolve(),[3,6];case 5:return t=r.sent(),n=Wo(t,"Failed to shutdown persistence"),e.reject(n),[3,6];case 6:return[2]}}
2891))}))})),e.promise},t}();
2892/**
2893 * @license
2894 * Copyright 2020 Google LLC
2895 *
2896 * Licensed under the Apache License, Version 2.0 (the "License");
2897 * you may not use this file except in compliance with the License.
2898 * You may obtain a copy of the License at
2899 *
2900 *   http://www.apache.org/licenses/LICENSE-2.0
2901 *
2902 * Unless required by applicable law or agreed to in writing, software
2903 * distributed under the License is distributed on an "AS IS" BASIS,
2904 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2905 * See the License for the specific language governing permissions and
2906 * limitations under the License.
2907 */function es(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r,i=this;return Object(a["c"])(this,(function(o){switch(o.label){case 0:return t.asyncQueue.verifyOperationInProgress(),h("FirestoreClient","Initializing OfflineComponentProvider"),[4,t.getConfiguration()];case 1:return n=o.sent(),[4,e.initialize(n)];case 2:return o.sent(),r=n.initialUser,t.setCredentialChangeListener((function(n){r.isEqual(n)||(r=n,t.asyncQueue.enqueueRetryable((function(){return Object(a["a"])(i,void 0,void 0,(function(){return Object(a["c"])(this,(function(t){switch(t.label){case 0:return[4,Ei(e.localStore,n)];case 1:return t.sent(),[2]}}))}))})))})),e.persistence.setDatabaseDeletedListener((function(){return t.terminate()})),t.offlineComponents=e,[2]}}))}))}function ns(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r;return Object(a["c"])(this,(function(i){switch(i.label){case 0:return t.asyncQueue.verifyOperationInProgress(),[4,rs(t)];case 1:return n=i.sent(),h("FirestoreClient","Initializing OnlineComponentProvider"),[4,t.getConfiguration()];case 2:return r=i.sent(),[4,e.initialize(n,r)];case 3:return i.sent(),t.setCredentialChangeListener((function(n){return t.asyncQueue.enqueueRetryable((function(){return function(t,e){return Object(a["a"])(this,void 0,void 0,(function(){var n,r;return Object(a["c"])(this,(function(i){switch(i.label){case 0:return(n=y(t)).asyncQueue.verifyOperationInProgress(),h("RemoteStore","RemoteStore received new credentials"),r=ko(n),n.$r.add(3),[4,wo(n)];case 1:return i.sent(),r&&n.Br.set("Unknown"),[4,n.remoteSyncer.handleCredentialChange(e)];case 2:return i.sent(),n.$r.delete(3),[4,bo(n)];case 3:return i.sent(),[2]}}))}))}(e.remoteStore,n)}))})),t.onlineComponents=e,[2]}}))}))}function rs(t){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){switch(e.label){case 0:return t.offlineComponents?[3,2]:(h("FirestoreClient","Using default OfflineComponentProvider"),[4,es(t,new Wa)]);case 1:e.sent(),e.label=2;case 2:return[2,t.offlineComponents]}}))}))}function is(t){return Object(a["a"])(this,void 0,void 0,(function(){return Object(a["c"])(this,(function(e){switch(e.label){case 0:return t.onlineComponents?[3,2]:(h("FirestoreClient","Using default OnlineComponentProvider"),[4,ns(t,new Ga)]);case 1:e.sent(),e.label=2;case 2:return[2,t.onlineComponents]}}))}))}function os(t){return rs(t).then((function(t){return t.persistence}))}function as(t){return rs(t).then((function(t){return t.localStore}))}function ss(t){return is(t).then((function(t){return t.remoteStore}))}function us(t){return is(t).then((function(t){return t.syncEngine}))}function cs(t){return Object(a["a"])(this,void 0,void 0,(function(){var e,n;return Object(a["c"])(this,(function(r){switch(r.label){case 0:return[4,is(t)];case 1:return e=r.sent(),[2,((n=e.eventManager).onListen=da.bind(null,e.syncEngine),n.onUnlisten=va.bind(null,e.syncEngine),n)]}}))}))}function ls(t,e,n){var r=this;void 0===n&&(n={});var i=new er;return t.asyncQueue.enqueueAndForget((function(){return Object(a["a"])(r,void 0,void 0,(function(){var r;return Object(a["c"])(this,(function(o){switch(o.label){case 0:return r=function(t,e,n,r,i){var o=new Ya({next:function(o){e.enqueueAndForget((function(){return Jo(t,a)}));var s=o.docs.has(n);!s&&o.fromCache?i.reject(new c(u.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&o.fromCache&&r&&"server"===r.source?i.reject(new c(u.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(o)},error:function(t){return i.reject(t)}}),a=new na(jt(n.path),o,{includeMetadataChanges:!0,so:!0});return Qo(t,a)},[4,cs(t)];case 1:return[2,r.apply(void 0,[o.sent(),t.asyncQueue,e,n,i])]}}))}))})),i.promise}function fs(t,e,n){var r=this;void 0===n&&(n={});var i=new er;return t.asyncQueue.enqueueAndForget((function(){return Object(a["a"])(r,void 0,void 0,(function(){var r;return Object(a["c"])(this,(function(o){switch(o.label){case 0:return r=function(t,e,n,r,i){var o=new Ya({next:function(n){e.enqueueAndForget((function(){return Jo(t,a)})),n.fromCache&&"server"===r.source?i.reject(new c(u.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(t){return i.reject(t)}}),a=new na(n,o,{includeMetadataChanges:!0,so:!0});return Qo(t,a)},[4,cs(t)];case 1:return[2,r.apply(void 0,[o.sent(),t.asyncQueue,e,n,i])]}}))}))})),i.promise}var hs=function(t,e,n,r,i,o,a){this.databaseId=t,this.appId=e,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=a},ds=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"isDefaultDatabase",{get:function(){return"(default)"===this.database}
2907,enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t}(),ps=new Map,vs=function(t,e){this.user=e,this.type="OAuth",this.authHeaders={},this.authHeaders.Authorization="Bearer "+t},gs=function(){function t(){this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t){this.changeListener=t,t(zi.UNAUTHENTICATED)},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),ms=function(){function t(t){this.token=t,this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(this.token)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t){this.changeListener=t,t(this.token.user)},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),ys=function(){function t(t){var e=this;this.oc=null,this.currentUser=zi.UNAUTHENTICATED,this.receivedInitialUser=!1,this.cc=0,this.changeListener=null,this.forceRefresh=!1,this.oc=function(){e.cc++,e.currentUser=e.uc(),e.receivedInitialUser=!0,e.changeListener&&e.changeListener(e.currentUser)},this.cc=0,this.auth=t.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.oc):(this.oc(null),t.get().then((function(t){e.auth=t,e.oc&&e.auth.addAuthTokenListener(e.oc)}),(function(){})))}return t.prototype.getToken=function(){var t=this,e=this.cc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return t.cc!==e?(h("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(m("string"==typeof n.accessToken),new vs(n.accessToken,t.currentUser)):null})):Promise.resolve(null)},t.prototype.invalidateToken=function(){this.forceRefresh=!0},t.prototype.setChangeListener=function(t){this.changeListener=t,this.receivedInitialUser&&t(this.currentUser)},t.prototype.removeChangeListener=function(){this.auth&&this.auth.removeAuthTokenListener(this.oc),this.oc=null,this.changeListener=null},t.prototype.uc=function(){var t=this.auth&&this.auth.getUid();return m(null===t||"string"==typeof t),new zi(t)},t}(),bs=function(){function t(t,e,n){this.ac=t,this.hc=e,this.lc=n,this.type="FirstParty",this.user=zi.FIRST_PARTY}return Object.defineProperty(t.prototype,"authHeaders",{get:function(){var t={"X-Goog-AuthUser":this.hc},e=this.ac.auth.getAuthHeaderValueForFirstParty([]);return e&&(t.Authorization=e),this.lc&&(t["X-Goog-Iam-Authorization-Token"]=this.lc),t},enumerable:!1,configurable:!0}),t}(),ws=function(){function t(t,e,n){this.ac=t,this.hc=e,this.lc=n}return t.prototype.getToken=function(){return Promise.resolve(new bs(this.ac,this.hc,this.lc))},t.prototype.setChangeListener=function(t){t(zi.FIRST_PARTY)},t.prototype.removeChangeListener=function(){},t.prototype.invalidateToken=function(){},t}();
2908/**
2909 * @license
2910 * Copyright 2017 Google LLC
2911 *
2912 * Licensed under the Apache License, Version 2.0 (the "License");
2913 * you may not use this file except in compliance with the License.
2914 * You may obtain a copy of the License at
2915 *
2916 *   http://www.apache.org/licenses/LICENSE-2.0
2917 *
2918 * Unless required by applicable law or agreed to in writing, software
2919 * distributed under the License is distributed on an "AS IS" BASIS,
2920 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2921 * See the License for the specific language governing permissions and
2922 * limitations under the License.
2923 */function _s(t,e,n){if(!n)throw new c(u.INVALID_ARGUMENT,"Function "+t+"() cannot be called with an empty "+e+".")}function Es(t,e){if(void 0===e)return{merge:!1};if(void 0!==e.mergeFields&&void 0!==e.merge)throw new c(u.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function Os(t,e,n,r){if(!0===e&&!0===r)throw new c(u.INVALID_ARGUMENT,t+" and "+n+" cannot be used together.")}function Is(t){if(!W.isDocumentKey(t))throw new c(u.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t+" has "+t.length+".")}function Ts(t){if(W.isDocumentKey(t))throw new c(u.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t+" has "+t.length+".")}function Ss(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(t=t.substring(0,20)+"..."),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";var e=function(t){if(t.constructor){var e=/function\s+([^\s(]+)\s*\(/.exec(t.constructor.toString());if(e&&e.length>1)return e[1]}return null}(t);return e?"a custom "+e+" object":"an object"}return"function"==typeof t?"a function":g()}function ks(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new c(u.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=Ss(t);throw new c(u.INVALID_ARGUMENT,"Expected type '"+e.name+"', but it was: "+n)}return t}function Cs(t,e){if(e<=0)throw new c(u.INVALID_ARGUMENT,"Function "+t+"() requires a positive number, but it was: "+e+".")}
2924/**
2925 * @license
2926 * Copyright 2020 Google LLC
2927 *
2928 * Licensed under the Apache License, Version 2.0 (the "License");
2929 * you may not use this file except in compliance with the License.
2930 * You may obtain a copy of the License at
2931 *
2932 *   http://www.apache.org/licenses/LICENSE-2.0
2933 *
2934 * Unless required by applicable law or agreed to in writing, software
2935 * distributed under the License is distributed on an "AS IS" BASIS,
2936 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2937 * See the License for the specific language governing permissions and
2938 * limitations under the License.
2939 */var xs=function(){function t(t){var e;if(void 0===t.host){if(void 0!==t.ssl)throw new c(u.INVALID_ARGUMENT,"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===(e=t.ssl)||void 0===e||e;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,void 0===t.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==t.cacheSizeBytes&&t.cacheSizeBytes<1048576)throw new c(u.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,Os("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling)}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties},t}(),js=function(){function t(t,e){this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new xs({}),this._settingsFrozen=!1,t instanceof ds?(this._databaseId=t,this._credentials=new gs):(this._app=t,this._databaseId=function(t){if(!Object.prototype.hasOwnProperty.apply(t.options,["projectId"]))throw new c(u.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new ds(t.options.projectId)}(t),this._credentials=new ys(e))}return Object.defineProperty(t.prototype,"app",{get:function(){if(!this._app)throw new c(u.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initialized",{get:function(){return this._settingsFrozen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_terminated",{get:function(){return void 0!==this._terminateTask},enumerable:!1,configurable:!0}),t.prototype._setSettings=function(t){if(this._settingsFrozen)throw new c(u.FAILED_PRECONDITION,"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 xs(t),void 0!==t.credentials&&(this._credentials=function(t){if(!t)return new gs;switch(t.type){case"gapi":var e=t.client;return m(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new ws(e,t.sessionIndex||"0",t.iamToken||null);case"provider":return t.client;default:throw new c(u.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(t.credentials))},t.prototype._getSettings=function(){return this._settings},t.prototype._freezeSettings=function(){return this._settingsFrozen=!0,this._settings},t.prototype._delete=function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask},t.prototype.toJSON=function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}},t.prototype._terminate=function(){return t=this,(e=ps.get(t))&&(h("ComponentProvider","Removing Datastore"),ps.delete(t),e.terminate()),Promise.resolve();var t,e},t}(),As=function(){function t(t,e,n){this.converter=e,this._key=n,this.type="document",this.firestore=t}return Object.defineProperty(t.prototype,"_path",{get:function(){return this._key.path}
2939,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new Ps(this.firestore,this.converter,this._key.path.popLast())},enumerable:!1,configurable:!0}),t.prototype.withConverter=function(e){return new t(this.firestore,e,this._key)},t}(),Ns=function(){function t(t,e,n){this.converter=e,this._query=n,this.type="query",this.firestore=t}return t.prototype.withConverter=function(e){return new t(this.firestore,e,this._query)},t}(),Ps=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,jt(r))||this)._path=r,i.type="collection",i}return Object(a["b"])(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._path.popLast();return t.isEmpty()?null:new As(this.firestore,null,new W(t))},enumerable:!1,configurable:!0}),e.prototype.withConverter=function(t){return new e(this.firestore,t,this._path)},e}(Ns);
2940/**
2941 * @license
2942 * Copyright 2020 Google LLC
2943 *
2944 * Licensed under the Apache License, Version 2.0 (the "License");
2945 * you may not use this file except in compliance with the License.
2946 * You may obtain a copy of the License at
2947 *
2948 *   http://www.apache.org/licenses/LICENSE-2.0
2949 *
2950 * Unless required by applicable law or agreed to in writing, software
2951 * distributed under the License is distributed on an "AS IS" BASIS,
2952 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2953 * See the License for the specific language governing permissions and
2954 * limitations under the License.
2955 */function Rs(t,e){for(var n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];if(t=Object(r["q"])(t),_s("collection","path",e),t instanceof js)return Ts(n=j.fromString.apply(j,Object(a["d"])([e],i))),new Ps(t,null,n);if(!(t instanceof As||t instanceof Ps))throw new c(u.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return Ts(n=j.fromString.apply(j,Object(a["d"])([t.path],i)).child(j.fromString(e))),new Ps(t.firestore,null,n)}function Ds(t,e){for(var n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];if(t=Object(r["q"])(t),1===arguments.length&&(e=w.u()),_s("doc","path",e),t instanceof js)return Is(n=j.fromString.apply(j,Object(a["d"])([e],i))),new As(t,null,new W(n));if(!(t instanceof As||t instanceof Ps))throw new c(u.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return Is(n=t._path.child(j.fromString.apply(j,Object(a["d"])([e],i)))),new As(t.firestore,t instanceof Ps?t.converter:null,new W(n))}function Ls(t,e){return t=Object(r["q"])(t),e=Object(r["q"])(e),(t instanceof As||t instanceof Ps)&&(e instanceof As||e instanceof Ps)&&t.firestore===e.firestore&&t.path===e.path&&t.converter===e.converter}function Ms(t,e){return t=Object(r["q"])(t),e=Object(r["q"])(e),t instanceof Ns&&e instanceof Ns&&t.firestore===e.firestore&&Ut(t._query,e._query)&&t.converter===e.converter
2956/**
2957 * @license
2958 * Copyright 2020 Google LLC
2959 *
2960 * Licensed under the Apache License, Version 2.0 (the "License");
2961 * you may not use this file except in compliance with the License.
2962 * You may obtain a copy of the License at
2963 *
2964 *   http://www.apache.org/licenses/LICENSE-2.0
2965 *
2966 * Unless required by applicable law or agreed to in writing, software
2967 * distributed under the License is distributed on an "AS IS" BASIS,
2968 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2969 * See the License for the specific language governing permissions and
2970 * limitations under the License.
2971 */}var Fs=function(){function t(){var t=this;this.fc=Promise.resolve(),this.dc=[],this.wc=!1,this._c=[],this.mc=null,this.yc=!1,this.gc=[],this.Zi=new fo(this,"async_queue_retry"),this.Ec=function(){var e=co();e&&h("AsyncQueue","Visibility state changed to "+e.visibilityState),t.Zi.Gi()};var e=co();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Ec)}return Object.defineProperty(t.prototype,"isShuttingDown",{get:function(){return this.wc}
2971,enumerable:!1,configurable:!0}),t.prototype.enqueueAndForget=function(t){this.enqueue(t)},t.prototype.enqueueAndForgetEvenWhileRestricted=function(t){this.Tc(),this.Ic(t)},t.prototype.enterRestrictedMode=function(){if(!this.wc){this.wc=!0;var t=co();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Ec)}},t.prototype.enqueue=function(t){return this.Tc(),this.wc?new Promise((function(t){})):this.Ic(t)},t.prototype.enqueueRetryable=function(t){var e=this;this.enqueueAndForget((function(){return e.dc.push(t),e.Ac()}))},t.prototype.Ac=function(){return Object(a["a"])(this,void 0,void 0,(function(){var t,e=this;return Object(a["c"])(this,(function(n){switch(n.label){case 0:if(0===this.dc.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.dc[0]()];case 2:return n.sent(),this.dc.shift(),this.Zi.reset(),[3,4];case 3:if(!sr(t=n.sent()))throw t;return h("AsyncQueue","Operation failed with retryable error: "+t),[3,4];case 4:this.dc.length>0&&this.Zi.ji((function(){return e.Ac()})),n.label=5;case 5:return[2]}}
2971))}))},t.prototype.Ic=function(t){var e=this,n=this.fc.then((function(){return e.yc=!0,t().catch((function(t){throw e.mc=t,e.yc=!1,d("INTERNAL UNHANDLED ERROR: ",function(t){var e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+"\n"+t.stack),e}(t)),t})).then((function(t){return e.yc=!1,t}))}));return this.fc=n,n},t.prototype.enqueueAfterDelay=function(t,e,n){var r=this;this.Tc(),this.gc.indexOf(t)>-1&&(e=0);var i=Ko.createAndSchedule(this,t,e,n,(function(t){return r.Rc(t)}));return this._c.push(i),i},t.prototype.Tc=function(){this.mc&&g()},t.prototype.verifyOperationInProgress=function(){},t.prototype.bc=function(){return Object(a["a"])(this,void 0,void 0,(function(){var t;return Object(a["c"])(this,(function(e){switch(e.label){case 0:return[4,t=this.fc];case 1:e.sent(),e.label=2;case 2:if(t!==this.fc)return[3,0];e.label=3;case 3:return[2]}}))}))},t.prototype.vc=function(t){for(var e=0,n=this._c;e<n.length;e++)if(n[e].timerId===t)return!0;return!1},t.prototype.Pc=function(t){var e=this;return this.bc().then((function(){e._c.sort((function(t,e){return t.targetTimeMs-e.targetTimeMs}));for(var n=0,r=e._c;n<r.length;n++){var i=r[n];if(i.skipDelay(),"all"!==t&&i.timerId===t)break}return e.bc()}))},t.prototype.Vc=function(t){this.gc.push(t)},t.prototype.Rc=function(t){var e=this._c.indexOf(t);this._c.splice(e,1)},t}();function Us(t){return function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=t,r=0,i=["next","error","complete"];r<i.length;r++){var o=i[r];if(o in n&&"function"==typeof n[o])return!0}return!1}(t)}var qs=function(){function t(){this._progressObserver={},this._taskCompletionResolver=new er,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}return t.prototype.onProgress=function(t,e,n){this._progressObserver={next:t,error:e,complete:n}},t.prototype.catch=function(t){return this._taskCompletionResolver.promise.catch(t)},t.prototype.then=function(t,e){return this._taskCompletionResolver.promise.then(t,e)},t.prototype._completeWith=function(t){this._updateProgress(t),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(t)},t.prototype._failWith=function(t){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(t),this._taskCompletionResolver.reject(t)},t.prototype._updateProgress=function(t){this._lastProgress=t,this._progressObserver.next&&this._progressObserver.next(t)},t}(),$s=-1,Bs=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n)||this).type="firestore",r._queue=new Fs,r._persistenceKey="name"in e?e.name:"[DEFAULT]",r}return Object(a["b"])(e,t),e.prototype._terminate=function(){return this._firestoreClient||Ks(this),this._firestoreClient.terminate()},e}(js);
2972/**
2973 * @license
2974 * Copyright 2020 Google LLC
2975 *
2976 * Licensed under the Apache License, Version 2.0 (the "License");
2977 * you may not use this file except in compliance with the License.
2978 * You may obtain a copy of the License at
2979 *
2980 *   http://www.apache.org/licenses/LICENSE-2.0
2981 *
2982 * Unless required by applicable law or agreed to in writing, software
2983 * distributed under the License is distributed on an "AS IS" BASIS,
2984 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2985 * See the License for the specific language governing permissions and
2986 * limitations under the License.
2987 */function Vs(t){return t._firestoreClient||Ks(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function Ks(t){var e,n=t._freezeSettings(),r=function(t,e,n,r){return new hs(t,e,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling)}(t._databaseId,(null===(e=t._app)||void 0===e?void 0:e.options.appId)||"",t._persistenceKey,n);t._firestoreClient=new ts(t._credentials,t._queue,r)}function Ws(t,e,n){var r=this,i=new er;return t.asyncQueue.enqueue((function(){return Object(a["a"])(r,void 0,void 0,(function(){var r;return Object(a["c"])(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,es(t,n)];case 1:return o.sent(),[4,ns(t,e)];case 2:return o.sent(),i.resolve(),[3,4];case 3:if(!function(t){return"FirebaseError"===t.name?t.code===u.FAILED_PRECONDITION||t.code===u.UNIMPLEMENT
2987ED:!("undefined"!=typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code}(r=o.sent()))throw r;return console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+r),i.reject(r),[3,4];case 4:return[2]}}))}))})).then((function(){return i.promise}))}function zs(t){if(t._initialized||t._terminated)throw new c(u.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}
2988/**
2989 * @license
2990 * Copyright 2020 Google LLC
2991 *
2992 * Licensed under the Apache License, Version 2.0 (the "License");
2993 * you may not use this file except in compliance with the License.
2994 * You may obtain a copy of the License at
2995 *
2996 *   http://www.apache.org/licenses/LICENSE-2.0
2997 *
2998 * Unless required by applicable law or agreed to in writing, software
2999 * distributed under the License is distributed on an "AS IS" BASIS,
3000 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3001 * See the License for the specific language governing permissions and
3002 * limitations under the License.
3003 */var Hs=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;++n)if(0===t[n].length)throw new c(u.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new N(t)}return t.prototype.isEqual=function(t){return this._internalPath.isEqual(t._internalPath)},t}(),Gs=function(){function t(t){this._byteString=t}return t.fromBase64String=function(e){try{return new t(R.fromBase64String(e))}catch(e){throw new c(u.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}},t.fromUint8Array=function(e){return new t(R.fromUint8Array(e))},t.prototype.toBase64=function(){return this._byteString.toBase64()},t.prototype.toUint8Array=function(){return this._byteString.toUint8Array()},t.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this._byteString.isEqual(t._byteString)},t}(),Xs=function(t){this._methodName=t},Ys=function(){function t(t,e){if(!isFinite(t)||t<-90||t>90)throw new c(u.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new c(u.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this._lat=t,this._long=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this._lat},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this._long},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this._lat===t._lat&&this._long===t._long},t.prototype.toJSON=function(){return{latitude:this._lat,longitude:this._long}},t.prototype._compareTo=function(t){return _(this._lat,t._lat)||_(this._long,t._long)},t}(),Qs=/^__.*__$/,Js=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return null!==this.fieldMask?new me(t,this.data,this.fieldMask,e,this.fieldTransforms):new ge(t,this.data,e,this.fieldTransforms)},t}(),Zs=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return new me(t,this.data,this.fieldMask,e,this.fieldTransforms)},t}();
3004/**
3005 * @license
3006 * Copyright 2020 Google LLC
3007 *
3008 * Licensed under the Apache License, Version 2.0 (the "License");
3009 * you may not use this file except in compliance with the License.
3010 * You may obtain a copy of the License at
3011 *
3012 *   http://www.apache.org/licenses/LICENSE-2.0
3013 *
3014 * Unless required by applicable law or agreed to in writing, software
3015 * distributed under the License is distributed on an "AS IS" BASIS,
3016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3017 * See the License for the specific language governing permissions and
3018 * limitations under the License.
3019 */function tu(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw g()}}var eu=function(){function t(t,e,n,r,i,o){this.settings=t,this.databaseId=e,this.R=n,this.ignoreUndefinedProperties=r,void 0===i&&this.Sc(),this.fieldTransforms=i||[],this.fieldMask=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path}
3019,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dc",{get:function(){return this.settings.Dc},enumerable:!1,configurable:!0}),t.prototype.Cc=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.R,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)},t.prototype.Nc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.Cc({path:n,xc:!1});return r.Fc(t),r},t.prototype.kc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.Cc({path:n,xc:!1});return r.Sc(),r},t.prototype.Oc=function(t){return this.Cc({path:void 0,xc:!0})},t.prototype.$c=function(t){return _u(t,this.settings.methodName,this.settings.Mc||!1,this.path,this.settings.Lc)},t.prototype.contains=function(t){return void 0!==this.fieldMask.find((function(e){return t.isPrefixOf(e)}))||void 0!==this.fieldTransforms.find((function(e){return t.isPrefixOf(e.field)}))},t.prototype.Sc=function(){if(this.path)for(var t=0;t<this.path.length;t++)this.Fc(this.path.get(t))},t.prototype.Fc=function(t){if(0===t.length)throw this.$c("Document fields must not be empty");if(tu(this.Dc)&&Qs.test(t))throw this.$c('Document fields cannot begin and end with "__"')},t}(),nu=function(){function t(t,e,n){this.databaseId=t,this.ignoreUndefinedProperties=e,this.R=n||lo(t)}return t.prototype.Bc=function(t,e,n,r){return void 0===r&&(r=!1),new eu({Dc:t,methodName:e,Lc:n,path:N.emptyPath(),xc:!1,Mc:r},this.databaseId,this.R,this.ignoreUndefinedProperties)},t}();function ru(t){var e=t._freezeSettings(),n=lo(t._databaseId);return new nu(t._databaseId,!!e.ignoreUndefinedProperties,n)}function iu(t,e,n,r,i,o){void 0===o&&(o={});var a=t.Bc(o.merge||o.mergeFields?2:0,e,n,i);mu("Data must be an object, but it was:",a,r);var s,l,f=vu(r,a);if(o.merge)s=new P(a.fieldMask),l=a.fieldTransforms;else if(o.mergeFields){for(var h=[],d=0,p=o.mergeFields;d<p.length;d++){var v=yu(e,p[d],n);if(!a.contains(v))throw new c(u.INVALID_ARGUMENT,"Field '"+v+"' is specified in your field mask but missing from your input data.");Eu(h,v)||h.push(v)}s=new P(h),l=a.fieldTransforms.filter((function(t){return s.covers(t.field)}))}else s=null,l=a.fieldTransforms;return new Js(new ot(f),s,l)}var ou=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["b"])(e,t),e.prototype._toFieldTransform=function(t){if(2!==t.Dc)throw 1===t.Dc?t.$c(this._methodName+"() can only appear at the top level of your update data"):t.$c(this._methodName+"() cannot be used with set() unless you pass {merge:true}");return t.fieldMask.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(Xs);function au(t,e,n){return new eu({Dc:3,Lc:e.settings.Lc,methodName:t._methodName,xc:n},e.databaseId,e.R,e.ignoreUndefinedProperties)}var su=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["b"])(e,t),e.prototype._toFieldTransform=function(t){return new ae(t.path,new Jt)},e.prototype.isEqual=function(t){return t instanceof e},e}(Xs),uu=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).qc=n,r}return Object(a["b"])(e,t),e.prototype._toFieldTransform=function(t){var e=au(this,t,!0),n=this.qc.map((function(t){return pu(t,e)})),r=new Zt(n);return new ae(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(Xs),cu=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).qc=n,r}return Object(a["b"])(e,t),e.prototype._toFieldTransform=function(t){var e=au(this,t,!0),n=this.qc.map((function(t){return pu(t,e)})),r=new ee(n);return new ae(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(Xs),lu=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).Uc=n,r}return Object(a["b"])(e,t),e.prototype._toFieldTransform=function(t){var e=new re(t.R,Ht(t.R,this.Uc));return new ae(t.path,e)},e.prototype.isEqual=function(t){return this===t},e}(Xs);function fu(t,e,n,i){var o=t.Bc(1,e,n);mu("Data must be an object, but it was:",o,i);var a=[],s=ot.empty();k(i,(function(t,i){var u=wu(e,t,n);i=Object(r["q"])(i);var c=o.kc(u);if(i instanceof ou)a.push(u);else{var l=pu(i,c);null!=l&&(a.push(u),s.set(u,l))}}));var u=new P(a);return new Zs(s,u,o.fieldTransforms)}function hu(t,e,n,i,o,a){var s=t.Bc(1,e,n),l=[yu(e,i,n)],f=[o];if(a.length%2!=0)throw new c(u.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var h=0;h<a.length;
3019h+=2)l.push(yu(e,a[h])),f.push(a[h+1]);for(var d=[],p=ot.empty(),v=l.length-1;v>=0;--v)if(!Eu(d,l[v])){var g=l[v],m=f[v];m=Object(r["q"])(m);var y=s.kc(g);if(m instanceof ou)d.push(g);else{var b=pu(m,y);null!=b&&(d.push(g),p.set(g,b))}}var w=new P(d);return new Zs(p,w,s.fieldTransforms)}function du(t,e,n,r){return void 0===r&&(r=!1),pu(n,t.Bc(r?4:3,e))}function pu(t,e){if(gu(t=Object(r["q"])(t)))return mu("Unsupported field value:",e,t),vu(t,e);if(t instanceof Xs)return function(t,e){if(!tu(e.Dc))throw e.$c(t._methodName+"() can only be used with update() and set()");if(!e.path)throw e.$c(t._methodName+"() is not currently supported inside arrays");var n=t._toFieldTransform(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(void 0===t&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.xc&&4!==e.Dc)throw e.$c("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i<o.length;i++){var a=pu(o[i],e.Oc(r));null==a&&(a={nullValue:"NULL_VALUE"}),n.push(a),r++}return{arrayValue:{values:n}}}(t,e)}return function(t,e){if(null===(t=Object(r["q"])(t)))return{nullValue:"NULL_VALUE"};if("number"==typeof t)return Ht(e.R,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=I.fromDate(t);return{timestampValue:en(e.R,n)}}if(t instanceof I)return n=new I(t.seconds,1e3*Math.floor(t.nanoseconds/1e3)),{timestampValue:en(e.R,n)};if(t instanceof Ys)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof Gs)return{bytesValue:nn(e.R,t._byteString)};if(t instanceof As){n=e.databaseId;var i=t.firestore._databaseId;if(!i.isEqual(n))throw e.$c("Document reference is for database "+i.projectId+"/"+i.database+" but should be for database "+n.projectId+"/"+n.database);return{referenceValue:an(t.firestore._databaseId||e.databaseId,t._key.path)}}throw e.$c("Unsupported field value: "+Ss(t))}(t,e)}function vu(t,e){var n={};return C(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):k(t,(function(t,r){var i=pu(r,e.Nc(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function gu(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof I||t instanceof Ys||t instanceof Gs||t instanceof As||t instanceof Xs)}function mu(t,e,n){if(!gu(n)||!function(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}(n)){var r=Ss(n);throw"an object"===r?e.$c(t+" a custom object"):e.$c(t+" "+r)}}function yu(t,e,n){if((e=Object(r["q"])(e))instanceof Hs)return e._internalPath;if("string"==typeof e)return wu(t,e);throw _u("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}var bu=new RegExp("[~\\*/\\[\\]]");function wu(t,e,n){if(e.search(bu)>=0)throw _u("Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'",t,!1,void 0,n);try{return(new(Hs.bind.apply(Hs,Object(a["d"])([void 0],e.split(".")))))._internalPath}catch(r){throw _u("Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'",t,!1,void 0,n)}}function _u(t,e,n,r,i){var o=r&&!r.isEmpty(),a=void 0!==i,s="Function "+e+"() called with invalid data";n&&(s+=" (via `toFirestore()`)");var l="";return(o||a)&&(l+=" (found",o&&(l+=" in field "+r),a&&(l+=" in document "+i),l+=")"),new c(u.INVALID_ARGUMENT,(s+=". ")+t+l)}function Eu(t,e){return t.some((function(t){return t.isEqual(e)}))}
3020/**
3021 * @license
3022 * Copyright 2020 Google LLC
3023 *
3024 * Licensed under the Apache License, Version 2.0 (the "License");
3025 * you may not use this file except in compliance with the License.
3026 * You may obtain a copy of the License at
3027 *
3028 *   http://www.apache.org/licenses/LICENSE-2.0
3029 *
3030 * Unless required by applicable law or agreed to in writing, software
3031 * distributed under the License is distributed on an "AS IS" BASIS,
3032 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3033 * See the License for the specific language governing permissions and
3034 * limitations under the License.
3035 */var Ou=function(){function t(t,e,n,r,i){this._firestore=t,this._userDataWriter=e,this._key=n,this._document=r,this._converter=i}return Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()}
3035,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new As(this._firestore,this._converter,this._key)},enumerable:!1,configurable:!0}),t.prototype.exists=function(){return null!==this._document},t.prototype.data=function(){if(this._document){if(this._converter){var t=new Iu(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(t)}return this._userDataWriter.convertValue(this._document.data.toProto())}},t.prototype.get=function(t){if(this._document){var e=this._document.data.field(Tu("DocumentSnapshot.get",t));if(null!==e)return this._userDataWriter.convertValue(e)}},t}(),Iu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["b"])(e,t),e.prototype.data=function(){return t.prototype.data.call(this)},e}(Ou);function Tu(t,e){return"string"==typeof e?wu(t,e):e instanceof Hs?e._internalPath:e._delegate._internalPath}
3036/**
3037 * @license
3038 * Copyright 2020 Google LLC
3039 *
3040 * Licensed under the Apache License, Version 2.0 (the "License");
3041 * you may not use this file except in compliance with the License.
3042 * You may obtain a copy of the License at
3043 *
3044 *   http://www.apache.org/licenses/LICENSE-2.0
3045 *
3046 * Unless required by applicable law or agreed to in writing, software
3047 * distributed under the License is distributed on an "AS IS" BASIS,
3048 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3049 * See the License for the specific language governing permissions and
3050 * limitations under the License.
3051 */var Su=function(){function t(t,e){this.hasPendingWrites=t,this.fromCache=e}return t.prototype.isEqual=function(t){return this.hasPendingWrites===t.hasPendingWrites&&this.fromCache===t.fromCache},t}(),ku=function(t){function e(e,n,r,i,o,a){var s=this;return(s=t.call(this,e,n,r,i,a)||this)._firestore=e,s._firestoreImpl=e,s.metadata=o,s}return Object(a["b"])(e,t),e.prototype.exists=function(){return t.prototype.exists.call(this)},e.prototype.data=function(t){if(void 0===t&&(t={}),this._document){if(this._converter){var e=new Cu(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(e,t)}return this._userDataWriter.convertValue(this._document.data.toProto(),t.serverTimestamps)}},e.prototype.get=function(t,e){if(void 0===e&&(e={}),this._document){var n=this._document.data.field(Tu("DocumentSnapshot.get",t));if(null!==n)return this._userDataWriter.convertValue(n,e.serverTimestamps)}},e}(Ou),Cu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["b"])(e,t),e.prototype.data=function(e){return void 0===e&&(e={}),t.prototype.data.call(this,e)},e}(ku),xu=function(){function t(t,e,n,r){this._firestore=t,this._userDataWriter=e,this._snapshot=r,this.metadata=new Su(r.hasPendingWrites,r.fromCache),this.query=n}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach((function(e){return t.push(e)})),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;this._snapshot.docs.forEach((function(r){t.call(e,new Cu(n._firestore,n._userDataWriter,r.key,r,new Su(n._snapshot.mutatedKeys.has(r.key),n._snapshot.fromCache),n.query.converter))}))},t.prototype.docChanges=function(t){void 0===t&&(t={});var e=!!t.includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new c(u.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(t,e){if(t._snapshot.oldDocs.isEmpty()){var n=0;return t._snapshot.docChanges.map((function(e){var r=new Cu(t._firestore,t._userDataWriter,e.doc.key,e.doc,new Su(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter);return e.doc,{type:"added",doc:r,oldIndex:-1,newIndex:n++}}))}var r=t._snapshot.oldDocs;return t._snapshot.docChanges.filter((function(t){return e||3!==t.type})).map((function(e){var n=new Cu(t._firestore,t._userDataWriter,e.doc.key,e.doc,new Su(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),i=-1,o=-1;return 0!==e.type&&(i=r.indexOf(e.doc.key),r=r.delete(e.doc.key)),1!==e.type&&(o=(r=r.add(e.doc)).indexOf(e.doc.key)),{type:ju(e.type),doc:n,oldIndex:i,newIndex:o}}))}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges},t}();function ju(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return g()}}function Au(t,e){return t instanceof ku&&e instanceof ku?t._firestore===e._firestore&&t._key.isEqual(e._key)&&(null===t._document?null===e._document:t._document.isEqual(e._document))&&t._
3051converter===e._converter:t instanceof xu&&e instanceof xu&&t._firestore===e._firestore&&Ms(t.query,e.query)&&t.metadata.isEqual(e.metadata)&&t._snapshot.isEqual(e._snapshot)}
3052/**
3053 * @license
3054 * Copyright 2020 Google LLC
3055 *
3056 * Licensed under the Apache License, Version 2.0 (the "License");
3057 * you may not use this file except in compliance with the License.
3058 * You may obtain a copy of the License at
3059 *
3060 *   http://www.apache.org/licenses/LICENSE-2.0
3061 *
3062 * Unless required by applicable law or agreed to in writing, software
3063 * distributed under the License is distributed on an "AS IS" BASIS,
3064 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3065 * See the License for the specific language governing permissions and
3066 * limitations under the License.
3067 */function Nu(t){if(Nt(t)&&0===t.explicitOrderBy.length)throw new c(u.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var Pu=function(){};function Ru(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];t=o._apply(t)}return t}var Du=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).Qc=e,i.Kc=n,i.jc=r,i.type="where",i}return Object(a["b"])(e,t),e.prototype._apply=function(t){var e=ru(t.firestore),n=function(t,e,n,r,i,o,a){var s;if(i.isKeyField()){if("array-contains"===o||"array-contains-any"===o)throw new c(u.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o||"not-in"===o){Bu(a,o);for(var l=[],f=0,h=a;f<h.length;f++){var d=h[f];l.push($u(r,t,d))}s={arrayValue:{values:l}}}else s=$u(r,t,a)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||Bu(a,o),s=du(n,"where",a,"in"===o||"not-in"===o);var p=dt.create(i,o,s);return function(t,e){if(e.g()){var n=Rt(t);if(null!==n&&!n.isEqual(e.field))throw new c(u.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+e.field.toString()+"'");var r=Pt(t);null!==r&&Vu(t,e.field,r)}var i=function(t,e){for(var n=0,r=t.filters;n<r.length;n++){var i=r[n];if(e.indexOf(i.op)>=0)return i.op}return null}(t,function(t){switch(t){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(null!==i)throw i===e.op?new c(u.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter."):new c(u.INVALID_ARGUMENT,"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+i.toString()+"' filters.")}(t,p),p}(t._query,0,e,t.firestore._databaseId,this.Qc,this.Kc,this.jc);return new Ns(t.firestore,t.converter,function(t,e){var n=t.filters.concat([e]);return new Ct(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}(t._query,n))},e}(Pu),Lu=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Qc=e,r.Wc=n,r.type="orderBy",r}return Object(a["b"])(e,t),e.prototype._apply=function(t){var e=function(t,e,n){if(null!==t.startAt)throw new c(u.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new c(u.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new It(e,n);return function(t,e){if(null===Pt(t)){var n=Rt(t);null!==n&&Vu(t,n,e.field)}}(t,r),r}(t._query,this.Qc,this.Wc);return new Ns(t.firestore,t.converter,function(t,e){var n=t.explicitOrderBy.concat([e]);return new Ct(t.path,t.collectionGroup,n,t.filters.slice(),t.limit,t.limitType,t.startAt,t.endAt)}(t._query,e))},e}(Pu),Mu=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Gc=n,i.zc=r,i}return Object(a["b"])(e,t),e.prototype._apply=function(t){return new Ns(t.firestore,t.converter,Ft(t._query,this.Gc,this.zc))},e}(Pu),Fu=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Hc=n,i.Jc=r,i}return Object(a["b"])(e,t),e.prototype._apply=function(t){var e=qu(t,this.type,this.Hc,this.Jc);return new Ns(t.firestore,t.converter,function(t,e){return new Ct(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,e,t.endAt)}(t._query,e))},e}(Pu),Uu=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Hc=n,i.Jc=r,i}return Object(a["b"])(e,t),e.prototype._apply=function(t){var e=qu(t,this.type,this.Hc,this.Jc);return new Ns(t.firestore,t.converter,function(t,e){return new Ct(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,t.startAt,e)}(t._query,e))},e}(Pu);function qu(t,e,n,i){if(n[0]=Object(r["q"])(n[0]),n[0]instanceof Ou)return function(t,e,n,r,i){if(!r)throw new c(u.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],a=0,s=Lt(t);a<s.length;a++){var l=s[a];if(l.field.isKeyField())o.push(Z(e,r.key));else{var f=r.data.field(l.field);if(U(f))throw new c(u.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+l.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===f){var h=l.field.canonicalString();throw new c(u.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+h+"' (used as the orderBy) does not exist.")}o.push(f)}}return new Et(o,i)}(t._query,t.firestore._databaseId,e,n[0]._document,i);var o=ru(t.firestore);return function(t,e,n,r,i,o){var a=t.explicitOrderBy;if(i.length>a.length)throw new c(u.INVALID_ARGUMENT,"Too many arguments provided to "+r+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var s=[],l=0;l<i.length;l++){var f=i[l];
3067if(a[l].field.isKeyField()){if("string"!=typeof f)throw new c(u.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+r+"(), but got a "+typeof f);if(!Dt(t)&&-1!==f.indexOf("/"))throw new c(u.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+r+"() must be a plain document ID, but '"+f+"' contains a slash.");var h=t.path.child(j.fromString(f));if(!W.isDocumentKey(h))throw new c(u.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+r+"() must result in a valid document path, but '"+h+"' is not because it contains an odd number of segments.");var d=new W(h);s.push(Z(e,d))}else{var p=du(n,r,f);s.push(p)}}return new Et(s,o)}(t._query,t.firestore._databaseId,o,e,n,i)}function $u(t,e,n){if("string"==typeof(n=Object(r["q"])(n))){if(""===n)throw new c(u.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!Dt(e)&&-1!==n.indexOf("/"))throw new c(u.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var i=e.path.child(j.fromString(n));if(!W.isDocumentKey(i))throw new c(u.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+i+"' is not because it has an odd number of segments ("+i.length+").");return Z(t,new W(i))}if(n instanceof As)return Z(t,n._key);throw new c(u.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+Ss(n)+".")}function Bu(t,e){if(!Array.isArray(t)||0===t.length)throw new c(u.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new c(u.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.")}function Vu(t,e,n){if(!n.isEqual(e))throw new c(u.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first argument to orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}
3068/**
3069 * @license
3070 * Copyright 2020 Google LLC
3071 *
3072 * Licensed under the Apache License, Version 2.0 (the "License");
3073 * you may not use this file except in compliance with the License.
3074 * You may obtain a copy of the License at
3075 *
3076 *   http://www.apache.org/licenses/LICENSE-2.0
3077 *
3078 * Unless required by applicable law or agreed to in writing, software
3079 * distributed under the License is distributed on an "AS IS" BASIS,
3080 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3081 * See the License for the specific language governing permissions and
3082 * limitations under the License.
3083 */var Ku=function(){function t(){}return t.prototype.convertValue=function(t,e){switch(void 0===e&&(e="none"),z(t)){case 0:return null;case 1:return t.booleanValue;case 2:return M(t.integerValue||t.doubleValue);case 3:return this.convertTimestamp(t.timestampValue);case 4:return this.convertServerTimestamp(t,e);case 5:return t.stringValue;case 6:return this.convertBytes(F(t.bytesValue));case 7:return this.convertReference(t.referenceValue);case 8:return this.convertGeoPoint(t.geoPointValue);case 9:return this.convertArray(t.arrayValue,e);case 10:return this.convertObject(t.mapValue,e);default:throw g()}},t.prototype.convertObject=function(t,e){var n=this,r={};return k(t.fields||{},(function(t,i){r[t]=n.convertValue(i,e)})),r},t.prototype.convertGeoPoint=function(t){return new Ys(M(t.latitude),M(t.longitude))},t.prototype.convertArray=function(t,e){var n=this;return(t.values||[]).map((function(t){return n.convertValue(t,e)}))},t.prototype.convertServerTimestamp=function(t,e){switch(e){case"previous":var n=q(t);return null==n?null:this.convertValue(n,e);case"estimate":return this.convertTimestamp($(t));default:return null}},t.prototype.convertTimestamp=function(t){var e=L(t);return new I(e.seconds,e.nanos)},t.prototype.convertDocumentKey=function(t,e){var n=j.fromString(t);m(An(n));var r=new ds(n.get(1),n.get(3)),i=new W(n.popFirst(5));return r.isEqual(e)||d("Document "+i+" contains a document reference within a different database ("+r.projectId+"/"+r.database+") which is not supported. It will be treated as a reference in the current database ("+e.projectId+"/"+e.database+") instead."),i},t}();
3084/**
3085 * @license
3086 * Copyright 2020 Google LLC
3087 *
3088 * Licensed under the Apache License, Version 2.0 (the "License");
3089 * you may not use this file except in compliance with the License.
3090 * You may obtain a copy of the License at
3091 *
3092 *   http://www.apache.org/licenses/LICENSE-2.0
3093 *
3094 * Unless required by applicable law or agreed to in writing, software
3095 * distributed under the License is distributed on an "AS IS" BASIS,
3096 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3097 * See the License for the specific language governing permissions and
3098 * limitations under the License.
3099 */function Wu(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}var zu=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return Object(a["b"])(e,t),e.prototype.convertBytes=function(t){return new Gs(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new As(this.firestore,null,e)},e}(Ku),Hu=function(){function t(t,e){this._firestore=t,this._commitHandler=e,this._mutations=[],this._committed=!1,this._dataReader=ru(t)}return t.prototype.set=function(t,e,n){this._verifyNotCommitted();var r=Gu(t,this._firestore),i=Wu(r.converter,e,n),o=iu(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(o.toMutation(r._key,ue.none())),this},t.prototype.update=function(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];this._verifyNotCommitted();var a,s=Gu(t,this._firestore);return a="string"==typeof(e=Object(r["q"])(e))||e instanceof Hs?hu(this._dataReader,"WriteBatch.update",s._key,e,n,i):fu(this._dataReader,"WriteBatch.update",s._key,e),this._mutations.push(a.toMutation(s._key,ue.exists(!0))),this},t.prototype.delete=function(t){this._verifyNotCommitted();var e=Gu(t,this._firestore);return this._mutations=this._mutations.concat(new Oe(e._key,ue.none())),this},t.prototype.commit=function(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()},t.prototype._verifyNotCommitted=function(){if(this._committed)throw new c(u.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}();
3100/**
3101 * @license
3102 * Copyright 2020 Google LLC
3103 *
3104 * Licensed under the Apache License, Version 2.0 (the "License");
3105 * you may not use this file except in compliance with the License.
3106 * You may obtain a copy of the License at
3107 *
3108 *   http://www.apache.org/licenses/LICENSE-2.0
3109 *
3110 * Unless required by applicable law or agreed to in writing, software
3111 * distributed under the License is distributed on an "AS IS" BASIS,
3112 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3113 * See the License for the specific language governing permissions and
3114 * limitations under the License.
3115 */function Gu(t,e){if((t=Object(r["q"])(t)).firestore!==e)throw new c(u.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}
3116/**
3117 * @license
3118 * Copyright 2020 Google LLC
3119 *
3120 * Licensed under the Apache License, Version 2.0 (the "License");
3121 * you may not use this file except in compliance with the License.
3122 * You may obtain a copy of the License at
3123 *
3124 *   http://www.apache.org/licenses/LICENSE-2.0
3125 *
3126 * Unless required by applicable law or agreed to in writing, software
3127 * distributed under the License is distributed on an "AS IS" BASIS,
3128 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3129 * See the License for the specific language governing permissions and
3130 * limitations under the License.
3131 */var Xu=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return Object(a["b"])(e,t),e.prototype.convertBytes=function(t){return new Gs(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new As(this.firestore,null,e)},e}(Ku);function Yu(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];t=ks(t,As);var a=ks(t.firestore,Bs),s=ru(a);return Ju(a,[("string"==typeof(e=Object(r["q"])(e))||e instanceof Hs?hu(s,"updateDoc",t._key,e,n,i):fu(s,"updateDoc",t._key,e)).toMutation(t._key,ue.exists(!0))])}function Qu(t){for(var e,n,i,o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];t=Object(r["q"])(t);var u={includeMetadataChanges:!1},c=0;
3131"object"!=typeof o[c]||Us(o[c])||(u=o[c],c++);var l,f,h,d={includeMetadataChanges:u.includeMetadataChanges};if(Us(o[c])){var p=o[c];o[c]=null===(e=p.next)||void 0===e?void 0:e.bind(p),o[c+1]=null===(n=p.error)||void 0===n?void 0:n.bind(p),o[c+2]=null===(i=p.complete)||void 0===i?void 0:i.bind(p)}if(t instanceof As)f=ks(t.firestore,Bs),h=jt(t._key.path),l={next:function(e){o[c]&&o[c](Zu(f,t,e))},error:o[c+1],complete:o[c+2]};else{var v=ks(t,Ns);f=ks(v.firestore,Bs),h=v._query;var g=new Xu(f);l={next:function(t){o[c]&&o[c](new xu(f,g,v,t))},error:o[c+1],complete:o[c+2]},Nu(t._query)}return function(t,e,n,r){var i=this,o=new Ya(r),s=new na(e,o,n);return t.asyncQueue.enqueueAndForget((function(){return Object(a["a"])(i,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:return e=Qo,[4,cs(t)];case 1:return[2,e.apply(void 0,[n.sent(),s])]}}))}))})),function(){o.Wo(),t.asyncQueue.enqueueAndForget((function(){return Object(a["a"])(i,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:return e=Jo,[4,cs(t)];case 1:return[2,e.apply(void 0,[n.sent(),s])]}}))}))}))}}(Vs(f),h,d,l)}function Ju(t,e){return function(t,e){var n=this,r=new er;return t.asyncQueue.enqueueAndForget((function(){return Object(a["a"])(n,void 0,void 0,(function(){var n;return Object(a["c"])(this,(function(i){switch(i.label){case 0:return n=ga,[4,us(t)];case 1:return[2,n.apply(void 0,[i.sent(),e,r])]}}))}))})),r.promise}(Vs(t),e)}function Zu(t,e,n){var r=n.docs.get(e._key),i=new Xu(t);return new ku(t,i,e._key,r,new Su(n.hasPendingWrites,n.fromCache),e.converter)}
3132/**
3133 * @license
3134 * Copyright 2020 Google LLC
3135 *
3136 * Licensed under the Apache License, Version 2.0 (the "License");
3137 * you may not use this file except in compliance with the License.
3138 * You may obtain a copy of the License at
3139 *
3140 *   http://www.apache.org/licenses/LICENSE-2.0
3141 *
3142 * Unless required by applicable law or agreed to in writing, software
3143 * distributed under the License is distributed on an "AS IS" BASIS,
3144 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3145 * See the License for the specific language governing permissions and
3146 * limitations under the License.
3147 */var tc=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n)||this)._firestore=e,r}return Object(a["b"])(e,t),e.prototype.get=function(e){var n=this,r=Gu(e,this._firestore),i=new Xu(this._firestore);return t.prototype.get.call(this,e).then((function(t){return new ku(n._firestore,i,r._key,t._document,new Su(!1,!1),r.converter)}))},e}(function(){function t(t,e){this._firestore=t,this._transaction=e,this._dataReader=ru(t)}return t.prototype.get=function(t){var e=this,n=Gu(t,this._firestore),r=new zu(this._firestore);return this._transaction.lookup([n._key]).then((function(t){if(!t||1!==t.length)return g();var i=t[0];if(i.isFoundDocument())return new Ou(e._firestore,r,i.key,i,n.converter);if(i.isNoDocument())return new Ou(e._firestore,r,n._key,null,n.converter);throw g()}))},t.prototype.set=function(t,e,n){var r=Gu(t,this._firestore),i=Wu(r.converter,e,n),o=iu(this._dataReader,"Transaction.set",r._key,i,null!==r.converter,n);return this._transaction.set(r._key,o),this},t.prototype.update=function(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a,s=Gu(t,this._firestore);return a="string"==typeof(e=Object(r["q"])(e))||e instanceof Hs?hu(this._dataReader,"Transaction.update",s._key,e,n,i):fu(this._dataReader,"Transaction.update",s._key,e),this._transaction.update(s._key,a),this},t.prototype.delete=function(t){var e=Gu(t,this._firestore);return this._transaction.delete(e._key),this},t}());
3148/**
3149 * @license
3150 * Copyright 2017 Google LLC
3151 *
3152 * Licensed under the Apache License, Version 2.0 (the "License");
3153 * you may not use this file except in compliance with the License.
3154 * You may obtain a copy of the License at
3155 *
3156 *   http://www.apache.org/licenses/LICENSE-2.0
3157 *
3158 * Unless required by applicable law or agreed to in writing, software
3159 * distributed under the License is distributed on an "AS IS" BASIS,
3160 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3161 * See the License for the specific language governing permissions and
3162 * limitations under the License.
3163 */function ec(){if("undefined"==typeof Uint8Array)throw new c(u.UNIMPLEMENT
3163ED,"Uint8Arrays are not available in this environment.")}function nc(){if("undefined"==typeof atob)throw new c(u.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var rc=function(){function t(t){this._delegate=t}return t.fromBase64String=function(e){return nc(),new t(Gs.fromBase64String(e))},t.fromUint8Array=function(e){return ec(),new t(Gs.fromUint8Array(e))},t.prototype.toBase64=function(){return nc(),this._delegate.toBase64()},t.prototype.toUint8Array=function(){return ec(),this._delegate.toUint8Array()},t.prototype.isEqual=function(t){return this._delegate.isEqual(t._delegate)},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t}(),ic=function(){function t(){}return t.prototype.enableIndexedDbPersistence=function(t,e){return function(t,e){zs(t=ks(t,Bs));var n=Vs(t),r=t._freezeSettings(),i=new Ga;return Ws(n,i,new za(i,r.cacheSizeBytes,null==e?void 0:e.forceOwnership))}(t._delegate,{forceOwnership:e})},t.prototype.enableMultiTabIndexedDbPersistence=function(t){return function(t){zs(t=ks(t,Bs));var e=Vs(t),n=t._freezeSettings(),r=new Ga;return Ws(e,r,new Ha(r,n.cacheSizeBytes))}(t._delegate)},t.prototype.clearIndexedDbPersistence=function(t){return function(t){var e=this;if(t._initialized&&!t._terminated)throw new c(u.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");var n=new er;return t._queue.enqueueAndForgetEvenWhileRestricted((function(){return Object(a["a"])(e,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,function(t){return Object(a["a"])(this,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:return ir.yt()?(e=t+"main",[4,ir.delete(e)]):[2,Promise.resolve()];case 1:return n.sent(),[2]}}))}))}(vi(t._databaseId,t._persistenceKey))];case 1:return r.sent(),n.resolve(),[3,3];case 2:return e=r.sent(),n.reject(e),[3,3];case 3:return[2]}}
3163))}))})),n.promise}(t._delegate)},t}(),oc=function(){function t(t,e,n){var r=this;this._delegate=e,this.Yc=n,this.INTERNAL={delete:function(){return r.terminate()}},t instanceof ds||(this.Xc=t)}return Object.defineProperty(t.prototype,"_databaseId",{get:function(){return this._delegate._databaseId},enumerable:!1,configurable:!0}),t.prototype.settings=function(t){t.merge&&delete(t=Object.assign(Object.assign({},this._delegate._getSettings()),t)).merge,this._delegate._setSettings(t)},t.prototype.useEmulator=function(t,e,n){void 0===n&&(n={}),function(t,e,n,i){void 0===i&&(i={});var o=(t=ks(t,js))._getSettings();if("firestore.googleapis.com"!==o.host&&o.host!==e&&p("Host has been set in both settings() and useEmulator(), emulator host will be used"),t._setSettings(Object.assign(Object.assign({},o),{host:e+":"+n,ssl:!1})),i.mockUserToken){var a=Object(r["l"])(i.mockUserToken),s=i.mockUserToken.sub||i.mockUserToken.user_id;if(!s)throw new c(u.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");t._credentials=new ms(new vs(a,new zi(s)))}}(this._delegate,t,e,n)},t.prototype.enableNetwork=function(){return function(t){var e=this;return t.asyncQueue.enqueue((function(){return Object(a["a"])(e,void 0,void 0,(function(){var e,n;return Object(a["c"])(this,(function(r){switch(r.label){case 0:return[4,os(t)];case 1:return e=r.sent(),[4,ss(t)];case 2:return n=r.sent(),[2,(e.setNetworkEnabled(!0),function(t){var e=y(t);return e.$r.delete(0),bo(e)}(n))]}}))}))}))}(Vs(ks(this._delegate,Bs)))},t.prototype.disableNetwork=function(){return function(t){var e=this;return t.asyncQueue.enqueue((function(){return Object(a["a"])(e,void 0,void 0,(function(){var e,n;return Object(a["c"])(this,(function(r){switch(r.label){case 0:return[4,os(t)];case 1:return e=r.sent(),[4,ss(t)];case 2:return n=r.sent(),[2,(e.setNetworkEnabled(!1),function(t){return Object(a["a"])(this,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:return(e=y(t)).$r.add(0),[4,wo(e)];case 1:return n.sent(),e.Br.set("Offline"),[2]}}))}))}(n))]}}))}))}))}(Vs(ks(this._delegate,Bs)))},t.prototype.enablePersistence=function(t){var e=!1,n=!1;return t&&Os("synchronizeTabs",e=!!t.synchronizeTabs,"experimentalForceOwningTab",n=!!t.experimentalForceOwningTab),e?this.Yc.enableMultiTabIndexedDbPersistence(this):this.Yc.enableIndexedDbPersistence(this,n)},t.prototype.clearPersistence=function(){return this.Yc.clearIndexedDbPersistence(this)},t.prototype.terminate=function(){return this.Xc&&(this.Xc._removeServiceInstance("firestore"),this.Xc._removeServiceInstance("firestore-exp")),this._delegate._delete()},t.prototype.waitForPendingWrites=function(){return function(t){var e=this,n=new er;return t.asyncQueue.enqueueAndForget((function(){return Object(a["a"])(e,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(r){switch(r.label){case 0:return e=Ea,[4,us(t)];case 1:return[2,e.apply(void 0,[r.sent(),n])]}}))}))})),n.promise}(Vs(ks(this._delegate,Bs)))},t.prototype.onSnapshotsInSync=function(t){return function(t,e){return function(t,e){var n=this,r=new Ya(e);return t.asyncQueue.enqueueAndForget((function(){return Object(a["a"])(n,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:return e=function(t,e){y(t).Gr.add(e),e.next()},[4,cs(t)];case 1:return[2,e.apply(void 0,[n.sent(),r])]}}))}))})),function(){r.Wo(),t.asyncQueue.enqueueAndForget((function(){return Object(a["a"])(n,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:return e=function(t,e){y(t).Gr.delete(e)},[4,cs(t)];case 1:return[2,e.apply(void 0,[n.sent(),r])]}}))}))}))}}(Vs(t=ks(t,Bs)),Us(e)?e:{next:e})}(this._delegate,t)},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.Xc)throw new c(u.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.Xc},enumerable:!1,configurable:!0}),t.prototype.collection=function(t){try{return new wc(this,Rs(this._delegate,t))}catch(t){throw hc(t,"collection()","Firestore.collection()")}},t.prototype.doc=function(t){try{return new fc(this,Ds(this._delegate,t))}catch(t){throw hc(t,"doc()","Firestore.doc()")}},t.prototype.collectionGroup=function(t){try{return new mc(this,function(t,e){if(t=ks(t,js),_s("collectionGroup","collection id",e),e.indexOf("/")>=0)throw new c(u.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function collectionGroup(). Collection IDs must not contain '/'.");return new Ns(t,null,function(t){return new Ct(j.emptyPath(),t)}(e))}(this._delegate,t))}catch(t){throw hc(t,"collectionGroup()","Firestore.collectionGroup()")}},t.prototype.runTransaction=function(t){var e=this;return function(t,e){return function(t,e){var n=this,r=new er;return t.asyncQueue.enqueueAndForget((function(){return Object(a["a"])(n,void 0,void 0,(function(){var n;return Object(a["c"])(this,(function(i){switch(i.label){case 0:return[4,function(t){return is(t).then((function(t){return t.datastore}))}(t)];case 1:return n=i.sent(),new Za(t.asyncQueue,n,e,r).run(),[2]}}))}))})),r.promise}(Vs(t),(function(n){return e(new tc(t,n))}
3163))}(this._delegate,(function(n){return t(new uc(e,n))}))},t.prototype.batch=function(){var t=this;return Vs(this._delegate),new cc(new Hu(this._delegate,(function(e){return Ju(t._delegate,e)})))},t.prototype.loadBundle=function(t){throw new c(u.FAILED_PRECONDITION,'"loadBundle()" does not exist, have you imported "firebase/firestore/bundle"?')},t.prototype.namedQuery=function(t){throw new c(u.FAILED_PRECONDITION,'"namedQuery()" does not exist, have you imported "firebase/firestore/bundle"?')},t}(),ac=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return Object(a["b"])(e,t),e.prototype.convertBytes=function(t){return new rc(new Gs(t))},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return fc.Zc(e,this.firestore,null)},e}(Ku);function sc(t){var e;e=t,l.setLogLevel(e)}var uc=function(){function t(t,e){this._firestore=t,this._delegate=e,this._userDataWriter=new ac(t)}return t.prototype.get=function(t){var e=this,n=_c(t);return this._delegate.get(n).then((function(t){return new vc(e._firestore,new ku(e._firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,n.converter))}))},t.prototype.set=function(t,e,n){var r=_c(t);return n?(Es("Transaction.set",n),this._delegate.set(r,e,n)):this._delegate.set(r,e),this},t.prototype.update=function(t,e,n){for(var r,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=_c(t);return 2===arguments.length?this._delegate.update(s,e):(r=this._delegate).update.apply(r,Object(a["d"])([s,e,n],i)),this},t.prototype.delete=function(t){var e=_c(t);return this._delegate.delete(e),this},t}(),cc=function(){function t(t){this._delegate=t}return t.prototype.set=function(t,e,n){var r=_c(t);return n?(Es("WriteBatch.set",n),this._delegate.set(r,e,n)):this._delegate.set(r,e),this},t.prototype.update=function(t,e,n){for(var r,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=_c(t);return 2===arguments.length?this._delegate.update(s,e):(r=this._delegate).update.apply(r,Object(a["d"])([s,e,n],i)),this},t.prototype.delete=function(t){var e=_c(t);return this._delegate.delete(e),this},t.prototype.commit=function(){return this._delegate.commit()},t}(),lc=function(){function t(t,e,n){this._firestore=t,this._userDataWriter=e,this._delegate=n}return t.prototype.fromFirestore=function(t,e){var n=new Cu(this._firestore._delegate,this._userDataWriter,t._key,t._document,t.metadata,null);return this._delegate.fromFirestore(new gc(this._firestore,n),null!=e?e:{})},t.prototype.toFirestore=function(t,e){return e?this._delegate.toFirestore(t,e):this._delegate.toFirestore(t)},t.tu=function(e,n){var r=t.eu,i=r.get(e);i||(i=new WeakMap,r.set(e,i));var o=i.get(n);return o||(o=new t(e,new ac(e),n),i.set(n,o)),o},t}();lc.eu=new WeakMap;var fc=function(){function t(t,e){this.firestore=t,this._delegate=e,this._userDataWriter=new ac(t)}return t.nu=function(e,n,r){if(e.length%2!=0)throw new c(u.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e.canonicalString()+" has "+e.length);return new t(n,new As(n._delegate,r,new W(e)))},t.Zc=function(e,n,r){return new t(n,new As(n._delegate,r,e))},Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new wc(this.firestore,this._delegate.parent)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),t.prototype.collection=function(t){try{return new wc(this.firestore,Rs(this._delegate,t))}catch(t){throw hc(t,"collection()","DocumentReference.collection()")}},t.prototype.isEqual=function(t){return(t=Object(r["q"])(t))instanceof As&&Ls(this._delegate,t)},t.prototype.set=function(t,e){e=Es("DocumentReference.set",e);try{return function(t,e,n){t=ks(t,As);var r=ks(t.firestore,Bs),i=Wu(t.converter,e,n);return Ju(r,[iu(ru(r),"setDoc",t._key,i,null!==t.converter,n).toMutation(t._key,ue.none())])}(this._delegate,t,e)}catch(t){throw hc(t,"setDoc()","DocumentReference.set()")}},t.prototype.update=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];try{return 1===arguments.length?Yu(this._delegate,t):Yu.apply(void 0,Object(a["d"])([this._delegate,t,e],n))}
3163catch(t){throw hc(t,"updateDoc()","DocumentReference.update()")}},t.prototype.delete=function(){return Ju(ks((t=this._delegate).firestore,Bs),[new Oe(t._key,ue.none())]);var t},t.prototype.onSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=dc(e),i=pc(e,(function(e){return new vc(t.firestore,new ku(t.firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,t._delegate.converter))}));return Qu(this._delegate,r,i)},t.prototype.get=function(t){var e=this;return("cache"===(null==t?void 0:t.source)?function(t){t=ks(t,As);var e=ks(t.firestore,Bs),n=Vs(e),r=new Xu(e);return function(t,e){var n=this,r=new er;return t.asyncQueue.enqueueAndForget((function(){return Object(a["a"])(n,void 0,void 0,(function(){var n;return Object(a["c"])(this,(function(i){switch(i.label){case 0:return n=function(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var r,i;return Object(a["c"])(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,function(t,e){var n=y(t);return n.persistence.runTransaction("read document","readonly",(function(t){return n.Mn.mn(t,e)}))}(t,e)];case 1:return(i=o.sent()).isFoundDocument()?n.resolve(i):i.isNoDocument()?n.resolve(null):n.reject(new c(u.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),[3,3];case 2:return r=o.sent(),i=Wo(r,"Failed to get document '"+e+" from cache"),n.reject(i),[3,3];case 3:return[2]}}
3163))}))},[4,as(t)];case 1:return[2,n.apply(void 0,[i.sent(),e,r])]}}))}))})),r.promise}(n,t._key).then((function(n){return new ku(e,r,t._key,n,new Su(null!==n&&n.hasLocalMutations,!0),t.converter)}))}(this._delegate):"server"===(null==t?void 0:t.source)?function(t){t=ks(t,As);var e=ks(t.firestore,Bs);return ls(Vs(e),t._key,{source:"server"}).then((function(n){return Zu(e,t,n)}))}(this._delegate):function(t){t=ks(t,As);var e=ks(t.firestore,Bs);return ls(Vs(e),t._key).then((function(n){return Zu(e,t,n)}))}(this._delegate)).then((function(t){return new vc(e.firestore,new ku(e.firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,e._delegate.converter))}))},t.prototype.withConverter=function(e){return new t(this.firestore,e?this._delegate.withConverter(lc.tu(this.firestore,e)):this._delegate.withConverter(null))},t}();function hc(t,e,n){return t.message=t.message.replace(e,n),t}function dc(t){for(var e=0,n=t;e<n.length;e++){var r=n[e];if("object"==typeof r&&!Us(r))return r}return{}}function pc(t,e){var n,r,i;return{next:function(t){i.next&&i.next(e(t))},error:null===(n=(i=Us(t[0])?t[0]:Us(t[1])?t[1]:"function"==typeof t[0]?{next:t[0],error:t[1],complete:t[2]}:{next:t[1],error:t[2],complete:t[3]}).error)||void 0===n?void 0:n.bind(i),complete:null===(r=i.complete)||void 0===r?void 0:r.bind(i)}}var vc=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"ref",{get:function(){return new fc(this._firestore,this._delegate.ref)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return this._delegate.exists()},enumerable:!1,configurable:!0}),t.prototype.data=function(t){return this._delegate.data(t)},t.prototype.get=function(t,e){return this._delegate.get(t,e)},t.prototype.isEqual=function(t){return Au(this._delegate,t._delegate)},t}(),gc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["b"])(e,t),e.prototype.data=function(t){return this._delegate.data(t)},e}(vc),mc=function(){function t(t,e){this.firestore=t,this._delegate=e,this._userDataWriter=new ac(t)}return t.prototype.where=function(e,n,r){try{return new t(this.firestore,Ru(this._delegate,function(t,e,n){var r=e,i=Tu("where",t);return new Du(i,r,n)}(e,n,r)))}catch(e){throw hc(e,/(orderBy|where)\(\)/,"Query.$1()")}},t.prototype.orderBy=function(e,n){try{return new t(this.firestore,Ru(this._delegate,function(t,e){void 0===e&&(e="asc");var n=e,r=Tu("orderBy",t);return new Lu(r,n)}(e,n)))}catch(e){throw hc(e,/(orderBy|where)\(\)/,"Query.$1()")}},t.prototype.limit=function(e){try{return new t(this.firestore,Ru(this._delegate,function(t){return Cs("limit",t),new Mu("limit",t,"F")}(e)))}catch(e){throw hc(e,"limit()","Query.limit()")}},t.prototype.limitToLast=function(e){try{return new t(this.firestore,Ru(this._delegate,function(t){return Cs("limitToLast",t),new Mu("limitToLast",t,"L")}(e)))}catch(e){throw hc(e,"limitToLast()","Query.limitToLast()")}},t.prototype.startAt=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,Ru(this._delegate,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new Fu("startAt",t,!0)}.apply(void 0,e)))}catch(e){throw hc(e,"startAt()","Query.startAt()")}},t.prototype.startAfter=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,Ru(this._delegate,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new Fu("startAfter",t,!1)}.apply(void 0,e)))}catch(e){throw hc(e,"startAfter()","Query.startAfter()")}},t.prototype.endBefore=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,Ru(this._delegate,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new Uu("endBefore",t,!0)}.apply(void 0,e)))}catch(e){throw hc(e,"endBefore()","Query.endBefore()")}},t.prototype.endAt=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,Ru(this._delegate,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new Uu("endAt",t,!1)}.apply(void 0,e)))}catch(e){throw hc(e,"endAt()","Query.endAt()")}},t.prototype.isEqual=function(t){return Ms(this._delegate,t._delegate)},t.prototype.get=function(t){var e=this;
3163return("cache"===(null==t?void 0:t.source)?function(t){t=ks(t,Ns);var e=ks(t.firestore,Bs),n=Vs(e),r=new Xu(e);return function(t,e){var n=this,r=new er;return t.asyncQueue.enqueueAndForget((function(){return Object(a["a"])(n,void 0,void 0,(function(){var n;return Object(a["c"])(this,(function(i){switch(i.label){case 0:return n=function(t,e,n){return Object(a["a"])(this,void 0,void 0,(function(){var r,i,o,s,u;return Object(a["c"])(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,ji(t,e,!0)];case 1:return u=a.sent(),r=new ca(e,u.Bn),i=r._o(u.documents),o=r.applyChanges(i,!1),n.resolve(o.snapshot),[3,3];case 2:return s=a.sent(),u=Wo(s,"Failed to execute query '"+e+" against cache"),n.reject(u),[3,3];case 3:return[2]}}))}))},[4,as(t)];case 1:return[2,n.apply(void 0,[i.sent(),e,r])]}}))}))})),r.promise}(n,t._query).then((function(n){return new xu(e,r,t,n)}))}(this._delegate):"server"===(null==t?void 0:t.source)?function(t){t=ks(t,Ns);var e=ks(t.firestore,Bs),n=Vs(e),r=new Xu(e);return fs(n,t._query,{source:"server"}).then((function(n){return new xu(e,r,t,n)}))}(this._delegate):function(t){t=ks(t,Ns);var e=ks(t.firestore,Bs),n=Vs(e),r=new Xu(e);return Nu(t._query),fs(n,t._query).then((function(n){return new xu(e,r,t,n)}))}(this._delegate)).then((function(t){return new bc(e.firestore,new xu(e.firestore._delegate,e._userDataWriter,e._delegate,t._snapshot))}))},t.prototype.onSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=dc(e),i=pc(e,(function(e){return new bc(t.firestore,new xu(t.firestore._delegate,t._userDataWriter,t._delegate,e._snapshot))}));return Qu(this._delegate,r,i)},t.prototype.withConverter=function(e){return new t(this.firestore,e?this._delegate.withConverter(lc.tu(this.firestore,e)):this._delegate.withConverter(null))},t}(),yc=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"type",{get:function(){return this._delegate.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"doc",{get:function(){return new gc(this._firestore,this._delegate.doc)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"oldIndex",{get:function(){return this._delegate.oldIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newIndex",{get:function(){return this._delegate.newIndex},enumerable:!1,configurable:!0}),t}(),bc=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"query",{get:function(){return new mc(this._firestore,this._delegate.query)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._delegate.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this._delegate.empty},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"docs",{get:function(){var t=this;return this._delegate.docs.map((function(e){return new gc(t._firestore,e)}))},enumerable:!1,configurable:!0}),t.prototype.docChanges=function(t){var e=this;return this._delegate.docChanges(t).map((function(t){return new yc(e._firestore,t)}))},t.prototype.forEach=function(t,e){var n=this;this._delegate.forEach((function(r){t.call(e,new gc(n._firestore,r))}))},t.prototype.isEqual=function(t){return Au(this._delegate,t._delegate)},t}(),wc=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n)||this).firestore=e,r._delegate=n,r}return Object(a["b"])(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._delegate.parent;return t?new fc(this.firestore,t):null},enumerable:!1,configurable:!0}),e.prototype.doc=function(t){try{return new fc(this.firestore,void 0===t?Ds(this._delegate):Ds(this._delegate,t))}catch(t){throw hc(t,"doc()","CollectionReference.doc()")}},e.prototype.add=function(t){var e=this;return function(t,e){var n=ks(t.firestore,Bs),r=Ds(t),i=Wu(t.converter,e);return Ju(n,[iu(ru(t.firestore),"addDoc",r._key,i,null!==t.converter,{}).toMutation(r._key,ue.exists(!1))]).then((function(){return r}))}(this._delegate,t).then((function(t){return new fc(e.firestore,t)}))},e.prototype.isEqual=function(t){return Ls(this._delegate,t._delegate)},e.prototype.withConverter=function(t){return new e(this.firestore,t?this._delegate.withConverter(lc.tu(this.firestore,t)):this._delegate.withConverter(null))},e}(mc);function _c(t){return ks(t,As)}
3164/**
3165 * @license
3166 * Copyright 2017 Google LLC
3167 *
3168 * Licensed under the Apache License, Version 2.0 (the "License");
3169 * you may not use this file except in compliance with the License.
3170 * You may obtain a copy of the License at
3171 *
3172 *   http://www.apache.org/licenses/LICENSE-2.0
3173 *
3174 * Unless required by applicable law or agreed to in writing, software
3175 * distributed under the License is distributed on an "AS IS" BASIS,
3176 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3177 * See the License for the specific language governing permissions and
3178 * limitations under the License.
3179 */var Ec=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._delegate=new(Hs.bind.apply(Hs,Object(a["d"])([void 0],t)))}return t.documentId=function(){return new t(N.keyField().canonicalString())},t.prototype.isEqual=function(t){return(t=Object(r["q"])(t))instanceof Hs&&this._delegate._internalPath.isEqual(t._internalPath)},t}(),Oc=function(){function t(t){this._delegate=t}return t.serverTimestamp=function(){var e=new su("serverTimestamp");return e._methodName="FieldValue.serverTimestamp",new t(e)},t.delete=function(){var e=new ou("deleteField");return e._methodName="FieldValue.delete",new t(e)},t.arrayUnion=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new uu("arrayUnion",t)}.apply(void 0,e);return r._methodName="FieldValue.arrayUnion",new t(r)},t.arrayRemove=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new cu("arrayRemove",t)}.apply(void 0,e);return r._methodName="FieldValue.arrayRemove",new t(r)},t.increment=function(e){var n=function(t){return new lu("increment",t)}(e);return n._methodName="FieldValue.increment",new t(n)},t.prototype.isEqual=function(t){return this._delegate.isEqual(t._delegate)},t}();
3180/**
3181 * @license
3182 * Copyright 2017 Google LLC
3183 *
3184 * Licensed under the Apache License, Version 2.0 (the "License");
3185 * you may not use this file except in compliance with the License.
3186 * You may obtain a copy of the License at
3187 *
3188 *   http://www.apache.org/licenses/LICENSE-2.0
3189 *
3190 * Unless required by applicable law or agreed to in writing, software
3191 * distributed under the License is distributed on an "AS IS" BASIS,
3192 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3193 * See the License for the specific language governing permissions and
3194 * limitations under the License.
3195 */
3196/**
3197 * @license
3198 * Copyright 2020 Google LLC
3199 *
3200 * Licensed under the Apache License, Version 2.0 (the "License");
3201 * you may not use this file except in compliance with the License.
3202 * You may obtain a copy of the License at
3203 *
3204 *   http://www.apache.org/licenses/LICENSE-2.0
3205 *
3206 * Unless required by applicable law or agreed to in writing, software
3207 * distributed under the License is distributed on an "AS IS" BASIS,
3208 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3209 * See the License for the specific language governing permissions and
3210 * limitations under the License.
3211 */function Ic(t){return function(t,e){var n=Vs(t=ks(t,Bs)),r=new qs;return function(t,e,n,r){var i=this,o=function(t,e){return function(t,e){return new Qa(t,e)}(function(t,e){if(t instanceof Uint8Array)return Xa(t,e);if(t instanceof ArrayBuffer)return Xa(new Uint8Array(t),e);if(t instanceof ReadableStream)return t.getReader();throw new Error("Source of `toByteStreamReader` has to be a ArrayBuffer or ReadableStream")}("string"==typeof t?(new TextEncoder).encode(t):t),e)}(n,lo(e));t.asyncQueue.enqueueAndForget((function(){return Object(a["a"])(i,void 0,void 0,(function(){var e;return Object(a["c"])(this,(function(n){switch(n.label){case 0:return e=Ka,[4,us(t)];case 1:return e.apply(void 0,[n.sent(),o,r]),[2]}}))}))}))}(n,t._databaseId,e,r),r}(this._delegate,t)}function Tc(t){var e,n,r=this;return(e=this._delegate,n=t,function(t,e){var n=this;return t.asyncQueue.enqueue((function(){return Object(a["a"])(n,void 0,void 0,(function(){var n;return Object(a["c"])(this,(function(r){switch(r.label){case 0:return n=function(t,e){var n=y(t);return n.persistence.runTransaction("Get named query","readonly",(function(t){return n.Qe.getNamed
vendor: 5,112 bytes, lines 3211-3216
3211Query(t,e)}))},[4,as(t)];case 1:return[2,n.apply(void 0,[r.sent(),e])]}}))}))}))}(Vs(e=ks(e,Bs)),n).then((function(t){return t?new Ns(e,null,t.query):null}))).then((function(t){return t?new mc(r,t):null}))}}).call(this,n("4362"))},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6cf:function(t,e,n){"use strict";var r,i,o,a,s=n("23e7"),u=n("c430"),c=n("da84"),l=n("d066"),f=n("fea9"),h=n("6eeb"),d=n("e2cc"),p=n("d2bb"),v=n("d44e"),g=n("2626"),m=n("861d"),y=n("1c0b"),b=n("19aa"),w=n("8925"),_=n("2266"),E=n("1c7e"),O=n("4840"),I=n("2cf4").set,T=n("b575"),S=n("cdf9"),k=n("44de"),C=n("f069"),x=n("e667"),j=n("69f3"),A=n("94ca"),N=n("b622"),P=n("6069"),R=n("605d"),D=n("2d00"),L=N("species"),M="Promise",F=j.get,U=j.set,q=j.getterFor(M),$=f&&f.prototype,B=f,V=$,K=c.TypeError,W=c.document,z=c.process,H=C.f,G=H,X=!!(W&&W.createEvent&&c.dispatchEvent),Y="function"==typeof PromiseRejectionEvent,Q="unhandledrejection",J="rejectionhandled",Z=0,tt=1,et=2,nt=1,rt=2,it=!1,ot=A(M,(function(){var t=w(B)!==String(B);if(!t&&66===D)return!0;if(u&&!V["finally"])return!0;if(D>=51&&/native code/.test(B))return!1;var e=new B((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[L]=n,it=e.then((function(){}))instanceof n,!it||!t&&P&&!Y})),at=ot||!E((function(t){B.all(t)["catch"]((function(){}))})),st=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},ut=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;T((function(){var r=t.value,i=t.state==tt,o=0;while(n.length>o){var a,s,u,c=n[o++],l=i?c.ok:c.fail,f=c.resolve,h=c.reject,d=c.domain;try{l?(i||(t.rejection===rt&&ht(t),t.rejection=nt),!0===l?a=r:(d&&d.enter(),a=l(r),d&&(d.exit(),u=!0)),a===c.promise?h(K("Promise-chain cycle")):(s=st(a))?s.call(a,f,h):f(a)):h(r)}catch(p){d&&!u&&d.exit(),h(p)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&lt(t)}))}},ct=function(t,e,n){var r,i;X?(r=W.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!Y&&(i=c["on"+t])?i(r):t===Q&&k("Unhandled promise rejection",n)},lt=function(t){I.call(c,(function(){var e,n=t.facade,r=t.value,i=ft(t);if(i&&(e=x((function(){R?z.emit("unhandledRejection",r,n):ct(Q,n,r)})),t.rejection=R||ft(t)?rt:nt,e.error))throw e.value}))},ft=function(t){return t.rejection!==nt&&!t.parent},ht=function(t){I.call(c,(function(){var e=t.facade;R?z.emit("rejectionHandled",e):ct(J,e,t.value)}))},dt=function(t,e,n){return function(r){t(e,r,n)}},pt=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=et,ut(t,!0))},vt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw K("Promise can't be resolved itself");var r=st(e);r?T((function(){var n={done:!1};try{r.call(e,dt(vt,n,t),dt(pt,n,t))}catch(i){pt(n,i,t)}})):(t.value=e,t.state=tt,ut(t,!1))}catch(i){pt({done:!1},i,t)}}};if(ot&&(B=function(t){b(this,B,M),y(t),r.call(this);var e=F(this);try{t(dt(vt,e),dt(pt,e))}catch(n){pt(e,n)}},V=B.prototype,r=function(t){U(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},r.prototype=d(V,{then:function(t,e){var n=q(this),r=H(O(this,B));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=R?z.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Z&&ut(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=F(t);this.promise=t,this.resolve=dt(vt,e),this.reject=dt(pt,e)},C.f=H=function(t){return t===B||t===o?new i(t):G(t)},!u&&"function"==typeof f&&$!==Object.prototype)){a=$.then,it||(h($,"then",(function(t,e){var n=this;return new B((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),h($,"catch",V["catch"],{unsafe:!0}));try{delete $.constructor}catch(gt){}p&&p($,V)}s({global:!0,wrap:!0,forced:ot},{Promise:B}),v(B,M,!1,!0),g(M),o=l(M),s({target:M,stat:!0,forced:ot},{reject:function(t){var e=H(this);return e.reject.call(void 0,t),e.promise}}),s({target:M,stat:!0,forced:u||ot},{resolve:function(t){return S(u&&this===o?B:this,t)}}),s({target:M,stat:!0,forced:at},{all:function(t){var e=this,n=H(e),r=n.resolve,i=n.reject,o=x((function(){var n=y(e.resolve),o=[],a=0,s=1;_(t,(function(t){var u=a++,c=!1;o.push(void 0),s++,n.call(e,t).then((function(t){c||(c=!0,o[u]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=H(e),r=n.reject,i=x((function(){var i=y(e.resolve);_(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(t,l)||s(t,l,u(e,l))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e947:function(t,e,n){"use strict";(function(t,e){var r=n("cc84"),i=n("ffa6"),o=n("a8e9"),a=n("9802"),s=n("abfd"),u="@firebase/database",c="0.10.0",l="";function f(t){l=t}
3212/**
3213 * @license
3214 * Copyright 2017 Google LLC
3215 *
3216 * Licensed under the Apache License, Version 2.0 (the "License");
3217 * you may not use this file except in compliance with the License.
3218 * You may obtain a copy of the License at
3219 *
3220 *   http://www.apache.org/licenses/LICENSE-2.0
3221 *
3222 * Unless required by applicable law or agreed to in writing, software
3223 * distributed under the License is distributed on an "AS IS" BASIS,
3224 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3225 * See the License for the specific language governing permissions and
3226 * limitations under the License.
3227 */var h=function(){function t(t){this.domStorage_=t,this.prefix_="firebase:"}return t.prototype.set=function(t,e){null==e?this.domStorage_.removeItem(this.prefixedName_(t)):this.domStorage_.setItem(this.prefixedName_(t),Object(o["L"])(e))},t.prototype.get=function(t){var e=this.domStorage_.getItem(this.prefixedName_(t));return null==e?null:Object(o["F"])(e)},t.prototype.remove=function(t){this.domStorage_.removeItem(this.prefixedName_(t))},t.prototype.prefixedName_=function(t){return this.prefix_+t},t.prototype.toString=function(){return this.domStorage_.toString()},t}(),d=function(){function t(){this.cache_={},this.isInMemoryStorage=!0}return t.prototype.set=function(t,e){null==e?delete this.cache_[t]:this.cache_[t]=e},t.prototype.get=function(t){return Object(o["k"])(this.cache_,t)?this.cache_[t]:null},t.prototype.remove=function(t){delete this.cache_[t]},t}(),p=function(t){try{if("undefined"!==typeof window&&"undefined"!==typeof window[t]){var e=window[t];return e.setItem("firebase:sentinel","cache"),e.removeItem("firebase:sentinel"),new h(e)}}catch(n){}return new d},v=p("localStorage"),g=p("sessionStorage"),m=new s["b"]("@firebase/database"),y=function(){var t=1;return function(){return t++}}(),b=function(t){var e=Object(o["K"])(t),n=new o["d"];n.update(e);var r=n.digest();return o["h"].encodeByteArray(r)},w=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n="",r=0;r<t.length;r++){var i=t[r];Array.isArray(i)||i&&"object"===typeof i&&"number"===typeof i.length?n+=w.apply(null,i):n+="object"===typeof i?Object(o["L"])(i):i,n+=" "}return n},_=null,E=!0,O=function(t,e){Object(o["f"])(!e||!0===t||!1===t,"Can't turn on custom loggers persistently."),!0===t?(m.logLevel=s["a"].VERBOSE,_=m.log.bind(m),e&&g.set("logging_enabled",!0)):"function"===typeof t?_=t:(_=null,g.remove("logging_enabled"))},I=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!0===E&&(E=!1,null===_&&!0===g.get("logging_enabled")&&O(!0)),_){var n=w.apply(null,t);_(n)}},T=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];I.apply(void 0,Object(a["f"])([t],Object(a["e"])(e)))}},S=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="FIREBASE INTERNAL ERROR: "+w.apply(void 0,Object(a["f"])([],Object(a["e"])(t)));m.error(n)},k=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="FIREBASE FATAL ERROR: "+w.apply(void 0,Object(a["f"])([],Object(a["e"])(t)));throw m.error(n),new Error(n)},C=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="FIREBASE WARNING: "+w.apply(void 0,Object(a["f"])([],Object(a["e"])(t)));m.warn(n)},x=function(){"undefined"!==typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&C("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().")},j=function(t){return"number"===typeof t&&(t!==t||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY)},A=function(t){if(Object(o["B"])()||"complete"===document.readyState)t();else{var e=!1,n=function(){document.body?e||(e=!0,t()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&n()})),window.attachEvent("onload",n))}},N="[MIN_NAME]",P="[MAX_NAME]",R=function(t,e){if(t===e)return 0;if(t===N||e===P)return-1;if(e===N||t===P)return 1;var n=H(t),r=H(e);return null!==n?null!==r?n-r===0?t.length-e.length:n-r:-1:null!==r?1:t<e?-1:1},D=function(t,e){return t===e?0:t<e?-1:1},L=function(t,e){if(e&&t in e)return e[t];throw new Error("Missing required key ("+t+") in object: "+Object(o["L"])(e))},M=function(t){if("object"!==typeof t||null===t)return Object(o["L"])(t);var e=[];for(var n in t)e.push(n);e.sort();for(var r="{",i=0;i<e.length;i++)0!==i&&(r+=","),r+=Object(o["L"])(e[i]),r+=":",r+=M(t[e[i]]);return r+="}",r},F=function(t,e){var n=t.length;if(n<=e)return[t];for(var r=[],i=0;i<n;i+=e)i+e>n?r.push(t.substring(i,n)):r.push(t.substring(i,i+e));return r};
3228/**
3229 * @license
3230 * Copyright 2017 Google LLC
3231 *
3232 * Licensed under the Apache License, Version 2.0 (the "License");
3233 * you may not use this file except in compliance with the License.
3234 * You may obtain a copy of the License at
3235 *
3236 *   http://www.apache.org/licenses/LICENSE-2.0
3237 *
3238 * Unless required by applicable law or agreed to in writing, software
3239 * distributed under the License is distributed on an "AS IS" BASIS,
3240 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3241 * See the License for the specific language governing permissions and
3242 * limitations under the License.
3243 */function U(t,e){for(var n in t)t.hasOwnProperty(n)&&e(n,t[n])}var q=function(t){Object(o["f"])(!j(t),"Invalid JSON number");var e,n,r,i,a,s=11,u=52,c=(1<<s-1)-1;0===t?(n=0,r=0,e=1/t===-1/0?1:0):(e=t<0,t=Math.abs(t),t>=Math.pow(2,1-c)?(i=Math.min(Math.floor(Math.log(t)/Math.LN2),c),n=i+c,r=Math.round(t*Math.pow(2,u-i)-Math.pow(2,u))):(n=0,r=Math.round(t/Math.pow(2,1-c-u))));var l=[];for(a=u;a;a-=1)l.push(r%2?1:0),r=Math.floor(r/2);for(a=s;a;a-=1)l.push(n%2?1:0),n=Math.floor(n/2);l.push(e?1:0),l.reverse();var f=l.join(""),h="";for(a=0;a<64;a+=8){var d=parseInt(f.substr(a,8),2).toString(16);1===d.length&&(d="0"+d),h+=d}return h.toLowerCase()},$=function(){return!("object"!==typeof window||!window["chrome"]||!window["chrome"]["extension"]||/^chrome/.test(window.location.href))},B=function(){return"object"===typeof Windows&&"object"===typeof Windows.UI};function V(t,e){var n="Unknown Error";"too_big"===t?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===t?n="Client doesn't have permission to access the desired data.":"unavailable"===t&&(n="The service is unavailable");var r=new Error(t+" at "+e._path.toString()+": "+n);return r.code=t.toUpperCase(),r}var K=new RegExp("^-?(0*)\\d{1,10}$"),W=-2147483648,z=2147483647,H=function(t){if(K.test(t)){var e=Number(t);if(e>=W&&e<=z)return e}return null},G=function(t){try{t()}catch(e){setTimeout((function(){var t=e.stack||"";throw C("Exception was thrown by user callback.",t),e}),Math.floor(0))}},X=function(){var t="object"===typeof window&&window["navigator"]&&window["navigator"]["userAgent"]||"";return t.search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},Y=function(t,e){var n=setTimeout(t,e);return"object"===typeof n&&n["unref"]&&n["unref"](),n},Q=function(){function t(t,e){var n=this;this.appName_=t,this.appCheckProvider=e,this.appCheck=null===e||void 0===e?void 0:e.getImmediate({optional:!0}),this.appCheck||null===e||void 0===e||e.get().then((function(t){return n.appCheck=t}))}return t.prototype.getToken=function(t){return this.appCheck?this.appCheck.getToken(t):Promise.resolve(null)},t.prototype.addTokenChangeListener=function(t){var e;null===(e=this.appCheckProvider)||void 0===e||e.get().then((function(e){return e.addTokenListener(t)}))},t.prototype.notifyForInvalidToken=function(){C('Provided AppCheck credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly.')},t}(),J=function(){function t(t,e,n){var r=this;this.appName_=t,this.firebaseOptions_=e,this.authProvider_=n,this.auth_=null,this.auth_=n.getImmediate({optional:!0}),this.auth_||n.get().then((function(t){return r.auth_=t}))}return t.prototype.getToken=function(t){return this.auth_?this.auth_.getToken(t).catch((function(t){return t&&"auth/token-not-initialized"===t.code?(I("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(t)})):Promise.resolve(null)},t.prototype.addTokenChangeListener=function(t){this.auth_?this.auth_.addAuthTokenListener(t):(setTimeout((function(){return t(null)}),0),this.authProvider_.get().then((function(e){return e.addAuthTokenListener(t)})))},t.prototype.removeTokenChangeListener=function(t){this.authProvider_.get().then((function(e){return e.removeAuthTokenListener(t)}))},t.prototype.notifyForInvalidToken=function(){var t='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?t+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?t+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':t+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',C(t)},t}(),Z=function(){function t(t){this.accessToken=t}return t.prototype.getToken=function(t){return Promise.resolve({accessToken:this.accessToken})},t.prototype.addTokenChangeListener=function(t){t(this.accessToken)},t.prototype.removeTokenChangeListener=function(t){},t.prototype.notifyForInvalidToken=function(){},t.OWNER="owner",t}(),tt="5",et="v",nt="s",rt="r",it="f",ot=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,at="ls",st="p",ut="ac",ct="websocket",lt="long_polling",ft=function(){function t(t,e,n,r,i,o,a){void 0===i&&(i=!1),void 0===o&&(o=""),void 0===a&&(a=!1),this.secure=e,this.namespace=n,this.webSocketOnly=r,this.nodeAdmin=i,this.persistenceKey=o,this.includeNamespaceInQueryParams=a,this._host=t.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=v.get("host:"+t)||this._host}return t.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},t.prototype.isCustomHost=function(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain},Object.defineProperty(t.prototype,"host",{get:function(){return this._host},set:function(t){t!==this.internalHost&&(this.internalHost=t,this.isCacheableHost()&&v.set("host:"+this._host,this.internalHost))}
3243,enumerable:!1,configurable:!0}),t.prototype.toString=function(){var t=this.toURLString();return this.persistenceKey&&(t+="<"+this.persistenceKey+">"),t},t.prototype.toURLString=function(){var t=this.secure?"https://":"http://",e=this.includeNamespaceInQueryParams?"?ns="+this.namespace:"";return""+t+this.host+"/"+e},t}();function ht(t){return t.host!==t.internalHost||t.isCustomHost()||t.includeNamespaceInQueryParams}function dt(t,e,n){var r;if(Object(o["f"])("string"===typeof e,"typeof type must == string"),Object(o["f"])("object"===typeof n,"typeof params must == object"),e===ct)r=(t.secure?"wss://":"ws://")+t.internalHost+"/.ws?";else{if(e!==lt)throw new Error("Unknown connection type: "+e);r=(t.secure?"https://":"http://")+t.internalHost+"/.lp?"}ht(t)&&(n["ns"]=t.namespace);var i=[];return U(n,(function(t,e){i.push(t+"="+e)})),r+i.join("&")}
3244/**
3245 * @license
3246 * Copyright 2017 Google LLC
3247 *
3248 * Licensed under the Apache License, Version 2.0 (the "License");
3249 * you may not use this file except in compliance with the License.
3250 * You may obtain a copy of the License at
3251 *
3252 *   http://www.apache.org/licenses/LICENSE-2.0
3253 *
3254 * Unless required by applicable law or agreed to in writing, software
3255 * distributed under the License is distributed on an "AS IS" BASIS,
3256 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3257 * See the License for the specific language governing permissions and
3258 * limitations under the License.
3259 */var pt=function(){function t(){this.counters_={}}return t.prototype.incrementCounter=function(t,e){void 0===e&&(e=1),Object(o["k"])(this.counters_,t)||(this.counters_[t]=0),this.counters_[t]+=e},t.prototype.get=function(){return Object(o["n"])(this.counters_)},t}(),vt={},gt={};
3260/**
3261 * @license
3262 * Copyright 2017 Google LLC
3263 *
3264 * Licensed under the Apache License, Version 2.0 (the "License");
3265 * you may not use this file except in compliance with the License.
3266 * You may obtain a copy of the License at
3267 *
3268 *   http://www.apache.org/licenses/LICENSE-2.0
3269 *
3270 * Unless required by applicable law or agreed to in writing, software
3271 * distributed under the License is distributed on an "AS IS" BASIS,
3272 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3273 * See the License for the specific language governing permissions and
3274 * limitations under the License.
3275 */function mt(t){var e=t.toString();return vt[e]||(vt[e]=new pt),vt[e]}function yt(t,e){var n=t.toString();return gt[n]||(gt[n]=e()),gt[n]}
3276/**
3277 * @license
3278 * Copyright 2017 Google LLC
3279 *
3280 * Licensed under the Apache License, Version 2.0 (the "License");
3281 * you may not use this file except in compliance with the License.
3282 * You may obtain a copy of the License at
3283 *
3284 *   http://www.apache.org/licenses/LICENSE-2.0
3285 *
3286 * Unless required by applicable law or agreed to in writing, software
3287 * distributed under the License is distributed on an "AS IS" BASIS,
3288 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3289 * See the License for the specific language governing permissions and
3290 * limitations under the License.
3291 */var bt=function(){function t(t){this.onMessage_=t,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return t.prototype.closeAfter=function(t,e){this.closeAfterResponse=t,this.onClose=e,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},t.prototype.handleResponse=function(t,e){var n=this;this.pendingResponses[t]=e;var r=function(){var t=i.pendingResponses[i.currentResponseNum];delete i.pendingResponses[i.currentResponseNum];for(var e=function(e){t[e]&&G((function(){n.onMessage_(t[e])}))},r=0;r<t.length;++r)e(r);if(i.currentResponseNum===i.closeAfterResponse)return i.onClose&&(i.onClose(),i.onClose=null),"break";i.currentResponseNum++},i=this;while(this.pendingResponses[this.currentResponseNum]){var o=r();if("break"===o)break}},t}(),wt="start",_t="close",Et="pLPCommand",Ot="pRTLPCB",It="id",Tt="pw",St="ser",kt="cb",Ct="seg",xt="ts",jt="d",At="dframe",Nt=1870,Pt=30,Rt=Nt-Pt,Dt=25e3,Lt=3e4,Mt=function(){function t(t,e,n,r,i,o,a){var s=this;this.connId=t,this.repoInfo=e,this.applicationId=n,this.appCheckToken=r,this.authToken=i,this.transportSessionId=o,this.lastSessionId=a,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=T(t),this.stats_=mt(e),this.urlFn=function(t){return s.appCheckToken&&(t[ut]=s.appCheckToken),dt(e,lt,t)}}return t.prototype.open=function(t,e){var n=this;this.curSegmentNum=0,this.onDisconnect_=e,this.myPacketOrderer=new bt(t),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout((function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null}),Math.floor(Lt)),A((function(){if(!n.isClosed_){n.scriptTagHolder=new Ft((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Object(a["e"])(t,5),i=r[0],o=r[1],s=r[2];r[3],r[4];if(n.incrementIncomingBytes_(t),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,i===wt)n.id=o,n.password=s;else{if(i!==_t)throw new Error("Unrecognized command received: "+i);o?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(o,(function(){n.onClosed_()}))):n.onClosed_()}}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Object(a["e"])(t,2),i=r[0],o=r[1];n.incrementIncomingBytes_(t),n.myPacketOrderer.handleResponse(i,o)}),(function(){n.onClosed_()}),n.urlFn);var t={};t[wt]="t",t[St]=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(t[kt]=n.scriptTagHolder.uniqueCallbackIdentifier),t[et]=tt,n.transportSessionId&&(t[nt]=n.transportSessionId),n.lastSessionId&&(t[at]=n.lastSessionId),n.applicationId&&(t[st]=n.applicationId),n.appCheckToken&&(t[ut]=n.appCheckToken),"undefined"!==typeof location&&location.hostname&&ot.test(location.hostname)&&(t[rt]=it);var e=n.urlFn(t);n.log_("Connecting via long-poll to "+e),n.scriptTagHolder.addTag(e,(function(){}))}}))},t.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},t.forceAllow=function(){t.forceAllow_=!0},t.forceDisallow=function(){t.forceDisallow_=!0},t.isAvailable=function(){return!Object(o["B"])()&&(!!t.forceAllow_||!t.forceDisallow_&&"undefined"!==typeof document&&null!=document.createElement&&!$()&&!B())},t.prototype.markConnectionHealthy=function(){},t.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},t.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},t.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},t.prototype.send=function(t){var e=Object(o["L"])(t);this.bytesSent+=e.length,this.stats_.incrementCounter("bytes_sent",e.length);for(var n=Object(o["i"])(e),r=F(n,Rt),i=0;i<r.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,r.length,r[i]),this.curSegmentNum++},t.prototype.addDisconnectPingFrame=function(t,e){if(!Object(o["B"])()){this.myDisconnFrame=document.createElement("iframe");var n={};n[At]="t",n[It]=t,n[Tt]=e,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},t.prototype.incrementIncomingBytes_=function(t){var e=Object(o["L"])(t).length;this.bytesReceived+=e,this.stats_.incrementCounter("bytes_received",e)},t}(),Ft=function(){function t(e,n,r,i){if(this.onDisconnect=r,this.urlFn=i,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,Object(o["B"])())this.commandCB=e,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=y(),window[Et+this.uniqueCallbackIdentifier]=e,window[Ot+this.uniqueCallbackIdentifier]=n,this.myIFrame=t.createI
3291Frame_();var a="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length)){var s=document.domain;a='<script>document.domain="'+s+'";<\/script>'}var u="<html><body>"+a+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(u),this.myIFrame.doc.close()}catch(c){I("frame writing exception"),c.stack&&I(c.stack),I(c)}}}return t.createIFrame_=function(){var t=document.createElement("iframe");if(t.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(t);try{var e=t.contentWindow.document;e||I("No IE domain setting required")}catch(r){var n=document.domain;t.src="javascript:void((function(){document.open();document.domain='"+n+"';document.close();})())"}return t.contentDocument?t.doc=t.contentDocument:t.contentWindow?t.doc=t.contentWindow.document:t.document&&(t.doc=t.document),t},t.prototype.close=function(){var t=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout((function(){null!==t.myIFrame&&(document.body.removeChild(t.myIFrame),t.myIFrame=null)}),Math.floor(0)));var e=this.onDisconnect;e&&(this.onDisconnect=null,e())},t.prototype.startLongPoll=function(t,e){this.myID=t,this.myPW=e,this.alive=!0;while(this.newRequest_());},t.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var t={};t[It]=this.myID,t[Tt]=this.myPW,t[St]=this.currentSerial;var e=this.urlFn(t),n="",r=0;while(this.pendingSegs.length>0){var i=this.pendingSegs[0];if(!(i.d.length+Pt+n.length<=Nt))break;var o=this.pendingSegs.shift();n=n+"&"+Ct+r+"="+o.seg+"&"+xt+r+"="+o.ts+"&"+jt+r+"="+o.d,r++}return e+=n,this.addLongPollTag_(e,this.currentSerial),!0}return!1},t.prototype.enqueueSegment=function(t,e,n){this.pendingSegs.push({seg:t,ts:e,d:n}),this.alive&&this.newRequest_()},t.prototype.addLongPollTag_=function(t,e){var n=this;this.outstandingRequests.add(e);var r=function(){n.outstandingRequests.delete(e),n.newRequest_()},i=setTimeout(r,Math.floor(Dt)),o=function(){clearTimeout(i),r()};this.addTag(t,o)},t.prototype.addTag=function(t,e){var n=this;Object(o["B"])()?this.doNodeLongPoll(t,e):setTimeout((function(){try{if(!n.sendNewPolls)return;var r=n.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=t,r.onload=r.onreadystatechange=function(){var t=r.readyState;t&&"loaded"!==t&&"complete"!==t||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),e())},r.onerror=function(){I("Long-poll script failed to load: "+t),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(r)}catch(i){}}),Math.floor(1))},t}(),Ut=16384,qt=45e3,$t=null;
3292/**
3293 * @license
3294 * Copyright 2017 Google LLC
3295 *
3296 * Licensed under the Apache License, Version 2.0 (the "License");
3297 * you may not use this file except in compliance with the License.
3298 * You may obtain a copy of the License at
3299 *
3300 *   http://www.apache.org/licenses/LICENSE-2.0
3301 *
3302 * Unless required by applicable law or agreed to in writing, software
3303 * distributed under the License is distributed on an "AS IS" BASIS,
3304 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3305 * See the License for the specific language governing permissions and
3306 * limitations under the License.
3307 */"undefined"!==typeof MozWebSocket?$t=MozWebSocket:"undefined"!==typeof WebSocket&&($t=WebSocket);var Bt=function(){function e(t,n,r,i,o,a,s){this.connId=t,this.applicationId=r,this.appCheckToken=i,this.authToken=o,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=T(this.connId),this.stats_=mt(n),this.connURL=e.connectionURL_(n,a,s,i),this.nodeAdmin=n.nodeAdmin}return e.connectionURL_=function(t,e,n,r){var i={};return i[et]=tt,!Object(o["B"])()&&"undefined"!==typeof location&&location.hostname&&ot.test(location.hostname)&&(i[rt]=it),e&&(i[nt]=e),n&&(i[at]=n),r&&(i[ut]=r),dt(t,ct,i)},e.prototype.open=function(e,n){var r=this;this.onDisconnect=n,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,v.set("previous_websocket_failure",!0);try{if(Object(o["B"])()){var i=this.nodeAdmin?"AdminNode":"Node",a={headers:{"User-Agent":"Firebase/"+tt+"/"+l+"/"+t.platform+"/"+i,"X-Firebase-GMPID":this.applicationId||""}};this.nodeAdmin?a.headers["Authorization"]=this.authToken||"":a.headers["X-Firebase-AppCheck"]=this.appCheckToken||"";var s=Object({VUE_APP_apiKey:"AIzaSyBiC0udW4lthdkpbwPH1FjWn8brpR88-as",VUE_APP_projectId:"cryptoexchange-184fa",VUE_APP_storageBucket:"cryptoexchange-184fa.appspot.com",VUE_APP_authDomain:"cryptoexchange-184fa.firebaseapp.com",VUE_APP_messagingSenderId:"453214051140",VUE_APP_appI
3307d:"1:453214051140:web:e15703622560f052c01511",NODE_ENV:"production",BASE_URL:"/"}),u=0===this.connURL.indexOf("wss://")?s["HTTPS_PROXY"]||s["https_proxy"]:s["HTTP_PROXY"]||s["http_proxy"];u&&(a["proxy"]={origin:u}),this.mySock=new $t(this.connURL,[],a)}else{a={headers:{"X-Firebase-GMPID":this.applicationId||"","X-Firebase-AppCheck":this.appCheckToken||""}};this.mySock=new $t(this.connURL,[],a)}}catch(f){this.log_("Error instantiating WebSocket.");var c=f.message||f.data;return c&&this.log_(c),void this.onClosed_()}this.mySock.onopen=function(){r.log_("Websocket connected."),r.everConnected_=!0},this.mySock.onclose=function(){r.log_("Websocket connection was disconnected."),r.mySock=null,r.onClosed_()},this.mySock.onmessage=function(t){r.handleIncomingFrame(t)},this.mySock.onerror=function(t){r.log_("WebSocket error.  Closing connection.");var e=t.message||t.data;e&&r.log_(e),r.onClosed_()}},e.prototype.start=function(){},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){var t=!1;if("undefined"!==typeof navigator&&navigator.userAgent){var n=/Android ([0-9]{0,}\.[0-9]{0,})/,r=navigator.userAgent.match(n);r&&r.length>1&&parseFloat(r[1])<4.4&&(t=!0)}return!t&&null!==$t&&!e.forceDisallow_},e.previouslyFailed=function(){return v.isInMemoryStorage||!0===v.get("previous_websocket_failure")},e.prototype.markConnectionHealthy=function(){v.remove("previous_websocket_failure")},e.prototype.appendFrame_=function(t){if(this.frames.push(t),this.frames.length===this.totalFrames){var e=this.frames.join("");this.frames=null;var n=Object(o["F"])(e);this.onMessage(n)}},e.prototype.handleNewFrameCount_=function(t){this.totalFrames=t,this.frames=[]},e.prototype.extractFrameCount_=function(t){if(Object(o["f"])(null===this.frames,"We already have a frame buffer"),t.length<=6){var e=Number(t);if(!isNaN(e))return this.handleNewFrameCount_(e),null}return this.handleNewFrameCount_(1),t},e.prototype.handleIncomingFrame=function(t){if(null!==this.mySock){var e=t["data"];if(this.bytesReceived+=e.length,this.stats_.incrementCounter("bytes_received",e.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(e);else{var n=this.extractFrameCount_(e);null!==n&&this.appendFrame_(n)}}},e.prototype.send=function(t){this.resetKeepAlive();var e=Object(o["L"])(t);this.bytesSent+=e.length,this.stats_.incrementCounter("bytes_sent",e.length);var n=F(e,Ut);n.length>1&&this.sendString_(String(n.length));for(var r=0;r<n.length;r++)this.sendString_(n[r])},e.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},e.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},e.prototype.resetKeepAlive=function(){var t=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval((function(){t.mySock&&t.sendString_("0"),t.resetKeepAlive()}),Math.floor(qt))},e.prototype.sendString_=function(t){try{this.mySock.send(t)}catch(e){this.log_("Exception thrown from WebSocket.send():",e.message||e.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},e.responsesRequiredToBeHealthy=2,e.healthyTimeout=3e4,e}(),Vt=function(){function t(t){this.initTransports_(t)}return Object.defineProperty(t,"ALL_TRANSPORTS",{get:function(){return[Mt,Bt]},enumerable:!1,configurable:!0}),t.prototype.initTransports_=function(e){var n,r,i=Bt&&Bt["isAvailable"](),o=i&&!Bt.previouslyFailed();if(e.webSocketOnly&&(i||C("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),o=!0),o)this.transports_=[Bt];else{var s=this.transports_=[];try{for(var u=Object(a["g"])(t.ALL_TRANSPORTS),c=u.next();!c.done;c=u.next()){var l=c.value;l&&l["isAvailable"]()&&s.push(l)}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}},t.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},t.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},t}(),Kt=6e4,Wt=5e3,zt=10240,Ht=102400,Gt="t",Xt="d",Yt="s",Qt="r",Jt="e",Zt="o",te="a",ee="n",ne="p",re="h",ie=function(){function t(t,e,n,r,i,o,a,s,u,c){this.id=t,this.repoInfo_=e,this.applicationId_=n,this.appCheckToken_=r,this.authToken_=i,this.onMessage_=o,this.onReady_=a,this.onDisconnect_=s,this.onKill_=u,this.lastSessionId=c,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=T("c:"+this.id+":"),this.transportManager_=new Vt(e),this.log_("Connection created"),this.start_()}return t.prototype.start_=function(){var t=this,e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.lastSessionId),this.primaryResponsesRequired_=e["responsesRequiredToBeHealthy"]||0;var n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((function(){t.conn_&&t.conn_.open(n,r)}),Math.floor(0));var i=e["healthyTimeout"]||0;i>0&&(this.healthyTimeout_=Y((function(){t.healthyTimeout_=null,t.isHealthy_||(t.conn_&&t.conn_.bytesReceived>
3307Ht?(t.log_("Connection exceeded healthy timeout but has received "+t.conn_.bytesReceived+" bytes.  Marking connection healthy."),t.isHealthy_=!0,t.conn_.markConnectionHealthy()):t.conn_&&t.conn_.bytesSent>zt?t.log_("Connection exceeded healthy timeout but has sent "+t.conn_.bytesSent+" bytes.  Leaving connection alive."):(t.log_("Closing unhealthy connection after timeout."),t.close()))}),Math.floor(i)))},t.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},t.prototype.disconnReceiver_=function(t){var e=this;return function(n){t===e.conn_?e.onConnectionLost_(n):t===e.secondaryConn_?(e.log_("Secondary connection lost."),e.onSecondaryConnectionLost_()):e.log_("closing an old connection")}},t.prototype.connReceiver_=function(t){var e=this;return function(n){2!==e.state_&&(t===e.rx_?e.onPrimaryMessageReceived_(n):t===e.secondaryConn_?e.onSecondaryMessageReceived_(n):e.log_("message on old connection"))}},t.prototype.sendRequest=function(t){var e={t:"d",d:t};this.sendData_(e)},t.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},t.prototype.onSecondaryControl_=function(t){if(Gt in t){var e=t[Gt];e===te?this.upgradeIfSecondaryHealthy_():e===Qt?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):e===Zt&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},t.prototype.onSecondaryMessageReceived_=function(t){var e=L("t",t),n=L("d",t);if("c"===e)this.onSecondaryControl_(n);else{if("d"!==e)throw new Error("Unknown protocol layer: "+e);this.pendingDataMessages.push(n)}},t.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:ne,d:{}}}))},t.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:te,d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:ee,d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},t.prototype.onPrimaryMessageReceived_=function(t){var e=L("t",t),n=L("d",t);"c"===e?this.onControl_(n):"d"===e&&this.onDataMessage_(n)},t.prototype.onDataMessage_=function(t){this.onPrimaryResponse_(),this.onMessage_(t)},t.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},t.prototype.onControl_=function(t){var e=L(Gt,t);if(Xt in t){var n=t[Xt];if(e===re)this.onHandshake_(n);else if(e===ee){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var r=0;r<this.pendingDataMessages.length;++r)this.onDataMessage_(this.pendingDataMessages[r]);this.pendingDataMessages=[],this.tryCleanupConnection()}else e===Yt?this.onConnectionShutdown_(n):e===Qt?this.onReset_(n):e===Jt?S("Server Error: "+n):e===Zt?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):S("Unknown control packet command: "+e)}},t.prototype.onHandshake_=function(t){var e=t.ts,n=t.v,r=t.h;this.sessionId=t.s,this.repoInfo_.host=r,0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,e),tt!==n&&C("Protocol version mismatch detected"),this.tryStartUpgrade_())},t.prototype.tryStartUpgrade_=function(){var t=this.transportManager_.upgradeTransport();t&&this.startUpgrade_(t)},t.prototype.startUpgrade_=function(t){var e=this;this.secondaryConn_=new t(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=t["responsesRequiredToBeHealthy"]||0;var n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),Y((function(){e.secondaryConn_&&(e.log_("Timed out trying to upgrade."),e.secondaryConn_.close())}),Math.floor(Kt))},t.prototype.onReset_=function(t){this.log_("Reset packet received.  New host: "+t),this.repoInfo_.host=t,1===this.state_?this.close():(this.closeConnections_(),this.start_())},t.prototype.onConnectionEstablished_=function(t,e){var n=this;this.log_("Realtime connection established."),this.conn_=t,this.state_=1,this.onReady_&&(this.onReady_(e,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):Y((function(){n.sendPingOnPrimaryIfNecessary_()}),Math.floor(Wt))},t.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:ne,d:{}}}))},t.prototype.onSecondaryConnectionLost_=function(){var t=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==t&&this.rx_!==t||this.close()},t.prototype.onConnectionLost_=function(t){this.conn_=null,t||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(v.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},t.prototype.onConnectionShutdown_=function(t){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(t),this.onKill_=null),this.onDisconnect_=null,this.close()},t.prototype.sendData_=function(t){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(t)},t.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},t.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},t}(),oe=function(){function t(){}return t.prototype.put=function(t,e,n,r){},t.prototype.merge=function(t,e,n,r){},t.prototype.refreshAuthToken=function(t){},t.prototype.refreshAppCheckToken=function(t){},t.prototype.onDisconnectPut=function(t,e,n){},t.prototype.onDisconnectMerge=function(t,e,n){},t.prototype.onDisconnectCancel=function(t,e){},t.prototype.reportStats=function(t){},t}(),ae=function(){function t(t){this.allowedEvents_=t,this.listeners_={},Object(o["f"])(Array.isArray(t)&&t.length>0,"Requires a non-empty array")}return t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Array.isArray(this.listeners_[t]))for(var r=Object(a["f"])([],Object(a["e"])(this.listeners_[t])),i=0;i<r.length;i++)r[i].callback.apply(r[i].context,e)},t.prototype.on=function(t,e,n){this.validateEventType_(t),this.listeners_[t]=this.listeners_[t]||[],this.listeners_[t].push({callback:e,context:n});var r=this.getInitialEvent(t);r&&e.apply(n,r)},t.prototype.off=function(t,e,n){this.validateEventType_(t);for(var r=this.listeners_[t]||[],i=0;i<r.length;i++)if(r[i].callback===e&&(!n||n===r[i].context))return void r.splice(i,1)},t.prototype.validateEventType_=function(t){Object(o["f"])(this.allowedEvents_.find((function(e){return e===t})),"Unknown event: "+t)},t}(),se=function(t){function e(){var e=t.call(this,["online"])||this;return e.online_=!0,"undefined"===typeof window||"undefined"===typeof window.addEventListener||Object(o["z"])()||(window.addEventListener("online",(function(){e.online_||(e.online_=!0,e.trigger("online",!0))}),!1),window.addEventListener("offline",(function(){e.online_&&(e.online_=!1,e.trigger("online",!1))}),!1)),e}return Object(a["c"])(e,t),e.getInstance=function(){return new e},e.prototype.getInitialEvent=function(t){return Object(o["f"])("online"===t,"Unknown event type: "+t),[this.online_]},e.prototype.currentlyOnline=function(){return this.online_},e}(ae),ue=32,ce=768,le=function(){function t(t,e){if(void 0===e){this.pieces_=t.split("/");for(var n=0,r=0;r<this.pieces_.length;r++)this.pieces_[r].length>0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=t,this.pieceNum_=e}return t.prototype.toString=function(){for(var t="",e=this.pieceNum_;e<this.pieces_.length;e++)""!==this.pieces_[e]&&(t+="/"+this.pieces_[e]);return t||"/"},t}();
3308/**
3309 * @license
3310 * Copyright 2017 Google LLC
3311 *
3312 * Licensed under the Apache License, Version 2.0 (the "License");
3313 * you may not use this file except in compliance with the License.
3314 * You may obtain a copy of the License at
3315 *
3316 *   http://www.apache.org/licenses/LICENSE-2.0
3317 *
3318 * Unless required by applicable law or agreed to in writing, software
3319 * distributed under the License is distributed on an "AS IS" BASIS,
3320 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3321 * See the License for the specific language governing permissions and
3322 * limitations under the License.
3323 */function fe(){return new le("")}function he(t){return t.pieceNum_>=t.pieces_.length?null:t.pieces_[t.pieceNum_]}function de(t){return t.pieces_.length-t.pieceNum_}function pe(t){var e=t.pieceNum_;return e<t.pieces_.length&&e++,new le(t.pieces_,e)}function ve(t){return t.pieceNum_<t.pieces_.length?t.pieces_[t.pieces_.length-1]:null}function ge(t){for(var e="",n=t.pieceNum_;n<t.pieces_.length;n++)""!==t.pieces_[n]&&(e+="/"+encodeURIComponent(String(t.pieces_[n])));return e||"/"}function me(t,e){return void 0===e&&(e=0),t.pieces_.slice(t.pieceNum_+e)}function ye(t){if(t.pieceNum_>=t.pieces_.length)return null;for(var e=[],n=t.pieceNum_;n<t.pieces_.length-1;n++)e.push(t.pieces_[n]);return new le(e,0)}function be(t,e){for(var n=[],r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);if(e instanceof le)for(r=e.pieceNum_;r<e.pieces_.length;r++)n.push(e.pieces_[r]);else{var i=e.split("/");for(r=0;r<i.length;r++)i[r].length>0&&n.push(i[r])}return new le(n,0)}function we(t){return t.pieceNum_>=t.pieces_.length}function _e(t,e){var n=he(t),r=he(e);if(null===n)return e;if(n===r)return _e(pe(t),pe(e));throw new Error("INTERNAL ERROR: innerPath ("+e+") is not within outerPath ("+t+")")}function Ee(t,e){for(var n=me(t,0),r=me(e,0),i=0;i<n.length&&i<r.length;i++){var o=R(n[i],r[i]);if(0!==o)return o}return n.length===r.length?0:n.length<r.length?-1:1}function Oe(t,e){if(de(t)!==de(e))return!1;for(var n=t.pieceNum_,r=e.pieceNum_;n<=t.pieces_.length;n++,r++)if(t.pieces_[n]!==e.pieces_[r])return!1;return!0}function Ie(t,e){var n=t.pieceNum_,r=e.pieceNum_;if(de(t)>de(e))return!1;while(n<t.pieces_.length){if(t.pieces_[n]!==e.pieces_[r])return!1;++n,++r}return!0}var Te=function(){function t(t,e){this.errorPrefix_=e,this.parts_=me(t,0),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=Object(o["J"])(this.parts_[n]);Ce(this)}return t}();function Se(t,e){t.parts_.length>0&&(t.byteLength_+=1),t.parts_.push(e),t.byteLength_+=Object(o["J"])(e),Ce(t)}function ke(t){var e=t.parts_.pop();t.byteLength_-=Object(o["J"])(e),t.parts_.length>0&&(t.byteLength_-=1)}function Ce(t){if(t.byteLength_>ce)throw new Error(t.errorPrefix_+"has a key path longer than "+ce+" bytes ("+t.byteLength_+").");if(t.parts_.length>ue)throw new Error(t.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+ue+") or object contains a cycle "+xe(t))}function xe(t){return 0===t.parts_.length?"":"in property '"+t.parts_.join(".")+"'"}
3324/**
3325 * @license
3326 * Copyright 2017 Google LLC
3327 *
3328 * Licensed under the Apache License, Version 2.0 (the "License");
3329 * you may not use this file except in compliance with the License.
3330 * You may obtain a copy of the License at
3331 *
3332 *   http://www.apache.org/licenses/LICENSE-2.0
3333 *
3334 * Unless required by applicable law or agreed to in writing, software
3335 * distributed under the License is distributed on an "AS IS" BASIS,
3336 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3337 * See the License for the specific language governing permissions and
3338 * limitations under the License.
3339 */var je,Ae,Ne=function(t){function e(){var e,n,r=t.call(this,["visible"])||this;return"undefined"!==typeof document&&"undefined"!==typeof document.addEventListener&&("undefined"!==typeof document["hidden"]?(n="visibilitychange",e="hidden"):"undefined"!==typeof document["mozHidden"]?(n="mozvisibilitychange",e="mozHidden"):"undefined"!==typeof document["msHidden"]?(n="msvisibilitychange",e="msHidden"):"undefined"!==typeof document["webkitHidden"]&&(n="webkitvisibilitychange",e="webkitHidden")),r.visible_=!0,n&&document.addEventListener(n,(function(){var t=!document[e];t!==r.visible_&&(r.visible_=t,r.trigger("visible",t))}),!1),r}return Object(a["c"])(e,t),e.getInstance=function(){return new e},e.prototype.getInitialEvent=function(t){return Object(o["f"])("visible"===t,"Unknown event type: "+t),[this.visible_]},e}(ae),Pe=1e3,Re=3e5,De=3e3,Le=3e4,Me=1.3,Fe=3e4,Ue="server_kill",qe=3,$e=function(t){function e(n,r,i,a,s,u,c,l){var f=t.call(this)||this;if(f.repoInfo_=n,f.applicationId_=r,f.onDataUpdate_=i,f.onConnectStatus_=a,f.onServerInfoUpdate_=s,f.authTokenProvider_=u,f.appCheckTokenProvider_=c,f.authOverride_=l,f.id=e.nextPersistentConnectionId_++,f.log_=T("p:"+f.id+":"),f.interruptReasons_={},f.listens=new Map,f.outstandingPuts_=[],f.outstandingGets_=[],f.outstandingPutCount_=0,f.outstandingGetCount_=0,f.onDisconnectRequestQueue_=[],f.connected_=!1,f.reconnectDelay_=Pe,f.maxReconnectDelay_=Re,f.securityDebugCallback_=null,f.lastSessionId=null,f.establishConnectionTimer_=null,f.visible_=!1,f.requestCBHash_={},f.requestNumber_=0,f.realtime_=null,f.authToken_=null,f.appCheckToken_=null,f.forceTokenRefresh_=!1,f.invalidAuthTokenCount_=0,f.invalidAppCheckTokenCount_=0,f.firstConnection_=!0,f.lastConnectionAttemptTime_=null,f.last
3339ConnectionEstablishedTime_=null,l&&!Object(o["B"])())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return f.scheduleConnect_(0),Ne.getInstance().on("visible",f.onVisible_,f),-1===n.host.indexOf("fblocal")&&se.getInstance().on("online",f.onOnline_,f),f}return Object(a["c"])(e,t),e.prototype.sendRequest=function(t,e,n){var r=++this.requestNumber_,i={r:r,a:t,b:e};this.log_(Object(o["L"])(i)),Object(o["f"])(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)},e.prototype.get=function(t){var e=this,n=new o["a"],r={p:t._path.toString(),q:t._queryObject},i={action:"g",request:r,onComplete:function(t){var i=t["d"];"ok"===t["s"]?(e.onDataUpdate_(r["p"],i,!1,null),n.resolve(i)):n.reject(i)}};this.outstandingGets_.push(i),this.outstandingGetCount_++;var a=this.outstandingGets_.length-1;return this.connected_||setTimeout((function(){var t=e.outstandingGets_[a];void 0!==t&&i===t&&(delete e.outstandingGets_[a],e.outstandingGetCount_--,0===e.outstandingGetCount_&&(e.outstandingGets_=[]),e.log_("get "+a+" timed out on connection"),n.reject(new Error("Client is offline.")))}),De),this.connected_&&this.sendGet_(a),n.promise},e.prototype.listen=function(t,e,n,r){var i=t._queryIdentifier,a=t._path.toString();this.log_("Listen called for "+a+" "+i),this.listens.has(a)||this.listens.set(a,new Map),Object(o["f"])(t._queryParams.isDefault()||!t._queryParams.loadsAllData(),"listen() called for non-default but complete query"),Object(o["f"])(!this.listens.get(a).has(i),"listen() called twice for same path/queryId.");var s={onComplete:r,hashFn:e,query:t,tag:n};this.listens.get(a).set(i,s),this.connected_&&this.sendListen_(s)},e.prototype.sendGet_=function(t){var e=this,n=this.outstandingGets_[t];this.sendRequest("g",n.request,(function(r){delete e.outstandingGets_[t],e.outstandingGetCount_--,0===e.outstandingGetCount_&&(e.outstandingGets_=[]),n.onComplete&&n.onComplete(r)}))},e.prototype.sendListen_=function(t){var n=this,r=t.query,i=r._path.toString(),o=r._queryIdentifier;this.log_("Listen on "+i+" for "+o);var a={p:i},s="q";t.tag&&(a["q"]=r._queryObject,a["t"]=t.tag),a["h"]=t.hashFn(),this.sendRequest(s,a,(function(a){var s=a["d"],u=a["s"];e.warnOnListenWarnings_(s,r);var c=n.listens.get(i)&&n.listens.get(i).get(o);c===t&&(n.log_("listen response",a),"ok"!==u&&n.removeListen_(i,o),t.onComplete&&t.onComplete(u,s))}))},e.warnOnListenWarnings_=function(t,e){if(t&&"object"===typeof t&&Object(o["k"])(t,"w")){var n=Object(o["I"])(t,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var r='".indexOn": "'+e._queryParams.getIndex().toString()+'"',i=e._path.toString();C("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+r+" at "+i+" to your security rules for better performance.")}}},e.prototype.refreshAuthToken=function(t){this.authToken_=t,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(function(){})),this.reduceReconnectDelayIfAdminCredential_(t)},e.prototype.reduceReconnectDelayIfAdminCredential_=function(t){var e=t&&40===t.length;(e||Object(o["s"])(t))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=Le)},e.prototype.refreshAppCheckToken=function(t){this.appCheckToken_=t,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},(function(){}))},e.prototype.tryAuth=function(){var t=this;if(this.connected_&&this.authToken_){var e=this.authToken_,n=Object(o["E"])(e)?"auth":"gauth",r={cred:e};null===this.authOverride_?r["noauth"]=!0:"object"===typeof this.authOverride_&&(r["authvar"]=this.authOverride_),this.sendRequest(n,r,(function(n){var r=n["s"],i=n["d"]||"error";t.authToken_===e&&("ok"===r?t.invalidAuthTokenCount_=0:t.onAuthRevoked_(r,i))}))}},e.prototype.tryAppCheck=function(){var t=this;this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},(function(e){var n=e["s"],r=e["d"]||"error";"ok"===n?t.invalidAppCheckTokenCount_=0:t.onAppCheckRevoked_(n,r)}))},e.prototype.unlisten=function(t,e){var n=t._path.toString(),r=t._queryIdentifier;this.log_("Unlisten called for "+n+" "+r),Object(o["f"])(t._queryParams.isDefault()||!t._queryParams.loadsAllData(),"unlisten() called for non-default but complete query");var i=this.removeListen_(n,r);i&&this.connected_&&this.sendUnlisten_(n,r,t._queryObject,e)},e.prototype.sendUnlisten_=function(t,e,n,r){this.log_("Unlisten on "+t+" for "+e);var i={p:t},o="n";r&&(i["q"]=n,i["t"]=r),this.sendRequest(o,i)},e.prototype.onDisconnectPut=function(t,e,n){this.connected_?this.sendOnDisconnect_("o",t,e,n):this.onDisconnectRequestQueue_.push({pathString:t,action:"o",data:e,onComplete:n})},e.prototype.onDisconnectMerge=function(t,e,n){this.connected_?this.sendOnDisconnect_("om",t,e,n):this.onDisconnectRequestQueue_.push({pathString:t,action:"om",data:e,onComplete:n})},e.prototype.onDisconnectCancel=function(t,e){this.connected_?this.sendOnDisconnect_("oc",t,null,e):this.onDisconnectRequestQueue_.push({pathString:t,action:"oc",data:null,onComplete:e})},e.prototype.sendOnDisconnect_=function(t,e,n,r){var i={p:e,d:n};this.log_("onDisconnect "+t,i),this.sendRequest(t,i,(function(t){r&&setTimeout((function(){r(t["s"],t["d"])}),Math.floor(0))}))},e.prototype.put=function(t,e,n,r){this.putInternal("p",t,e,n,r)},e.prototype.merge=function(t,e,n,r){this.putInternal("m",t,e,n,r)},e.prototype.putInternal=function(t,e,n,r,i){var o={p:e,d:n};void 0!==i&&(o["h"]=i),this.outstandingPuts_.push({action:t,request:o,onComplete:r}),this.outstandingPutCount_++;var a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+e)},e.prototype.sendPut_=function(t){var e=this,n=this.outstandingPuts_[t].action,r=this.outstandingPuts_[t].request,i=this.outstandingPuts_[t].onComplete;this.outstandingPuts_[t].queued=this.connected_,this.sendRequest(n,r,(function(r){e.log_(n+" response",r),delete e.outstandingPuts_[t],e.outstandingPutCount_--,0===e.outstandingPutCount_&&(e.outstandingPuts_=[]),i&&i(r["s"],r["d"])}))},e.prototype.reportStats=function(t){var e=this;if(this.connected_){var n={c:t};this.log_("reportStats",n),this.sendRequest("s",n,(function(t){var n=t["s"];if("ok"!==n){var r=t["d"];e.log_("reportStats","Error sending stats: "+r)}}
3339))}},e.prototype.onDataMessage_=function(t){if("r"in t){this.log_("from server: "+Object(o["L"])(t));var e=t["r"],n=this.requestCBHash_[e];n&&(delete this.requestCBHash_[e],n(t["b"]))}else{if("error"in t)throw"A server-side error has occurred: "+t["error"];"a"in t&&this.onDataPush_(t["a"],t["b"])}},e.prototype.onDataPush_=function(t,e){this.log_("handleServerMessage",t,e),"d"===t?this.onDataUpdate_(e["p"],e["d"],!1,e["t"]):"m"===t?this.onDataUpdate_(e["p"],e["d"],!0,e["t"]):"c"===t?this.onListenRevoked_(e["p"],e["q"]):"ac"===t?this.onAuthRevoked_(e["s"],e["d"]):"apc"===t?this.onAppCheckRevoked_(e["s"],e["d"]):"sd"===t?this.onSecurityDebugPacket_(e):S("Unrecognized action received from server: "+Object(o["L"])(t)+"\nAre you using the latest client?")},e.prototype.onReady_=function(t,e){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(t),this.lastSessionId=e,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},e.prototype.scheduleConnect_=function(t){var e=this;Object(o["f"])(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((function(){e.establishConnectionTimer_=null,e.establishConnection_()}),Math.floor(t))},e.prototype.onVisible_=function(t){t&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=Pe,this.realtime_||this.scheduleConnect_(0)),this.visible_=t},e.prototype.onOnline_=function(t){t?(this.log_("Browser went online."),this.reconnectDelay_=Pe,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())},e.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){var t=(new Date).getTime()-this.lastConnectionEstablishedTime_;t>Fe&&(this.reconnectDelay_=Pe),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var e=(new Date).getTime()-this.lastConnectionAttemptTime_,n=Math.max(0,this.reconnectDelay_-e);n=Math.random()*n,this.log_("Trying to reconnect in "+n+"ms"),this.scheduleConnect_(n),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,this.reconnectDelay_*Me)}this.onConnectStatus_(!1)},e.prototype.establishConnection_=function(){return Object(a["b"])(this,void 0,void 0,(function(){var t,n,r,i,s,u,c,l,f,h,d,p,v,g,m=this;return Object(a["d"])(this,(function(y){switch(y.label){case 0:if(!this.shouldReconnect_())return[3,4];this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null,t=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+":"+e.nextConnectionId_++,s=this.lastSessionId,u=!1,c=null,l=function(){c?c.close():(u=!0,r())},f=function(t){Object(o["f"])(c,"sendRequest call when we're not connected not allowed."),c.sendRequest(t)},this.realtime_={close:l,sendRequest:f},h=this.forceTokenRefresh_,this.forceTokenRefresh_=!1,y.label=1;case 1:return y.trys.push([1,3,,4]),[4,Promise.all([this.authTokenProvider_.getToken(h),this.appCheckTokenProvider_.getToken(h)])];case 2:return d=a["e"].apply(void 0,[y.sent(),2]),p=d[0],v=d[1],u?I("getToken() completed but was canceled"):(I("getToken() completed. Creating connection."),this.authToken_=p&&p.accessToken,this.appCheckToken_=v&&v.token,c=new ie(i,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,t,n,r,(function(t){C(t+" ("+m.repoInfo_.toString()+")"),m.interrupt(Ue)}),s)),[3,4];case 3:return g=y.sent(),this.log_("Failed to get token: "+g),u||(this.repoInfo_.nodeAdmin&&C(g),l()),[3,4];case 4:return[2]}}
3339))}))},e.prototype.interrupt=function(t){I("Interrupting connection for reason: "+t),this.interruptReasons_[t]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},e.prototype.resume=function(t){I("Resuming connection for reason: "+t),delete this.interruptReasons_[t],Object(o["w"])(this.interruptReasons_)&&(this.reconnectDelay_=Pe,this.realtime_||this.scheduleConnect_(0))},e.prototype.handleTimestamp_=function(t){var e=t-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:e})},e.prototype.cancelSentTransactions_=function(){for(var t=0;t<this.outstandingPuts_.length;t++){var e=this.outstandingPuts_[t];e&&"h"in e.request&&e.queued&&(e.onComplete&&e.onComplete("disconnect"),delete this.outstandingPuts_[t],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},e.prototype.onListenRevoked_=function(t,e){var n;n=e?e.map((function(t){return M(t)})).join("$"):"default";var r=this.removeListen_(t,n);r&&r.onComplete&&r.onComplete("permission_denied")},e.prototype.removeListen_=function(t,e){var n,r=new le(t).toString();if(this.listens.has(r)){var i=this.listens.get(r);n=i.get(e),i.delete(e),0===i.size&&this.listens.delete(r)}else n=void 0;return n},e.prototype.onAuthRevoked_=function(t,e){I("Auth token revoked: "+t+"/"+e),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==t&&"permission_denied"!==t||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=qe&&(this.reconnectDelay_=Le,this.authTokenProvider_.notifyForInvalidToken()))},e.prototype.onAppCheckRevoked_=function(t,e){I("App check token revoked: "+t+"/"+e),this.appCheckToken_=null,this.forceTokenRefresh_=!0,"invalid_token"!==t&&"permission_denied"!==t||(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=qe&&this.appCheckTokenProvider_.notifyForInvalidToken())},e.prototype.onSecurityDebugPacket_=function(t){this.securityDebugCallback_?this.securityDebugCallback_(t):"msg"in t&&console.log("FIREBASE: "+t["msg"].replace("\n","\nFIREBASE: "))},e.prototype.restoreState_=function(){var t,e,n,r;this.tryAuth(),this.tryAppCheck();try{for(var i=Object(a["g"])(this.listens.values()),o=i.next();!o.done;o=i.next()){var s=o.value;try{for(var u=(n=void 0,Object(a["g"])(s.values())),c=u.next();!c.done;c=u.next()){var l=c.value;this.sendListen_(l)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(p){t={error:p}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}for(var f=0;f<this.outstandingPuts_.length;f++)this.outstandingPuts_[f]&&this.sendPut_(f);while(this.onDisconnectRequestQueue_.length){var h=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(h.action,h.pathString,h.data,h.onComplete)}for(f=0;f<this.outstandingGets_.length;f++)this.outstandingGets_[f]&&this.sendGet_(f)},e.prototype.sendConnectStats_=function(){var t={},e="js";Object(o["B"])()&&(e=this.repoInfo_.nodeAdmin?"admin_node":"node"),t["sdk."+e+"."+l.replace(/\./g,"-")]=1,Object(o["z"])()?t["framework.cordova"]=1:Object(o["C"])()&&(t["framework.reactnative"]=1),this.reportStats(t)},e.prototype.shouldReconnect_=function(){var t=se.getInstance().currentlyOnline();return Object(o["w"])(this.interruptReasons_)&&t},e.nextPersistentConnectionId_=0,e.nextConnectionId_=0,e}(oe),Be=function(){function t(t,e){this.name=t,this.node=e}return t.Wrap=function(e,n){return new t(e,n)},t}(),Ve=function(){function t(){}return t.prototype.getCompare=function(){return this.compare.bind(this)},t.prototype.indexedValueChanged=function(t,e){var n=new Be(N,t),r=new Be(N,e);return 0!==this.compare(n,r)},t.prototype.minPost=function(){return Be.MIN},t}(),Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["c"])(e,t),Object.defineProperty(e,"__EMPTY_NODE",{get:function(){return je},set:function(t){je=t},enumerable:!1,configurable:!0}),e.prototype.compare=function(t,e){return R(t.name,e.name)},e.prototype.isDefinedOn=function(t){throw Object(o["g"])("KeyIndex.isDefinedOn not expected to be called.")},e.prototype.indexedValueChanged=function(t,e){return!1},e.prototype.minPost=function(){return Be.MIN}
3339,e.prototype.maxPost=function(){return new Be(P,je)},e.prototype.makePost=function(t,e){return Object(o["f"])("string"===typeof t,"KeyIndex indexValue must always be a string."),new Be(t,je)},e.prototype.toString=function(){return".key"},e}(Ve),We=new Ke,ze=function(){function t(t,e,n,r,i){void 0===i&&(i=null),this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];var o=1;while(!t.isEmpty())if(t=t,o=e?n(t.key,e):1,r&&(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 t.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var t,e=this.nodeStack_.pop();if(t=this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value},this.isReverse_){e=e.left;while(!e.isEmpty())this.nodeStack_.push(e),e=e.right}else{e=e.right;while(!e.isEmpty())this.nodeStack_.push(e),e=e.left}return t},t.prototype.hasNext=function(){return this.nodeStack_.length>0},t.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var t=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value}},t}(),He=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:Xe.EMPTY_NODE,this.right=null!=o?o:Xe.EMPTY_NODE}return t.prototype.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.count=function(){return this.left.count()+1+this.right.count()},t.prototype.isEmpty=function(){return!1},t.prototype.inorderTraversal=function(t){return this.left.inorderTraversal(t)||!!t(this.key,this.value)||this.right.inorderTraversal(t)},t.prototype.reverseTraversal=function(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)},t.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},t.prototype.minKey=function(){return this.min_().key},t.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},t.prototype.insert=function(t,e,n){var r=this,i=n(t,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.insert(t,e,n)),r.fixUp_()},t.prototype.removeMin_=function(){if(this.left.isEmpty())return Xe.EMPTY_NODE;var t=this;return t.left.isRed_()||t.left.left.isRed_()||(t=t.moveRedLeft_()),t=t.copy(null,null,null,t.left.removeMin_(),null),t.fixUp_()},t.prototype.remove=function(t,e){var n,r;if(n=this,e(t,n.key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(t,e),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===e(t,n.key)){if(n.right.isEmpty())return Xe.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(t,e))}return n.fixUp_()},t.prototype.isRed_=function(){return this.color},t.prototype.fixUp_=function(){var t=this;return t.right.isRed_()&&!t.left.isRed_()&&(t=t.rotateLeft_()),t.left.isRed_()&&t.left.left.isRed_()&&(t=t.rotateRight_()),t.left.isRed_()&&t.right.isRed_()&&(t=t.colorFlip_()),t},t.prototype.moveRedLeft_=function(){var t=this.colorFlip_();return t.right.left.isRed_()&&(t=t.copy(null,null,null,null,t.right.rotateRight_()),t=t.rotateLeft_(),t=t.colorFlip_()),t},t.prototype.moveRedRight_=function(){var t=this.colorFlip_();return t.left.left.isRed_()&&(t=t.rotateRight_(),t=t.colorFlip_()),t},t.prototype.rotateLeft_=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.rotateRight_=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.colorFlip_=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.checkMaxDepth_=function(){var t=this.check_();return Math.pow(2,t)<=this.count()+1},t.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_()
3339)throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var t=this.left.check_();if(t!==this.right.check_())throw new Error("Black depths differ");return t+(this.isRed_()?0:1)},t.RED=!0,t.BLACK=!1,t}(),Ge=function(){function t(){}return t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.insert=function(t,e,n){return new He(t,e,null)},t.prototype.remove=function(t,e){return this},t.prototype.count=function(){return 0},t.prototype.isEmpty=function(){return!0},t.prototype.inorderTraversal=function(t){return!1},t.prototype.reverseTraversal=function(t){return!1},t.prototype.minKey=function(){return null},t.prototype.maxKey=function(){return null},t.prototype.check_=function(){return 0},t.prototype.isRed_=function(){return!1},t}(),Xe=function(){function t(e,n){void 0===n&&(n=t.EMPTY_NODE),this.comparator_=e,this.root_=n}return t.prototype.insert=function(e,n){return new t(this.comparator_,this.root_.insert(e,n,this.comparator_).copy(null,null,He.BLACK,null,null))},t.prototype.remove=function(e){return new t(this.comparator_,this.root_.remove(e,this.comparator_).copy(null,null,He.BLACK,null,null))},t.prototype.get=function(t){var e,n=this.root_;while(!n.isEmpty()){if(e=this.comparator_(t,n.key),0===e)return n.value;e<0?n=n.left:e>0&&(n=n.right)}return null},t.prototype.getPredecessorKey=function(t){var e,n=this.root_,r=null;while(!n.isEmpty()){if(e=this.comparator_(t,n.key),0===e){if(n.left.isEmpty())return r?r.key:null;n=n.left;while(!n.right.isEmpty())n=n.right;return n.key}e<0?n=n.left:e>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")},t.prototype.isEmpty=function(){return this.root_.isEmpty()},t.prototype.count=function(){return this.root_.count()},t.prototype.minKey=function(){return this.root_.minKey()},t.prototype.maxKey=function(){return this.root_.maxKey()},t.prototype.inorderTraversal=function(t){return this.root_.inorderTraversal(t)},t.prototype.reverseTraversal=function(t){return this.root_.reverseTraversal(t)},t.prototype.getIterator=function(t){return new ze(this.root_,null,this.comparator_,!1,t)},t.prototype.getIteratorFrom=function(t,e){return new ze(this.root_,t,this.comparator_,!1,e)},t.prototype.getReverseIteratorFrom=function(t,e){return new ze(this.root_,t,this.comparator_,!0,e)},t.prototype.getReverseIterator=function(t){return new ze(this.root_,null,this.comparator_,!0,t)},t.EMPTY_NODE=new Ge,t}();
3340/**
3341 * @license
3342 * Copyright 2017 Google LLC
3343 *
3344 * Licensed under the Apache License, Version 2.0 (the "License");
3345 * you may not use this file except in compliance with the License.
3346 * You may obtain a copy of the License at
3347 *
3348 *   http://www.apache.org/licenses/LICENSE-2.0
3349 *
3350 * Unless required by applicable law or agreed to in writing, software
3351 * distributed under the License is distributed on an "AS IS" BASIS,
3352 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3353 * See the License for the specific language governing permissions and
3354 * limitations under the License.
3355 */
3356/**
3357 * @license
3358 * Copyright 2017 Google LLC
3359 *
3360 * Licensed under the Apache License, Version 2.0 (the "License");
3361 * you may not use this file except in compliance with the License.
3362 * You may obtain a copy of the License at
3363 *
3364 *   http://www.apache.org/licenses/LICENSE-2.0
3365 *
3366 * Unless required by applicable law or agreed to in writing, software
3367 * distributed under the License is distributed on an "AS IS" BASIS,
3368 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3369 * See the License for the specific language governing permissions and
3370 * limitations under the License.
3371 */
3372function Ye(t,e){return R(t.name,e.name)}function Qe(t,e){return R(t,e)}
3373/**
3374 * @license
3375 * Copyright 2017 Google LLC
3376 *
3377 * Licensed under the Apache License, Version 2.0 (the "License");
3378 * you may not use this file except in compliance with the License.
3379 * You may obtain a copy of the License at
3380 *
3381 *   http://www.apache.org/licenses/LICENSE-2.0
3382 *
3383 * Unless required by applicable law or agreed to in writing, softw
3383are
3384 * distributed under the License is distributed on an "AS IS" BASIS,
3385 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3386 * See the License for the specific language governing permissions and
3387 * limitations under the License.
3388 */function Je(t){Ae=t}var Ze,tn,en,nn=function(t){return"number"===typeof t?"number:"+q(t):"string:"+t},rn=function(t){if(t.isLeafNode()){var e=t.val();Object(o["f"])("string"===typeof e||"number"===typeof e||"object"===typeof e&&Object(o["k"])(e,".sv"),"Priority must be a string or number.")}else Object(o["f"])(t===Ae||t.isEmpty(),"priority of unexpected type.");Object(o["f"])(t===Ae||t.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},on=function(){function t(e,n){void 0===n&&(n=t.__childrenNodeConstructor.EMPTY_NODE),this.value_=e,this.priorityNode_=n,this.lazyHash_=null,Object(o["f"])(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),rn(this.priorityNode_)}return Object.defineProperty(t,"__childrenNodeConstructor",{get:function(){return Ze},set:function(t){Ze=t},enumerable:!1,configurable:!0}),t.prototype.isLeafNode=function(){return!0},t.prototype.getPriority=function(){return this.priorityNode_},t.prototype.updatePriority=function(e){return new t(this.value_,e)},t.prototype.getImmediateChild=function(e){return".priority"===e?this.priorityNode_:t.__childrenNodeConstructor.EMPTY_NODE},t.prototype.getChild=function(e){return we(e)?this:".priority"===he(e)?this.priorityNode_:t.__childrenNodeConstructor.EMPTY_NODE},t.prototype.hasChild=function(){return!1},t.prototype.getPredecessorChildName=function(t,e){return null},t.prototype.updateImmediateChild=function(e,n){return".priority"===e?this.updatePriority(n):n.isEmpty()&&".priority"!==e?this:t.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(e,n).updatePriority(this.priorityNode_)},t.prototype.updateChild=function(e,n){var r=he(e);return null===r?n:n.isEmpty()&&".priority"!==r?this:(Object(o["f"])(".priority"!==r||1===de(e),".priority must be the last token in a path"),this.updateImmediateChild(r,t.__childrenNodeConstructor.EMPTY_NODE.updateChild(pe(e),n)))},t.prototype.isEmpty=function(){return!1},t.prototype.numChildren=function(){return 0},t.prototype.forEachChild=function(t,e){return!1},t.prototype.val=function(t){return t&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},t.prototype.hash=function(){if(null===this.lazyHash_){var t="";this.priorityNode_.isEmpty()||(t+="priority:"+nn(this.priorityNode_.val())+":");var e=typeof this.value_;t+=e+":",t+="number"===e?q(this.value_):this.value_,this.lazyHash_=b(t)}return this.lazyHash_},t.prototype.getValue=function(){return this.value_},t.prototype.compareTo=function(e){return e===t.__childrenNodeConstructor.EMPTY_NODE?1:e instanceof t.__childrenNodeConstructor?-1:(Object(o["f"])(e.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(e))},t.prototype.compareToLeafNode_=function(e){var n=typeof e.value_,r=typeof this.value_,i=t.VALUE_TYPE_ORDER.indexOf(n),a=t.VALUE_TYPE_ORDER.indexOf(r);return Object(o["f"])(i>=0,"Unknown leaf type: "+n),Object(o["f"])(a>=0,"Unknown leaf type: "+r),i===a?"object"===r?0:this.value_<e.value_?-1:this.value_===e.value_?0:1:a-i},t.prototype.withIndex=function(){return this},t.prototype.isIndexed=function(){return!0},t.prototype.equals=function(t){if(t===this)return!0;if(t.isLeafNode()){var e=t;return this.value_===e.value_&&this.priorityNode_.equals(e.priorityNode_)}return!1},t.VALUE_TYPE_ORDER=["object","boolean","number","string"],t}();function an(t){tn=t}function sn(t){en=t}var un,cn,ln=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["c"])(e,t),e.prototype.compare=function(t,e){var n=t.node.getPriority(),r=e.node.getPriority(),i=n.compareTo(r);return 0===i?R(t.name,e.name):i},e.prototype.isDefinedOn=function(t){return!t.getPriority().isEmpty()},e.prototype.indexedValueChanged=function(t,e){return!t.getPriority().equals(e.getPriority())},e.prototype.minPost=function(){return Be.MIN}
3388,e.prototype.maxPost=function(){return new Be(P,new on("[PRIORITY-POST]",en))},e.prototype.makePost=function(t,e){var n=tn(t);return new Be(e,new on("[PRIORITY-POST]",n))},e.prototype.toString=function(){return".priority"},e}(Ve),fn=new ln,hn=Math.log(2),dn=function(){function t(t){var e=function(t){return parseInt(Math.log(t)/hn,10)},n=function(t){return parseInt(Array(t+1).join("1"),2)};this.count=e(t+1),this.current_=this.count-1;var r=n(this.count);this.bits_=t+1&r}return t.prototype.nextBitIsOne=function(){var t=!(this.bits_&1<<this.current_);return this.current_--,t},t}(),pn=function(t,e,n,r){t.sort(e);var i=function(e,r){var o,a,s=r-e;if(0===s)return null;if(1===s)return o=t[e],a=n?n(o):o,new He(a,o.node,He.BLACK,null,null);var u=parseInt(s/2,10)+e,c=i(e,u),l=i(u+1,r);return o=t[u],a=n?n(o):o,new He(a,o.node,He.BLACK,c,l)},o=function(e){for(var r=null,o=null,a=t.length,s=function(e,r){var o=a-e,s=a;a-=e;var c=i(o+1,s),l=t[o],f=n?n(l):l;u(new He(f,l.node,r,null,c))},u=function(t){r?(r.left=t,r=t):(o=t,r=t)},c=0;c<e.count;++c){var l=e.nextBitIsOne(),f=Math.pow(2,e.count-(c+1));l?s(f,He.BLACK):(s(f,He.BLACK),s(f,He.RED))}return o},a=new dn(t.length),s=o(a);return new Xe(r||e,s)},vn={},gn=function(){function t(t,e){this.indexes_=t,this.indexSet_=e}return Object.defineProperty(t,"Default",{get:function(){return Object(o["f"])(vn&&fn,"ChildrenNode.ts has not been loaded"),un=un||new t({".priority":vn},{".priority":fn}),un},enumerable:!1,configurable:!0}),t.prototype.get=function(t){var e=Object(o["I"])(this.indexes_,t);if(!e)throw new Error("No index defined for "+t);return e instanceof Xe?e:null},t.prototype.hasIndex=function(t){return Object(o["k"])(this.indexSet_,t.toString())},t.prototype.addIndex=function(e,n){Object(o["f"])(e!==We,"KeyIndex always exists and isn't meant to be added to the IndexMap.");var r,i=[],s=!1,u=n.getIterator(Be.Wrap),c=u.getNext();while(c)s=s||e.isDefinedOn(c.node),i.push(c),c=u.getNext();r=s?pn(i,e.getCompare()):vn;var l=e.toString(),f=Object(a["a"])({},this.indexSet_);f[l]=e;var h=Object(a["a"])({},this.indexes_);return h[l]=r,new t(h,f)},t.prototype.addToIndexes=function(e,n){var r=this,i=Object(o["G"])(this.indexes_,(function(t,i){var a=Object(o["I"])(r.indexSet_,i);if(Object(o["f"])(a,"Missing index implementation for "+i),t===vn){if(a.isDefinedOn(e.node)){var s=[],u=n.getIterator(Be.Wrap),c=u.getNext();while(c)c.name!==e.name&&s.push(c),c=u.getNext();return s.push(e),pn(s,a.getCompare())}return vn}var l=n.get(e.name),f=t;return l&&(f=f.remove(new Be(e.name,l))),f.insert(e,e.node)}));return new t(i,this.indexSet_)},t.prototype.removeFromIndexes=function(e,n){var r=Object(o["G"])(this.indexes_,(function(t){if(t===vn)return t;var r=n.get(e.name);return r?t.remove(new Be(e.name,r)):t}));return new t(r,this.indexSet_)},t}(),mn=function(){function t(t,e,n){this.children_=t,this.priorityNode_=e,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&rn(this.priorityNode_),this.children_.isEmpty()&&Object(o["f"])(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(t,"EMPTY_NODE",{get:function(){return cn||(cn=new t(new Xe(Qe),null,gn.Default))},enumerable:!1,configurable:!0}),t.prototype.isLeafNode=function(){return!1},t.prototype.getPriority=function(){return this.priorityNode_||cn},t.prototype.updatePriority=function(e){return this.children_.isEmpty()?this:new t(this.children_,e,this.indexMap_)},t.prototype.getImmediateChild=function(t){if(".priority"===t)return this.getPriority();var e=this.children_.get(t);return null===e?cn:e},t.prototype.getChild=function(t){var e=he(t);return null===e?this:this.getImmediateChild(e).getChild(pe(t))},t.prototype.hasChild=function(t){return null!==this.children_.get(t)},t.prototype.updateImmediateChild=function(e,n){if(Object(o["f"])(n,"We should always be passing snapshot nodes"),".priority"===e)return this.updatePriority(n);var r=new Be(e,n),i=void 0,a=void 0;n.isEmpty()?(i=this.children_.remove(e),a=this.indexMap_.removeFromIndexes(r,this.children_)):(i=this.children_.insert(e,n),a=this.indexMap_.addToIndexes(r,this.children_));var s=i.isEmpty()?cn:this.priorityNode_;return new t(i,s,a)},t.prototype.updateChild=function(t,e){var n=he(t);if(null===n)return e;Object(o["f"])(".priority"!==he(t)||1===de(t),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(pe(t),e);return this.updateImmediateChild(n,r)},t.prototype.isEmpty=function(){return this.children_.isEmpty()},t.prototype.numChildren=function(){return this.children_.count()},t.prototype.val=function(e){if(this.isEmpty())return null;var n={},r=0,i=0,o=!0;if(this.forEachChild(fn,(function(a,s){n[a]=s.val(e),r++,o&&t.INTEGER_REGEXP_.test(a)?i=Math.max(i,Number(a)):o=!1})),!e&&o&&i<2*r){var a=[];for(var s in n)a[s]=n[s];return a}
3388return e&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},t.prototype.hash=function(){if(null===this.lazyHash_){var t="";this.getPriority().isEmpty()||(t+="priority:"+nn(this.getPriority().val())+":"),this.forEachChild(fn,(function(e,n){var r=n.hash();""!==r&&(t+=":"+e+":"+r)})),this.lazyHash_=""===t?"":b(t)}return this.lazyHash_},t.prototype.getPredecessorChildName=function(t,e,n){var r=this.resolveIndex_(n);if(r){var i=r.getPredecessorKey(new Be(t,e));return i?i.name:null}return this.children_.getPredecessorKey(t)},t.prototype.getFirstChildName=function(t){var e=this.resolveIndex_(t);if(e){var n=e.minKey();return n&&n.name}return this.children_.minKey()},t.prototype.getFirstChild=function(t){var e=this.getFirstChildName(t);return e?new Be(e,this.children_.get(e)):null},t.prototype.getLastChildName=function(t){var e=this.resolveIndex_(t);if(e){var n=e.maxKey();return n&&n.name}return this.children_.maxKey()},t.prototype.getLastChild=function(t){var e=this.getLastChildName(t);return e?new Be(e,this.children_.get(e)):null},t.prototype.forEachChild=function(t,e){var n=this.resolveIndex_(t);return n?n.inorderTraversal((function(t){return e(t.name,t.node)})):this.children_.inorderTraversal(e)},t.prototype.getIterator=function(t){return this.getIteratorFrom(t.minPost(),t)},t.prototype.getIteratorFrom=function(t,e){var n=this.resolveIndex_(e);if(n)return n.getIteratorFrom(t,(function(t){return t}));var r=this.children_.getIteratorFrom(t.name,Be.Wrap),i=r.peek();while(null!=i&&e.compare(i,t)<0)r.getNext(),i=r.peek();return r},t.prototype.getReverseIterator=function(t){return this.getReverseIteratorFrom(t.maxPost(),t)},t.prototype.getReverseIteratorFrom=function(t,e){var n=this.resolveIndex_(e);if(n)return n.getReverseIteratorFrom(t,(function(t){return t}));var r=this.children_.getReverseIteratorFrom(t.name,Be.Wrap),i=r.peek();while(null!=i&&e.compare(i,t)>0)r.getNext(),i=r.peek();return r},t.prototype.compareTo=function(t){return this.isEmpty()?t.isEmpty()?0:-1:t.isLeafNode()||t.isEmpty()?1:t===bn?-1:0},t.prototype.withIndex=function(e){if(e===We||this.indexMap_.hasIndex(e))return this;var n=this.indexMap_.addIndex(e,this.children_);return new t(this.children_,this.priorityNode_,n)},t.prototype.isIndexed=function(t){return t===We||this.indexMap_.hasIndex(t)},t.prototype.equals=function(t){if(t===this)return!0;if(t.isLeafNode())return!1;var e=t;if(this.getPriority().equals(e.getPriority())){if(this.children_.count()===e.children_.count()){var n=this.getIterator(fn),r=e.getIterator(fn),i=n.getNext(),o=r.getNext();while(i&&o){if(i.name!==o.name||!i.node.equals(o.node))return!1;i=n.getNext(),o=r.getNext()}return null===i&&null===o}return!1}return!1},t.prototype.resolveIndex_=function(t){return t===We?null:this.indexMap_.get(t.toString())},t.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,t}(),yn=function(t){function e(){return t.call(this,new Xe(Qe),mn.EMPTY_NODE,gn.Default)||this}return Object(a["c"])(e,t),e.prototype.compareTo=function(t){return t===this?0:1},e.prototype.equals=function(t){return t===this},e.prototype.getPriority=function(){return this},e.prototype.getImmediateChild=function(t){return mn.EMPTY_NODE},e.prototype.isEmpty=function(){return!1},e}(mn),bn=new yn;Object.defineProperties(Be,{MIN:{value:new Be(N,mn.EMPTY_NODE)},MAX:{value:new Be(P,bn)}}),Ke.__EMPTY_NODE=mn.EMPTY_NODE,on.__childrenNodeConstructor=mn,Je(bn),sn(bn);
3389/**
3390 * @license
3391 * Copyright 2017 Google LLC
3392 *
3393 * Licensed under the Apache License, Version 2.0 (the "License");
3394 * you may not use this file except in compliance with the License.
3395 * You may obtain a copy of the License at
3396 *
3397 *   http://www.apache.org/licenses/LICENSE-2.0
3398 *
3399 * Unless required by applicable law or agreed to in writing, software
3400 * distributed under the License is distributed on an "AS IS" BASIS,
3401 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3402 * See the License for the specific language governing permissions and
3403 * limitations under the License.
3404 */
3405var wn=!0;function _n(t,e){if(void 0===e&&(e=null),null===t)return mn.EMPTY_NODE;if("object"===typeof t&&".priority"in t&&(e=t[".priority"]),Object(o["f"])(null===e||"string"===typeof e||"number"===typeof e||"object"===typeof e&&".sv"in e,"Invalid priority type found: "+typeof e),"object"===typeof t&&".value"in t&&null!==t[".value"]&&(t=t[".value"]),"object"!==typeof t||".sv"in t){var n=t;return new on(n,_n(e))}if(t instanceof Array||!wn){var r=mn.EMPTY_NODE;return U(t,(function(e,n){if(Object(o["k"])(t,e)&&"."!==e.substring(0,1)){var i=_n(n);!i.isLeafNode()&&i.isEmpty()||(r=r.updateImmediateChild(e,i))}})),r.updatePriority(_n(e))}var i=[],a=!1,s=t;if(U(s,(function(t,e){if("."!==t.substring(0,1)){var n=_n(e);
3405n.isEmpty()||(a=a||!n.getPriority().isEmpty(),i.push(new Be(t,n)))}})),0===i.length)return mn.EMPTY_NODE;var u=pn(i,Ye,(function(t){return t.name}),Qe);if(a){var c=pn(i,fn.getCompare());return new mn(u,_n(e),new gn({".priority":c},{".priority":fn}))}return new mn(u,_n(e),gn.Default)}an(_n);
3406/**
3407 * @license
3408 * Copyright 2017 Google LLC
3409 *
3410 * Licensed under the Apache License, Version 2.0 (the "License");
3411 * you may not use this file except in compliance with the License.
3412 * You may obtain a copy of the License at
3413 *
3414 *   http://www.apache.org/licenses/LICENSE-2.0
3415 *
3416 * Unless required by applicable law or agreed to in writing, software
3417 * distributed under the License is distributed on an "AS IS" BASIS,
3418 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3419 * See the License for the specific language governing permissions and
3420 * limitations under the License.
3421 */
3422var En=function(t){function e(e){var n=t.call(this)||this;return n.indexPath_=e,Object(o["f"])(!we(e)&&".priority"!==he(e),"Can't create PathIndex with empty path or .priority key"),n}return Object(a["c"])(e,t),e.prototype.extractChild=function(t){return t.getChild(this.indexPath_)},e.prototype.isDefinedOn=function(t){return!t.getChild(this.indexPath_).isEmpty()},e.prototype.compare=function(t,e){var n=this.extractChild(t.node),r=this.extractChild(e.node),i=n.compareTo(r);return 0===i?R(t.name,e.name):i},e.prototype.makePost=function(t,e){var n=_n(t),r=mn.EMPTY_NODE.updateChild(this.indexPath_,n);return new Be(e,r)},e.prototype.maxPost=function(){var t=mn.EMPTY_NODE.updateChild(this.indexPath_,bn);return new Be(P,t)},e.prototype.toString=function(){return me(this.indexPath_,0).join("/")},e}(Ve),On=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["c"])(e,t),e.prototype.compare=function(t,e){var n=t.node.compareTo(e.node);return 0===n?R(t.name,e.name):n},e.prototype.isDefinedOn=function(t){return!0},e.prototype.indexedValueChanged=function(t,e){return!t.equals(e)},e.prototype.minPost=function(){return Be.MIN},e.prototype.maxPost=function(){return Be.MAX},e.prototype.makePost=function(t,e){var n=_n(t);return new Be(e,n)},e.prototype.toString=function(){return".value"},e}(Ve),In=new On,Tn="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",Sn="-",kn="z",Cn=786,xn=function(){var t=0,e=[];return function(n){var r,i=n===t;t=n;var a=new Array(8);for(r=7;r>=0;r--)a[r]=Tn.charAt(n%64),n=Math.floor(n/64);Object(o["f"])(0===n,"Cannot push at time == 0");var s=a.join("");if(i){for(r=11;r>=0&&63===e[r];r--)e[r]=0;e[r]++}else for(r=0;r<12;r++)e[r]=Math.floor(64*Math.random());for(r=0;r<12;r++)s+=Tn.charAt(e[r]);return Object(o["f"])(20===s.length,"nextPushId: Length should be 20."),s}}(),jn=function(t){if(t===""+z)return Sn;var e=H(t);if(null!=e)return""+(e+1);for(var n=new Array(t.length),r=0;r<n.length;r++)n[r]=t.charAt(r);if(n.length<Cn)return n.push(Sn),n.join("");var i=n.length-1;while(i>=0&&n[i]===kn)i--;if(-1===i)return P;var o=n[i],a=Tn.charAt(Tn.indexOf(o)+1);return n[i]=a,n.slice(0,i+1).join("")},An=function(t){if(t===""+W)return N;var e=H(t);if(null!=e)return""+(e-1);for(var n=new Array(t.length),r=0;r<n.length;r++)n[r]=t.charAt(r);return n[n.length-1]===Sn?1===n.length?""+z:(delete n[n.length-1],n.join("")):(n[n.length-1]=Tn.charAt(Tn.indexOf(n[n.length-1])-1),n.join("")+kn.repeat(Cn-n.length))};
3423/**
3424 * @license
3425 * Copyright 2017 Google LLC
3426 *
3427 * Licensed under the Apache License, Version 2.0 (the "License");
3428 * you may not use this file except in compliance with the License.
3429 * You may obtain a copy of the License at
3430 *
3431 *   http://www.apache.org/licenses/LICENSE-2.0
3432 *
3433 * Unless required by applicable law or agreed to in writing, software
3434 * distributed under the License is distributed on an "AS IS" BASIS,
3435 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3436 * See the License for the specific language governing permissions and
3437 * limitations under the License.
3438 */
3439/**
3440 * @license
3441 * Copyright 2017 Google LLC
3442 *
3443 * Licensed under the Apache License, Version 2.0 (the "License");
3444 * you may not use this file except in compliance with the License.
3445 * You may obtain a copy of the License at
3446 *
3447 *   http://www.apache.org/licenses/LICENSE-2.0
3448 *
3449 * Unless required by applicable law or agreed to in writing, software
3450 * distributed under the License is distributed on an "AS IS" BASIS,
3451 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3452 * See the License for the specific language governing permissions and
3453 * limitations under the License.
3454 */
3455function Nn(t){return{type:"value",snapshotNode:t}}function Pn(t,e){return{type:"child_added",snapshotNode:e,childName:t}}function Rn(t,e){return{type:"child_removed",snapshotNode:e,childName:t}}function Dn(t,e,n){return{type:"child_changed",snapshotNode:e,childName:t,oldSnap:n}}function Ln(t,e){return{type:"child_moved",snapshotNode:e,childName:t}}
3456/**
3457 * @license
3458 * Copyright 2017 Google LLC
3459 *
3460 * Licensed under the Apache License, Version 2.0 (the "License");
3461 * you may not use this file except in compliance with the License.
3462 * You may obtain a copy of the License at
3463 *
3464 *   http://www.apache.org/licenses/LICENSE-2.0
3465 *
3466 * Unless required by applicable law or agreed to in writing, software
3467 * distributed under the License is distributed on an "AS IS" BASIS,
3468 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3469 * See the License for the specific language governing permissions and
3470 * limitations under the License.
3471 */var Mn=function(){function t(t){this.index_=t}return t.prototype.updateChild=function(t,e,n,r,i,a){Object(o["f"])(t.isIndexed(this.index_),"A node must be indexed if only a child is updated");var s=t.getImmediateChild(e);return s.getChild(r).equals(n.getChild(r))&&s.isEmpty()===n.isEmpty()?t:(null!=a&&(n.isEmpty()?t.hasChild(e)?a.trackChildChange(Rn(e,s)):Object(o["f"])(t.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):s.isEmpty()?a.trackChildChange(Pn(e,n)):a.trackChildChange(Dn(e,n,s))),t.isLeafNode()&&n.isEmpty()?t:t.updateImmediateChild(e,n).withIndex(this.index_))},t.prototype.updateFullNode=function(t,e,n){return null!=n&&(t.isLeafNode()||t.forEachChild(fn,(function(t,r){e.hasChild(t)||n.trackChildChange(Rn(t,r))})),e.isLeafNode()||e.forEachChild(fn,(function(e,r){if(t.hasChild(e)){var i=t.getImmediateChild(e);i.equals(r)||n.trackChildChange(Dn(e,r,i))}else n.trackChildChange(Pn(e,r))}))),e.withIndex(this.index_)},t.prototype.updatePriority=function(t,e){return t.isEmpty()?mn.EMPTY_NODE:t.updatePriority(e)},t.prototype.filtersNodes=function(){return!1},t.prototype.getIndexedFilter=function(){return this},t.prototype.getIndex=function(){return this.index_},t}(),Fn=function(){function t(e){this.indexedFilter_=new Mn(e.getIndex()),this.index_=e.getIndex(),this.startPost_=t.getStartPost_(e),this.endPost_=t.getEndPost_(e)}return t.prototype.getStartPost=function(){return this.startPost_},t.prototype.getEndPost=function(){return this.endPost_},t.prototype.matches=function(t){return this.index_.compare(this.getStartPost(),t)<=0&&this.index_.compare(t,this.getEndPost())<=0},t.prototype.updateChild=function(t,e,n,r,i,o){return this.matches(new Be(e,n))||(n=mn.EMPTY_NODE),this.indexedFilter_.updateChild(t,e,n,r,i,o)},t.prototype.updateFullNode=function(t,e,n){e.isLeafNode()&&(e=mn.EMPTY_NODE);var r=e.withIndex(this.index_);r=r.updatePriority(mn.EMPTY_NODE);var i=this;return e.forEachChild(fn,(function(t,e){i.matches(new Be(t,e))||(r=r.updateImmediateChild(t,mn.EMPTY_NODE))})),this.indexedFilter_.updateFullNode(t,r,n)},t.prototype.updatePriority=function(t,e){return t},t.prototype.filtersNodes=function(){return!0},t.prototype.getIndexedFilter=function(){return this.indexedFilter_},t.prototype.getIndex=function(){return this.index_},t.getStartPost_=function(t){if(t.hasStart()){var e=t.getIndexStartName();return t.getIndex().makePost(t.getIndexStartValue(),e)}return t.getIndex().minPost()},t.getEndPost_=function(t){if(t.hasEnd()){var e=t.getIndexEndName();return t.getIndex().makePost(t.getIndexEndValue(),e)}return t.getIndex().maxPost()},t}
3471(),Un=function(){function t(t){this.rangedFilter_=new Fn(t),this.index_=t.getIndex(),this.limit_=t.getLimit(),this.reverse_=!t.isViewFromLeft()}return t.prototype.updateChild=function(t,e,n,r,i,o){return this.rangedFilter_.matches(new Be(e,n))||(n=mn.EMPTY_NODE),t.getImmediateChild(e).equals(n)?t:t.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(t,e,n,r,i,o):this.fullLimitUpdateChild_(t,e,n,i,o)},t.prototype.updateFullNode=function(t,e,n){var r;if(e.isLeafNode()||e.isEmpty())r=mn.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<e.numChildren()&&e.isIndexed(this.index_)){r=mn.EMPTY_NODE.withIndex(this.index_);var i=void 0;i=this.reverse_?e.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):e.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);var o=0;while(i.hasNext()&&o<this.limit_){var a=i.getNext(),s=void 0;if(s=this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),a)<=0:this.index_.compare(a,this.rangedFilter_.getEndPost())<=0,!s)break;r=r.updateImmediateChild(a.name,a.node),o++}}else{r=e.withIndex(this.index_),r=r.updatePriority(mn.EMPTY_NODE);var u=void 0,c=void 0,l=void 0;i=void 0;if(this.reverse_){i=r.getReverseIterator(this.index_),u=this.rangedFilter_.getEndPost(),c=this.rangedFilter_.getStartPost();var f=this.index_.getCompare();l=function(t,e){return f(e,t)}}else i=r.getIterator(this.index_),u=this.rangedFilter_.getStartPost(),c=this.rangedFilter_.getEndPost(),l=this.index_.getCompare();o=0;var h=!1;while(i.hasNext()){a=i.getNext();!h&&l(u,a)<=0&&(h=!0);s=h&&o<this.limit_&&l(a,c)<=0;s?o++:r=r.updateImmediateChild(a.name,mn.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(t,r,n)},t.prototype.updatePriority=function(t,e){return t},t.prototype.filtersNodes=function(){return!0},t.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},t.prototype.getIndex=function(){return this.index_},t.prototype.fullLimitUpdateChild_=function(t,e,n,r,i){var a;if(this.reverse_){var s=this.index_.getCompare();a=function(t,e){return s(e,t)}}else a=this.index_.getCompare();var u=t;Object(o["f"])(u.numChildren()===this.limit_,"");var c=new Be(e,n),l=this.reverse_?u.getFirstChild(this.index_):u.getLastChild(this.index_),f=this.rangedFilter_.matches(c);if(u.hasChild(e)){var h=u.getImmediateChild(e),d=r.getChildAfterChild(this.index_,l,this.reverse_);while(null!=d&&(d.name===e||u.hasChild(d.name)))d=r.getChildAfterChild(this.index_,d,this.reverse_);var p=null==d?1:a(d,c),v=f&&!n.isEmpty()&&p>=0;if(v)return null!=i&&i.trackChildChange(Dn(e,n,h)),u.updateImmediateChild(e,n);null!=i&&i.trackChildChange(Rn(e,h));var g=u.updateImmediateChild(e,mn.EMPTY_NODE),m=null!=d&&this.rangedFilter_.matches(d);return m?(null!=i&&i.trackChildChange(Pn(d.name,d.node)),g.updateImmediateChild(d.name,d.node)):g}return n.isEmpty()?t:f&&a(l,c)>=0?(null!=i&&(i.trackChildChange(Rn(l.name,l.node)),i.trackChildChange(Pn(e,n))),u.updateImmediateChild(e,n).updateImmediateChild(l.name,mn.EMPTY_NODE)):t},t}(),qn=function(){function t(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=fn}return t.prototype.hasStart=function(){return this.startSet_},t.prototype.hasStartAfter=function(){return this.startAfterSet_},t.prototype.hasEndBefore=function(){return this.endBeforeSet_},t.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_},t.prototype.getIndexStartValue=function(){return Object(o["f"])(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},t.prototype.getIndexStartName=function(){return Object(o["f"])(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:N},t.prototype.hasEnd=function(){return this.endSet_},t.prototype.getIndexEndValue=function(){return Object(o["f"])(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},t.prototype.getIndexEndName=function(){return Object(o["f"])(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:P},t.prototype.hasLimit=function(){return this.limitSet_},t.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},t.prototype.getLimit=function(){return Object(o["f"])(this.limitSet_,"Only valid if limit has been set"),this.limit_},t.prototype.getIndex=function(){return this.index_},t.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},t.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===fn},t.prototype.copy=function(){var e=new t;return e.limitSet_=this.limitSet_,e.limit_=this.limit_,e.startSet_=this.startSet_,e.indexStartValue_=this.indexStartValue_,e.startNameSet_=this.startNameSet_,e.indexStartName_=this.indexStartName_,e.endSet_=this.endSet_,e.indexEndValue_=this.indexEndValue_,e.endNameSet_=this.endNameSet_,e.indexEndName_=this.indexEndName_,e.index_=this.index_,e.viewFrom_=this.viewFrom_,e},t}();
3472/**
3473 * @license
3474 * Copyright 2017 Google LLC
3475 *
3476 * Licensed under the Apache License, Version 2.0 (the "License");
3477 * you may not use this file except in compliance with the License.
3478 * You may obtain a copy of the License at
3479 *
3480 *   http://www.apache.org/licenses/LICENSE-2.0
3481 *
3482 * Unless required by applicable law or agreed to in writing, software
3483 * distributed under the License is distributed on an "AS IS" BASIS,
3484 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3485 * See the License for the specific language governing permissions and
3486 * limitations under the License.
3487 */function $n(t){return t.loadsAllData()?new Mn(t.getIndex()):t.hasLimit()?new Un(t):new Fn(t)}function Bn(t,e){var n=t.copy();return n.limitSet_=!0,n.limit_=e,n.viewFrom_="l",n}function Vn(t,e){var n=t.copy();return n.limitSet_=!0,n.limit_=e,n.viewFrom_="r",n}function Kn(t,e,n){var r=t.copy();return r.startSet_=!0,void 0===e&&(e=null),r.indexStartValue_=e,null!=n?(r.startNameSet_=!0,r.indexStartName_=n):(r.startNameSet_=!1,r.indexStartName_=""),r}function Wn(t,e,n){var r;if(t.index_===We)"string"===typeof e&&(e=jn(e)),r=Kn(t,e,n);else{var i=void 0;i=null==n?P:jn(n),r=Kn(t,e,i)}return r.startAfterSet_=!0,r}function zn(t,e,n){var r=t.copy();return r.endSet_=!0,void 0===e&&(e=null),r.indexEndValue_=e,void 0!==n?(r.endNameSet_=!0,r.indexEndName_=n):(r.endNameSet_=!1,r.indexEndName_=""),r}function Hn(t,e,n){var r,i;return t.index_===We?("string"===typeof e&&(e=An(e)),i=zn(t,e,n)):(r=null==n?N:An(n),i=zn(t,e,r)),i.endBeforeSet_=!0,i}function Gn(t,e){var n=t.copy();return n.index_=e,n}function Xn(t){var e,n={};return t.isDefault()||(t.index_===fn?e="$priority":t.index_===In?e="$value":t.index_===We?e="$key":(Object(o["f"])(t.index_ instanceof En,"Unrecognized index type!"),e=t.index_.toString()),n["orderBy"]=Object(o["L"])(e),t.startSet_&&(n["startAt"]=Object(o["L"])(t.indexStartValue_),t.startNameSet_&&(n["startAt"]+=","+Object(o["L"])(t.indexStartName_))),t.endSet_&&(n["endAt"]=Object(o["L"])(t.indexEndValue_),t.endNameSet_&&(n["endAt"]+=","+Object(o["L"])(t.indexEndName_))),t.limitSet_&&(t.isViewFromLeft()?n["limitToFirst"]=t.limit_:n["limitToLast"]=t.limit_)),n}function Yn(t){var e={};if(t.startSet_&&(e["sp"]=t.indexStartValue_,t.startNameSet_&&(e["sn"]=t.indexStartName_)),t.endSet_&&(e["ep"]=t.indexEndValue_,t.endNameSet_&&(e["en"]=t.indexEndName_)),t.limitSet_){e["l"]=t.limit_;var n=t.viewFrom_;""===n&&(n=t.isViewFromLeft()?"l":"r"),e["vf"]=n}return t.index_!==fn&&(e["i"]=t.index_.toString()),e}
3488/**
3489 * @license
3490 * Copyright 2017 Google LLC
3491 *
3492 * Licensed under the Apache License, Version 2.0 (the "License");
3493 * you may not use this file except in compliance with the License.
3494 * You may obtain a copy of the License at
3495 *
3496 *   http://www.apache.org/licenses/LICENSE-2.0
3497 *
3498 * Unless required by applicable law or agreed to in writing, software
3499 * distributed under the License is distributed on an "AS IS" BASIS,
3500 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3501 * See the License for the specific language governing permissions and
3502 * limitations under the License.
3503 */var Qn=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.repoInfo_=e,o.onDataUpdate_=n,o.authTokenProvider_=r,o.appCheckTokenProvider_=i,o.log_=T("p:rest:"),o.listens_={},o}return Object(a["c"])(e,t),e.prototype.reportStats=function(t){throw new Error("Method not implemented.")},e.getListenId_=function(t,e){return void 0!==e?"tag$"+e:(Object(o["f"])(t._queryParams.isDefault(),"should have a tag if it's not a default query."),t._path.toString())},e.prototype.listen=function(t,n,r,i){var a=this,s=t._path.toString();this.log_("Listen called for "+s+" "+t._queryIdentifier);var u=e.getListenId_(t,r),c={};this.listens_[u]=c;var l=Xn(t._queryParams);this.restRequest_(s+".json",l,(function(t,e){var n,l=e;(404===t&&(l=null,t=null),null===t&&a.onDataUpdate_(s,l,!1,r),Object(o["I"])(a.listens_,u)===c)&&(n=t?401===t?"permission_denied":"rest_error:"+t:"ok",i(n,null))}))},e.prototype.unlisten=function(t,n){var r=e.getListenId_(t,n);delete this.listens_[r]},e.prototype.get=function(t){var e=this,n=Xn(t._queryParams),r=t._path.toString(),i=new o["a"];return this.restRequest_(r+".json",n,(function(t,n){var o=n;404===t&&(o=null,t=null),null===t?(e.onDataUpdate_(r,o,!1,null),i.resolve(o)):i.reject(new Error(o))})),i.promise},e.prototype.refreshAuthToken=function(t){},e.prototype.restRequest_=function(t,e,n){var r=this;return void 0===e&&(e={}),e["format"]="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then((function(i){var s=Object(a["e"])(i,2),u=s[0],c=s[1];u&&u.accessToken&&(e["auth"]=u.accessToken),c&&c.token&&(e["ac"]=c.token);var l=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+t+"?ns="+r.repoInfo_.namespace+Object(o["H"])(e);r.log_("Sending REST request for "+l);var f=new XMLHttpRequest;f.onreadystatechange=function(){if(n&&4===f.readyState){r.log_("REST Response for "+l+" received. status:",f.status,"response:",f.responseText);var t=null;if(f.status>=200&&f.status<300){try{t=Object(o["F"])(f.responseText)}catch(e){C("Failed to parse JSON response for "+l+": "+f.responseText)}n(null,t)}else 401!==f.status&&404!==f.status&&C("Got unsuccessful REST response for "+l+" Status: "+f.status),n(f.status);n=null}},f.open("GET",l,!0),f.send()}))},e}(oe),Jn=function(){function t(){this.rootNode_=mn.EMPTY_NODE}return t.prototype.getNode=function(t){return this.rootNode_.getChild(t)},t.prototype.updateSnapshot=function(t,e){this.rootNode_=this.rootNode_.updateChild(t,e)},t}();
3504/**
3505 * @license
3506 * Copyright 2017 Google LLC
3507 *
3508 * Licensed under the Apache License, Version 2.0 (the "License");
3509 * you may not use this file except in compliance with the License.
3510 * You may obtain a copy of the License at
3511 *
3512 *   http://www.apache.org/licenses/LICENSE-2.0
3513 *
3514 * Unless required by applicable law or agreed to in writing, software
3515 * distributed under the License is distributed on an "AS IS" BASIS,
3516 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3517 * See the License for the specific language governing permissions and
3518 * limitations under the License.
3519 */
3520/**
3521 * @license
3522 * Copyright 2017 Google LLC
3523 *
3524 * Licensed under the Apache License, Version 2.0 (the "License");
3525 * you may not use this file except in compliance with the License.
3526 * You may obtain a copy of the License at
3527 *
3528 *   http://www.apache.org/licenses/LICENSE-2.0
3529 *
3530 * Unless required by applicable law or agreed to in writing, software
3531 * distributed under the License is distributed on an "AS IS" BASIS,
3532 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3533 * See the License for the specific language governing permissions and
3534 * limitations under the License.
3535 */
3536function Zn(){return{value:null,children:new Map}}function tr(t,e,n){if(we(e))t.value=n,t.children.clear();else if(null!==t.value)t.value=t.value.updateChild(e,n);else{var r=he(e);t.children.has(r)||t.children.set(r,Zn());var i=t.children.get(r);e=pe(e),tr(i,e,n)}}function er(t,e){if(we(e))return t.value=null,t.children.clear(),!0;if(null!==t.value){if(t.value.isLeafNode())return!1;var n=t.value;return t.value=null,n.forEachChild(fn,(function(e,n){tr(t,new le(e),n)})),er(t,e)}if(t.children.size>0){var r=he(e);if(e=pe(e),t.children.has(r)){var i=er(t.children.get(r),e);i&&t.children.delete(r)}return 0===t.children.size}return!0}function nr(t,e,n){null!==t.value?n(e,t.value):rr(t,(function(t,r){var i=new le(e.toString()+"/"+t);nr(r,i,n)}))}function rr(t,e){t.children.forEach((function(t,n){e(n,t)}))}
3537/**
3538 * @license
3539 * Copyright 2017 Google LLC
3540 *
3541 * Licensed under the Apache License, Version 2.0 (the "License");
3542 * you may not use this file except in compliance with the License.
3543 * You may obtain a copy of the License at
3544 *
3545 *   http://www.apache.org/licenses/LICENSE-2.0
3546 *
3547 * Unless required by applicable law or agreed to in writing, software
3548 * distributed under the License is distributed on an "AS IS" BASIS,
3549 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3550 * See the License for the specific language governing permissions and
3551 * limitations under the License.
3552 */var ir,or=function(){function t(t){this.collection_=t,this.last_=null}return t.prototype.get=function(){var t=this.collection_.get(),e=Object(a["a"])({},t);return this.last_&&U(this.last_,(function(t,n){e[t]=e[t]-n})),this.last_=t,e},t}(),ar=1e4,sr=3e4,ur=3e5,cr=function(){function t(t,e){this.server_=e,this.statsToReport_={},this.statsListener_=new or(t);var n=ar+(sr-ar)*Math.random();Y(this.reportStats_.bind(this),Math.floor(n))}return t.prototype.reportStats_=function(){var t=this,e=this.statsListener_.get(),n={},r=!1;U(e,(function(e,i){i>0&&Object(o["k"])(t.statsToReport_,e)&&(n[e]=i,r=!0)})),r&&this.server_.reportStats(n),Y(this.reportStats_.bind(this),Math.floor(2*Math.random()*ur))},t}();
3553/**
3554 * @license
3555 * Copyright 2017 Google LLC
3556 *
3557 * Licensed under the Apache License, Version 2.0 (the "License");
3558 * you may not use this file except in compliance with the License.
3559 * You may obtain a copy of the License at
3560 *
3561 *   http://www.apache.org/licenses/LICENSE-2.0
3562 *
3563 * Unless required by applicable law or agreed to in writing, software
3564 * distributed under the License is distributed on an "AS IS" BASIS,
3565 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3566 * See the License for the specific language governing permissions and
3567 * limitations under the License.
3568 */function lr(t,e){t.statsToReport_[e]=!0}
3569/**
3570 * @license
3571 * Copyright 2017 Google LLC
3572 *
3573 * Licensed under the Apache License, Version 2.0 (the "License");
3574 * you may not use this file except in compliance with the License.
3575 * You may obtain a copy of the License at
3576 *
3577 *   http://www.apache.org/licenses/LICENSE-2.0
3578 *
3579 * Unless required by applicable law or agreed to in writing, softw
3579are
3580 * distributed under the License is distributed on an "AS IS" BASIS,
3581 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3582 * See the License for the specific language governing permissions and
3583 * limitations under the License.
3584 */function fr(){return{fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}function hr(){return{fromUser:!1,fromServer:!0,queryId:null,tagged:!1}}function dr(t){return{fromUser:!1,fromServer:!0,queryId:t,tagged:!0}}
3585/**
3586 * @license
3587 * Copyright 2017 Google LLC
3588 *
3589 * Licensed under the Apache License, Version 2.0 (the "License");
3590 * you may not use this file except in compliance with the License.
3591 * You may obtain a copy of the License at
3592 *
3593 *   http://www.apache.org/licenses/LICENSE-2.0
3594 *
3595 * Unless required by applicable law or agreed to in writing, software
3596 * distributed under the License is distributed on an "AS IS" BASIS,
3597 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3598 * See the License for the specific language governing permissions and
3599 * limitations under the License.
3600 */(function(t){t[t["OVERWRITE"]=0]="OVERWRITE",t[t["MERGE"]=1]="MERGE",t[t["ACK_USER_WRITE"]=2]="ACK_USER_WRITE",t[t["LISTEN_COMPLETE"]=3]="LISTEN_COMPLETE"})(ir||(ir={}));var pr,vr=function(){function t(t,e,n){this.path=t,this.affectedTree=e,this.revert=n,this.type=ir.ACK_USER_WRITE,this.source=fr()}return t.prototype.operationForChild=function(e){if(we(this.path)){if(null!=this.affectedTree.value)return Object(o["f"])(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new le(e));return new t(fe(),n,this.revert)}return Object(o["f"])(he(this.path)===e,"operationForChild called for unrelated child."),new t(pe(this.path),this.affectedTree,this.revert)},t}(),gr=function(){function t(t,e){this.source=t,this.path=e,this.type=ir.LISTEN_COMPLETE}return t.prototype.operationForChild=function(e){return we(this.path)?new t(this.source,fe()):new t(this.source,pe(this.path))},t}(),mr=function(){function t(t,e,n){this.source=t,this.path=e,this.snap=n,this.type=ir.OVERWRITE}return t.prototype.operationForChild=function(e){return we(this.path)?new t(this.source,fe(),this.snap.getImmediateChild(e)):new t(this.source,pe(this.path),this.snap)},t}(),yr=function(){function t(t,e,n){this.source=t,this.path=e,this.children=n,this.type=ir.MERGE}return t.prototype.operationForChild=function(e){if(we(this.path)){var n=this.children.subtree(new le(e));return n.isEmpty()?null:n.value?new mr(this.source,fe(),n.value):new t(this.source,fe(),n)}return Object(o["f"])(he(this.path)===e,"Can't get a merge for a child not on the path of the operation"),new t(this.source,pe(this.path),this.children)},t.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},t}(),br=function(){function t(t,e,n){this.node_=t,this.fullyInitialized_=e,this.filtered_=n}return t.prototype.isFullyInitialized=function(){return this.fullyInitialized_},t.prototype.isFiltered=function(){return this.filtered_},t.prototype.isCompleteForPath=function(t){if(we(t))return this.isFullyInitialized()&&!this.filtered_;var e=he(t);return this.isCompleteForChild(e)},t.prototype.isCompleteForChild=function(t){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(t)},t.prototype.getNode=function(){return this.node_},t}(),wr=function(){function t(t){this.query_=t,this.index_=this.query_._queryParams.getIndex()}return t}();
3601/**
3602 * @license
3603 * Copyright 2017 Google LLC
3604 *
3605 * Licensed under the Apache License, Version 2.0 (the "License");
3606 * you may not use this file except in compliance with the License.
3607 * You may obtain a copy of the License at
3608 *
3609 *   http://www.apache.org/licenses/LICENSE-2.0
3610 *
3611 * Unless required by applicable law or agreed to in writing, software
3612 * distributed under the License is distributed on an "AS IS" BASIS,
3613 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3614 * See the License for the specific language governing permissions and
3615 * limitations under the License.
3616 */function _r(t,e,n,r){var i=[],o=[];return e.forEach((function(e){"child_changed"===e.type&&t.index_.indexedValueChanged(e.oldSnap,e.snapshotNode)&&o.push(Ln(e.childName,e.snapshotNode))})),Er(t,i,"child_removed",e,r,n),Er(t,i,"child_added",e,r,n),Er(t,i,"child_moved",o,r,n),Er(t,i,"child_changed",e,r,n),Er(t,i,"value",e,r,n),i}function Er(t,e,n,r,i,o){var a=r.filter((function(t){return t.type===n}));a.sort((function(e,n){return Ir(t,e,n)}
3616)),a.forEach((function(n){var r=Or(t,n,o);i.forEach((function(i){i.respondsTo(n.type)&&e.push(i.createEvent(r,t.query_))}))}))}function Or(t,e,n){return"value"===e.type||"child_removed"===e.type||(e.prevName=n.getPredecessorChildName(e.childName,e.snapshotNode,t.index_)),e}function Ir(t,e,n){if(null==e.childName||null==n.childName)throw Object(o["g"])("Should only compare child_ events.");var r=new Be(e.childName,e.snapshotNode),i=new Be(n.childName,n.snapshotNode);return t.index_.compare(r,i)}
3617/**
3618 * @license
3619 * Copyright 2017 Google LLC
3620 *
3621 * Licensed under the Apache License, Version 2.0 (the "License");
3622 * you may not use this file except in compliance with the License.
3623 * You may obtain a copy of the License at
3624 *
3625 *   http://www.apache.org/licenses/LICENSE-2.0
3626 *
3627 * Unless required by applicable law or agreed to in writing, software
3628 * distributed under the License is distributed on an "AS IS" BASIS,
3629 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3630 * See the License for the specific language governing permissions and
3631 * limitations under the License.
3632 */function Tr(t,e){return{eventCache:t,serverCache:e}}function Sr(t,e,n,r){return Tr(new br(e,n,r),t.serverCache)}function kr(t,e,n,r){return Tr(t.eventCache,new br(e,n,r))}function Cr(t){return t.eventCache.isFullyInitialized()?t.eventCache.getNode():null}function xr(t){return t.serverCache.isFullyInitialized()?t.serverCache.getNode():null}
3633/**
3634 * @license
3635 * Copyright 2017 Google LLC
3636 *
3637 * Licensed under the Apache License, Version 2.0 (the "License");
3638 * you may not use this file except in compliance with the License.
3639 * You may obtain a copy of the License at
3640 *
3641 *   http://www.apache.org/licenses/LICENSE-2.0
3642 *
3643 * Unless required by applicable law or agreed to in writing, software
3644 * distributed under the License is distributed on an "AS IS" BASIS,
3645 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3646 * See the License for the specific language governing permissions and
3647 * limitations under the License.
3648 */var jr=function(){return pr||(pr=new Xe(D)),pr},Ar=function(){function t(t,e){void 0===e&&(e=jr()),this.value=t,this.children=e}return t.fromObject=function(e){var n=new t(null);return U(e,(function(t,e){n=n.set(new le(t),e)})),n},t.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},t.prototype.findRootMostMatchingPathAndValue=function(t,e){if(null!=this.value&&e(this.value))return{path:fe(),value:this.value};if(we(t))return null;var n=he(t),r=this.children.get(n);if(null!==r){var i=r.findRootMostMatchingPathAndValue(pe(t),e);if(null!=i){var o=be(new le(n),i.path);return{path:o,value:i.value}}return null}return null},t.prototype.findRootMostValueAndPath=function(t){return this.findRootMostMatchingPathAndValue(t,(function(){return!0}))},t.prototype.subtree=function(e){if(we(e))return this;var n=he(e),r=this.children.get(n);return null!==r?r.subtree(pe(e)):new t(null)},t.prototype.set=function(e,n){if(we(e))return new t(n,this.children);var r=he(e),i=this.children.get(r)||new t(null),o=i.set(pe(e),n),a=this.children.insert(r,o);return new t(this.value,a)},t.prototype.remove=function(e){if(we(e))return this.children.isEmpty()?new t(null):new t(null,this.children);var n=he(e),r=this.children.get(n);if(r){var i=r.remove(pe(e)),o=void 0;return o=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),null===this.value&&o.isEmpty()?new t(null):new t(this.value,o)}return this},t.prototype.get=function(t){if(we(t))return this.value;var e=he(t),n=this.children.get(e);return n?n.get(pe(t)):null},t.prototype.setTree=function(e,n){if(we(e))return n;var r=he(e),i=this.children.get(r)||new t(null),o=i.setTree(pe(e),n),a=void 0;return a=o.isEmpty()?this.children.remove(r):this.children.insert(r,o),new t(this.value,a)},t.prototype.fold=function(t){return this.fold_(fe(),t)},t.prototype.fold_=function(t,e){var n={};return this.children.inorderTraversal((function(r,i){n[r]=i.fold_(be(t,r),e)})),e(t,this.value,n)},t.prototype.findOnPath=function(t,e){return this.findOnPath_(t,fe(),e)},t.prototype.findOnPath_=function(t,e,n){var r=!!this.value&&n(e,this.value);if(r)return r;if(we(t))return null;var i=he(t),o=this.children.get(i);return o?o.findOnPath_(pe(t),be(e,i),n):null},t.prototype.foreachOnPath=function(t,e){return this.foreachOnPath_(t,fe(),e)},t.prototype.foreachOnPath_=function(e,n,r){if(we(e))return this;this.value&&r(n,this.value);var i=he(e),o=this.children.get(i);return o?o.foreachOnPath_(pe(e),be(n,i),r):new t(null)},t.prototype.foreach=function(t){this.foreach_(fe(),t)},t.prototype.foreach_=function(t,e){this.children.inorderTraversal((function(n,r){r.foreach_(be(t,n),e)})),this.value&&e(t,this.value)},t.prototype.foreachChild=function(t){this.children.inorderTraversal((function(e,n){
3648n.value&&t(e,n.value)}))},t}(),Nr=function(){function t(t){this.writeTree_=t}return t.empty=function(){return new t(new Ar(null))},t}();function Pr(t,e,n){if(we(e))return new Nr(new Ar(n));var r=t.writeTree_.findRootMostValueAndPath(e);if(null!=r){var i=r.path,o=r.value,a=_e(i,e);return o=o.updateChild(a,n),new Nr(t.writeTree_.set(i,o))}var s=new Ar(n),u=t.writeTree_.setTree(e,s);return new Nr(u)}function Rr(t,e,n){var r=t;return U(n,(function(t,n){r=Pr(r,be(e,t),n)})),r}function Dr(t,e){if(we(e))return Nr.empty();var n=t.writeTree_.setTree(e,new Ar(null));return new Nr(n)}function Lr(t,e){return null!=Mr(t,e)}function Mr(t,e){var n=t.writeTree_.findRootMostValueAndPath(e);return null!=n?t.writeTree_.get(n.path).getChild(_e(n.path,e)):null}function Fr(t){var e=[],n=t.writeTree_.value;return null!=n?n.isLeafNode()||n.forEachChild(fn,(function(t,n){e.push(new Be(t,n))})):t.writeTree_.children.inorderTraversal((function(t,n){null!=n.value&&e.push(new Be(t,n.value))})),e}function Ur(t,e){if(we(e))return t;var n=Mr(t,e);return new Nr(null!=n?new Ar(n):t.writeTree_.subtree(e))}function qr(t){return t.writeTree_.isEmpty()}function $r(t,e){return Br(fe(),t.writeTree_,e)}function Br(t,e,n){if(null!=e.value)return n.updateChild(t,e.value);var r=null;return e.children.inorderTraversal((function(e,i){".priority"===e?(Object(o["f"])(null!==i.value,"Priority writes must always be leaf nodes"),r=i.value):n=Br(be(t,e),i,n)})),n.getChild(t).isEmpty()||null===r||(n=n.updateChild(be(t,".priority"),r)),n}
3649/**
3650 * @license
3651 * Copyright 2017 Google LLC
3652 *
3653 * Licensed under the Apache License, Version 2.0 (the "License");
3654 * you may not use this file except in compliance with the License.
3655 * You may obtain a copy of the License at
3656 *
3657 *   http://www.apache.org/licenses/LICENSE-2.0
3658 *
3659 * Unless required by applicable law or agreed to in writing, software
3660 * distributed under the License is distributed on an "AS IS" BASIS,
3661 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3662 * See the License for the specific language governing permissions and
3663 * limitations under the License.
3664 */function Vr(t,e){return hi(e,t)}function Kr(t,e,n,r,i){Object(o["f"])(r>t.lastWriteId,"Stacking an older write on top of newer ones"),void 0===i&&(i=!0),t.allWrites.push({path:e,snap:n,writeId:r,visible:i}),i&&(t.visibleWrites=Pr(t.visibleWrites,e,n)),t.lastWriteId=r}function Wr(t,e,n,r){Object(o["f"])(r>t.lastWriteId,"Stacking an older merge on top of newer ones"),t.allWrites.push({path:e,children:n,writeId:r,visible:!0}),t.visibleWrites=Rr(t.visibleWrites,e,n),t.lastWriteId=r}function zr(t,e){for(var n=0;n<t.allWrites.length;n++){var r=t.allWrites[n];if(r.writeId===e)return r}return null}function Hr(t,e){var n=t.allWrites.findIndex((function(t){return t.writeId===e}));Object(o["f"])(n>=0,"removeWrite called with nonexistent writeId.");var r=t.allWrites[n];t.allWrites.splice(n,1);var i=r.visible,a=!1,s=t.allWrites.length-1;while(i&&s>=0){var u=t.allWrites[s];u.visible&&(s>=n&&Gr(u,r.path)?i=!1:Ie(r.path,u.path)&&(a=!0)),s--}if(i){if(a)return Xr(t),!0;if(r.snap)t.visibleWrites=Dr(t.visibleWrites,r.path);else{var c=r.children;U(c,(function(e){t.visibleWrites=Dr(t.visibleWrites,be(r.path,e))}))}return!0}return!1}function Gr(t,e){if(t.snap)return Ie(t.path,e);for(var n in t.children)if(t.children.hasOwnProperty(n)&&Ie(be(t.path,n),e))return!0;return!1}function Xr(t){t.visibleWrites=Qr(t.allWrites,Yr,fe()),t.allWrites.length>0?t.lastWriteId=t.allWrites[t.allWrites.length-1].writeId:t.lastWriteId=-1}function Yr(t){return t.visible}function Qr(t,e,n){for(var r=Nr.empty(),i=0;i<t.length;++i){var a=t[i];if(e(a)){var s=a.path,u=void 0;if(a.snap)Ie(n,s)?(u=_e(n,s),r=Pr(r,u,a.snap)):Ie(s,n)&&(u=_e(s,n),r=Pr(r,fe(),a.snap.getChild(u)));else{if(!a.children)throw Object(o["g"])("WriteRecord should have .snap or .children");if(Ie(n,s))u=_e(n,s),r=Rr(r,u,a.children);else if(Ie(s,n))if(u=_e(s,n),we(u))r=Rr(r,fe(),a.children);else{var c=Object(o["I"])(a.children,he(u));if(c){var l=c.getChild(pe(u));r=Pr(r,fe(),l)}}}}}return r}function Jr(t,e,n,r,i){if(r||i){var o=Ur(t.visibleWrites,e);if(!i&&qr(o))return n;if(i||null!=n||Lr(o,fe())){var a=function(t){return(t.visible||i)&&(!r||!~r.indexOf(t.writeId))&&(Ie(t.path,e)||Ie(e,t.path))},s=Qr(t.allWrites,a,e);l=n||mn.EMPTY_NODE;return $r(s,l)}return null}var u=Mr(t.visibleWrites,e);if(null!=u)return u;var c=Ur(t.visibleWrites,e);if(qr(c))return n;if(null!=n||Lr(c,fe())){var l=n||mn.EMPTY_NODE;return $r(c,l)}return null}function Zr(t,e,n){var r=mn.EMPTY_NODE,i=Mr(t.visibleWrites,e);
3664if(i)return i.isLeafNode()||i.forEachChild(fn,(function(t,e){r=r.updateImmediateChild(t,e)})),r;if(n){var o=Ur(t.visibleWrites,e);return n.forEachChild(fn,(function(t,e){var n=$r(Ur(o,new le(t)),e);r=r.updateImmediateChild(t,n)})),Fr(o).forEach((function(t){r=r.updateImmediateChild(t.name,t.node)})),r}var a=Ur(t.visibleWrites,e);return Fr(a).forEach((function(t){r=r.updateImmediateChild(t.name,t.node)})),r}function ti(t,e,n,r,i){Object(o["f"])(r||i,"Either existingEventSnap or existingServerSnap must exist");var a=be(e,n);if(Lr(t.visibleWrites,a))return null;var s=Ur(t.visibleWrites,a);return qr(s)?i.getChild(n):$r(s,i.getChild(n))}function ei(t,e,n,r){var i=be(e,n),o=Mr(t.visibleWrites,i);if(null!=o)return o;if(r.isCompleteForChild(n)){var a=Ur(t.visibleWrites,i);return $r(a,r.getNode().getImmediateChild(n))}return null}function ni(t,e){return Mr(t.visibleWrites,e)}function ri(t,e,n,r,i,o,a){var s,u=Ur(t.visibleWrites,e),c=Mr(u,fe());if(null!=c)s=c;else{if(null==n)return[];s=$r(u,n)}if(s=s.withIndex(a),s.isEmpty()||s.isLeafNode())return[];var l=[],f=a.getCompare(),h=o?s.getReverseIteratorFrom(r,a):s.getIteratorFrom(r,a),d=h.getNext();while(d&&l.length<i)0!==f(d,r)&&l.push(d),d=h.getNext();return l}function ii(){return{visibleWrites:Nr.empty(),allWrites:[],lastWriteId:-1}}function oi(t,e,n,r){return Jr(t.writeTree,t.treePath,e,n,r)}function ai(t,e){return Zr(t.writeTree,t.treePath,e)}function si(t,e,n,r){return ti(t.writeTree,t.treePath,e,n,r)}function ui(t,e){return ni(t.writeTree,be(t.treePath,e))}function ci(t,e,n,r,i,o){return ri(t.writeTree,t.treePath,e,n,r,i,o)}function li(t,e,n){return ei(t.writeTree,t.treePath,e,n)}function fi(t,e){return hi(be(t.treePath,e),t.writeTree)}function hi(t,e){return{treePath:t,writeTree:e}}
3665/**
3666 * @license
3667 * Copyright 2017 Google LLC
3668 *
3669 * Licensed under the Apache License, Version 2.0 (the "License");
3670 * you may not use this file except in compliance with the License.
3671 * You may obtain a copy of the License at
3672 *
3673 *   http://www.apache.org/licenses/LICENSE-2.0
3674 *
3675 * Unless required by applicable law or agreed to in writing, software
3676 * distributed under the License is distributed on an "AS IS" BASIS,
3677 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3678 * See the License for the specific language governing permissions and
3679 * limitations under the License.
3680 */var di=function(){function t(){this.changeMap=new Map}return t.prototype.trackChildChange=function(t){var e=t.type,n=t.childName;Object(o["f"])("child_added"===e||"child_changed"===e||"child_removed"===e,"Only child changes supported for tracking"),Object(o["f"])(".priority"!==n,"Only non-priority child changes can be tracked.");var r=this.changeMap.get(n);if(r){var i=r.type;if("child_added"===e&&"child_removed"===i)this.changeMap.set(n,Dn(n,t.snapshotNode,r.snapshotNode));else if("child_removed"===e&&"child_added"===i)this.changeMap.delete(n);else if("child_removed"===e&&"child_changed"===i)this.changeMap.set(n,Rn(n,r.oldSnap));else if("child_changed"===e&&"child_added"===i)this.changeMap.set(n,Pn(n,t.snapshotNode));else{if("child_changed"!==e||"child_changed"!==i)throw Object(o["g"])("Illegal combination of changes: "+t+" occurred after "+r);this.changeMap.set(n,Dn(n,t.snapshotNode,r.oldSnap))}}else this.changeMap.set(n,t)},t.prototype.getChanges=function(){return Array.from(this.changeMap.values())},t}(),pi=function(){function t(){}return t.prototype.getCompleteChild=function(t){return null},t.prototype.getChildAfterChild=function(t,e,n){return null},t}(),vi=new pi,gi=function(){function t(t,e,n){void 0===n&&(n=null),this.writes_=t,this.viewCache_=e,this.optCompleteServerCache_=n}return t.prototype.getCompleteChild=function(t){var e=this.viewCache_.eventCache;if(e.isCompleteForChild(t))return e.getNode().getImmediateChild(t);var n=null!=this.optCompleteServerCache_?new br(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return li(this.writes_,t,n)},t.prototype.getChildAfterChild=function(t,e,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:xr(this.viewCache_),i=ci(this.writes_,r,e,1,n,t);return 0===i.length?null:i[0]},t}();
3681/**
3682 * @license
3683 * Copyright 2017 Google LLC
3684 *
3685 * Licensed under the Apache License, Version 2.0 (the "License");
3686 * you may not use this file except in compliance with the License.
3687 * You may obtain a copy of the License at
3688 *
3689 *   http://www.apache.org/licenses/LICENSE-2.0
3690 *
3691 * Unless required by applicable law or agreed to in writing, software
3692 * distributed under the License is distributed on an "AS IS" BASIS,
3693 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3694 * See the License for the specific language governing permissions and
3695 * limitations under the License.
3696 */
3697/**
3698 * @license
3699 * Copyright 2017 Google LLC
3700 *
3701 * Licensed under the Apache License, Version 2.0 (the "License");
3702 * you may not use this file except in compliance with the License.
3703 * You may obtain a copy of the License at
3704 *
3705 *   http://www.apache.org/licenses/LICENSE-2.0
3706 *
3707 * Unless required by applicable law or agreed to in writing, software
3708 * distributed under the License is distributed on an "AS IS" BASIS,
3709 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3710 * See the License for the specific language governing permissions and
3711 * limitations under the License.
3712 */
3713function mi(t){return{filter:t}}function yi(t,e){Object(o["f"])(e.eventCache.getNode().isIndexed(t.filter.getIndex()),"Event snap not indexed"),Object(o["f"])(e.serverCache.getNode().isIndexed(t.filter.getIndex()),"Server snap not indexed")}function bi(t,e,n,r,i){var a,s,u=new di;if(n.type===ir.OVERWRITE){var c=n;c.source.fromUser?a=Oi(t,e,c.path,c.snap,r,i,u):(Object(o["f"])(c.source.fromServer,"Unknown source."),s=c.source.tagged||e.serverCache.isFiltered()&&!we(c.path),a=Ei(t,e,c.path,c.snap,r,i,s,u))}else if(n.type===ir.MERGE){var l=n;l.source.fromUser?a=Ti(t,e,l.path,l.children,r,i,u):(Object(o["f"])(l.source.fromServer,"Unknown source."),s=l.source.tagged||e.serverCache.isFiltered(),a=ki(t,e,l.path,l.children,r,i,s,u))}else if(n.type===ir.ACK_USER_WRITE){var f=n;a=f.revert?ji(t,e,f.path,r,i,u):Ci(t,e,f.path,f.affectedTree,r,i,u)}else{if(n.type!==ir.LISTEN_COMPLETE)throw Object(o["g"])("Unknown operation type: "+n.type);a=xi(t,e,n.path,r,u)}var h=u.getChanges();return wi(e,a,h),{viewCache:a,changes:h}}function wi(t,e,n){var r=e.eventCache;if(r.isFullyInitialized()){var i=r.getNode().isLeafNode()||r.getNode().isEmpty(),o=Cr(t);(n.length>0||!t.eventCache.isFullyInitialized()||i&&!r.getNode().equals(o)||!r.getNode().getPriority().equals(o.getPriority()))&&n.push(Nn(Cr(e)))}}function _i(t,e,n,r,i,a){var s=e.eventCache;if(null!=ui(r,n))return e;var u=void 0,c=void 0;if(we(n))if(Object(o["f"])(e.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),e.serverCache.isFiltered()){var l=xr(e),f=l instanceof mn?l:mn.EMPTY_NODE,h=ai(r,f);u=t.filter.updateFullNode(e.eventCache.getNode(),h,a)}else{var d=oi(r,xr(e));u=t.filter.updateFullNode(e.eventCache.getNode(),d,a)}else{var p=he(n);if(".priority"===p){Object(o["f"])(1===de(n),"Can't have a priority with additional path components");var v=s.getNode();c=e.serverCache.getNode();var g=si(r,n,v,c);u=null!=g?t.filter.updatePriority(v,g):s.getNode()}else{var m=pe(n),y=void 0;if(s.isCompleteForChild(p)){c=e.serverCache.getNode();var b=si(r,n,s.getNode(),c);y=null!=b?s.getNode().getImmediateChild(p).updateChild(m,b):s.getNode().getImmediateChild(p)}else y=li(r,p,e.serverCache);u=null!=y?t.filter.updateChild(s.getNode(),p,y,m,i,a):s.getNode()}}return Sr(e,u,s.isFullyInitialized()||we(n),t.filter.filtersNodes())}function Ei(t,e,n,r,i,o,a,s){var u,c=e.serverCache,l=a?t.filter:t.filter.getIndexedFilter();if(we(n))u=l.updateFullNode(c.getNode(),r,null);else if(l.filtersNodes()&&!c.isFiltered()){var f=c.getNode().updateChild(n,r);u=l.updateFullNode(c.getNode(),f,null)}else{var h=he(n);if(!c.isCompleteForPath(n)&&de(n)>1)return e;var d=pe(n),p=c.getNode().getImmediateChild(h),v=p.updateChild(d,r);u=".priority"===h?l.updatePriority(c.getNode(),v):l.updateChild(c.getNode(),h,v,d,vi,null)}var g=kr(e,u,c.isFullyInitialized()||we(n),l.filtersNodes()),m=new gi(i,g,o);return _i(t,g,n,i,m,s)}function Oi(t,e,n,r,i,o,a){var s,u,c=e.eventCache,l=new gi(i,e,o);if(we(n))u=t.filter.updateFullNode(e.eventCache.getNode(),r,a),s=Sr(e,u,!0,t.filter.filtersNodes());else{var f=he(n);if(".priority"===f)u=t.filter.updatePriority(e.eventCache.getNode(),r),s=Sr(e,u,c.isFullyInitialized(),c.isFiltered());else{var h=pe(n),d=c.getNode().getImmediateChild(f),p=void 0;
3713if(we(h))p=r;else{var v=l.getCompleteChild(f);p=null!=v?".priority"===ve(h)&&v.getChild(ye(h)).isEmpty()?v:v.updateChild(h,r):mn.EMPTY_NODE}if(d.equals(p))s=e;else{var g=t.filter.updateChild(c.getNode(),f,p,h,l,a);s=Sr(e,g,c.isFullyInitialized(),t.filter.filtersNodes())}}}return s}function Ii(t,e){return t.eventCache.isCompleteForChild(e)}function Ti(t,e,n,r,i,o,a){var s=e;return r.foreach((function(r,u){var c=be(n,r);Ii(e,he(c))&&(s=Oi(t,s,c,u,i,o,a))})),r.foreach((function(r,u){var c=be(n,r);Ii(e,he(c))||(s=Oi(t,s,c,u,i,o,a))})),s}function Si(t,e,n){return n.foreach((function(t,n){e=e.updateChild(t,n)})),e}function ki(t,e,n,r,i,o,a,s){if(e.serverCache.getNode().isEmpty()&&!e.serverCache.isFullyInitialized())return e;var u,c=e;u=we(n)?r:new Ar(null).setTree(n,r);var l=e.serverCache.getNode();return u.children.inorderTraversal((function(n,r){if(l.hasChild(n)){var u=e.serverCache.getNode().getImmediateChild(n),f=Si(t,u,r);c=Ei(t,c,new le(n),f,i,o,a,s)}})),u.children.inorderTraversal((function(n,r){var u=!e.serverCache.isCompleteForChild(n)&&void 0===r.value;if(!l.hasChild(n)&&!u){var f=e.serverCache.getNode().getImmediateChild(n),h=Si(t,f,r);c=Ei(t,c,new le(n),h,i,o,a,s)}})),c}function Ci(t,e,n,r,i,o,a){if(null!=ui(i,n))return e;var s=e.serverCache.isFiltered(),u=e.serverCache;if(null!=r.value){if(we(n)&&u.isFullyInitialized()||u.isCompleteForPath(n))return Ei(t,e,n,u.getNode().getChild(n),i,o,s,a);if(we(n)){var c=new Ar(null);return u.getNode().forEachChild(We,(function(t,e){c=c.set(new le(t),e)})),ki(t,e,n,c,i,o,s,a)}return e}var l=new Ar(null);return r.foreach((function(t,e){var r=be(n,t);u.isCompleteForPath(r)&&(l=l.set(t,u.getNode().getChild(r)))})),ki(t,e,n,l,i,o,s,a)}function xi(t,e,n,r,i){var o=e.serverCache,a=kr(e,o.getNode(),o.isFullyInitialized()||we(n),o.isFiltered());return _i(t,a,n,r,vi,i)}function ji(t,e,n,r,i,a){var s;if(null!=ui(r,n))return e;var u=new gi(r,e,i),c=e.eventCache.getNode(),l=void 0;if(we(n)||".priority"===he(n)){var f=void 0;if(e.serverCache.isFullyInitialized())f=oi(r,xr(e));else{var h=e.serverCache.getNode();Object(o["f"])(h instanceof mn,"serverChildren would be complete if leaf node"),f=ai(r,h)}f=f,l=t.filter.updateFullNode(c,f,a)}else{var d=he(n),p=li(r,d,e.serverCache);null==p&&e.serverCache.isCompleteForChild(d)&&(p=c.getImmediateChild(d)),l=null!=p?t.filter.updateChild(c,d,p,pe(n),u,a):e.eventCache.getNode().hasChild(d)?t.filter.updateChild(c,d,mn.EMPTY_NODE,pe(n),u,a):c,l.isEmpty()&&e.serverCache.isFullyInitialized()&&(s=oi(r,xr(e)),s.isLeafNode()&&(l=t.filter.updateFullNode(l,s,a)))}return s=e.serverCache.isFullyInitialized()||null!=ui(r,fe()),Sr(e,l,s,t.filter.filtersNodes())}
3714/**
3715 * @license
3716 * Copyright 2017 Google LLC
3717 *
3718 * Licensed under the Apache License, Version 2.0 (the "License");
3719 * you may not use this file except in compliance with the License.
3720 * You may obtain a copy of the License at
3721 *
3722 *   http://www.apache.org/licenses/LICENSE-2.0
3723 *
3724 * Unless required by applicable law or agreed to in writing, software
3725 * distributed under the License is distributed on an "AS IS" BASIS,
3726 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3727 * See the License for the specific language governing permissions and
3728 * limitations under the License.
3729 */var Ai,Ni=function(){function t(t,e){this.query_=t,this.eventRegistrations_=[];var n=this.query_._queryParams,r=new Mn(n.getIndex()),i=$n(n);this.processor_=mi(i);var o=e.serverCache,a=e.eventCache,s=r.updateFullNode(mn.EMPTY_NODE,o.getNode(),null),u=i.updateFullNode(mn.EMPTY_NODE,a.getNode(),null),c=new br(s,o.isFullyInitialized(),r.filtersNodes()),l=new br(u,a.isFullyInitialized(),i.filtersNodes());this.viewCache_=Tr(l,c),this.eventGenerator_=new wr(this.query_)}return Object.defineProperty(t.prototype,"query",{get:function(){return this.query_},enumerable:!1,configurable:!0}),t}();function Pi(t){return t.viewCache_.serverCache.getNode()}function Ri(t){return Cr(t.viewCache_)}function Di(t,e){var n=xr(t.viewCache_);return n&&(t.query._queryParams.loadsAllData()||!we(e)&&!n.getImmediateChild(he(e)).isEmpty())?n.getChild(e):null}function Li(t){return 0===t.eventRegistrations_.length}function Mi(t,e){t.eventRegistrations_.push(e)}function Fi(t,e,n){var r=[];if(n){Object(o["f"])(null==e,"A cancel should cancel all event registrations.");var i=t.query._path;t.eventRegistrations_.forEach((function(t){var e=t.createCancelEvent(n,i);e&&r.push(e)}))}if(e){for(var a=[],s=0;s<t.eventRegistrations_.length;++s){var u=t.eventRegistrations_[s];if(u.matches(e)){if(e.hasAnyCallback()){a=a.concat(t.eventRegistrations_.slice(s+1));break}}else a.push(u)}t.eventRegistrations_=a}else t.eventRegistrations_=[];return r}function Ui(t,e,n,r){e.type===ir.MERGE&&null!==e.source.queryId&&(Object(o["f"])(xr(t.viewCache_),"We should always have a full c
3729ache before handling merges"),Object(o["f"])(Cr(t.viewCache_),"Missing event cache, even though we have a server cache"));var i=t.viewCache_,a=bi(t.processor_,i,e,n,r);return yi(t.processor_,a.viewCache),Object(o["f"])(a.viewCache.serverCache.isFullyInitialized()||!i.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),t.viewCache_=a.viewCache,$i(t,a.changes,a.viewCache.eventCache.getNode(),null)}function qi(t,e){var n=t.viewCache_.eventCache,r=[];if(!n.getNode().isLeafNode()){var i=n.getNode();i.forEachChild(fn,(function(t,e){r.push(Pn(t,e))}))}return n.isFullyInitialized()&&r.push(Nn(n.getNode())),$i(t,r,n.getNode(),e)}function $i(t,e,n,r){var i=r?[r]:t.eventRegistrations_;return _r(t.eventGenerator_,e,n,i)}
3730/**
3731 * @license
3732 * Copyright 2017 Google LLC
3733 *
3734 * Licensed under the Apache License, Version 2.0 (the "License");
3735 * you may not use this file except in compliance with the License.
3736 * You may obtain a copy of the License at
3737 *
3738 *   http://www.apache.org/licenses/LICENSE-2.0
3739 *
3740 * Unless required by applicable law or agreed to in writing, software
3741 * distributed under the License is distributed on an "AS IS" BASIS,
3742 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3743 * See the License for the specific language governing permissions and
3744 * limitations under the License.
3745 */var Bi,Vi=function(){function t(){this.views=new Map}return t}();function Ki(t){Object(o["f"])(!Ai,"__referenceConstructor has already been defined"),Ai=t}function Wi(){return Object(o["f"])(Ai,"Reference.ts has not been loaded"),Ai}function zi(t){return 0===t.views.size}function Hi(t,e,n,r){var i,s,u=e.source.queryId;if(null!==u){var c=t.views.get(u);return Object(o["f"])(null!=c,"SyncTree gave us an op for an invalid query."),Ui(c,e,n,r)}var l=[];try{for(var f=Object(a["g"])(t.views.values()),h=f.next();!h.done;h=f.next()){c=h.value;l=l.concat(Ui(c,e,n,r))}}catch(d){i={error:d}}finally{try{h&&!h.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}return l}function Gi(t,e,n,r,i){var o=e._queryIdentifier,a=t.views.get(o);if(!a){var s=oi(n,i?r:null),u=!1;s?u=!0:r instanceof mn?(s=ai(n,r),u=!1):(s=mn.EMPTY_NODE,u=!1);var c=Tr(new br(s,u,!1),new br(r,i,!1));return new Ni(e,c)}return a}function Xi(t,e,n,r,i,o){var a=Gi(t,e,r,i,o);return t.views.has(e._queryIdentifier)||t.views.set(e._queryIdentifier,a),Mi(a,n),qi(a,n)}function Yi(t,e,n,r){var i,o,s=e._queryIdentifier,u=[],c=[],l=eo(t);if("default"===s)try{for(var f=Object(a["g"])(t.views.entries()),h=f.next();!h.done;h=f.next()){var d=Object(a["e"])(h.value,2),p=d[0],v=d[1];c=c.concat(Fi(v,n,r)),Li(v)&&(t.views.delete(p),v.query._queryParams.loadsAllData()||u.push(v.query))}}catch(g){i={error:g}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}else{v=t.views.get(s);v&&(c=c.concat(Fi(v,n,r)),Li(v)&&(t.views.delete(s),v.query._queryParams.loadsAllData()||u.push(v.query)))}return l&&!eo(t)&&u.push(new(Wi())(e._repo,e._path)),{removed:u,events:c}}function Qi(t){var e,n,r=[];try{for(var i=Object(a["g"])(t.views.values()),o=i.next();!o.done;o=i.next()){var s=o.value;s.query._queryParams.loadsAllData()||r.push(s)}}catch(u){e={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function Ji(t,e){var n,r,i=null;try{for(var o=Object(a["g"])(t.views.values()),s=o.next();!s.done;s=o.next()){var u=s.value;i=i||Di(u,e)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}function Zi(t,e){var n=e._queryParams;if(n.loadsAllData())return no(t);var r=e._queryIdentifier;return t.views.get(r)}function to(t,e){return null!=Zi(t,e)}function eo(t){return null!=no(t)}function no(t){var e,n;try{for(var r=Object(a["g"])(t.views.values()),i=r.next();!i.done;i=r.next()){var o=i.value;if(o.query._queryParams.loadsAllData())return o}}catch(s){e={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null}
3746/**
3747 * @license
3748 * Copyright 2017 Google LLC
3749 *
3750 * Licensed under the Apache License, Version 2.0 (the "License");
3751 * you may not use this file except in compliance with the License.
3752 * You may obtain a copy of the License at
3753 *
3754 *   http://www.apache.org/licenses/LICENSE-2.0
3755 *
3756 * Unless required by applicable law or agreed to in writing, software
3757 * distributed under the License is distributed on an "AS IS" BASIS,
3758 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3759 * See the License for the specific language governing permissions and
3760 * limitations under the License.
3761 */function ro(t){Object(o["f"])(!Bi,"__referenceConstructor has already been defined"),Bi=t}function io(){return Object(o["f"])(Bi,"Reference.ts has not been loaded"),Bi}var oo=1,ao=function(){function t(t){this.listenProvider_=t,this.syncPointTree_=new Ar(null),this.pendingWriteTree_=ii(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}return t}();function so(t,e,n,r,i){return Kr(t.pendingWriteTree_,e,n,r,i),i?_o(t,new mr(fr(),e,n)):[]}function uo(t,e,n,r){Wr(t.pendingWriteTree_,e,n,r);var i=Ar.fromObject(n);return _o(t,new yr(fr(),e,i))}function co(t,e,n){void 0===n&&(n=!1);var r=zr(t.pendingWriteTree_,e),i=Hr(t.pendingWriteTree_,e);if(i){var o=new Ar(null);return null!=r.snap?o=o.set(fe(),!0):U(r.children,(function(t){o=o.set(new le(t),!0)})),_o(t,new vr(r.path,o,n))}return[]}function lo(t,e,n){return _o(t,new mr(hr(),e,n))}function fo(t,e,n){var r=Ar.fromObject(n);return _o(t,new yr(hr(),e,r))}function ho(t,e){return _o(t,new gr(hr(),e))}function po(t,e,n){var r=ko(t,n);if(r){var i=Co(r),o=i.path,a=i.queryId,s=_e(o,e),u=new gr(dr(a),s);return xo(t,o,u)}return[]}function vo(t,e,n,r){var i=e._path,o=t.syncPointTree_.get(i),a=[];if(o&&("default"===e._queryIdentifier||to(o,e))){var s=Yi(o,e,n,r);zi(o)&&(t.syncPointTree_=t.syncPointTree_.remove(i));var u=s.removed;a=s.events;var c=-1!==u.findIndex((function(t){return t._queryParams.loadsAllData()})),l=t.syncPointTree_.findOnPath(i,(function(t,e){return eo(e)}));if(c&&!l){var f=t.syncPointTree_.subtree(i);if(!f.isEmpty())for(var h=jo(f),d=0;d<h.length;++d){var p=h[d],v=p.query,g=Io(t,p);t.listenProvider_.startListening(Ao(v),To(t,v),g.hashFn,g.onComplete)}}if(!l&&u.length>0&&!r)if(c){var m=null;t.listenProvider_.stopListening(Ao(e),m)}else u.forEach((function(e){var n=t.queryToTagMap.get(So(e));t.listenProvider_.stopListening(Ao(e),n)}));No(t,u)}return a}function go(t,e,n,r){var i=ko(t,r);if(null!=i){var o=Co(i),a=o.path,s=o.queryId,u=_e(a,e),c=new mr(dr(s),u,n);return xo(t,a,c)}return[]}function mo(t,e,n,r){var i=ko(t,r);if(i){var o=Co(i),a=o.path,s=o.queryId,u=_e(a,e),c=Ar.fromObject(n),l=new yr(dr(s),u,c);return xo(t,a,l)}return[]}function yo(t,e,n){var r=e._path,i=null,a=!1;t.syncPointTree_.foreachOnPath(r,(function(t,e){var n=_e(t,r);i=i||Ji(e,n),a=a||eo(e)}));var s,u=t.syncPointTree_.get(r);if(u?(a=a||eo(u),i=i||Ji(u,fe())):(u=new Vi,t.syncPointTree_=t.syncPointTree_.set(r,u)),null!=i)s=!0;else{s=!1,i=mn.EMPTY_NODE;var c=t.syncPointTree_.subtree(r);c.foreachChild((function(t,e){var n=Ji(e,fe());n&&(i=i.updateImmediateChild(t,n))}))}var l=to(u,e);if(!l&&!e._queryParams.loadsAllData()){var f=So(e);Object(o["f"])(!t.queryToTagMap.has(f),"View does not exist, but we have a tag");var h=Po();t.queryToTagMap.set(f,h),t.tagToQueryMap.set(h,f)}var d=Vr(t.pendingWriteTree_,r),p=Xi(u,e,n,d,i,s);if(!l&&!a){var v=Zi(u,e);p=p.concat(Ro(t,e,v))}return p}function bo(t,e,n){var r=!0,i=t.pendingWriteTree_,o=t.syncPointTree_.findOnPath(e,(function(t,n){var r=_e(t,e),i=Ji(n,r);if(i)return i}));return Jr(i,e,o,n,r)}function wo(t,e){var n=e._path,r=null;t.syncPointTree_.foreachOnPath(n,(function(t,e){var i=_e(t,n);r=r||Ji(e,i)}));var i=t.syncPointTree_.get(n);i?r=r||Ji(i,fe()):(i=new Vi,t.syncPointTree_=t.syncPointTree_.set(n,i));var o=null!=r,a=o?new br(r,!0,!1):null,s=Vr(t.pendingWriteTree_,e._path),u=Gi(i,e,s,o?a.getNode():mn.EMPTY_NODE,o);return Ri(u)}function _o(t,e){return Eo(e,t.syncPointTree_,null,Vr(t.pendingWriteTree_,fe()))}function Eo(t,e,n,r){if(we(t.path))return Oo(t,e,n,r);var i=e.get(fe());null==n&&null!=i&&(n=Ji(i,fe()));var o=[],a=he(t.path),s=t.operationForChild(a),u=e.children.get(a);if(u&&s){var c=n?n.getImmediateChild(a):null,l=fi(r,a);o=o.concat(Eo(s,u,c,l))}
3761return i&&(o=o.concat(Hi(i,t,r,n))),o}function Oo(t,e,n,r){var i=e.get(fe());null==n&&null!=i&&(n=Ji(i,fe()));var o=[];return e.children.inorderTraversal((function(e,i){var a=n?n.getImmediateChild(e):null,s=fi(r,e),u=t.operationForChild(e);u&&(o=o.concat(Oo(u,i,a,s)))})),i&&(o=o.concat(Hi(i,t,r,n))),o}function Io(t,e){var n=e.query,r=To(t,n);return{hashFn:function(){var t=Pi(e)||mn.EMPTY_NODE;return t.hash()},onComplete:function(e){if("ok"===e)return r?po(t,n._path,r):ho(t,n._path);var i=V(e,n);return vo(t,n,null,i)}}}function To(t,e){var n=So(e);return t.queryToTagMap.get(n)}function So(t){return t._path.toString()+"$"+t._queryIdentifier}function ko(t,e){return t.tagToQueryMap.get(e)}function Co(t){var e=t.indexOf("$");return Object(o["f"])(-1!==e&&e<t.length-1,"Bad queryKey."),{queryId:t.substr(e+1),path:new le(t.substr(0,e))}}function xo(t,e,n){var r=t.syncPointTree_.get(e);Object(o["f"])(r,"Missing sync point for query tag that we're tracking");var i=Vr(t.pendingWriteTree_,e);return Hi(r,n,i,null)}function jo(t){return t.fold((function(t,e,n){if(e&&eo(e)){var r=no(e);return[r]}var i=[];return e&&(i=Qi(e)),U(n,(function(t,e){i=i.concat(e)})),i}))}
3761function Ao(t){return t._queryParams.loadsAllData()&&!t._queryParams.isDefault()?new(io())(t._repo,t._path):t}function No(t,e){for(var n=0;n<e.length;++n){var r=e[n];if(!r._queryParams.loadsAllData()){var i=So(r),o=t.queryToTagMap.get(i);t.queryToTagMap.delete(i),t.tagToQueryMap.delete(o)}}}function Po(){return oo++}function Ro(t,e,n){var r=e._path,i=To(t,e),a=Io(t,n),s=t.listenProvider_.startListening(Ao(e),i,a.hashFn,a.onComplete),u=t.syncPointTree_.subtree(r);if(i)Object(o["f"])(!eo(u.value),"If we're adding a query, it shouldn't be shadowed");else for(var c=u.fold((function(t,e,n){if(!we(t)&&e&&eo(e))return[no(e).query];var r=[];return e&&(r=r.concat(Qi(e).map((function(t){return t.query})))),U(n,(function(t,e){r=r.concat(e)})),r})),l=0;l<c.length;++l){var f=c[l];t.listenProvider_.stopListening(Ao(f),To(t,f))}return s}
3762/**
3763 * @license
3764 * Copyright 2017 Google LLC
3765 *
3766 * Licensed under the Apache License, Version 2.0 (the "License");
3767 * you may not use this file except in compliance with the License.
3768 * You may obtain a copy of the License at
3769 *
3770 *   http://www.apache.org/licenses/LICENSE-2.0
3771 *
3772 * Unless required by applicable law or agreed to in writing, software
3773 * distributed under the License is distributed on an "AS IS" BASIS,
3774 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3775 * See the License for the specific language governing permissions and
3776 * limitations under the License.
3777 */var Do=function(){function t(t){this.node_=t}return t.prototype.getImmediateChild=function(e){var n=this.node_.getImmediateChild(e);return new t(n)},t.prototype.node=function(){return this.node_},t}(),Lo=function(){function t(t,e){this.syncTree_=t,this.path_=e}return t.prototype.getImmediateChild=function(e){var n=be(this.path_,e);return new t(this.syncTree_,n)},t.prototype.node=function(){return bo(this.syncTree_,this.path_)},t}(),Mo=function(t){return t=t||{},t["timestamp"]=t["timestamp"]||(new Date).getTime(),t},Fo=function(t,e,n){return t&&"object"===typeof t?(Object(o["f"])(".sv"in t,"Unexpected leaf node or priority contents"),"string"===typeof t[".sv"]?Uo(t[".sv"],e,n):"object"===typeof t[".sv"]?qo(t[".sv"],e):void Object(o["f"])(!1,"Unexpected server value: "+JSON.stringify(t,null,2))):t},Uo=function(t,e,n){switch(t){case"timestamp":return n["timestamp"];default:Object(o["f"])(!1,"Unexpected server value: "+t)}},qo=function(t,e,n){t.hasOwnProperty("increment")||Object(o["f"])(!1,"Unexpected server value: "+JSON.stringify(t,null,2));var r=t["increment"];"number"!==typeof r&&Object(o["f"])(!1,"Unexpected increment value: "+r);var i=e.node();if(Object(o["f"])(null!==i&&"undefined"!==typeof i,"Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return r;var a=i,s=a.getValue();return"number"!==typeof s?r:s+r},$o=function(t,e,n,r){return Vo(e,new Lo(n,t),r)},Bo=function(t,e,n){return Vo(t,new Do(e),n)};function Vo(t,e,n){var r,i=t.getPriority().val(),o=Fo(i,e.getImmediateChild(".priority"),n);if(t.isLeafNode()){var a=t,s=Fo(a.getValue(),e,n);return s!==a.getValue()||o!==a.getPriority().val()?new on(s,_n(o)):t}var u=t;return r=u,o!==u.getPriority().val()&&(r=r.updatePriority(new on(o))),u.forEachChild(fn,(function(t,i){var o=Vo(i,e.getImmediateChild(t),n);o!==i&&(r=r.updateImmediateChild(t,o))})),r}
3778/**
3779 * @license
3780 * Copyright 2017 Google LLC
3781 *
3782 * Licensed under the Apache License, Version 2.0 (the "License");
3783 * you may not use this file except in compliance with the License.
3784 * You may obtain a copy of the License at
3785 *
3786 *   http://www.apache.org/licenses/LICENSE-2.0
3787 *
3788 * Unless required by applicable law or agreed to in writing, software
3789 * distributed under the License is distributed on an "AS IS" BASIS,
3790 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3791 * See the License for the specific language governing permissions and
3792 * limitations under the License.
3793 */var Ko=function(){function t(t,e,n){void 0===t&&(t=""),void 0===e&&(e=null),void 0===n&&(n={children:{},childCount:0}),this.name=t,this.parent=e,this.node=n}return t}();function Wo(t,e){var n=e instanceof le?e:new le(e),r=t,i=he(n);while(null!==i){var a=Object(o["I"])(r.node.children,i)||{children:{},childCount:0};r=new Ko(i,r,a),n=pe(n),i=he(n)}return r}function zo(t){return t.node.value}function Ho(t,e){t.node.value=e,ta(t)}function Go(t){return t.node.childCount>0}function Xo(t){return void 0===zo(t)&&!Go(t)}function Yo(t,e){U(t.node.children,(function(n,r){e(new Ko(n,t,r))}))}function Qo(t,e,n,r){n&&!r&&e(t),Yo(t,(function(t){Qo(t,e,!0,r)})),n&&r&&e(t)}function Jo(t,e,n){var r=n?t:t.parent;while(null!==r){if(e(r))return!0;r=r.parent}return!1}function Zo(t){return new le(null===t.parent?t.name:Zo(t.parent)+"/"+t.name)}function ta(t){null!==t.parent&&ea(t.parent,t.name,t)}function ea(t,e,n){var r=Xo(n),i=Object(o["k"])(t.node.children,e);r&&i?(delete t.node.children[e],t.node.childCount--,ta(t)):r||i||(t.no
3793de.children[e]=n.node,t.node.childCount++,ta(t))}
3794/**
3795 * @license
3796 * Copyright 2017 Google LLC
3797 *
3798 * Licensed under the Apache License, Version 2.0 (the "License");
3799 * you may not use this file except in compliance with the License.
3800 * You may obtain a copy of the License at
3801 *
3802 *   http://www.apache.org/licenses/LICENSE-2.0
3803 *
3804 * Unless required by applicable law or agreed to in writing, software
3805 * distributed under the License is distributed on an "AS IS" BASIS,
3806 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3807 * See the License for the specific language governing permissions and
3808 * limitations under the License.
3809 */var na=/[\[\].#$\/\u0000-\u001F\u007F]/,ra=/[\[\].#$\u0000-\u001F\u007F]/,ia=10485760,oa=function(t){return"string"===typeof t&&0!==t.length&&!na.test(t)},aa=function(t){return"string"===typeof t&&0!==t.length&&!ra.test(t)},sa=function(t){return t&&(t=t.replace(/^\/*\.info(\/|$)/,"/")),aa(t)},ua=function(t){return null===t||"string"===typeof t||"number"===typeof t&&!j(t)||t&&"object"===typeof t&&Object(o["k"])(t,".sv")},ca=function(t,e,n,r){r&&void 0===e||la(Object(o["p"])(t,"value"),e,n)},la=function(t,e,n){var r=n instanceof le?new Te(n,t):n;if(void 0===e)throw new Error(t+"contains undefined "+xe(r));if("function"===typeof e)throw new Error(t+"contains a function "+xe(r)+" with contents = "+e.toString());if(j(e))throw new Error(t+"contains "+e.toString()+" "+xe(r));if("string"===typeof e&&e.length>ia/3&&Object(o["J"])(e)>ia)throw new Error(t+"contains a string greater than "+ia+" utf8 bytes "+xe(r)+" ('"+e.substring(0,50)+"...')");if(e&&"object"===typeof e){var i=!1,a=!1;if(U(e,(function(e,n){if(".value"===e)i=!0;else if(".priority"!==e&&".sv"!==e&&(a=!0,!oa(e)))throw new Error(t+" contains an invalid key ("+e+") "+xe(r)+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');Se(r,e),la(t,n,r),ke(r)})),i&&a)throw new Error(t+' contains ".value" child '+xe(r)+" in addition to actual children.")}},fa=function(t,e){var n,r;for(n=0;n<e.length;n++){r=e[n];for(var i=me(r),o=0;o<i.length;o++)if(".priority"===i[o]&&o===i.length-1);else if(!oa(i[o]))throw new Error(t+"contains an invalid key ("+i[o]+") in path "+r.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"')}e.sort(Ee);var a=null;for(n=0;n<e.length;n++){if(r=e[n],null!==a&&Ie(a,r))throw new Error(t+"contains a path "+a.toString()+" that is ancestor of another path "+r.toString());a=r}},ha=function(t,e,n,r){if(!r||void 0!==e){var i=Object(o["p"])(t,"values");if(!e||"object"!==typeof e||Array.isArray(e))throw new Error(i+" must be an object containing the children to replace.");var a=[];U(e,(function(t,e){var r=new le(t);if(la(i,e,be(n,r)),".priority"===ve(r)&&!ua(e))throw new Error(i+"contains an invalid value for '"+r.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");a.push(r)})),fa(i,a)}},da=function(t,e,n){if(!n||void 0!==e){if(j(e))throw new Error(Object(o["p"])(t,"priority")+"is "+e.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!ua(e))throw new Error(Object(o["p"])(t,"priority")+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},pa=function(t,e,n){if(!n||void 0!==e)switch(e){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(Object(o["p"])(t,"eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},va=function(t,e,n,r){if((!r||void 0!==n)&&!oa(n))throw new Error(Object(o["p"])(t,e)+'was an invalid key = "'+n+'".  Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},ga=function(t,e,n,r){if((!r||void 0!==n)&&!aa(n))throw new Error(Object(o["p"])(t,e)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},ma=function(t,e,n,r){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),ga(t,e,n,r)},ya=function(t,e){if(".info"===he(e))throw new Error(t+" failed = Can't modify data under /.info/")},ba=function(t,e){var n=e.path.toString();if("string"!==typeof e.repoInfo.host||0===e.repoInfo.host.length||!oa(e.repoInfo.namespace)&&"localhost"!==e.repoInfo.host.split(":")[0]||0!==n.length&&!sa(n))throw new Error(Object(o["p"])(t,"url")+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},wa=function(t,e,n,r){if((!r||void 0!==n)&&"boolean"!==typeof n)throw new Error(Object(o["p"])(t,e)+"must be a boolean.")},_a=function(){function t(){this.eventLists_=[],this.recursionDepth_=0}return t}();function Ea(t,e){for(var n=null,r=0;r<e.length;r++){var i=e[r],o=i.getPath();null===n||Oe(o,n.path)||(t.eventLists_.push(n),n=null),null===n&&(n={events:[],path:o}),n.events.push(i)}n&&t.eventLists_.push(n)}function Oa(t,e,n){Ea(t,n),Ta(t,(function(t){return Oe(t,e)}))}function Ia(t,e,n){Ea(t,n),Ta(t,(function(t){return Ie(t,e)||Ie(e,t)}))}function Ta(t,e){t.recursionDepth_++;for(var n=!0,r=0;r<t.eventLists_.length;r++){var i=t.eventLists_[r];if(i){var o=i.path;e(o)?(Sa(t.eventLists_[r]),t.eventLists_[r]=null):n=!1}}n&&(t.eventLists_=[]),t.recursionDepth_--}function Sa(t){for(var e=0;e<t.events.length;e++){var n=t.events[e];if(null!==n){t.events[e]=null;var r=n.getEventRunner();_&&I("event: "+n.toString()),G(r)}}}
3810/**
3811 * @license
3812 * Copyright 2017 Google LLC
3813 *
3814 * Licensed under the Apache License, Version 2.0 (the "License");
3815 * you may not use this file except in compliance with the License.
3816 * You may obtain a copy of the License at
3817 *
3818 *   http://www.apache.org/licenses/LICENSE-2.0
3819 *
3820 * Unless required by applicable law or agreed to in writing, software
3821 * distributed under the License is distributed on an "AS IS" BASIS,
3822 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3823 * See the License for the specific language governing permissions and
3824 * limitations under the License.
3825 */var ka="repo_interrupt",Ca=25,xa=function(){function t(t,e,n,r){this.repoInfo_=t,this.forceRestClient_=e,this.authTokenProvider_=n,this.appCheckProvider_=r,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new _a,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=Zn(),this.transactionQueueTree_=new Ko,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}return t.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},t}();function ja(t,e,n){if(t.stats_=mt(t.repoInfo_),t.forceRestClient_||X())t.server_=new Qn(t.repoInfo_,(function(e,n,r,i){Pa(t,e,n,r,i)}),t.authTokenProvider_,t.appCheckProvider_),setTimeout((function(){return Da(t,!0)}),0);else{if("undefined"!==typeof n&&null!==n){if("object"!==typeof n)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{Object(o["L"])(n)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}t.persistentConnection_=new $e(t.repoInfo_,e,(function(e,n,r,i){Pa(t,e,n,r,i)}),(function(e){Da(t,e)}),(function(e){La(t,e)}),t.authTokenProvider_,t.appCheckProvider_,n),t.server_=t.persistentConnection_}t.authTokenProvider_.addTokenChangeListener((function(e){t.server_.refreshAuthToken(e)})),t.appCheckProvider_.addTokenChangeListener((function(e){t.server_.refreshAppCheckToken(e.token)})),t.statsReporter_=yt(t.repoInfo_,(function(){return new cr(t.stats_,t.server_)})),t.infoData_=new Jn,t.infoSyncTree_=new ao({startListening:function(e,n,r,i){var o=[],a=t.infoData_.getNode(e._path);return a.isEmpty()||(o=lo(t.infoSyncTree_,e._path,a),setTimeout((function(){i("ok")}),0)),o},stopListening:function(){}}),Ma(t,"connected",!1),t.serverSyncTree_=new ao({startListening:function(e,n,r,i){return t.server_.listen(e,r,n,(function(n,r){var o=i(n,r);Ia(t.eventQueue_,e._path,o)})),[]},stopListening:function(e,n){t.server_.unlisten(e,n)}})}function Aa(t){var e=t.infoData_.getNode(new le(".info/serverTimeOffset")),n=e.val()||0;return(new Date).getTime()+n}function Na(t){return Mo({timestamp:Aa(t)})}function Pa(t,e,n,r,i){t.dataUpdateCount++;var a=new le(e);n=t.interceptServerDataCallback_?t.interceptServerDataCallback_(e,n):n;var s=[];if(i)if(r){var u=Object(o["G"])(n,(function(t){return _n(t)}));s=mo(t.serverSyncTree_,a,u,i)}else{var c=_n(n);s=go(t.serverSyncTree_,a,c,i)}else if(r){var l=Object(o["G"])(n,(function(t){return _n(t)}));s=fo(t.serverSyncTree_,a,l)}else{var f=_n(n);s=lo(t.serverSyncTree_,a,f)}var h=a;s.length>0&&(h=os(t,a)),Ia(t.eventQueue_,h,s)}function Ra(t,e){t.interceptServerDataCallback_=e}function Da(t,e){Ma(t,"connected",e),!1===e&&Ba(t)}function La(t,e){U(e,(function(e,n){Ma(t,e,n)}))}function Ma(t,e,n){var r=new le("/.info/"+e),i=_n(n);t.infoData_.updateSnapshot(r,i);var o=lo(t.infoSyncTree_,r,i);Ia(t.eventQueue_,r,o)}function Fa(t){return t.nextWriteId_++}function Ua(t,e){var n=wo(t.serverSyncTree_,e);return null!=n?Promise.resolve(n):t.server_.get(e).then((function(n){var r=_n(n),i=lo(t.serverSyncTree_,e._path,r);return Oa(t.eventQueue_,e._path,i),Promise.resolve(r)}),(function(n){return Za(t,"get for query "+Object(o["L"])(e)+" failed: "+n),Promise.reject(new Error(n))}))}function qa(t,e,n,r,i){Za(t,"set",{path:e.toString(),value:n,priority:r});var o=Na(t),a=_n(n,r),s=bo(t.serverSyncTree_,e),u=Bo(a,s,o),c=Fa(t),l=so(t.serverSyncTree_,e,u,c,!0);Ea(t.eventQueue_,l),t.server_.put(e.toString(),a.val(!0),(function(n,r){var o="ok"===n;o||C("set at "+e+" failed: "+n);var a=co(t.serverSyncTree_,c,!o);Ia(t.eventQueue_,e,a),ts(t,i,n,r)}));var f=fs(t,e);os(t,f),Ia(t.eventQueue_,f,[])}function $a(t,e,n,r){Za(t,"update",{path:e.toString(),value:n});var i=!0,o=Na(t),a={};if(U(n,(function(n,r){i=!1,a[n]=$o(be(e,n),_n(r),t.serverSyncTree_,o)})),i)I("update() called with empty data.  Don't do anything."),ts(t,r,"ok",void 0);else{var s=Fa(t),u=uo(t.serverSyncTree_,e,a,s);Ea(t.eventQueue_,u),t.server_.merge(e.toString(),n,(function(n,i){var o="ok"===n;o||C("update at "+e+" failed: "+n);var a=co(t.serverSyncTree_,s,!o),u=a.length>0?os(t,e):e;Ia(t.eventQueue_,u,a),ts(t,r,n,i)})),U(n,(function(n){var r=fs(t,be(e,n));os(t,r)})),Ia(t.eventQueue_,e,[])}}function Ba(t){Za(t,"onDisconnectEvents");var e=Na(t),n=Zn();nr(t.onDisconnect_,fe(),(function(r,i){var o=$o(r,i,t.serverSyncTree_,e);tr(n,r,o)}));var r=[];nr(n,fe(),(function(e,n){r=r.concat(lo(t.serverSyncTree_,e,n));var i=fs(t,e);os(t,i)}
3825)),t.onDisconnect_=Zn(),Ia(t.eventQueue_,fe(),r)}function Va(t,e,n){t.server_.onDisconnectCancel(e.toString(),(function(r,i){"ok"===r&&er(t.onDisconnect_,e),ts(t,n,r,i)}))}function Ka(t,e,n,r){var i=_n(n);t.server_.onDisconnectPut(e.toString(),i.val(!0),(function(n,o){"ok"===n&&tr(t.onDisconnect_,e,i),ts(t,r,n,o)}))}function Wa(t,e,n,r,i){var o=_n(n,r);t.server_.onDisconnectPut(e.toString(),o.val(!0),(function(n,r){"ok"===n&&tr(t.onDisconnect_,e,o),ts(t,i,n,r)}))}function za(t,e,n,r){if(Object(o["w"])(n))return I("onDisconnect().update() called with empty data.  Don't do anything."),void ts(t,r,"ok",void 0);t.server_.onDisconnectMerge(e.toString(),n,(function(i,o){"ok"===i&&U(n,(function(n,r){var i=_n(r);tr(t.onDisconnect_,be(e,n),i)})),ts(t,r,i,o)}))}function Ha(t,e,n){var r;r=".info"===he(e._path)?yo(t.infoSyncTree_,e,n):yo(t.serverSyncTree_,e,n),Oa(t.eventQueue_,e._path,r)}function Ga(t,e,n){var r;r=".info"===he(e._path)?vo(t.infoSyncTree_,e,n):vo(t.serverSyncTree_,e,n),Oa(t.eventQueue_,e._path,r)}function Xa(t){t.persistentConnection_&&t.persistentConnection_.interrupt(ka)}function Ya(t){t.persistentConnection_&&t.persistentConnection_.resume(ka)}function Qa(t,e){if(void 0===e&&(e=!1),"undefined"!==typeof console){var n;e?(t.statsListener_||(t.statsListener_=new or(t.stats_)),n=t.statsListener_.get()):n=t.stats_.get();var r=Object.keys(n).reduce((function(t,e){return Math.max(e.length,t)}),0);U(n,(function(t,e){for(var n=t,i=t.length;i<r+2;i++)n+=" ";console.log(n+e)}))}}function Ja(t,e){t.stats_.incrementCounter(e),lr(t.statsReporter_,e)}function Za(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r="";t.persistentConnection_&&(r=t.persistentConnection_.id+":"),I.apply(void 0,Object(a["f"])([r],Object(a["e"])(e)))}function ts(t,e,n,r){e&&G((function(){if("ok"===n)e(null);else{var t=(n||"error").toUpperCase(),i=t;r&&(i+=": "+r);var o=new Error(i);o.code=t,e(o)}}))}function es(t,e,n,r,i,a){Za(t,"transaction on "+e);var s={path:e,update:n,onComplete:r,status:null,order:y(),applyLocally:a,retryCount:0,unwatcher:i,abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},u=ns(t,e,void 0);s.currentInputSnapshot=u;var c=s.update(u.val());if(void 0===c)s.unwatcher(),s.currentOutputSnapshotRaw=null,s.currentOutputSnapshotResolved=null,s.onComplete&&s.onComplete(null,!1,s.currentInputSnapshot);else{la("transaction failed: Data returned ",c,s.path),s.status=0;var l=Wo(t.transactionQueueTree_,e),f=zo(l)||[];f.push(s),Ho(l,f);var h=void 0;if("object"===typeof c&&null!==c&&Object(o["k"])(c,".priority"))h=Object(o["I"])(c,".priority"),Object(o["f"])(ua(h),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.");else{var d=bo(t.serverSyncTree_,e)||mn.EMPTY_NODE;h=d.getPriority().val()}var p=Na(t),v=_n(c,h),g=Bo(v,u,p);s.currentOutputSnapshotRaw=v,s.currentOutputSnapshotResolved=g,s.currentWriteId=Fa(t);var m=so(t.serverSyncTree_,e,g,s.currentWriteId,s.applyLocally);Ia(t.eventQueue_,e,m),rs(t,t.transactionQueueTree_)}}function ns(t,e,n){return bo(t.serverSyncTree_,e,n)||mn.EMPTY_NODE}function rs(t,e){if(void 0===e&&(e=t.transactionQueueTree_),e||ls(t,e),zo(e)){var n=us(t,e);Object(o["f"])(n.length>0,"Sending zero length transaction queue");var r=n.every((function(t){return 0===t.status}));r&&is(t,Zo(e),n)}else Go(e)&&Yo(e,(function(e){rs(t,e)}))}function is(t,e,n){for(var r=n.map((function(t){return t.currentWriteId})),i=ns(t,e,r),a=i,s=i.hash(),u=0;u<n.length;u++){var c=n[u];Object(o["f"])(0===c.status,"tryToSendTransactionQueue_: items in queue should all be run."),c.status=1,c.retryCount++;var l=_e(e,c.path);a=a.updateChild(l,c.currentOutputSnapshotRaw)}var f=a.val(!0),h=e;t.server_.put(h.toString(),f,(function(r){Za(t,"transaction put response",{path:h.toString(),status:r});var i=[];if("ok"===r){for(var o=[],a=function(e){n[e].status=2,i=i.concat(co(t.serverSyncTree_,n[e].currentWriteId)),n[e].onComplete&&o.push((function(){return n[e].onComplete(null,!0,n[e].currentOutputSnapshotResolved)})),n[e].unwatcher()},s=0;s<n.length;s++)a(s);ls(t,Wo(t.transactionQueueTree_,e)),rs(t,t.transactionQueueTree_),Ia(t.eventQueue_,e,i);for(s=0;s<o.length;s++)G(o[s])}else{if("datastale"===r)for(s=0;s<n.length;s++)3===n[s].status?n[s].status=4:n[s].status=0;
3825else{C("transaction at "+h.toString()+" failed: "+r);for(s=0;s<n.length;s++)n[s].status=4,n[s].abortReason=r}os(t,e)}}),s)}function os(t,e){var n=ss(t,e),r=Zo(n),i=us(t,n);return as(t,i,r),r}function as(t,e,n){if(0!==e.length){for(var r=[],i=[],a=e.filter((function(t){return 0===t.status})),s=a.map((function(t){return t.currentWriteId})),u=function(a){var u,c=e[a],l=_e(n,c.path),f=!1;if(Object(o["f"])(null!==l,"rerunTransactionsUnderNode_: relativePath should not be null."),4===c.status)f=!0,u=c.abortReason,i=i.concat(co(t.serverSyncTree_,c.currentWriteId,!0));else if(0===c.status)if(c.retryCount>=Ca)f=!0,u="maxretry",i=i.concat(co(t.serverSyncTree_,c.currentWriteId,!0));else{var h=ns(t,c.path,s);c.currentInputSnapshot=h;var d=e[a].update(h.val());if(void 0!==d){la("transaction failed: Data returned ",d,c.path);var p=_n(d),v="object"===typeof d&&null!=d&&Object(o["k"])(d,".priority");v||(p=p.updatePriority(h.getPriority()));var g=c.currentWriteId,m=Na(t),y=Bo(p,h,m);c.currentOutputSnapshotRaw=p,c.currentOutputSnapshotResolved=y,c.currentWriteId=Fa(t),s.splice(s.indexOf(g),1),i=i.concat(so(t.serverSyncTree_,c.path,y,c.currentWriteId,c.applyLocally)),i=i.concat(co(t.serverSyncTree_,g,!0))}else f=!0,u="nodata",i=i.concat(co(t.serverSyncTree_,c.currentWriteId,!0))}Ia(t.eventQueue_,n,i),i=[],f&&(e[a].status=2,function(t){setTimeout(t,Math.floor(0))}(e[a].unwatcher),e[a].onComplete&&("nodata"===u?r.push((function(){return e[a].onComplete(null,!1,e[a].currentInputSnapshot)})):r.push((function(){return e[a].onComplete(new Error(u),!1,null)}))))},c=0;c<e.length;c++)u(c);ls(t,t.transactionQueueTree_);for(c=0;c<r.length;c++)G(r[c]);rs(t,t.transactionQueueTree_)}}function ss(t,e){var n,r=t.transactionQueueTree_;n=he(e);while(null!==n&&void 0===zo(r))r=Wo(r,n),e=pe(e),n=he(e);return r}function us(t,e){var n=[];return cs(t,e,n),n.sort((function(t,e){return t.order-e.order})),n}function cs(t,e,n){var r=zo(e);if(r)for(var i=0;i<r.length;i++)n.push(r[i]);Yo(e,(function(e){cs(t,e,n)}))}function ls(t,e){var n=zo(e);if(n){for(var r=0,i=0;i<n.length;i++)2!==n[i].status&&(n[r]=n[i],r++);n.length=r,Ho(e,n.length>0?n:void 0)}Yo(e,(function(e){ls(t,e)}))}function fs(t,e){var n=Zo(ss(t,e)),r=Wo(t.transactionQueueTree_,e);return Jo(r,(function(e){hs(t,e)})),hs(t,r),Qo(r,(function(e){hs(t,e)})),n}function hs(t,e){var n=zo(e);if(n){for(var r=[],i=[],a=-1,s=0;s<n.length;s++)3===n[s].status||(1===n[s].status?(Object(o["f"])(a===s-1,"All SENT items should be at beginning of queue."),a=s,n[s].status=3,n[s].abortReason="set"):(Object(o["f"])(0===n[s].status,"Unexpected transaction status in abort"),n[s].unwatcher(),i=i.concat(co(t.serverSyncTree_,n[s].currentWriteId,!0)),n[s].onComplete&&r.push(n[s].onComplete.bind(null,new Error("set"),!1,null))));-1===a?Ho(e,void 0):n.length=a+1,Ia(t.eventQueue_,Zo(e),i);for(s=0;s<r.length;s++)G(r[s])}}
3826/**
3827 * @license
3828 * Copyright 2017 Google LLC
3829 *
3830 * Licensed under the Apache License, Version 2.0 (the "License");
3831 * you may not use this file except in compliance with the License.
3832 * You may obtain a copy of the License at
3833 *
3834 *   http://www.apache.org/licenses/LICENSE-2.0
3835 *
3836 * Unless required by applicable law or agreed to in writing, software
3837 * distributed under the License is distributed on an "AS IS" BASIS,
3838 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3839 * See the License for the specific language governing permissions and
3840 * limitations under the License.
3841 */function ds(t){for(var e="",n=t.split("/"),r=0;r<n.length;r++)if(n[r].length>0){var i=n[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch(o){}e+="/"+i}return e}function ps(t){var e,n,r={};"?"===t.charAt(0)&&(t=t.substring(1));try{for(var i=Object(a["g"])(t.split("&")),o=i.next();!o.done;o=i.next()){var s=o.value;if(0!==s.length){var u=s.split("=");2===u.length?r[decodeURIComponent(u[0])]=decodeURIComponent(u[1]):C("Invalid query segment '"+s+"' in query '"+t+"'")}}}catch(c){e={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}var vs=function(t,e){var n=gs(t),r=n.namespace;"firebase.com"===n.domain&&k(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),r&&"undefined"!==r||"localhost"===n.domain||k("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||x();var i="ws"===n.scheme||"wss"===n.scheme;return{repoInfo:new ft(n.host,n.secure,r,e,i,"",r!==n.subdomain),path:new le(n.pathString)}},gs=function(t){var e="",n="",r="",i="",o="",a=!0,s="https",u=443;if("string"===typeof t){var c=t.indexOf("//");c>=0&&(s=t.substring(0,c-1),t=t.substring(c+2));var l=t.indexOf("/");-1===l&&(l=t.length);var f=t.indexOf("?");-1===f&&(f=t.length),e=t.substring(0,Math.min(l,f)),l<f&&(i=ds(t.substring(l,f)));var h=ps(t.substring(Math.min(t.length,f)));c=e.indexOf(":"),c>=0?(a="https"===s||"wss"===s,u=parseInt(e.substring(c+1),10)):c=e.length;var d=e.slice(0,c);if("localhost"===d.toLowerCase())n="localhost";else if(d.split(".").length<=2)n=d;else{var p=e.indexOf(".");r=e.substring(0,p).toLowerCase(),n=e.substring(p+1),o=r}"ns"in h&&(o=h["ns"])}return{host:e,port:u,domain:n,subdomain:r,secure:a,scheme:s,pathString:i,namespace:o}},ms=function(){function t(t,e,n,r){this.eventType=t,this.eventRegistration=e,this.snapshot=n,this.prevName=r}return t.prototype.getPath=function(){var t=this.snapshot.ref;return"value"===this.eventType?t._path:t.parent._path},t.prototype.getEventType=function(){return this.eventType},t.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},t.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+Object(o["L"])(this.snapshot.exportVal())},t}(),ys=function(){function t(t,e,n){this.eventRegistration=t,this.error=e,this.path=n}return t.prototype.getPath=function(){return this.path},t.prototype.getEventType=function(){return"cancel"},t.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},t.prototype.toString=function(){return this.path.toString()+":cancel"},t}(),bs=function(){function t(t,e){this.snapshotCallback=t,this.cancelCallback=e}return t.prototype.onValue=function(t,e){this.snapshotCallback.call(null,t,e)},t.prototype.onCancel=function(t){return Object(o["f"])(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,t)},Object.defineProperty(t.prototype,"hasCancelCallback",{get:function(){return!!this.cancelCallback}
3841,enumerable:!1,configurable:!0}),t.prototype.matches=function(t){return this.snapshotCallback===t.snapshotCallback||this.snapshotCallback.userCallback===t.snapshotCallback.userCallback&&this.snapshotCallback.context===t.snapshotCallback.context},t}(),ws=function(){function t(t,e){this._repo=t,this._path=e}return t.prototype.cancel=function(){var t=new o["a"];return Va(this._repo,this._path,t.wrapCallback((function(){}))),t.promise},t.prototype.remove=function(){ya("OnDisconnect.remove",this._path);var t=new o["a"];return Ka(this._repo,this._path,null,t.wrapCallback((function(){}))),t.promise},t.prototype.set=function(t){ya("OnDisconnect.set",this._path),ca("OnDisconnect.set",t,this._path,!1);var e=new o["a"];return Ka(this._repo,this._path,t,e.wrapCallback((function(){}))),e.promise},t.prototype.setWithPriority=function(t,e){ya("OnDisconnect.setWithPriority",this._path),ca("OnDisconnect.setWithPriority",t,this._path,!1),da("OnDisconnect.setWithPriority",e,!1);var n=new o["a"];return Wa(this._repo,this._path,t,e,n.wrapCallback((function(){}))),n.promise},t.prototype.update=function(t){ya("OnDisconnect.update",this._path),ha("OnDisconnect.update",t,this._path,!1);var e=new o["a"];return za(this._repo,this._path,t,e.wrapCallback((function(){}))),e.promise},t}(),_s=function(){function t(t,e,n,r){this._repo=t,this._path=e,this._queryParams=n,this._orderByCalled=r}return Object.defineProperty(t.prototype,"key",{get:function(){return we(this._path)?null:ve(this._path)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new Ts(this._repo,this._path)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_queryIdentifier",{get:function(){var t=Yn(this._queryParams),e=M(t);return"{}"===e?"default":e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_queryObject",{get:function(){return Yn(this._queryParams)},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){if(e=Object(o["q"])(e),!(e instanceof t))return!1;var n=this._repo===e._repo,r=Oe(this._path,e._path),i=this._queryIdentifier===e._queryIdentifier;return n&&r&&i},t.prototype.toJSON=function(){return this.toString()},t.prototype.toString=function(){return this._repo.toString()+ge(this._path)},t}();function Es(t,e){if(!0===t._orderByCalled)throw new Error(e+": You can't combine multiple orderBy calls.")}function Os(t){var e=null,n=null;if(t.hasStart()&&(e=t.getIndexStartValue()),t.hasEnd()&&(n=t.getIndexEndValue()),t.getIndex()===We){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",i="Query: When ordering by key, the argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() must be a string.";if(t.hasStart()){var a=t.getIndexStartName();if(a!==N)throw new Error(r);if("string"!==typeof e)throw new Error(i)}if(t.hasEnd()){var s=t.getIndexEndName();if(s!==P)throw new Error(r);if("string"!==typeof n)throw new Error(i)}}else if(t.getIndex()===fn){if(null!=e&&!ua(e)||null!=n&&!ua(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), startAfter() endAt(), endBefore(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(Object(o["f"])(t.getIndex()instanceof En||t.getIndex()===In,"unknown index type."),null!=e&&"object"===typeof e||null!=n&&"object"===typeof n)throw new Error("Query: First argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() cannot be an object.")}function Is(t){if(t.hasStart()&&t.hasEnd()&&t.hasLimit()&&!t.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), startAfter(), endAt(), endBefore(), and limit(). Use limitToFirst() or limitToLast() instead.")}var Ts=function(t){function e(e,n){return t.call(this,e,n,new qn,!1)||this}return Object(a["c"])(e,t),Object.defineProperty(e.prototype,"parent",{get:function(){var t=ye(this._path);return null===t?null:new e(this._repo,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var t=this;while(null!==t.parent)t=t.parent;return t}
3841,enumerable:!1,configurable:!0}),e}(_s),Ss=function(){function t(t,e,n){this._node=t,this.ref=e,this._index=n}return Object.defineProperty(t.prototype,"priority",{get:function(){return this._node.getPriority().val()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this.ref.key},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._node.numChildren()},enumerable:!1,configurable:!0}),t.prototype.child=function(e){var n=new le(e),r=xs(this.ref,e);return new t(this._node.getChild(n),r,fn)},t.prototype.exists=function(){return!this._node.isEmpty()},t.prototype.exportVal=function(){return this._node.val(!0)},t.prototype.forEach=function(e){var n=this;if(this._node.isLeafNode())return!1;var r=this._node;return!!r.forEachChild(this._index,(function(r,i){return e(new t(i,xs(n.ref,r),fn))}))},t.prototype.hasChild=function(t){var e=new le(t);return!this._node.getChild(e).isEmpty()},t.prototype.hasChildren=function(){return!this._node.isLeafNode()&&!this._node.isEmpty()},t.prototype.toJSON=function(){return this.exportVal()},t.prototype.val=function(){return this._node.val()},t}();function ks(t,e){return t=Object(o["q"])(t),t._checkNotDeleted("ref"),void 0!==e?xs(t._root,e):t._root}function Cs(t,e){t=Object(o["q"])(t),t._checkNotDeleted("refFromURL");var n=vs(e,t._repo.repoInfo_.nodeAdmin);ba("refFromURL",n);var r=n.repoInfo;return t._repo.repoInfo_.isCustomHost()||r.host===t._repo.repoInfo_.host||k("refFromURL: Host name does not match the current database: (found "+r.host+" but expected "+t._repo.repoInfo_.host+")"),ks(t,n.path.toString())}function xs(t,e){return t=Object(o["q"])(t),null===he(t._path)?ma("child","path",e,!1):ga("child","path",e,!1),new Ts(t._repo,be(t._path,e))}function js(t,e){t=Object(o["q"])(t),ya("push",t._path),ca("push",e,t._path,!0);var n,r=Aa(t._repo),i=xn(r),a=xs(t,i),s=xs(t,i);return n=null!=e?Ns(s,e).then((function(){return s})):Promise.resolve(s),a.then=n.then.bind(n),a.catch=n.then.bind(n,void 0),a}function As(t){return ya("remove",t._path),Ns(t,null)}function Ns(t,e){t=Object(o["q"])(t),ya("set",t._path),ca("set",e,t._path,!1);var n=new o["a"];return qa(t._repo,t._path,e,null,n.wrapCallback((function(){}))),n.promise}function Ps(t,e){t=Object(o["q"])(t),ya("setPriority",t._path),da("setPriority",e,!1);var n=new o["a"];return qa(t._repo,be(t._path,".priority"),e,null,n.wrapCallback((function(){}))),n.promise}function Rs(t,e,n){if(ya("setWithPriority",t._path),ca("setWithPriority",e,t._path,!1),da("setWithPriority",n,!1),".length"===t.key||".keys"===t.key)throw"setWithPriority failed: "+t.key+" is a read-only object.";var r=new o["a"];return qa(t._repo,t._path,e,n,r.wrapCallback((function(){}))),r.promise}function Ds(t,e){ha("update",e,t._path,!1);var n=new o["a"];return $a(t._repo,t._path,e,n.wrapCallback((function(){}))),n.promise}function Ls(t){return t=Object(o["q"])(t),Ua(t._repo,t).then((function(e){return new Ss(e,new Ts(t._repo,t._path),t._queryParams.getIndex())}))}var Ms=function(){function t(t){this.callbackContext=t}return t.prototype.respondsTo=function(t){return"value"===t},t.prototype.createEvent=function(t,e){var n=e._queryParams.getIndex();return new ms("value",this,new Ss(t.snapshotNode,new Ts(e._repo,e._path),n))},t.prototype.getEventRunner=function(t){var e=this;return"cancel"===t.getEventType()?function(){return e.callbackContext.onCancel(t.error)}:function(){return e.callbackContext.onValue(t.snapshot,null)}},t.prototype.createCancelEvent=function(t,e){return this.callbackContext.hasCancelCallback?new ys(this,t,e):null},t.prototype.matches=function(e){return e instanceof t&&(!e.callbackContext||!this.callbackContext||e.callbackContext.matches(this.callbackContext))},t.prototype.hasAnyCallback=function(){return null!==this.callbackContext},t}(),Fs=function(){function t(t,e){this.eventType=t,this.callbackContext=e}return t.prototype.respondsTo=function(t){var e="children_added"===t?"child_added":t;return e="children_removed"===e?"child_removed":e,this.eventType===e},t.prototype.createCancelEvent=function(t,e){return this.callbackContext.hasCancelCallback?new ys(this,t,e):null},t.prototype.createEvent=function(t,e){Object(o["f"])(null!=t.childName,"Child events should have a childName.");var n=xs(new Ts(e._repo,e._path),t.childName),r=e._queryParams.getIndex();return new ms(t.type,this,new Ss(t.snapshotNode,n,r),t.prevName)},t.prototype.getEventRunner=function(t){var e=this;return"cancel"===t.getEventType()?function(){return e.callbackContext.onCancel(t.error)}:function(){return e.callbackContext.onValue(t.snapshot,t.prevName)}},t.prototype.matches=function(e){return e instanceof t&&(this.eventType===e.eventType&&(!this.callbackContext||!e.callbackContext||this.callbackContext.matches(e.callbackContext)))},t.prototype.hasAnyCallback=function(){return!!this.callbackContext},t}();function Us(t,e,n,r,i){var o;if("object"===typeof r&&(o=void 0,i=r),"function"===typeof r&&(o=r),i&&i.onlyOnce){var a=n,s=function(e,n){a(e,n),Ga(t._repo,t,c)};
3841s.userCallback=n.userCallback,s.context=n.context,n=s}var u=new bs(n,o||void 0),c="value"===e?new Ms(u):new Fs(e,u);return Ha(t._repo,t,c),function(){return Ga(t._repo,t,c)}}function qs(t,e,n,r){return Us(t,"value",e,n,r)}function $s(t,e,n,r){return Us(t,"child_added",e,n,r)}function Bs(t,e,n,r){return Us(t,"child_changed",e,n,r)}function Vs(t,e,n,r){return Us(t,"child_moved",e,n,r)}function Ks(t,e,n,r){return Us(t,"child_removed",e,n,r)}function Ws(t,e,n){var r=null,i=n?new bs(n):null;"value"===e?r=new Ms(i):e&&(r=new Fs(e,i)),Ga(t._repo,t,r)}var zs=function(){function t(){}return t}(),Hs=function(t){function e(e,n){var r=t.call(this)||this;return r._value=e,r._key=n,r}return Object(a["c"])(e,t),e.prototype._apply=function(t){ca("endAt",this._value,t._path,!0);var e=zn(t._queryParams,this._value,this._key);if(Is(e),Os(e),t._queryParams.hasEnd())throw new Error("endAt: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new _s(t._repo,t._path,e,t._orderByCalled)},e}(zs);function Gs(t,e){return va("endAt","key",e,!0),new Hs(t,e)}var Xs=function(t){function e(e,n){var r=t.call(this)||this;return r._value=e,r._key=n,r}return Object(a["c"])(e,t),e.prototype._apply=function(t){ca("endBefore",this._value,t._path,!1);var e=Hn(t._queryParams,this._value,this._key);if(Is(e),Os(e),t._queryParams.hasEnd())throw new Error("endBefore: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new _s(t._repo,t._path,e,t._orderByCalled)},e}(zs);function Ys(t,e){return va("endBefore","key",e,!0),new Xs(t,e)}var Qs=function(t){function e(e,n){var r=t.call(this)||this;return r._value=e,r._key=n,r}return Object(a["c"])(e,t),e.prototype._apply=function(t){ca("startAt",this._value,t._path,!0);var e=Kn(t._queryParams,this._value,this._key);if(Is(e),Os(e),t._queryParams.hasStart())throw new Error("startAt: Starting point was already set (by another call to startAt, startBefore or equalTo).");return new _s(t._repo,t._path,e,t._orderByCalled)},e}(zs);function Js(t,e){return void 0===t&&(t=null),va("startAt","key",e,!0),new Qs(t,e)}var Zs=function(t){function e(e,n){var r=t.call(this)||this;return r._value=e,r._key=n,r}return Object(a["c"])(e,t),e.prototype._apply=function(t){ca("startAfter",this._value,t._path,!1);var e=Wn(t._queryParams,this._value,this._key);if(Is(e),Os(e),t._queryParams.hasStart())throw new Error("startAfter: Starting point was already set (by another call to startAt, startAfter, or equalTo).");return new _s(t._repo,t._path,e,t._orderByCalled)},e}(zs);function tu(t,e){return va("startAfter","key",e,!0),new Zs(t,e)}var eu=function(t){function e(e){var n=t.call(this)||this;return n._limit=e,n}return Object(a["c"])(e,t),e.prototype._apply=function(t){if(t._queryParams.hasLimit())throw new Error("limitToFirst: Limit was already set (by another call to limitToFirst or limitToLast).");return new _s(t._repo,t._path,Bn(t._queryParams,this._limit),t._orderByCalled)},e}(zs);function nu(t){if("number"!==typeof t||Math.floor(t)!==t||t<=0)throw new Error("limitToFirst: First argument must be a positive integer.");return new eu(t)}var ru=function(t){function e(e){var n=t.call(this)||this;return n._limit=e,n}return Object(a["c"])(e,t),e.prototype._apply=function(t){if(t._queryParams.hasLimit())throw new Error("limitToLast: Limit was already set (by another call to limitToFirst or limitToLast).");return new _s(t._repo,t._path,Vn(t._queryParams,this._limit),t._orderByCalled)},e}(zs);function iu(t){if("number"!==typeof t||Math.floor(t)!==t||t<=0)throw new Error("limitToLast: First argument must be a positive integer.");return new ru(t)}var ou=function(t){function e(e){var n=t.call(this)||this;return n._path=e,n}return Object(a["c"])(e,t),e.prototype._apply=function(t){Es(t,"orderByChild");var e=new le(this._path);if(we(e))throw new Error("orderByChild: cannot pass in empty path. Use orderByValue() instead.");var n=new En(e),r=Gn(t._queryParams,n);return Os(r),new _s(t._repo,t._path,r,!0)},e}(zs);function au(t){if("$key"===t)throw new Error('orderByChild: "$key" is invalid.  Use orderByKey() instead.');
3841if("$priority"===t)throw new Error('orderByChild: "$priority" is invalid.  Use orderByPriority() instead.');if("$value"===t)throw new Error('orderByChild: "$value" is invalid.  Use orderByValue() instead.');return ga("orderByChild","path",t,!1),new ou(t)}var su=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["c"])(e,t),e.prototype._apply=function(t){Es(t,"orderByKey");var e=Gn(t._queryParams,We);return Os(e),new _s(t._repo,t._path,e,!0)},e}(zs);function uu(){return new su}var cu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["c"])(e,t),e.prototype._apply=function(t){Es(t,"orderByPriority");var e=Gn(t._queryParams,fn);return Os(e),new _s(t._repo,t._path,e,!0)},e}(zs);function lu(){return new cu}var fu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a["c"])(e,t),e.prototype._apply=function(t){Es(t,"orderByValue");var e=Gn(t._queryParams,In);return Os(e),new _s(t._repo,t._path,e,!0)},e}(zs);function hu(){return new fu}var du=function(t){function e(e,n){var r=t.call(this)||this;return r._value=e,r._key=n,r}return Object(a["c"])(e,t),e.prototype._apply=function(t){if(ca("equalTo",this._value,t._path,!1),t._queryParams.hasStart())throw new Error("equalTo: Starting point was already set (by another call to startAt/startAfter or equalTo).");if(t._queryParams.hasEnd())throw new Error("equalTo: Ending point was already set (by another call to endAt/endBefore or equalTo).");return new Hs(this._value,this._key)._apply(new Qs(this._value,this._key)._apply(t))},e}(zs);function pu(t,e){return va("equalTo","key",e,!0),new du(t,e)}function vu(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var s=Object(o["q"])(t);try{for(var u=Object(a["g"])(r),c=u.next();!c.done;c=u.next()){var l=c.value;s=l._apply(s)}}catch(f){e={error:f}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}return s}Ki(Ts),ro(Ts);
3842/**
3843 * @license
3844 * Copyright 2020 Google LLC
3845 *
3846 * Licensed under the Apache License, Version 2.0 (the "License");
3847 * you may not use this file except in compliance with the License.
3848 * You may obtain a copy of the License at
3849 *
3850 *   http://www.apache.org/licenses/LICENSE-2.0
3851 *
3852 * Unless required by applicable law or agreed to in writing, software
3853 * distributed under the License is distributed on an "AS IS" BASIS,
3854 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3855 * See the License for the specific language governing permissions and
3856 * limitations under the License.
3857 */
3858var gu="FIREBASE_DATABASE_EMULATOR_HOST",mu={},yu=!1;function bu(t,e,n,r){t.repoInfo_=new ft(e+":"+n,!1,t.repoInfo_.namespace,t.repoInfo_.webSocketOnly,t.repoInfo_.nodeAdmin,t.repoInfo_.persistenceKey,t.repoInfo_.includeNamespaceInQueryParams),r&&(t.authTokenProvider_=r)}function wu(e,n,r,i,o){var a=i||e.options.databaseURL;void 0===a&&(e.options.projectId||k("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),I("Using default host for project ",e.options.projectId),a=e.options.projectId+"-default-rtdb.firebaseio.com");var s,u=vs(a,o),c=u.repoInfo,l=void 0;"undefined"!==typeof t&&(l=Object({VUE_APP_apiKey:"AIzaSyBiC0udW4lthdkpbwPH1FjWn8brpR88-as",VUE_APP_projectId:"cryptoexchange-184fa",VUE_APP_storageBucket:"cryptoexchange-184fa.appspot.com",VUE_APP_authDomain:"cryptoexchange-184fa.firebaseapp.com",VUE_APP_messagingSenderId:"453214051140",VUE_APP_appId:"1:453214051140:web:e15703622560f052c01511",NODE_ENV:"production",BASE_URL:"/"})[gu]),l?(s=!0,a="http://"+l+"?ns="+c.namespace,u=vs(a,o),c=u.repoInfo):s=!u.repoInfo.secure;var f=o&&s?new Z(Z.OWNER):new J(e.name,e.options,n);ba("Invalid Firebase Database URL",u),we(u.path)||k("Database URL must point to the root of a Firebase Database (not including a child path).");var h=Eu(c,e,f,new Q(e.name,r));return new Iu(h,e)}function _u(t,e){var n=mu[e];n&&n[t.key]===t||k("Database "+e+"("+t.repoInfo_+") has already been deleted."),Xa(t),delete n[t.key]}function Eu(t,e,n,r){var i=mu[e.name];i||(i={},mu[e.name]=i);var o=i[t.toURLString()];return o&&k("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),o=new xa(t,yu,n,r),i[t.toURLString()]=o,o}function Ou(t){yu=t}var Iu=function(){function t(t,e){this._repoInternal=t,this.app=e,this["type"]="database",this._instanceStarted=!1}return Object.defineProperty(t.prototype,"_repo",{get:function(){return this._instanceStarted||(ja(this._repoInternal,this.app.options.appId,this.app.options["databaseAuthVariableOverride"]),this._instanceStarted=!0),this._repoInternal}
3858,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_root",{get:function(){return this._rootInternal||(this._rootInternal=new Ts(this._repo,fe())),this._rootInternal},enumerable:!1,configurable:!0}),t.prototype._delete=function(){return this._checkNotDeleted("delete"),_u(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null,Promise.resolve()},t.prototype._checkNotDeleted=function(t){null===this._rootInternal&&k("Cannot call "+t+" on a deleted database.")},t}();function Tu(t,e,n,r){void 0===r&&(r={}),t=Object(o["q"])(t),t._checkNotDeleted("useEmulator"),t._instanceStarted&&k("Cannot call useEmulator() after instance has already been initialized.");var i=t._repoInternal,a=void 0;if(i.repoInfo_.nodeAdmin)r.mockUserToken&&k('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),a=new Z(Z.OWNER);else if(r.mockUserToken){var s=Object(o["l"])(r.mockUserToken,t.app.options.projectId);a=new Z(s)}bu(i,e,n,a)}function Su(t){t=Object(o["q"])(t),t._checkNotDeleted("goOffline"),Xa(t._repo)}function ku(t){t=Object(o["q"])(t),t._checkNotDeleted("goOnline"),Ya(t._repo)}
3859/**
3860 * @license
3861 * Copyright 2020 Google LLC
3862 *
3863 * Licensed under the Apache License, Version 2.0 (the "License");
3864 * you may not use this file except in compliance with the License.
3865 * You may obtain a copy of the License at
3866 *
3867 *   http://www.apache.org/licenses/LICENSE-2.0
3868 *
3869 * Unless required by applicable law or agreed to in writing, software
3870 * distributed under the License is distributed on an "AS IS" BASIS,
3871 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3872 * See the License for the specific language governing permissions and
3873 * limitations under the License.
3874 */var Cu={".sv":"timestamp"};function xu(){return Cu}function ju(t){return{".sv":{increment:t}}}
3875/**
3876 * @license
3877 * Copyright 2020 Google LLC
3878 *
3879 * Licensed under the Apache License, Version 2.0 (the "License");
3880 * you may not use this file except in compliance with the License.
3881 * You may obtain a copy of the License at
3882 *
3883 *   http://www.apache.org/licenses/LICENSE-2.0
3884 *
3885 * Unless required by applicable law or agreed to in writing, software
3886 * distributed under the License is distributed on an "AS IS" BASIS,
3887 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3888 * See the License for the specific language governing permissions and
3889 * limitations under the License.
3890 */var Au=function(){function t(t,e){this.committed=t,this.snapshot=e}return t.prototype.toJSON=function(){return{committed:this.committed,snapshot:this.snapshot.toJSON()}},t}();function Nu(t,e,n){var r;if(t=Object(o["q"])(t),ya("Reference.transaction",t._path),".length"===t.key||".keys"===t.key)throw"Reference.transaction failed: "+t.key+" is a read-only object.";var i=null===(r=null===n||void 0===n?void 0:n.applyLocally)||void 0===r||r,a=new o["a"],s=function(e,n,r){var i=null;e?a.reject(e):(i=new Ss(r,new Ts(t._repo,t._path),fn),a.resolve(new Au(n,i)))},u=qs(t,(function(){}));return es(t._repo,t._path,e,s,u,i),a.promise}
3891/**
3892 * @license
3893 * Copyright 2017 Google LLC
3894 *
3895 * Licensed under the Apache License, Version 2.0 (the "License");
3896 * you may not use this file except in compliance with the License.
3897 * You may obtain a copy of the License at
3898 *
3899 *   http://www.apache.org/licenses/LICENSE-2.0
3900 *
3901 * Unless required by applicable law or agreed to in writing, software
3902 * distributed under the License is distributed on an "AS IS" BASIS,
3903 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3904 * See the License for the specific language governing permissions and
3905 * limitations under the License.
3906 */var Pu=function(){function t(t){this._delegate=t}return t.prototype.cancel=function(t){Object(o["M"])("OnDisconnect.cancel",0,1,arguments.length),Object(o["N"])("OnDisconnect.cancel","onComplete",t,!0);var e=this._delegate.cancel();return t&&e.then((function(){return t(null)}),(function(e){return t(e)})),e},t.prototype.remove=function(t){Object(o["M"])("OnDisconnect.remove",0,1,arguments.length),Object(o["N"])("OnDisconnect.remove","onComplete",t,!0);var e=this._delegate.remove();return t&&e.then((function(){return t(null)}),(function(e){return t(e)})),e},t.prototype.set=function(t,e){Object(o["M"])("OnDisconnect.set",1,2,arguments.length),Object(o["N"])("OnDisconnect.set","onComplete",e,!0);var n=this._delegate.set(t);return e&&n.then((function(){return e(null)}),(function(t){return e(t)})),n},t.prototype.setWithPriority=function(t,e,n){Object(o["M"])("OnDisconnect.setWithPriority",2,3,arguments.length),Object(o["N"])("OnDisconnect.setWithPriority","onComplete",n,!0);var r=this._delegate.setWithPriority(t,e);return n&&r.then((function(){return n(null)}),(function(t){return n(t)})),r},t.prototype.update=function(t,e){if(Object(o["M"])("OnDisconnect.update",1,2,arguments.length),Array.isArray(t)){for(var n={},r=0;r<t.length;++r)n[""+r]=t[r];t=n,C("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}Object(o["N"])("OnDisconnect.update","onComplete",e,!0);var i=this._delegate.update(t);return e&&i.then((function(){return e(null)}),(function(t){return e(t)})),i},t}(),Ru=function(){function t(t,e){this.committed=t,this.snapshot=e}return t.prototype.toJSON=function(){return Object(o["M"])("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},t}(),Du=function(){function t(t,e){this._database=t,this._delegate=e}return t.prototype.val=function(){return Object(o["M"])("DataSnapshot.val",0,0,arguments.length),this._delegate.val()}
3906,t.prototype.exportVal=function(){return Object(o["M"])("DataSnapshot.exportVal",0,0,arguments.length),this._delegate.exportVal()},t.prototype.toJSON=function(){return Object(o["M"])("DataSnapshot.toJSON",0,1,arguments.length),this._delegate.toJSON()},t.prototype.exists=function(){return Object(o["M"])("DataSnapshot.exists",0,0,arguments.length),this._delegate.exists()},t.prototype.child=function(e){return Object(o["M"])("DataSnapshot.child",0,1,arguments.length),e=String(e),ga("DataSnapshot.child","path",e,!1),new t(this._database,this._delegate.child(e))},t.prototype.hasChild=function(t){return Object(o["M"])("DataSnapshot.hasChild",1,1,arguments.length),ga("DataSnapshot.hasChild","path",t,!1),this._delegate.hasChild(t)},t.prototype.getPriority=function(){return Object(o["M"])("DataSnapshot.getPriority",0,0,arguments.length),this._delegate.priority},t.prototype.forEach=function(e){var n=this;return Object(o["M"])("DataSnapshot.forEach",1,1,arguments.length),Object(o["N"])("DataSnapshot.forEach","action",e,!1),this._delegate.forEach((function(r){return e(new t(n._database,r))}))},t.prototype.hasChildren=function(){return Object(o["M"])("DataSnapshot.hasChildren",0,0,arguments.length),this._delegate.hasChildren()},Object.defineProperty(t.prototype,"key",{get:function(){return this._delegate.key},enumerable:!1,configurable:!0}),t.prototype.numChildren=function(){return Object(o["M"])("DataSnapshot.numChildren",0,0,arguments.length),this._delegate.size},t.prototype.getRef=function(){return Object(o["M"])("DataSnapshot.ref",0,0,arguments.length),new Mu(this._database,this._delegate.ref)},Object.defineProperty(t.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),t}(),Lu=function(){function t(t,e){this.database=t,this._delegate=e}return t.prototype.on=function(e,n,r,i){var a,s=this;Object(o["M"])("Query.on",2,4,arguments.length),Object(o["N"])("Query.on","callback",n,!1);var u=t.getCancelAndContextArgs_("Query.on",r,i),c=function(t,e){n.call(u.context,new Du(s.database,t),e)};c.userCallback=n,c.context=u.context;var l=null===(a=u.cancel)||void 0===a?void 0:a.bind(u.context);switch(e){case"value":return qs(this._delegate,c,l),n;case"child_added":return $s(this._delegate,c,l),n;case"child_removed":return Ks(this._delegate,c,l),n;case"child_changed":return Bs(this._delegate,c,l),n;case"child_moved":return Vs(this._delegate,c,l),n;default:throw new Error(Object(o["p"])("Query.on","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},t.prototype.off=function(t,e,n){if(Object(o["M"])("Query.off",0,3,arguments.length),pa("Query.off",t,!0),Object(o["N"])("Query.off","callback",e,!0),Object(o["O"])("Query.off","context",n,!0),e){var r=function(){};r.userCallback=e,r.context=n,Ws(this._delegate,t,r)}else Ws(this._delegate,t)},t.prototype.get=function(){var t=this;return Ls(this._delegate).then((function(e){return new Du(t.database,e)}))},t.prototype.once=function(e,n,r,i){var a=this;Object(o["M"])("Query.once",1,4,arguments.length),Object(o["N"])("Query.once","callback",n,!0);var s=t.getCancelAndContextArgs_("Query.on",r,i),u=new o["a"],c=function(t,e){var r=new Du(a.database,t);n&&n.call(s.context,r,e),u.resolve(r)};c.userCallback=n,c.context=s.context;var l=function(t){s.cancel&&s.cancel.call(s.context,t),u.reject(t)};switch(e){case"value":qs(this._delegate,c,l,{onlyOnce:!0});break;case"child_added":$s(this._delegate,c,l,{onlyOnce:!0});break;case"child_removed":Ks(this._delegate,c,l,{onlyOnce:!0});break;case"child_changed":Bs(this._delegate,c,l,{onlyOnce:!0});break;case"child_moved":Vs(this._delegate,c,l,{onlyOnce:!0});break;default:throw new Error(Object(o["p"])("Query.once","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}return u.promise},t.prototype.limitToFirst=function(e){return Object(o["M"])("Query.limitToFirst",1,1,arguments.length),new t(this.database,vu(this._delegate,nu(e)))},t.prototype.limitToLast=function(e){return Object(o["M"])("Query.limitToLast",1,1,arguments.length),new t(this.database,vu(this._delegate,iu(e)))},t.prototype.orderByChild=function(e){return Object(o["M"])("Query.orderByChild",1,1,arguments.length),new t(this.database,vu(this._delegate,au(e)))},t.prototype.orderByKey=function(){return Object(o["M"])("Query.orderByKey",0,0,arguments.length),new t(this.database,vu(this._delegate,uu()))},t.prototype.orderByPriority=function(){return Object(o["M"])("Query.orderByPriority",0,0,arguments.length),new t(this.database,vu(this._delegate,lu()))},t.prototype.orderByValue=function(){return Object(o["M"])("Query.orderByValue",0,0,arguments.length),new t(this.database,vu(this._delegate,hu()))},t.prototype.startAt=function(e,n){return void 0===e&&(e=null),Object(o["M"])("Query.startAt",0,2,arguments.length),new t(this.database,vu(this._delegate,Js(e,n)))},t.prototype.startAfter=function(e,n){return void 0===e&&(e=null),Object(o["M"])("Query.startAfter",0,2,arguments.length),new t(this.database,vu(this._delegate,tu(e,n)))},t.prototype.endAt=function(e,n){return void 0===e&&(e=null),Object(o["M"])("Query.endAt",0,2,arguments.length),new t(this.database,vu(this._delegate,Gs(e,n)))},t.prototype.endBefore=function(e,n){return void 0===e&&(e=null),Object(o["M"])("Query.endBefore",0,2,arguments.length),new t(this.database,vu(this._delegate,Ys(e,n
3906)))},t.prototype.equalTo=function(e,n){return Object(o["M"])("Query.equalTo",1,2,arguments.length),new t(this.database,vu(this._delegate,pu(e,n)))},t.prototype.toString=function(){return Object(o["M"])("Query.toString",0,0,arguments.length),this._delegate.toString()},t.prototype.toJSON=function(){return Object(o["M"])("Query.toJSON",0,1,arguments.length),this._delegate.toJSON()},t.prototype.isEqual=function(e){if(Object(o["M"])("Query.isEqual",1,1,arguments.length),!(e instanceof t)){var n="Query.isEqual failed: First argument must be an instance of firebase.database.Query.";throw new Error(n)}return this._delegate.isEqual(e._delegate)},t.getCancelAndContextArgs_=function(t,e,n){var r={cancel:void 0,context:void 0};if(e&&n)r.cancel=e,Object(o["N"])(t,"cancel",r.cancel,!0),r.context=n,Object(o["O"])(t,"context",r.context,!0);else if(e)if("object"===typeof e&&null!==e)r.context=e;else{if("function"!==typeof e)throw new Error(Object(o["p"])(t,"cancelOrContext")+" must either be a cancel callback or a context object.");r.cancel=e}return r},Object.defineProperty(t.prototype,"ref",{get:function(){return new Mu(this.database,new Ts(this._delegate._repo,this._delegate._path))},enumerable:!1,configurable:!0}),t}(),Mu=function(t){function e(e,n){var r=t.call(this,e,new _s(n._repo,n._path,new qn,!1))||this;return r.database=e,r._delegate=n,r}return Object(a["c"])(e,t),e.prototype.getKey=function(){return Object(o["M"])("Reference.key",0,0,arguments.length),this._delegate.key},e.prototype.child=function(t){return Object(o["M"])("Reference.child",1,1,arguments.length),"number"===typeof t&&(t=String(t)),new e(this.database,xs(this._delegate,t))},e.prototype.getParent=function(){Object(o["M"])("Reference.parent",0,0,arguments.length);var t=this._delegate.parent;return t?new e(this.database,t):null},e.prototype.getRoot=function(){return Object(o["M"])("Reference.root",0,0,arguments.length),new e(this.database,this._delegate.root)},e.prototype.set=function(t,e){Object(o["M"])("Reference.set",1,2,arguments.length),Object(o["N"])("Reference.set","onComplete",e,!0);var n=Ns(this._delegate,t);return e&&n.then((function(){return e(null)}),(function(t){return e(t)})),n},e.prototype.update=function(t,e){if(Object(o["M"])("Reference.update",1,2,arguments.length),Array.isArray(t)){for(var n={},r=0;r<t.length;++r)n[""+r]=t[r];t=n,C("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ya("Reference.update",this._delegate._path),Object(o["N"])("Reference.update","onComplete",e,!0);var i=Ds(this._delegate,t);return e&&i.then((function(){return e(null)}),(function(t){return e(t)})),i},e.prototype.setWithPriority=function(t,e,n){Object(o["M"])("Reference.setWithPriority",2,3,arguments.length),Object(o["N"])("Reference.setWithPriority","onComplete",n,!0);var r=Rs(this._delegate,t,e);return n&&r.then((function(){return n(null)}),(function(t){return n(t)})),r},e.prototype.remove=function(t){Object(o["M"])("Reference.remove",0,1,arguments.length),Object(o["N"])("Reference.remove","onComplete",t,!0);var e=As(this._delegate);return t&&e.then((function(){return t(null)}),(function(e){return t(e)})),e},e.prototype.transaction=function(t,e,n){var r=this;Object(o["M"])("Reference.transaction",1,3,arguments.length),Object(o["N"])("Reference.transaction","transactionUpdate",t,!1),Object(o["N"])("Reference.transaction","onComplete",e,!0),wa("Reference.transaction","applyLocally",n,!0);var i=Nu(this._delegate,t,{applyLocally:n}).then((function(t){return new Ru(t.committed,new Du(r.database,t.snapshot))}));return e&&i.then((function(t){return e(null,t.committed,t.snapshot)}),(function(t){return e(t,!1,null)})),i},e.prototype.setPriority=function(t,e){Object(o["M"])("Reference.setPriority",1,2,arguments.length),Object(o["N"])("Reference.setPriority","onComplete",e,!0);var n=Ps(this._delegate,t);return e&&n.then((function(){return e(null)}),(function(t){return e(t)})),n},e.prototype.push=function(t,n){var r=this;Object(o["M"])("Reference.push",0,2,arguments.length),Object(o["N"])("Reference.push","onComplete",n,!0);var i=js(this._delegate,t),a=i.then((function(t){return new e(r.database,t)}));n&&a.then((function(){return n(null)}),(function(t){return n(t)}));var s=new e(this.database,i);return s.then=a.then.bind(a),s.catch=a.catch.bind(a,void 0),s},e.prototype.onDisconnect=function(){return ya("Reference.onDisconnect",this._delegate._path),new Pu(new ws(this._delegate._repo,this._delegate._path))},Object.defineProperty(e.prototype,"key",{get:function(){return this.getKey()}
3906,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this.getParent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this.getRoot()},enumerable:!1,configurable:!0}),e}(Lu),Fu=function(){function t(t,e){var n=this;this._delegate=t,this.app=e,this.INTERNAL={delete:function(){return n._delegate._delete()}}}return t.prototype.useEmulator=function(t,e,n){void 0===n&&(n={}),Tu(this._delegate,t,e,n)},t.prototype.ref=function(t){if(Object(o["M"])("database.ref",0,1,arguments.length),t instanceof Mu){var e=Cs(this._delegate,t.toString());return new Mu(this,e)}e=ks(this._delegate,t);return new Mu(this,e)},t.prototype.refFromURL=function(t){var e="database.refFromURL";Object(o["M"])(e,1,1,arguments.length);var n=Cs(this._delegate,t);return new Mu(this,n)},t.prototype.goOffline=function(){return Object(o["M"])("database.goOffline",0,0,arguments.length),Su(this._delegate)},t.prototype.goOnline=function(){return Object(o["M"])("database.goOnline",0,0,arguments.length),ku(this._delegate)},t.ServerValue={TIMESTAMP:xu(),increment:function(t){return ju(t)}},t}(),Uu=function(){Bt.forceDisallow(),Mt.forceAllow()},qu=function(){Mt.forceDisallow()},$u=function(){return Bt["isAvailable"]()},Bu=function(t,e){var n=t._delegate._repo.persistentConnection_;n.securityDebugCallback_=e},Vu=function(t,e){Qa(t._delegate._repo,e)},Ku=function(t,e){Ja(t._delegate._repo,e)},Wu=function(t){return t._delegate._repo.dataUpdateCount},zu=function(t,e){return Ra(t._delegate._repo,e)};
3907/**
3908 * @license
3909 * Copyright 2017 Google LLC
3910 *
3911 * Licensed under the Apache License, Version 2.0 (the "License");
3912 * you may not use this file except in compliance with the License.
3913 * You may obtain a copy of the License at
3914 *
3915 *   http://www.apache.org/licenses/LICENSE-2.0
3916 *
3917 * Unless required by applicable law or agreed to in writing, software
3918 * distributed under the License is distributed on an "AS IS" BASIS,
3919 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3920 * See the License for the specific language governing permissions and
3921 * limitations under the License.
3922 */function Hu(t){var e=t.app,n=t.url,r=t.version,o=t.customAuthImpl,a=t.namespace,s=t.nodeAdmin,u=void 0!==s&&s;f(r);var c=new i["c"]("auth-internal",new i["b"]("database-standalone"));return c.setComponent(new i["a"]("auth-internal",(function(){return o}),"PRIVATE")),{instance:new Fu(wu(e,c,void 0,n,u),e),namespace:a}}var Gu=Object.freeze({__proto__:null,forceLongPolling:Uu,forceWebSockets:qu,isWebSocketsAvailable:$u,setSecurityDebugCallback:Bu,stats:Vu,statsIncrementCounter:Ku,dataUpdateCount:Wu,interceptServerData:zu,initStandalone:Hu}),Xu=$e;
3923/**
3924 * @license
3925 * Copyright 2017 Google LLC
3926 *
3927 * Licensed under the Apache License, Version 2.0 (the "License");
3928 * you may not use this file except in compliance with the License.
3929 * You may obtain a copy of the License at
3930 *
3931 *   http://www.apache.org/licenses/LICENSE-2.0
3932 *
3933 * Unless required by applicable law or agreed to in writing, software
3934 * distributed under the License is distributed on an "AS IS" BASIS,
3935 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3936 * See the License for the specific language governing permissions and
3937 * limitations under the License.
3938 */$e.prototype.simpleListen=function(t,e){this.sendRequest("q",{p:t},e)},$e.prototype.echo=function(t,e){this.sendRequest("echo",{d:t},e)};var Yu=ie,Qu=function(t){var e=$e.prototype.put;return $e.prototype.put=function(n,r,i,o){void 0!==o&&(o=t()),e.call(this,n,r,i,o)},function(){$e.prototype.put=e}},Ju=ft,Zu=function(t){return t._delegate._queryIdentifier},tc=function(t){Ou(t)},ec=Object.freeze({__proto__:null,DataConnection:Xu,RealTimeConnection:Yu,hijackHash:Qu,ConnectionTarget:Ju,queryIdentifier:Zu,forceRestClient:tc}),nc=Fu.ServerValue;function rc(t){f(t.SDK_VERSION);var n=t.INTERNAL.registerComponent(new i["a"]("database",(function(t,e){var n=e.instanceIdentifier,r=t.getProvider("app").getImmediate(),i=t.getProvider("auth-internal"),o=t.getProvider("app-check-internal");return new Fu(wu(r,i,o,n),r)}),"PUBLIC").setServiceProps({Reference:Mu,Query:Lu,Database:Fu,DataSnapshot:Du,enableLogging:O,INTERNAL:Gu,ServerValue:nc,TEST_ACCESS:ec}).setMultipleInstances(!0));t.registerVersion(u,c),Object(o["B"])()&&(e.exports=n)}rc(r["a"])}).call(this,n("4362"),n("dd40")(t))},e95a:function(t,e,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;
3938t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},ef7a:function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r,i=n("f530"),o=n("61cf"),a=function(t){return t.forEach((function(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];if("easing"===e){var r="animation-timing-function";t[r]=n,delete t[e]}else{r=s(e);r!==e&&(t[r]=n,delete t[e])}}})),t},s=function(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()},u=function(t){if(void 0===r){var e=void 0!==t.style.animationName,n=void 0!==t.style.webkitAnimationName;r=!e&&n?"-webkit-":""}return r},c=function(t,e,n){var r=e.startsWith("animation")?u(t):"";t.style.setProperty(r+e,n)},l=function(t,e){var n=e.startsWith("animation")?u(t):"";t.style.removeProperty(n+e)},f=function(t,e){var n,r={passive:!0},i=function(){n&&n()},o=function(n){t===n.target&&(i(),e(n))};return t&&(t.addEventListener("webkitAnimationEnd",o,r),t.addEventListener("animationend",o,r),n=function(){t.removeEventListener("webkitAnimationEnd",o,r),t.removeEventListener("animationend",o,r)}),i},h=function(t){return void 0===t&&(t=[]),t.map((function(t){var e=t.offset,n=[];for(var r in t)t.hasOwnProperty(r)&&"offset"!==r&&n.push(r+": "+t[r]+";");return 100*e+"% { "+n.join(" ")+" }"})).join(" ")},d=[],p=function(t){var e=d.indexOf(t);return e<0&&(e=d.push(t)-1),"ion-animation-"+e},v=function(t){var e=t.getRootNode();return e.head||e},g=function(t,e,n){var r=v(n),i=u(n),o=r.querySelector("#"+t);if(o)return o;var a=(n.ownerDocument||document).createElement("style");return a.id=t,a.textContent="@"+i+"keyframes "+t+" { "+e+" } @"+i+"keyframes "+t+"-alt { "+e+" }",r.appendChild(a),a},m=function(t,e){if(void 0===t&&(t=[]),void 0!==e){var n=Array.isArray(e)?e:[e];return Object(i["d"])(Object(i["d"])([],t),n)}return t},y=function(t){var e,n,r,s,u,d,v,y,b,w,_,E,O,I=[],T=[],S=[],k=!1,C={},x=[],j=[],A={},N=0,P=!1,R=!1,D=!0,L=!1,M=!0,F=t,U=[],q=[],$=[],B=[],V=[],K=[],W=[],z=[],H=[],G=[],X="function"===typeof AnimationEffect||"function"===typeof window.AnimationEffect,Y="function"===typeof Element&&"function"===typeof Element.prototype.animate&&X,Q=100,J=function(){return G},Z=function(t){return B.forEach((function(e){e.destroy(t)})),tt(t),$.length=0,B.length=0,I.length=0,rt(),k=!1,M=!0,O},tt=function(t){it(),t&&ot()},et=function(){P=!1,R=!1,M=!0,b=void 0,w=void 0,_=void 0,N=0,L=!1,D=!0},nt=function(t,e){var n=e&&e.oneTimeCallback?q:U;return n.push({c:t,o:e}),O},rt=function(){return U.length=0,q.length=0,O},it=function(){if(Y)G.forEach((function(t){t.cancel()})),G.length=0;else{var t=$.slice();Object(o["q"])((function(){t.forEach((function(t){l(t,"animation-name"),l(t,"animation-duration"),l(t,"animation-timing-function"),l(t,"animation-iteration-count"),l(t,"animation-delay"),l(t,"animation-play-state"),l(t,"animation-fill-mode"),l(t,"animation-direction")}))}))}},ot=function(){V.forEach((function(t){t&&t.parentNode&&t.parentNode.removeChild(t)})),V.length=0},at=function(t){return K.push(t),O},st=function(t){return W.push(t),O},ut=function(t){return z.push(t),O},ct=function(t){return H.push(t),O},lt=function(t){return T=m(T,t),O},ft=function(t){return S=m(S,t),O},ht=function(t){return void 0===t&&(t={}),C=t,O},dt=function(t){void 0===t&&(t=[]);for(var e=0,n=t;e<n.length;e++){var r=n[e];C[r]=""}return O},pt=function(t){return x=m(x,t),O},vt=function(t){return j=m(j,t),O},gt=function(t){return void 0===t&&(t={}),A=t,O},mt=function(t){void 0===t&&(t=[]);for(var e=0,n=t;e<n.length;e++){var r=n[e];A[r]=""}return O},yt=function(){return void 0!==u?u:v?v.getFill():"both"},bt=function(){return void 0!==b?b:void 0!==d?d:v?v.getDirection():"normal"},wt=function(){return P?"linear":void 0!==r?r:v?v.getEasing():"linear"},_t=function(){return R?0:void 0!==w?w:void 0!==n?n:v?v.getDuration():0},Et=function(){return void 0!==s?s:v?v.getIterations():1},Ot=function(){return void 0!==_?_:void 0!==e?e:v?v.getDelay():0},It=function(){return I},Tt=function(t){return d=t,Kt(!0),O},St=function(t){return u=t,Kt(!0),O},kt=function(t){return e=t,Kt(!0),O},Ct=function(t){return r=t,Kt(!0),O},xt=function(t){return Y||0!==t||(t=1),n=t,Kt(!0),O},jt=function(t){return s=t,Kt(!0),O},At=function(t){return v=t,O},Nt=function(t){if(null!=t)if(1===t.nodeType)$.push(t);else if(t.length>=0)for(var e=0;e<t.length;e++)$.push(t[e]);else console.error("Invalid addElement value");return O},Pt=function(t){if(null!=t)if(Array.isArray(t))for(var e=0,n=t;e<n.length;e++){var r=n[e];r.parent(O),B.push(r)}else t.parent(O),B.push(t);return O},Rt=function(t){return I=t,O}
3938,Dt=function(){K.forEach((function(t){return t()})),W.forEach((function(t){return t()}));var t=T,e=S,n=C;$.forEach((function(r){var i=r.classList;for(var o in t.forEach((function(t){return i.add(t)})),e.forEach((function(t){return i.remove(t)})),n)n.hasOwnProperty(o)&&c(r,o,n[o])}))},Lt=function(){Qt(),z.forEach((function(t){return t()})),H.forEach((function(t){return t()}));var t=D?1:0,e=x,n=j,r=A;$.forEach((function(t){var i=t.classList;for(var o in e.forEach((function(t){return i.add(t)})),n.forEach((function(t){return i.remove(t)})),r)r.hasOwnProperty(o)&&c(t,o,r[o])})),U.forEach((function(e){return e.c(t,O)})),q.forEach((function(e){return e.c(t,O)})),q.length=0,M=!0,D&&(L=!0),D=!0},Mt=function(){0!==N&&(N--,0===N&&(Lt(),v&&v.animationFinish()))},Ft=function(e){void 0===e&&(e=!0),ot();var n=a(I);$.forEach((function(r){if(n.length>0){var i=h(n);E=void 0!==t?t:p(i);var a=g(E,i,r);V.push(a),c(r,"animation-duration",_t()+"ms"),c(r,"animation-timing-function",wt()),c(r,"animation-delay",Ot()+"ms"),c(r,"animation-fill-mode",yt()),c(r,"animation-direction",bt());var s=Et()===1/0?"infinite":Et().toString();c(r,"animation-iteration-count",s),c(r,"animation-play-state","paused"),e&&c(r,"animation-name",a.id+"-alt"),Object(o["q"])((function(){c(r,"animation-name",a.id||null)}))}}))},Ut=function(){$.forEach((function(t){var e=t.animate(I,{id:F,delay:Ot(),duration:_t(),easing:wt(),iterations:Et(),fill:yt(),direction:bt()});e.pause(),G.push(e)})),G.length>0&&(G[0].onfinish=function(){Mt()})},qt=function(t){void 0===t&&(t=!0),Dt(),I.length>0&&(Y?Ut():Ft(t)),k=!0},$t=function(t){if(t=Math.min(Math.max(t,0),.9999),Y)G.forEach((function(e){e.currentTime=e.effect.getComputedTiming().delay+_t()*t,e.pause()}));else{var e="-"+_t()*t+"ms";$.forEach((function(t){I.length>0&&(c(t,"animation-delay",e),c(t,"animation-play-state","paused"))}))}},Bt=function(t){G.forEach((function(t){t.effect.updateTiming({delay:Ot(),duration:_t(),easing:wt(),iterations:Et(),fill:yt(),direction:bt()})})),void 0!==t&&$t(t)},Vt=function(t,e){void 0===t&&(t=!0),Object(o["q"])((function(){$.forEach((function(n){c(n,"animation-name",E||null),c(n,"animation-duration",_t()+"ms"),c(n,"animation-timing-function",wt()),c(n,"animation-delay",void 0!==e?"-"+e*_t()+"ms":Ot()+"ms"),c(n,"animation-fill-mode",yt()||null),c(n,"animation-direction",bt()||null);var r=Et()===1/0?"infinite":Et().toString();c(n,"animation-iteration-count",r),t&&c(n,"animation-name",E+"-alt"),Object(o["q"])((function(){c(n,"animation-name",E||null)}))}))}))},Kt=function(t,e,n){return void 0===t&&(t=!1),void 0===e&&(e=!0),t&&B.forEach((function(r){r.update(t,e,n)})),Y?Bt(n):Vt(e,n),O},Wt=function(t,e){return void 0===t&&(t=!1),B.forEach((function(n){n.progressStart(t,e)})),Gt(),P=t,k?Kt(!1,!0,e):qt(),O},zt=function(t){return B.forEach((function(e){e.progressStep(t)})),$t(t),O},Ht=function(t,e,n){return P=!1,B.forEach((function(r){r.progressEnd(t,e,n)})),void 0!==n&&(w=n),L=!1,D=!0,0===t?(b="reverse"===bt()?"normal":"reverse","reverse"===b&&(D=!1),Y?(Kt(),$t(1-e)):(_=(1-e)*_t()*-1,Kt(!1,!1))):1===t&&(Y?(Kt(),$t(e)):(_=e*_t()*-1,Kt(!1,!1))),void 0!==t&&(nt((function(){w=void 0,b=void 0,_=void 0}),{oneTimeCallback:!0}),v||ne()),O},Gt=function(){k&&(Y?G.forEach((function(t){t.pause()})):$.forEach((function(t){c(t,"animation-play-state","paused")})))},Xt=function(){return B.forEach((function(t){t.pause()})),Gt(),O},Yt=function(){y=void 0,Mt()},Qt=function(){y&&clearTimeout(y)},Jt=function(){if(Qt(),Object(o["q"])((function(){$.forEach((function(t){I.length>0&&c(t,"animation-play-state","running")}))})),0===I.length||0===$.length)Mt();else{var t=Ot()||0,e=_t()||0,n=Et()||1;isFinite(n)&&(y=setTimeout(Yt,t+e*n+Q)),f($[0],(function(){Qt(),Object(o["q"])((function(){Zt(),Object(o["q"])(Mt)}))}))}},Zt=function(){$.forEach((function(t){l(t,"animation-duration"),l(t,"animation-delay"),l(t,"animation-play-state")}))},te=function(){G.forEach((function(t){t.play()})),0!==I.length&&0!==$.length||Mt()},ee=function(){Y?($t(0),Bt()):Vt()},ne=function(t){return new Promise((function(e){t&&t.sync&&(R=!0,nt((function(){return R=!1}),{oneTimeCallback:!0})),k||qt(),L&&(ee(),L=!1),M&&(N=B.length+1,M=!1),nt((function(){return e()}),{oneTimeCallback:!0}),B.forEach((function(t){t.play()})),Y?te():Jt()}))},re=function(){B.forEach((function(t){t.stop()})),k&&(it(),k=!1),et()},ie=function(t,e){var n,r=I[0];return void 0===r||void 0!==r.offset&&0!==r.offset?I=Object(i["d"])([(n={offset:0}
3938,n[t]=e,n)],I):r[t]=e,O},oe=function(t,e){var n,r=I[I.length-1];return void 0===r||void 0!==r.offset&&1!==r.offset?I=Object(i["d"])(Object(i["d"])([],I),[(n={offset:1},n[t]=e,n)]):r[t]=e,O},ae=function(t,e,n){return ie(t,e).to(t,n)};return O={parentAnimation:v,elements:$,childAnimations:B,id:F,animationFinish:Mt,from:ie,to:oe,fromTo:ae,parent:At,play:ne,pause:Xt,stop:re,destroy:Z,keyframes:Rt,addAnimation:Pt,addElement:Nt,update:Kt,fill:St,direction:Tt,iterations:jt,duration:xt,easing:Ct,delay:kt,getWebAnimations:J,getKeyframes:It,getFill:yt,getDirection:bt,getDelay:Ot,getIterations:Et,getEasing:wt,getDuration:_t,afterAddRead:ut,afterAddWrite:ct,afterClearStyles:mt,afterStyles:gt,afterRemoveClass:vt,afterAddClass:pt,beforeAddRead:at,beforeAddWrite:st,beforeClearStyles:dt,beforeStyles:ht,beforeRemoveClass:ft,beforeAddClass:lt,onFinish:nt,progressStart:Wt,progressStep:zt,progressEnd:Ht}}},f069:function(t,e,n){"use strict";var r=n("1c0b"),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},f530:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s}));
3939/*! *****************************************************************************
3940Copyright (c) Microsoft Corporation.
3941
3942Permission to use, copy, modify, and/or distribute this software for any
3943purpose with or without fee is hereby granted.
3944
3945THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3946REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3947AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3948INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3949LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3950OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3951PERFORMANCE OF THIS SOFTWARE.
3952***************************************************************************** */
3953var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function a(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;function s(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}Object.create},f5df:function(t,e,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},f6b4:function(t,e,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},faff:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return h}));var r=n("ffe0");let i;const o=()=>
3953{if("undefined"===typeof window)return new Map;if(!i){const t=window;t.Ionicons=t.Ionicons||{},i=t.Ionicons.map=t.Ionicons.map||new Map}return i},a=t=>{const e=o();Object.keys(t).forEach(n=>e.set(n,t[n]))},s=t=>{let e=l(t.src);if(e)return e;if(e=c(t.name,t.icon,t.mode,t.ios,t.md),e)return u(e);if(t.icon){if(e=l(t.icon),e)return e;if(e=l(t.icon[t.mode]),e)return e}return null},u=t=>{const e=o().get(t);return e||Object(r["c"])(`svg/${t}.svg`)},c=(t,e,n,r,i)=>{if(n="ios"===(n&&d(n))?"ios":"md",r&&"ios"===n?t=d(r):i&&"md"===n?t=d(i):(t||!e||f(e)||(t=e),h(t)&&(t=d(t))),!h(t)||""===t.trim())return null;const o=t.replace(/[a-z]|-|\d/gi,"");return""!==o?null:t},l=t=>h(t)&&(t=t.trim(),f(t))?t:null,f=t=>t.length>0&&/(\/|\.)/.test(t),h=t=>"string"===typeof t,d=t=>t.toLowerCase()},fb6a:function(t,e,n){"use strict";var r=n("23e7"),i=n("861d"),o=n("e8b5"),a=n("23cb"),s=n("50c4"),u=n("fc6a"),c=n("8418"),l=n("b622"),f=n("1dde"),h=f("slice"),d=l("species"),p=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,r,l,f=u(this),h=s(f.length),g=a(t,h),m=a(void 0===e?h:e,h);if(o(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?i(n)&&(n=n[d],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return p.call(f,g,m);for(r=new(void 0===n?Array:n)(v(m-g,0)),l=0;g<m;g++,l++)g in f&&c(r,l,f[g]);return r.length=l,r}})},fbb0:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));
3954/*! *****************************************************************************
3955Copyright (c) Microsoft Corporation.
3956
3957Permission to use, copy, modify, and/or distribute this software for any
3958purpose with or without fee is hereby granted.
3959
3960THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3961REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3962AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3963INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3964LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3965OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3966PERFORMANCE OF THIS SOFTWARE.
3967***************************************************************************** */
3968var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.create;Object.create},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise},ff79:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return h})),n.d(e,"k",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"m",(function(){return v})),n.d(e,"n",(function(){return g})),n.d(e,"o",(function(){return m})),n.d(e,"p",(function(){return y}
3968)),n.d(e,"q",(function(){return b})),n.d(e,"r",(function(){return w})),n.d(e,"s",(function(){return _})),n.d(e,"t",(function(){return E})),n.d(e,"u",(function(){return O})),n.d(e,"v",(function(){return I})),n.d(e,"w",(function(){return T})),n.d(e,"x",(function(){return S})),n.d(e,"y",(function(){return k})),n.d(e,"z",(function(){return C})),n.d(e,"A",(function(){return x})),n.d(e,"B",(function(){return j})),n.d(e,"C",(function(){return A})),n.d(e,"D",(function(){return N})),n.d(e,"E",(function(){return P})),n.d(e,"F",(function(){return R})),n.d(e,"G",(function(){return D}));const r="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Add</title><path stroke-linecap='round' stroke-linejoin='round' d='M256 112v288M400 256H112' class='ionicon-fill-none ionicon-stroke-width'/></svg>",i="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Back</title><path stroke-linecap='square' stroke-miterlimit='10' stroke-width='48' d='M244 400L100 256l144-144M120 256h292' class='ionicon-fill-none'/></svg>",o="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Down</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 268l144 144 144-144M256 392V100' class='ionicon-fill-none'/></svg>",a="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Forward</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M268 112l144 144-144 144M392 256H100' class='ionicon-fill-none'/></svg>",s="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Up</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 244l144-144 144 144M256 120v292' class='ionicon-fill-none'/></svg>",u="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Bar Chart</title><path d='M32 32v432a16 16 0 0016 16h432' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='96' y='224' width='80' height='192' rx='20' ry='20' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='240' y='176' width='80' height='240' rx='20' ry='20' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='383.64' y='112' width='80' height='304' rx='20' ry='20' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",c="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Caret Back</title><path d='M368 64L144 256l224 192V64z'/></svg>",l="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Cash</title><rect x='32' y='80' width='448' height='256' rx='16' ry='16' transform='rotate(180 256 208)' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M64 384h384M96 432h320' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='256' cy='208' r='80' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M480 160a80 80 0 01-80-80M32 160a80 80 0 0080-80M480 256a80 80 0 00-80 80M32 256a80 80 0 0180 80' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",f="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chevron Back</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M328 112L184 256l144 144' class='ionicon-fill-none'/></svg>",h="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chevron Forward</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>",d="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewB
3968ox='0 0 512 512'><title>Close</title><path d='M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z'/></svg>",p="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Close Circle</title><path d='M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm75.31 260.69a16 16 0 11-22.62 22.62L256 278.63l-52.69 52.68a16 16 0 01-22.62-22.62L233.37 256l-52.68-52.69a16 16 0 0122.62-22.62L256 233.37l52.69-52.68a16 16 0 0122.62 22.62L278.63 256z'/></svg>",v="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Close</title><path d='M400 145.49L366.51 112 256 222.51 145.49 112 112 145.49 222.51 256 112 366.51 145.49 400 256 289.49 366.51 400 400 366.51 289.49 256 400 145.49z'/></svg>",g="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Home</title><path d='M80 212v236a16 16 0 0016 16h96V328a24 24 0 0124-24h80a24 24 0 0124 24v136h96a16 16 0 0016-16V212' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M480 256L266.89 52c-5-5.28-16.69-5.34-21.78 0L32 256M400 179V64h-48v69' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",m="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Menu</title><path stroke-linecap='round' stroke-miterlimit='10' d='M80 160h352M80 256h352M80 352h352' class='ionicon-fill-none ionicon-stroke-width'/></svg>",y="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Menu</title><path d='M64 384h384v-42.67H64zm0-106.67h384v-42.66H64zM64 128v42.67h384V128z'/></svg>",b="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Pie Chart</title><path d='M256.05 80.65Q263.94 80 272 80c106 0 192 86 192 192s-86 192-192 192A192.09 192.09 0 0189.12 330.65' stroke-linecap='round' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 48C141.12 48 48 141.12 48 256a207.29 207.29 0 0018.09 85L256 256z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",w="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Remove</title><path stroke-linecap='round' stroke-linejoin='round' d='M400 256H112' class='ionicon-fill-none ionicon-stroke-width'/></svg>",_="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Reorder Three</title><path stroke-linecap='round' stroke-linejoin='round' d='M96 256h320M96 176h320M96 336h320' class='ionicon-fill-none ionicon-stroke-width'/></svg>",E="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Reorder Two</title><path stroke-linecap='square' stroke-linejoin='round' stroke-width='44' d='M118 304h276M118 208h276' class='ionicon-fill-none'/></svg>",O="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Repeat</title><path stroke-linecap='round' stroke-linejoin='round' d='M320 120l48 48-48 48' class='ionicon-fill-none ionicon-stroke-width'/><path d='M352 168H144a80.24 80.24 0 00-80 80v16M192 392l-48-48 48-48' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M160 344h208a80.24 80.24 0 0080-80v-16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",I="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Ribbon</title><circle cx='256' cy='160' r='128' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M143.65 227.82L48 400l86.86-.42a16 16 0 0113.82 7.8L192 48
39680l88.33-194.32' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M366.54 224L464 400l-86.86-.42a16 16 0 00-13.82 7.8L320 480l-64-140.8' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='256' cy='160' r='64' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",T="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Rocket</title><path d='M461.81 53.81a4.4 4.4 0 00-3.3-3.39c-54.38-13.3-180 34.09-248.13 102.17a294.9 294.9 0 00-33.09 39.08c-21-1.9-42-.3-59.88 7.5-50.49 22.2-65.18 80.18-69.28 105.07a9 9 0 009.8 10.4l81.07-8.9a180.29 180.29 0 001.1 18.3 18.15 18.15 0 005.3 11.09l31.39 31.39a18.15 18.15 0 0011.1 5.3 179.91 179.91 0 0018.19 1.1l-8.89 81a9 9 0 0010.39 9.79c24.9-4 83-18.69 105.07-69.17 7.8-17.9 9.4-38.79 7.6-59.69a293.91 293.91 0 0039.19-33.09c68.38-68 115.47-190.86 102.37-247.95zM298.66 213.67a42.7 42.7 0 1160.38 0 42.65 42.65 0 01-60.38 0z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M109.64 352a45.06 45.06 0 00-26.35 12.84C65.67 382.52 64 448 64 448s65.52-1.67 83.15-19.31A44.73 44.73 0 00160 402.32' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",S="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Search</title><path d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M338.29 338.29L448 448' class='ionicon-fill-none ionicon-stroke-width'/></svg>",k="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Search</title><path d='M464 428L339.92 303.9a160.48 160.48 0 0030.72-94.58C370.64 120.37 298.27 48 209.32 48S48 120.37 48 209.32s72.37 161.32 161.32 161.32a160.48 160.48 0 0094.58-30.72L428 464zM209.32 319.69a110.38 110.38 0 11110.37-110.37 110.5 110.5 0 01-110.37 110.37z'/></svg>",C="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Settings</title><path d='M262.29 192.31a64 64 0 1057.4 57.4 64.13 64.13 0 00-57.4-57.4zM416.39 256a154.34 154.34 0 01-1.53 20.79l45.21 35.46a10.81 10.81 0 012.45 13.75l-42.77 74a10.81 10.81 0 01-13.14 4.59l-44.9-18.08a16.11 16.11 0 00-15.17 1.75A164.48 164.48 0 01325 400.8a15.94 15.94 0 00-8.82 12.14l-6.73 47.89a11.08 11.08 0 01-10.68 9.17h-85.54a11.11 11.11 0 01-10.69-8.87l-6.72-47.82a16.07 16.07 0 00-9-12.22 155.3 155.3 0 01-21.46-12.57 16 16 0 00-15.11-1.71l-44.89 18.07a10.81 10.81 0 01-13.14-4.58l-42.77-74a10.8 10.8 0 012.45-13.75l38.21-30a16.05 16.05 0 006-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 00-6.07-13.94l-38.19-30A10.81 10.81 0 0149.48 186l42.77-74a10.81 10.81 0 0113.14-4.59l44.9 18.08a16.11 16.11 0 0015.17-1.75A164.48 164.48 0 01187 111.2a15.94 15.94 0 008.82-12.14l6.73-47.89A11.08 11.08 0 01213.23 42h85.54a11.11 11.11 0 0110.69 8.87l6.72 47.82a16.07 16.07 0 009 12.22 155.3 155.3 0 0121.46 12.57 16 16 0 0015.11 1.71l44.89-18.07a10.81 10.81 0 0113.14 4.58l42.77 74a10.8 10.8 0 01-2.45 13.75l-38.21 30a16.05 16.05 0 00-6.05 14.08c.33 4.14.55 8.3.55 12.47z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",x="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Sparkles</title><path d='M259.92 262.91L216.4 149.77a9 9 0 00-16.8 0l-43.52 113.14a9 9 0 01-5.17 5.17L37.77 311.6a9 9 0 000 16.8l113.14 43.52a9 9 0 015.17 5.17l43.52 113.14a9 9 0 0016.8 0l43.52-113.14a9 9 0 015.17-5.17l113.14-43.52a9 9 0 000-16.8l-113.14-43.52a9 9 0 01-5.17-5.17zM108 68L88 16 68 68 16 88l52 20 20 52 20-52 52-20-52-20zM426.67 117.33L400 48l-26.67 69.33L304 144l69.33 26.67L400 240l26.67-69.33L496 144l-69.33-26.67z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",j="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewB
3968ox='0 0 512 512'><title>Star</title><path d='M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z'/></svg>",A="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Star</title><path d='M480 208H308L256 48l-52 160H32l140 96-54 160 138-100 138 100-54-160z' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",N="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Stats Chart</title><rect x='64' y='320' width='48' height='160' rx='8' ry='8' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='288' y='224' width='48' height='256' rx='8' ry='8' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='400' y='112' width='48' height='368' rx='8' ry='8' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='176' y='32' width='48' height='448' rx='8' ry='8' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",P="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Trending Down</title><path stroke-linecap='round' stroke-linejoin='round' d='M352 368h112V256' class='ionicon-fill-none ionicon-stroke-width'/><path d='M48 144l121.37 121.37a32 32 0 0045.26 0l50.74-50.74a32 32 0 0145.26 0L448 352' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",R="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Trending Up</title><path stroke-linecap='round' stroke-linejoin='round' d='M352 144h112v112' class='ionicon-fill-none ionicon-stroke-width'/><path d='M48 368l121.37-121.37a32 32 0 0145.26 0l50.74 50.74a32 32 0 0045.26 0L448 160' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",D="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Wallet</title><rect x='48' y='144' width='416' height='288' rx='48' ry='48' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M411.36 144v-30A50 50 0 00352 64.9L88.64 109.85A50 50 0 0048 159v49' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M368 320a32 32 0 1132-32 32 32 0 01-32 32z'/></svg>"},ffa6:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return v})),n.d(e,"c",(function(){return h}));var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function o(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;function a(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function u(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}Object.create;var c=n("a8e9"),l=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t.prototype.setInstanceCreatedCallback=function(t){return this.onInstanceCreated=t,this},t}(),f="[DEFAULT]",h=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.onInitCallbacks=new Set}return t.prototype.get=function(t){void 0===t&&(t=f);var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new c["a"];if(this.instancesDeferred.set(e,n),this.isInitialized(e)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:e});r&&n.resolve(r)}catch(i){}}return this.instancesDeferred.get(e).promise}
3968,t.prototype.getImmediate=function(t){var e=r({identifier:f,optional:!1},t),n=e.identifier,i=e.optional,o=this.normalizeInstanceIdentifier(n);if(!this.isInitialized(o)&&!this.shouldAutoInitialize()){if(i)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:o})}catch(a){if(i)return null;throw a}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(t){var e,n;if(t.name!==this.name)throw Error("Mismatching Component "+t.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=t,this.shouldAutoInitialize()){if(p(t))try{this.getOrInitializeService({instanceIdentifier:f})}catch(d){}try{for(var r=a(this.instancesDeferred.entries()),i=r.next();!i.done;i=r.next()){var o=s(i.value,2),u=o[0],c=o[1],l=this.normalizeInstanceIdentifier(u);try{var h=this.getOrInitializeService({instanceIdentifier:l});c.resolve(h)}catch(d){}}}catch(v){e={error:v}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}}},t.prototype.clearInstance=function(t){void 0===t&&(t=f),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return i(this,void 0,void 0,(function(){var t;return o(this,(function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(u(u([],s(t.filter((function(t){return"INTERNAL"in t})).map((function(t){return t.INTERNAL.delete()})))),s(t.filter((function(t){return"_delete"in t})).map((function(t){return t._delete()})))))];case 1:return e.sent(),[2]}}))}))},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.isInitialized=function(t){return void 0===t&&(t=f),this.instances.has(t)},t.prototype.initialize=function(t){var e,n;void 0===t&&(t={});var r=t.instanceIdentifier,i=void 0===r?f:r,o=t.options,u=void 0===o?{}:o,c=this.normalizeInstanceIdentifier(i);if(this.isInitialized(c))throw Error(this.name+"("+c+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var l=this.getOrInitializeService({instanceIdentifier:c,options:u});try{for(var h=a(this.instancesDeferred.entries()),d=h.next();!d.done;d=h.next()){var p=s(d.value,2),v=p[0],g=p[1],m=this.normalizeInstanceIdentifier(v);c===m&&g.resolve(l)}}catch(y){e={error:y}}finally{try{d&&!d.done&&(n=h.return)&&n.call(h)}finally{if(e)throw e.error}}return this.invokeOnInitCallbacks(l,c),l},t.prototype.onInit=function(t){var e=this;return this.onInitCallbacks.add(t),function(){e.onInitCallbacks.delete(t)}},t.prototype.invokeOnInitCallbacks=function(t,e){var n,r;try{for(var i=a(this.onInitCallbacks),o=i.next();!o.done;o=i.next()){var s=o.value;try{s(t,e)}catch(u){}}}catch(c){n={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype.getOrInitializeService=function(t){var e=t.instanceIdentifier,n=t.options,r=void 0===n?{}:n,i=this.instances.get(e);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:d(e),options:r}),this.instances.set(e,i),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,i)}catch(o){}return i||null},t.prototype.normalizeInstanceIdentifier=function(t){return this.component?this.component.multipleInstances?t:f:t},t.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},t}();function d(t){return t===f?void 0:t}function p(t){return"EAGER"===t.instantiationMode}
3969/**
3970 * @license
3971 * Copyright 2019 Google LLC
3972 *
3973 * Licensed under the Apache License, Version 2.0 (the "License");
3974 * you may not use this file except in compliance with the License.
3975 * You may obtain a copy of the License at
3976 *
3977 *   http://www.apache.org/licenses/LICENSE-2.0
3978 *
3979 * Unless required by applicable law or agreed to in writing, software
3980 * distributed under the License is distributed on an "AS IS" BASIS,
3981 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3982 * See the License for the specific language governing permissions and
3983 * limitations under the License.
3984 */var v=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(t){var e=this.getProvider(t.name);if(e.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);e.setComponent(t)},t.prototype.addOrOverwriteComponent=function(t){var e=this.getProvider(t.name);e.isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new h(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}()},ffe0:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return d}));const r="undefined"!==typeof window?window:{},i=(r.document,{$flags$:0,$resourcesUrl$:"",jmp:t=>
3984t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,r)=>t.addEventListener(e,n,r),rel:(t,e,n,r)=>t.removeEventListener(e,n,r),ce:(t,e)=>new CustomEvent(t,e)}),o=(new WeakMap,t=>(t=typeof t,"object"===t||"function"===t)),a=(t,e,...n)=>{let r=null,i=!1,a=!1,u=[];const c=e=>{for(let n=0;n<e.length;n++)r=e[n],Array.isArray(r)?c(r):null!=r&&"boolean"!==typeof r&&((i="function"!==typeof t&&!o(r))&&(r=String(r)),i&&a?u[u.length-1].$text$+=r:u.push(i?s(null,r):r),a=i)};if(c(n),e){const t=e.className||e.class;t&&(e.class="object"!==typeof t?t:Object.keys(t).filter(e=>t[e]).join(" "))}const l=s(t,null);return l.$attrs$=e,u.length>0&&(l.$children$=u),l},s=(t,e)=>{const n={$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null};return n},u={},c=t=>h(t).$hostElement$,l=t=>{const e=new URL(t,i.$resourcesUrl$);return e.origin!==r.location.origin?e.href:e.pathname},f=new WeakMap,h=t=>f.get(t),d=(t,e)=>f.set(e.$lazyInstance$=t,e);new Map}}]);
3985//# sourceMappingURL=chunk-vendors.440530df.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.