PageSourceSearch

https://nintendosupply.com/_next/static/chunks/pages/_app-f857e1ab7b43de45.js

js nintendosupply.com collected 2026-10-03 00:57:07 UTC 207,722 bytes, 983 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{8679:function(i,a,o){"use strict";var c=o(9864),w={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},x={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},k={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R={};function getStatics(i){return c.isMemo(i)?k:R[i.$$typeof]||w}R[c.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R[c.Memo]=k;var j=Object.defineProperty,$=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,er=Object.getOwnPropertyDescriptor,en=Object.getPrototypeOf,ei=Object.prototype;i.exports=function hoistNonReactStatics(i,a,o){if("string"!=typeof a){if(ei){var c=en(a);c&&c!==ei&&hoistNonReactStatics(i,c,o)}var w=$(a);et&&(w=w.concat(et(a)));for(var k=getStatics(i),R=getStatics(a),eo=0;eo<w.length;++eo){var es=w[eo];if(!x[es]&&!(o&&o[es])&&!(R&&R[es])&&!(k&&k[es])){var el=er(a,es);try{j(i,es,el)}catch(i){}}}}return i}},3539:function(i,a,o){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"AmpStateContext",{enumerable:!0,get:function(){return c}});var c=o(8754)._(o(7294)).default.createContext({})},7187:function(i,a){"use strict";function isInAmpMode(i){var a=void 0===i?{}:i,o=a.ampFirst,c=a.hybrid,w=a.hasQuery;return void 0!==o&&o||void 0!==c&&c&&void 0!==w&&w}Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"isInAmpMode",{enumerable:!0,get:function(){return isInAmpMode}})},2268:function(i,a,o){"use strict";var c=o(930);function ownKeys(i,a){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);a&&(c=c.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),o.push.apply(o,c)}return o}Object.defineProperty(a,"__esModule",{value:!0}),function(i,a){for(var o in a)Object.defineProperty(i,o,{enumerable:!0,get:a[o]})}(a,{defaultHead:function(){return _defaultHead},default:function(){return _default2}});var w=o(8754),x=o(1757)._(o(7294)),k=w._(o(8959)),R=o(3539),j=o(5963),$=o(7187);function _defaultHead(i){void 0===i&&(i=!1);var a=[x.default.createElement("meta",{charSet:"utf-8"})];return i||a.push(x.default.createElement("meta",{name:"viewport",content:"width=device-width"})),a}function onlyReactElement(i,a){return"string"==typeof a||"number"==typeof a?i:a.type===x.default.Fragment?i.concat(x.default.Children.toArray(a.props.children).reduce(function(i,a){return"string"==typeof a||"number"==typeof a?i:i.concat(a)},[])):i.concat(a)}o(9067);var et=["name","httpEquiv","charSet","itemProp"];function reduceComponents(i,a){var o,w,k,R,j=a.inAmpMode;return i.reduce(onlyReactElement,[]).reverse().concat(_defaultHead(j).reverse()).filter((o=new Set,w=new Set,k=new Set,R={},function(i){var a=!0,c=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){c=!0;var x=i.key.slice(i.key.indexOf("$")+1);o.has(x)?a=!1:o.add(x)}switch(i.type){case"title":case"base":w.has(i.type)?a=!1:w.add(i.type);break;case"meta":for(var j=0,$=et.length;j<$;j++){var er=et[j];if(i.props.hasOwnProperty(er)){if("charSet"===er)k.has(er)?a=!1:k.add(er);else{var en=i.props[er],ei=R[er]||new Set;("name"!==er||!c)&&ei.has(en)?a=!1:(ei.add(en),R[er]=ei)}}}}return a})).reverse().map(function(i,a){var o=i.key||a;if(!j&&"link"===i.type&&i.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(function(a){return i.props.href.startsWith(a)})){var w=function(i){for(var a=1;a<arguments.length;a++){var o=null!=arguments[a]?arguments[a]:{};a%2?ownKeys(Object(o),!0).forEach(function(a){c(i,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(o,a))})}return i}({},i.props||{});return w["data-href"]=w.href,w.href=void 0,w["data-optimized-fonts"]=!0,x.default.cloneElement(i,w)}return x.default.cloneElement(i,{key:o})})}var _default2=function(i){var a=i.children,o=(0,x.useContext)(R.AmpStateContext),c=(0,x.useContext)(j.HeadManagerContext);return x.default.createElement(k.default,{reduceComponentsToState:reduceComponents,headManager:c,inAmpMode:(0,$.isInAmpMode)(o)},a)};("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esMo
1dule",{value:!0}),Object.assign(a.default,a),i.exports=a.default)},8959:function(i,a,o){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return SideEffect}});var c=o(7294),w=c.useLayoutEffect,x=c.useEffect;function SideEffect(i){var a=i.headManager,o=i.reduceComponentsToState;function emitChange(){if(a&&a.mountedInstances){var w=c.Children.toArray(Array.from(a.mountedInstances).filter(Boolean));a.updateHead(o(w,i))}}return w(function(){var o;return null==a||null==(o=a.mountedInstances)||o.add(i.children),function(){var o;null==a||null==(o=a.mountedInstances)||o.delete(i.children)}}),w(function(){return a&&(a._pendingUpdate=emitChange),function(){a&&(a._pendingUpdate=emitChange)}}),x(function(){return a&&a._pendingUpdate&&(a._pendingUpdate(),a._pendingUpdate=null),function(){a&&a._pendingUpdate&&(a._pendingUpdate(),a._pendingUpdate=null)}}),null}},9067:function(i,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"warnOnce",{enumerable:!0,get:function(){return warnOnce}});var warnOnce=function(i){}},2037:function(i,a,o){"use strict";o.d(a,{l:function(){return AdUnit}});var c=o(9499),w=o(7294),x=o(9521),k=o(5893),R={"monumetric-header-in-screen":{id:"6d1ebc77-158d-48cf-8810-2a9df1b6ba98",showAdvertisementText:!0,css:(0,x.iv)(["width:100%;margin:16px 0;padding:0 var(--ad-zone-padding) var(--ad-zone-padding) var(--ad-zone-padding);@media only screen and (min-width:760px){width:calc(var(--ad-unit-header-max-width) + (calc(var(--ad-zone-padding)) * 2));}& > div{height:100px;max-height:100px;}"])},"monumetric-top-sidebar":{id:"cd1140eb-ddc4-4044-ad96-557356c39437",showAdvertisementText:!0,css:(0,x.iv)(["width:100%;& > div{height:600px;max-height:600px;}"])},"monumetric-pillar-left":{id:"abe89741-3262-4635-bded-8f821d161de9",showAdvertisementText:!1},"monumetric-pillar-right":{id:"5d90e793-a533-4cf5-a474-bbf29c7d46b3",showAdvertisementText:!1},"monumetric-middle-sidebar":{id:"0b6f9c00-3afb-438f-a9a5-979f2dd8fa4d",showAdvertisementText:!0},"monumetric-bottom-leaderboard":{id:"5d1de885-ac99-442d-90d0-3b2fccfb02e9",showAdvertisementText:!0,css:(0,x.iv)(["width:100%;margin:16px 0;padding:0 var(--ad-zone-padding) var(--ad-zone-padding) var(--ad-zone-padding);@media only screen and (min-width:760px){width:calc(var(--ad-unit-leaderboard-max-width) + (calc(var(--ad-zone-padding)) * 2));}& > div{height:100px;max-height:100px;}"])},"monumetric-sticky-sidebar":{id:"77a0d50d-7a30-4481-b993-30818f8be86f",showAdvertisementText:!0,css:(0,x.iv)(["width:100%;& > div{height:600px;max-height:600px;}"])},"monumetric-footer-in-screen":{id:"f8b510d9-4c65-41cd-90ce-7c0700a064bf",showAdvertisementText:!1},"monumetric-video-ad":{id:"92b62cda-bd04-4f88-a1da-c1718bdfabf7",showAdvertisementText:!0,css:(0,x.iv)(["width:100%;height:300px;margin-bottom:24px;@media only screen and (min-width:720px){height:500px;}& > div{display:flex;width:100%;justify-content:center;align-items:center;}& .videoMainContainer > div{background-color:unset !important;}"])},"monumetric-display":{id:"biacdsid-f2ic-jitb-kmil-ictoamttthtc",showAdvertisementText:!0,css:(0,x.iv)(["width:100%;margin:16px 0;padding:0 var(--ad-zone-padding) var(--ad-zone-padding) var(--ad-zone-padding);& > div{height:calc(500px + var(--ad-zone-in-article-gap));max-height:calc(500px + var(--ad-zone-in-article-gap));overflow:hidden;}& div{display:flex !important;flex-direction:column;justify-content:center;align-items:center;gap:var(--ad-zone-in-article-gap) !important;}@media only screen and (min-width:720px){width:calc(var(--ad-unit-display-max-width) + (calc(var(--ad-zone-padding)) * 2));& > div{height:250px;max-height:250px;}& div{display:unset;flex-direction:unset;justify-content:unset;align-items:unset;gap:unset;}}"])}},j=x.ZP.div.withConfig({displayName:"MonumetricAdUnit__Wrapper",componentId:"sc-326x1l-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden;",""],function(i){return i.$css});x.ZP.span.withConfig({displayName:"MonumetricAdUnit__Title",componentId:"sc-326x1l-1"})(["display:block;font-size:11px;letter-spacing:2px;line-height:24px;color:var(--secondary-font-color);"]);var MonumetricAdUnit=function(i){var a,o=(0,w.useRef)(null);return(0,w.useEffect)(function(){if(o.current){var a,c=document.createElement("script");return c.type="text/javascript",c.innerText='$MMT = window.$MMT || {}; $MMT.cmd = $MMT.cmd || [];
1 $MMT.cmd.push(function(){ $MMT.display.slots.push(["'.concat(R[i.type].id,'"]); })'),c.setAttribute("data-cfasync","false"),null===(a=o.current.parentNode)||void 0===a||a.appendChild(c),function(){c.remove()}}},[o]),(0,k.jsx)(j,{$css:null!==(a=i.css)&&void 0!==a?a:R[i.type].css,children:(0,k.jsx)("div",{ref:o,id:"mmt-".concat(R[i.type].id)})})};function ownKeys(i,a){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);a&&(c=c.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),o.push.apply(o,c)}return o}var AdUnit=function(i){return(0,k.jsx)(k.Fragment,{children:["monumetric-header-in-screen","monumetric-top-sidebar","monumetric-pillar-right","monumetric-pillar-left","monumetric-middle-sidebar","monumetric-bottom-leaderboard","monumetric-sticky-sidebar","monumetric-footer-in-screen","monumetric-video-ad","monumetric-display"].includes(i.type)&&(0,k.jsx)(MonumetricAdUnit,function(i){for(var a=1;a<arguments.length;a++){var o=null!=arguments[a]?arguments[a]:{};a%2?ownKeys(Object(o),!0).forEach(function(a){(0,c.Z)(i,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(o,a))})}return i}({},i))})}},3815:function(i,a,o){"use strict";let c,w,x,k,R,j,$,et;o.d(a,{c:function(){return tA},R:function(){return tD}});var er,en,ei,eo,es,el,ec=o(3454);/**
2 * @license
3 * Copyright 2017 Google LLC
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *   http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */let stringToByteArray$1=function(i){let a=[],o=0;for(let c=0;c<i.length;c++){let w=i.charCodeAt(c);w<128?a[o++]=w:(w<2048?a[o++]=w>>6|192:((64512&w)==55296&&c+1<i.length&&(64512&i.charCodeAt(c+1))==56320?(w=65536+((1023&w)<<10)+(1023&i.charCodeAt(++c)),a[o++]=w>>18|240,a[o++]=w>>12&63|128):a[o++]=w>>12|224,a[o++]=w>>6&63|128),a[o++]=63&w|128)}return a},byteArrayToString=function(i){let a=[],o=0,c=0;for(;o<i.length;){let w=i[o++];if(w<128)a[c++]=String.fromCharCode(w);else if(w>191&&w<224){let x=i[o++];a[c++]=String.fromCharCode((31&w)<<6|63&x)}else if(w>239&&w<365){let x=i[o++],k=i[o++],R=i[o++],j=((7&w)<<18|(63&x)<<12|(63&k)<<6|63&R)-65536;a[c++]=String.fromCharCode(55296+(j>>10)),a[c++]=String.fromCharCode(56320+(1023&j))}else{let x=i[o++],k=i[o++];a[c++]=String.fromCharCode((15&w)<<12|(63&x)<<6|63&k)}}return a.join("")},eu={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(i,a){if(!Array.isArray(i))throw Error("encodeByteArray takes an array as a parameter");this.init_();let o=a?this.byteToCharMapWebSafe_:this.byteToCharMap_,c=[];for(let a=0;a<i.length;a+=3){let w=i[a],x=a+1<i.length,k=x?i[a+1]:0,R=a+2<i.length,j=R?i[a+2]:0,$=w>>2,et=(3&w)<<4|k>>4,er=(15&k)<<2|j>>6,en=63&j;R||(en=64,x||(er=64)),c.push(o[$],o[et],o[er],o[en])}return c.join("")},encodeString(i,a){return this.HAS_NATIVE_SUPPORT&&!a?btoa(i):this.encodeByteArray(stringToByteArray$1(i),a)},decodeString(i,a){return this.HAS_NATIVE_SUPPORT&&!a?atob(i):byteArrayToString(this.decodeStringToByteArray(i,a))},decodeStringToByteArray(i,a){this.init_();let o=a?this.charToByteMapWebSafe_:this.charToByteMap_,c=[];for(let a=0;a<i.length;){let w=o[i.charAt(a++)],x=a<i.length,k=x?o[i.charAt(a)]:0;++a;let R=a<i.length,j=R?o[i.charAt(a)]:64;++a;let $=a<i.length,et=$?o[i.charAt(a)]:64;if(++a,null==w||null==k||null==j||null==et)throw new DecodeBase64StringError;let er=w<<2|k>>4;if(c.push(er),64!==j){let i=k<<4&240|j>>2;if(c.push(i),64!==et){let i=j<<6&192|et;c.push(i)}}}return c},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let i=0;i<this.ENCODED_VALS.length;i++)this.byteToCharMap_[i]=this.ENCODED_VALS.charAt(i),this.charToByteMap_[this.byteToCharMap_[i]]=i,this.byteToCharMapWebSafe_[i]=this.ENCODED_VALS_WEBSAFE.charAt(i),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[i]]=i,i>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)]=i,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)]=i)}}};let DecodeBase64StringError=class DecodeBase64StringError extends 
16Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}};let base64Encode=function(i){let a=stringToByteArray$1(i);return eu.encodeByteArray(a,!0)},base64urlEncodeWithoutPadding=function(i){return base64Encode(i).replace(/\./g,"")},base64Decode=function(i){try{return eu.decodeString(i,!0)}catch(i){console.error("base64Decode failed: ",i)}return null},getDefaultsFromGlobal=()=>/**
17 * @license
18 * Copyright 2022 Google LLC
19 *
20 * Licensed under the Apache License, Version 2.0 (the "License");
21 * you may not use this file except in compliance with the License.
22 * You may obtain a copy of the License at
23 *
24 *   http://www.apache.org/licenses/LICENSE-2.0
25 *
26 * Unless required by applicable law or agreed to in writing, software
27 * distributed under the License is distributed on an "AS IS" BASIS,
28 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29 * See the License for the specific language governing permissions and
30 * limitations under the License.
31 */(function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==o.g)return o.g;throw Error("Unable to locate global object.")})().__FIREBASE_DEFAULTS__,getDefaultsFromEnvVariable=()=>{if(void 0===ec||void 0===ec.env)return;let i=ec.env.__FIREBASE_DEFAULTS__;if(i)return JSON.parse(i)},getDefaultsFromCookie=()=>{let i;if("undefined"==typeof document)return;try{i=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(i){return}let a=i&&base64Decode(i[1]);return a&&JSON.parse(a)},getDefaults=()=>{try{return getDefaultsFromGlobal()||getDefaultsFromEnvVariable()||getDefaultsFromCookie()}catch(i){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${i}`);return}},getDefaultEmulatorHost=i=>{var a,o;return null===(o=null===(a=getDefaults())||void 0===a?void 0:a.emulatorHosts)||void 0===o?void 0:o[i]},getDefaultEmulatorHostnameAndPort=i=>{let a=getDefaultEmulatorHost(i);if(!a)return;let o=a.lastIndexOf(":");if(o<=0||o+1===a.length)throw Error(`Invalid host ${a} with no separate hostname and port!`);let c=parseInt(a.substring(o+1),10);return"["===a[0]?[a.substring(1,o-1),c]:[a.substring(0,o),c]},getDefaultAppConfig=()=>{var i;return null===(i=getDefaults())||void 0===i?void 0:i.config};/**
32 * @license
33 * Copyright 2017 Google LLC
34 *
35 * Licensed under the Apache License, Version 2.0 (the "License");
36 * you may not use this file except in compliance with the License.
37 * You may obtain a copy of the License at
38 *
39 *   http://www.apache.org/licenses/LICENSE-2.0
40 *
41 * Unless required by applicable law or agreed to in writing, software
42 * distributed under the License is distributed on an "AS IS" BASIS,
43 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44 * See the License for the specific language governing permissions and
45 * limitations under the License.
46 */let Deferred=class Deferred{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((i,a)=>{this.resolve=i,this.reject=a})}wrapCallback(i){return(a,o)=>{a?this.reject(a):this.resolve(o),"function"==typeof i&&(this.promise.catch(()=>{}),1===i.length?i(a):i(a,o))}}};function index_esm2017_isIndexedDBAvailable(){try{return"object"==typeof indexedDB}catch(i){return!1}}function index_esm2017_validateIndexedDBOpenable(){return new Promise((i,a)=>{try{let o=!0,c="validate-browser-context-for-indexeddb-analytics-module",w=self.indexedDB.open(c);w.onsuccess=()=>{w.result.close(),o||self.indexedDB.deleteDatabase(c),i(!0)},w.onupgradeneeded=()=>{o=!1},w.onerror=()=>{var i;a((null===(i=w.error)||void 0===i?void 0:i.message)||"")}}catch(i){a(i)}})}let FirebaseError=class FirebaseError extends Error{constructor(i,a,o){super(a),this.code=i,this.customData=o,this.name="FirebaseError",Object.setPrototypeOf(this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}};let ErrorFactory=class ErrorFactory{constructor(i,a,o){this.service=i,this.serviceName=a,this.errors=o}create(i,...a){let o=a[0]||{},c=`${this.service}/${i}`,w=this.errors[i],x=w?w.replace(ed,(i,a)=>{let c=o[a];return null!=c?String(c):`<${a}?>`}):"Error",k=`${this.serviceName}: ${x} (${c}).`,R=new FirebaseError(c,k,o);return R}};let ed=/\{\$([^}]+)}/g;function index_esm2017_deepEqual(i,a){if(i===a)return!0;let o=Object.keys(i),c=Object.keys(a);for(let w of o){if(!c.includes(w))return!1;let o=i[w],x=a[w];if(isObject(o)&&isObject(x)){if(!index_esm2017_deepEqual(o,x))return!1}else if(o!==x)return!1}for(let i of c)if(!o.includes(i))return!1;return!0}function isObject(i){return null!==i&&"object"==typeof i}function calculateBackoffMillis(i,a=1e3,o=2){let c=a*Math.pow(o,i);return Math.min(144e5,c+Math.round(.5*c*(Math.random()-.5)*2))}/**
47 * @license
48 * Copyright 2021 Google LLC
49 *
50 * Licensed under the Apache License, Version 2.0 (the "License");
51 * you may not use this file except in compliance with the License.
52 * You may obtain a copy of the License at
53 *
54 *   http://www.apache.org/licenses/LICENSE-2.0
55 *
56 * Unless required by applicable law or agreed to in writing, software
57 * distributed under the License is distributed on an "AS IS" BASIS,
58 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59 * See the License for the specific language governing permissions and
60 * limitations under the License.
61 */function index_esm2017_getModularInstance(i){return i&&i._delegate?i._delegate:i}let Component=class Component{constructor(i,a,o){this.name=i,this.instanceFactory=a,this.type=o,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(i){return this.instantiationMode=i,this}setMultipleInstances(i){return this.multipleInstances=i,this}setServiceProps(i){return this.serviceProps=i,this}setInstanceCreatedCallback(i){return this.onInstanceCreated=i,this}};/**
62 * @license
63 * Copyright 2019 Google LLC
64 *
65 * Licensed under the Apache License, Version 2.0 (the "License");
66 * you may not use this file except in compliance with the License.
67 * You may obtain a copy of the License at
68 *
69 *   http://www.apache.org/licenses/LICENSE-2.0
70 *
71 * Unless required by applicable law or agreed to in writing, software
72 * distributed under the License is distributed on an "AS IS" BASIS,
73 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
74 * See the License for the specific language governing permissions and
75 * limitations under the License.
76 */let eh="[DEFAULT]";/**
77 * @license
78 * Copyright 2019 Google LLC
79 *
80 * Licensed under the Apache License, Version 2.0 (the "License");
81 * you may not use this file except in compliance with the License.
82 * You may obtain a copy of the License at
83 *
84 *   http://www.apache.org/licenses/LICENSE-2.0
85 *
86 * Unless required by applicable law or agreed to in writing, software
87 * distributed under the License is distributed on an "AS IS" BASIS,
88 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
89 * See the License for the specific language governing permissions and
90 * limitations under the License.
91 */let Provider=class Provider{constructor(i,a){this.name=i,this.container=a,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(i){let a=this.normalizeInstanceIdentifier(i);if(!this.instancesDeferred.has(a)){let i=new Deferred;if(this.instancesDeferred.set(a,i),this.isInitialized(a)||this.shouldAutoInitialize())try{let o=this.getOrInitializeService({instanceIdentifier:a});o&&i.resolve(o)}catch(i){}}return this.instancesDeferred.get(a).promise}getImmediate(i){var a;let o=this.normalizeInstanceIdentifier(null==i?void 0:i.identifier),c=null!==(a=null==i?void 0:i.optional)&&void 0!==a&&a;if(this.isInitialized(o)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:o})}catch(i){if(c)return null;throw i}else{if(c)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(i){if(i.name!==this.name)throw Error(`Mismatching Component ${i.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=i,this.shouldAutoInitialize()){if("EAGER"===i.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:eh})}catch(i){}for(let[i,a]of this.instancesDeferred.entries()){let o=this.normalizeInstanceIdentifier(i);try{let i=this.getOrInitializeService({instanceIdentifier:o});a.resolve(i)}catch(i){}}}}clearInstance(i=eh){this.instancesDeferred.delete(i),this.instancesOptions.delete(i),this.instances.delete(i)}async delete(){let i=Array.from(this.instances.values());await Promise.all([...i.filter(i=>"INTERNAL"in i).map(i=>i.INTERNAL.delete()),...i.filter(i=>"_delete"in i).map(i=>i._delete())])}isComponentSet(){return null!=this.component}isInitialized(i=eh){return this.instances.has(i)}getOptions(i=eh){return this.instancesOptions.get(i)||{}}initialize(i={}){let{options:a={}}=i,o=this.normalizeInstanceIdentifier(i.instanceIdentifier);if(this.isInitialized(o))throw Error(`${this.name}(${o}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let c=this.getOrInitializeService({instanceIdentifier:o,options:a});for(let[i,a]of this.instancesDeferred.entries()){let w=this.normalizeInstanceIdentifier(i);o===w&&a.resolve(c)}return c}onInit(i,a){var o;let c=this.normalizeInstanceIdentifier(a),w=null!==(o=this.onInitCallbacks.get(c))&&void 0!==o?o:new Set;w.add(i),this.onInitCallbacks.set(c,w);let x=this.instances.get(c);
91return x&&i(x,c),()=>{w.delete(i)}}invokeOnInitCallbacks(i,a){let o=this.onInitCallbacks.get(a);if(o)for(let c of o)try{c(i,a)}catch(i){}}getOrInitializeService({instanceIdentifier:i,options:a={}}){let o=this.instances.get(i);if(!o&&this.component&&(o=this.component.instanceFactory(this.container,{instanceIdentifier:i===eh?void 0:i,options:a}),this.instances.set(i,o),this.instancesOptions.set(i,a),this.invokeOnInitCallbacks(o,i),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,i,o)}catch(i){}return o||null}normalizeInstanceIdentifier(i=eh){return this.component?this.component.multipleInstances?i:eh:i}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}};/**
92 * @license
93 * Copyright 2019 Google LLC
94 *
95 * Licensed under the Apache License, Version 2.0 (the "License");
96 * you may not use this file except in compliance with the License.
97 * You may obtain a copy of the License at
98 *
99 *   http://www.apache.org/licenses/LICENSE-2.0
100 *
101 * Unless required by applicable law or agreed to in writing, software
102 * distributed under the License is distributed on an "AS IS" BASIS,
103 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
104 * See the License for the specific language governing permissions and
105 * limitations under the License.
106 */let ComponentContainer=class ComponentContainer{constructor(i){this.name=i,this.providers=new Map}addComponent(i){let a=this.getProvider(i.name);if(a.isComponentSet())throw Error(`Component ${i.name} has already been registered with ${this.name}`);a.setComponent(i)}addOrOverwriteComponent(i){let a=this.getProvider(i.name);a.isComponentSet()&&this.providers.delete(i.name),this.addComponent(i)}getProvider(i){if(this.providers.has(i))return this.providers.get(i);let a=new Provider(i,this);return this.providers.set(i,a),a}getProviders(){return Array.from(this.providers.values())}};/**
107 * @license
108 * Copyright 2017 Google LLC
109 *
110 * Licensed under the Apache License, Version 2.0 (the "License");
111 * you may not use this file except in compliance with the License.
112 * You may obtain a copy of the License at
113 *
114 *   http://www.apache.org/licenses/LICENSE-2.0
115 *
116 * Unless required by applicable law or agreed to in writing, software
117 * distributed under the License is distributed on an "AS IS" BASIS,
118 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119 * See the License for the specific language governing permissions and
120 * limitations under the License.
121 */let ef=[];(ei=eo||(eo={}))[ei.DEBUG=0]="DEBUG",ei[ei.VERBOSE=1]="VERBOSE",ei[ei.INFO=2]="INFO",ei[ei.WARN=3]="WARN",ei[ei.ERROR=4]="ERROR",ei[ei.SILENT=5]="SILENT";let ep={debug:eo.DEBUG,verbose:eo.VERBOSE,info:eo.INFO,warn:eo.WARN,error:eo.ERROR,silent:eo.SILENT},em=eo.INFO,eg={[eo.DEBUG]:"log",[eo.VERBOSE]:"log",[eo.INFO]:"info",[eo.WARN]:"warn",[eo.ERROR]:"error"},defaultLogHandler=(i,a,...o)=>{if(a<i.logLevel)return;let c=new Date().toISOString(),w=eg[a];if(w)console[w](`[${c}]  ${i.name}:`,...o);else throw Error(`Attempted to log a message with an invalid logType (value: ${a})`)};let Logger=class Logger{constructor(i){this.name=i,this._logLevel=em,this._logHandler=defaultLogHandler,this._userLogHandler=null,ef.push(this)}get logLevel(){return this._logLevel}set logLevel(i){if(!(i in eo))throw TypeError(`Invalid value "${i}" assigned to \`logLevel\``);this._logLevel=i}setLogLevel(i){this._logLevel="string"==typeof i?ep[i]:i}get logHandler(){return this._logHandler}set logHandler(i){if("function"!=typeof i)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=i}get userLogHandler(){return this._userLogHandler}set userLogHandler(i){this._userLogHandler=i}debug(...i){this._userLogHandler&&this._userLogHandler(this,eo.DEBUG,...i),this._logHandler(this,eo.DEBUG,...i)}log(...i){this._userLogHandler&&this._userLogHandler(this,eo.VERBOSE,...i),this._logHandler(this,eo.VERBOSE,...i)}info(...i){this._userLogHandler&&this._userLogHandler(this,eo.INFO,...i),this._logHandler(this,eo.INFO,...i)}warn(...i){this._userLogHandler&&this._userLogHandler(this,eo.WARN,...i),this._logHandler(this,eo.WARN,...i)}error(...i){this._userLogHandler&&this._userLogHandler(this,eo.ERROR,...i),this._logHandler(this,eo.ERROR,...i)}};let instanceOfAny=(i,a)=>a.some(a=>i instanceof a),ey=new WeakMap,ev=new WeakMap,eb=new WeakMap,ew=new WeakMap,e_=new WeakMap,eE={get(i,a,o){if(i instanceof IDBTransaction){if("done"===a)return ev.get(i);if("objectStoreNames"===a)return i.objectStoreNames||eb.get(i);if("store"===a)return o.objectStoreNames[1]?void 0:o.objectStore(o.objectStoreNames[0])}return wrap_idb_value_wrap(i[a])},set:(i,a,o)=>(i[a]=o,!0),has:(i,a)=>i instanceof IDBTransaction&&("done"===a||"store"===a)||a in i};function wrap_idb_value_wrap(i){var a;if(i instanceof IDBRequest)return function(i){let a=new Promise((a,o)=>{let unlisten=()=>{i.removeEventListener("success",success),i.removeEventListener("error",error)},success=()=>{a(wrap_idb_value_wrap(i.result)),unlisten()},error=()=>{o(i.error),unlisten()};i.addEventListener("success",success),i.addEventListener("error",error)});return a.then(a=>{a instanceof IDBCursor&&ey.set(a,i)}).catch(()=>{}),e_.set(a,i),a}(i);if(ew.has(i))return ew.get(i);
121let o="function"==typeof(a=i)?a!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(w||(w=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(a)?function(...i){return a.apply(unwrap(this),i),wrap_idb_value_wrap(ey.get(this))}:function(...i){return wrap_idb_value_wrap(a.apply(unwrap(this),i))}:function(i,...o){let c=a.call(unwrap(this),i,...o);return eb.set(c,i.sort?i.sort():[i]),wrap_idb_value_wrap(c)}:(a instanceof IDBTransaction&&function(i){if(ev.has(i))return;let a=new Promise((a,o)=>{let unlisten=()=>{i.removeEventListener("complete",complete),i.removeEventListener("error",error),i.removeEventListener("abort",error)},complete=()=>{a(),unlisten()},error=()=>{o(i.error||new DOMException("AbortError","AbortError")),unlisten()};i.addEventListener("complete",complete),i.addEventListener("error",error),i.addEventListener("abort",error)});ev.set(i,a)}(a),instanceOfAny(a,c||(c=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(a,eE):a;return o!==i&&(ew.set(i,o),e_.set(o,i)),o}let unwrap=i=>e_.get(i),eS=["get","getKey","getAll","getAllKeys","count"],eI=["put","add","delete","clear"],eT=new Map;function getMethod(i,a){if(!(i instanceof IDBDatabase&&!(a in i)&&"string"==typeof a))return;if(eT.get(a))return eT.get(a);let o=a.replace(/FromIndex$/,""),c=a!==o,w=eI.includes(o);if(!(o in(c?IDBIndex:IDBObjectStore).prototype)||!(w||eS.includes(o)))return;let method=async function(i,...a){let x=this.transaction(i,w?"readwrite":"readonly"),k=x.store;return c&&(k=k.index(a.shift())),(await Promise.all([k[o](...a),w&&x.done]))[0]};return eT.set(a,method),method}eE={...er=eE,get:(i,a,o)=>getMethod(i,a)||er.get(i,a,o),has:(i,a)=>!!getMethod(i,a)||er.has(i,a)};/**
122 * @license
123 * Copyright 2019 Google LLC
124 *
125 * Licensed under the Apache License, Version 2.0 (the "License");
126 * you may not use this file except in compliance with the License.
127 * You may obtain a copy of the License at
128 *
129 *   http://www.apache.org/licenses/LICENSE-2.0
130 *
131 * Unless required by applicable law or agreed to in writing, software
132 * distributed under the License is distributed on an "AS IS" BASIS,
133 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
134 * See the License for the specific language governing permissions and
135 * limitations under the License.
136 */let PlatformLoggerServiceImpl=class PlatformLoggerServiceImpl{constructor(i){this.container=i}getPlatformInfoString(){let i=this.container.getProviders();return i.map(i=>{if(!function(i){let a=i.getComponent();return(null==a?void 0:a.type)==="VERSION"}(i))return null;{let a=i.getImmediate();return`${a.library}/${a.version}`}}).filter(i=>i).join(" ")}};let eC="@firebase/app",ex="0.9.13",ek=new Logger("@firebase/app"),eA="[DEFAULT]",eD={[eC]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},eO=new Map,eP=new Map;function _registerComponent(i){let a=i.name;if(eP.has(a))return ek.debug(`There were multiple attempts to register component ${a}.`),!1;for(let o of(eP.set(a,i),eO.values()))!function(i,a){try{i.container.addComponent(a)}catch(o){ek.debug(`Component ${a.name} failed to register with FirebaseApp ${i.name}`,o)}}(o,i);return!0}function index_esm2017_getProvider(i,a){let o=i.container.getProvider("heartbeat").getImmediate({optional:!0});return o&&o.triggerHeartbeat(),i.container.getProvider(a)}let eR=new ErrorFactory("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invali
136d-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});/**
137 * @license
138 * Copyright 2019 Google LLC
139 *
140 * Licensed under the Apache License, Version 2.0 (the "License");
141 * you may not use this file except in compliance with the License.
142 * You may obtain a copy of the License at
143 *
144 *   http://www.apache.org/licenses/LICENSE-2.0
145 *
146 * Unless required by applicable law or agreed to in writing, software
147 * distributed under the License is distributed on an "AS IS" BASIS,
148 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
149 * See the License for the specific language governing permissions and
150 * limitations under the License.
151 */let FirebaseAppImpl=class FirebaseAppImpl{constructor(i,a,o){this._isDeleted=!1,this._options=Object.assign({},i),this._config=Object.assign({},a),this._name=a.name,this._automaticDataCollectionEnabled=a.automaticDataCollectionEnabled,this._container=o,this.container.addComponent(new Component("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(i){this.checkDestroyed(),this._automaticDataCollectionEnabled=i}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(i){this._isDeleted=i}checkDestroyed(){if(this.isDeleted)throw eR.create("app-deleted",{appName:this._name})}};function initializeApp(i,a={}){let o=i;if("object"!=typeof a){let i=a;a={name:i}}let c=Object.assign({name:eA,automaticDataCollectionEnabled:!1},a),w=c.name;if("string"!=typeof w||!w)throw eR.create("bad-app-name",{appName:String(w)});if(o||(o=getDefaultAppConfig()),!o)throw eR.create("no-options");let x=eO.get(w);if(x){if(index_esm2017_deepEqual(o,x.options)&&index_esm2017_deepEqual(c,x.config))return x;throw eR.create("duplicate-app",{appName:w})}let k=new ComponentContainer(w);for(let i of eP.values())k.addComponent(i);let R=new FirebaseAppImpl(o,c,k);return eO.set(w,R),R}function index_esm2017_getApp(i=eA){let a=eO.get(i);if(!a&&i===eA&&getDefaultAppConfig())return initializeApp();if(!a)throw eR.create("no-app",{appName:i});return a}function registerVersion(i,a,o){var c;let w=null!==(c=eD[i])&&void 0!==c?c:i;o&&(w+=`-${o}`);let x=w.match(/\s|\//),k=a.match(/\s|\//);if(x||k){let i=[`Unable to register library "${w}" with version "${a}":`];x&&i.push(`library name "${w}" contains illegal characters (whitespace or "/")`),x&&k&&i.push("and"),k&&i.push(`version name "${a}" contains illegal characters (whitespace or "/")`),ek.warn(i.join(" "));return}_registerComponent(new Component(`${w}-version`,()=>({library:w,version:a}),"VERSION"))}let eL="firebase-heartbeat-store",eM=null;function getDbPromise(){return eM||(eM=(function(i,a,{blocked:o,upgrade:c,blocking:w,terminated:x}={}){let k=indexedDB.open(i,1),R=wrap_idb_value_wrap(k);return c&&k.addEventListener("upgradeneeded",i=>{c(wrap_idb_value_wrap(k.result),i.oldVersion,i.newVersion,wrap_idb_value_wrap(k.transaction),i)}),o&&k.addEventListener("blocked",i=>o(i.oldVersion,i.newVersion,i)),R.then(i=>{x&&i.addEventListener("close",()=>x()),w&&i.addEventListener("versionchange",i=>w(i.oldVersion,i.newVersion,i))}).catch(()=>{}),R})("firebase-heartbeat-database",0,{upgrade:(i,a)=>{0===a&&i.createObjectStore(eL)}}).catch(i=>{throw eR.create("idb-open",{originalErrorMessage:i.message})})),eM}async function readHeartbeatsFromIndexedDB(i){try{let a=await getDbPromise(),o=await a.transaction(eL).objectStore(eL).get(computeKey(i));return o}catch(i){if(i instanceof FirebaseError)ek.warn(i.message);else{let a=eR.create("idb-get",{originalErrorMessage:null==i?void 0:i.message});ek.warn(a.message)}}}async function writeHeartbeatsToIndexedDB(i,a){try{let o=await getDbPromise(),c=o.transaction(eL,"readwrite"),w=c.objectStore(eL);await w.put(a,computeKey(i)),await c.done}catch(i){if(i instanceof FirebaseError)ek.warn(i.message);else{let a=eR.create("idb-set",{originalErrorMessage:null==i?void 0:i.message});ek.warn(a.message)}}}function computeKey(i){return`${i.name}!${i.options.appId}`}let HeartbeatServiceImpl=class HeartbeatServiceImpl{constructor(i){this.container=i,this._heartbeatsCache=null;let a=this.container.getProvider("app").getImmediate();this._storage=new HeartbeatStorageImpl(a),this._heartbeatsCachePromise=this._storage.read().then(i=>(this._heartbeatsCache=i,i))}async triggerHeartbeat(){let i=this.container.getProvider("platform-logger").getImmediate(),a=i.getPlatformInfoString(),o=getUTCDateString();return(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(i=>i.date===o))?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:a}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(i=>{let a=new Date(i.date).valueOf(),o=Date.now();return o-a<=2592e6}),this._storage.overwrite(this._heartbeatsCache))}
151async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";let i=getUTCDateString(),{heartbeatsToSend:a,unsentEntries:o}=function(i,a=1024){let o=[],c=i.slice();for(let w of i){let i=o.find(i=>i.agent===w.agent);if(i){if(i.dates.push(w.date),countBytes(o)>a){i.dates.pop();break}}else if(o.push({agent:w.agent,dates:[w.date]}),countBytes(o)>a){o.pop();break}c=c.slice(1)}return{heartbeatsToSend:o,unsentEntries:c}}(this._heartbeatsCache.heartbeats),c=base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:a}));return this._heartbeatsCache.lastSentHeartbeatDate=i,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),c}};function getUTCDateString(){let i=new Date;return i.toISOString().substring(0,10)}let HeartbeatStorageImpl=class HeartbeatStorageImpl{constructor(i){this.app=i,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!index_esm2017_isIndexedDBAvailable()&&index_esm2017_validateIndexedDBOpenable().then(()=>!0).catch(()=>!1)}async read(){let i=await this._canUseIndexedDBPromise;if(!i)return{heartbeats:[]};{let i=await readHeartbeatsFromIndexedDB(this.app);return i||{heartbeats:[]}}}async overwrite(i){var a;let o=await this._canUseIndexedDBPromise;if(o){let o=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:null!==(a=i.lastSentHeartbeatDate)&&void 0!==a?a:o.lastSentHeartbeatDate,heartbeats:i.heartbeats})}}async add(i){var a;let o=await this._canUseIndexedDBPromise;if(o){let o=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:null!==(a=i.lastSentHeartbeatDate)&&void 0!==a?a:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...i.heartbeats]})}}};function countBytes(i){return base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:i})).length}_registerComponent(new Component("platform-logger",i=>new PlatformLoggerServiceImpl(i),"PRIVATE")),_registerComponent(new Component("heartbeat",i=>new HeartbeatServiceImpl(i),"PRIVATE")),registerVersion(eC,ex,""),registerVersion(eC,ex,"esm2017"),registerVersion("fire-js",""),/**
152 * @license
153 * Copyright 2020 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 */registerVersion("firebase","9.23.0","app");/**
167 * @license
168 * Copyright 2017 Google LLC
169 *
170 * Licensed under the Apache License, Version 2.0 (the "License");
171 * you may not use this file except in compliance with the License.
172 * You may obtain a copy of the License at
173 *
174 *   http://www.apache.org/licenses/LICENSE-2.0
175 *
176 * Unless required by applicable law or agreed to in writing, software
177 * distributed under the License is distributed on an "AS IS" BASIS,
178 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179 * See the License for the specific language governing permissions and
180 * limitations under the License.
181 */let d=class d{constructor(i){this.uid=i}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(i){return i.uid===this.uid}};d.UNAUTHENTICATED=new d(null),d.GOOGLE_CREDENTIALS=new d("google-credentials-uid"),d.FIRST_PARTY=new d("first-party-uid"),d.MOCK_USER=new d("mock-user");/**
182 * @license
183 * Copyright 2017 Google LLC
184 *
185 * Licensed under the Apache License, Version 2.0 (the "License");
186 * you may not use this file except in compliance with the License.
187 * You may obtain a copy of the License at
188 *
189 *   http://www.apache.org/licenses/LICENSE-2.0
190 *
191 * Unless required by applicable law or agreed to in writing, softw
191are
192 * distributed under the License is distributed on an "AS IS" BASIS,
193 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
194 * See the License for the specific language governing permissions and
195 * limitations under the License.
196 */let eN="9.23.0",eF=new Logger("@firebase/firestore");function y(i,...a){if(eF.logLevel<=eo.DEBUG){let o=a.map(v);eF.debug(`Firestore (${eN}): ${i}`,...o)}}function g(i,...a){if(eF.logLevel<=eo.ERROR){let o=a.map(v);eF.error(`Firestore (${eN}): ${i}`,...o)}}function _(i,...a){if(eF.logLevel<=eo.WARN){let o=a.map(v);eF.warn(`Firestore (${eN}): ${i}`,...o)}}function v(i){if("string"==typeof i)return i;try{return JSON.stringify(i)}catch(a){return i}}/**
197 * @license
198 * Copyright 2017 Google LLC
199 *
200 * Licensed under the Apache License, Version 2.0 (the "License");
201 * you may not use this file except in compliance with the License.
202 * You may obtain a copy of the License at
203 *
204 *   http://www.apache.org/licenses/LICENSE-2.0
205 *
206 * Unless required by applicable law or agreed to in writing, software
207 * distributed under the License is distributed on an "AS IS" BASIS,
208 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
209 * See the License for the specific language governing permissions and
210 * limitations under the License.
211 */function b(i="Unexpected state"){let a=`FIRESTORE (${eN}) INTERNAL ASSERTION FAILED: `+i;throw g(a),Error(a)}/**
212 * @license
213 * Copyright 2017 Google LLC
214 *
215 * Licensed under the Apache License, Version 2.0 (the "License");
216 * you may not use this file except in compliance with the License.
217 * You may obtain a copy of the License at
218 *
219 *   http://www.apache.org/licenses/LICENSE-2.0
220 *
221 * Unless required by applicable law or agreed to in writing, software
222 * distributed under the License is distributed on an "AS IS" BASIS,
223 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
224 * See the License for the specific language governing permissions and
225 * limitations under the License.
226 */let ej="unknown",e$="invalid-argument",ez="unauthenticated",eB="failed-precondition";let U=class U extends FirebaseError{constructor(i,a){super(i,a),this.code=i,this.message=a,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}};/**
227 * @license
228 * Copyright 2017 Google LLC
229 *
230 * Licensed under the Apache License, Version 2.0 (the "License");
231 * you may not use this file except in compliance with the License.
232 * You may obtain a copy of the License at
233 *
234 *   http://www.apache.org/licenses/LICENSE-2.0
235 *
236 * Unless required by applicable law or agreed to in writing, software
237 * distributed under the License is distributed on an "AS IS" BASIS,
238 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
239 * See the License for the specific language governing permissions and
240 * limitations under the License.
241 */let B=class B{constructor(i,a){this.user=a,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${i}`)}};let Q=class Q{getToken(){return Promise.resolve(null)}invalidateToken(){}start(i,a){i.enqueueRetryable(()=>a(d.UNAUTHENTICATED))}shutdown(){}};let z=class z{constructor(i){this.token=i,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(i,a){this.changeListener=a,i.enqueueRetryable(()=>a(this.token.user))}shutdown(){this.changeListener=null}};let W=class W{constructor(i){this.auth=null,i.onInit(i=>{this.auth=i})}getToken(){return this.auth?this.auth.getToken().then(i=>i?("string"==typeof i.accessToken||b(),new B(i.accessToken,new d(this.auth.getUid()))):null):Promise.resolve(null)}invalidateToken(){}start(i,a){}shutdown(){}};let G=class G{constructor(i,a,o){this.t=i,this.i=a,this.o=o,this.type="FirstParty",this.user=d.FIRST_PARTY,this.u=new Map}h(){return this.o?this.o():null}get headers(){this.u.set("X-Goog-AuthUser",this.t);let i=this.h();return i&&this.u.set("Authorization",i),this.i&&this.u.set("X-Goog-Iam-Authorization-Token",this.i),this.u}};let K=class K{constructor(i,a,o){this.t=i,this.i=a,this.o=o}getToken(){return Promise.resolve(new G(this.t,this.i,this.o))}start(i,a){i.enqueueRetryable(()=>a(d.FIRST_PARTY))}shutdown(){}invalidateToken(){}};let Y=class Y{constructor(i){this.value=i,this.type="AppCheck",this.headers=new Map,i&&i.length>0&&this.headers.set("x-firebase-appcheck",this.value)}};let H=class H{constructor(i){this.l=i,this.appCheck=null,i.onInit(i=>{this.appCheck=i})}getToken(){return this.appCheck?this.appCheck.getToken().then(i=>i?("string"==typeof i.token||b(),new Y(i.token)):null):Promise.resolve(null)}invalidateToken(){}start(i,a){}shutdown(){}};/**
242 * @license
243 * Copyright 2017 Google LLC
244 *
245 * Licensed under the Apache License, Version 2.0 (the "License");
246 * you may not use this file except in compliance with the License.
247 * You may obtain a copy of the License at
248 *
249 *   http://www.apache.org/licenses/LICENSE-2.0
250 *
251 * Unless required by applicable law or agreed to in writing, software
252 * distributed under the License is distributed on an "AS IS" BASIS,
253 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
254 * See the License for the specific language governing permissions and
255 * limitations under the License.
256 */let J=class J{constructor(i,a,o,c,w,x,k,R,j){this.databaseId=i,this.appId=a,this.persistenceKey=o,this.host=c,this.ssl=w,this.forceLongPolling=x,this.autoDetectLongPolling=k,this.longPollingOptions=R,this.useFetchStreams=j}};let X=class X{constructor(i,a){this.projectId=i,this.database=a||"(default)"}static empty(){return new X("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(i){return i instanceof X&&i.projectId===this.projectId&&i.database===this.database}};let Z=class Z{constructor(i,a,o){void 0===a?a=0:a>i.length&&b(),void 0===o?o=i.length-a:o>i.length-a&&b(),this.segments=i,this.offset=a,this.len=o}get length(){return this.len}isEqual(i){return 0===Z.comparator(this,i)}child(i){let a=this.segments.slice(this.offset,this.limit());return i instanceof Z?i.forEach(i=>{a.push(i)}):a.push(i),this.construct(a)}limit(){return this.offset+this.length}popFirst(i){return i=void 0===i?1:i,this.construct(this.segments,this.offset+i,this.length-i)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(i){return this.segments[this.offset+i]}isEmpty(){return 0===this.length}isPrefixOf(i){if(i.length<this.length)return!1;for(let a=0;a<this.length;a++)if(this.get(a)!==i.get(a))return!1;return!0}isImmediateParentOf(i){if(this.length+1!==i.length)return!1;for(let a=0;a<this.length;a++)if(this.get(a)!==i.get(a))return!1;return!0}forEach(i){for(let a=this.offset,o=this.limit();a<o;a++)i(this.segments[a])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(i,a){let o=Math.min(i.length,a.length);for(let c=0;c<o;c++){let o=i.get(c),w=a.get(c);if(o<w)return -1;if(o>w)return 1}return i.length<a.length?-1:i.length>a.length?1:0}};let tt=class tt extends Z{construct(i,a,o){return new tt(i,a,o)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}static fromString(...i){let a=[];for(let o of i){if(o.indexOf("//")>=0)throw new U(e$,`Invalid segment (${o}). Paths must not contain // in them.`);a.push(...o.split("/").filter(i=>i.length>0))}return new tt(a)}static emptyPath(){return new tt([])}};let eU=/^[_a-zA-Z][_a-zA-Z0-9]*$/;let nt=class nt extends Z{construct(i,a,o){return new nt(i,a,o)}static isValidIdentifier(i){return eU.test(i)}canonicalString(){return this.toArray().map(i=>(i=i.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),nt.isValidIdentifier(i)||(i="`"+i+"`"),i)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new nt(["__name__"])}static fromServerFormat(i){let a=[],o="",c=0,s=()=>{if(0===o.length)throw new U(e$,`Invalid field path (${i}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);a.push(o),o=""},w=!1;for(;c<i.length;){let a=i[c];if("\\"===a){if(c+1===i.length)throw new U(e$,"Path has trailing escape character: "+i);let a=i[c+1];if("\\"!==a&&"."!==a&&"`"!==a)throw new U(e$,"Path has invalid escape sequence: "+i);o+=a,c+=2}else"`"===a?w=!w:"."!==a||w?o+=a:s(),c++}if(s(),w)throw new U(e$,"Unterminated ` in path: "+i);return new nt(a)}static emptyPath(){return new nt([])}};/**
257 * @license
258 * Copyright 2017 Google LLC
259 *
260 * Licensed under the Apache License, Version 2.0 (the "License");
261 * you may not use this file except in compliance with the License.
262 * You may obtain a copy of the License at
263 *
264 *   http://www.apache.org/licenses/LICENSE-2.0
265 *
266 * Unless required by applicable law or agreed to in writing, software
267 * distributed under the License is distributed on an "AS IS" BASIS,
268 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
269 * See the License for the specific language governing permissions and
270 * limitations under the License.
271 */let rt=class rt{constructor(i){this.path=i}static fromPath(i){return new rt(tt.fromString(i))}static fromName(i){return new rt(tt.fromString(i).popFirst(5))}static empty(){return new rt(tt.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(i){return this.path.length>=2&&this.path.get(this.path.length-2)===i}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(i){return null!==i&&0===tt.comparator(this.path,i.path)}toString(){return this.path.toString()}static comparator(i,a){return tt.comparator(i.path,a.path)}static isDocumentKey(i){return i.length%2==0}static fromSegments(i){return new rt(new tt(i.slice()))}};/**
272 * @license
273 * Copyright 2017 Google LLC
274 *
275 * Licensed under the Apache License, Version 2.0 (the "License");
276 * you may not use this file except in compliance with the License.
277 * You may obtain a copy of the License at
278 *
279 *   http://www.apache.org/licenses/LICENSE-2.0
280 *
281 * Unless required by applicable law or agreed to in writing, software
282 * distributed under the License is distributed on an "AS IS" BASIS,
283 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
284 * See the License for the specific language governing permissions and
285 * limitations under the License.
286 */function st(i,a,o){if(!o)throw new U(e$,`Function ${i}() cannot be called with an empty ${a}.`)}function it(i){if(!rt.isDocumentKey(i))throw new U(e$,`Invalid document reference. Document references must have an even number of segments, but ${i} has ${i.length}.`)}function ot(i){if(rt.isDocumentKey(i))throw new U(e$,`Invalid collection reference. Collection references must have an odd number of segments, but ${i} has ${i.length}.`)}function ut(i){if(void 0===i)return"undefined";if(null===i)return"null";if("string"==typeof i)return i.length>20&&(i=`${i.substring(0,20)}...`),JSON.stringify(i);if("number"==typeof i||"boolean"==typeof i)return""+i;if("object"==typeof i){if(i instanceof Array)return"an array";{var a;let o=(a=i).constructor?a.constructor.name:null;return o?`a custom ${o} object`:"an object"}}return"function"==typeof i?"a function":b()}function ct(i,a){if("_delegate"in i&&(i=i._delegate),!(i instanceof a)){if(a.name===i.constructor.name)throw new U(e$,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{let o=ut(i);throw new U(e$,`Expected type '${a.name}', but it was: ${o}`)}}return i}/**
287 * @license
288 * Copyright 2023 Google LLC
289 *
290 * Licensed under the Apache License, Version 2.0 (the "License");
291 * you may not use this file except in compliance with the License.
292 * You may obtain a copy of the License at
293 *
294 *   http://www.apache.org/licenses/LICENSE-2.0
295 *
296 * Unless required by applicable law or agreed to in writing, software
297 * distributed under the License is distributed on an "AS IS" BASIS,
298 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
299 * See the License for the specific language governing permissions and
300 * limitations under the License.
301 */function ht(i){let a={};return void 0!==i.timeoutSeconds&&(a.timeoutSeconds=i.timeoutSeconds),a}/**
302 * @license
303 * Copyright 2023 Google LLC
304 *
305 * Licensed under the Apache License, Version 2.0 (the "License");
306 * you may not use this file except in compliance with the License.
307 * You may obtain a copy of the License at
308 *
309 *   http://www.apache.org/licenses/LICENSE-2.0
310 *
311 * Unless required by applicable law or agreed to in writing, software
312 * distributed under the License is distributed on an "AS IS" BASIS,
313 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
314 * See the License for the specific language governing permissions and
315 * limitations under the License.
316 */let eV=null;function ft(){return null===eV?eV=268435456+Math.round(2147483648*Math.random()):eV++,"0x"+eV.toString(16)}function wt(i){return 0===i&&1/i==-1/0}/**
317 * @license
318 * Copyright 2020 Google LLC
319 *
320 * Licensed under the Apache License, Version 2.0 (the "License");
321 * you may not use this file except in compliance with the License.
322 * You may obtain a copy of the License at
323 *
324 *   http://www.apache.org/licenses/LICENSE-2.0
325 *
326 * Unless required by applicable law or agreed to in writing, software
327 * distributed under the License is distributed on an "AS IS" BASIS,
328 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
329 * See the License for the specific language governing permissions and
330 * limitations under the License.
331 */let eH={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};function gt(i){if(void 0===i)return g("RPC_ERROR","HTTP error has no status"),ej;switch(i){case 200:return"ok";case 400:return eB;case 401:return ez;case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 416:return"out-of-range";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return ej;case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded";default:return i>=200&&i<300?"ok":i>=400&&i<500?eB:i>=500&&i<600?"internal":ej}}/**
332 * @license
333 * Copyright 2020 Google LLC
334 *
335 * Licensed under the Apache License, Version 2.0 (the "License");
336 * you may not use this file except in compliance with the License.
337 * You may obtain a copy of the License at
338 *
339 *   http://www.apache.org/licenses/LICENSE-2.0
340 *
341 * Unless required by applicable law or agreed to in writing, software
342 * distributed under the License is distributed on an "AS IS" BASIS,
343 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
344 * See the License for the specific language governing permissions and
345 * limitations under the License.
346 */(el=es||(es={}))[el.OK=0]="OK",el[el.CANCELLED=1]="CANCELLED",el[el.UNKNOWN=2]="UNKNOWN",el[el.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",el[el.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",el[el.NOT_FOUND=5]="NOT_FOUND",el[el.ALREADY_EXISTS=6]="ALREADY_EXISTS",el[el.PERMISSION_DENIED=7]="PERMISSION_DENIED",el[el.UNAUTHENTICATED=16]="UNAUTHENTICATED",el[el.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",el[el.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",el[el.ABORTED=10]="ABORTED",el[el.OUT_OF_RANGE=11]="OUT_OF_RANGE",el[el.UNIMPLEMENTED=12]="UNIMPLEMENTED",el[el.INTERNAL=13]="INTERNAL",el[el.UNAVAILABLE=14]="UNAVAILABLE",el[el.DATA_LOSS=15]="DATA_LOSS";let _t=class _t extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;let a=i.ssl?"https":"http";this.m=a+"://"+i.host,this.p="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}get g(){return!1}v(i,a,o,c,w){let x=ft(),k=this.I(i,a);y("RestConnection",`Sending RPC '${i}' ${x}:`,k,o);let R={};return this.T(R,c,w),this.A(i,k,R,o).then(a=>(y("RestConnection",`Received RPC '${i}' ${x}: `,a),a),a=>{throw _("RestConnection",`RPC '${i}' ${x} failed with error: `,a,"url: ",k,"request:",o),a})}R(i,a,o,c,w,x){return this.v(i,a,o,c,w)}T(i,a,o){i["X-Goog-Api-Client"]="gl-js/ fire/"+eN,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),a&&a.headers.forEach((a,o)=>i[o]=a),o&&o.headers.forEach((a,o)=>i[o]=a)}I(i,a){let o=eH[i];return`${this.m}/v1/${a}:${o}`}}{constructor(i,a){super(i),this.P=a}V(i,a){throw Error("Not supported by FetchConnection")}async A(i,a,o,c){var w;let x;let k=JSON.stringify(c);try{x=await this.P(a,{method:"POST",headers:o,body:k})}catch(i){throw new U(gt(i.status),"Request failed with error: "+i.statusText)}if(!x.ok){let i=await x.json();Array.isArray(i)&&(i=i[0]);let a=null===(w=null==i?void 0:i.error)||void 0===w?void 0:w.message;throw new U(gt(x.status),`Request failed with error: ${null!=a?a:x.statusText}`)}return x.json()}};/**
347 * @license
348 * Copyright 2017 Google LLC
349 *
350 * Licensed under the Apache License, Version 2.0 (the "License");
351 * you may not use this file except in compliance with the License.
352 * You may obtain a copy of the License at
353 *
354 *   http://www.apache.org/licenses/LICENSE-2.0
355 *
356 * Unless required by applicable law or agreed to in writing, software
357 * distributed under the License is distributed on an "AS IS" BASIS,
358 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
359 * See the License for the specific language governing permissions and
360 * limitations under the License.
361 */let Et=class Et{static N(){let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=Math.floor(256/i.length)*i.length,o="";for(;o.length<20;){let c=/**
362 * @license
363 * Copyright 2020 Google LLC
364 *
365 * Licensed under the Apache License, Version 2.0 (the "License");
366 * you may not use this file except in compliance with the License.
367 * You may obtain a copy of the License at
368 *
369 *   http://www.apache.org/licenses/LICENSE-2.0
370 *
371 * Unless required by applicable law or agreed to in writing, software
372 * distributed under the License is distributed on an "AS IS" BASIS,
373 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
374 * See the License for the specific language governing permissions and
375 * limitations under the License.
376 */function(i){let a="undefined"!=typeof self&&(self.crypto||self.msCrypto),o=new Uint8Array(i);if(a&&"function"==typeof a.getRandomValues)a.getRandomValues(o);else for(let a=0;a<i;a++)o[a]=Math.floor(256*Math.random());return o}(40);for(let w=0;w<c.length;++w)o.length<20&&c[w]<a&&(o+=i.charAt(c[w]%i.length))}return o}};function It(i,a){return i<a?-1:i>a?1:0}function Tt(i,a,o){return i.length===a.length&&i.every((i,c)=>o(i,a[c]))}/**
377 * @license
378 * Copyright 2017 Google LLC
379 *
380 * Licensed under the Apache License, Version 2.0 (the "License");
381 * you may not use this file except in compliance with the License.
382 * You may obtain a copy of the License at
383 *
384 *   http://www.apache.org/licenses/LICENSE-2.0
385 *
386 * Unless required by applicable law or agreed to in writing, software
387 * distributed under the License is distributed on an "AS IS" BASIS,
388 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
389 * See the License for the specific language governing permissions and
390 * limitations under the License.
391 */function At(i){let a=0;for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&a++;return a}function Rt(i,a){for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&a(o,i[o])}/**
392 * @license
393 * Copyright 2023 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 */let Pt=class Pt extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}};/**
407 * @license
408 * Copyright 2020 Google LLC
409 *
410 * Licensed under the Apache License, Version 2.0 (the "License");
411 * you may not use this file except in compliance with the License.
412 * You may obtain a copy of the License at
413 *
414 *   http://www.apache.org/licenses/LICENSE-2.0
415 *
416 * Unless required by applicable law or agreed to in writing, software
417 * distributed under the License is distributed on an "AS IS" BASIS,
418 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
419 * See the License for the specific language governing permissions and
420 * limitations under the License.
421 *//**
422 * @license
423 * Copyright 2020 Google LLC
424 *
425 * Licensed under the Apache License, Version 2.0 (the "License");
426 * you may not use this file except in compliance with the License.
427 * You may obtain a copy of the License at
428 *
429 *   http://www.apache.org/licenses/LICENSE-2.0
430 *
431 * Unless required by applicable law or agreed to in writing, software
432 * distributed under the License is distributed on an "AS IS" BASIS,
433 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
434 * See the License for the specific language governing permissions and
435 * limitations under the License.
436 */let Vt=class Vt{constructor(i){this.binaryString=i}static fromBase64String(i){let a=function(i){try{return atob(i)}catch(i){throw"undefined"!=typeof DOMException&&i instanceof DOMException?new Pt("Invalid base64 string: "+i):i}}(i);return new Vt(a)}static fromUint8Array(i){let a=function(i){let a="";for(let o=0;o<i.length;++o)a+=String.fromCharCode(i[o]);return a}(i);return new Vt(a)}[Symbol.iterator](){let i=0;return{next:()=>i<this.binaryString.length?{value:this.binaryString.charCodeAt(i++),done:!1}:{value:void 0,done:!0}}}toBase64(){return btoa(this.binaryString)}toUint8Array(){return function(i){let a=new Uint8Array(i.length);for(let o=0;o<i.length;o++)a[o]=i.charCodeAt(o);return a}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(i){return It(this.binaryString,i.binaryString)}isEqual(i){return this.binaryString===i.binaryString}};Vt.EMPTY_BYTE_STRING=new Vt("");let eq=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Nt(i){if(i||b(),"string"==typeof i){let a=0,o=eq.exec(i);if(o||b(),o[1]){let i=o[1];a=Number(i=(i+"000000000").substr(0,9))}let c=new Date(i);return{seconds:Math.floor(c.getTime()/1e3),nanos:a}}return{seconds:Dt(i.seconds),nanos:Dt(i.nanos)}}function Dt(i){return"number"==typeof i?i:"string"==typeof i?Number(i):0}function Ft(i){return"string"==typeof i?Vt.fromBase64String(i):Vt.fromUint8Array(i)}/**
437 * @license
438 * Copyright 2017 Google LLC
439 *
440 * Licensed under the Apache License, Version 2.0 (the "License");
441 * you may not use this file except in compliance with the License.
442 * You may obtain a copy of the License at
443 *
444 *   http://www.apache.org/licenses/LICENSE-2.0
445 *
446 * Unless required by applicable law or agreed to in writing, softw
446are
447 * distributed under the License is distributed on an "AS IS" BASIS,
448 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
449 * See the License for the specific language governing permissions and
450 * limitations under the License.
451 */let xt=class xt{constructor(i,a){if(this.seconds=i,this.nanoseconds=a,a<0||a>=1e9)throw new U(e$,"Timestamp nanoseconds out of range: "+a);if(i<-62135596800||i>=253402300800)throw new U(e$,"Timestamp seconds out of range: "+i)}static now(){return xt.fromMillis(Date.now())}static fromDate(i){return xt.fromMillis(i.getTime())}static fromMillis(i){let a=Math.floor(i/1e3),o=Math.floor(1e6*(i-1e3*a));return new xt(a,o)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(i){return this.seconds===i.seconds?It(this.nanoseconds,i.nanoseconds):It(this.seconds,i.seconds)}isEqual(i){return i.seconds===this.seconds&&i.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){let i=this.seconds- -62135596800;return String(i).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}};function Ot(i){let a=Nt(i.mapValue.fields.__local_write_time__.timestampValue);return new xt(a.seconds,a.nanos)}function Ct(i){var a,o;return"nullValue"in i?0:"booleanValue"in i?1:"integerValue"in i||"doubleValue"in i?2:"timestampValue"in i?3:"stringValue"in i?5:"bytesValue"in i?6:"referenceValue"in i?7:"geoPointValue"in i?8:"arrayValue"in i?9:"mapValue"in i?"server_timestamp"===(null===(o=((null===(a=null==i?void 0:i.mapValue)||void 0===a?void 0:a.fields)||{}).__type__)||void 0===o?void 0:o.stringValue)?4:"__max__"===(((i.mapValue||{}).fields||{}).__type__||{}).stringValue?9007199254740991:10:b()}function Gt(i){return!!i&&"mapValue"in i}function Kt(i){if(i.geoPointValue)return{geoPointValue:Object.assign({},i.geoPointValue)};if(i.timestampValue&&"object"==typeof i.timestampValue)return{timestampValue:Object.assign({},i.timestampValue)};if(i.mapValue){let a={mapValue:{fields:{}}};return Rt(i.mapValue.fields,(i,o)=>a.mapValue.fields[i]=Kt(o)),a}if(i.arrayValue){let a={arrayValue:{values:[]}};for(let o=0;o<(i.arrayValue.values||[]).length;++o)a.arrayValue.values[o]=Kt(i.arrayValue.values[o]);return a}return Object.assign({},i)}/**
452 * @license
453 * Copyright 2017 Google LLC
454 *
455 * Licensed under the Apache License, Version 2.0 (the "License");
456 * you may not use this file except in compliance with the License.
457 * You may obtain a copy of the License at
458 *
459 *   http://www.apache.org/licenses/LICENSE-2.0
460 *
461 * Unless required by applicable law or agreed to in writing, software
462 * distributed under the License is distributed on an "AS IS" BASIS,
463 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
464 * See the License for the specific language governing permissions and
465 * limitations under the License.
466 */let fe=class fe{constructor(i,a){this.comparator=i,this.root=a||we.EMPTY}insert(i,a){return new fe(this.comparator,this.root.insert(i,a,this.comparator).copy(null,null,we.BLACK,null,null))}remove(i){return new fe(this.comparator,this.root.remove(i,this.comparator).copy(null,null,we.BLACK,null,null))}get(i){let a=this.root;for(;!a.isEmpty();){let o=this.comparator(i,a.key);if(0===o)return a.value;o<0?a=a.left:o>0&&(a=a.right)}return null}indexOf(i){let a=0,o=this.root;for(;!o.isEmpty();){let c=this.comparator(i,o.key);if(0===c)return a+o.left.size;c<0?o=o.left:(a+=o.left.size+1,o=o.right)}return -1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(i){return this.root.inorderTraversal(i)}forEach(i){this.inorderTraversal((a,o)=>(i(a,o),!1))}toString(){let i=[];return this.inorderTraversal((a,o)=>(i.push(`${a}:${o}`),!1)),`{${i.join(", ")}}`}reverseTraversal(i){return this.root.reverseTraversal(i)}getIterator(){return new de(this.root,null,this.comparator,!1)}getIteratorFrom(i){return new de(this.root,i,this.comparator,!1)}getReverseIterator(){return new de(this.root,null,this.comparator,!0)}getReverseIteratorFrom(i){return new de(this.root,i,this.comparator,!0)}};let de=class de{constructor(i,a,o,c){this.isReverse=c,this.nodeStack=[];let w=1;for(;!i.isEmpty();)if(w=a?o(i.key,a):1,a&&c&&(w*=-1),w<0)i=this.isReverse?i.left:i.right;else{if(0===w){this.nodeStack.push(i);break}this.nodeStack.push(i),i=this.isReverse?i.right:i.left}}getNext(){let i=this.nodeStack.pop(),a={key:i.key,value:i.value};if(this.isReverse)for(i=i.left;!i.isEmpty();)this.nodeStack.push(i),i=i.right;else for(i=i.right;!i.isEmpty();)this.nodeStack.push(i),i=i.left;return a}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;let i=this.nodeStack[this.nodeStack.length-1];return{key:i.key,value:i.value}}};let we=class we{constructor(i,a,o,c,w){this.key=i,this.value=a,this.color=null!=o?o:we.RED,this.left=null!=c?c:we.EMPTY,this.right=null!=w?w:we.EMPTY,this.size=this.left.size+1+this.right.size}copy(i,a,o,c,w){return new we(null!=i?i:this.key,null!=a?a:this.value,
466null!=o?o:this.color,null!=c?c:this.left,null!=w?w:this.right)}isEmpty(){return!1}inorderTraversal(i){return this.left.inorderTraversal(i)||i(this.key,this.value)||this.right.inorderTraversal(i)}reverseTraversal(i){return this.right.reverseTraversal(i)||i(this.key,this.value)||this.left.reverseTraversal(i)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(i,a,o){let c=this,w=o(i,c.key);return(c=w<0?c.copy(null,null,null,c.left.insert(i,a,o),null):0===w?c.copy(null,a,null,null,null):c.copy(null,null,null,null,c.right.insert(i,a,o))).fixUp()}removeMin(){if(this.left.isEmpty())return we.EMPTY;let i=this;return i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),(i=i.copy(null,null,null,i.left.removeMin(),null)).fixUp()}remove(i,a){let o,c=this;if(0>a(i,c.key))c.left.isEmpty()||c.left.isRed()||c.left.left.isRed()||(c=c.moveRedLeft()),c=c.copy(null,null,null,c.left.remove(i,a),null);else{if(c.left.isRed()&&(c=c.rotateRight()),c.right.isEmpty()||c.right.isRed()||c.right.left.isRed()||(c=c.moveRedRight()),0===a(i,c.key)){if(c.right.isEmpty())return we.EMPTY;o=c.right.min(),c=c.copy(o.key,o.value,null,null,c.right.removeMin())}c=c.copy(null,null,null,null,c.right.remove(i,a))}return c.fixUp()}isRed(){return this.color}fixUp(){let i=this;return i.right.isRed()&&!i.left.isRed()&&(i=i.rotateLeft()),i.left.isRed()&&i.left.left.isRed()&&(i=i.rotateRight()),i.left.isRed()&&i.right.isRed()&&(i=i.colorFlip()),i}moveRedLeft(){let i=this.colorFlip();return i.right.left.isRed()&&(i=(i=(i=i.copy(null,null,null,null,i.right.rotateRight())).rotateLeft()).colorFlip()),i}moveRedRight(){let i=this.colorFlip();return i.left.left.isRed()&&(i=(i=i.rotateRight()).colorFlip()),i}rotateLeft(){let i=this.copy(null,null,we.RED,null,this.right.left);return this.right.copy(null,null,this.color,i,null)}rotateRight(){let i=this.copy(null,null,we.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,i)}colorFlip(){let i=this.left.copy(null,null,!this.left.color,null,null),a=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,i,a)}checkMaxDepth(){let i=this.check();return Math.pow(2,i)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw b();let i=this.left.check();if(i!==this.right.check())throw b();return i+(this.isRed()?0:1)}};we.EMPTY=null,we.RED=!0,we.BLACK=!1,we.EMPTY=new class{constructor(){this.size=0}get key(){throw b()}get value(){throw b()}get color(){throw b()}get left(){throw b()}get right(){throw b()}copy(i,a,o,c,w){return this}insert(i,a,o){return new we(i,a)}remove(i,a){return this}isEmpty(){return!0}inorderTraversal(i){return!1}reverseTraversal(i){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};/**
467 * @license
468 * Copyright 2017 Google LLC
469 *
470 * Licensed under the Apache License, Version 2.0 (the "License");
471 * you may not use this file except in compliance with the License.
472 * You may obtain a copy of the License at
473 *
474 *   http://www.apache.org/licenses/LICENSE-2.0
475 *
476 * Unless required by applicable law or agreed to in writing, software
477 * distributed under the License is distributed on an "AS IS" BASIS,
478 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
479 * See the License for the specific language governing permissions and
480 * limitations under the License.
481 */let me=class me{constructor(i){this.comparator=i,this.data=new fe(this.comparator)}has(i){return null!==this.data.get(i)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(i){return this.data.indexOf(i)}forEach(i){this.data.inorderTraversal((a,o)=>(i(a),!1))}forEachInRange(i,a){let o=this.data.getIteratorFrom(i[0]);for(;o.hasNext();){let c=o.getNext();if(this.comparator(c.key,i[1])>=0)return;a(c.key)}}forEachWhile(i,a){let o;for(o=void 0!==a?this.data.getIteratorFrom(a):this.data.getIterator();o.hasNext();)if(!i(o.getNext().key))return}firstAfterOrEqual(i){let a=this.data.getIteratorFrom(i);return a.hasNext()?a.getNext().key:null}getIterator(){return new pe(this.data.getIterator())}getIteratorFrom(i){return new pe(this.data.getIteratorFrom(i))}add(i){return this.copy(this.data.remove(i).insert(i,!0))}delete(i){return this.has(i)?this.copy(this.data.remove(i)):this}isEmpty(){return this.data.isEmpty()}unionWith(i){let a=this;
481return a.size<i.size&&(a=i,i=this),i.forEach(i=>{a=a.add(i)}),a}isEqual(i){if(!(i instanceof me)||this.size!==i.size)return!1;let a=this.data.getIterator(),o=i.data.getIterator();for(;a.hasNext();){let i=a.getNext().key,c=o.getNext().key;if(0!==this.comparator(i,c))return!1}return!0}toArray(){let i=[];return this.forEach(a=>{i.push(a)}),i}toString(){let i=[];return this.forEach(a=>i.push(a)),"SortedSet("+i.toString()+")"}copy(i){let a=new me(this.comparator);return a.data=i,a}};let pe=class pe{constructor(i){this.iter=i}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}};/**
482 * @license
483 * Copyright 2020 Google LLC
484 *
485 * Licensed under the Apache License, Version 2.0 (the "License");
486 * you may not use this file except in compliance with the License.
487 * You may obtain a copy of the License at
488 *
489 *   http://www.apache.org/licenses/LICENSE-2.0
490 *
491 * Unless required by applicable law or agreed to in writing, software
492 * distributed under the License is distributed on an "AS IS" BASIS,
493 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
494 * See the License for the specific language governing permissions and
495 * limitations under the License.
496 */let ye=class ye{constructor(i){this.fields=i,i.sort(nt.comparator)}static empty(){return new ye([])}unionWith(i){let a=new me(nt.comparator);for(let i of this.fields)a=a.add(i);for(let o of i)a=a.add(o);return new ye(a.toArray())}covers(i){for(let a of this.fields)if(a.isPrefixOf(i))return!0;return!1}isEqual(i){return Tt(this.fields,i.fields,(i,a)=>i.isEqual(a))}};/**
497 * @license
498 * Copyright 2017 Google LLC
499 *
500 * Licensed under the Apache License, Version 2.0 (the "License");
501 * you may not use this file except in compliance with the License.
502 * You may obtain a copy of the License at
503 *
504 *   http://www.apache.org/licenses/LICENSE-2.0
505 *
506 * Unless required by applicable law or agreed to in writing, software
507 * distributed under the License is distributed on an "AS IS" BASIS,
508 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
509 * See the License for the specific language governing permissions and
510 * limitations under the License.
511 */let ge=class ge{constructor(i){this.value=i}static empty(){return new ge({mapValue:{}})}field(i){if(i.isEmpty())return this.value;{let a=this.value;for(let o=0;o<i.length-1;++o)if(!Gt(a=(a.mapValue.fields||{})[i.get(o)]))return null;return(a=(a.mapValue.fields||{})[i.lastSegment()])||null}}set(i,a){this.getFieldsMap(i.popLast())[i.lastSegment()]=Kt(a)}setAll(i){let a=nt.emptyPath(),o={},c=[];i.forEach((i,w)=>{if(!a.isImmediateParentOf(w)){let i=this.getFieldsMap(a);this.applyChanges(i,o,c),o={},c=[],a=w.popLast()}i?o[w.lastSegment()]=Kt(i):c.push(w.lastSegment())});let w=this.getFieldsMap(a);this.applyChanges(w,o,c)}delete(i){let a=this.field(i.popLast());Gt(a)&&a.mapValue.fields&&delete a.mapValue.fields[i.lastSegment()]}isEqual(i){return function Mt(i,a){if(i===a)return!0;let o=Ct(i);if(o!==Ct(a))return!1;switch(o){case 0:case 9007199254740991:return!0;case 1:return i.booleanValue===a.booleanValue;case 4:return Ot(i).isEqual(Ot(a));case 3:return function(i,a){if("string"==typeof i.timestampValue&&"string"==typeof a.timestampValue&&i.timestampValue.length===a.timestampValue.length)return i.timestampValue===a.timestampValue;let o=Nt(i.timestampValue),c=Nt(a.timestampValue);return o.seconds===c.seconds&&o.nanos===c.nanos}(i,a);case 5:return i.stringValue===a.stringValue;case 6:return Ft(i.bytesValue).isEqual(Ft(a.bytesValue));case 7:return i.referenceValue===a.referenceValue;case 8:return Dt(i.geoPointValue.latitude)===Dt(a.geoPointValue.latitude)&&Dt(i.geoPointValue.longitude)===Dt(a.geoPointValue.longitude);case 2:return function(i,a){if("integerValue"in i&&"integerValue"in a)return Dt(i.integerValue)===Dt(a.integerValue);if("doubleValue"in i&&"doubleValue"in a){let o=Dt(i.doubleValue),c=Dt(a.doubleValue);return o===c?wt(o)===wt(c):isNaN(o)&&isNaN(c)}return!1}(i,a);case 9:return Tt(i.arrayValue.values||[],a.arrayValue.values||[],Mt);case 10:return function(i,a){let o=i.mapValue.fields||{},c=a.mapValue.fields||{};if(At(o)!==At(c))return!1;for(let i in o)if(o.hasOwnProperty(i)&&(void 0===c[i]||!Mt(o[i],c[i])
511))return!1;return!0}(i,a);default:return b()}}(this.value,i.value)}getFieldsMap(i){let a=this.value;a.mapValue.fields||(a.mapValue={fields:{}});for(let o=0;o<i.length;++o){let c=a.mapValue.fields[i.get(o)];Gt(c)&&c.mapValue.fields||(c={mapValue:{fields:{}}},a.mapValue.fields[i.get(o)]=c),a=c}return a.mapValue.fields}applyChanges(i,a,o){for(let c of(Rt(a,(a,o)=>i[a]=o),o))delete i[c]}clone(){return new ge(Kt(this.value))}};/**
512 * @license
513 * Copyright 2017 Google LLC
514 *
515 * Licensed under the Apache License, Version 2.0 (the "License");
516 * you may not use this file except in compliance with the License.
517 * You may obtain a copy of the License at
518 *
519 *   http://www.apache.org/licenses/LICENSE-2.0
520 *
521 * Unless required by applicable law or agreed to in writing, software
522 * distributed under the License is distributed on an "AS IS" BASIS,
523 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
524 * See the License for the specific language governing permissions and
525 * limitations under the License.
526 */let Ee=class Ee{constructor(i,a=null,o=[],c=[],w=null,x="F",k=null,R=null){this.path=i,this.collectionGroup=a,this.explicitOrderBy=o,this.filters=c,this.limit=w,this.limitType=x,this.startAt=k,this.endAt=R,this.q=null,this.O=null,this.startAt,this.endAt}};/**
527 * @license
528 * Copyright 2018 Google LLC
529 *
530 * Licensed under the Apache License, Version 2.0 (the "License");
531 * you may not use this file except in compliance with the License.
532 * You may obtain a copy of the License at
533 *
534 *   http://www.apache.org/licenses/LICENSE-2.0
535 *
536 * Unless required by applicable law or agreed to in writing, software
537 * distributed under the License is distributed on an "AS IS" BASIS,
538 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
539 * See the License for the specific language governing permissions and
540 * limitations under the License.
541 */let De=class De{constructor(){this._=void 0}};let Fe=class Fe extends De{};let xe=class xe extends De{constructor(i){super(),this.elements=i}};let Se=class Se extends De{constructor(i){super(),this.elements=i}};let qe=class qe extends De{constructor(i,a){super(),this.serializer=i,this.k=a}};let ke=class ke{constructor(i,a){this.updateTime=i,this.exists=a}static none(){return new ke}static exists(i){return new ke(void 0,i)}static updateTime(i){return new ke(i)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(i){return this.exists===i.exists&&(this.updateTime?!!i.updateTime&&this.updateTime.isEqual(i.updateTime):!i.updateTime)}};let Ce=class Ce{};let Me=class Me extends Ce{constructor(i,a,o,c=[]){super(),this.key=i,this.value=a,this.prec
541ondition=o,this.fieldTransforms=c,this.type=0}getFieldMask(){return null}};let Le=class Le extends Ce{constructor(i,a,o,c,w=[]){super(),this.key=i,this.data=a,this.fieldMask=o,this.precondition=c,this.fieldTransforms=w,this.type=1}getFieldMask(){return this.fieldMask}};let Ue=class Ue extends Ce{constructor(i,a){super(),this.key=i,this.precondition=a,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}};let je=class je extends Ce{constructor(i,a){super(),this.key=i,this.precondition=a,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}};let We=class We{constructor(i,a){this.databaseId=i,this.useProto3Json=a}};function Ge(i,a){return i.useProto3Json?`${new Date(1e3*a.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+a.nanoseconds).slice(-9)}Z`:{seconds:""+a.seconds,nanos:a.nanoseconds}}function Je(i,a){return new tt(["projects",i.projectId,"databases",i.database]).child("documents").child(a).canonicalString()}function Xe(i,a){return Je(i.databaseId,a.path)}function nn(i,a,o){return{name:Xe(i,a),fields:o.value.mapValue.fields}}/**
542 * @license
543 * Copyright 2020 Google LLC
544 *
545 * Licensed under the Apache License, Version 2.0 (the "License");
546 * you may not use this file except in compliance with the License.
547 * You may obtain a copy of the License at
548 *
549 *   http://www.apache.org/licenses/LICENSE-2.0
550 *
551 * Unless required by applicable law or agreed to in writing, software
552 * distributed under the License is distributed on an "AS IS" BASIS,
553 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
554 * See the License for the specific language governing permissions and
555 * limitations under the License.
556 */function wn(i){return new We(i,!0)}/**
557 * @license
558 * Copyright 2017 Google LLC
559 *
560 * Licensed under the Apache License, Version 2.0 (the "License");
561 * you may not use this file except in compliance with the License.
562 * You may obtain a copy of the License at
563 *
564 *   http://www.apache.org/licenses/LICENSE-2.0
565 *
566 * Unless required by applicable law or agreed to in writing, software
567 * distributed under the License is distributed on an "AS IS" BASIS,
568 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
569 * See the License for the specific language governing permissions and
570 * limitations under the License.
571 */let pn=class pn extends class{}{constructor(i,a,o,c){super(),this.authCredentials=i,this.appCheckCredentials=a,this.connection=o,this.serializer=c,this.J=!1}X(){if(this.J)throw new U(eB,"The client has already been terminated.")}v(i,a,o){return this.X(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([c,w])=>this.connection.v(i,a,o,c,w)).catch(i=>{throw"FirebaseError"===i.name?(i.code===ez&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),i):new U(ej,i.toString())})}R(i,a,o,c){return this.X(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([w,x])=>this.connection.R(i,a,o,w,x,c)).catch(i=>{throw"FirebaseError"===i.name?(i.code===ez&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),i):new U(ej,i.toString())})}terminate(){this.J=!0}};async function yn(i,a){var o;let c=(o=i.serializer,new tt(["projects",o.databaseId.projectId,"databases",o.databaseId.database]).canonicalString()+"/documents"),w={writes:a.map(a=>(function(i,a){var o;let c;if(a instanceof Me)c={update:nn(i,a.key,a.value)};else if(a instanceof Ue)c={delete:Xe(i,a.key)};else if(a instanceof Le)c={update:nn(i,a.key,a.data),updateMask:function(i){let a=[];return i.fields.forEach(i=>a.push(i.canonicalString())),{fieldPaths:a}}(a.fieldMask)};else{if(!(a instanceof je))return b();c={verify:Xe(i,a.key)}}return a.fieldTransforms.length>0&&(c.updateTransforms=a.fieldTransforms.map(i=>(function(i,a){let o=a.transform;if(o instanceof Fe)return{fieldPath:a.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(o instanceof xe)return{fieldPath:a.field.canonicalString(),appendMissingElements:{values:o.elements}};if(o instanceof Se)return{fieldPath:a.field.canonicalString(),removeAllFromArray:{values:o.elements}};if(o instanceof qe)return{fieldPath:a.field.canonicalString(),increment:o.k};throw b()})(0,i))),a.precondition.isNone||(c.currentDocument=void 0!==(o=a.precondition).updateTime?{updateTime:Ge(i,o.updateTime.toTimestamp())}:void 0!==o.exists?{exists:o.exists}:b()),c})(i.serializer,a))};
571await i.v("Commit",c,w)}/**
572 * @license
573 * Copyright 2020 Google LLC
574 *
575 * Licensed under the Apache License, Version 2.0 (the "License");
576 * you may not use this file except in compliance with the License.
577 * You may obtain a copy of the License at
578 *
579 *   http://www.apache.org/licenses/LICENSE-2.0
580 *
581 * Unless required by applicable law or agreed to in writing, software
582 * distributed under the License is distributed on an "AS IS" BASIS,
583 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
584 * See the License for the specific language governing permissions and
585 * limitations under the License.
586 */let eG=new Map;let In=class In{constructor(i){var a,o;if(void 0===i.host){if(void 0!==i.ssl)throw new U(e$,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=i.host,this.ssl=null===(a=i.ssl)||void 0===a||a;if(this.credentials=i.credentials,this.ignoreUndefinedProperties=!!i.ignoreUndefinedProperties,this.cache=i.localCache,void 0===i.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==i.cacheSizeBytes&&i.cacheSizeBytes<1048576)throw new U(e$,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=i.cacheSizeBytes}!function(i,a,o,c){if(!0===a&&!0===c)throw new U(e$,`${i} and ${o} cannot be used together.`)}("experimentalForceLongPolling",i.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",i.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!i.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===i.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!i.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=ht(null!==(o=i.experimentalLongPollingOptions)&&void 0!==o?o:{}),function(i){if(void 0!==i.timeoutSeconds){if(isNaN(i.timeoutSeconds))throw new U(e$,`invalid long polling timeout: ${i.timeoutSeconds} (must not be NaN)`);if(i.timeoutSeconds<5)throw new U(e$,`invalid long polling timeout: ${i.timeoutSeconds} (minimum allowed value is 5)`);if(i.timeoutSeconds>30)throw new U(e$,`invalid long polling timeout: ${i.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!i.useFetchStreams}isEqual(i){var a,o;return this.host===i.host&&this.ssl===i.ssl&&this.credentials===i.credentials&&this.cacheSizeBytes===i.cacheSizeBytes&&this.experimentalForceLongPolling===i.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===i.experimentalAutoDetectLongPolling&&(a=this.experimentalLongPollingOptions,o=i.experimentalLongPollingOptions,a.timeoutSeconds===o.timeoutSeconds)&&this.ignoreUndefinedProperties===i.ignoreUndefinedProperties&&this.useFetchStreams===i.useFetchStreams}};let Tn=class Tn{constructor(i,a,o,c){this._authCredentials=i,this._appCheckCredentials=a,this._databaseId=o,this._app=c,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new In({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new U(eB,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(i){if(this._settingsFrozen)throw new U(eB,"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 In(i),void 0!==i.credentials&&(this._authCredentials=function(i){if(!i)return new Q;switch(i.type){case"firstParty":return new K(i.sessionIndex||"0",i.iamToken||null,i.authTokenFactory||null);case"provider":return i.client;default:throw new U(e$,"makeAuthCredentialsProvider failed due to invalid credential type")}}(i.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(i){let a=eG.get(i);a&&(y("ComponentProvider","Removing Datastore"),eG.delete(i),a.terminate())}(this),Promise.resolve()}};/**
587 * @license
588 * Copyright 2020 Google LLC
589 *
590 * Licensed under the Apache License, Version 2.0 (the "License");
591 * you may not use this file except in compliance with the License.
592 * You may obtain a copy of the License at
593 *
594 *   http://www.apache.org/licenses/LICENSE-2.0
595 *
596 * Unless required by applicable law or agreed to in writing, software
597 * distributed under the License is distributed on an "AS IS" BASIS,
598 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
599 * See the License for the specific language governing permissions and
600 * limitations under the License.
601 */let Dn=class Dn{constructor(i,a,o){this.converter=a,this._key=o,this.type="document",this.firestore=i}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new xn(this.firestore,this.converter,this._key.path.popLast())}withConverter(i){return new Dn(this.firestore,i,this._key)}};let Fn=class Fn{constructor(i,a,o){this.converter=a,this._query=o,this.type="query",this.firestore=i}withConverter(i){return new Fn(this.firestore,i,this._query)}};let xn=class xn extends Fn{constructor(i,a,o){super(i,a,new Ee(o)),this._path=o,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){let i=this._path.popLast();return i.isEmpty()?null:new Dn(this.firestore,null,new rt(i))}withConverter(i){return new xn(this.firestore,i,this._path)}};function Sn(i,a,...o){if(i=index_esm2017_getModularInstance(i),st("collection","path",a),i instanceof Tn){let c=tt.fromString(a,...o);return ot(c),new xn(i,null,c)}{if(!(i instanceof Dn||i instanceof xn))throw new U(e$,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");let c=i._path.child(tt.fromString(a,...o));return ot(c),new xn(i.firestore,null,c)}}/**
602 * @license
603 * Copyright 2020 Google LLC
604 *
605 * Licensed under the Apache License, Version 2.0 (the "License");
606 * you may not use this file except in compliance with the License.
607 * You may obtain a copy of the License at
608 *
609 *   http://www.apache.org/licenses/LICENSE-2.0
610 *
611 * Unless required by applicable law or agreed to in writing, software
612 * distributed under the License is distributed on an "AS IS" BASIS,
613 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
614 * See the License for the specific language governing permissions and
615 * limitations under the License.
616 */let Mn=class Mn{constructor(i){this._byteString=i}static fromBase64String(i){try{return new Mn(Vt.fromBase64String(i))}catch(i){throw new U(e$,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(i){return new Mn(Vt.fromUint8Array(i))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(i){return this._byteString.isEqual(i._byteString)}};/**
617 * @license
618 * Copyright 2020 Google LLC
619 *
620 * Licensed under the Apache License, Version 2.0 (the "License");
621 * you may not use this file except in compliance with the License.
622 * You may obtain a copy of the License at
623 *
624 *   http://www.apache.org/licenses/LICENSE-2.0
625 *
626 * Unless required by applicable law or agreed to in writing, software
627 * distributed under the License is distributed on an "AS IS" BASIS,
628 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
629 * See the License for the specific language governing permissions and
630 * limitations under the License.
631 */let Ln=class Ln{constructor(...i){for(let a=0;a<i.length;++a)if(0===i[a].length)throw new U(e$,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new nt(i)}isEqual(i){return this._internalPath.isEqual(i._internalPath)}};/**
632 * @license
633 * Copyright 2020 Google LLC
634 *
635 * Licensed under the Apache License, Version 2.0 (the "License");
636 * you may not use this file except in compliance with the License.
637 * You may obtain a copy of the License at
638 *
639 *   http://www.apache.org/licenses/LICENSE-2.0
640 *
641 * Unless required by applicable law or agreed to in writing, softw
641are
642 * distributed under the License is distributed on an "AS IS" BASIS,
643 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
644 * See the License for the specific language governing permissions and
645 * limitations under the License.
646 */let jn=class jn{constructor(i){this._methodName=i}};/**
647 * @license
648 * Copyright 2017 Google LLC
649 *
650 * Licensed under the Apache License, Version 2.0 (the "License");
651 * you may not use this file except in compliance with the License.
652 * You may obtain a copy of the License at
653 *
654 *   http://www.apache.org/licenses/LICENSE-2.0
655 *
656 * Unless required by applicable law or agreed to in writing, software
657 * distributed under the License is distributed on an "AS IS" BASIS,
658 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
659 * See the License for the specific language governing permissions and
660 * limitations under the License.
661 */let Bn=class Bn{constructor(i,a){if(!isFinite(i)||i<-90||i>90)throw new U(e$,"Latitude must be a number between -90 and 90, but was: "+i);if(!isFinite(a)||a<-180||a>180)throw new U(e$,"Longitude must be a number between -180 and 180, but was: "+a);this._lat=i,this._long=a}get latitude(){return this._lat}get longitude(){return this._long}isEqual(i){return this._lat===i._lat&&this._long===i._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(i){return It(this._lat,i._lat)||It(this._long,i._long)}};/**
662 * @license
663 * Copyright 2017 Google LLC
664 *
665 * Licensed under the Apache License, Version 2.0 (the "License");
666 * you may not use this file except in compliance with the License.
667 * You may obtain a copy of the License at
668 *
669 *   http://www.apache.org/licenses/LICENSE-2.0
670 *
671 * Unless required by applicable law or agreed to in writing, software
672 * distributed under the License is distributed on an "AS IS" BASIS,
673 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
674 * See the License for the specific language governing permissions and
675 * limitations under the License.
676 */let eK=/^__.*__$/;let zn=class zn{constructor(i,a,o){this.data=i,this.fieldMask=a,this.fieldTransforms=o}toMutation(i,a){return null!==this.fieldMask?new Le(i,this.data,this.fieldMask,a,this.fieldTransforms):new Me(i,this.data,a,this.fieldTransforms)}};function Gn(i){switch(i){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw b()}}let Kn=class Kn{constructor(i,a,o,c,w,x){this.settings=i,this.databaseId=a,this.serializer=o,this.ignoreUndefinedProperties=c,void 0===w&&this.tt(),this.fieldTransforms=w||[],this.fieldMask=x||[]}get path(){return this.settings.path}get et(){return this.settings.et}nt(i){return new Kn(Object.assign(Object.assign({},this.settings),i),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}rt(i){var a;let o=null===(a=this.path)||void 0===a?void 0:a.child(i),c=this.nt({path:o,st:!1});return c.it(i),c}ot(i){var a;let o=null===(a=this.path)||void 0===a?void 0:a.child(i),c=this.nt({path:o,st:!1});return c.tt(),c}ut(i){return this.nt({path:void 0,st:!0})}ct(i){return wr(i,this.settings.methodName,this.settings.ht||!1,this.path,this.settings.lt)}contains(i){return void 0!==this.fieldMask.find(a=>i.isPrefixOf(a))||void 0!==this.fieldTransforms.find(a=>i.isPrefixOf(a.field))}tt(){if(this.path)for(let i=0;i<this.path.length;i++)this.it(this.path.get(i))}it(i){if(0===i.length)throw this.ct("Document fields must not be empty");if(Gn(this.et)&&eK.test(i))throw this.ct('Document fields cannot begin and end with "__"')}};let Yn=class Yn{constructor(i,a,o){this.databaseId=i,this.ignoreUndefinedProperties=a,this.serializer=o||wn(i)}ft(i,a,o,c=!1){return new Kn({et:i,methodName:a,lt:o,path:nt.emptyPath(),st:!1,ht:c},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}};function ar(i){return!("object"!=typeof i||null===i||i instanceof Array||i instanceof Date||i instanceof xt||i instanceof Bn||i instanceof Mn||i instanceof Dn||i instanceof jn)}function hr(i,a,o){if(!ar(o)||!("object"==typeof o&&null!==o&&(Object.getPrototypeOf(o)===Object.prototype||null===Object.getPrototypeOf(o
676)))){let c=ut(o);throw"an object"===c?a.ct(i+" a custom object"):a.ct(i+" "+c)}}let eW=RegExp("[~\\*/\\[\\]]");function wr(i,a,o,c,w){let x=c&&!c.isEmpty(),k=void 0!==w,R=`Function ${a}() called with invalid data`;o&&(R+=" (via `toFirestore()`)"),R+=". ";let j="";return(x||k)&&(j+=" (found",x&&(j+=` in field ${c}`),k&&(j+=` in document ${w}`),j+=")"),new U(e$,R+i+j)}eN="9.23.0_lite",_registerComponent(new Component("firestore/lite",(i,{instanceIdentifier:a,options:o})=>{let c=i.getProvider("app").getImmediate(),w=new Tn(new W(i.getProvider("auth-internal")),new H(i.getProvider("app-check-internal")),function(i,a){if(!Object.prototype.hasOwnProperty.apply(i.options,["projectId"]))throw new U(e$,'"projectId" not provided in firebase.initializeApp.');return new X(i.options.projectId,a)}(c,a),c);return o&&w._setSettings(o),w},"PUBLIC").setMultipleInstances(!0)),registerVersion("firestore-lite","3.13.0",""),registerVersion("firestore-lite","3.13.0","esm2017");var eQ=o(2777),eY=o(2262),eX=o(9499);let wrap_idb_value_instanceOfAny=(i,a)=>a.some(a=>i instanceof a),eZ=new WeakMap,eJ=new WeakMap,e0=new WeakMap,e1=new WeakMap,e2=new WeakMap,e4={get(i,a,o){if(i instanceof IDBTransaction){if("done"===a)return eJ.get(i);if("objectStoreNames"===a)return i.objectStoreNames||e0.get(i);if("store"===a)return o.objectStoreNames[1]?void 0:o.objectStore(o.objectStoreNames[0])}return build_wrap_idb_value_wrap(i[a])},set:(i,a,o)=>(i[a]=o,!0),has:(i,a)=>i instanceof IDBTransaction&&("done"===a||"store"===a)||a in i};function build_wrap_idb_value_wrap(i){var a;if(i instanceof IDBRequest)return function(i){let a=new Promise((a,o)=>{let unlisten=()=>{i.removeEventListener("success",success),i.removeEventListener("error",error)},success=()=>{a(build_wrap_idb_value_wrap(i.result)),unlisten()},error=()=>{o(i.error),unlisten()};i.addEventListener("success",success),i.addEventListener("error",error)});return a.then(a=>{a instanceof IDBCursor&&eZ.set(a,i)}).catch(()=>{}),e2.set(a,i),a}(i);if(e1.has(i))return e1.get(i);
676let o="function"==typeof(a=i)?a!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(k||(k=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(a)?function(...i){return a.apply(wrap_idb_value_unwrap(this),i),build_wrap_idb_value_wrap(eZ.get(this))}:function(...i){return build_wrap_idb_value_wrap(a.apply(wrap_idb_value_unwrap(this),i))}:function(i,...o){let c=a.call(wrap_idb_value_unwrap(this),i,...o);return e0.set(c,i.sort?i.sort():[i]),build_wrap_idb_value_wrap(c)}:(a instanceof IDBTransaction&&function(i){if(eJ.has(i))return;let a=new Promise((a,o)=>{let unlisten=()=>{i.removeEventListener("complete",complete),i.removeEventListener("error",error),i.removeEventListener("abort",error)},complete=()=>{a(),unlisten()},error=()=>{o(i.error||new DOMException("AbortError","AbortError")),unlisten()};i.addEventListener("complete",complete),i.addEventListener("error",error),i.addEventListener("abort",error)});eJ.set(i,a)}(a),wrap_idb_value_instanceOfAny(a,x||(x=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(a,e4):a;return o!==i&&(e1.set(i,o),e2.set(o,i)),o}let wrap_idb_value_unwrap=i=>e2.get(i),e3=["get","getKey","getAll","getAllKeys","count"],e5=["put","add","delete","clear"],e6=new Map;function build_getMethod(i,a){if(!(i instanceof IDBDatabase&&!(a in i)&&"string"==typeof a))return;if(e6.get(a))return e6.get(a);let o=a.replace(/FromIndex$/,""),c=a!==o,w=e5.includes(o);if(!(o in(c?IDBIndex:IDBObjectStore).prototype)||!(w||e3.includes(o)))return;let method=async function(i,...a){let x=this.transaction(i,w?"readwrite":"readonly"),k=x.store;return c&&(k=k.index(a.shift())),(await Promise.all([k[o](...a),w&&x.done]))[0]};return e6.set(a,method),method}e4={...en=e4,get:(i,a,o)=>build_getMethod(i,a)||en.get(i,a,o),has:(i,a)=>!!build_getMethod(i,a)||en.has(i,a)};let e8="@firebase/installations",e7="0.6.4",e9=`w:${e7}`,tr="FIS_v2",tn=new ErrorFactory("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function isServerError(i){return i instanceof FirebaseError&&i.code.includes("request-failed")}/**
677 * @license
678 * Copyright 2019 Google LLC
679 *
680 * Licensed under the Apache License, Version 2.0 (the "License");
681 * you may not use this file except in compliance with the License.
682 * You may obtain a copy of the License at
683 *
684 *   http://www.apache.org/licenses/LICENSE-2.0
685 *
686 * Unless required by applicable law or agreed to in writing, software
687 * distributed under the License is distributed on an "AS IS" BASIS,
688 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
689 * See the License for the specific language governing permissions and
690 * limitations under the License.
691 */function getInstallationsEndpoint({projectId:i}){return`https://firebaseinstallations.googleapis.com/v1/projects/${i}/installations`}
691function extractAuthTokenInfoFromResponse(i){return{token:i.token,requestStatus:2,expiresIn:Number(i.expiresIn.replace("s","000")),creationTime:Date.now()}}async function getErrorFromResponse(i,a){let o=await a.json(),c=o.error;return tn.create("request-failed",{requestName:i,serverCode:c.code,serverMessage:c.message,serverStatus:c.status})}function getHeaders({apiKey:i}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":i})}async function retryIfServerError(i){let a=await i();return a.status>=500&&a.status<600?i():a}/**
692 * @license
693 * Copyright 2019 Google LLC
694 *
695 * Licensed under the Apache License, Version 2.0 (the "License");
696 * you may not use this file except in compliance with the License.
697 * You may obtain a copy of the License at
698 *
699 *   http://www.apache.org/licenses/LICENSE-2.0
700 *
701 * Unless required by applicable law or agreed to in writing, software
702 * distributed under the License is distributed on an "AS IS" BASIS,
703 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
704 * See the License for the specific language governing permissions and
705 * limitations under the License.
706 */async function createInstallationRequest({appConfig:i,heartbeatServiceProvider:a},{fid:o}){let c=getInstallationsEndpoint(i),w=getHeaders(i),x=a.getImmediate({optional:!0});if(x){let i=await x.getHeartbeatsHeader();i&&w.append("x-firebase-client",i)}let k={fid:o,authVersion:tr,appId:i.appId,sdkVersion:e9},R={method:"POST",headers:w,body:JSON.stringify(k)},j=await retryIfServerError(()=>fetch(c,R));if(j.ok){let i=await j.json(),a={fid:i.fid||o,registrationStatus:2,refreshToken:i.refreshToken,authToken:extractAuthTokenInfoFromRe
706sponse(i.authToken)};return a}throw await getErrorFromResponse("Create Installation",j)}/**
707 * @license
708 * Copyright 2019 Google LLC
709 *
710 * Licensed under the Apache License, Version 2.0 (the "License");
711 * you may not use this file except in compliance with the License.
712 * You may obtain a copy of the License at
713 *
714 *   http://www.apache.org/licenses/LICENSE-2.0
715 *
716 * Unless required by applicable law or agreed to in writing, software
717 * distributed under the License is distributed on an "AS IS" BASIS,
718 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
719 * See the License for the specific language governing permissions and
720 * limitations under the License.
721 */function sleep(i){return new Promise(a=>{setTimeout(a,i)})}/**
722 * @license
723 * Copyright 2019 Google LLC
724 *
725 * Licensed under the Apache License, Version 2.0 (the "License");
726 * you may not use this file except in compliance with the License.
727 * You may obtain a copy of the License at
728 *
729 *   http://www.apache.org/licenses/LICENSE-2.0
730 *
731 * Unless required by applicable law or agreed to in writing, software
732 * distributed under the License is distributed on an "AS IS" BASIS,
733 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
734 * See the License for the specific language governing permissions and
735 * limitations under the License.
736 */let ti=/^[cdef][\w-]{21}$/;/**
737 * @license
738 * Copyright 2019 Google LLC
739 *
740 * Licensed under the Apache License, Version 2.0 (the "License");
741 * you may not use this file except in compliance with the License.
742 * You may obtain a copy of the License at
743 *
744 *   http://www.apache.org/licenses/LICENSE-2.0
745 *
746 * Unless required by applicable law or agreed to in writing, software
747 * distributed under the License is distributed on an "AS IS" BASIS,
748 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
749 * See the License for the specific language governing permissions and
750 * limitations under the License.
751 */function getKey(i){return`${i.appName}!${i.appId}`}/**
752 * @license
753 * Copyright 2019 Google LLC
754 *
755 * Licensed under the Apache License, Version 2.0 (the "License");
756 * you may not use this file except in compliance with the License.
757 * You may obtain a copy of the License at
758 *
759 *   http://www.apache.org/licenses/LICENSE-2.0
760 *
761 * Unless required by applicable law or agreed to in writing, software
762 * distributed under the License is distributed on an "AS IS" BASIS,
763 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
764 * See the License for the specific language governing permissions and
765 * limitations under the License.
766 */let ta=new Map;function fidChanged(i,a){let o=getKey(i);callFidChangeCallbacks(o,a),function(i,a){let o=(!to&&"BroadcastChannel"in self&&((to=new BroadcastChannel("[Firebase] FID Change")).onmessage=i=>{callFidChangeCallbacks(i.data.key,i.data.fid)}),to);o&&o.postMessage({key:i,fid:a}),0===ta.size&&to&&(to.close(),to=null)}(o,a)}function callFidChangeCallbacks(i,a){let o=ta.get(i);if(o)for(let i of o)i(a)}let to=null,ts="firebase-installations-store",tl=null;function index_esm2017_getDbPromise(){return tl||(tl=function(i,a,{blocked:o,upgrade:c,blocking:w,terminated:x}={}){let k=indexedDB.open(i,1),R=build_wrap_idb_value_wrap(k);return c&&k.addEventListener("upgradeneeded",i=>{c(build_wrap_idb_value_wrap(k.result),i.oldVersion,i.newVersion,build_wrap_idb_value_wrap(k.transaction))}),o&&k.addEventListener("blocked",()=>o()),R.then(i=>{x&&i.addEventListener("close",()=>x()),w&&i.addEventListener("versionchange",()=>w())}).catch(()=>{}),R}("firebase-installations-database",0,{upgrade:(i,a)=>{0===a&&i.createObjectStore(ts)}})),tl}async function set(i,a){let o=getKey(i),c=await index_esm2017_getDbPromise(),w=c.transaction(ts,"readwrite"),x=w.objectStore(ts),k=await x.get(o);return await x.put(a,o),await w.done,k&&k.fid===a.fid||fidChanged(i,a.fid),a}async function remove(i){let a=getKey(i),o=await index_esm2017_getDbPromise(),c=o.transaction(ts,"readwrite");await c.objectStore(ts).delete(a),await c.done}async function update(i,a){let o=getKey(i),c=await index_esm2017_getDbPromise(),w=c.transaction(ts,"readwrite"),x=w.objectStore(ts),k=await x.get(o),R=a(k);return void 0===R?await x.delete(o):await x.put(R,o),await w.done,R&&(!k||k.fid!==R.fid)&&fidChanged(i,R.fid),R}/**
767 * @license
768 * Copyright 2019 Google LLC
769 *
770 * Licensed under the Apache License, Version 2.0 (the "License");
771 * you may not use this file except in compliance with the License.
772 * You may obtain a copy of the License at
773 *
774 *   http://www.apache.org/licenses/LICENSE-2.0
775 *
776 * Unless required by applicable law or agreed to in writing, software
777 * distributed under the License is distributed on an "AS IS" BASIS,
778 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
779 * See the License for the specific language governing permissions and
780 * limitations under the License.
781 */async function getInstallationEntry(i){let a;let o=await update(i.appConfig,o=>{let c=function(i){let a=i||{fid:function(){try{let i=new Uint8Array(17),a=self.crypto||self.msCrypto;a.getRandomValues(i),i[0]=112+i[0]%16;let o=function(i){let a=/**
782 * @license
783 * Copyright 2019 Google LLC
784 *
785 * Licensed under the Apache License, Version 2.0 (the "License");
786 * you may not use this file except in compliance with the License.
787 * You may obtain a copy of the License at
788 *
789 *   http://www.apache.org/licenses/LICENSE-2.0
790 *
791 * Unless required by applicable law or agreed to in writing, software
792 * distributed under the License is distributed on an "AS IS" BASIS,
793 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
794 * See the License for the specific language governing permissions and
795 * limitations under the License.
796 */function(i){let a=btoa(String.fromCharCode(...i));return a.replace(/\+/g,"-").replace(/\//g,"_")}(i);return a.substr(0,22)}(i);return ti.test(o)?o:""}catch(i){return""}}(),registrationStatus:0};return clearTimedOutRequest(a)}(o),w=function(i,a){if(0===a.registrationStatus){if(!navigator.onLine){let i=Promise.reject(tn.create("app-offline"));return{installationEntry:a,registrationPromise:i}}let o={fid:a.fid,registrationStatus:1,registrationTime:Date.now()},c=registerInstallation(i,o);return{installationEntry:o,registrationPromise:c}}return 1===a.registrationStatus?{installationEntry:a,registrationPromise:waitUntilFidRegistration(i)}:{installationEntry:a}}(i,c);return a=w.registrationPromise,w.installationEntry});return""===o.fid?{installationEntry:await a}:{installationEntry:o,registrationPromise:a}}async function registerInstallation(i,a){try{let o=await createInstallationRequest(i,a);return set(i.appConfig,o)}catch(o){throw isServerError(o)&&409===o.customData.serverCode?await remove(i.appConfig):await set(i.appConfig,{fid:a.fid,registrationStatus:0}),o}}async function waitUntilFidRegistration(i){let a=await updateInstallationRequest(i.appConfig);for(;1===a.registrationStatus;)await sleep(100),a=await updateInstallationRequest(i.appConfig);if(0===a.registrationStatus){let{installationEntry:a,registrationPromise:o}=await getInstallationEntry(i);return o||a}return a}function updateInstallationRequest(i){return update(i,i=>{if(!i)throw tn.create("installation-not-found");return clearTimedOutRequest(i)})}function clearTimedOutRequest(i){return 1===i.registrationStatus&&i.registrationTime+1e4<Date.now()?{fid:i.fid,registrationStatus:0}:i}/**
797 * @license
798 * Copyright 2019 Google LLC
799 *
800 * Licensed under the Apache License, Version 2.0 (the "License");
801 * you may not use this file except in compliance with the License.
802 * You may obtain a copy of the License at
803 *
804 *   http://www.apache.org/licenses/LICENSE-2.0
805 *
806 * Unless required by applicable law or agreed to in writing, software
807 * distributed under the License is distributed on an "AS IS" BASIS,
808 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
809 * See the License for the specific language governing permissions and
810 * limitations under the License.
811 */async function generateAuthTokenRequest({appConfig:i,heartbeatServiceProvider:a},o){let c=function(i,{fid:a}){return`${getInstallationsEndpoint(i)}/${a}/authTokens:generate`}(i,o),w=function(i,{refreshToken:a}){let o=getHeaders(i);return o.append("Authorization",`${tr} ${a}`),o}(i,o),x=a.getImmediate({optional:!0});if(x){let i=await x.getHeartbeatsHeader();i&&w.append("x-firebase-client",i)}let k={installation:{sdkVersion:e9,appId:i.appId}},R={method:"POST",headers:w,body:JSON.stringify(k)},j=await retryIfServerError(()=>fetch(c,R));
811if(j.ok){let i=await j.json(),a=extractAuthTokenInfoFromResponse(i);return a}throw await getErrorFromResponse("Generate Auth Token",j)}/**
812 * @license
813 * Copyright 2019 Google LLC
814 *
815 * Licensed under the Apache License, Version 2.0 (the "License");
816 * you may not use this file except in compliance with the License.
817 * You may obtain a copy of the License at
818 *
819 *   http://www.apache.org/licenses/LICENSE-2.0
820 *
821 * Unless required by applicable law or agreed to in writing, software
822 * distributed under the License is distributed on an "AS IS" BASIS,
823 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
824 * See the License for the specific language governing permissions and
825 * limitations under the License.
826 */async function refreshAuthToken(i,a=!1){let o;let c=await update(i.appConfig,c=>{var w;if(!isEntryRegistered(c))throw tn.create("not-registered");let x=c.authToken;if(!a&&2===(w=x).requestStatus&&!function(i){let a=Date.now();return a<i.creationTime||i.creationTime+i.expiresIn<a+36e5}(w))return c;if(1===x.requestStatus)return o=waitUntilAuthTokenRequest(i,a),c;{if(!navigator.onLine)throw tn.create("app-offline");let a=function(i){let a={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},i),{authToken:a})}(c);return o=fetchAuthTokenFromServer(i,a),a}}),w=o?await o:c.authToken;return w}async function waitUntilAuthTokenRequest(i,a){let o=await updateAuthTokenRequest(i.appConfig);for(;1===o.authToken.requestStatus;)await sleep(100),o=await updateAuthTokenRequest(i.appConfig);let c=o.authToken;return 0===c.requestStatus?refreshAuthToken(i,a):c}function updateAuthTokenRequest(i){return update(i,i=>{if(!isEntryRegistered(i))throw tn.create("not-registered");let a=i.authToken;return 1===a.requestStatus&&a.requestTime+1e4<Date.now()?Object.assign(Object.assign({},i),{authToken:{requestStatus:0}}):i})}async function fetchAuthTokenFromServer(i,a){try{let o=await generateAuthTokenRequest(i,a),c=Object.assign(Object.assign({},a),{authToken:o});return await set(i.appConfig,c),o}catch(o){if(isServerError(o)&&(401===o.customData.serverCode||404===o.customData.serverCode))await remove(i.appConfig);else{let o=Object.assign(Object.assign({},a),{authToken:{requestStatus:0}});await set(i.appConfig,o)}throw o}}function isEntryRegistered(i){return void 0!==i&&2===i.registrationStatus}/**
827 * @license
828 * Copyright 2019 Google LLC
829 *
830 * Licensed under the Apache License, Version 2.0 (the "License");
831 * you may not use this file except in compliance with the License.
832 * You may obtain a copy of the License at
833 *
834 *   http://www.apache.org/licenses/LICENSE-2.0
835 *
836 * Unless required by applicable law or agreed to in writing, software
837 * distributed under the License is distributed on an "AS IS" BASIS,
838 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
839 * See the License for the specific language governing permissions and
840 * limitations under the License.
841 */async function getId(i){let{installationEntry:a,registrationPromise:o}=await getInstallationEntry(i);return o?o.catch(console.error):refreshAuthToken(i).catch(console.error),a.fid}/**
842 * @license
843 * Copyright 2019 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 */async function getToken(i,a=!1){await completeInstallationRegistration(i);let o=await refreshAuthToken(i,a);return o.token}async function completeInstallationRegistration(i){let{registrationPromise:a}=await getInstallationEntry(i);a&&await a}function getMissingValueError(i){return tn.create("missing-app-config-values",{valueName:i})}/**
857 * @license
858 * Copyright 2020 Google LLC
859 *
860 * Licensed under the Apache License, Version 2.0 (the "License");
861 * you may not use this file except in compliance with the License.
862 * You may obtain a copy of the License at
863 *
864 *   http://www.apache.org/licenses/LICENSE-2.0
865 *
866 * Unless required by applicable law or agreed to in writing, software
867 * distributed under the License is distributed on an "AS IS" BASIS,
868 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
869 * See the License for the specific language governing permissions and
870 * limitations under the License.
871 */let tc="installations";_registerComponent(new Component(tc,i=>{let a=i.getProvider("app").getImmediate(),o=/**
872 * @license
873 * Copyright 2019 Google LLC
874 *
875 * Licensed under the Apache License, Version 2.0 (the "License");
876 * you may not use this file except in compliance with the License.
877 * You may obtain a copy of the License at
878 *
879 *   http://www.apache.org/licenses/LICENSE-2.0
880 *
881 * Unless required by applicable law or agreed to in writing, software
882 * distributed under the License is distributed on an "AS IS" BASIS,
883 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
884 * See the License for the specific language governing permissions and
885 * limitations under the License.
886 */function(i){if(!i||!i.options)throw getMissingValueError("App Configuration");if(!i.name)throw getMissingValueError("App Name");for(let a of["projectId","apiKey","appId"])if(!i.options[a])throw getMissingValueError(a);return{appName:i.name,projectId:i.options.projectId,apiKey:i.options.apiKey,appId:i.options.appId}}(a),c=index_esm2017_getProvider(a,"heartbeat");return{app:a,appConfig:o,heartbeatServiceProvider:c,_delete:()=>Promise.resolve()}},"PUBLIC")),_registerComponent(new Component("installations-internal",i=>{let a=i.getProvider("app").getImmediate(),o=index_esm2017_getProvider(a,tc).getImmediate();return{getId:()=>getId(o),getToken:i=>getToken(o,i)}},"PRIVATE")),registerVersion(e8,e7),registerVersion(e8,e7,"esm2017");/**
887 * @license
888 * Copyright 2019 Google LLC
889 *
890 * Licensed under the Apache License, Version 2.0 (the "License");
891 * you may not use this file except in compliance with the License.
892 * You may obtain a copy of the License at
893 *
894 *   http://www.apache.org/licenses/LICENSE-2.0
895 *
896 * Unless required by applicable law or agreed to in writing, software
897 * distributed under the License is distributed on an "AS IS" BASIS,
898 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
899 * See the License for the specific language governing permissions and
900 * limitations under the License.
901 */let tu="analytics",td="https://www.googletagmanager.com/gtag/js",th=new Logger("@firebase/analytics"),tf=new ErrorFactory("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","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}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invali
901d-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});/**
902 * @license
903 * Copyright 2019 Google LLC
904 *
905 * Licensed under the Apache License, Version 2.0 (the "License");
906 * you may not use this file except in compliance with the License.
907 * You may obtain a copy of the License at
908 *
909 *   http://www.apache.org/licenses/LICENSE-2.0
910 *
911 * Unless required by applicable law or agreed to in writing, software
912 * distributed under the License is distributed on an "AS IS" BASIS,
913 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
914 * See the License for the specific language governing permissions and
915 * limitations under the License.
916 */function createGtagTrustedTypesScriptURL(i){if(!i.startsWith(td)){let a=tf.create("invalid-gtag-resource",{gtagURL:i});return th.warn(a.message),""}return i}function promiseAllSettled(i){return Promise.all(i.map(i=>i.catch(i=>i)))}async function gtagOnConfig(i,a,o,c,w,x){let k=c[w];try{if(k)await a[k];else{let i=await promiseAllSettled(o),c=i.find(i=>i.measurementId===w);c&&await a[c.appId]}}catch(i){th.error(i)}i("config",w,x)}async function gtagOnEvent(i,a,o,c,w){try{let x=[];if(w&&w.send_to){let i=w.send_to;Array.isArray(i)||(i=[i]);let c=await promiseAllSettled(o);for(let o of i){let i=c.find(i=>i.measurementId===o),w=i&&a[i.appId];if(w)x.push(w);else{x=[];break}}}0===x.length&&(x=Object.values(a)),await Promise.all(x),i("event",c,w||{})}catch(i){th.error(i)}}let tp=new class{constructor(i={},a=1e3){this.throttleMetadata=i,this.intervalMillis=a}getThrottleMetadata(i){return this.throttleMetadata[i]}setThrottleMetadata(i,a){this.throttleMetadata[i]=a}deleteThrottleMetadata(i){delete this.throttleMetadata[i]}};async function fetchDynamicConfig(i){var a;let{appId:o,apiKey:c}=i,w={method:"GET",headers:new Headers({Accept:"application/json","x-goog-api-key":c})},x="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",o),k=await fetch(x,w);if(200!==k.status&&304!==k.status){let i="";try{let o=await k.json();(null===(a=o.error)||void 0===a?void 0:a.message)&&(i=o.error.message)}catch(i){}throw tf.create("config-fetch-failed",{httpStatus:k.status,responseMessage:i})}return k.json()}async function fetchDynamicConfigWithRetry(i,a=tp,o){let{appId:c,apiKey:w,measurementId:x}=i.options;if(!c)throw tf.create("no-app-id");if(!w){if(x)return{measurementId:x,appId:c};throw tf.create("no-api-key")}let k=a.getThrottleMetadata(c)||{backoffCount:0,throttleEndTimeMillis:Date.now()},R=new AnalyticsAbortSignal;return setTimeout(async()=>{R.abort()},void 0!==o?o:6e4),attemptFetchDynamicConfigWithRetry({appId:c,apiKey:w,measurementId:x},k,R,a)}async function attemptFetchDynamicConfigWithRetry(i,{throttleEndTimeMillis:a,backoffCount:o},c,w=tp){var x;let{appId:k,measurementId:R}=i;try{await new Promise((i,o)=>{let w=Math.max(a-Date.now(),0),x=setTimeout(i,w);c.addEventListener(()=>{clearTimeout(x),o(tf.create("fetch-throttle",{throttleEndTimeMillis:a}))})})}catch(i){if(R)return th.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${R} provided in the "measurementId" field in the local Firebase config. [${null==i?void 0:i.message}]`),{appId:k,measurementId:R};throw i}try{let a=await fetchDynamicConfig(i);return w.deleteThrottleMetadata(k),a}catch($){if(!function(i){if(!(i instanceof FirebaseError)||!i.customData)return!1;let a=Number(i.customData.httpStatus);return 429===a||500===a||503===a||504===a}($)){if(w.deleteThrottleMetadata(k),R)return th.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${R} provided in the "measurementId" field in the local Firebase config. [${null==$?void 0:$.message}]`),{appId:k,measurementId:R};throw $}let a=503===Number(null===(x=null==$?void 0:$.customData)||void 0===x?void 0:x.httpStatus)?calculateBackoffMillis(o,w.intervalMillis,30):calculateBackoffMillis(o,w.intervalMillis),j={throttleEndTimeMillis:Date.now()+a,backoffCount:o+1};return w.setThrottleMetadata(k,j),th.debug(`Calling attemptFetch again in ${a} millis`),attemptFetchDynamicConfigWithRetry(i,j,c,w)}}let AnalyticsAbortSignal=class AnalyticsAbortSignal{constructor(){this.listeners=[]}addEventListener(i){this.listeners.push(i)}
916abort(){this.listeners.forEach(i=>i())}};async function logEvent$1(i,a,o,c,w){if(w&&w.global){i("event",o,c);return}{let w=await a,x=Object.assign(Object.assign({},c),{send_to:w});i("event",o,x)}}/**
917 * @license
918 * Copyright 2020 Google LLC
919 *
920 * Licensed under the Apache License, Version 2.0 (the "License");
921 * you may not use this file except in compliance with the License.
922 * You may obtain a copy of the License at
923 *
924 *   http://www.apache.org/licenses/LICENSE-2.0
925 *
926 * Unless required by applicable law or agreed to in writing, software
927 * distributed under the License is distributed on an "AS IS" BASIS,
928 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
929 * See the License for the specific language governing permissions and
930 * limitations under the License.
931 */async function validateIndexedDB(){if(!index_esm2017_isIndexedDBAvailable())return th.warn(tf.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await index_esm2017_validateIndexedDBOpenable()}catch(i){return th.warn(tf.create("indexeddb-unavailable",{errorInfo:null==i?void 0:i.toString()}).message),!1}return!0}async function _initializeAnalytics(i,a,o,c,w,x,k){var $;let et=fetchDynamicConfigWithRetry(i);et.then(a=>{o[a.measurementId]=a.appId,i.options.measurementId&&a.measurementId!==i.options.measurementId&&th.warn(`The measurement ID in the local Firebase config (${i.options.measurementId}) does not match the measurement ID fetched from the server (${a.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(i=>th.error(i)),a.push(et);let er=validateIndexedDB().then(i=>i?c.getId():void 0),[en,ei]=await Promise.all([et,er]);!function(i){let a=window.document.getElementsByTagName("script");for(let o of Object.values(a))if(o.src&&o.src.includes(td)&&o.src.includes(i))return o;return null}(x)&&function(i,a){let o;let c=(window.trustedTypes&&(o=window.trustedTypes.createPolicy("firebase-js-sdk-policy",{createScriptURL:createGtagTrustedTypesScriptURL})),o),w=document.createElement("script"),x=`${td}?l=${i}&id=${a}`;w.src=c?null==c?void 0:c.createScriptURL(x):x,w.async=!0,document.head.appendChild(w)}(x,en.measurementId),j&&(w("consent","default",j),j=void 0),w("js",new Date);let eo=null!==($=null==k?void 0:k.config)&&void 0!==$?$:{};return eo.origin="firebase",eo.update=!0,null!=ei&&(eo.firebase_id=ei),w("config",en.measurementId,eo),R&&(w("set",R),R=void 0),en.measurementId}/**
932 * @license
933 * Copyright 2019 Google LLC
934 *
935 * Licensed under the Apache License, Version 2.0 (the "License");
936 * you may not use this file except in compliance with the License.
937 * You may obtain a copy of the License at
938 *
939 *   http://www.apache.org/licenses/LICENSE-2.0
940 *
941 * Unless required by applicable law or agreed to in writing, software
942 * distributed under the License is distributed on an "AS IS" BASIS,
943 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
944 * See the License for the specific language governing permissions and
945 * limitations under the License.
946 */let AnalyticsService=class AnalyticsService{constructor(i){this.app=i}_delete(){return delete tm[this.app.options.appId],Promise.resolve()}};let tm={},tg=[],ty={},tv="dataLayer",tb=!1;function getAnalytics(i=index_esm2017_getApp()){i=index_esm2017_getModularInstance(i);let a=index_esm2017_getProvider(i,tu);return a.isInitialized()?a.getImmediate():function(i,a={}){let o=index_esm2017_getProvider(i,tu);if(o.isInitialized()){let i=o.getImmediate();if(index_esm2017_deepEqual(a,o.getOptions()))return i;throw tf.create("already-initialized")}let c=o.initialize({options:a});return c}(i)}function index_esm2017_logEvent(i,a,o,c){i=index_esm2017_getModularInstance(i),logEvent$1(et,tm[i.app.options.appId],a,o,c).catch(i=>th.error(i))}let tw="@firebase/analytics",t_="0.10.0";_registerComponent(new Component(tu,(i,{options:a})=>{let o=i.getProvider("app").getImmediate(),c=i.getProvider("installations-internal").getImmediate();return function(i,a,o){!function(){let i=[];if(function(){let i="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof i&&void 0!==i.id}()&&i.push("This is a browser extension environment."),"undefined"!=typeof navigator&&navigator.cookieEnabled||i.push("Cookies are not available."),i.length>0){let a=i.map((i,a)=>`(${a+1}) ${i}`).join(" "),o=tf.create("invalid-analytics-context",{errorInfo:a});th.warn(o.message)}}();let c=i.options.appId;if(!c)throw tf.create("no-app-id");if(!i.options.apiKey){if(i.options.measurementId)th.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 ${i.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw tf.create("no-api-key")}if(null!=tm[c])throw tf.create("already-exists",{id:c});if(!tb){var w,x;let i,a;i=[],Array.isArray(window[tv])?i=window[tv]:window[tv]=i;let{wrappedGtag:o,gtagCore:c}=(w="gtag",a=function(...i){window[tv].push(arguments)},window[w]&&"function"==typeof window[w]&&(a=window[w]),window[w]=(x=a,async function(i,...a){try{if("event"===i){let[i,o]=a;await gtagOnEvent(x,tm,tg,i,o)}else if("config"===i){let[i,o]=a;await gtagOnConfig(x,tm,tg,ty,i,o)}else if("consent"===i){let[i]=a;x("consent","update",i)}else if("get"===i){let[i,o,c]=a;x("get",i,o,c)}else if("set"===i){let[i]=a;x("set",i)}else x(i,...a)}catch(i){th.error(i)}}),{gtagCore:a,wrappedGtag:window[w]});et=o,$=c,tb=!0}
946tm[c]=_initializeAnalytics(i,tg,ty,a,$,tv,o);let k=new AnalyticsService(i);return k}(o,c,a)},"PUBLIC")),_registerComponent(new Component("analytics-internal",function(i){try{let a=i.getProvider(tu).getImmediate();return{logEvent:(i,o,c)=>index_esm2017_logEvent(a,i,o,c)}}catch(i){throw tf.create("interop-component-reg-failed",{reason:i})}},"PRIVATE")),registerVersion(tw,t_),registerVersion(tw,t_,"esm2017");var tE=function(){function FirebaseAnalytics(i){(0,eQ.Z)(this,FirebaseAnalytics),(0,eX.Z)(this,"_app",void 0),(0,eX.Z)(this,"_analyticsInstance",void 0),this._app=i,this._analyticsInstance=null}return(0,eY.Z)(FirebaseAnalytics,[{key:"initialize",value:function(){this._analyticsInstance=getAnalytics(this._app)}},{key:"logEvent",value:function(i,a){this._isWindowAvailable()&&(this._analyticsInstance||this._initializeAnalytics(),index_esm2017_logEvent(this._analyticsInstance,i,a))}},{key:"_isWindowAvailable",value:function(){return!0}},{key:"_initializeAnalytics",value:function(){this._analyticsInstance=getAnalytics(this._app)}}]),FirebaseAnalytics}(),tS=o(29),tI=o(7794),tT=o.n(tI),tC=function(){var i;function FirestoreContactUsSubmissionRepository(i){(0,eQ.Z)(this,FirestoreContactUsSubmissionRepository),(0,eX.Z)(this,"db",void 0),(0,eX.Z)(this,"collectionRef",void 0),this.db=i,this.collectionRef=Sn(this.db,FirestoreContactUsSubmissionRepository.COLLECTION_CONTACT_US_SUBMISSIONS)}return(0,eY.Z)(FirestoreContactUsSubmissionRepository,[{key:"save",value:(i=(0,tS.Z)(tT().mark(function _callee(i){var a,o;return tT().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return a={replyTo:i.email,message:{subject:i.subject,text:i.message},createdAt:xt.now()},o=Sn(this.db,FirestoreContactUsSubmissionRepository.COLLECTION_CONTACT_US_SUBMISSIONS),c.prev=2,c.next=5,function(i,a){var o,c;let w=function(i,a,...o){if(i=index_esm2017_getModularInstance(i),1==arguments.length&&(a=Et.N()),st("doc","path",a),i instanceof Tn){let c=tt.fromString(a,...o);return it(c),new Dn(i,null,new rt(c))}{if(!(i instanceof Dn||i instanceof xn))throw new U(e$,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");let c=i._path.child(tt.fromString(a,...o));return it(c),new Dn(i.firestore,i instanceof xn?i.converter:null,new rt(c))}}(i=ct(i,xn)),x=(o=i.converter)?c&&(c.merge||c.mergeFields)?o.toFirestore(a,c):o.toFirestore(a):a,k=function(i,a,o,c,w,x={}){let k,R;let j=i.ft(x.merge||x.mergeFields?2:0,a,o,w);hr("Data must be an object, but it was:",j,c);let $=function cr(i,a){let o={};return function(i){for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a))return!1;return!0}(i)?a.path&&a.path.length>0&&a.fieldMask.push(a.path):Rt(i,(i,c)=>{let w=function ur(i,a){if(ar(i=index_esm2017_getModularInstance(i)))return hr("Unsupported field value:",a,i),cr(i,a);if(i instanceof jn)return function(i,a){if(!Gn(a.et))throw a.ct(`${i._methodName}() can only be used with update() and set()`);if(!a.path)throw a.ct(`${i._methodName}() is not currently supported inside arrays`);let o=i._toFieldTransform(a);o&&a.fieldTransforms.push(o)}(i,a),null;if(void 0===i&&a.ignoreUndefinedProperties)return null;if(a.path&&a.fieldMask.push(a.path),i instanceof Array){if(a.settings.st&&4!==a.et)throw a.ct("Nested arrays are not supported");return function(i,a){let o=[],c=0;for(let w of i){let i=ur(w,a.ut(c));null==i&&(i={nullValue:"NULL_VALUE"}),o.push(i),c++}return{arrayValue:{values:o}}}(i,a)}return function(i,a){var o,c,w,x;if(null===(i=index_esm2017_getModularInstance(i)))return{nullValue:"NULL_VALUE"};if("number"==typeof i){return o=a.serializer,"number"==typeof(c=i)&&Number.isInteger(c)&&!wt(c)&&c<=Number.MAX_SAFE_INTEGER&&c>=Number.MIN_SAFE_INTEGER?{integerValue:""+c}:function(i,a){if(i.useProto3Json){if(isNaN(a))return{doubleValue:"NaN"};if(a===1/0)return{doubleValue:"Infinity"};if(a===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:wt(a)?"-0":a}}(o,c)}if("boolean"==typeof i)return{booleanValue:i};if("string"==typeof i)return{stringValue:i};if(i instanceof Date){let o=xt.fromDate(i);return{timestampValue:Ge(a.serializer,o)}}if(i instanceof xt){let o=new xt(i.seconds,1e3*Math.floor(i.nanoseconds/1e3));return{timestampValue:Ge(a.serializer,o)}}if(i instanceof Bn)return{geoPointValue:{latitude:i.latitude,longitude:i.longitude}};if(i instanceof Mn){return{bytesValue:(w=a.serializer,x=i._byteString,w.useProto3Json?x.toBase64():x.toUint8Array())}}if(i instanceof Dn){let o=a.databaseId,c=i.firestore._databaseId;if(!c.isEqual(o))throw a.ct(`Document reference is for database ${c.projectId}/${c.database} but should be for database ${o.projectId}/${o.database}`);return{referenceValue:Je(i.firestore._databaseId||a.databaseId,i._key.path)}}throw a.ct(`Unsupported field value: ${ut(i)}`)}(i,a)}(c,a.rt(i));null!=w&&(o[i]=w)}),{mapValue:{fields:o}}}(c,j);if(x.merge)k=new ye(j.fieldMask),R=j.fieldTransforms;else if(x.mergeFields){let i=[];for(let c of x.mergeFields){let w=function(i,a,o){if((a=index_esm2017_getModularInstance(a))instanceof Ln)return a._internalPath;if("string"==typeof a)return function(i,a,o){if(a.search(eW)>=0)throw wr(`Invalid field path (${a}). Paths must not contain '~', '*', '/', '[', or ']'`,i,!1,void 0,o);try{return new Ln(...a.split("."))._internalPath}catch(c){throw wr(`Invalid field path (${a}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,i,!1,void 0,o)}}(i,a);throw wr("Field path arguments must be of type string or ",i,!1,void 0,o)}(a,c,o);if(!j.contains(w))throw new U(e$,`Field '${w}' is specified in your field mask but missing from your input data.`);(function(i,a){return i.some(i=>i.isEqual(a))})(i,w)||i.push(w)}k=new ye(i),R=j.fieldTransforms.filter(i=>k.covers(i.field))}else k=null,R=j.fieldTransforms;return new zn(new ge($),k,R)}(function(i){let a=i._freezeSettings(),o=wn(i._databaseId);return new Yn(i._databaseId,!!a.ignoreUndefinedProperties,o)}(i.firestore),"addDoc",w._key,x,null!==w.converter,{});return yn(function(i){var a,o,c,w,x,k,R;if(i._terminated)throw new U(eB,"The client has already been terminated.");
946if(!eG.has(i)){y("ComponentProvider","Initializing Datastore");let j=(a=i._databaseId,o=i.app.options.appId||"",c=i._persistenceKey,w=i._freezeSettings(),x=new J(a,o,c,w.host,w.ssl,w.experimentalForceLongPolling,w.experimentalAutoDetectLongPolling,ht(w.experimentalLongPollingOptions),w.useFetchStreams),new _t(x,fetch.bind(null))),$=wn(i._databaseId),et=(k=i._authCredentials,R=i._appCheckCredentials,new pn(k,R,j,$));eG.set(i,et)}/**
947 * @license
948 * Copyright 2018 Google LLC
949 *
950 * Licensed under the Apache License, Version 2.0 (the "License");
951 * you may not use this file except in compliance with the License.
952 * You may obtain a copy of the License at
953 *
954 *   http://www.apache.org/licenses/LICENSE-2.0
955 *
956 * Unless required by applicable law or agreed to in writing, software
957 * distributed under the License is distributed on an "AS IS" BASIS,
958 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
959 * See the License for the specific language governing permissions and
960 * limitations under the License.
961 */return eG.get(i)}(i.firestore),[k.toMutation(w._key,ke.exists(!1))]).then(()=>w)}(o,a);case 5:c.next=10;break;case 7:throw c.prev=7,c.t0=c.catch(2),Error("Error saving contact us submission.");case 10:return c.abrupt("return",i);case 11:case"end":return c.stop()}},_callee,this,[[2,7]])})),function(a){return i.apply(this,arguments)})}]),FirestoreContactUsSubmissionRepository}();(0,eX.Z)(tC,"COLLECTION_CONTACT_US_SUBMISSIONS","contactUsSubmissions");var tx=initializeApp({apiKey:"AIzaSyCJ7PGhuW5TrkaHAFC87Bk2K5FhGG8LAhk",authDomain:"nintendo-supply-prod.firebaseapp.com",projectId:"nintendo-supply-prod",storageBucket:"nintendo-supply-prod.appspot.com",messagingSenderId:"732046915424",appId:"1:732046915424:web:9cc12b08ed27deccb69005",measurementId:"G-TE885MXTYB"}),tk=function(i,a){let o="object"==typeof i?i:index_esm2017_getApp(),c=index_esm2017_getProvider(o,"firestore/lite").getImmediate({identifier:"string"==typeof i?i:"(default)"});if(!c._initialized){let i=getDefaultEmulatorHostnameAndPort("firestore");i&&function(i,a,o,c={}){var w;let x=(i=ct(i,Tn))._getSettings(),k=`${a}:${o}`;if("firestore.googleapis.com"!==x.host&&x.host!==k&&_("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),i._setSettings(Object.assign(Object.assign({},x),{host:k,ssl:!1})),c.mockUserToken){let a,o;if("string"==typeof c.mockUserToken)a=c.mockUserToken,o=d.MOCK_USER;else{a=/**
962 * @license
963 * Copyright 2021 Google LLC
964 *
965 * Licensed under the Apache License, Version 2.0 (the "License");
966 * you may not use this file except in compliance with the License.
967 * You may obtain a copy of the License at
968 *
969 *   http://www.apache.org/licenses/LICENSE-2.0
970 *
971 * Unless required by applicable law or agreed to in writing, software
972 * distributed under the License is distributed on an "AS IS" BASIS,
973 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
974 * See the License for the specific language governing permissions and
975 * limitations under the License.
976 */function(i,a){if(i.uid)throw Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let o=a||"demo-project",c=i.iat||0,w=i.sub||i.user_id;if(!w)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let x=Object.assign({iss:`https://securetoken.google.com/${o}`,aud:o,iat:c,exp:c+3600,auth_time:c,sub:w,user_id:w,firebase:{sign_in_provider:"custom",identities:{}}},i);return[base64urlEncodeWithoutPadding(JSON.stringify({alg:"none",type:"JWT"})),base64urlEncodeWithoutPadding(JSON.stringify(x)),""].join(".")}(c.mockUserToken,null===(w=i._app)||void 0===w?void 0:w.options.projectId);let x=c.mockUserToken.sub||c.mockUserToken.user_id;if(!x)throw new U(e$,"mockUserToken must contain 'sub' or 'user_id' field!");o=new d(x)}i._authCredentials=new z(new B(a,o))}}(c,...i)}return c}(tx),tA=new tE(tx),tD={contactUsSubmissionRepository:new tC(tk)}},7185:function(i,a,o){"use strict";o.r(a),o.d(a,{default:function(){return App}});var c=o(9499),w=o(6687),x=(0,o(9521).vJ)([':root{--primary-color:#DEC20A;--primary-variant-color:#E8D808;--secondary-color:#E60012;--secondary-variant-color:#AC000E;--primary-font-color:white;--secondary-font-color:#888888;--ad-z-index:0;--ad-zone-bg-color:#29292D;--ad-zone-in-article-gap:16px;--ad-zone-padding:16px;--ad-unit-display-max-width:300px;--ad-unit-header-max-width:728px;--ad-unit-leaderboard-max-width:728px;--article-body-color:#cccccc;--article-body-bold-color:var(--primary-font-color);--article-body-link-color:#3773e1;--article-body-active-color:var(--primary-color);--article-body-hover-color:#00469b;--article-body-visited-color:var(--article-body-link-color);--article-title-color:var(--primary-font-color);--article-title-link-color:var(--primary-font-color);--article-title-active-color:var(--primary-font-color);--article-title-hover-color:var(--primary-font-color);--article-title-visited-color:var(--primary-font-color);--button-filled-link-color:var(--primary-color);--button-filled-active-color:var(--primary-color);--button-filled-hover-color:var(--primary-color);--button-filled-visited-color:var(--primary-color);--button-outlined-primary-border-color:var(--primary-color);--button-outlined-primary-border-hover-color:var(--primary-variant-color);--button-outlined-primary-link-color:var(--primary-color);--button-outlined-primary-active-color:var(--primary-color);--button-outlined-primary-hover-color:var(--primary-variant-color);--button-outlined-primary-visited-color:var(--primary-color);--dialog-bg-color:#FFFFFF;--dialog-text-color:#000000;--dialog-z-index:100;--divider-color:#444444;--footer-bottom-font-color:var(--secondary-font-color);--footer-bottom-link-color:var(--secondary-font-color);--footer-bottom-visited-color:var(--secondary-font-color);--footer-bottom-active-color:var(--secondary-font-color);--footer-bottom-hover-color:var(--secondary-font-color);--h1-font-size-s:28px;--h1-font-size-l:38px;--h1-font-weight:500;--h1-line-height:1.25;--h2-font-size:19px;
976--h2-font-weight:400;--h2-line-height:1.25;--h3-font-size:19px;--h3-font-weight:500;--h3-line-height:1.25;--main-min-height:calc(100vh - 61px);--main-min-height-fallback:calc(100vh - 61px);--p-font-size:18px;--p-font-weight:400;--p-line-height:1.8;--text-area-background-color:#333333;--text-area-caret-color:#888888;--text-area-color:#FFFFFF;--text-area-placeholder-color:#888888;--text-area-font-size:16px;--text-area-line-height:1.5;--text-area-padding:12px;--text-field-background-color:#333333;--text-field-caret-color:#888888;--text-field-color:#FFFFFF;--text-field-placeholder-color:#888888;--text-field-font-size:16px;--text-field-line-height:1.5;--text-field-padding:12px;--article-time-color:#D3D3D3;--article-tag-color:#E6CE1E;--home-page-banner-section-header-color:var(--primary-font-color);--body-bg-color:#1e1e23;--header-bg-color:#1e1e23;--font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--policy-layout-h1-color:var(--primary-font-color);--policy-layout-h2-color:var(--primary-font-color);--policy-layout-h3-color:var(--primary-font-color);--policy-layout-body-color:var(--secondary-font-color);--policy-layout-a-link-color:var(--primary-color);--policy-layout-a-visited-color:var(--primary-color);--policy-layout-a-hover-color:var(--primary-color);--policy-layout-a-active-color:var(--primary-color);}*{font-family:var(--font-family);box-sizing:border-box;padding:0;margin:0;}html{font-size:18px;scroll-padding-top:61px;}html,body{width:100%;overflow:',";}body{margin:0;padding:0;background:var(--body-bg-color);}a{text-decoration:none;}.twitter-tweet,.twitter-tweet-rendered{margin-top:unset !important;margin-bottom:unset !important;}ins{z-index:var(--ad-z-index) !important;}.public-DraftEditorPlaceholder-root{position:absolute;}.DraftEditor-root{padding:var(--text-field-padding);font-size:var(--text-field-font-size);line-height:var(--text-field-line-height);background-color:var(--text-field-background-color);color:#FFFFFF;}.public-DraftEditor-content{height:150px;overflow:auto;caret-color:var(--text-field-caret-color);}.public-DraftEditorPlaceholder-inner{color:var(--text-field-placeholder-color);}a{color:#3773e1;}"],function(i){return i.showDialog&&"hidden"}),k=o(9008),R=o.n(k),j=o(7294),$=o(3815),et=o(2920);o(7967);var er=o(2037),en=o(5893);function ownKeys(i,a){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);a&&(c=c.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),o.push.apply(o,c)}return o}function App(i){var a,o,k,ei,eo,es,el,ec,eu,ed=i.Component,eh=i.pageProps,ef=null!==(a=eh.linkTags)&&void 0!==a?a:[],ep=[].concat((0,w.Z)(ef),[{rel:"canonical",href:null!==(o=null===(k=eh.seoData)||void 0===k?void 0:k.canonicalUrl)&&void 0!==o?o:"https://nintendosupply.com"}]),em=null!==(ei=null===(eo=eh.seoData)||void 0===eo?void 0:eo.metaTags)&&void 0!==ei?ei:[],eg=null!==(es=null===(el=eh.seoData)||void 0===el?void 0:el.structuredData)&&void 0!==es?es:[];return(0,j.useEffect)(function(){$.c.initialize()},[]),(0,en.jsxs)(en.Fragment,{children:[(0,en.jsxs)(R(),{children:[(0,en.jsx)("title",{children:null!==(ec=null===(eu=eh.seoData)||void 0===eu?void 0:eu.title)&&void 0!==ec?ec:"Nintendo Supply"}),ep.map(function(i){return(0,en.jsx)("link",{rel:i.rel,href:i.href,type:i.type,sizes:i.sizes},".$"+i.rel)}),em.map(function(i){var a;return(0,en.jsx)("meta",{name:i.name,property:i.property,content:i.content},null!==(a=i.property)&&void 0!==a?a:i.name)}),eg.map(function(i){return(0,en.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i)}},i["@type"])})]}),(0,en.jsx)(x,{}),(0,en.jsx)(ed,function(i){for(var a=1;a<arguments.length;a++){var o=null!=arguments[a]?arguments[a]:{};a%2?ownKeys(Object(o),!0).forEach(function(a){(0,c.Z)(i,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(o,a))})}return i}({},eh)),(0,en.jsx)(er.l,{type:"monumetric-pillar-left"}),(0,en.jsx)(er.l,{type:"monumetric-pillar-right"}),(0,en.jsx)(er.l,{type:"monumetric-footer-in-screen"}),(0,en.jsx)(et.Ix,{position:"bottom-center",autoClose:2e3,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!1,pauseOnHover:!0,theme:"light"}),(0,en.jsx)("link",{rel:"preload",as:"script",href:"//monu.delivery/site/9/4/7077b0-f5ff-46fb-ae0b-6c889d800ce0.js"}),(0,en.jsx)("noscript",{children:(0,en.jsx)("img",{alt:"",height:1,width:1,style:{display:"none"},src:"https://www.facebook.com/tr?id=1447104166037480&ev=PageView&noscript=1"})})]})}},3454:function(i,a,o){"use strict";var c,w;i.exports=(null==(c=o.g.process)?void 0:c.env)&&"object"==typeof(null==(w=o.g.process)?void 0:w.env)?o.g.process:o(7663)},6840:function(i,a,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return o(7185)}])},7967:function(){},7663:function(i){!function(){var a={229:function(i){var a,o,c,w=i.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(i){if(a===setTimeout)return setTimeout(i,0);if((a===defaultSetTimout||!a)&&setTimeout)return a=setTimeout,setTimeout(i,0);try{return a(i,0)}catch(o){try{return a.call(null,i,0)}catch(o){return a.call(this,i,0)}}}!function(){try{a="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(i){a=defaultSetTimout}try{o="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(i){o=defaultClearTimeout}}();var x=[],k=!1,R=-1;function cleanUpNextTick(){k&&c&&(k=!1,c.length?x=c.concat(x):R=-1,x.length&&drainQueue())}function drainQueue(){if(!k){var i=runTimeout(cleanUpNextTick);k=!0;for(var a=x.length;a;){for(c=x,x=[];++R<a;)c&&c[R].run();R=-1,a=x.length}c=null,k=!1,function(i){if(o===clearTimeout)return clearTimeout(i);if((o===defaultClearTimeout||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(i);try{o(i)}catch(a){try{return o.call(null,i)}catch(a){return o.call(this,i)}}}(i)}}function Item(i,a){this.fun=i,this.array=a}function noop(){}w.nextTick=function(i){var a=Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)a[o-1]=arguments[o];x.push(new Item(i,a)),1!==x.length||k||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},w.title="browser",w.browser=!0,w.env={},w.argv=[],w.version="",w.versions={},w.on=noop,w.addListener=noop,w.once=noop,w.off=noop,w.removeListener=noop,w.removeAllListeners=noop,w.emit=noop,w.prependListener=noop,w.prependOnceListener=noop,w.listeners=function(i){return[]},w.binding=function(i){throw Error("process.binding is not supported")},w.cwd=function(){return"/"},w.chdir=function(i){throw Error("process.chdir is not supported")},w.umask=function(){return 0}}},o={};function __nccwpck_require__(i){var c=o[i];if(void 0!==c)return c.exports;
vendor: 4,159 bytes, lines 976-983
976var w=o[i]={exports:{}},x=!0;try{a[i](w,w.exports,__nccwpck_require__),x=!1}finally{x&&delete o[i]}return w.exports}__nccwpck_require__.ab="//";var c=__nccwpck_require__(229);i.exports=c}()},9008:function(i,a,o){i.exports=o(2268)},9921:function(i,a){"use strict";/** @license React v16.13.1
977 * react-is.production.min.js
978 *
979 * Copyright (c) Facebook, Inc. and its affiliates.
980 *
981 * This source code is licensed under the MIT license found in the
982 * LICENSE file in the root directory of this source tree.
983 */var o="function"==typeof Symbol&&Symbol.for,c=o?Symbol.for("react.element"):60103,w=o?Symbol.for("react.portal"):60106,x=o?Symbol.for("react.fragment"):60107,k=o?Symbol.for("react.strict_mode"):60108,R=o?Symbol.for("react.profiler"):60114,j=o?Symbol.for("react.provider"):60109,$=o?Symbol.for("react.context"):60110,et=o?Symbol.for("react.async_mode"):60111,er=o?Symbol.for("react.concurrent_mode"):60111,en=o?Symbol.for("react.forward_ref"):60112,ei=o?Symbol.for("react.suspense"):60113,eo=o?Symbol.for("react.suspense_list"):60120,es=o?Symbol.for("react.memo"):60115,el=o?Symbol.for("react.lazy"):60116,ec=o?Symbol.for("react.block"):60121,eu=o?Symbol.for("react.fundamental"):60117,ed=o?Symbol.for("react.responder"):60118,eh=o?Symbol.for("react.scope"):60119;function z(i){if("object"==typeof i&&null!==i){var a=i.$$typeof;switch(a){case c:switch(i=i.type){case et:case er:case x:case R:case k:case ei:return i;default:switch(i=i&&i.$$typeof){case $:case en:case el:case es:case j:return i;default:return a}}case w:return a}}}function A(i){return z(i)===er}a.AsyncMode=et,a.ConcurrentMode=er,a.ContextConsumer=$,a.ContextProvider=j,a.Element=c,a.ForwardRef=en,a.Fragment=x,a.Lazy=el,a.Memo=es,a.Portal=w,a.Profiler=R,a.StrictMode=k,a.Suspense=ei,a.isAsyncMode=function(i){return A(i)||z(i)===et},a.isConcurrentMode=A,a.isContextConsumer=function(i){return z(i)===$},a.isContextProvider=function(i){return z(i)===j},a.isElement=function(i){return"object"==typeof i&&null!==i&&i.$$typeof===c},a.isForwardRef=function(i){return z(i)===en},a.isFragment=function(i){return z(i)===x},a.isLazy=function(i){return z(i)===el},a.isMemo=function(i){return z(i)===es},a.isPortal=function(i){return z(i)===w},a.isProfiler=function(i){return z(i)===R},a.isStrictMode=function(i){return z(i)===k},a.isSuspense=function(i){return z(i)===ei},a.isValidElementType=function(i){return"string"==typeof i||"function"==typeof i||i===x||i===er||i===R||i===k||i===ei||i===eo||"object"==typeof i&&null!==i&&(i.$$typeof===el||i.$$typeof===es||i.$$typeof===j||i.$$typeof===$||i.$$typeof===en||i.$$typeof===eu||i.$$typeof===ed||i.$$typeof===eh||i.$$typeof===ec)},a.typeOf=z},9864:function(i,a,o){"use strict";i.exports=o(9921)},6774:function(i){i.exports=function(i,a,o,c){var w=o?o.call(c,i,a):void 0;if(void 0!==w)return!!w;if(i===a)return!0;if("object"!=typeof i||!i||"object"!=typeof a||!a)return!1;var x=Object.keys(i),k=Object.keys(a);if(x.length!==k.length)return!1;for(var R=Object.prototype.hasOwnProperty.bind(a),j=0;j<x.length;j++){var $=x[j];if(!R($))return!1;var et=i[$],er=a[$];if(!1===(w=o?o.call(c,et,er,$):void 0)||void 0===w&&et!==er)return!1}return!0}},9521:function(i,a,o){"use strict";o.d(a,{vJ:function(){return $e},iv:function(){return Ae},ZP:function(){return eV},F4:function(){return We}});var c,w,x=o(9864),k=o(7294),R=o(6774),j=o.n(R),stylis_browser_esm=function(i){function X(i,a,o){var c=a.trim().split(k);a=c;var w=c.length,x=i.length;switch(x){case 0:case 1:var R=0;for(i=0===x?"":i[0]+" ";R<w;++R)a[R]=Z(i,a[R],o).trim();break;default:var j=R=0;for(a=[];R<w;++R)for(var $=0;$<x;++$)a[j++]=Z(i[$]+" ",c[R],o).trim()}return a}function Z(i,a,o){var c=a.charCodeAt(0);switch(33>c&&(c=(a=a.trim()).charCodeAt(0)),c){case 38:return a.replace(R,"$1"+i.trim());case 58:return i.trim()+a.replace(R,"$1"+i.trim());default:if(0<1*o&&0<a.indexOf("\f"))return a.replace(R,(58===i.charCodeAt(0)?"":"$1")+i.trim())}return i+a}function P(i,a,o,k){var R=i+";",j=2*a+3*o+4*k;if(944===j){i=R.indexOf(":",9)+1;var $=R.substring(i,R.length-1).trim();return $=R.substring(0,i).trim()+$+";",1===ef||2===ef&&L($,1)?"-webkit-"+$+$:$}if(0===ef||2===ef&&!L(R,1))return R;
vendor: 4,231 bytes, line 983
983switch(j){case 1015:return 97===R.charCodeAt(10)?"-webkit-"+R+R:R;case 951:return 116===R.charCodeAt(3)?"-webkit-"+R+R:R;case 963:return 110===R.charCodeAt(5)?"-webkit-"+R+R:R;case 1009:if(100!==R.charCodeAt(4))break;case 969:case 942:return"-webkit-"+R+R;case 978:return"-webkit-"+R+"-moz-"+R+R;case 1019:case 983:return"-webkit-"+R+"-moz-"+R+"-ms-"+R+R;case 883:if(45===R.charCodeAt(8))return"-webkit-"+R+R;if(0<R.indexOf("image-set(",11))return R.replace(ec,"$1-webkit-$2")+R;break;case 932:if(45===R.charCodeAt(4))switch(R.charCodeAt(5)){case 103:return"-webkit-box-"+R.replace("-grow","")+"-webkit-"+R+"-ms-"+R.replace("grow","positive")+R;case 115:return"-webkit-"+R+"-ms-"+R.replace("shrink","negative")+R;case 98:return"-webkit-"+R+"-ms-"+R.replace("basis","preferred-size")+R}return"-webkit-"+R+"-ms-"+R+R;case 964:return"-webkit-"+R+"-ms-flex-"+R+R;case 1023:if(99!==R.charCodeAt(8))break;return"-webkit-box-pack"+($=R.substring(R.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+R+"-ms-flex-pack"+$+R;case 1005:return w.test(R)?R.replace(c,":-webkit-")+R.replace(c,":-moz-")+R:R;case 1e3:switch(a=($=R.substring(13).trim()).indexOf("-")+1,$.charCodeAt(0)+$.charCodeAt(a)){case 226:$=R.replace(er,"tb");break;case 232:$=R.replace(er,"tb-rl");break;case 220:$=R.replace(er,"lr");break;default:return R}return"-webkit-"+R+"-ms-"+$+R;case 1017:if(-1===R.indexOf("sticky",9))break;case 975:switch(a=(R=i).length-10,j=($=(33===R.charCodeAt(a)?R.substring(0,a):R).substring(i.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|$.charCodeAt(7))){case 203:if(111>$.charCodeAt(8))break;case 115:R=R.replace($,"-webkit-"+$)+";"+R;break;case 207:case 102:R=R.replace($,"-webkit-"+(102<j?"inline-":"")+"box")+";"+R.replace($,"-webkit-"+$)+";"+R.replace($,"-ms-"+$+"box")+";"+R}return R+";";case 938:if(45===R.charCodeAt(5))switch(R.charCodeAt(6)){case 105:return $=R.replace("-items",""),"-webkit-"+R+"-webkit-box-"+$+"-ms-flex-"+$+R;case 115:return"-webkit-"+R+"-ms-flex-item-"+R.replace(eo,"")+R;default:return"-webkit-"+R+"-ms-flex-line-pack"+R.replace("align-content","").replace(eo,"")+R}break;case 973:case 989:if(45!==R.charCodeAt(3)||122===R.charCodeAt(4))break;case 931:case 953:if(!0===el.test(i))return 115===($=i.substring(i.indexOf(":")+1)).charCodeAt(0)?P(i.replace("stretch","fill-available"),a,o,k).replace(":fill-available",":stretch"):R.replace($,"-webkit-"+$)+R.replace($,"-moz-"+$.replace("fill-",""))+R;break;case 962:if(R="-webkit-"+R+(102===R.charCodeAt(5)?"-ms-"+R:"")+R,211===o+k&&105===R.charCodeAt(13)&&0<R.indexOf("transform",10))return R.substring(0,R.indexOf(";",27)+1).replace(x,"$1-webkit-$2")+R}return R}function L(i,a){var o=i.indexOf(1===a?":":"{"),c=i.substring(0,3!==a?o:10);return o=i.substring(o+1,i.length-1),ey(2!==a?c:c.replace(es,"$1"),o,a)}function ea(i,a){var o=P(a,a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2));return o!==a+";"?o.replace(ei," or ($1)").substring(4):"("+a+")"}function H(i,a,o,c,w,x,k,R,j,$){for(var et,er=0,en=a;er<eg;++er)switch(et=em[er].call(B,i,en,o,c,w,x,k,R,j,$)){case void 0:case!1:case!0:case null:break;default:en=et}if(en!==a)return en}function U(i){return void 0!==(i=i.prefix)&&(ey=null,i?"function"!=typeof i?ef=1:(ef=2,ey=i):ef=0),U}function B(i,c){var w=i;if(33>w.charCodeAt(0)&&(w=w.trim()),w=[w],0<eg){var x=H(-1,c,w,w,ed,eu,0,0,0,0);void 0!==x&&"string"==typeof x&&(c=x)}var k=function M(i,c,w,x,k){for(var R,er,ei,eo,es,el=0,ec=0,em=0,ey=0,eb=0,ew=0,e_=ei=R=0,eE=0,eS=0,eI=0,eT=0,eC=w.length,ex=eC-1,ek="",eA="",eD="",eO="";eE<eC;){if(er=w.charCodeAt(eE),eE===ex&&0!==ec+ey+em+el&&(0!==ec&&(er=47===ec?10:47),ey=em=el=0,eC++,ex++),0===ec+ey+em+el){if(eE===ex&&(0<eS&&(ek=ek.replace(o,"")),0<ek.trim().length)){switch(er){case 32:case 9:case 59:case 13:case 10:break;default:ek+=w.charAt(eE)}er=59}switch(er){case 123:for(R=(ek=ek.trim()).charCodeAt(0),ei=1,eT=++eE;eE<eC;){switch(er=w.charCodeAt(eE)){case 123:ei++;break;case 125:ei--;break;case 47:switch(er=w.charCodeAt(eE+1)){case 42:case 47:e:{for(e_=eE+1;e_<ex;++e_)switch(w.charCodeAt(e_)){case 47:if(42===er&&42===w.charCodeAt(e_-1)&&eE+2!==e_){eE=e_+1;break e}break;case 10:if(47===er){eE=e_+1;break e}}eE=e_}}break;case 91:er++;case 40:er++;case 34:case 39:for(;
vendor: 5,232 bytes, line 983
983eE++<ex&&w.charCodeAt(eE)!==er;);}if(0===ei)break;eE++}if(ei=w.substring(eT,eE),0===R&&(R=(ek=ek.replace(a,"").trim()).charCodeAt(0)),64===R){switch(0<eS&&(ek=ek.replace(o,"")),er=ek.charCodeAt(1)){case 100:case 109:case 115:case 45:eS=c;break;default:eS=ep}if(eT=(ei=M(c,eS,ei,er,k+1)).length,0<eg&&(es=H(3,ei,eS=X(ep,ek,eI),c,ed,eu,eT,er,k,x),ek=eS.join(""),void 0!==es&&0===(eT=(ei=es.trim()).length)&&(er=0,ei="")),0<eT)switch(er){case 115:ek=ek.replace(en,ea);case 100:case 109:case 45:ei=ek+"{"+ei+"}";break;case 107:ei=(ek=ek.replace(j,"$1 $2"))+"{"+ei+"}",ei=1===ef||2===ef&&L("@"+ei,3)?"@-webkit-"+ei+"@"+ei:"@"+ei;break;default:ei=ek+ei,112===x&&(eA+=ei,ei="")}else ei=""}else ei=M(c,X(c,ek,eI),ei,x,k+1);eD+=ei,ei=eI=eS=e_=R=0,ek="",er=w.charCodeAt(++eE);break;case 125:case 59:if(1<(eT=(ek=(0<eS?ek.replace(o,""):ek).trim()).length))switch(0===e_&&(45===(R=ek.charCodeAt(0))||96<R&&123>R)&&(eT=(ek=ek.replace(" ",":")).length),0<eg&&void 0!==(es=H(1,ek,c,i,ed,eu,eA.length,x,k,x))&&0===(eT=(ek=es.trim()).length)&&(ek="\x00\x00"),R=ek.charCodeAt(0),er=ek.charCodeAt(1),R){case 0:break;case 64:if(105===er||99===er){eO+=ek+w.charAt(eE);break}default:58!==ek.charCodeAt(eT-1)&&(eA+=P(ek,R,er,ek.charCodeAt(2)))}eI=eS=e_=R=0,ek="",er=w.charCodeAt(++eE)}}switch(er){case 13:case 10:47===ec?ec=0:0===1+R&&107!==x&&0<ek.length&&(eS=1,ek+="\x00"),0<eg*ev&&H(0,ek,c,i,ed,eu,eA.length,x,k,x),eu=1,ed++;break;case 59:case 125:if(0===ec+ey+em+el){eu++;break}default:switch(eu++,eo=w.charAt(eE),er){case 9:case 32:if(0===ey+el+ec)switch(eb){case 44:case 58:case 9:case 32:eo="";break;default:32!==er&&(eo=" ")}break;case 0:eo="\\0";break;case 12:eo="\\f";break;case 11:eo="\\v";break;case 38:0===ey+ec+el&&(eS=eI=1,eo="\f"+eo);break;case 108:if(0===ey+ec+el+eh&&0<e_)switch(eE-e_){case 2:112===eb&&58===w.charCodeAt(eE-3)&&(eh=eb);case 8:111===ew&&(eh=ew)}break;case 58:0===ey+ec+el&&(e_=eE);break;case 44:0===ec+em+ey+el&&(eS=1,eo+="\r");break;case 34:case 39:0===ec&&(ey=ey===er?0:0===ey?er:ey);break;case 91:0===ey+ec+em&&el++;break;case 93:0===ey+ec+em&&el--;break;case 41:0===ey+ec+el&&em--;break;case 40:0===ey+ec+el&&(0===R&&(2*eb+3*ew==533||(R=1)),em++);break;case 64:0===ec+em+ey+el+e_+ei&&(ei=1);break;case 42:case 47:if(!(0<ey+el+em))switch(ec){case 0:switch(2*er+3*w.charCodeAt(eE+1)){case 235:ec=47;break;case 220:eT=eE,ec=42}break;case 42:47===er&&42===eb&&eT+2!==eE&&(33===w.charCodeAt(eT+2)&&(eA+=w.substring(eT,eE+1)),eo="",ec=0)}}0===ec&&(ek+=eo)}ew=eb,eb=er,eE++}if(0<(eT=eA.length)){if(eS=c,0<eg&&void 0!==(es=H(2,eA,eS,i,ed,eu,eT,x,k,x))&&0===(eA=es).length)return eO+eA+eD;if(eA=eS.join(",")+"{"+eA+"}",0!=ef*eh){switch(2!==ef||L(eA,2)||(eh=0),eh){case 111:eA=eA.replace(et,":-moz-$1")+eA;break;case 112:eA=eA.replace($,"::-webkit-input-$1")+eA.replace($,"::-moz-$1")+eA.replace($,":-ms-input-$1")+eA}eh=0}}return eO+eA+eD}(ep,w,c,0,0);return 0<eg&&void 0!==(x=H(-2,k,w,w,ed,eu,k.length,0,0,0))&&(k=x),eh=0,eu=ed=1,k}var a=/^\0+/g,o=/[\0\r\f]/g,c=/: */g,w=/zoo|gra/,x=/([,: ])(transform)/g,k=/,\r+?/g,R=/([\t\r\n ])*\f?&/g,j=/@(k\w+)\s*(\S*)\s*/,$=/::(place)/g,et=/:(read-only)/g,er=/[svh]\w+-[tblr]{2}/,en=/\(\s*(.*)\s*\)/g,ei=/([\s\S]*?);/g,eo=/-self|flex-/g,es=/[^]*?(:[rp][el]a[\w-]+)[^]*/,el=/stretch|:\s*\w+\-(?:conte|avail)/,ec=/([^-])(image-set\()/,eu=1,ed=1,eh=0,ef=1,ep=[],em=[],eg=0,ey=null,ev=0;return B.use=function T(i){switch(i){case void 0:case null:eg=em.length=0;break;default:if("function"==typeof i)em[eg++]=i;else if("object"==typeof i)for(var a=0,o=i.length;a<o;++a)T(i[a]);else ev=0|!!i}return T},B.set=U,void 0!==i&&U(i),B},$={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},et=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
983ine|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,er=(c=Object.create(null),function(i){return void 0===c[i]&&(c[i]=et.test(i)||111===i.charCodeAt(0)&&110===i.charCodeAt(1)&&91>i.charCodeAt(2)),c[i]}),en=o(8679),ei=o.n(en),eo=o(3454);function y(){return(y=Object.assign||function(i){for(var a=1;a<arguments.length;a++){var o=arguments[a];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(i[c]=o[c])}return i}).apply(this,arguments)}var v=function(i,a){for(var o=[i[0]],c=0,w=a.length;c<w;c+=1)o.push(a[c],i[c+1]);return o},g=function(i){return null!==i&&"object"==typeof i&&"[object Object]"===(i.toString?i.toString():Object.prototype.toString.call(i))&&!(0,x.typeOf)(i)},es=Object.freeze([]),el=Object.freeze({});function E(i){return"function"==typeof i}function b(i){return i.displayName||i.name||"Component"}function _(i){return i&&"string"==typeof i.styledComponentId}var ec=void 0!==eo&&void 0!==eo.env&&(eo.env.REACT_APP_SC_ATTR||eo.env.SC_ATTR)||"data-styled",eu="undefined"!=typeof window&&"HTMLElement"in window,ed=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==eo&&void 0!==eo.env&&(void 0!==eo.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==eo.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==eo.env.REACT_APP_SC_DISABLE_SPEEDY&&eo.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==eo.env.SC_DISABLE_SPEEDY&&""!==eo.env.SC_DISABLE_SPEEDY&&"false"!==eo.env.SC_DISABLE_SPEEDY&&eo.env.SC_DISABLE_SPEEDY)),eh={};function D(i){for(var a=arguments.length,o=Array(a>1?a-1:0),c=1;c<a;
vendor: 6,843 bytes, line 983
983c++)o[c-1]=arguments[c];throw Error("An error occurred. See https://git.io/JUIaE#"+i+" for more information."+(o.length>0?" Args: "+o.join(", "):""))}var ef=function(){function e(i){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=i}var i=e.prototype;return i.indexOfGroup=function(i){for(var a=0,o=0;o<i;o++)a+=this.groupSizes[o];return a},i.insertRules=function(i,a){if(i>=this.groupSizes.length){for(var o=this.groupSizes,c=o.length,w=c;i>=w;)(w<<=1)<0&&D(16,""+i);this.groupSizes=new Uint32Array(w),this.groupSizes.set(o),this.length=w;for(var x=c;x<w;x++)this.groupSizes[x]=0}for(var k=this.indexOfGroup(i+1),R=0,j=a.length;R<j;R++)this.tag.insertRule(k,a[R])&&(this.groupSizes[i]++,k++)},i.clearGroup=function(i){if(i<this.length){var a=this.groupSizes[i],o=this.indexOfGroup(i),c=o+a;this.groupSizes[i]=0;for(var w=o;w<c;w++)this.tag.deleteRule(o)}},i.getGroup=function(i){var a="";if(i>=this.length||0===this.groupSizes[i])return a;for(var o=this.groupSizes[i],c=this.indexOfGroup(i),w=c+o,x=c;x<w;x++)a+=this.tag.getRule(x)+"/*!sc*/\n";return a},e}(),ep=new Map,em=new Map,eg=1,V=function(i){if(ep.has(i))return ep.get(i);for(;em.has(eg);)eg++;var a=eg++;return ep.set(i,a),em.set(a,i),a},z=function(i,a){a>=eg&&(eg=a+1),ep.set(i,a),em.set(a,i)},ey="style["+ec+'][data-styled-version="5.3.11"]',ev=RegExp("^"+ec+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(i,a,o){for(var c,w=o.split(","),x=0,k=w.length;x<k;x++)(c=w[x])&&i.registerName(a,c)},F=function(i,a){for(var o=(a.textContent||"").split("/*!sc*/\n"),c=[],w=0,x=o.length;w<x;w++){var k=o[w].trim();if(k){var R=k.match(ev);if(R){var j=0|parseInt(R[1],10),$=R[2];0!==j&&(z($,j),L(i,$,R[3]),i.getTag().insertRules(j,c)),c.length=0}else c.push(k)}}},Y=function(){return o.nc},q=function(i){var a=document.head,o=i||a,c=document.createElement("style"),w=function(i){for(var a=i.childNodes,o=a.length;o>=0;o--){var c=a[o];if(c&&1===c.nodeType&&c.hasAttribute(ec))return c}}(o),x=void 0!==w?w.nextSibling:null;c.setAttribute(ec,"active"),c.setAttribute("data-styled-version","5.3.11");var k=Y();return k&&c.setAttribute("nonce",k),o.insertBefore(c,x),c},eb=function(){function e(i){var a=this.element=q(i);a.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,c=a.length;o<c;o++){var w=a[o];if(w.ownerNode===i)return w}D(17)}(a),this.length=0}var i=e.prototype;return i.insertRule=function(i,a){try{return this.sheet.insertRule(a,i),this.length++,!0}catch(i){return!1}},i.deleteRule=function(i){this.sheet.deleteRule(i),this.length--},i.getRule=function(i){var a=this.sheet.cssRules[i];return void 0!==a&&"string"==typeof a.cssText?a.cssText:""},e}(),ew=function(){function e(i){var a=this.element=q(i);this.nodes=a.childNodes,this.length=0}var i=e.prototype;return i.insertRule=function(i,a){if(i<=this.length&&i>=0){var o=document.createTextNode(a),c=this.nodes[i];return this.element.insertBefore(o,c||null),this.length++,!0}return!1},i.deleteRule=function(i){this.element.removeChild(this.nodes[i]),this.length--},i.getRule=function(i){return i<this.length?this.nodes[i].textContent:""},e}(),e_=function(){function e(i){this.rules=[],this.length=0}var i=e.prototype;return i.insertRule=function(i,a){return i<=this.length&&(this.rules.splice(i,0,a),this.length++,!0)},i.deleteRule=function(i){this.rules.splice(i,1),this.length--},i.getRule=function(i){return i<this.length?this.rules[i]:""},e}(),eE=eu,eS={isServer:!eu,useCSSOMInjection:!ed},eI=function(){function e(i,a,o){void 0===i&&(i=el),void 0===a&&(a={}),this.options=y({},eS,{},i),this.gs=a,this.names=new Map(o),this.server=!!i.isServer,!this.server&&eu&&eE&&(eE=!1,function(i){for(var a=document.querySelectorAll(ey),o=0,c=a.length;o<c;o++){var w=a[o];w&&"active"!==w.getAttribute(ec)&&(F(i,w),w.parentNode&&w.parentNode.removeChild(w))}}(this))}e.registerId=function(i){return V(i)};var i=e.prototype;return i.reconstructWithOptions=function(i,a){return void 0===a&&(a=!0),new e(y({},this.options,{},i),this.gs,a&&this.names||void 0)},i.allocateGSInstance=function(i){return this.gs[i]=(this.gs[i]||0)+1},i.getTag=function(){var i,a,o,c,w;return this.tag||(this.tag=(o=(a=this.options).isServer,c=a.useCSSOMInjection,w=a.target,i=o?new e_(w):c?new eb(w):new ew(w),new ef(i)))},i.hasNameForId=function(i,a){return this.names.has(i)&&this.names.get(i).has(a)},i.registerName=function(i,a){if(V(i),this.names.has(i))this.names.get(i).add(a);else{var o=new Set;o.add(a),this.names.set(i,o)}},i.insertRules=function(i,a,o){this.registerName(i,a),this.getTag().insertRules(V(i),o)},i.clearNames=function(i){this.names.has(i)&&this.names.get(i).clear()},i.clearRules=function(i){this.getTag().clearGroup(V(i)),this.clearNames(i)},i.clearTag=function(){this.tag=void 0},i.toString=function(){return function(i){for(var a=i.getTag(),o=a.length,c="",w=0;w<o;w++){var x,k=(x=w,em.get(x));if(void 0!==k){var R=i.names.get(k),j=a.getGroup(w);if(R&&j&&R.size){var $=ec+".g"+w+'[id="'+k+'"]',et="";void 0!==R&&R.forEach(function(i){i.length>0&&(et+=i+",")}),c+=""+j+$+'{content:"'+et+'"}/*!sc*/\n'}}}return c}(this)},e}(),eT=/(a)(d)/gi,K=function(i){return String.fromCharCode(i+(i>25?39:97))};function Q(i){var a,o="";for(a=Math.abs(i);a>52;a=a/52|0)o=K(a%52)+o;return(K(a%52)+o).replace(eT,"$1-$2")}var ee=function(i,a){for(var o=a.length;o;)i=33*i^a.charCodeAt(--o);return i},te=function(i){return ee(5381,i)};function ne(i){for(var a=0;a<i.length;a+=1){var o=i[a];if(E(o)&&!_(o))return!1}return!0}var eC=te("5.3.11"),ex=function(){function e(i,a,o){this.rules=i,this.staticRulesId="",this.isStatic=(void 0===o||o.isStatic)&&ne(i),this.componentId=a,this.baseHash=ee(eC,a),this.baseStyle=o,eI.registerId(a)}return e.prototype.generateAndInjectStyles=function(i,a,o){var c=this.componentId,w=[];if(this.baseStyle&&w.push(this.baseStyle.generateAndInjectStyles(i,a,o)),this.isStatic&&!o.hash){if(this.staticRulesId&&a.hasNameForId(c,this.staticRulesId))w.push(this.staticRulesId);else{var x=_e(this.rules,i,a,o).join(""),k=Q(ee(this.baseHash,x)>>>0);if(!a.hasNameForId(c,k)){var R=o(x,"."+k,void 0,c);a.insertRules(c,k,R)}w.push(k),this.staticRulesId=k}}else{for(var j=this.rules.length,$=ee(this.baseHash,o.hash),et="",er=0;er<j;er++){var en=this.rules[er];if("string"==typeof en)et+=en;else if(en){var ei=_e(en,i,a,o),eo=Array.isArray(ei)?ei.join(""):ei;$=ee($,eo+er),et+=eo}}if(et){var es=Q($>>>0);if(!a.hasNameForId(c,es)){var el=o(et,"."+es,void 0,c);a.insertRules(c,es,el)}w.push(es)}}return w.join(" ")},e}(),ek=/^\s*\/\/.*$/gm,eA=[":","[",".","#"];function ae(i){var a,o,c,w,x=void 0===i?el:i,k=x.options,R=void 0===k?el:k,j=x.plugins,$=void 0===j?es:j,et=new stylis_browser_esm(R),er=[],en=function(i){function t(a){if(a)try{i(a+"}")}catch(i){}}return function(a,o,c,w,x,k,R,j,$,et){switch(a){case 1:if(0===$&&64===o.charCo
983deAt(0))return i(o+";"),"";break;case 2:if(0===j)return o+"/*|*/";break;case 3:switch(j){case 102:case 112:return i(c[0]+o),"";default:return o+(0===et?"/*|*/":"")}case -2:o.split("/*|*/}").forEach(t)}}}(function(i){er.push(i)}),f=function(i,c,x){return 0===c&&-1!==eA.indexOf(x[o.length])||x.match(w)?i:"."+a};function m(i,x,k,R){void 0===R&&(R="&");var j=i.replace(ek,""),$=x&&k?k+" "+x+" { "+j+" }":j;return a=R,c=RegExp("\\"+(o=x)+"\\b","g"),w=RegExp("(\\"+o+"\\b){2,}"),et(k||!x?"":x,$)}return et.use([].concat($,[function(i,a,w){2===i&&w.length&&w[0].lastIndexOf(o)>0&&(w[0]=w[0].replace(c,f))},en,function(i){if(-2===i){var a=er;return er=[],a}}])),m.hash=$.length?$.reduce(function(i,a){return a.name||D(15),ee(i,a.name)},5381).toString():"",m}var eD=k.createContext(),eO=(eD.Consumer,k.createContext()),eP=(eO.Consumer,new eI),eR=ae();function pe(){return(0,k.useContext)(eD)||eP}function fe(){return(0,k.useContext)(eO)||eR}function me(i){var a=(0,k.useState)(i.stylisPlugins),o=a[0],c=a[1],w=pe(),x=(0,k.useMemo)(function(){var a=w;return i.sheet?a=i.sheet:i.target&&(a=a.reconstructWithOptions({target:i.target},!1)),i.disableCSSOMInjection&&(a=a.reconstructWithOptions({useCSSOMInjection:!1})),a},[i.disableCSSOMInjection,i.sheet,i.target]),R=(0,k.useMemo)(function(){return ae({options:{prefix:!i.disableVendorPrefixes},plugins:o})},[i.disableVendorPrefixes,o]);return(0,k.useEffect)(function(){j()(o,i.stylisPlugins)||c(i.stylisPlugins)},[i.stylisPlugins]),k.createElement(eD.Provider,{value:x},k.createElement(eO.Provider,{value:R},i.children))}var eL=function(){function e(i,a){var o=this;this.inject=function(i,a){void 0===a&&(a=eR);var c=o.name+a.hash;i.hasNameForId(o.id,c)||i.insertRules(o.id,c,a(o.rules,c,"@keyframes"))},this.toString=function(){return D(12,String(o.name))},this.name=i,this.id="sc-keyframes-"+i,this.rules=a}return e.prototype.getName=function(i){return void 0===i&&(i=eR),this.name+i.hash},e}(),eM=/([A-Z])/,eN=/([A-Z])/g,eF=/^ms-/,we=function(i){return"-"+i.toLowerCase()};function Ee(i){return eM.test(i)?i.replace(eN,we).replace(eF,"-ms-"):i}var be=function(i){return null==i||!1===i||""===i};function _e(i,a,o,c){if(Array.isArray(i)){for(var w,x=[],k=0,R=i.length;k<R;k+=1)""!==(w=_e(i[k],a,o,c))&&(Array.isArray(w)?x.push.apply(x,w):x.push(w));return x}return be(i)?"":_(i)?"."+i.styledComponentId:E(i)?"function"!=typeof i||i.prototype&&i.prototype.isReactComponent||!a?i:_e(i(a),a,o,c):i instanceof eL?o?(i.inject(o,c),i.getName(c)):i:g(i)?function e(i,a){var o,c=[];for(var w in i)i.hasOwnProperty(w)&&!be(i[w])&&(Array.isArray(i[w])&&i[w].isCss||E(i[w])?c.push(Ee(w)+":",i[w],";"):g(i[w])?c.push.apply(c,e(i[w],w)):c.push(Ee(w)+": "+(null==(o=i[w])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||w in $||w.startsWith("--")?String(o).trim():o+"px")+";"));return a?[a+" {"].concat(c,["}"]):c}(i):i.toString()}var Ne=function(i){return Array.isArray(i)&&(i.isCss=!0),i};function Ae(i){for(var a=arguments.length,o=Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];return E(i)||g(i)?Ne(_e(v(es,[i].concat(o)))):0===o.length&&1===i.length&&"string"==typeof i[0]?i:Ne(_e(v(i,o)))}var Oe=function(i,a,o){return void 0===o&&(o=el),i.theme!==o.theme&&i.theme||a||o.theme},ej=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,e$=/(^-|-$)/g;function je(i){return i.replace(ej,"-").replace(e$,"")}var Te=function(i){return Q(te(i)>>>0)};function xe(i){return"string"==typeof i}var ke=function(i){return"function"==typeof i||"object"==typeof i&&null!==i&&!Array.isArray(i)},ez=k.createContext();ez.Consumer;var eB={},qe=function(i){return function e(i,a,o){if(void 0===o&&(o=el),!(0,x.isValidElementType)(a))return D(1,String(a));var s=function(){return i(a,o,Ae.apply(void 0,arguments))};return s.withConfig=function(c){return e(i,a,y({},o,{},c))},s.attrs=function(c){return e(i,a,y({},o,{attrs:Array.prototype.concat(o.attrs,c).filter(Boolean)}))},s}(function Ye(i,a,o){var c=_(i),w=!xe(i),x=a.attrs,R=void 0===x?es:x,j=a.componentId,$=void 0===j?(ed=a.displayName,eh=a.parentComponentId,eB[ef="string"!=typeof ed?"sc":je(ed)]=(eB[ef]||0)+1,ep=ef+"-"+Te("5.3.11"+ef+eB[ef]),eh?eh+"-"+ep:ep):j,et=a.displayName,en=void 0===et?xe(i)?"styled."+i:"Styled("+b(i)+")":et,eo=a.displayName&&a.componentId?je(a.displayName)+"-"+a.componentId:a.componentId||$,ec=c&&i.attrs?Array.prototype.concat(i.attrs,R).filter(
983Boolean):R,eu=a.shouldForwardProp;c&&i.shouldForwardProp&&(eu=a.shouldForwardProp?function(o,c,w){return i.shouldForwardProp(o,c,w)&&a.shouldForwardProp(o,c,w)}:i.shouldForwardProp);var ed,eh,ef,ep,em,eg=new ex(o,eo,c?i.componentStyle:void 0),ey=eg.isStatic&&0===R.length,P=function(i,a){return function(i,a,o,c){var w,x,R,j,$,et=i.attrs,en=i.componentStyle,ei=i.defaultProps,eo=i.foldedComponentIds,es=i.shouldForwardProp,ec=i.styledComponentId,eu=i.target,ed=(void 0===(w=Oe(a,(0,k.useContext)(ez),ei)||el)&&(w=el),x=y({},a,{theme:w}),R={},et.forEach(function(i){var a,o,c,w=i;for(a in E(w)&&(w=w(x)),w)x[a]=R[a]="className"===a?(o=R[a],c=w[a],o&&c?o+" "+c:o||c):w[a]}),[x,R]),eh=ed[0],ef=ed[1],ep=(j=pe(),$=fe(),c?en.generateAndInjectStyles(el,j,$):en.generateAndInjectStyles(eh,j,$)),em=ef.$as||a.$as||ef.as||a.as||eu,eg=xe(em),ey=ef!==a?y({},a,{},ef):a,ev={};for(var eb in ey)"$"!==eb[0]&&"as"!==eb&&("forwardedAs"===eb?ev.as=ey[eb]:(es?es(eb,er,em):!eg||er(eb))&&(ev[eb]=ey[eb]));return a.style&&ef.style!==a.style&&(ev.style=y({},a.style,{},ef.style)),ev.className=Array.prototype.concat(eo,ec,ep!==ec?ep:null,a.className,ef.className).filter(Boolean).join(" "),ev.ref=o,(0,k.createElement)(em,ev)}(em,i,a,ey)};return P.displayName=en,(em=k.forwardRef(P)).attrs=ec,em.componentStyle=eg,em.displayName=en,em.shouldForwardProp=eu,em.foldedComponentIds=c?Array.prototype.concat(i.foldedComponentIds,i.styledComponentId):es,em.styledComponentId=eo,em.target=c?i.target:i,em.withComponent=function(i){var c=a.componentId,w=function(i,a){if(null==i)return{};var o,c,w={},x=Object.keys(i);for(c=0;c<x.length;c++)a.indexOf(o=x[c])>=0||(w[o]=i[o]);return w}(a,["componentId"]),x=c&&c+"-"+(xe(i)?i:je(b(i)));return Ye(i,y({},w,{attrs:ec,componentId:x}),o)},Object.defineProperty(em,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(a){this._foldedDefaultProps=c?function ze(i){for(var a=arguments.length,o=Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];for(var w=0;w<o.length;w++){var x=o[w];if(ke(x))for(var k in x)"__proto__"!==k&&"constructor"!==k&&"prototype"!==k&&function(i,a,o){var c=i[o];ke(a)&&ke(c)?ze(c,a):i[o]=a}(i,x[k],k)}return i}({},i.defaultProps,a):a}}),Object.defineProperty(em,"toString",{value:function(){return"."+em.styledComponentId}}),w&&ei()(em,i,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),em},i)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(i){qe[i]=qe(i)});var eU=function(){function e(i,a){this.rules=i,this.componentId=a,this.isStatic=ne(i),eI.registerId(this.componentId+1)}var i=e.prototype;return i.createStyles=function(i,a,o,c){var w=c(_e(this.rules,a,o,c).join(""),""),x=this.componentId+i;o.insertRules(x,x,w)},i.removeStyles=function(i,a){a.clearRules(this.componentId+i)},i.renderStyles=function(i,a,o,c){i>2&&eI.registerId(this.componentId+i),this.removeStyles(i,o),this.createStyles(i,a,o,c)},e}();function $e(i){for(var a=arguments.length,o=Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];var w=Ae.apply(void 0,[i].concat(o)),x="sc-global-"+Te(JSON.stringify(w)),R=new eU(w,x);function d(i){var a=pe(),o=fe(),c=(0,k.useContext)(ez),w=(0,k.useRef)(a.allocateGSInstance(x)).current;return a.server&&h(w,i,a,c,o),(0,k.useLayoutEffect)(function(){if(!a.server)return h(w,i,a,c,o),function(){return R.removeStyles(w,a)}},[w,i,a,c,o]),null}function h(i,a,o,c,w){if(R.isStatic)R.renderStyles(i,eh,o,w);else{var x=y({},a,{theme:Oe(a,c,d.defaultProps)});R.renderStyles(i,x,o,w)}}return k.memo(d)}function We(i){for(var a=arguments.length,o=Array(a>1?a-1:0),c=1;c<a;
983c++)o[c-1]=arguments[c];var w=Ae.apply(void 0,[i].concat(o)).join(""),x=Te(w);return new eL(x,w)}(w=(function(){var i=this;this._emitSheetCSS=function(){var a=i.instance.toString();if(!a)return"";var o=Y();return"<style "+[o&&'nonce="'+o+'"',ec+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+a+"</style>"},this.getStyleTags=function(){return i.sealed?D(2):i._emitSheetCSS()},this.getStyleElement=function(){if(i.sealed)return D(2);var a,o=((a={})[ec]="",a["data-styled-version"]="5.3.11",a.dangerouslySetInnerHTML={__html:i.instance.toString()},a),c=Y();return c&&(o.nonce=c),[k.createElement("style",y({},o,{key:"sc-0-0"}))]},this.seal=function(){i.sealed=!0},this.instance=new eI({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(i){return this.sealed?D(2):k.createElement(me,{sheet:this.instance},i)},w.interleaveWithNodeStream=function(i){return D(3)};var eV=qe},29:function(i,a,o){"use strict";function asyncGeneratorStep(i,a,o,c,w,x,k){try{var R=i[x](k),j=R.value}catch(i){o(i);return}R.done?a(j):Promise.resolve(j).then(c,w)}function _asyncToGenerator(i){return function(){var a=this,o=arguments;return new Promise(function(c,w){var x=i.apply(a,o);function _next(i){asyncGeneratorStep(x,c,w,_next,_throw,"next",i)}function _throw(i){asyncGeneratorStep(x,c,w,_next,_throw,"throw",i)}_next(void 0)})}}o.d(a,{Z:function(){return _asyncToGenerator}})},2777:function(i,a,o){"use strict";function _classCallCheck(i,a){if(!(i instanceof a))throw TypeError("Cannot call a class as a function")}o.d(a,{Z:function(){return _classCallCheck}})},2262:function(i,a,o){"use strict";function _defineProperties(i,a){for(var o=0;o<a.length;o++){var c=a[o];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}function _createClass(i,a,o){return a&&_defineProperties(i.prototype,a),o&&_defineProperties(i,o),i}o.d(a,{Z:function(){return _createClass}})},9499:function(i,a,o){"use strict";function _defineProperty(i,a,o){return a in i?Object.defineProperty(i,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[a]=o,i}o.d(a,{Z:function(){return _defineProperty}})},6687:function(i,a,o){"use strict";function _arrayLikeToArray(i,a){(null==a||a>i.length)&&(a=i.length);for(var o=0,c=Array(a);o<a;o++)c[o]=i[o];return c}function _toConsumableArray(i){return function(i){if(Array.isArray(i))return _arrayLikeToArray(i)}(i)||function(i){if("undefined"!=typeof Symbol&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)}(i)||function(i,a){if(i){if("string"==typeof i)return _arrayLikeToArray(i,a);var o=Object.prototype.toString.call(i).slice(8,-1);if("Object"===o&&i.constructor&&(o=i.constructor.name),"Map"===o||"Set"===o)return Array.from(i);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(i,a)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}o.d(a,{Z:function(){return _toConsumableArray}})},2920:function(i,a,o){"use strict";o.d(a,{Ix:function(){return R},Am:function(){return Q}});var c=o(7294),clsx_m=function(){for(var i,a,o=0,c="";o<arguments.length;)(i=arguments[o++])&&(a=function r(i){var a,o,c="";if("string"==typeof i||"number"==typeof i)c+=i;else if("object"==typeof i){if(Array.isArray(i))for(a=0;a<i.length;a++)i[a]&&(o=r(i[a]))&&(c&&(c+=" "),c+=o);else for(a in i)i[a]&&(c&&(c+=" "),c+=a)}return c}(i))&&(c&&(c+=" "),c+=a);return c};let u=i=>"number"==typeof i&&!isNaN(i),d=i=>"string"==typeof i,p=i=>"function"==typeof i,m=i=>d(i)||p(i)?i:null,f=i=>(0,c.isValidElement)(i)||d(i)||p(i)||u(i);function h(i){let{enter:a,exit:o,appendPosition:w=!1,collapse:x=!0,collapseDuration:k=300}=i;return function(i){let{children:R,position:j,preventExitTransition:$,done:et,nodeRef:er,isIn:en}=i,ei=w?`${a}--${j}`:a,eo=w?`${o}--${j}`:o,es=(0,c.useRef)(0);return(0,c.useLayoutEffect)(()=>{let i=er.current,a=ei.split(" "),n=o=>{o.target===er.current&&(i.dispatchEvent(new Event("d")),i.removeEventListener("animationend",n),i.removeEventListener("animationcancel",n),0===es.current&&"animationcancel"!==o.type&&i.classList.remove(...a))};i.classList.add(...a),i.addEventListener("animationend",n),i.addEventListener("animationcancel",n)},[]),(0,c.useEffect)(()=>{let i=er.current,e=()=>{i.removeEventListener("animationend",e),x?function(i,a,o){void 0===o&&(o=300);let{scrollHeight:c,style:w}=i;requestAnimationFrame(()=>{w.minHeight="initial",w.height=c+"px",w.transition=`all ${o}ms`,requestAnimationFrame(()=>{w.height="0",w.padding="0",w.margin="0",setTimeout(a,o)})})}(i,et,k):et()};en||($?e():(es.current=1,i.className+=` ${eo}`,i.addEventListener("animationend",e)))},[en]),c.createElement(c.Fragment,null,R)}}function y(i,a){return null!=i?{content:i.content,containerId:i.props.containerId,id:i.props.toastId,theme:i.props.theme,type:i.props.type,data:i.props.data||{},isLoading:i.props.isLoading,icon:i.props.icon,status:a}:{}}let w={list:new Map,emitQueue:new Map,on(i,a){return this.list.has(i)||this.list.set(i,[]),this.list.get(i).push(a),this},off(i,a){if(a){let o=this.list.get(i).filter(i=>i!==a);return this.list.set(i,o),this}return this.list.delete(i),this},cancelEmit(i){let a=this.emitQueue.get(i);
983return a&&(a.forEach(clearTimeout),this.emitQueue.delete(i)),this},emit(i){this.list.has(i)&&this.list.get(i).forEach(a=>{let o=setTimeout(()=>{a(...[].slice.call(arguments,1))},0);this.emitQueue.has(i)||this.emitQueue.set(i,[]),this.emitQueue.get(i).push(o)})}},T=i=>{let{theme:a,type:o,...w}=i;return c.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===a?"currentColor":`var(--toastify-icon-color-${o})`,...w})},x={info:function(i){return c.createElement(T,{...i},c.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(i){return c.createElement(T,{...i},c.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(i){return c.createElement(T,{...i},c.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(i){return c.createElement(T,{...i},c.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return c.createElement("div",{className:"Toastify__spinner"})}};function b(i){return i.targetTouches&&i.targetTouches.length>=1?i.targetTouches[0].clientX:i.clientX}function I(i){return i.targetTouches&&i.targetTouches.length>=1?i.targetTouches[0].clientY:i.clientY}function L(i){let{closeToast:a,theme:o,ariaLabel:w="close"}=i;return c.createElement("button",{className:`Toastify__close-button Toastify__close-button--${o}`,type:"button",onClick:i=>{i.stopPropagation(),a(i)},"aria-label":w},c.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},c.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function O(i){let{delay:a,isRunning:o,closeToast:w,type:x="default",hide:k,className:R,style:j,controlledProgress:$,progress:et,rtl:er,isIn:en,theme:ei}=i,eo=k||$&&0===et,es={...j,animationDuration:`${a}ms`,animationPlayState:o?"running":"paused",opacity:eo?0:1};$&&(es.transform=`scaleX(${et})`);let el=clsx_m("Toastify__progress-bar",$?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${ei}`,`Toastify__progress-bar--${x}`,{"Toastify__progress-bar--rtl":er}),ec=p(R)?R({rtl:er,type:x,defaultClassName:el}):clsx_m(el,R);return c.createElement("div",{role:"progressbar","aria-hidden":eo?"true":"false","aria-label":"notification timer",className:ec,style:es,[$&&et>=1?"onTransitionEnd":"onAnimationEnd"]:$&&et<1?null:()=>{en&&w()}})}let N=i=>{let{isRunning:a,preventExitTransition:o,toastRef:w,eventHandlers:x}=function(i){let[a,o]=(0,c.useState)(!1),[w,x]=(0,c.useState)(!1),k=(0,c.useRef)(null),R=(0,c.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,j=(0,c.useRef)(i),{autoClose:$,pauseOnHover:et,closeToast:er,onClick:en,closeOnClick:ei}=i;function v(a){if(i.draggable){"touchstart"===a.nativeEvent.type&&a.nativeEvent.preventDefault(),R.didMove=!1,document.addEventListener("mousemove",_),document.addEventListener("mouseup",L),document.addEventListener("touchmove",_),document.addEventListener("touchend",L);let o=k.current;R.canCloseOnClick=!0,R.canDrag=!0,R.boundingRect=o.getBoundingClientRect(),o.style.transition="",R.x=b(a.nativeEvent),R.y=I(a.nativeEvent),"x"===i.draggableDirection?(R.start=R.x,R.removalDistance=o.offsetWidth*(i.draggablePercent/100)):(R.start=R.y,R.removalDistance=o.offsetHeight*(80===i.draggablePercent?1.5*i.draggablePercent:i.draggablePercent/100))}}function T(a){if(R.boundingRect){let{top:o,bottom:c,left:w,right:x}=R.boundingRect;"touchend"!==a.nativeEvent.type&&i.pauseOnHover&&R.x>=w&&R.x<=x&&R.y>=o&&R.y<=c?C():E()}}function E(){o(!0)}function C(){o(!1)}function _(o){let c=k.current;R.canDrag&&c&&(R.didMove=!0,a&&C(),R.x=b(o),R.y=I(o),R.delta="x"===i.draggableDirection?R.x-R.start:R.y-R.start,R.start!==R.x&&(R.canCloseOnClick=!1),c.style.transform=`translate${i.draggableDirection}(${R.delta}px)`,c.style.opacity=""+(1-Math.abs(R.delta/R.removalDistance)))}function L(){document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",L),document.removeEventListener("touchmove",_),document.removeEventListener("touchend",L);let a=k.current;if(R.canDrag&&R.didMove&&a){if(R.canDrag=!1,Math.abs(R.delta)>R.removalDistance)return x(!0),void i.closeToast();a.style.transition="transform 0.2s, opacity 0.2s",a.style.transform=`translate${i.draggableDirection}(0)`,a.style.opacity="1"}}(0,c.useEffect)(()=>{j.current=i}),(0,c.useEffect)(()=>(k.current&&k.current.addEventListener("d",E,{once:!0}),p(i.onOpen)&&i.onOpen((0,c.isValidElement)(i.children)&&i.children.props),()=>{let i=j.current;p(i.onClose)&&i.onClose((0,c.isValidElement)(i.children)&&i.children.props)}),[]),(0,c.useEffect)(()=>(i.pauseOnFocusLoss&&(document.hasFocus()||C(),window.addEventListener("focus",E),window.addEventListener("blur",C)),()=>{i.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",C))}),[i.pauseOnFocusLoss]);let eo={onMouseDown:v,onTouchStart:v,onMouseUp:T,onTouchEnd:T};return $&&et&&(eo.onMouseEnter=C,eo.onMouseLeave=E),ei&&(eo.onClick=i=>{en&&en(i),R.canCloseOnClick&&er()}),{playToast:E,pauseToast:C,isRunning:a,preventExitTransition:w,toastRef:k,eventHandlers:eo}}(i),{closeButton:k,children:R,autoClose:j,onClick:$,type:et,hideProgressBar:er,closeToast:en,transition:ei,position:eo,className:es,style:el,bodyClassName:ec,bodyStyle:eu,progressClassName:ed,progressStyle:eh,updateId:ef,role:ep,progress:em,rtl:eg,toastId:ey,deleteToast:ev,isIn:eb,isLoading:ew,iconOut:e_,closeOnClick:eE,theme:eS}=i,eI=clsx_m("Toastify__toast",`Toastify__toast-theme--${eS}`,`Toastify__toast--${et}`,{"Toastify__toast--rtl":eg},{"Toastify__toast--close-on-click":eE}),eT=p(es)?es({rtl:eg,position:eo,type:et,defaultClassName:eI}):clsx_m(eI,es),eC=!!em||!j,ex={closeToast:en,type:et,theme:eS},ek=null;return!1===k||(ek=p(k)?k(ex):(0,c.isValidElement)(k)?(0,c.cloneElement)(k,ex):L(ex)),c.createElement(ei,{isIn:eb,done:ev,position:eo,preventExitTransition:o,nodeRef:w},c.createElement("div",{id:ey,onClick:$,className:eT,...x,style:el,ref:w}
983,c.createElement("div",{...eb&&{role:ep},className:p(ec)?ec({type:et}):clsx_m("Toastify__toast-body",ec),style:eu},null!=e_&&c.createElement("div",{className:clsx_m("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!ew})},e_),c.createElement("div",null,R)),ek,c.createElement(O,{...ef&&!eC?{key:`pb-${ef}`}:{},rtl:eg,theme:eS,delay:j,isRunning:a,isIn:eb,closeToast:en,hide:er,type:et,style:eh,className:ed,controlledProgress:eC,progress:em||0})))},M=function(i,a){return void 0===a&&(a=!1),{enter:`Toastify--animate Toastify__${i}-enter`,exit:`Toastify--animate Toastify__${i}-exit`,appendPosition:a}},k=h(M("bounce",!0)),R=(h(M("slide",!0)),h(M("zoom")),h(M("flip")),(0,c.forwardRef)((i,a)=>{let{getToastToRender:o,containerRef:k,isToastActive:R}=function(i){let[,a]=(0,c.useReducer)(i=>i+1,0),[o,k]=(0,c.useState)([]),R=(0,c.useRef)(null),j=(0,c.useRef)(new Map).current,T=i=>-1!==o.indexOf(i),$=(0,c.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:i,containerId:null,isToastActive:T,getToast:i=>j.get(i)}).current;function b(i){let{containerId:a}=i,{limit:o}=$.props;!o||a&&$.containerId!==a||($.count-=$.queue.length,$.queue=[])}function I(i){k(a=>null==i?[]:a.filter(a=>a!==i))}function _(){let{toastContent:i,toastProps:a,staleId:o}=$.queue.shift();O(i,a,o)}function L(i,o){var k,et;let{delay:er,staleId:en,...ei}=o;if(!f(i)||!R.current||$.props.enableMultiContainer&&ei.containerId!==$.props.containerId||j.has(ei.toastId)&&null==ei.updateId)return;let{toastId:eo,updateId:es,data:el}=ei,{props:ec}=$,L=()=>I(eo),eu=null==es;eu&&$.count++;let ed={...ec,style:ec.toastStyle,key:$.toastKey++,...Object.fromEntries(Object.entries(ei).filter(i=>{let[a,o]=i;return null!=o})),toastId:eo,updateId:es,data:el,closeToast:L,isIn:!1,className:m(ei.className||ec.toastClassName),bodyClassName:m(ei.bodyClassName||ec.bodyClassName),progressClassName:m(ei.progressClassName||ec.progressClassName),autoClose:!ei.isLoading&&(k=ei.autoClose,et=ec.autoClose,!1===k||u(k)&&k>0?k:et),deleteToast(){let i=y(j.get(eo),"removed");j.delete(eo),w.emit(4,i);let o=$.queue.length;if($.count=null==eo?$.count-$.displayedToast:$.count-1,$.count<0&&($.count=0),o>0){let i=null==eo?$.props.limit:1;if(1===o||1===i)$.displayedToast++,_();else{let a=i>o?o:i;$.displayedToast=a;for(let i=0;i<a;i++)_()}}else a()}};ed.iconOut=function(i){let{theme:a,type:o,isLoading:w,icon:k}=i,R=null,j={theme:a,type:o};return!1===k||(p(k)?R=k(j):(0,c.isValidElement)(k)?R=(0,c.cloneElement)(k,j):d(k)||u(k)?R=k:w?R=x.spinner():o in x&&(R=x[o](j))),R}(ed),p(ei.onOpen)&&(ed.onOpen=ei.onOpen),p(ei.onClose)&&(ed.onClose=ei.onClose),ed.closeButton=ec.closeButton,!1===ei.closeButton||f(ei.closeButton)?ed.closeButton=ei.closeButton:!0===ei.closeButton&&(ed.closeButton=!f(ec.closeButton)||ec.closeButton);let eh=i;(0,c.isValidElement)(i)&&!d(i.type)?eh=(0,c.cloneElement)(i,{closeToast:L,toastProps:ed,data:el}):p(i)&&(eh=i({closeToast:L,toastProps:ed,data:el})),ec.limit&&ec.limit>0&&$.count>ec.limit&&eu?$.queue.push({toastContent:eh,toastProps:ed,staleId:en}):u(er)?setTimeout(()=>{O(eh,ed,en)},er):O(eh,ed,en)}function O(i,a,o){let{toastId:c}=a;o&&j.delete(o);let x={content:i,props:a};j.set(c,x),k(i=>[...i,c].filter(i=>i!==o)),w.emit(4,y(x,null==x.props.updateId?"added":"updated"))}return(0,c.useEffect)(()=>($.containerId=i.containerId,w.cancelEmit(3).on(0,L).on(1,i=>R.current&&I(i)).on(5,b).emit(2,$),()=>{j.clear(),w.emit(3,$)}),[]),(0,c.useEffect)(()=>{$.props=i,$.isToastActive=T,$.displayedToast=o.length}),{getToastToRender:function(a){let o=new Map,c=Array.from(j.values());return i.newestOnTop&&c.reverse(),c.forEach(i=>{let{position:a}=i.props;o.has(a)||o.set(a,[]),o.get(a).push(i)}),Array.from(o,i=>a(i[0],i[1]))},containerRef:R,isToastActive:T}}(i),{className:j,style:$,rtl:et,containerId:er}=i;return(0,c.useEffect)(()=>{a&&(a.current=k.current)},[]),c.createElement("div",{ref:k,className:"Toastify",id:er},o((i,a)=>{let o=a.length?{...$}:{...$,pointerEvents:"none"};return c.createElement("div",{className:function(i){let a=clsx_m("Toastify__toast-container",`Toastify__toast-container--${i}`,{"Toastify__toast-container--rtl":et});return p(j)?j({position:i,rtl:et,defaultClassName:a}):clsx_m(a,m(j))}(i),style:o,key:`container-${i}`},a.map((i,o)=>{let{content:w,props:x}=i;return c.createElement(N,{...x,isIn:R(x.toastId),style:{...x.style,"--nth":o+1,"--len":a.length},key:`toast-${x.key}`},w)}))}))}));R.displayName="ToastContainer",R.defaultProps={position:"top-right",transition:k,autoClose:5e3,closeButton:L,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let j,$=new Map,et=[],er=1;function H(i,a){return $.size>0?w.emit(0,i,a):et.push({content:i,options:a}),a.toastId}function S(i,a){return{...a,type:a&&a.type||i,toastId:a&&(d(a.toastId)||u(a.toastId))?a.toastId:""+er++}}function q(i){return(a,o)=>H(a,S(i,o))}function Q(i,a){return H(i,S("default",a))}Q.loading=(i,a)=>H(i,S("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...a})),Q.promise=function(i,a,o){let c,{pending:w,error:x,success:k}=a;w&&(c=d(w)?Q.loading(w,o):Q.loading(w.render,{...o,...w}));let R={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(i,a,w)=>{if(null==a)return void Q.dismiss(c);let x={type:i,...R,...o,data:w},k=d(a)?{render:a}:a;return c?Q.update(c,{...x,...k}):Q(k.render,{...x,...k}),w},j=p(i)?i():i;return j.then(i=>l("success",k,i)).catch(i=>l("error",x,i)),j},Q.success=q("success"),Q.info=q("info"),Q.error=q("error"),Q.warning=q("warning"),Q.warn=Q.warning,Q.dark=(i,a)=>H(i,S("default",{theme:"dark",...a})),Q.dismiss=i=>{$.size>0?w.emit(1,i):et=et.filter(a=>null!=i&&a.options.toastId!==i)},Q.clearWaitingQueue=function(i){return void 0===i&&(i={}),w.emit(5,i)},Q.isActive=i=>{let a=!1;return $.forEach(o=>{o.isToastActive&&o.isToastActive(i)&&(a=!0)}),a},Q.update=function(i,a){void 0===a&&(a={}),setTimeout(()=>{let o=function(i,a){let{containerId:o}=a,c=$.get(o||j);return c&&c.getToast(i)}(i,a);if(o){let{props:c,content:w}=o,x={delay:100,...c,...a,toastId:a.toastId||i,updateId:""+er++};x.toastId!==i&&(x.staleId=i);let k=x.render||w;delete x.render,H(k,x)}},0)},Q.done=i=>{Q.update(i,{progress:1})},Q.onChange=i=>(w.on(4,i),()=>{w.off(4,i)}),Q.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Q.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},w.on(2,i=>{j=i.containerId||i,$.set(j,i),et.forEach(i=>
983{w.emit(0,i.content,i.options)}),et=[]}).on(3,i=>{$.delete(i.containerId||i),0===$.size&&w.off(0).off(1).off(5)})}},function(i){var __webpack_exec__=function(a){return i(i.s=a)};i.O(0,[774,179],function(){return __webpack_exec__(6840),__webpack_exec__(7985)}),_N_E=i.O()}]);

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.