PageSourceSearch

https://blackbunny-3c936.web.app/_expo/static/js/web/AppEntry-54d73a1d36662d26132822d7e0446e1c.js?v=mo7nw3ot

js blackbunny-3c936.web.app collected 2026-10-03 12:18:33 UTC 2,032,889 bytes, 6,348 lines download raw bytes

1__d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}var u=t(r(d[0])),e=t(r(d[1]));(0,u.default)(e.default)},0,[1,96]);
2__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}}),r(d[0]);var e,t=r(d[1]),n=(e=t)&&e.__esModule?e:{default:e};function o(e){let t=e;if(n.default.registerComponent('main',()=>t),'undefined'!=typeof window){const e=document.getElementById('root');n.default.runApplication('main',{rootTag:e,hydrate:globalThis.__EXPO_ROUTER_HYDRATE__})}}r(d[2])},1,[2,18,95]);
3__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]),r(d[1]),r(d[2])},2,[3,8,17]);
4__d(function(g,r,i,a,m,e,d){"use strict";r(d[0])},3,[4]);
5__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]),Object.defineProperty(globalThis,'__ExpoImportMetaRegistry',{value:r(d[1]).ImportMetaRegistry,enumerable:!1,writable:!0})},4,[5,6]);
6__d(function(g,r,i,a,m,e,d){},5,[]);
7__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ImportMetaRegistry",{enumerable:!0,get:function(){return n}});var t=r(d[0]);const n={get url(){return(0,t.getBundleUrl)()}}},6,[7]);
8__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getBundleUrl=function(){let n=null;n='undefined'==typeof window?'file://'+__filename:document.currentScript?.src;if(null==n)return null;const t=new URL(n);return`${t.protocol}//${t.host}${t.pathname}`}},7,[]);
9__d(function(g,r,i,a,m,e,d){"use strict";var _=r(d[0]);g[`${g.__METRO_GLOBAL_PREFIX__??''}__loadBundleAsync`]=(0,_.buildAsyncRequire)()},8,[9]);
10__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.buildAsyncRequire=function(){const t=new Map;return async function(c){if(t.has(c))return t.get(c);const u=(0,n.loadBundleAsync)(c).catch(n=>{throw t.delete(c),n});return t.set(c,u),u}};var n=r(d[0])},9,[10]);
11__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.loadBundleAsync=async function(t){const u=(0,n.buildUrlForBundle)(t);return(0,c.fetchThenEvalAsync)(u)};var n=r(d[0]),c=r(d[1])},10,[11,13]);
12__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.buildUrlForBundle=function(e){if(/^https?:\/\//.test(e))return e;const{url:t}=(0,u.default)();return t?new URL(e,t).toString():`//${e.replace(/^\/+/,'')}`};var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},11,[12]);
13__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=()=>'undefined'==typeof window?{bundleLoadedFromServer:!0,fullBundleUrl:'',url:''}:{bundleLoadedFromServer:!0,get fullBundleUrl(){if(document?.currentScript&&'src'in document.currentScript)return document.currentScript.src;const t=new URL(location.href);return t.searchParams.set('platform','web'),t.toString()},url:location.origin+location.pathname}},12,[]);
14__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.fetchThenEvalAsync=function(o,{scriptType:c,nonce:s,crossOrigin:u}={}){if('undefined'==typeof window)return r(d[0]).fetchThenEvalAsync(o);return new Promise((p,l)=>{const f=document.createElement('script');c&&(f.type=c),s&&f.setAttribute('nonce',s),f.src=o,u&&0!==f.src.indexOf(window.location.origin+'/')&&(f.crossOrigin=u),f.onload=()=>{f.parentNode&&f.parentNode.removeChild(f),p()};const y=new t;f.onerror=n=>{let t;t='string'==typeof n?{type:'error',target:{src:t}}:n;const c=t&&('load'===t.type?'missing':t.type),s=t?.target?.src;y.message='Loading module '+o+' failed.\n('+c+': '+s+')',y.type=c,y.request=s,f.parentNode&&f.parentNode.removeChild(f),l(y)},f.src===n?p():document.head.appendChild(f)})};const n='undefined'!=typeof document&&document.currentScript&&'src'in document.currentScript&&document.currentScript.src||null;class t extends Error{name='AsyncRequireError'}},13,[14]);
15__d(function(g,r,i,a,m,e,d){"use strict";
15Object.defineProperty(e,'__esModule',{value:!0}),e.fetchThenEvalAsync=fetchThenEvalAsync;var _errors=r(d[0]),_fetchAsync=r(d[1]);function fetchThenEvalAsync(url){return(0,_fetchAsync.fetchAsync)(url).then(({body:body,status:status,headers:headers})=>{if(null!=headers?.has?.('Content-Type')&&headers.get('Content-Type').includes('application/json'))throw new Error(JSON.parse(body).message||`Unknown error fetching '${url}'`);if(200===status)return eval(body);throw new Error(`Failed to load split bundle from URL: ${url}\n${body}`)})}},14,[15,16]);
16__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MetroServerError",{enumerable:!0,get:function(){return t}});class t extends Error{code='METRO_SERVER_ERROR';constructor(t,o){super(t.message),this.name='MetroServerError',this.url=o;for(const o in t)this[o]=t[o]}}},15,[]);
17__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.fetchAsync=async function(t){const s=await fetch(t,{method:'GET',headers:{'expo-platform':'web'}});return{body:await s.text(),status:s.status,headers:s.headers}}},16,[]);
18__d(function(g,r,i,a,m,e,d){},17,[]);
19__d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});t(r(d[0]));var e,n=t(r(d[1])),o=t(r(d[2])),p=r(d[3]),s=t(p),u={},l={},c=t=>t();class f{static getAppKeys(){return Object.keys(l)}static getApplication(t,e){return(0,n.default)(l[t]&&l[t].getApplication,"Application "+t+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),l[t].getApplication(e)}static registerComponent(t,n){return l[t]={getApplication:t=>(0,p.getApplication)(c(n),t?t.initialProps:u,e&&e(t)),run:t=>(0,s.default)(c(n),e&&e(t),t.callback,{hydrate:t.hydrate||!1,initialProps:t.initialProps||u,mode:t.mode||'concurrent',rootTag:t.rootTag})},t}static registerConfig(t){t.forEach(t=>{var e=t.appKey,o=t.component,p=t.run;p?f.registerRunnable(e,p):((0,n.default)(o,'No component provider passed in'),f.registerComponent(e,o))})}static registerRunnable(t,e){return l[t]={run:e},t}static runApplication(t,e){return(0,n.default)(l[t]&&l[t].run,"Application \""+t+"\" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),l[t].run(e)}static setComponentProviderInstrumentationHook(t){c=t}static setWrapperComponentProvider(t){e=t}static unmountApplicationComponentAtRootTag(t){(0,o.default)(t)}}},18,[19,24,25,26]);
20__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=_r(d[0]),r=(e=t)&&e.__esModule?e:{default:e};function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach(function(t){(0,r.default)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}},19,[20]);
21__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=_r(d[0]),r=(e=t)&&e.__esModule?e:{default:e};function u(e,t,u){return(t=(0,r.default)(t))in e?Object.defineProperty(e,t,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[t]=u,e}},20,[21]);
22__d(function(g,r,_i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var t=e(r(d[0])),u=e(r(d[1]));function n(e){var n=(0,u.default)(e,"string");return"symbol"==(0,t.default)(n)?n:n+""}},21,[22,23]);
23__d(function(g,r,i,a,m,e,d){"use strict";function t(o){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(o)}
23Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}})},22,[]);
24__d(function(g,_r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return i}});var e,t=_r(d[0]),r=(e=t)&&e.__esModule?e:{default:e};function i(e,t){if("object"!=(0,r.default)(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var u=i.call(e,t||"default");if("object"!=(0,r.default)(u))return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},23,[22]);
25__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n,o){for(var t=arguments.length,f=new Array(t>2?t-2:0),s=2;s<t;s++)f[s-2]=arguments[s];if(!n){var l;if(void 0===o)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;(l=new Error(o.replace(/%s/g,function(){return String(f[u++])}))).name='Invariant Violation'}throw l.framesToPop=1,l}}},24,[]);
26__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t.unmount(),!0}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}})},25,[]);
27__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}}),_e.getApplication=function(e,l,u){return{element:c.default.createElement(n.default,{WrapperComponent:u,rootTag:{}},c.default.createElement(e,l)),getStyleElement:e=>{var n=f.default.getSheet();return c.default.createElement("style",(0,t.default)({},e,{dangerouslySetInnerHTML:{__html:n.textContent},id:n.id}))}}};var t=e(r(d[0])),n=e(r(d[1])),l=e(r(d[2])),u=r(d[3]),o=e(u),f=e(r(d[4])),c=e(r(d[5]));function p(e,t,f,p){var s=p.hydrate,_=p.initialProps,y=p.rootTag,E=s?u.hydrate:o.default;return(0,l.default)(y,'Expect to have a valid rootTag, instead got ',y),E(c.default.createElement(n.default,{WrapperComponent:t,ref:f,rootTag:y},c.default.createElement(e,_)),y)}},26,[27,28,24,29,42,34]);
28__d(function(g,_r,i,a,m,_e,d){"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)({}).hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},e.apply(null,arguments)}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}})},27,[]);
29__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=function({children:t}){return t}},28,[]);
30__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return u}}),e.hydrate=function(u,o){return(0,n.createSheet)(o),(0,t.hydrateRoot)(o,u)};var t=r(d[0]),n=r(d[1]);function u(u,o){(0,n.createSheet)(o);var c=(0,t.createRoot)(o);return c.render(u),c}},29,[30,38]);
31__d(function(g,r,i,a,m,e,d){'use strict';!(function _(){if('undefined'!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&'function'==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_)}catch(_){console.error(_)}})(),m.exports=r(d[0])},30,[31]);
32__d(function(e,n,t,r,l,a,o){
33/**
34   * @license React
35   * react-dom-client.production.js
36   *
37   * Copyright (c) Meta Platforms, Inc. and affiliates.
38   *
39   * This source code is licensed under the MIT license found in the
40   * LICENSE file in the root directory of this source tree.
41   */
42"use strict";var u=n(o[0]),i=n(o[1]),s=n(o[2]);function c(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function d(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{!!(4098&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function p(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&(null!==(e=e.alternate)&&(n=e.memoizedState)),null!==n)return n.dehydrated}return null}function m(e){if(d(e)!==e)throw Error(c(188))}function h(e){var n=e.alternate;if(!n){if(null===(n=d(e)))throw Error(c(188));return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){t=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===t)return m(l),e;if(a===r)return m(l),n;a=a.sibling}throw Error(c(188))}if(t.return!==r.return)t=l,r=a;else{for(var o=!1,u=l.child;u;){if(u===t){o=!0,t=l,r=a;break}if(u===r){o=!0,r=l,t=a;break}u=u.sibling}if(!o){for(u=a.child;u;){if(u===t){o=!0,t=a,r=l;break}if(u===r){o=!0,r=a,t=l;break}u=u.sibling}if(!o)throw Error(c(189))}}if(t.alternate!==r)throw Error(c(190))}if(3!==t.tag)throw Error(c(188));return t.stateNode.current===t?e:n}function g(e){var n=e.tag;if(5===n||26===n||27===n||6===n)return e;for(e=e.child;null!==e;){if(null!==(n=g(e)))return n;e=e.sibling}return null}var v=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),z=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),_=Symbol.for("react.lazy");Symbol.for("react.scope");var F=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var D=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var M=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var A=Symbol.for("react.client.reference");function R(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===A?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w:return"Fragment";case E:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case L:return"SuspenseList";case F:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case k:return"Portal";case z:return(e.displayName||"Context")+".Provider";case C:return(e._context.displayName||"Context")+".Consumer";case P:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(n=e.displayName||null)?n:R(e.type)||"Memo";case _:n=e._payload,e=e._init;try{return R(e(n))}catch(e){}}return null}var I=Array.isArray,U=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},H=[],Q=-1;function $(e){return{current:e}}function B(e){0>Q||(e.current=H[Q],H[Q]=null,Q--)}function W(e,n){Q++,H[Q]=e.current,e.current=n}var q=$(null),K=$(null),Y=$(null),X=$(null);function G(e,n){switch(W(Y,n),W(K,e),W(q,null),n.nodeType){case 9:case 11:e=(e
vendor: 5,110 bytes, line 42
42=n.documentElement)&&(e=e.namespaceURI)?xf(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)e=Cf(n=xf(n),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(q),W(q,e)}function Z(){B(q),B(K),B(Y)}function J(e){null!==e.memoizedState&&W(X,e);var n=q.current,t=Cf(n,e.type);n!==t&&(W(K,e),W(q,t))}function ee(e){K.current===e&&(B(q),B(K)),X.current===e&&(B(X),wd._currentValue=V)}var ne=Object.prototype.hasOwnProperty,te=u.unstable_scheduleCallback,re=u.unstable_cancelCallback,le=u.unstable_shouldYield,ae=u.unstable_requestPaint,oe=u.unstable_now,ue=u.unstable_getCurrentPriorityLevel,ie=u.unstable_ImmediatePriority,se=u.unstable_UserBlockingPriority,ce=u.unstable_NormalPriority,fe=u.unstable_LowPriority,de=u.unstable_IdlePriority,pe=u.log,me=u.unstable_setDisableYieldValue,he=null,ge=null;function ve(e){if("function"==typeof pe&&me(e),ge&&"function"==typeof ge.setStrictMode)try{ge.setStrictMode(he,e)}catch(e){}}var ye=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(be(e)/ke|0)|0},be=Math.log,ke=Math.LN2;var we=256,Se=4194304;function Ee(e){var n=42&e;if(0!==n)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function xe(e,n,t){var r=e.pendingLanes;if(0===r)return 0;var l=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var u=134217727&r;return 0!==u?0!==(r=u&~a)?l=Ee(r):0!==(o&=u)?l=Ee(o):t||0!==(t=u&~e)&&(l=Ee(t)):0!==(u=r&~a)?l=Ee(u):0!==o?l=Ee(o):t||0!==(t=r&~e)&&(l=Ee(t)),0===l?0:0!==n&&n!==l&&0===(n&a)&&((a=l&-l)>=(t=n&-n)||32===a&&4194048&t)?n:l}function Ce(e,n){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function ze(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return-1}}function Pe(){var e=we;return!(4194048&(we<<=1))&&(we=256),e}function Ne(){var e=Se;return!(62914560&(Se<<=1))&&(Se=4194304),e}function Le(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function Te(e,n){e.pendingLanes|=n,268435456!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _e(e,n,t,r,l,a){var o=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var u=e.entanglements,i=e.expirationTimes,s=e.hiddenUpdates;for(t=o&~t;0<t;){var c=31-ye(t),f=1<<c;u[c]=0,i[c]=-1;var d=s[c];if(null!==d)for(s[c]=null,c=0;c<d.length;c++){var p=d[c];null!==p&&(p.lane&=-536870913)}t&=~f}0!==r&&Fe(e,r,0),0!==a&&0===l&&0!==e.tag&&(e.suspendedLanes|=a&~(o&~n))}function Fe(e,n,t){e.pendingLanes|=n,e.suspendedLanes&=~n;var r=31-ye(n);e.entangledLanes|=n,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&t}function De(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-ye(t),l=1<<r;l&n|e[r]&n&&(e[r]|=n),t&=~l}}function Me(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Oe(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Ae(){var e=j.p;return 0!==e?e:void 0===(e=window.event)?32:Ad(e.type)}function Re(e,n){var t=j.p;try{return j.p=e,n()}finally{j.p=t}}var Ie=Math.random().toString(36).slice(2),Ue="__reactFiber$"+Ie,je="__reactProps$"+Ie,Ve="__reactContainer$"+Ie,He="__reactEvents$"+Ie,Qe="__reactListeners$"+Ie,$e="__reactHandles$"+Ie,Be="__reactResources$"+Ie,We="__reactMarker$"+Ie;function qe(e){delete e[Ue],delete e[je],delete e[He],delete e[Qe],delete e[$e]}function Ke(e){var n=e[Ue];if(n)return n;for(var t=e.parentNode;t;){if(n=t[Ve]||t[Ue]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=Qf(e);null!==e;){if(t=e[Ue])return t;e=Qf(e)}return n}t=(e=t).parentNode}return null}function Ye(e){if(e=e[Ue]||e[Ve]){var n=e.tag;if(5===n||6===n||13===n||26===n||27===n||3===n)return e}return null}function Xe(e){var n=e.tag;if(5===n||26===n||27===n||6===n)return e.stateNode;throw Error(c(33))}function Ge(e){var n=e[Be];return n||(n=e[Be]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Ze(e){e[We]=!0}var Je=new Set,en={};function nn(e,n){tn(e,n),tn(e+"Capture",n)}function tn(e,n){for(en[e]=n,e=0;e<n.length;e++)Je.add(n[e])}var rn,ln,an=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
42037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),on={},un={};function sn(e,n,t){if(l=n,ne.call(un,l)||!ne.call(on,l)&&(an.test(l)?un[l]=!0:(on[l]=!0,0)))if(null===t)e.removeAttribute(n);else{switch(typeof t){case"undefined":case"function":case"symbol":return void e.removeAttribute(n);case"boolean":var r=n.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(n)}e.setAttribute(n,""+t)}var l}function cn(e,n,t){if(null===t)e.removeAttribute(n);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttribute(n,""+t)}}function fn(e,n,t,r){if(null===r)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttributeNS(n,t,""+r)}}function dn(e){if(void 0===rn)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);rn=n&&n[1]||"",ln=-1<e.stack.indexOf("\n    at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+rn+e+ln}var pn=!1;function mn(e,n){if(!e||pn)return"";pn=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(n){var t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){r=e}(t=e())&&"function"==typeof t.catch&&t.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=r.DetermineComponentFrameRoot(),o=a[0],u=a[1];if(o&&u){var i=o.split("\n"),s=u.split("\n");for(l=r=0;r<i.length&&!i[r].includes("DetermineComponentFrameRoot");)r++;for(;l<s.length&&!s[l].includes("DetermineComponentFrameRoot");)l++;if(r===i.length||l===s.length)for(r=i.length-1,l=s.length-1;1<=r&&0<=l&&i[r]!==s[l];)l--;for(;1<=r&&0<=l;r--,l--)if(i[r]!==s[l]){if(1!==r||1!==l)do{if(r--,0>--l||i[r]!==s[l]){var c="\n"+i[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=l);break}}}finally{pn=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?dn(t):""}function hn(e){switch(e.tag){case 26:case 27:case 5:return dn(e.type);case 16:return dn("Lazy");case 13:return dn("Suspense");case 19:return dn("SuspenseList");case 0:case 15:return mn(e.type,!1);case 11:return mn(e.type.render,!1);case 1:return mn(e.type,!0);case 31:return dn("Activity");default:return""}}function gn(e){try{var n="";do{n+=hn(e),e=e.return}while(e);return n}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function vn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function yn(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function bn(e){var n=yn(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&"function"==typeof t.get&&"function"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function kn(e){e._valueTracker||(e._valueTracker=bn(e))}function wn(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=yn(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function Sn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}var En=/[\n"\\]/g;function xn(e){return e.replace(En,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Cn(e,n,t,r,l,a,o,u){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=n?"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+vn(n)):e.value!==""+vn(n)&&(e.value=""+vn(n)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=n?Pn(e,o,vn(n)):null!=t?Pn(e,o,vn(t)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=u&&"function"!=typeof u&&"symbol"!=typeof u&&"boolean"!=typeof u?e.name=""+vn(u):e.removeAttribute("name")}function zn(e,n,t,r,l,a,o,u){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=n||null!=t){if(("submit"===a||"reset"===a)&&null==n)return;t=null!=t?""+vn(t):"",n=null!=n?""+vn(n):t,u||n===e.value||(e.value=n),e.defaultValue=n}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=u?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function Pn(e,n,t){"number"===n&&Sn(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function Nn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l<t.length;l++)n["$"+t[l]]=!0;for(t=0;t<e.length;t++)l=n.hasOwnProperty("$"+e[t].value),e[t].selected!==l&&(e[t].selected=l),l&&r&&(e[t].defaultSelected=!0)}else{for(t=""+vn(t),n=null,l=0;l<e.length;l++){if(e[l].value===t)return e[l].selected=!0,void(r&&(e[l].defaultSelected=!0));null!==n||e[l].disabled||(n=e[l])}null!==n&&(n.selected=!0)}}function Ln(e,n,t){null==n||((n=""+vn(n))!==e.value&&(e.value=n),null!=t)?e.defaultValue=null!=t?""+vn(t):"":e.defaultValue!==n&&(e.defaultValue=n)}function Tn(e,n,t,r){if(null==n){if(null!=r){if(null!=t)throw Error(c(92));if(I(r)){if(1<r.length)throw Error(c(93));r=r[0]}t=r}null==t&&(t=""),n=t}t=vn(n),e.defaultValue=t,(r=e.textContent)===t&&""!==r&&null!==r&&(e.value=r)}function _n(e,n){if(n){var t=e.firstChild;
vendor: 4,144 bytes, line 42
42if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n}var Fn=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Dn(e,n,t){var r=0===n.indexOf("--");null==t||"boolean"==typeof t||""===t?r?e.setProperty(n,""):"float"===n?e.cssFloat="":e[n]="":r?e.setProperty(n,t):"number"!=typeof t||0===t||Fn.has(n)?"float"===n?e.cssFloat=t:e[n]=(""+t).trim():e[n]=t+"px"}function Mn(e,n,t){if(null!=n&&"object"!=typeof n)throw Error(c(62));if(e=e.style,null!=t){for(var r in t)!t.hasOwnProperty(r)||null!=n&&n.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var l in n)r=n[l],n.hasOwnProperty(l)&&t[l]!==r&&Dn(e,l,r)}else for(var a in n)n.hasOwnProperty(a)&&Dn(e,a,n[a])}function On(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var An=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
42-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Rn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function In(e){return Rn.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Un=null;function jn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Vn=null,Hn=null;function Qn(e){var n=Ye(e);if(n&&(e=n.stateNode)){var t=e[je]||null;e:switch(e=n.stateNode,n.type){case"input":if(Cn(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),n=t.name,"radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+xn(""+n)+'"][type="radio"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var l=r[je]||null;if(!l)throw Error(c(90));Cn(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(n=0;n<t.length;n++)(r=t[n]).form===e.form&&wn(r)}break e;case"textarea":Ln(e,t.value,t.defaultValue);break e;case"select":null!=(n=t.value)&&Nn(e,!!t.multiple,n,!1)}}}var $n=!1;function Bn(e,n,t){if($n)return e(n,t);$n=!0;try{return e(n)}finally{if($n=!1,(null!==Vn||null!==Hn)&&(rc(),Vn&&(n=Vn,e=Hn,Hn=Vn=null,Qn(n),e)))for(n=0;n<e.length;n++)Qn(e[n])}}function Wn(e,n){var t=e.stateNode;if(null===t)return null;var r=t[je]||null;if(null===r)return null;t=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(t&&"function"!=typeof t)throw Error(c(231,n,typeof t));return t}var qn=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Kn=!1;if(qn)try{var Yn={};Object.defineProperty(Yn,"passive",{get:function(){Kn=!0}}),window.addEventListener("test",Yn,Yn),window.removeEventListener("test",Yn,Yn)}catch(e){Kn=!1}var Xn=null,Gn=null,Zn=null;function Jn(){if(Zn)return Zn;var e,n,t=Gn,r=t.length,l="value"in Xn?Xn.value:Xn.textContent,a=l.length;for(e=0;e<r&&t[e]===l[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===l[a-n];n++);return Zn=l.slice(e,1<n?1-n:void 0)}function et(e){var n=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function nt(){return!0}function tt(){return!1}function rt(e){function n(n,t,r,l,a){for(var o in this._reactName=n,this._targetInst=r,this.type=t,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(l):l[o]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?nt:tt,this.isPropagationStopped=tt,this}return v(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nt)},persist:function(){},isPersistent:nt}),n}var lt,at,ot,ut={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},it=rt(ut),st=v({},ut,{view:0,detail:0}),ct=rt(st),ft=v({},st,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:St,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,957 bytes, line 42
42Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ot&&(ot&&"mousemove"===e.type?(lt=e.screenX-ot.screenX,at=e.screenY-ot.screenY):at=lt=0,ot=e),lt)},movementY:function(e){return"movementY"in e?e.movementY:at}}),dt=rt(ft),pt=rt(v({},ft,{dataTransfer:0})),mt=rt(v({},st,{relatedTarget:0})),ht=rt(v({},ut,{animationName:0,elapsedTime:0,pseudoElement:0})),gt=rt(v({},ut,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),vt=rt(v({},ut,{data:0})),yt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bt={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wt(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=kt[e])&&!!n[e]}function St(){return wt}var Et=rt(v({},st,{key:function(e){if(e.key){var n=yt[e.key]||e.key;if("Unidentified"!==n)return n}return"keypress"===e.type?13===(e=et(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bt[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:St,charCode:function(e){return"keypress"===e.type?et(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?et(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),xt=rt(v({},ft,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ct=rt(v({},st,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:St})),zt=rt(v({},ut,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pt=rt(v({},ft,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Nt=rt(v({},ut,{newState:0,oldState:0})),Lt=[9,13,27,32],Tt=qn&&"CompositionEvent"in window,_t=null;qn&&"documentMode"in document&&(_t=document.documentMode);var Ft=qn&&"TextEvent"in window&&!_t,Dt=qn&&(!Tt||_t&&8<_t&&11>=_t),Mt=String.fromCharCode(32),Ot=!1;function At(e,n){switch(e){case"keyup":return-1!==Lt.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rt(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var It=!1;function Ut(e,n){switch(e){case"compositionend":return Rt(n);case"keypress":return 32!==n.which?null:(Ot=!0,Mt);case"textInput":return(e=n.data)===Mt&&Ot?null:e;default:return null}}function jt(e,n){if(It)return"compositionend"===e||!Tt&&At(e,n)?(e=Jn(),Zn=Gn=Xn=null,It=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Dt&&"ko"!==n.locale?null:n.data}}var Vt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ht(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!Vt[e.type]:"textarea"===n}function Qt(e,n,t,r){Vn?Hn?Hn.push(r):Hn=[r]:Vn=r,0<(n=sf(n,"onChange")).length&&(t=new it("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var $t=null,Bt=null;function Wt(e){ef(e,0)}function qt(e){if(wn(Xe(e)))return e}function Kt(e,n){if("change"===e)return n}var Yt=!1;if(qn){var Xt;if(qn){var Gt="oninput"in document;if(!Gt){var Zt=document.createElement("div");Zt.setAttribute("oninput","return;"),Gt="function"==typeof Zt.oninput}Xt=Gt}else Xt=!1;Yt=Xt&&(!document.documentMode||9<document.documentMode)}function Jt(){$t&&($t.detachEvent("onpropertychange",er),Bt=$t=null)}function er(e){if("value"===e.propertyName&&qt(Bt)){var n=[];Qt(n,Bt,e,jn(e)),Bn(Wt,n)}}function nr(e,n,t){"focusin"===e?(Jt(),Bt=t,($t=n).attachEvent("onpropertychange",er)):"focusout"===e&&Jt()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qt(Bt)}function rr(e,n){if("click"===e)return qt(n)}function lr(e,n){if("input"===e||"change"===e)return qt(n)}var ar="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n};function or(e,n){if(ar(e,n))return!0;
vendor: 4,877 bytes, line 42
42if("object"!=typeof e||null===e||"object"!=typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var l=t[r];if(!ne.call(n,l)||!ar(e[l],n[l]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ir(e,n){var t,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function sr(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?sr(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function cr(e){for(var n=Sn((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(!t)break;n=Sn((e=n.contentWindow).document)}return n}function fr(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var dr=qn&&"documentMode"in document&&11>=document.documentMode,pr=null,mr=null,hr=null,gr=!1;function vr(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;gr||null==pr||pr!==Sn(r)||("selectionStart"in(r=pr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},hr&&or(hr,r)||(hr=r,0<(r=sf(mr,"onSelect")).length&&(n=new it("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=pr)))}function yr(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var br={animationend:yr("Animation","AnimationEnd"),animationiteration:yr("Animation","AnimationIteration"),animationstart:yr("Animation","AnimationStart"),transitionrun:yr("Transition","TransitionRun"),transitionstart:yr("Transition","TransitionStart"),transitioncancel:yr("Transition","TransitionCancel"),transitionend:yr("Transition","TransitionEnd")},kr={},wr={};function Sr(e){if(kr[e])return kr[e];if(!br[e])return e;var n,t=br[e];for(n in t)if(t.hasOwnProperty(n)&&n in wr)return kr[e]=t[n];return e}qn&&(wr=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);var Er=Sr("animationend"),xr=Sr("animationiteration"),Cr=Sr("animationstart"),zr=Sr("transitionrun"),Pr=Sr("transitionstart"),Nr=Sr("transitioncancel"),Lr=Sr("transitionend"),Tr=new Map,_r="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Fr(e,n){Tr.set(e,n),nn(n,[e])}_r.push("scrollEnd");var Dr=new WeakMap;function Mr(e,n){if("object"==typeof e&&null!==e){var t=Dr.get(e);return void 0!==t?t:(n={value:e,source:n,stack:gn(n)},Dr.set(e,n),n)}return{value:e,source:n,stack:gn(n)}}var Or=[],Ar=0,Rr=0;function Ir(){for(var e=Ar,n=Rr=Ar=0;n<e;){var t=Or[n];Or[n++]=null;var r=Or[n];Or[n++]=null;var l=Or[n];Or[n++]=null;var a=Or[n];if(Or[n++]=null,null!==r&&null!==l){var o=r.pending;null===o?l.next=l:(l.next=o.next,o.next=l),r.pending=l}0!==a&&Hr(t,l,a)}}function Ur(e,n,t,r){Or[Ar++]=e,Or[Ar++]=n,Or[Ar++]=t,Or[Ar++]=r,Rr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function jr(e,n,t,r){return Ur(e,n,t,r),Qr(e)}function Vr(e,n){return Ur(e,null,null,n),Qr(e)}function Hr(e,n,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t);for(var l=!1,a=e.return;null!==a;)a.childLanes|=t,null!==(r=a.alternate)&&(r.childLanes|=t),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(l=!0)),e=a,a=a.return;return 3===e.tag?(a=e.stateNode,l&&null!==n&&(l=31-ye(t),null===(r=(e=a.hiddenUpdates)[l])?e[l]=[n]:r.push(n),n.lane=536870912|t),a):null}function Qr(e){if(50<Ks)throw Ks=0,Ys=null,Error(c(185));for(var n=e.return;null!==n;)n=(e=n).return;return 3===e.tag?e.stateNode:null}var $r={};function Br(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 6,556 bytes, line 42
42ype=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wr(e,n,t,r){return new Br(e,n,t,r)}function qr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Kr(e,n){var t=e.alternate;return null===t?((t=Wr(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=65011712&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function Yr(e,n){e.flags&=65011714;var t=e.alternate;return null===t?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,n=t.dependencies,e.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Xr(e,n,t,r,l,a){var o=0;if(r=e,"function"==typeof e)qr(e)&&(o=1);else if("string"==typeof e)o=fd(e,t,q.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case F:return(e=Wr(31,t,n,l)).elementType=F,e.lanes=a,e;case w:return Gr(t.children,l,a,n);case S:o=8,l|=24;break;case E:return(e=Wr(12,t,n,2|l)).elementType=E,e.lanes=a,e;case N:return(e=Wr(13,t,n,l)).elementType=N,e.lanes=a,e;case L:return(e=Wr(19,t,n,l)).elementType=L,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:case z:o=10;break e;case C:o=9;break e;case P:o=11;break e;case T:o=14;break e;case _:o=16,r=null;break e}o=29,t=Error(c(130,null===e?"null":typeof e,"")),r=null}return(n=Wr(o,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Gr(e,n,t,r){return(e=Wr(7,e,r,n)).lanes=t,e}function Zr(e,n,t){return(e=Wr(6,e,null,n)).lanes=t,e}function Jr(e,n,t){return(n=Wr(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var el=[],nl=0,tl=null,rl=0,ll=[],al=0,ol=null,ul=1,il="";function sl(e,n){el[nl++]=rl,el[nl++]=tl,tl=e,rl=n}function cl(e,n,t){ll[al++]=ul,ll[al++]=il,ll[al++]=ol,ol=e;var r=ul;e=il;var l=32-ye(r)-1;r&=~(1<<l),t+=1;var a=32-ye(n)+l;if(30<a){var o=l-l%5;a=(r&(1<<o)-1).toString(32),r>>=o,l-=o,ul=1<<32-ye(n)+l|t<<l|r,il=a+e}else ul=1<<a|t<<l|r,il=e}function fl(e){null!==e.return&&(sl(e,1),cl(e,1,0))}function dl(e){for(;e===tl;)tl=el[--nl],el[nl]=null,rl=el[--nl],el[nl]=null;for(;e===ol;)ol=ll[--al],ll[al]=null,il=ll[--al],ll[al]=null,ul=ll[--al],ll[al]=null}var pl=null,ml=null,hl=!1,gl=null,vl=!1,yl=Error(c(519));function bl(e){throw Cl(Mr(Error(c(418,"")),e)),yl}function kl(e){var n=e.stateNode,t=e.type,r=e.memoizedProps;switch(n[Ue]=e,n[je]=r,t){case"dialog":nf("cancel",n),nf("close",n);break;case"iframe":case"object":case"embed":nf("load",n);break;case"video":case"audio":for(t=0;t<Zc.length;t++)nf(Zc[t],n);break;case"source":nf("error",n);break;case"img":case"image":case"link":nf("error",n),nf("load",n);break;case"details":nf("toggle",n);break;case"input":nf("invalid",n),zn(n,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),kn(n);break;case"select":nf("invalid",n);break;case"textarea":nf("invalid",n),Tn(n,r.value,r.defaultValue,r.children),kn(n)}"string"!=typeof(t=r.children)&&"number"!=typeof t&&"bigint"!=typeof t||n.textContent===""+t||!0===r.suppressHydrationWarning||hf(n.textContent,t)?(null!=r.popover&&(nf("beforetoggle",n),nf("toggle",n)),null!=r.onScroll&&nf("scroll",n),null!=r.onScrollEnd&&nf("scrollend",n),null!=r.onClick&&(n.onclick=gf),n=!0):n=!1,n||bl(e)}function wl(e){for(pl=e.return;pl;)switch(pl.tag){case 5:case 13:return void(vl=!1);case 27:case 3:return void(vl=!0);default:pl=pl.return}}function Sl(e){if(e!==pl)return!1;if(!hl)return wl(e),hl=!0,!1;var n,t=e.tag;if((n=3!==t&&27!==t)&&((n=5===t)&&(n=!("form"!==(n=e.type)&&"button"!==n)||zf(e.type,e.memoizedProps)),n=!n),n&&ml&&bl(e),wl(e),13===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(c(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType)if("/$"===(n=e.data)){if(0===t){ml=Vf(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++;e=e.nextSibling}ml=null}}else 27===t?(t=ml,Mf(e.type)?(e=Hf,Hf=null,ml=e):ml=t):ml=pl?Vf(e.stateNode.nextSibling):null;return!0}function El(){ml=pl=null,hl=!1}function xl(){var e=gl;return null!==e&&(null===Os?Os=e:Os.push.apply(Os,e),gl=null),e}function Cl(e){null===gl?gl=[e]:gl.push(e)}var zl=$(null),Pl=null,Nl=null;function Ll(e,n,t){W(zl,n._currentValue),n._currentValue=t}function Tl(e){e._currentValue=zl.current,B(zl)}function _l(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Fl(e,n,t,r){var l=e.child;for(null!==l&&(l.return=e);null!==l;){var a=l.dependencies;if(null!==a){var o=l.child;a=a.firstContext;e:for(;null!==a;){var u=a;a=l;for(var i=0;i<n.length;i++)if(u.context===n[i]){a.lanes|=t,null!==(u=a.alternate)&&(u.lanes|=t),_l(a.return,t,e),r||(o=null);break e}a=u.next}}else if(18===l.tag){if(null===(o=l.return))throw Error(c(341));o.lanes|=t,null!==(a=o.alternate)&&(a.lanes|=t),_l(o,t,e),o=null}else o=l.child;if(null!==o)o.return=l;else for(o=l;null!==o;){if(o===e){o=null;break}if(null!==(l=o.sibling)){l.return=o.return,o=l;break}o=o.return}l=o}}function Dl(e,n,t,r){e=null;for(var l=n,a=!1;null!==l;){if(!a)if(524288&l.flags)a=!0;else if(262144&l.flags)break;if(10===l.tag){var o=l.alternate;if(null===o)throw Error(c(387));if(null!==(o=o.memoizedProps)){var u=l.type;ar(l.pendingProps.value,o.value)||(null!==e?e.push(u):e=[u])}}else if(l===X.current){if(null===(o=l.alternate))throw Error(c(387));o.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(null!==e?e.push(wd):e=[wd])}l=l.return}null!==e&&Fl(n,e,t,r),n.flags|=262144}function Ml(e){for(e=e.firstContext;null!==e;){if(!ar(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}
vendor: 18,353 bytes, line 42
42function Ol(e){Pl=e,Nl=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Al(e){return Il(Pl,e)}function Rl(e,n){return null===Pl&&Ol(e),Il(e,n)}function Il(e,n){var t=n._currentValue;if(n={context:n,memoizedValue:t,next:null},null===Nl){if(null===e)throw Error(c(308));Nl=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Nl=Nl.next=n;return t}var Ul="undefined"!=typeof AbortController?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(n,t){e.push(t)}};this.abort=function(){n.aborted=!0,e.forEach(function(e){return e()})}},jl=u.unstable_scheduleCallback,Vl=u.unstable_NormalPriority,Hl={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ql(){return{controller:new Ul,data:new Map,refCount:0}}function $l(e){e.refCount--,0===e.refCount&&jl(Vl,function(){e.controller.abort()})}var Bl=null,Wl=0,ql=0,Kl=null;function Yl(e,n){if(null===Bl){var t=Bl=[];Wl=0,ql=Wc(),Kl={status:"pending",value:void 0,then:function(e){t.push(e)}}}return Wl++,n.then(Xl,Xl),n}function Xl(){if(0===--Wl&&null!==Bl){null!==Kl&&(Kl.status="fulfilled");var e=Bl;Bl=null,ql=0,Kl=null;for(var n=0;n<e.length;n++)(0,e[n])()}}var Gl=U.S;U.S=function(e,n){"object"==typeof n&&null!==n&&"function"==typeof n.then&&Yl(0,n),null!==Gl&&Gl(e,n)};var Zl=$(null);function Jl(){var e=Zl.current;return null!==e?e:bs.pooledCache}function ea(e,n){W(Zl,null===n?Zl.current:n.pool)}function na(){var e=Jl();return null===e?null:{parent:Hl._currentValue,pool:e}}var ta=Error(c(460)),ra=Error(c(474)),la=Error(c(542)),aa={then:function(){}};function oa(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ua(){}function ia(e,n,t){switch(void 0===(t=e[t])?e.push(n):t!==n&&(n.then(ua,ua),n=t),n.status){case"fulfilled":return n.value;case"rejected":throw fa(e=n.reason),e;default:if("string"==typeof n.status)n.then(ua,ua);else{if(null!==(e=bs)&&100<e.shellSuspendCounter)throw Error(c(482));(e=n).status="pending",e.then(function(e){if("pending"===n.status){var t=n;t.status="fulfilled",t.value=e}},function(e){if("pending"===n.status){var t=n;t.status="rejected",t.reason=e}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw fa(e=n.reason),e}throw sa=n,ta}}var sa=null;function ca(){if(null===sa)throw Error(c(459));var e=sa;return sa=null,e}function fa(e){if(e===ta||e===la)throw Error(c(483))}var da=!1;function pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ma(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ga(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ys){var l=r.pending;return null===l?n.next=n:(n.next=l.next,l.next=n),r.pending=n,n=Qr(e),Hr(e,null,t),n}return Ur(e,r,n,t),Qr(e)}function va(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,4194048&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,De(e,t)}}function ya(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var o={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};null===a?l=a=o:a=a.next=o,t=t.next}while(null!==t);null===a?l=a=n:a=a.next=n}else l=a=n;return t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}var ba=!1;function ka(){if(ba){if(null!==Kl)throw Kl}}function wa(e,n,t,r){ba=!1;var l=e.updateQueue;da=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(null!==u){l.shared.pending=null;var i=u,s=i.next;i.next=null,null===o?a=s:o.next=s,o=i;var c=e.alternate;null!==c&&((u=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===u?c.firstBaseUpdate=s:u.next=s,c.lastBaseUpdate=i))}if(null!==a){var f=l.baseState;for(o=0,c=s=i=null,u=a;;){var d=-536870913&u.lane,p=d!==u.lane;if(p?(ws&d)===d:(r&d)===d){0!==d&&d===ql&&(ba=!0),null!==c&&(c=c.next={lane:0,tag:u.tag,payload:u.payload,callback:null,next:null});e:{var m=e,h=u;d=n;var g=t;switch(h.tag){case 1:if("function"==typeof(m=h.payload)){f=m.call(g,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(g,f,d):m))break e;f=v({},f,d);break e;case 2:da=!0}}null!==(d=u.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=l.callbacks)?l.callbacks=[d]:p.push(d))}else p={lane:d,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(s=c=p,i=f):c=c.next=p,o|=d;if(null===(u=u.next)){if(null===(u=l.shared.pending))break;u=(p=u).next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}null===c&&(i=f),l.baseState=i,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null===a&&(l.shared.lanes=0),Ls|=o,e.lanes=o,e.memoizedState=f}}function Sa(e,n){if("function"!=typeof e)throw Error(c(191,e));e.call(n)}function Ea(e,n){var t=e.callbacks;if(null!==t)for(e.callbacks=null,e=0;e<t.length;e++)Sa(t[e],n)}var xa=$(null),Ca=$(0);function za(e,n){W(Ca,e=Ps),W(xa,n),Ps=e|n.baseLanes}function Pa(){W(Ca,Ps),W(xa,xa.current)}function Na(){Ps=Ca.current,B(xa),B(Ca)}var La=0,Ta=null,_a=null,Fa=null,Da=!1,Ma=!1,Oa=!1,Aa=0,Ra=0,Ia=null,Ua=0;function ja(){throw Error(c(321))}function Va(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!ar(e[t],n[t]))return!1;return!0}function Ha(e,n,t,r,l,a){return La=a,Ta=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,U.H=null===e||null===e.memoizedState?lu:au,Oa=!1,a=t(r,l),Oa=!1,Ma&&(a=$a(n,t,r,l)),Qa(e),a}function Qa(e){U.H=ru;var n=null!==_a&&null!==_a.next;if(La=0,Fa=_a=Ta=null,Da=!1,Ra=0,Ia=null,n)throw Error(c(300));null===e||ju||null!==(e=e.dependencies)&&Ml(e)&&(ju=!0)}function $a(e,n,t,r){Ta=e;var l=0;do{if(Ma&&(Ia=null),Ra=0,Ma=!1,25<=l)throw Error(c(301));if(l+=1,Fa=_a=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}U.H=ou,a=n(t,r)}while(Ma);return a}function Ba(){var e=U.H,n=e.useState()[0];return n="function"==typeof n.then?Ga(n):n,e=e.useState()[0],(null!==_a?_a.memoizedState:null)!==e&&(Ta.flags|=1024),n}function Wa(){var e=0!==Aa;return Aa=0,e}function qa(e,n,t){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~t}function Ka(e){if(Da){for(e=e.memoizedState;null!==e;){var n=e.queue;null!==n&&(n.pending=null),e=e.next}Da=!1}La=0,Fa=_a=Ta=null,Ma=!1,Ra=Aa=0,Ia=null}function Ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Fa?Ta.memoizedState=Fa=e:Fa=Fa.next=e,Fa}function Xa(){if(null===_a){var e=Ta.alternate;e=null!==e?e.memoizedState:null}else e=_a.next;var n=null===Fa?Ta.memoizedState:Fa.next;if(null!==n)Fa=n,_a=e;else{if(null===e){if(null===Ta.alternate)throw Error(c(467));throw Error(c(310))}e={memoizedState:(_a=e).memoizedState,baseState:_a.baseState,baseQueue:_a.baseQueue,queue:_a.queue,next:null},null===Fa?Ta.memoizedState=Fa=e:Fa=Fa.next=e}return Fa}function Ga(e){var n=Ra;return Ra+=1,null===Ia&&(Ia=[]),e=ia(Ia,e,n),n=Ta,null===(null===Fa?n.memoizedState:Fa.next)&&(n=n.alternate,U.H=null===n||null===n.memoizedState?lu:au),e}function Za(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Ga(e);if(e.$$typeof===z)return Al(e)}throw Error(c(438,String(e)))}function Ja(e){var n=null,t=Ta.updateQueue;if(null!==t&&(n=t.memoCache),null==n){var r=Ta.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(n={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==n&&(n={data:[],index:0}),null===t&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Ta.updateQueue=t),t.memoCache=n,void 0===(t=n.data[n.index]))for(t=n.data[n.index]=Array(e),r=0;r<e;r++)t[r]=D;return n.index++,t}function eo(e,n){return"function"==typeof n?n(e):n}function no(e){return to(Xa(),_a,e)}function to(e,n,t){var r=e.queue;if(null===r)throw Error(c(311));r.lastRenderedReducer=t;var l=e.baseQueue,a=r.pending;if(null!==a){if(null!==l){var o=l.next;l.next=a.next,a.next=o}n.baseQueue=l=a,r.pending=null}if(a=e.baseState,null===l)e.memoizedState=a;else{var u=o=null,i=null,s=n=l.next,f=!1;do{var d=-536870913&s.lane;if(d!==s.lane?(ws&d)===d:(La&d)===d){var p=s.revertLane;if(0===p)null!==i&&(i=i.next={lane:0,revertLane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),d===ql&&(f=!0);else{if((La&p)===p){s=s.next,p===ql&&(f=!0);continue}d={lane:0,revertLane:s.revertLane,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},null===i?(u=i=d,o=a):i=i.next=d,Ta.lanes|=p,Ls|=p}d=s.action,Oa&&t(a,d),a=s.hasEagerState?s.eagerState:t(a,d)}else p={lane:d,revertLane:s.revertLane,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},null===i?(u=i=p,o=a):i=i.next=p,Ta.lanes|=d,Ls|=d;s=s.next}while(null!==s&&s!==n);if(null===i?o=a:i.next=u,!ar(a,e.memoizedState)&&(ju=!0,f&&null!==(t=Kl)))throw t;e.memoizedState=a,e.baseState=o,e.baseQueue=i,r.lastRenderedState=a}return null===l&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ro(e){var n=Xa(),t=n.queue;if(null===t)throw Error(c(311));t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,a=n.memoizedState;if(null!==l){t.pending=null;var o=l=l.next;do{a=e(a,o.action),o=o.next}while(o!==l);ar(a,n.memoizedState)||(ju=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,r]}function lo(e,n,t){var r=Ta,l=Xa(),a=hl;if(a){if(void 0===t)throw Error(c(407));t=t()}else t=n();var o=!ar((_a||l).memoizedState,t);if(o&&(l.memoizedState=t,ju=!0),l=l.queue,Lo(2048,8,uo.bind(null,r,l,e),[e]),l.getSnapshot!==n||o||null!==Fa&&1&Fa.memoizedState.tag){if(r.flags|=2048,Co(9,zo(),oo.bind(null,r,l,t,n),null),null===bs)throw Error(c(349));a||124&La||ao(r,n,t)}return t}function ao(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=Ta.updateQueue)?(n={lastEffect:null,events:null,stores:null,memoCache:null},Ta.updateQueue=n,n.stores=[e]):null===(t=n.stores)?n.stores=[e]:t.push(e)}function oo(e,n,t,r){n.value=t,n.getSnapshot=r,io(n)&&so(e)}function uo(e,n,t){return t(function(){io(n)&&so(e)})}function io(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!ar(e,t)}catch(e){return!0}}function so(e){var n=Vr(e,2);null!==n&&Zs(n,e,2)}function co(e){var n=Ya();if("function"==typeof e){var t=e;if(e=t(),Oa){ve(!0);try{t()}finally{ve(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e},n}function fo(e,n,t,r){return e.baseState=t,to(e,_a,"function"==typeof r?r:eo)}function po(e,n,t,r,l){if(eu(e))throw Error(c(485));if(null!==(e=n.action)){var a={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==U.T?t(!0):a.isTransition=!1,r(a),null===(t=n.pending)?(a.next=n.pending=a,mo(n,a)):(a.next=t.next,n.pending=t.next=a)}}function mo(e,n){var t=n.action,r=n.payload,l=e.state;if(n.isTransition){var a=U.T,o={};U.T=o;try{var u=t(l,r),i=U.S;null!==i&&i(o,u),ho(e,n,u)}catch(t){vo(e,n,t)}finally{U.T=a}}else try{ho(e,n,a=t(l,r))}catch(t){vo(e,n,t)}}function ho(e,n,t){null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(function(t){go(e,n,t)},function(t){return vo(e,n,t)}):go(e,n,t)}function go(e,n,t){n.status="fulfilled",n.value=t,yo(n),e.state=t,null!==(n=e.pending)&&((t=n.next)===n?e.pending=null:(t=t.next,n.next=t,mo(e,t)))}function vo(e,n,t){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{n.status="rejected",n.reason=t,yo(n),n=n.next}while(n!==r)}e.action=null}function yo(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function bo(e,n){return n}function ko(e,n){if(hl){var t=bs.formState;if(null!==t){e:{var r=Ta;if(hl){if(ml){n:{for(var l=ml,a=vl;8!==l.nodeType;){if(!a){l=null;break n}if(null===(l=Vf(l.nextSibling))){l=null;break n}}l="F!"===(a=l.data)||"F"===a?l:null}if(l){ml=Vf(l.nextSibling),r="F!"===l.data;break e}}bl(r)}r=!1}r&&(n=t[0])}}return(t=Ya()).memoizedState=t.baseState=n,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bo,lastRenderedState:n},t.queue=r,t=Go.bind(null,Ta,r),r.dispatch=t,r=co(!1),a=Jo.bind(null,Ta,!1,r.queue),l={state:n,dispatch:null,action:e,pending:null},(r=Ya()).queue=l,t=po.bind(null,Ta,l,a,t),l.dispatch=t,r.memoizedState=e,[n,t,!1]}function wo(e){return So(Xa(),_a,e)}function So(e,n,t){if(n=to(e,n,bo)[0],e=no(eo)[0],"object"==typeof n&&null!==n&&"function"==typeof n.then)try{var r=Ga(n)}catch(e){if(e===ta)throw la;throw e}else r=n;var l=(n=Xa()).queue,a=l.dispatch;return t!==n.memoizedState&&(Ta.flags|=2048,Co(9,zo(),Eo.bind(null,l,t),null)),[r,a,e]}function Eo(e,n){e.action=n}function xo(e){var n=Xa(),t=_a;if(null!==t)return So(n,t,e);Xa(),n=n.memoizedState;var r=(t=Xa()).queue.dispatch;return t.memoizedState=e,[n,r,!1]}function Co(e,n,t,r){return e={tag:e,create:t,deps:r,inst:n,next:null},null===(n=Ta.updateQueue)&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Ta.updateQueue=n),null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function zo(){return{destroy:void 0,resource:void 0}}function Po(){return Xa().memoizedState}function No(e,n,t,r){var l=Ya();r=void 0===r?null:r,Ta.flags|=e,l.memoizedState=Co(1|n,{destroy:void 0,resource:void 0},t,r)}function Lo(e,n,t,r){var l=Xa();r=void 0===r?null:r;var a=l.memoizedState.inst;null!==_a&&null!==r&&Va(r,_a.memoizedState.deps)?l.memoizedState=Co(n,a,t,r):(Ta.flags|=e,l.memoizedState=Co(1|n,a,t,r))}function To(e,n){No(8390656,8,e,n)}function _o(e,n){Lo(2048,8,e,n)}function Fo(e,n){return Lo(4,2,e,n)}function Do(e,n){return Lo(4,4,e,n)}function Mo(e,n){if("function"==typeof n){e=e();var t=n(e);return function(){"function"==typeof t?t():n(null)}}if(null!=n)return e=e(),n.current=e,function(){n.current=null}}function Oo(e,n,t){t=null!=t?t.concat([e]):null,Lo(4,4,Mo.bind(null,n,e),t)}function Ao(){}function Ro(e,n){var t=Xa();n=void 0===n?null:n;var r=t.memoizedState;return null!==n&&Va(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Io(e,n){var t=Xa();n=void 0===n?null:n;var r=t.memoizedState;if(null!==n&&Va(n,r[1]))return r[0];if(r=e(),Oa){ve(!0);try{e()}finally{ve(!1)}}return t.memoizedState=[r,n],r}function Uo(e,n,t){return void 0===t||1073741824&La?e.memoizedState=n:(e.memoizedState=t,e=Gs(),Ta.lanes|=e,Ls|=e,t)}function jo(e,n,t,r){return ar(t,n)?t:null!==xa.current?(e=Uo(e,t,r),ar(e,n)||(ju=!0),e):42&La?(e=Gs(),Ta.lanes|=e,Ls|=e,n):(ju=!0,e.memoizedState=t)}function Vo(e,n,t,r,l){var a=j.p;j.p=0!==a&&8>a?a:8;var o,u,i,s=U.T,c={};U.T=c,Jo(e,!1,n,t);try{var f=l(),d=U.S;if(null!==d&&d(c,f),null!==f&&"object"==typeof f&&"function"==typeof f.then)Zo(e,n,(o=r,u=[],i={status:"pending",value:null,reason:null,then:function(e){u.push(e)}},f.then(function(){i.status="fulfilled",i.value=o;for(var e=0;e<u.length;e++)(0,u[e])(o)},function(e){for(i.status="rejected",i.reason=e,e=0;e<u.length;e++)(0,u[e])(void 0)}),i),Xs());else Zo(e,n,r,Xs())}catch(t){Zo(e,n,{then:function(){},status:"rejected",reason:t},Xs())}finally{j.p=a,U.T=s}}function Ho(){}function Qo(e,n,t,r){if(5!==e.tag)throw Error(c(476));var l=$o(e).queue;Vo(e,l,n,V,null===t?Ho:function(){return Bo(e),t(r)})}function $o(e){var n=e.memoizedState;if(null!==n)return n;var t={};return(n={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:V},next:null}).next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:t},next:null},e.memoizedState=n,null!==(e=e.alternate)&&(e.memoizedState=n),n}function Bo(e){Zo(e,$o(e).next.queue,{},Xs())}function Wo(){return Al(wd)}function qo(){return Xa().memoizedState}function Ko(){return Xa().memoizedState}function Yo(e){for(var n=e.return;null!==n;){switch(n.tag){case 24:case 3:var t=Xs(),r=ga(n,e=ha(t),t);return null!==r&&(Zs(r,n,t),va(r,n,t)),n={cache:Ql()},void(e.payload=n)}n=n.return}}function Xo(e,n,t){var r=Xs();t={lane:r,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null},eu(e)?nu(n,t):null!==(t=jr(e,n,t,r))&&(Zs(t,e,r),tu(t,n,r))}function Go(e,n,t){Zo(e,n,t,Xs())}function Zo(e,n,t,r){var l={lane:r,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null};if(eu(e))nu(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var o=n.lastRenderedState,u=a(o,t);if(l.hasEagerState=!0,l.eagerState=u,ar(u,o))return Ur(e,n,l,0),null===bs&&Ir(),!1}catch(e){}if(null!==(t=jr(e,n,l,r)))return Zs(t,e,r),tu(t,n,r),!0}return!1}function Jo(e,n,t,r){if(r={lane:2,revertLane:Wc(),action:r,hasEagerState:!1,eagerState:null,next:null},eu(e)){if(n)throw Error(c(479))}else null!==(n=jr(e,t,r,2))&&Zs(n,e,2)}function eu(e){var n=e.alternate;return e===Ta||null!==n&&n===Ta}function nu(e,n){Ma=Da=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function tu(e,n,t){if(4194048&t){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,De(e,t)}}var ru={readContext:Al,use:Za,useCallback:ja,useContext:ja,useEffect:ja,useImperativeHandle:ja,useLayoutEffect:ja,useInsertionEffect:ja,useMemo:ja,useReducer:ja,useRef:ja,useState:ja,useDebugValue:ja,useDeferredValue:ja,useTransition:ja,useSyncExternalStore:ja,useId:ja,useHostTransitionStatus:ja,useFormState:ja,useActionState:ja,useOptimistic:ja,useMemoCache:ja,useCacheRefresh:ja},lu={readContext:Al,use:Za,useCallback:function(e,n){return Ya().memoizedState=[e,void 0===n?null:n],e},useContext:Al,useEffect:To,useImperativeHandle:function(e,n,t){t=null!=t?t.concat([e]):null,No(4194308,4,Mo.bind(null,n,e),t)},useLayoutEffect:function(e,n){return No(4194308,4,e,n)},useInsertionEffect:function(e,n){No(4,2,e,n)},useMemo:function(e,n){var t=Ya();n=void 0===n?null:n;var r=e();if(Oa){ve(!0);try{e()}finally{ve(!1)}}return t.memoizedState=[r,n],r},useReducer:function(e,n,t){var r=Ya();if(void 0!==t){var l=t(n);if(Oa){ve(!0);try{t(n)}finally{ve(!1)}}}else l=n;return r.memoizedState=r.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},r.queue=e,e=e.dispatch=Xo.bind(null,Ta,e),[r.memoizedState,e]}
vendor: 9,353 bytes, line 42
42,useRef:function(e){return e={current:e},Ya().memoizedState=e},useState:function(e){var n=(e=co(e)).queue,t=Go.bind(null,Ta,n);return n.dispatch=t,[e.memoizedState,t]},useDebugValue:Ao,useDeferredValue:function(e,n){return Uo(Ya(),e,n)},useTransition:function(){var e=co(!1);return e=Vo.bind(null,Ta,e.queue,!0,!1),Ya().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,t){var r=Ta,l=Ya();if(hl){if(void 0===t)throw Error(c(407));t=t()}else{if(t=n(),null===bs)throw Error(c(349));124&ws||ao(r,n,t)}l.memoizedState=t;var a={value:t,getSnapshot:n};return l.queue=a,To(uo.bind(null,r,a,e),[e]),r.flags|=2048,Co(9,{destroy:void 0,resource:void 0},oo.bind(null,r,a,t,n),null),t},useId:function(){var e=Ya(),n=bs.identifierPrefix;if(hl){var t=il;n="\xab"+n+"R"+(t=(ul&~(1<<32-ye(ul)-1)).toString(32)+t),0<(t=Aa++)&&(n+="H"+t.toString(32)),n+="\xbb"}else n="\xab"+n+"r"+(t=Ua++).toString(32)+"\xbb";return e.memoizedState=n},useHostTransitionStatus:Wo,useFormState:ko,useActionState:ko,useOptimistic:function(e){var n=Ya();n.memoizedState=n.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=t,n=Jo.bind(null,Ta,!0,t),t.dispatch=n,[e,n]},useMemoCache:Ja,useCacheRefresh:function(){return Ya().memoizedState=Yo.bind(null,Ta)}},au={readContext:Al,use:Za,useCallback:Ro,useContext:Al,useEffect:_o,useImperativeHandle:Oo,useInsertionEffect:Fo,useLayoutEffect:Do,useMemo:Io,useReducer:no,useRef:Po,useState:function(){return no(eo)},useDebugValue:Ao,useDeferredValue:function(e,n){return jo(Xa(),_a.memoizedState,e,n)},useTransition:function(){var e=no(eo)[0],n=Xa().memoizedState;return["boolean"==typeof e?e:Ga(e),n]},useSyncExternalStore:lo,useId:qo,useHostTransitionStatus:Wo,useFormState:wo,useActionState:wo,useOptimistic:function(e,n){return fo(Xa(),0,e,n)},useMemoCache:Ja,useCacheRefresh:Ko},ou={readContext:Al,use:Za,useCallback:Ro,useContext:Al,useEffect:_o,useImperativeHandle:Oo,useInsertionEffect:Fo,useLayoutEffect:Do,useMemo:Io,useReducer:ro,useRef:Po,useState:function(){return ro(eo)},useDebugValue:Ao,useDeferredValue:function(e,n){var t=Xa();return null===_a?Uo(t,e,n):jo(t,_a.memoizedState,e,n)},useTransition:function(){var e=ro(eo)[0],n=Xa().memoizedState;return["boolean"==typeof e?e:Ga(e),n]},useSyncExternalStore:lo,useId:qo,useHostTransitionStatus:Wo,useFormState:xo,useActionState:xo,useOptimistic:function(e,n){var t=Xa();return null!==_a?fo(t,0,e,n):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:Ja,useCacheRefresh:Ko},uu=null,iu=0;function su(e){var n=iu;return iu+=1,null===uu&&(uu=[]),ia(uu,e,n)}function cu(e,n){n=n.props.ref,e.ref=void 0!==n?n:null}function fu(e,n){if(n.$$typeof===y)throw Error(c(525));throw e=Object.prototype.toString.call(n),Error(c(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function du(e){return(0,e._init)(e._payload)}function pu(e){function n(n,t){if(e){var r=n.deletions;null===r?(n.deletions=[t],n.flags|=16):r.push(t)}}function t(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function r(e){for(var n=new Map;null!==e;)null!==e.key?n.set(e.key,e):n.set(e.index,e),e=e.sibling;return n}function l(e,n){return(e=Kr(e,n)).index=0,e.sibling=null,e}function a(n,t,r){return n.index=r,e?null!==(r=n.alternate)?(r=r.index)<t?(n.flags|=67108866,t):r:(n.flags|=67108866,t):(n.flags|=1048576,t)}function o(n){return e&&null===n.alternate&&(n.flags|=67108866),n}function u(e,n,t,r){return null===n||6!==n.tag?((n=Zr(t,e.mode,r)).return=e,n):((n=l(n,t)).return=e,n)}function i(e,n,t,r){var a=t.type;return a===w?f(e,n,t.props.children,r,t.key):null!==n&&(n.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===_&&du(a)===n.type)?(cu(n=l(n,t.props),t),n.return=e,n):(cu(n=Xr(t.type,t.key,t.props,null,e.mode,r),t),n.return=e,n)}function s(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?((n=Jr(t,e.mode,r)).return=e,n):((n=l(n,t.children||[])).return=e,n)}function f(e,n,t,r,a){return null===n||7!==n.tag?((n=Gr(t,e.mode,r,a)).return=e,n):((n=l(n,t)).return=e,n)}function d(e,n,t){if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return(n=Zr(""+n,e.mode,t)).return=e,n;if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return cu(t=Xr(n.type,n.key,n.props,null,e.mode,t),n),t.return=e,t;case k:return(n=Jr(n,e.mode,t)).return=e,n;case _:return d(e,n=(0,n._init)(n._payload),t)}if(I(n)||O(n))return(n=Gr(n,e.mode,t,null)).return=e,n;if("function"==typeof n.then)return d(e,su(n),t);if(n.$$typeof===z)return d(e,Rl(e,n),t);fu(e,n)}return null}function p(e,n,t,r){var l=null!==n?n.key:null;if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return null!==l?null:u(e,n,""+t,r);if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return t.key===l?i(e,n,t,r):null;case k:return t.key===l?s(e,n,t,r):null;case _:return p(e,n,t=(l=t._init)(t._payload),r)}if(I(t)||O(t))return null!==l?null:f(e,n,t,r,null);if("function"==typeof t.then)return p(e,n,su(t),r);if(t.$$typeof===z)return p(e,n,Rl(e,t),r);fu(e,t)}return null}function m(e,n,t,r,l){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return u(n,e=e.get(t)||null,""+r,l);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return i(n,e=e.get(null===r.key?t:r.key)||null,r,l);case k:return s(n,e=e.get(null===r.key?t:r.key)||null,r,l);case _:return m(e,n,t,r=(0,r._init)(r._payload),l)}if(I(r)||O(r))return f(n,e=e.get(t)||null,r,l,null);if("function"==typeof r.then)return m(e,n,t,su(r),l);if(r.$$typeof===z)return m(e,n,t,Rl(n,r),l);fu(n,r)}return null}function h(l,o,u,i){for(var s=null,c=null,f=o,h=o=0,g=null;null!==f&&h<u.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var v=p(l,f,u[h],i);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(l,f),o=a(v,o,h),null===c?s=v:c.sibling=v,c=v,f=g}if(h===u.length)return t(l,f),hl&&sl(l,h),s;if(null===f){for(;h<u.length;h++)null!==(f=d(l,u[h],i))&&(o=a(f,o,h),null===c?s=f:c.sibling=f,c=f);return hl&&sl(l,h),s}for(f=r(f);h<u.length;h++)null!==(g=m(f,l,h,u[h],i))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),o=a(g,o,h),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return n(l,e)}),hl&&sl(l,h),s}function g(l,o,u,i){if(null==u)throw Error(c(151));for(var s=null,f=null,h=o,g=o=0,v=null,y=u.next();null!==h&&!y.done;g++,y=u.next()){h.index>g?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,i);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&n(l,h),o=a(b,o,g),null===f?s=b:f.sibling=b,f=b,h=v}if(y.done)return t(l,h),hl&&sl(l,g),s;if(null===h){for(;!y.done;g++,y=u.next())null!==(y=d(l,y.value,i))&&(o=a(y,o,g),null===f?s=y:f.sibling=y,f=y);return hl&&sl(l,g),s}for(h=r(h);!y.done;g++,y=u.next())null!==(y=m(h,l,g,y.value,i))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),o=a(y,o,g),null===f?s=y:f.sibling=y,f=y);return e&&h.forEach(function(e){return n(l,e)}),hl&&sl(l,g),s}function v(e,r,a,u){if("object"==typeof a&&null!==a&&a.type===w&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case b:e:{for(var i=a.key;null!==r;){if(r.key===i){if((i=a.type)===w){if(7===r.tag){t(e,r.sibling),(u=l(r,a.props.children)).return=e,e=u;break e}}else if(r.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===_&&du(i)===r.type){t(e,r.sibling),cu(u=l(r,a.props),a),u.return=e,e=u;break e}t(e,r);break}n(e,r),r=r.sibling}a.type===w?((u=Gr(a.props.children,e.mode,u,a.key)).return=e,e=u):(cu(u=Xr(a.type,a.key,a.props,null,e.mode,u),a),u.return=e,e=u)}return o(e);case k:e:{for(i=a.key;null!==r;){if(r.key===i){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(u=l(r,a.children||[])).return=e,e=u;break e}t(e,r);break}n(e,r),r=r.sibling}(u=Jr(a,e.mode,u)).return=e,e=u}return o(e);case _:return v(e,r,a=(i=a._init)(a._payload),u)}if(I(a))return h(e,r,a,u);if(O(a)){if("function"!=typeof(i=O(a)))throw Error(c(150));return g(e,r,a=i.call(a),u)}if("function"==typeof a.then)return v(e,r,su(a),u);if(a.$$typeof===z)return v(e,r,Rl(e,a),u);fu(e,a)}return"string"==typeof a&&""!==a||"number"==typeof a||"bigint"==typeof a?(a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(u=l(r,a)).return=e,e=u):(t(e,r),(u=Zr(a,e.mode,u)).return=e,e=u),o(e)):t(e,r)}return function(e,n,t,r){try{iu=0;var l=v(e,n,t,r);return uu=null,l}catch(n){if(n===ta||n===la)throw n;var a=Wr(29,n,null,e.mode);return a.lanes=r,a.return=e,a}}}var mu=pu(!0),hu=pu(!1),gu=$(null),vu=null;function yu(e){var n=e.alternate;W(Su,1&Su.current),W(gu,e),null===vu&&(null===n||null!==xa.current||null!==n.memoizedState)&&(vu=e)}function bu(e){if(22===e.tag){if(W(Su,Su.current),W(gu,e),null===vu){var n=e.alternate;null!==n&&null!==n.memoizedState&&(vu=e)}}else ku()}function ku(){W(Su,Su.current),W(gu,gu.current)}function wu(e){B(gu),vu===e&&(vu=null),B(Su)}var Su=$(0);function Eu(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||Uf(t)))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(128&n.flags)return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}
vendor: 4,194 bytes, line 42
42function xu(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:v({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var Cu={enqueueSetState:function(e,n,t){e=e._reactInternals;var r=Xs(),l=ha(r);l.payload=n,null!=t&&(l.callback=t),null!==(n=ga(e,l,r))&&(Zs(n,e,r),va(n,e,r))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=Xs(),l=ha(r);l.tag=1,l.payload=n,null!=t&&(l.callback=t),null!==(n=ga(e,l,r))&&(Zs(n,e,r),va(n,e,r))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=Xs(),r=ha(t);r.tag=2,null!=n&&(r.callback=n),null!==(n=ga(e,r,t))&&(Zs(n,e,t),va(n,e,t))}};function zu(e,n,t,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!n.prototype||!n.prototype.isPureReactComponent||(!or(t,r)||!or(l,a))}function Pu(e,n,t,r){e=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&Cu.enqueueReplaceState(n,n.state,null)}function Nu(e,n){var t=n;if("ref"in n)for(var r in t={},n)"ref"!==r&&(t[r]=n[r]);if(e=e.defaultProps)for(var l in t===n&&(t=v({},t)),e)void 0===t[l]&&(t[l]=e[l]);return t}var Lu="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function Tu(e){Lu(e)}function _u(e){console.error(e)}function Fu(e){Lu(e)}function Du(e,n){try{(0,e.onUncaughtError)(n.value,{componentStack:n.stack})}catch(e){setTimeout(function(){throw e})}}function Mu(e,n,t){try{(0,e.onCaughtError)(t.value,{componentStack:t.stack,errorBoundary:1===n.tag?n.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ou(e,n,t){return(t=ha(t)).tag=3,t.payload={element:null},t.callback=function(){Du(e,n)},t}function Au(e){return(e=ha(e)).tag=3,e}function Ru(e,n,t,r){var l=t.type.getDerivedStateFromError;if("function"==typeof l){var a=r.value;e.payload=function(){return l(a)},e.callback=function(){Mu(n,t,r)}}var o=t.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){Mu(n,t,r),"function"!=typeof l&&(null===js?js=new Set([this]):js.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}function Iu(e,n,t,r,l){if(t.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(n=t.alternate)&&Dl(n,t,l,!0),null!==(t=gu.current)){switch(t.tag){case 13:return null===vu?sc():null===t.alternate&&0===Ns&&(Ns=3),t.flags&=-257,t.flags|=65536,t.lanes=l,r===aa?t.flags|=16384:(null===(n=t.updateQueue)?t.updateQueue=new Set([r]):n.add(r),Nc(e,r,l)),!1;case 22:return t.flags|=65536,r===aa?t.flags|=16384:(null===(n=t.updateQueue)?(n={transitions:null,markerInstances:null,retryQueue:new Set([r])},t.updateQueue=n):null===(t=n.retryQueue)?n.retryQueue=new Set([r]):t.add(r),Nc(e,r,l)),!1}throw Error(c(435,t.tag))}return Nc(e,r,l),sc(),!1}if(hl)return null!==(n=gu.current)?(!(65536&n.flags)&&(n.flags|=256),n.flags|=65536,n.lanes=l,r!==yl&&Cl(Mr(e=Error(c(422),{cause:r}),t))):(r!==yl&&Cl(Mr(n=Error(c(423),{cause:r}),t)),(e=e.current.alternate).flags|=65536,l&=-l,e.lanes|=l,r=Mr(r,t),ya(e,l=Ou(e.stateNode,r,l)),4!==Ns&&(Ns=2)),!1;var a=Error(c(520),{cause:r});if(a=Mr(a,t),null===Ms?Ms=[a]:Ms.push(a),4!==Ns&&(Ns=2),null===n)return!0;r=Mr(r,t),t=n;do{switch(t.tag){case 3:return t.flags|=65536,e=l&-l,t.lanes|=e,ya(t,e=Ou(t.stateNode,r,e)),!1;case 1:if(n=t.type,a=t.stateNode,!(128&t.flags||"function"!=typeof n.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==js&&js.has(a))))return t.flags|=65536,l&=-l,t.lanes|=l,Ru(l=Au(l),e,t,r),ya(t,l),!1}t=t.return}while(null!==t);return!1}var Uu=Error(c(461)),ju=!1;function Vu(e,n,t,r){n.child=null===e?hu(n,null,t,r):mu(n,e.child,t,r)}function Hu(e,n,t,r,l){t=t.render;var a=n.ref;if("ref"in r){var o={};
vendor: 4,602 bytes, line 42
42for(var u in r)"ref"!==u&&(o[u]=r[u])}else o=r;return Ol(n),r=Ha(e,n,t,o,a,l),u=Wa(),null===e||ju?(hl&&u&&fl(n),n.flags|=1,Vu(e,n,r,l),n.child):(qa(e,n,l),ii(e,n,l))}function Qu(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||qr(a)||void 0!==a.defaultProps||null!==t.compare?((e=Xr(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,$u(e,n,a,r,l))}if(a=e.child,!si(e,l)){var o=a.memoizedProps;if((t=null!==(t=t.compare)?t:or)(o,r)&&e.ref===n.ref)return ii(e,n,l)}return n.flags|=1,(e=Kr(a,r)).ref=n.ref,e.return=n,n.child=e}function $u(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(or(a,r)&&e.ref===n.ref){if(ju=!1,n.pendingProps=r=a,!si(e,l))return n.lanes=e.lanes,ii(e,n,l);131072&e.flags&&(ju=!0)}}return Ku(e,n,t,r,l)}function Bu(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&n.flags){if(r=null!==a?a.baseLanes|t:t,null!==e){for(l=n.child=e.child,a=0;null!==l;)a=a|l.lanes|l.childLanes,l=l.sibling;n.childLanes=a&~r}else n.childLanes=0,n.child=null;return Wu(e,n,r,t)}if(!(536870912&t))return n.lanes=n.childLanes=536870912,Wu(e,n,null!==a?a.baseLanes|t:t,t);n.memoizedState={baseLanes:0,cachePool:null},null!==e&&ea(0,null!==a?a.cachePool:null),null!==a?za(n,a):Pa(),bu(n)}else null!==a?(ea(0,a.cachePool),za(n,a),ku(),n.memoizedState=null):(null!==e&&ea(0,null),Pa(),ku());return Vu(e,n,l,t),n.child}function Wu(e,n,t,r){var l=Jl();return l=null===l?null:{parent:Hl._currentValue,pool:l},n.memoizedState={baseLanes:t,cachePool:l},null!==e&&ea(0,null),Pa(),bu(n),null!==e&&Dl(e,n,r,!0),null}function qu(e,n){var t=n.ref;if(null===t)null!==e&&null!==e.ref&&(n.flags|=4194816);else{if("function"!=typeof t&&"object"!=typeof t)throw Error(c(284));null!==e&&e.ref===t||(n.flags|=4194816)}}function Ku(e,n,t,r,l){return Ol(n),t=Ha(e,n,t,r,void 0,l),r=Wa(),null===e||ju?(hl&&r&&fl(n),n.flags|=1,Vu(e,n,t,l),n.child):(qa(e,n,l),ii(e,n,l))}function Yu(e,n,t,r,l,a){return Ol(n),n.updateQueue=null,t=$a(n,r,t,l),Qa(e),r=Wa(),null===e||ju?(hl&&r&&fl(n),n.flags|=1,Vu(e,n,t,a),n.child):(qa(e,n,a),ii(e,n,a))}function Xu(e,n,t,r,l){if(Ol(n),null===n.stateNode){var a=$r,o=t.contextType;"object"==typeof o&&null!==o&&(a=Al(o)),a=new t(r,a),n.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=Cu,n.stateNode=a,a._reactInternals=n,(a=n.stateNode).props=r,a.state=n.memoizedState,a.refs={},pa(n),o=t.contextType,a.context="object"==typeof o&&null!==o?Al(o):$r,a.state=n.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(xu(n,t,o,r),a.state=n.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(o=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),o!==a.state&&Cu.enqueueReplaceState(a,a.state,null),wa(n,r,a,l),ka(),a.state=n.memoizedState),"function"==typeof a.componentDidMount&&(n.flags|=4194308),r=!0}else if(null===e){a=n.stateNode;var u=n.memoizedProps,i=Nu(t,u);a.props=i;var s=a.context,c=t.contextType;o=$r,"object"==typeof c&&null!==c&&(o=Al(c));var f=t.getDerivedStateFromProps;c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate,u=n.pendingProps!==u,c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u||s!==o)&&Pu(n,a,r,o),da=!1;var d=n.memoizedState;a.state=d,wa(n,r,a,l),ka(),s=n.memoizedState,u||d!==s||da?("function"==typeof f&&(xu(n,t,f,r),s=n.memoizedState),(i=da||zu(n,t,i,r,d,s,o))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(n.flags|=4194308)):("function"==typeof a.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=s),a.props=r,a.state=s,a.context=o,r=i):("function"==typeof a.componentDidMount&&(n.flags|=4194308),r=!1)}else{a=n.stateNode,ma(e,n),c=Nu(t,o=n.memoizedProps),a.props=c,f=n.pendingProps,d=a.context,s=t.contextType,i=$r,"object"==typeof s&&null!==s&&(i=Al(s)),(s="function"==typeof(u=t.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==f||d!==i)&&Pu(n,a,r,i),da=!1,d=n.memoizedState,a.state=d,wa(n,r,a,l),ka();var p=n.memoizedState;
vendor: 13,549 bytes, line 42
42o!==f||d!==p||da||null!==e&&null!==e.dependencies&&Ml(e.dependencies)?("function"==typeof u&&(xu(n,t,u,r),p=n.memoizedState),(c=da||zu(n,t,c,r,d,p,i)||null!==e&&null!==e.dependencies&&Ml(e.dependencies))?(s||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,i),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,i)),"function"==typeof a.componentDidUpdate&&(n.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=p),a.props=r,a.state=p,a.context=i,r=c):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return a=r,qu(e,n),r=!!(128&n.flags),a||r?(a=n.stateNode,t=r&&"function"!=typeof t.getDerivedStateFromError?null:a.render(),n.flags|=1,null!==e&&r?(n.child=mu(n,e.child,null,l),n.child=mu(n,null,t,l)):Vu(e,n,t,l),n.memoizedState=a.state,e=n.child):e=ii(e,n,l),e}function Gu(e,n,t,r){return El(),n.flags|=256,Vu(e,n,t,r),n.child}var Zu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ju(e){return{baseLanes:e,cachePool:na()}}function ei(e,n,t){return e=null!==e?e.childLanes&~t:0,n&&(e|=Fs),e}function ni(e,n,t){var r,l=n.pendingProps,a=!1,o=!!(128&n.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&!!(2&Su.current)),r&&(a=!0,n.flags&=-129),r=!!(32&n.flags),n.flags&=-33,null===e){if(hl){if(a?yu(n):ku(),hl){var u,i=ml;if(u=i){e:{for(u=i,i=vl;8!==u.nodeType;){if(!i){i=null;break e}if(null===(u=Vf(u.nextSibling))){i=null;break e}}i=u}null!==i?(n.memoizedState={dehydrated:i,treeContext:null!==ol?{id:ul,overflow:il}:null,retryLane:536870912,hydrationErrors:null},(u=Wr(18,null,null,0)).stateNode=i,u.return=n,n.child=u,pl=n,ml=null,u=!0):u=!1}u||bl(n)}if(null!==(i=n.memoizedState)&&null!==(i=i.dehydrated))return Uf(i)?n.lanes=32:n.lanes=536870912,null;wu(n)}return i=l.children,l=l.fallback,a?(ku(),i=ri({mode:"hidden",children:i},a=n.mode),l=Gr(l,a,t,null),i.return=n,l.return=n,i.sibling=l,n.child=i,(a=n.child).memoizedState=Ju(t),a.childLanes=ei(e,r,t),n.memoizedState=Zu,l):(yu(n),ti(n,i))}if(null!==(u=e.memoizedState)&&null!==(i=u.dehydrated)){if(o)256&n.flags?(yu(n),n.flags&=-257,n=li(e,n,t)):null!==n.memoizedState?(ku(),n.child=e.child,n.flags|=128,n=null):(ku(),a=l.fallback,i=n.mode,l=ri({mode:"visible",children:l.children},i),(a=Gr(a,i,t,null)).flags|=2,l.return=n,a.return=n,l.sibling=a,n.child=l,mu(n,e.child,null,t),(l=n.child).memoizedState=Ju(t),l.childLanes=ei(e,r,t),n.memoizedState=Zu,n=a);else if(yu(n),Uf(i)){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;r=s,(l=Error(c(419))).stack="",l.digest=r,Cl({value:l,source:null,stack:null}),n=li(e,n,t)}else if(ju||Dl(e,n,t,!1),r=0!==(t&e.childLanes),ju||r){if(null!==(r=bs)&&(0!==(l=0!==((l=42&(l=t&-t)?1:Me(l))&(r.suspendedLanes|t))?0:l)&&l!==u.retryLane))throw u.retryLane=l,Vr(e,l),Zs(r,e,l),Uu;"$?"===i.data||sc(),n=li(e,n,t)}else"$?"===i.data?(n.flags|=192,n.child=e.child,n=null):(e=u.treeContext,ml=Vf(i.nextSibling),pl=n,hl=!0,gl=null,vl=!1,null!==e&&(ll[al++]=ul,ll[al++]=il,ll[al++]=ol,ul=e.id,il=e.overflow,ol=n),(n=ti(n,l.children)).flags|=4096);return n}return a?(ku(),a=l.fallback,i=n.mode,s=(u=e.child).sibling,(l=Kr(u,{mode:"hidden",children:l.children})).subtreeFlags=65011712&u.subtreeFlags,null!==s?a=Kr(s,a):(a=Gr(a,i,t,null)).flags|=2,a.return=n,l.return=n,l.sibling=a,n.child=l,l=a,a=n.child,null===(i=e.child.memoizedState)?i=Ju(t):(null!==(u=i.cachePool)?(s=Hl._currentValue,u=u.parent!==s?{parent:s,pool:s}:u):u=na(),i={baseLanes:i.baseLanes|t,cachePool:u}),a.memoizedState=i,a.childLanes=ei(e,r,t),n.memoizedState=Zu,l):(yu(n),e=(t=e.child).sibling,(t=Kr(t,{mode:"visible",children:l.children})).return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t,n.memoizedState=null,t)}function ti(e,n){return(n=ri({mode:"visible",children:n},e.mode)).return=e,e.child=n}function ri(e,n){return(e=Wr(22,e,null,n)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function li(e,n,t){return mu(n,e.child,null,t),(e=ti(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function ai(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),_l(e.return,n,t)}function oi(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function ui(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(Vu(e,n,r.children,t),2&(r=Su.current))r=1&r|2,n.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ai(e,t,n);else if(19===e.tag)ai(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(W(Su,r),l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===Eu(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),oi(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Eu(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}oi(n,!0,t,null,a);break;case"together":oi(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ii(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Ls|=n.lanes,0===(t&n.childLanes)){if(null===e)return null;if(Dl(e,n,t,!1),0===(t&n.childLanes))return null}if(null!==e&&n.child!==e.child)throw Error(c(153));if(null!==n.child){for(t=Kr(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Kr(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function si(e,n){return 0!==(e.lanes&n)||!(null===(e=e.dependencies)||!Ml(e))}function ci(e,n,t){switch(n.tag){case 3:G(n,n.stateNode.containerInfo),Ll(0,Hl,e.memoizedState.cache),El();break;case 27:case 5:J(n);break;case 4:G(n,n.stateNode.containerInfo);break;case 10:Ll(0,n.type,n.memoizedProps.value);break;case 13:var r=n.memoizedState;if(null!==r)return null!==r.dehydrated?(yu(n),n.flags|=128,null):0!==(t&n.child.childLanes)?ni(e,n,t):(yu(n),null!==(e=ii(e,n,t))?e.sibling:null);yu(n);break;case 19:var l=!!(128&e.flags);if((r=0!==(t&n.childLanes))||(Dl(e,n,t,!1),r=0!==(t&n.childLanes)),l){if(r)return ui(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),W(Su,Su.current),r)break;return null;case 22:case 23:return n.lanes=0,Bu(e,n,t);case 24:Ll(0,Hl,e.memoizedState.cache)}return ii(e,n,t)}function fi(e,n,t){if(null!==e)if(e.memoizedProps!==n.pendingProps)ju=!0;else{if(!(si(e,t)||128&n.flags))return ju=!1,ci(e,n,t);ju=!!(131072&e.flags)}else ju=!1,hl&&1048576&n.flags&&cl(n,rl,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var r=n.elementType,l=r._init;if(r=l(r._payload),n.type=r,"function"!=typeof r){if(null!=r){if((l=r.$$typeof)===P){n.tag=11,n=Hu(null,n,r,e,t);break e}if(l===T){n.tag=14,n=Qu(null,n,r,e,t);break e}}throw n=R(r)||r,Error(c(306,n,""))}qr(r)?(e=Nu(r,e),n.tag=1,n=Xu(null,n,r,e,t)):(n.tag=0,n=Ku(null,n,r,e,t))}return n;case 0:return Ku(e,n,n.type,n.pendingProps,t);case 1:return Xu(e,n,r=n.type,l=Nu(r,n.pendingProps),t);case 3:e:{if(G(n,n.stateNode.containerInfo),null===e)throw Error(c(387));r=n.pendingProps;var a=n.memoizedState;l=a.element,ma(e,n),wa(n,r,null,t);var o=n.memoizedState;if(r=o.cache,Ll(0,Hl,r),r!==a.cache&&Fl(n,[Hl],t,!0),ka(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},n.updateQueue.baseState=a,n.memoizedState=a,256&n.flags){n=Gu(e,n,r,t);break e}if(r!==l){Cl(l=Mr(Error(c(424)),n)),n=Gu(e,n,r,t);break e}if(9===(e=n.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(ml=Vf(e.firstChild),pl=n,hl=!0,gl=null,vl=!0,t=hu(n,null,r,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(El(),r===l){n=ii(e,n,t);break e}Vu(e,n,r,t)}n=n.child}return n;case 26:return qu(e,n),null===e?(t=Zf(n.type,null,n.pendingProps,null))?n.memoizedState=t:hl||(t=n.type,e=n.pendingProps,(r=Ef(Y.current).createElement(t))[Ue]=n,r[je]=e,bf(r,t,e),Ze(r),n.stateNode=r):n.memoizedState=Zf(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return J(n),null===e&&hl&&(r=n.stateNode=$f(n.type,n.pendingProps,Y.current),pl=n,vl=!0,l=ml,Mf(n.type)?(Hf=l,ml=Vf(r.firstChild)):ml=l),Vu(e,n,n.pendingProps.children,t),qu(e,n),null===e&&(n.flags|=4194304),n.child;case 5:return null===e&&hl&&((l=r=ml)&&(null!==(r=Rf(r,n.type,n.pendingProps,vl))?(n.stateNode=r,pl=n,ml=Vf(r.firstChild),vl=!1,l=!0):l=!1),l||bl(n)),J(n),l=n.type,a=n.pendingProps,o=null!==e?e.memoizedProps:null,r=a.children,zf(l,a)?r=null:null!==o&&zf(l,o)&&(n.flags|=32),null!==n.memoizedState&&(l=Ha(e,n,Ba,null,null,t),wd._currentValue=l),qu(e,n),Vu(e,n,r,t),n.child;case 6:return null===e&&hl&&((e=t=ml)&&(null!==(t=If(t,n.pendingProps,vl))?(n.stateNode=t,pl=n,ml=null,e=!0):e=!1),e||bl(n)),null;case 13:return ni(e,n,t);case 4:return G(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=mu(n,null,r,t):Vu(e,n,r,t),n.child;case 11:return Hu(e,n,n.type,n.pendingProps,t);case 7:return Vu(e,n,n.pendingProps,t),n.child;case 8:case 12:return Vu(e,n,n.pendingProps.children,t),n.child;case 10:return r=n.pendingProps,Ll(0,n.type,r.value),Vu(e,n,r.children,t),n.child;case 9:return l=n.type._context,r=n.pendingProps.children,Ol(n),r=r(l=Al(l)),n.flags|=1,Vu(e,n,r,t),n.child;case 14:return Qu(e,n,n.type,n.pendingProps,t);case 15:return $u(e,n,n.type,n.pendingProps,t);case 19:return ui(e,n,t);case 31:return r=n.pendingProps,t=n.mode,r={mode:r.mode,children:r.children},null===e?((t=ri(r,t)).ref=n.ref,n.child=t,t.return=n,n=t):((t=Kr(e.child,r)).ref=n.ref,n.child=t,t.return=n,n=t),n;case 22:return Bu(e,n,t);case 24:return Ol(n),r=Al(Hl),null===e?(null===(l=Jl())&&(l=bs,a=Ql(),l.pooledCache=a,a.refCount++,null!==a&&(l.pooledCacheLanes|=t),l=a),n.memoizedState={parent:r,cache:l},pa(n),Ll(0,Hl,l)):(0!==(e.lanes&t)&&(ma(e,n),wa(n,null,null,t),ka()),l=e.memoizedState,a=n.memoizedState,l.parent!==r?(l={parent:r,cache:r},n.memoizedState=l,0===n.lanes&&(n.memoizedState=n.updateQueue.baseState=l),Ll(0,Hl,r)):(r=a.cache,Ll(0,Hl,r),r!==l.cache&&Fl(n,[Hl],t,!0))),Vu(e,n,n.pendingProps.children,t),n.child;case 29:throw n.pendingProps}throw Error(c(156,n.tag))}function di(e){e.flags|=4}function pi(e,n){if("stylesheet"!==n.type||4&n.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!dd(n)){if(null!==(n=gu.current)&&((4194048&ws)===ws?null!==vu:(62914560&ws)!==ws&&!(536870912&ws)||n!==vu))throw sa=aa,ra;e.flags|=8192}}function mi(e,n){null!==n&&(e.flags|=4),16384&e.flags&&(n=22!==e.tag?Ne():536870912,e.lanes|=n,Ds|=n)}function hi(e,n){if(!hl)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function gi(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=65011712&l.subtreeFlags,r|=65011712&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function vi(e,n,t){var r=n.pendingProps;switch(dl(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return gi(n),null;case 3:return t=n.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),Tl(Hl),Z(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||(Sl(n)?di(n):null===e||e.memoizedState.isDehydrated&&!(256&n.flags)||(n.flags|=1024,xl())),gi(n),null;case 26:return t=n.memoizedState,null===e?(di(n),null!==t?(gi(n),pi(n,t)):(gi(n),n.flags&=-16777217)):t?t!==e.memoizedState?(di(n),gi(n),pi(n,t)):(gi(n),n.flags&=-16777217):(e.memoizedProps!==r&&di(n),gi(n),n.flags&=-16777217),null;case 27:ee(n),t=Y.current;var l=n.type;if(null!==e&&null!=n.stateNode)e.memoizedProps!==r&&di(n);else{if(!r){if(null===n.stateNode)throw Error(c(166));return gi(n),null}e=q.current,Sl(n)?kl(n):(e=$f(l,r,t),n.stateNode=e,di(n))}return gi(n),null;case 5:if(ee(n),t=n.type,null!==e&&null!=n.stateNode)e.memoizedProps!==r&&di(n);else{if(!r){if(null===n.stateNode)throw Error(c(166));return gi(n),null}if(e=q.current,Sl(n))kl(n);else{switch(l=Ef(Y.current),e){case 1:e=l.createElementNS("http://www.w3.org/2000/svg",t);break;case 2:e=l.createElementNS("http://www.w3.org/1998/Math/MathML",t);break;default:switch(t){case"svg":e=l.createElementNS("http://www.w3.org/2000/svg",t);break;case"math":e=l.createElementNS("http://www.w3.org/1998/Math/MathML",t);break;case"script":(e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}
vendor: 4,794 bytes, line 42
42):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(t,{is:r.is}):l.createElement(t)}}e[Ue]=n,e[je]=r;e:for(l=n.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break e;for(;null===l.sibling;){if(null===l.return||l.return===n)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}n.stateNode=e;e:switch(bf(e,t,r),t){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&di(n)}}return gi(n),n.flags&=-16777217,null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==r&&di(n);else{if("string"!=typeof r&&null===n.stateNode)throw Error(c(166));if(e=Y.current,Sl(n)){if(e=n.stateNode,t=n.memoizedProps,r=null,null!==(l=pl))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[Ue]=n,(e=!!(e.nodeValue===t||null!==r&&!0===r.suppressHydrationWarning||hf(e.nodeValue,t)))||bl(n)}else(e=Ef(e).createTextNode(r))[Ue]=n,n.stateNode=e}return gi(n),null;case 13:if(r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=Sl(n),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(c(318));if(!(l=null!==(l=n.memoizedState)?l.dehydrated:null))throw Error(c(317));l[Ue]=n}else El(),!(128&n.flags)&&(n.memoizedState=null),n.flags|=4;gi(n),l=!1}else l=xl(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return 256&n.flags?(wu(n),n):(wu(n),null)}if(wu(n),128&n.flags)return n.lanes=t,n;if(t=null!==r,e=null!==e&&null!==e.memoizedState,t){l=null,null!==(r=n.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)}return t!==e&&t&&(n.child.flags|=8192),mi(n,n.updateQueue),gi(n),null;case 4:return Z(),null===e&&lf(n.stateNode.containerInfo),gi(n),null;case 10:return Tl(n.type),gi(n),null;case 19:if(B(Su),null===(l=n.memoizedState))return gi(n),null;if(r=!!(128&n.flags),null===(a=l.rendering))if(r)hi(l,!1);else{if(0!==Ns||null!==e&&128&e.flags)for(e=n.child;null!==e;){if(null!==(a=Eu(e))){for(n.flags|=128,hi(l,!1),e=a.updateQueue,n.updateQueue=e,mi(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)Yr(t,e),t=t.sibling;return W(Su,1&Su.current|2),n.child}e=e.sibling}null!==l.tail&&oe()>Is&&(n.flags|=128,r=!0,hi(l,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=Eu(a))){if(n.flags|=128,r=!0,e=e.updateQueue,n.updateQueue=e,mi(n,e),hi(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!hl)return gi(n),null}else 2*oe()-l.renderingStartTime>Is&&536870912!==t&&(n.flags|=128,r=!0,hi(l,!1),n.lanes=4194304);l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}return null!==l.tail?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=oe(),n.sibling=null,e=Su.current,W(Su,r?1&e|2:1&e),n):(gi(n),null);case 22:case 23:return wu(n),Na(),r=null!==n.memoizedState,null!==e?null!==e.memoizedState!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?!!(536870912&t)&&!(128&n.flags)&&(gi(n),6&n.subtreeFlags&&(n.flags|=8192)):gi(n),null!==(t=n.updateQueue)&&mi(n,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),r=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(r=n.memoizedState.cachePool.pool),r!==t&&(n.flags|=2048),null!==e&&B(Zl),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),Tl(Hl),gi(n),null;case 25:case 30:return null}throw Error(c(156,n.tag))}function yi(e,n){switch(dl(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Tl(Hl),Z(),65536&(e=n.flags)&&!(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return ee(n),null;case 13:if(wu(n),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(c(340));El()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return B(Su),null;case 4:return Z(),null;case 10:return Tl(n.type),null;case 22:case 23:return wu(n),Na(),null!==e&&B(Zl),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return Tl(Hl),null;default:return null}}function bi(e,n){switch(dl(n),n.tag){case 3:Tl(Hl),Z();break;case 26:case 27:case 5:ee(n);break;case 4:Z();break;case 13:wu(n);break;case 19:B(Su);break;case 10:Tl(n.type);break;case 22:case 23:wu(n),Na(),null!==e&&B(Zl);break;case 24:Tl(Hl)}}function ki(e,n){try{var t=n.updateQueue,r=null!==t?t.lastEffect:null;if(null!==r){var l=r.next;t=l;do{if((t.tag&e)===e){r=void 0;var a=t.create,o=t.inst;r=a(),o.destroy=r}
vendor: 29,098 bytes, line 42
42t=t.next}while(t!==l)}}catch(e){Pc(n,n.return,e)}}function wi(e,n,t){try{var r=n.updateQueue,l=null!==r?r.lastEffect:null;if(null!==l){var a=l.next;r=a;do{if((r.tag&e)===e){var o=r.inst,u=o.destroy;if(void 0!==u){o.destroy=void 0,l=n;var i=t,s=u;try{s()}catch(e){Pc(l,i,e)}}}r=r.next}while(r!==a)}}catch(e){Pc(n,n.return,e)}}function Si(e){var n=e.updateQueue;if(null!==n){var t=e.stateNode;try{Ea(n,t)}catch(n){Pc(e,e.return,n)}}}function Ei(e,n,t){t.props=Nu(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(t){Pc(e,n,t)}}function xi(e,n){try{var t=e.ref;if(null!==t){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof t?e.refCleanup=t(r):t.current=r}}catch(t){Pc(e,n,t)}}function Ci(e,n){var t=e.ref,r=e.refCleanup;if(null!==t)if("function"==typeof r)try{r()}catch(t){Pc(e,n,t)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{t(null)}catch(t){Pc(e,n,t)}else t.current=null}function zi(e){var n=e.type,t=e.memoizedProps,r=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":t.autoFocus&&r.focus();break e;case"img":t.src?r.src=t.src:t.srcSet&&(r.srcset=t.srcSet)}}catch(n){Pc(e,e.return,n)}}function Pi(e,n,t){try{var r=e.stateNode;kf(r,e.type,t,n),r[je]=n}catch(n){Pc(e,e.return,n)}}function Ni(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Mf(e.type)||4===e.tag}function Li(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ni(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Mf(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ti(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?(9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).insertBefore(e,n):((n=9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).appendChild(e),null!=(t=t._reactRootContainer)||null!==n.onclick||(n.onclick=gf));else if(4!==r&&(27===r&&Mf(e.type)&&(t=e.stateNode,n=null),null!==(e=e.child)))for(Ti(e,n,t),e=e.sibling;null!==e;)Ti(e,n,t),e=e.sibling}function _i(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&(27===r&&Mf(e.type)&&(t=e.stateNode),null!==(e=e.child)))for(_i(e,n,t),e=e.sibling;null!==e;)_i(e,n,t),e=e.sibling}function Fi(e){var n=e.stateNode,t=e.memoizedProps;try{for(var r=e.type,l=n.attributes;l.length;)n.removeAttributeNode(l[0]);bf(n,r,t),n[Ue]=e,n[je]=t}catch(n){Pc(e,e.return,n)}}var Di=!1,Mi=!1,Oi=!1,Ai="function"==typeof WeakSet?WeakSet:Set,Ri=null;function Ii(e,n){if(e=e.containerInfo,wf=Ld,fr(e=cr(e))){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var l=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{t.nodeType,a.nodeType}catch(e){t=null;break e}var o=0,u=-1,i=-1,s=0,f=0,d=e,p=null;n:for(;;){for(var m;d!==t||0!==l&&3!==d.nodeType||(u=o+l),d!==a||0!==r&&3!==d.nodeType||(i=o+r),3===d.nodeType&&(o+=d.nodeValue.length),null!==(m=d.firstChild);)p=d,d=m;for(;;){if(d===e)break n;if(p===t&&++s===l&&(u=o),p===a&&++f===r&&(i=o),null!==(m=d.nextSibling))break;p=(d=p).parentNode}d=m}t=-1===u||-1===i?null:{start:u,end:i}}else t=null}t=t||{start:0,end:0}}else t=null;for(Sf={focusedElem:e,selectionRange:t},Ld=!1,Ri=n;null!==Ri;)if(e=(n=Ri).child,1024&n.subtreeFlags&&null!==e)e.return=n,Ri=e;else for(;null!==Ri;){switch(a=(n=Ri).alternate,e=n.flags,n.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,t=n,l=a.memoizedProps,a=a.memoizedState,r=t.stateNode;try{var h=Nu(t.type,l,(t.elementType,t.type));e=r.getSnapshotBeforeUpdate(h,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Pc(t,t.return,e)}}break;case 3:if(1024&e)if(9===(t=(e=n.stateNode.containerInfo).nodeType))Af(e);else if(1===t)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Af(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(c(163))}if(null!==(e=n.sibling)){e.return=n.return,Ri=e;break}Ri=n.return}}function Ui(e,n,t){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ji(e,t),4&r&&ki(5,t);break;case 1:if(Ji(e,t),4&r)if(e=t.stateNode,null===n)try{e.componentDidMount()}catch(e){Pc(t,t.return,e)}else{var l=Nu(t.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(l,n,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Pc(t,t.return,e)}}64&r&&Si(t),512&r&&xi(t,t.return);break;case 3:if(Ji(e,t),64&r&&null!==(e=t.updateQueue)){if(n=null,null!==t.child)switch(t.child.tag){case 27:case 5:case 1:n=t.child.stateNode}try{Ea(e,n)}catch(e){Pc(t,t.return,e)}}break;case 27:null===n&&4&r&&Fi(t);case 26:case 5:Ji(e,t),null===n&&4&r&&zi(t),512&r&&xi(t,t.return);break;case 12:Ji(e,t);break;case 13:Ji(e,t),4&r&&Bi(e,t),64&r&&(null!==(e=t.memoizedState)&&(null!==(e=e.dehydrated)&&jf(e,t=_c.bind(null,t))));break;case 22:if(!(r=null!==t.memoizedState||Di)){n=null!==n&&null!==n.memoizedState||Mi,l=Di;var a=Mi;Di=r,(Mi=n)&&!a?ns(e,t,!!(8772&t.subtreeFlags)):Ji(e,t),Di=l,Mi=a}break;case 30:break;default:Ji(e,t)}}function ji(e){var n=e.alternate;null!==n&&(e.alternate=null,ji(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(n=e.stateNode)&&qe(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Vi=null,Hi=!1;function Qi(e,n,t){for(t=t.child;null!==t;)$i(e,n,t),t=t.sibling}function $i(e,n,t){if(ge&&"function"==typeof ge.onCommitFiberUnmount)try{ge.onCommitFiberUnmount(he,t)}catch(e){}switch(t.tag){case 26:Mi||Ci(t,n),Qi(e,n,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(t=t.stateNode).parentNode.removeChild(t);break;case 27:Mi||Ci(t,n);var r=Vi,l=Hi;Mf(t.type)&&(Vi=t.stateNode,Hi=!1),Qi(e,n,t),Bf(t.stateNode),Vi=r,Hi=l;break;case 5:Mi||Ci(t,n);case 6:if(r=Vi,l=Hi,Vi=null,Qi(e,n,t),Hi=l,null!==(Vi=r))if(Hi)try{(9===Vi.nodeType?Vi.body:"HTML"===Vi.nodeName?Vi.ownerDocument.body:Vi).removeChild(t.stateNode)}catch(e){Pc(t,n,e)}else try{Vi.removeChild(t.stateNode)}catch(e){Pc(t,n,e)}break;case 18:null!==Vi&&(Hi?(Of(9===(e=Vi).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,t.stateNode),np(e)):Of(Vi,t.stateNode));break;case 4:r=Vi,l=Hi,Vi=t.stateNode.containerInfo,Hi=!0,Qi(e,n,t),Vi=r,Hi=l;break;case 0:case 11:case 14:case 15:Mi||wi(2,t,n),Mi||wi(4,t,n),Qi(e,n,t);break;case 1:Mi||(Ci(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount&&Ei(t,n,r)),Qi(e,n,t);break;case 21:Qi(e,n,t);break;case 22:Mi=(r=Mi)||null!==t.memoizedState,Qi(e,n,t),Mi=r;break;default:Qi(e,n,t)}}function Bi(e,n){if(null===n.memoizedState&&(null!==(e=n.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{np(e)}catch(e){Pc(n,n.return,e)}}function Wi(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return null===n&&(n=e.stateNode=new Ai),n;case 22:return null===(n=(e=e.stateNode)._retryCache)&&(n=e._retryCache=new Ai),n;default:throw Error(c(435,e.tag))}}function qi(e,n){var t=Wi(e);n.forEach(function(n){var r=Fc.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}function Ki(e,n){var t=n.deletions;if(null!==t)for(var r=0;r<t.length;r++){var l=t[r],a=e,o=n,u=o;e:for(;null!==u;){switch(u.tag){case 27:if(Mf(u.type)){Vi=u.stateNode,Hi=!1;break e}break;case 5:Vi=u.stateNode,Hi=!1;break e;case 3:case 4:Vi=u.stateNode.containerInfo,Hi=!0;break e}u=u.return}if(null===Vi)throw Error(c(160));$i(a,o,l),Vi=null,Hi=!1,null!==(a=l.alternate)&&(a.return=null),l.return=null}if(13878&n.subtreeFlags)for(n=n.child;null!==n;)Xi(n,e),n=n.sibling}var Yi=null;function Xi(e,n){var t=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ki(n,e),Gi(e),4&r&&(wi(3,e,e.return),ki(3,e),wi(5,e,e.return));break;case 1:Ki(n,e),Gi(e),512&r&&(Mi||null===t||Ci(t,t.return)),64&r&&Di&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(t=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===t?r:t.concat(r))));break;case 26:var l=Yi;if(Ki(n,e),Gi(e),512&r&&(Mi||null===t||Ci(t,t.return)),4&r){var a=null!==t?t.memoizedState:null;if(r=e.memoizedState,null===t)if(null===r)if(null===e.stateNode){e:{r=e.type,t=e.memoizedProps,l=l.ownerDocument||l;n:switch(r){case"title":(!(a=l.getElementsByTagName("title")[0])||a[We]||a[Ue]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=l.createElement(r),l.head.insertBefore(a,l.querySelector("head > title"))),bf(a,r,t),a[Ue]=e,Ze(a),r=a;break e;case"link":var o=sd("link","href",l).get(r+(t.href||""));if(o)for(var u=0;u<o.length;u++)if((a=o[u]).getAttribute("href")===(null==t.href||""===t.href?null:t.href)&&a.getAttribute("rel")===(null==t.rel?null:t.rel)&&a.getAttribute("title")===(null==t.title?null:t.title)&&a.getAttribute("crossorigin")===(null==t.crossOrigin?null:t.crossOrigin)){o.splice(u,1);break n}bf(a=l.createElement(r),r,t),l.head.appendChild(a);break;case"meta":if(o=sd("meta","content",l).get(r+(t.content||"")))for(u=0;u<o.length;u++)if((a=o[u]).getAttribute("content")===(null==t.content?null:""+t.content)&&a.getAttribute("name")===(null==t.name?null:t.name)&&a.getAttribute("property")===(null==t.property?null:t.property)&&a.getAttribute("http-equiv")===(null==t.httpEquiv?null:t.httpEquiv)&&a.getAttribute("charset")===(null==t.charSet?null:t.charSet)){o.splice(u,1);break n}bf(a=l.createElement(r),r,t),l.head.appendChild(a);break;default:throw Error(c(468,r))}a[Ue]=e,Ze(a),r=a}e.stateNode=r}else cd(l,e.type,e.stateNode);else e.stateNode=ld(l,r,e.memoizedProps);else a!==r?(null===a?null!==t.stateNode&&(t=t.stateNode).parentNode.removeChild(t):a.count--,null===r?cd(l,e.type,e.stateNode):ld(l,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Pi(e,e.memoizedProps,t.memoizedProps)}break;case 27:Ki(n,e),Gi(e),512&r&&(Mi||null===t||Ci(t,t.return)),null!==t&&4&r&&Pi(e,e.memoizedProps,t.memoizedProps);break;case 5:if(Ki(n,e),Gi(e),512&r&&(Mi||null===t||Ci(t,t.return)),32&e.flags){l=e.stateNode;try{_n(l,"")}catch(n){Pc(e,e.return,n)}}4&r&&null!=e.stateNode&&Pi(e,l=e.memoizedProps,null!==t?t.memoizedProps:l),1024&r&&(Oi=!0);break;case 6:if(Ki(n,e),Gi(e),4&r){if(null===e.stateNode)throw Error(c(162));r=e.memoizedProps,t=e.stateNode;try{t.nodeValue=r}catch(n){Pc(e,e.return,n)}}break;case 3:if(id=null,l=Yi,Yi=Kf(n.containerInfo),Ki(n,e),Yi=l,Gi(e),4&r&&null!==t&&t.memoizedState.isDehydrated)try{np(n.containerInfo)}catch(n){Pc(e,e.return,n)}Oi&&(Oi=!1,Zi(e));break;case 4:r=Yi,Yi=Kf(e.stateNode.containerInfo),Ki(n,e),Gi(e),Yi=r;break;case 12:default:Ki(n,e),Gi(e);break;case 13:Ki(n,e),Gi(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==t&&null!==t.memoizedState)&&(Rs=oe()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,qi(e,r)));break;case 22:l=null!==e.memoizedState;var i=null!==t&&null!==t.memoizedState,s=Di,f=Mi;if(Di=s||l,Mi=f||i,Ki(n,e),Mi=f,Di=s,Gi(e),8192&r)e:for(n=e.stateNode,n._visibility=l?-2&n._visibility:1|n._visibility,l&&(null===t||i||Di||Mi||es(e)),t=null,n=e;;){if(5===n.tag||26===n.tag){if(null===t){i=t=n;try{if(a=i.stateNode,l)"function"==typeof(o=a.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{u=i.stateNode;var d=i.memoizedProps.style,p=null!=d&&d.hasOwnProperty("display")?d.display:null;u.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){Pc(i,i.return,e)}}}else if(6===n.tag){if(null===t){i=n;try{i.stateNode.nodeValue=l?"":i.memoizedProps}catch(e){Pc(i,i.return,e)}}}else if((22!==n.tag&&23!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;null===n.sibling;){if(null===n.return||n.return===e)break e;t===n&&(t=null),n=n.return}t===n&&(t=null),n.sibling.return=n.return,n=n.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(t=r.retryQueue)&&(r.retryQueue=null,qi(e,t))));break;case 19:Ki(n,e),Gi(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,qi(e,r)));case 30:case 21:}}function Gi(e){var n=e.flags;if(2&n){try{for(var t,r=e.return;null!==r;){if(Ni(r)){t=r;break}r=r.return}if(null==t)throw Error(c(160));switch(t.tag){case 27:var l=t.stateNode;_i(e,Li(e),l);break;case 5:var a=t.stateNode;32&t.flags&&(_n(a,""),t.flags&=-33),_i(e,Li(e),a);break;case 3:case 4:var o=t.stateNode.containerInfo;Ti(e,Li(e),o);break;default:throw Error(c(161))}}catch(n){Pc(e,e.return,n)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function Zi(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var n=e;Zi(n),5===n.tag&&1024&n.flags&&n.stateNode.reset(),e=e.sibling}}function Ji(e,n){if(8772&n.subtreeFlags)for(n=n.child;null!==n;)Ui(e,n.alternate,n),n=n.sibling}function es(e){for(e=e.child;null!==e;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:wi(4,n,n.return),es(n);break;case 1:Ci(n,n.return);var t=n.stateNode;"function"==typeof t.componentWillUnmount&&Ei(n,n.return,t),es(n);break;case 27:Bf(n.stateNode);case 26:case 5:Ci(n,n.return),es(n);break;case 22:null===n.memoizedState&&es(n);break;default:es(n)}e=e.sibling}}function ns(e,n,t){for(t=t&&!!(8772&n.subtreeFlags),n=n.child;null!==n;){var r=n.alternate,l=e,a=n,o=a.flags;switch(a.tag){case 0:case 11:case 15:ns(l,a,t),ki(4,a);break;case 1:if(ns(l,a,t),"function"==typeof(l=(r=a).stateNode).componentDidMount)try{l.componentDidMount()}catch(e){Pc(r,r.return,e)}if(null!==(l=(r=a).updateQueue)){var u=r.stateNode;try{var i=l.shared.hiddenCallbacks;if(null!==i)for(l.shared.hiddenCallbacks=null,l=0;l<i.length;l++)Sa(i[l],u)}catch(e){Pc(r,r.return,e)}}t&&64&o&&Si(a),xi(a,a.return);break;case 27:Fi(a);case 26:case 5:ns(l,a,t),t&&null===r&&4&o&&zi(a),xi(a,a.return);break;case 12:ns(l,a,t);break;case 13:ns(l,a,t),t&&4&o&&Bi(l,a);break;case 22:null===a.memoizedState&&ns(l,a,t),xi(a,a.return);break;case 30:break;default:ns(l,a,t)}n=n.sibling}}function ts(e,n){var t=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),e=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(e=n.memoizedState.cachePool.pool),e!==t&&(null!=e&&e.refCount++,null!=t&&$l(t))}function rs(e,n){e=null,null!==n.alternate&&(e=n.alternate.memoizedState.cache),(n=n.memoizedState.cache)!==e&&(n.refCount++,null!=e&&$l(e))}function ls(e,n,t,r){if(10256&n.subtreeFlags)for(n=n.child;null!==n;)as(e,n,t,r),n=n.sibling}function as(e,n,t,r){var l=n.flags;switch(n.tag){case 0:case 11:case 15:ls(e,n,t,r),2048&l&&ki(9,n);break;case 1:case 13:default:ls(e,n,t,r);break;case 3:ls(e,n,t,r),2048&l&&(e=null,null!==n.alternate&&(e=n.alternate.memoizedState.cache),(n=n.memoizedState.cache)!==e&&(n.refCount++,null!=e&&$l(e)));break;case 12:if(2048&l){ls(e,n,t,r),e=n.stateNode;try{var a=n.memoizedProps,o=a.id,u=a.onPostCommit;"function"==typeof u&&u(o,null===n.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){Pc(n,n.return,e)}}else ls(e,n,t,r);break;case 23:break;case 22:a=n.stateNode,o=n.alternate,null!==n.memoizedState?2&a._visibility?ls(e,n,t,r):us(e,n):2&a._visibility?ls(e,n,t,r):(a._visibility|=2,os(e,n,t,r,!!(10256&n.subtreeFlags))),2048&l&&ts(o,n);break;case 24:ls(e,n,t,r),2048&l&&rs(n.alternate,n)}}function os(e,n,t,r,l){for(l=l&&!!(10256&n.subtreeFlags),n=n.child;null!==n;){var a=e,o=n,u=t,i=r,s=o.flags;switch(o.tag){case 0:case 11:case 15:os(a,o,u,i,l),ki(8,o);break;case 23:break;case 22:var c=o.stateNode;null!==o.memoizedState?2&c._visibility?os(a,o,u,i,l):us(a,o):(c._visibility|=2,os(a,o,u,i,l)),l&&2048&s&&ts(o.alternate,o);break;case 24:os(a,o,u,i,l),l&&2048&s&&rs(o.alternate,o);break;default:os(a,o,u,i,l)}n=n.sibling}}function us(e,n){if(10256&n.subtreeFlags)for(n=n.child;null!==n;){var t=e,r=n,l=r.flags;switch(r.tag){case 22:us(t,r),2048&l&&ts(r.alternate,r);break;case 24:us(t,r),2048&l&&rs(r.alternate,r);break;default:us(t,r)}n=n.sibling}}var is=8192;function ss(e){if(e.subtreeFlags&is)for(e=e.child;null!==e;)cs(e),e=e.sibling}function cs(e){switch(e.tag){case 26:ss(e),e.flags&is&&null!==e.memoizedState&&hd(Yi,e.memoizedState,e.memoizedProps);break;case 5:default:ss(e);break;case 3:case 4:var n=Yi;Yi=Kf(e.stateNode.containerInfo),ss(e),Yi=n;break;case 22:null===e.memoizedState&&(null!==(n=e.alternate)&&null!==n.memoizedState?(n=is,is=16777216,ss(e),is=n):ss(e))}}function fs(e){var n=e.alternate;if(null!==n&&null!==(e=n.child)){n.child=null;do{n=e.sibling,e.sibling=null,e=n}while(null!==e)}}function ds(e){var n=e.deletions;if(16&e.flags){if(null!==n)for(var t=0;t<n.length;t++){var r=n[t];Ri=r,hs(r,e)}fs(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)ps(e),e=e.sibling}function ps(e){switch(e.tag){case 0:case 11:case 15:ds(e),2048&e.flags&&wi(9,e,e.return);break;case 3:case 12:default:ds(e);break;case 22:var n=e.stateNode;null!==e.memoizedState&&2&n._visibility&&(null===e.return||13!==e.return.tag)?(n._visibility&=-3,ms(e)):ds(e)}}function ms(e){var n=e.deletions;if(16&e.flags){if(null!==n)for(var t=0;t<n.length;t++){var r=n[t];Ri=r,hs(r,e)}fs(e)}for(e=e.child;null!==e;){switch((n=e).tag){case 0:case 11:case 15:wi(8,n,n.return),ms(n);break;case 22:2&(t=n.stateNode)._visibility&&(t._visibility&=-3,ms(n));break;default:ms(n)}e=e.sibling}}function hs(e,n){for(;null!==Ri;){var t=Ri;switch(t.tag){case 0:case 11:case 15:wi(8,t,n);break;case 23:case 22:if(null!==t.memoizedState&&null!==t.memoizedState.cachePool){var r=t.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:$l(t.memoizedState.cache)}if(null!==(r=t.child))r.return=t,Ri=r;else e:for(t=e;null!==Ri;){var l=(r=Ri).sibling,a=r.return;if(ji(r),r===t){Ri=null;break e}if(null!==l){l.return=a,Ri=l;break e}Ri=a}}}var gs={getCacheForType:function(e){var n=Al(Hl),t=n.data.get(e);return void 0===t&&(t=e(),n.data.set(e,t)),t}},vs="function"==typeof WeakMap?WeakMap:Map,ys=0,bs=null,ks=null,ws=0,Ss=0,Es=null,xs=!1,Cs=!1,zs=!1,Ps=0,Ns=0,Ls=0,Ts=0,_s=0,Fs=0,Ds=0,Ms=null,Os=null,As=!1,Rs=0,Is=1/0,Us=null,js=null,Vs=0,Hs=null,Qs=null,$s=0,Bs=0,Ws=null,qs=null,Ks=0,Ys=null;function Xs(){if(2&ys&&0!==ws)return ws&-ws;if(null!==U.T){return 0!==ql?ql:Wc()}return Ae()}function Gs(){0===Fs&&(Fs=536870912&ws&&!hl?536870912:Pe());var e=gu.current;return null!==e&&(e.flags|=32),Fs}function Zs(e,n,t){(e!==bs||2!==Ss&&9!==Ss)&&null===e.cancelPendingCommit||(ac(e,0),tc(e,ws,Fs,!1)),Te(e,t),2&ys&&e===bs||(e===bs&&(!(2&ys)&&(Ts|=t),4===Ns&&tc(e,ws,Fs,!1)),Uc(e))}function Js(e,n,t){if(6&ys)throw Error(c(327));for(var r=!t&&!(124&n)&&0===(n&e.expiredLanes)||Ce(e,n),l=r?dc(e,n):cc(e,n,!0),a=r;;){if(0===l){Cs&&!r&&tc(e,n,0,!1);break}if(t=e.current.alternate,!a||nc(t)){if(2===l){if(a=n,e.errorRecoveryDisabledLanes&a)var o=0;else o=0!==(o=-536870913&e.pendingLanes)?o:536870912&o?536870912:0;if(0!==o){n=o;e:{var u=e;l=Ms;var i=u.current.memoizedState.isDehydrated;if(i&&(ac(u,o).flags|=256),2!==(o=cc(u,o,!1))){if(zs&&!i){u.errorRecoveryDisabledLanes|=a,Ts|=a,l=4;break e}a=Os,Os=l,null!==a&&(null===Os?Os=a:Os.push.apply(Os,a))}l=o}if(a=!1,2!==l)continue}}if(1===l){ac(e,0),tc(e,n,0,!0);break}e:{switch(r=e,a=l){case 0:case 1:throw Error(c(345));case 4:if((4194048&n)!==n)break;case 6:tc(r,n,Fs,!xs);break e;case 2:Os=null;break;case 3:case 5:break;default:throw Error(c(329))}if((62914560&n)===n&&10<(l=Rs+300-oe())){if(tc(r,n,Fs,!xs),0!==xe(r,0,!0))break e;r.timeoutHandle=Lf(ec.bind(null,r,t,Os,Us,As,n,Fs,Ts,Ds,xs,a,2,-0,0),l)}else ec(r,t,Os,Us,As,n,Fs,Ts,Ds,xs,a,0,-0,0)}break}l=cc(e,n,!1),a=!1}Uc(e)}function ec(e,n,t,r,l,a,o,u,i,s,c,f,d,p){if(e.timeoutHandle=-1,(8192&(f=n.subtreeFlags)||!(16785408&~f))&&(pd={stylesheets:null,count:0,unsuspend:md},cs(n),null!==(f=gd())))return e.cancelPendingCommit=f(bc.bind(null,e,n,a,t,r,l,o,u,i,c,1,d,p)),void tc(e,a,o,!s);bc(e,n,a,t,r,l,o,u,i)}function nc(e){for(var n=e;;){var t=n.tag;if((0===t||11===t||15===t)&&16384&n.flags&&(null!==(t=n.updateQueue)&&null!==(t=t.stores)))for(var r=0;r<t.length;r++){var l=t[r],a=l.getSnapshot;l=l.value;try{if(!ar(a(),l))return!1}catch(e){return!1}}if(t=n.child,16384&n.subtreeFlags&&null!==t)t.return=n,n=t;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function tc(e,n,t,r){n&=~_s,n&=~Ts,e.suspendedLanes|=n,e.pingedLanes&=~n,r&&(e.warmLanes|=n),r=e.expirationTimes;for(var l=n;0<l;){var a=31-ye(l),o=1<<a;r[a]=-1,l&=~o}0!==t&&Fe(e,t,n)}function rc(){return!!(6&ys)||(jc(0,!1),!1)}function lc(){if(null!==ks){if(0===Ss)var e=ks.return;else Nl=Pl=null,Ka(e=ks),uu=null,iu=0,e=ks;for(;null!==e;)bi(e.alternate,e),e=e.return;ks=null}}function ac(e,n){var t=e.timeoutHandle;-1!==t&&(e.timeoutHandle=-1,Tf(t)),null!==(t=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,t()),lc(),bs=e,ks=t=Kr(e.current,null),ws=n,Ss=0,Es=null,xs=!1,Cs=Ce(e,n),zs=!1,Ds=Fs=_s=Ts=Ls=Ns=0,Os=Ms=null,As=!1,8&n&&(n|=32&n);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=n;0<r;){var l=31-ye(r),a=1<<l;n|=e[l],r&=~a}return Ps=n,Ir(),t}function oc(e,n){Ta=null,U.H=ru,n===ta||n===la?(n=ca(),Ss=3):n===ra?(n=ca(),Ss=4):Ss=n===Uu?8:null!==n&&"object"==typeof n&&"function"==typeof n.then?6:1,Es=n,null===ks&&(Ns=1,Du(e,Mr(n,e.current)))}function uc(){var e=U.H;return U.H=ru,null===e?ru:e}function ic(){var e=U.A;return U.A=gs,e}function sc(){Ns=4,xs||(4194048&ws)!==ws&&null!==gu.current||(Cs=!0),!(134217727&Ls)&&!(134217727&Ts)||null===bs||tc(bs,ws,Fs,!1)}function cc(e,n,t){var r=ys;ys|=2;var l=uc(),a=ic();bs===e&&ws===n||(Us=null,ac(e,n)),n=!1;var o=Ns;e:for(;;)try{if(0!==Ss&&null!==ks){var u=ks,i=Es;switch(Ss){case 8:lc(),o=6;break e;case 3:case 2:case 9:case 6:null===gu.current&&(n=!0);var s=Ss;if(Ss=0,Es=null,gc(e,u,i,s),t&&Cs){o=0;break e}break;default:s=Ss,Ss=0,Es=null,gc(e,u,i,s)}}fc(),o=Ns;break}catch(n){oc(e,n)}return n&&e.shellSuspendCounter++,Nl=Pl=null,ys=r,U.H=l,U.A=a,null===ks&&(bs=null,ws=0,Ir()),o}function fc(){for(;null!==ks;)mc(ks)}function dc(e,n){var t=ys;ys|=2;var r=uc(),l=ic();bs!==e||ws!==n?(Us=null,Is=oe()+500,ac(e,n)):Cs=Ce(e,n);e:for(;;)try{if(0!==Ss&&null!==ks){n=ks;var a=Es;n:switch(Ss){case 1:Ss=0,Es=null,gc(e,n,a,1);break;case 2:case 9:if(oa(a)){Ss=0,Es=null,hc(n);break}n=function(){2!==Ss&&9!==Ss||bs!==e||(Ss=7),Uc(e)},a.then(n,n);break e;case 3:Ss=7;break e;case 4:Ss=5;break e;case 7:oa(a)?(Ss=0,Es=null,hc(n)):(Ss=0,Es=null,gc(e,n,a,7));break;case 5:var o=null;switch(ks.tag){case 26:o=ks.memoizedState;case 5:case 27:var u=ks;if(!o||dd(o)){Ss=0,Es=null;var i=u.sibling;if(null!==i)ks=i;else{var s=u.return;null!==s?(ks=s,vc(s)):ks=null}break n}}Ss=0,Es=null,gc(e,n,a,5);break;case 6:Ss=0,Es=null,gc(e,n,a,6);break;case 8:lc(),Ns=6;break e;default:throw Error(c(462))}}pc();break}catch(n){oc(e,n)}return Nl=Pl=null,U.H=r,U.A=l,ys=t,null!==ks?0:(bs=null,ws=0,Ir(),Ns)}function pc(){for(;null!==ks&&!le();)mc(ks)}function mc(e){var n=fi(e.alternate,e,Ps);e.memoizedProps=e.pendingProps,null===n?vc(e):ks=n}function hc(e){var n=e,t=n.alternate;switch(n.tag){case 15:case 0:n=Yu(t,n,n.pendingProps,n.type,void 0,ws);break;case 11:n=Yu(t,n,n.pendingProps,n.type.render,n.ref,ws);break;case 5:Ka(n);default:bi(t,n),n=fi(t,n=ks=Yr(n,Ps),Ps)}e.memoizedProps=e.pendingProps,null===n?vc(e):ks=n}function gc(e,n,t,r){Nl=Pl=null,Ka(n),uu=null,iu=0;var l=n.return;try{if(Iu(e,l,n,t,ws))return Ns=1,Du(e,Mr(t,e.current)),void(ks=null)}catch(n){if(null!==l)throw ks=l,n;return Ns=1,Du(e,Mr(t,e.current)),void(ks=null)}32768&n.flags?(hl||1===r?e=!0:Cs||536870912&ws?e=!1:(xs=e=!0,(2===r||9===r||3===r||6===r)&&(null!==(r=gu.current)&&13===r.tag&&(r.flags|=16384))),yc(n,e)):vc(n)}function vc(e){var n=e;do{if(32768&n.flags)return void yc(n,xs);e=n.return;var t=vi(n.alternate,n,Ps);if(null!==t)return void(ks=t);if(null!==(n=n.sibling))return void(ks=n);ks=n=e}while(null!==n);0===Ns&&(Ns=5)}function yc(e,n){do{var t=yi(e.alternate,e);if(null!==t)return t.flags&=32767,void(ks=t);if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!n&&null!==(e=e.sibling))return void(ks=e);ks=e=t}while(null!==e);Ns=6,ks=null}function bc(e,n,t,r,l,a,o,u,i){e.cancelPendingCommit=null;do{xc()}while(0!==Vs);if(6&ys)throw Error(c(327));if(null!==n){if(n===e.current)throw Error(c(177));if(a=n.lanes|n.childLanes,_e(e,t,a|=Rr,o,u,i),e===bs&&(ks=bs=null,ws=0),Qs=n,Hs=e,$s=t,Bs=a,Ws=l,qs=r,10256&n.subtreeFlags||10256&n.flags?(e.callbackNode=null,e.callbackPriority=0,te(ce,function(){return Cc(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&n.flags),13878&n.subtreeFlags||r){r=U.T,U.T=null,l=j.p,j.p=2,o=ys,ys|=4;try{Ii(e,n)}finally{ys=o,j.p=l,U.T=r}}Vs=1,kc(),wc(),Sc()}}function kc(){if(1===Vs){Vs=0;var e=Hs,n=Qs,t=!!(13878&n.flags);if(13878&n.subtreeFlags||t){t=U.T,U.T=null;var r=j.p;j.p=2;var l=ys;ys|=4;try{Xi(n,e);var a=Sf,o=cr(e.containerInfo),u=a.focusedElem,i=a.selectionRange;if(o!==u&&u&&u.ownerDocument&&sr(u.ownerDocument.documentElement,u)){if(null!==i&&fr(u)){var s=i.start,c=i.end;if(void 0===c&&(c=s),"selectionStart"in u)u.selectionStart=s,u.selectionEnd=Math.min(c,u.value.length);else{var f=u.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var p=d.getSelection(),m=u.textContent.length,h=Math.min(i.start,m),g=void 0===i.end?h:Math.min(i.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var v=ir(u,h),y=ir(u,g);if(v&&y&&(1!==p.rangeCount||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var b=f.createRange();b.setStart(v.node,v.offset),p.removeAllRanges(),h>g?(p.addRange(b),p.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),p.addRange(b))}}}}for(f=[],p=u;p=p.parentNode;)1===p.nodeType&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof u.focus&&u.focus(),u=0;u<f.length;u++){var k=f[u];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Ld=!!wf,Sf=wf=null}finally{ys=l,j.p=r,U.T=t}}e.current=n,Vs=2}}function wc(){if(2===Vs){Vs=0;var e=Hs,n=Qs,t=!!(8772&n.flags);if(8772&n.subtreeFlags||t){t=U.T,U.T=null;var r=j.p;j.p=2;var l=ys;ys|=4;try{Ui(e,n.alternate,n)}finally{ys=l,j.p=r,U.T=t}}Vs=3}}function Sc(){if(4===Vs||3===Vs){Vs=0,ae();var e=Hs,n=Qs,t=$s,r=qs;10256&n.subtreeFlags||10256&n.flags?Vs=5:(Vs=0,Qs=Hs=null,Ec(e,e.pendingLanes));var l=e.pendingLanes;if(0===l&&(js=null),Oe(t),n=n.stateNode,ge&&"function"==typeof ge.onCommitFiberRoot)try{ge.onCommitFiberRoot(he,n,void 0,!(128&~n.current.flags))}catch(e){}if(null!==r){n=U.T,l=j.p,j.p=2,U.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var u=r[o];a(u.value,{componentStack:u.stack})}}finally{U.T=n,j.p=l}}3&$s&&xc(),Uc(e),l=e.pendingLanes,4194090&t&&42&l?e===Ys?Ks++:(Ks=0,Ys=e):Ks=0,jc(0,!1)}}function Ec(e,n){0===(e.pooledCacheLanes&=n)&&(null!=(n=e.pooledCache)&&(e.pooledCache=null,$l(n)))}function xc(e){return kc(),wc(),Sc(),Cc()}function Cc(){if(5!==Vs)return!1;var e=Hs,n=Bs;Bs=0;var t=Oe($s),r=U.T,l=j.p;try{j.p=32>t?32:t,U.T=null,t=Ws,Ws=null;var a=Hs,o=$s;if(Vs=0,Qs=Hs=null,$s=0,6&ys)throw Error(c(331));var u=ys;if(ys|=4,ps(a.current),as(a,a.current,o,t),ys=u,jc(0,!1),ge&&"function"==typeof ge.onPostCommitFiberRoot)try{ge.onPostCommitFiberRoot(he,a)}catch(e){}return!0}finally{j.p=l,U.T=r,Ec(e,n)}}function zc(e,n,t){n=Mr(t,n),null!==(e=ga(e,n=Ou(e.stateNode,n,2),2))&&(Te(e,2),Uc(e))}function Pc(e,n,t){if(3===e.tag)zc(e,e,t);else for(;null!==n;){if(3===n.tag){zc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===js||!js.has(r))){e=Mr(t,e),null!==(r=ga(n,t=Au(2),2))&&(Ru(t,r,n,e),Te(r,2),Uc(r));break}}n=n.return}}function Nc(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new vs;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(zs=!0,l.add(t),e=Lc.bind(null,e,n,t),n.then(e,e))}function Lc(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,bs===e&&(ws&t)===t&&(4===Ns||3===Ns&&(62914560&ws)===ws&&300>oe()-Rs?!(2&ys)&&ac(e,0):_s|=t,Ds===ws&&(Ds=0)),Uc(e)}function Tc(e,n){0===n&&(n=Ne()),null!==(e=Vr(e,n))&&(Te(e,n),Uc(e))}function _c(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Tc(e,t)}function Fc(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(c(314))}null!==r&&r.delete(n),Tc(e,t)}var Dc=null,Mc=null,Oc=!1,Ac=!1,Rc=!1,Ic=0;function Uc(e){e!==Mc&&null===e.next&&(null===Mc?Dc=Mc=e:Mc=Mc.next=e),Ac=!0,Oc||(Oc=!0,Ff(function(){6&ys?te(ie,Vc):Hc()}))}function jc(e,n){if(!Rc&&Ac){Rc=!0;do{for(var t=!1,r=Dc;null!==r;){if(!n)if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,u=r.pingedLanes;a=(1<<31-ye(42|e)+1)-1,a=201326741&(a&=l&~(o&~u))?201326741&a|1:a?2|a:0}0!==a&&(t=!0,Bc(r,a))}else a=ws,!(3&(a=xe(r,r===bs?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ce(r,a)||(t=!0,Bc(r,a));r=r.next}}while(t);Rc=!1}}function Vc(){Hc()}function Hc(){Ac=Oc=!1;var e=0;0!==Ic&&(Nf()&&(e=Ic),Ic=0);for(var n=oe(),t=null,r=Dc;null!==r;){var l=r.next,a=Qc(r,n);0===a?(r.next=null,null===t?Dc=l:t.next=l,null===l&&(Mc=t)):(t=r,(0!==e||3&a)&&(Ac=!0)),r
vendor: 4,987 bytes, line 42
42=l}jc(e,!1)}function Qc(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var o=31-ye(a),u=1<<o,i=l[o];-1===i?0!==(u&t)&&0===(u&r)||(l[o]=ze(u,n)):i<=n&&(e.expiredLanes|=u),a&=~u}if(t=ws,t=xe(e,e===(n=bs)?t:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===t||e===n&&(2===Ss||9===Ss)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&re(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&t)||Ce(e,t)){if((n=t&-t)===e.callbackPriority)return n;switch(null!==r&&re(r),Oe(t)){case 2:case 8:t=se;break;case 32:default:t=ce;break;case 268435456:t=de}return r=$c.bind(null,e),t=te(t,r),e.callbackPriority=n,e.callbackNode=t,n}return null!==r&&null!==r&&re(r),e.callbackPriority=2,e.callbackNode=null,2}function $c(e,n){if(0!==Vs&&5!==Vs)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(xc()&&e.callbackNode!==t)return null;var r=ws;return 0===(r=xe(e,e===bs?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Js(e,r,n),Qc(e,oe()),null!=e.callbackNode&&e.callbackNode===t?$c.bind(null,e):null)}function Bc(e,n){if(xc())return null;Js(e,n,!0)}function Wc(){return 0===Ic&&(Ic=Pe()),Ic}function qc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:In(""+e)}function Kc(e,n){var t=n.ownerDocument.createElement("input");return t.name=n.name,t.value=n.value,e.id&&t.setAttribute("form",e.id),n.parentNode.insertBefore(t,n),e=new FormData(e),t.parentNode.removeChild(t),e}function Yc(e,n,t,r,l){if("submit"===n&&t&&t.stateNode===l){var a=qc((l[je]||null).action),o=r.submitter;o&&(null!==(n=(n=o[je]||null)?qc(n.formAction):o.getAttribute("formAction"))&&(a=n,o=null));var u=new it("action","action",null,r,l);e.push({event:u,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Ic){var e=o?Kc(l,o):new FormData(l);Qo(t,{pending:!0,data:e,method:l.method,action:a},null,e)}}else"function"==typeof a&&(u.preventDefault(),e=o?Kc(l,o):new FormData(l),Qo(t,{pending:!0,data:e,method:l.method,action:a},a,e))},currentTarget:l}]})}}for(var Xc=0;Xc<_r.length;Xc++){var Gc=_r[Xc];Fr(Gc.toLowerCase(),"on"+(Gc[0].toUpperCase()+Gc.slice(1)))}Fr(Er,"onAnimationEnd"),Fr(xr,"onAnimationIteration"),Fr(Cr,"onAnimationStart"),Fr("dblclick","onDoubleClick"),Fr("focusin","onFocus"),Fr("focusout","onBlur"),Fr(zr,"onTransitionRun"),Fr(Pr,"onTransitionStart"),Fr(Nr,"onTransitionCancel"),Fr(Lr,"onTransitionEnd"),tn("onMouseEnter",["mouseout","mouseover"]),tn("onMouseLeave",["mouseout","mouseover"]),tn("onPointerEnter",["pointerout","pointerover"]),tn("onPointerLeave",["pointerout","pointerover"]),nn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nn("onBeforeInput",["compositionend","keypress","textInput","paste"]),nn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Jc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zc));function ef(e,n){n=!!(4&n);for(var t=0;t<e.length;t++){var r=e[t],l=r.event;r=r.listeners;e:{var a=void 0;if(n)for(var o=r.length-1;0<=o;o--){var u=r[o],i=u.instance,s=u.currentTarget;if(u=u.listener,i!==a&&l.isPropagationStopped())break e;a=u,l.currentTarget=s;try{a(l)}catch(e){Lu(e)}l.currentTarget=null,a=i}else for(o=0;o<r.length;o++){if(i=(u=r[o]).instance,s=u.currentTarget,u=u.listener,i!==a&&l.isPropagationStopped())break e;a=u,l.currentTarget=s;try{a(l)}catch(e){Lu(e)}l.currentTarget=null,a=i}}}}function nf(e,n){var t=n[He];void 0===t&&(t=n[He]=new Set);var r=e+"__bubble";t.has(r)||(af(n,e,2,!1),t.add(r))}function tf(e,n,t){var r=0;n&&(r|=4),af(t,e,r,n)}var rf="_reactListening"+Math.random().toString(36).slice(2);function lf(e){if(!e[rf]){e[rf]=!0,Je.forEach(function(n){"selectionchange"!==n&&(Jc.has(n)||tf(n,!1,e),tf(n,!0,e))});var n=9===e.nodeType?e:e.ownerDocument;null===n||n[rf]||(n[rf]=!0,tf("selectionchange",!1,n))}}function af(e,n,t,r){switch(Ad(n)){case 2:var l=Td;break;case 8:l=_d;break;default:l=Fd}t=l.bind(null,n,t,e),l=void 0,!Kn||"touchstart"!==n&&"touchmove"!==n&&"wheel"!==n||(l=!0),r?void 0!==l?e.addEventListener(n,t,{capture:!0,passive:l}):e.addEventListener(n,t,!0):void 0!==l?e.addEventListener(n,t,{passive:l}):e.addEventListener(n,t,!1)}function of(e,n,t,r,l){var a=r;if(!(1&n||2&n||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var u=r.stateNode.containerInfo;
vendor: 7,673 bytes, line 42
42if(u===l)break;if(4===o)for(o=r.return;null!==o;){var i=o.tag;if((3===i||4===i)&&o.stateNode.containerInfo===l)return;o=o.return}for(;null!==u;){if(null===(o=Ke(u)))return;if(5===(i=o.tag)||6===i||26===i||27===i){r=a=o;continue e}u=u.parentNode}}r=r.return}Bn(function(){var r=a,l=jn(t),o=[];e:{var u=Tr.get(e);if(void 0!==u){var i=it,s=e;switch(e){case"keypress":if(0===et(t))break e;case"keydown":case"keyup":i=Et;break;case"focusin":s="focus",i=mt;break;case"focusout":s="blur",i=mt;break;case"beforeblur":case"afterblur":i=mt;break;case"click":if(2===t.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":i=dt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":i=pt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":i=Ct;break;case Er:case xr:case Cr:i=ht;break;case Lr:i=zt;break;case"scroll":case"scrollend":i=ct;break;case"wheel":i=Pt;break;case"copy":case"cut":case"paste":i=gt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":i=xt;break;case"toggle":case"beforetoggle":i=Nt}var c=!!(4&n),f=!c&&("scroll"===e||"scrollend"===e),p=c?null!==u?u+"Capture":null:u;c=[];for(var m,h=r;null!==h;){var g=h;if(m=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===m||null===p||null!=(g=Wn(h,p))&&c.push(uf(h,g,m)),f)break;h=h.return}0<c.length&&(u=new i(u,s,null,t,l),o.push({event:u,listeners:c}))}}if(!(7&n)){if(i="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||t===Un||!(s=t.relatedTarget||t.fromElement)||!Ke(s)&&!s[Ve])&&(i||u)&&(u=l.window===l?l:(u=l.ownerDocument)?u.defaultView||u.parentWindow:window,i?(i=r,null!==(s=(s=t.relatedTarget||t.toElement)?Ke(s):null)&&(f=d(s),c=s.tag,s!==f||5!==c&&27!==c&&6!==c)&&(s=null)):(i=null,s=r),i!==s)){if(c=dt,g="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=xt,g="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==i?u:Xe(i),m=null==s?u:Xe(s),(u=new c(g,h+"leave",i,t,l)).target=f,u.relatedTarget=m,g=null,Ke(l)===r&&((c=new c(p,h+"enter",s,t,l)).target=m,c.relatedTarget=f,g=c),f=g,i&&s)e:{for(p=s,h=0,m=c=i;m;m=cf(m))h++;for(m=0,g=p;g;g=cf(g))m++;for(;0<h-m;)c=cf(c),h--;for(;0<m-h;)p=cf(p),m--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=cf(c),p=cf(p)}c=null}else c=null;null!==i&&ff(o,u,i,c,!1),null!==s&&null!==f&&ff(o,f,s,c,!0)}if("select"===(i=(u=r?Xe(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===i&&"file"===u.type)var v=Kt;else if(Ht(u))if(Yt)v=lr;else{v=tr;var y=nr}else!(i=u.nodeName)||"input"!==i.toLowerCase()||"checkbox"!==u.type&&"radio"!==u.type?r&&On(r.elementType)&&(v=Kt):v=rr;switch(v&&(v=v(e,r))?Qt(o,v,t,l):(y&&y(e,u,r),"focusout"===e&&r&&"number"===u.type&&null!=r.memoizedProps.value&&Pn(u,"number",u.value)),y=r?Xe(r):window,e){case"focusin":(Ht(y)||"true"===y.contentEditable)&&(pr=y,mr=r,hr=null);break;case"focusout":hr=mr=pr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,vr(o,t,l);break;case"selectionchange":if(dr)break;case"keydown":case"keyup":vr(o,t,l)}var b;if(Tt)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else It?At(e,t)&&(k="onCompositionEnd"):"keydown"===e&&229===t.keyCode&&(k="onCompositionStart");k&&(Dt&&"ko"!==t.locale&&(It||"onCompositionStart"!==k?"onCompositionEnd"===k&&It&&(b=Jn()):(Gn="value"in(Xn=l)?Xn.value:Xn.textContent,It=!0)),0<(y=sf(r,k)).length&&(k=new vt(k,e,null,t,l),o.push({event:k,listeners:y}),b?k.data=b:null!==(b=Rt(t))&&(k.data=b))),(b=Ft?Ut(e,t):jt(e,t))&&(0<(k=sf(r,"onBeforeInput")).length&&(y=new vt("onBeforeInput","beforeinput",null,t,l),o.push({event:y,listeners:k}),y.data=b)),Yc(o,e,r,t,l)}ef(o,n)})}function uf(e,n,t){return{instance:e,listener:n,currentTarget:t}}function sf(e,n){for(var t=n+"Capture",r=[];null!==e;){var l=e,a=l.stateNode;if(5!==(l=l.tag)&&26!==l&&27!==l||null===a||(null!=(l=Wn(e,t))&&r.unshift(uf(e,l,a)),null!=(l=Wn(e,n))&&r.push(uf(e,l,a))),3===e.tag)return r;e=e.return}return[]}function cf(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function ff(e,n,t,r,l){for(var a=n._reactName,o=[];null!==t&&t!==r;){var u=t,i=u.alternate,s=u.stateNode;if(u=u.tag,null!==i&&i===r)break;5!==u&&26!==u&&27!==u||null===s||(i=s,l?null!=(s=Wn(t,a))&&o.unshift(uf(t,s,i)):l||null!=(s=Wn(t,a))&&o.push(uf(t,s,i))),t=t.return}0!==o.length&&e.push({event:n,listeners:o})}var df=/\r\n?/g,pf=/\u0000|\uFFFD/g;function mf(e){return("string"==typeof e?e:""+e).replace(df,"\n").replace(pf,"")}function hf(e,n){return n=mf(n),mf(e)===n}function gf(){}function vf(e,n,t,r,l,a){switch(t){case"children":"string"==typeof r?"body"===n||"textarea"===n&&""===r||_n(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==n&&_n(e,""+r);break;case"className":cn(e,"class",r);break;case"tabIndex":cn(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":cn(e,t,r);break;case"style":Mn(e,r,a);break;case"data":if("object"!==n){cn(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==n||"href"!==t)){e.removeAttribute(t);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(t);break}r=In(""+r),e.setAttribute(t,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(t,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof a&&("formAction"===t?("input"!==n&&vf(e,n,"name",l.name,l,null),vf(e,n,"formEncType",l.formEncType,l,null),vf(e,n,"formMethod",l.formMethod,l,null),vf(e,n,"formTarget",l.formTarget,l,null)):(vf(e,n,"encType",l.encType,l,null),vf(e,n,"method",l.method,l,null),vf(e,n,"target",l.target,l,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(t);break}r=In(""+r),e.setAttribute(t,r);break;case"onClick":null!=r&&(e.onclick=gf);break;case"onScroll":null!=r&&nf("scroll",e);break;case"onScrollEnd":null!=r&&nf("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(c(61));if(null!=(t=r.__html)){if(null!=l.children)throw Error(c(60));e.innerHTML=t}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}t=In(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(t,""+r):e.removeAttribute(t);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
42ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":!0===r?e.setAttribute(t,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(t,r):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(t,r):e.removeAttribute(t);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(t):e.setAttribute(t,r);break;case"popover":nf("beforetoggle",e),nf("toggle",e),sn(e,"popover",r);break;case"xlinkActuate":fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":fn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":fn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":fn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":fn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":sn(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&sn(e,t=An.get(t)||t,r)}}function yf(e,n,t,r,l,a){switch(t){case"style":Mn(e,r,a);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(c(61));if(null!=(t=r.__html)){if(null!=l.children)throw Error(c(60));e.innerHTML=t}}break;case"children":"string"==typeof r?_n(e,r):("number"==typeof r||"bigint"==typeof r)&&_n(e,""+r);break;case"onScroll":null!=r&&nf("scroll",e);break;case"onScrollEnd":null!=r&&nf("scrollend",e);break;case"onClick":null!=r&&(e.onclick=gf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:en.hasOwnProperty(t)||("o"!==t[0]||"n"!==t[1]||(l=t.endsWith("Capture"),n=t.slice(2,l?t.length-7:void 0),"function"==typeof(a=null!=(a=e[je]||null)?a[t]:null)&&e.removeEventListener(n,a,l),"function"!=typeof r)?t in e?e[t]=r:!0===r?e.setAttribute(t,""):sn(e,t,r):("function"!=typeof a&&null!==a&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(n,r,l)))}}function bf(e,n,t){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nf("error",e),nf("load",e);var r,l=!1,a=!1;for(r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)switch(r){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,n));default:vf(e,n,r,o,t,null)}}return a&&vf(e,n,"srcSet",t.srcSet,t,null),void(l&&vf(e,n,"src",t.src,t,null));case"input":nf("invalid",e);var u=r=o=a=null,i=null,s=null;for(l in t)if(t.hasOwnProperty(l)){var f=t[l];if(null!=f)switch(l){case"name":a=f;break;case"type":o=f;break;case"checked":i=f;break;case"defaultChecked":s=f;break;case"value":r=f;break;case"defaultValue":u=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(c(137,n));break;default:vf(e,n,l,f,t,null)}}return zn(e,r,u,i,s,o,a,!1),void kn(e);case"select":for(a in nf("invalid",e),l=o=r=null,t)if(t.hasOwnProperty(a)&&null!=(u=t[a]))switch(a){case"value":r=u;break;case"defaultValue":o=u;break;case"multiple":l=u;default:vf(e,n,a,u,t,null)}return n=r,t=o,e.multiple=!!l,void(null!=n?Nn(e,!!l,n,!1):null!=t&&Nn(e,!!l,t,!0));case"textarea":for(o in nf("invalid",e),r=a=l=null,t)if(t.hasOwnProperty(o)&&null!=(u=t[o]))switch(o){case"value":l=u;break;case"defaultValue":a=u;break;case"children":r=u;break;case"dangerouslySetInnerHTML":if(null!=u)throw Error(c(91));break;default:vf(e,n,o,u,t,null)}return Tn(e,l,a,r),void kn(e);case"option":for(i in t)if(t.hasOwnProperty(i)&&null!=(l=t[i]))if("selected"===i)e.selected=l&&"function"!=typeof l&&"symbol"!=typeof l;else vf(e,n,i,l,t,null);return;case"dialog":nf("beforetoggle",e),nf("toggle",e),nf("cancel",e),nf("close",e);break;case"iframe":case"object":nf("load",e);break;case"video":case"audio":for(l=0;l<Zc.length;l++)nf(Zc[l],e);break;case"image":nf("error",e),nf("load",e);break;case"details":nf("toggle",e);break;case"embed":case"source":case"link":nf("error",e),nf("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(s in t)if(t.hasOwnProperty(s)&&null!=(l=t[s]))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,n));default:vf(e,n,s,l,t,null)}return;default:if(On(n)){for(f in t)t.hasOwnProperty(f)&&(void 0!==(l=t[f])&&yf(e,n,f,l,t,void 0));return}}for(u in t)t.hasOwnProperty(u)&&(null!=(l=t[u])&&vf(e,n,u,l,t,null))}function kf(e,n,t,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;
vendor: 4,666 bytes, line 42
42case"input":var l=null,a=null,o=null,u=null,i=null,s=null,f=null;for(m in t){var d=t[m];if(t.hasOwnProperty(m)&&null!=d)switch(m){case"checked":case"value":break;case"defaultValue":i=d;default:r.hasOwnProperty(m)||vf(e,n,m,null,r,d)}}for(var p in r){var m=r[p];if(d=t[p],r.hasOwnProperty(p)&&(null!=m||null!=d))switch(p){case"type":a=m;break;case"name":l=m;break;case"checked":s=m;break;case"defaultChecked":f=m;break;case"value":o=m;break;case"defaultValue":u=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(c(137,n));break;default:m!==d&&vf(e,n,p,m,r,d)}}return void Cn(e,o,u,i,s,f,a,l);case"select":for(a in m=o=u=p=null,t)if(i=t[a],t.hasOwnProperty(a)&&null!=i)switch(a){case"value":break;case"multiple":m=i;default:r.hasOwnProperty(a)||vf(e,n,a,null,r,i)}for(l in r)if(a=r[l],i=t[l],r.hasOwnProperty(l)&&(null!=a||null!=i))switch(l){case"value":p=a;break;case"defaultValue":u=a;break;case"multiple":o=a;default:a!==i&&vf(e,n,l,a,r,i)}return n=u,t=o,r=m,void(null!=p?Nn(e,!!t,p,!1):!!r!=!!t&&(null!=n?Nn(e,!!t,n,!0):Nn(e,!!t,t?[]:"",!1)));case"textarea":for(u in m=p=null,t)if(l=t[u],t.hasOwnProperty(u)&&null!=l&&!r.hasOwnProperty(u))switch(u){case"value":case"children":break;default:vf(e,n,u,null,r,l)}for(o in r)if(l=r[o],a=t[o],r.hasOwnProperty(o)&&(null!=l||null!=a))switch(o){case"value":p=l;break;case"defaultValue":m=l;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(c(91));break;default:l!==a&&vf(e,n,o,l,r,a)}return void Ln(e,p,m);case"option":for(var h in t)if(p=t[h],t.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h))if("selected"===h)e.selected=!1;else vf(e,n,h,null,r,p);for(i in r)if(p=r[i],m=t[i],r.hasOwnProperty(i)&&p!==m&&(null!=p||null!=m))if("selected"===i)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else vf(e,n,i,p,r,m);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in t)p=t[g],t.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&vf(e,n,g,null,r,p);for(s in r)if(p=r[s],m=t[s],r.hasOwnProperty(s)&&p!==m&&(null!=p||null!=m))switch(s){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(c(137,n));break;default:vf(e,n,s,p,r,m)}return;default:if(On(n)){for(var v in t)p=t[v],t.hasOwnProperty(v)&&void 0!==p&&!r.hasOwnProperty(v)&&yf(e,n,v,void 0,r,p);for(f in r)p=r[f],m=t[f],!r.hasOwnProperty(f)||p===m||void 0===p&&void 0===m||yf(e,n,f,p,r,m);return}}for(var y in t)p=t[y],t.hasOwnProperty(y)&&null!=p&&!r.hasOwnProperty(y)&&vf(e,n,y,null,r,p);for(d in r)p=r[d],m=t[d],!r.hasOwnProperty(d)||p===m||null==p&&null==m||vf(e,n,d,p,r,m)}var wf=null,Sf=null;function Ef(e){return 9===e.nodeType?e:e.ownerDocument}function xf(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Cf(e,n){if(0===e)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===n?0:e}function zf(e,n){return"textarea"===e||"noscript"===e||"string"==typeof n.children||"number"==typeof n.children||"bigint"==typeof n.children||"object"==typeof n.dangerouslySetInnerHTML&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.__html}var Pf=null;function Nf(){var e=window.event;return e&&"popstate"===e.type?e!==Pf&&(Pf=e,!0):(Pf=null,!1)}var Lf="function"==typeof setTimeout?setTimeout:void 0,Tf="function"==typeof clearTimeout?clearTimeout:void 0,_f="function"==typeof Promise?Promise:void 0,Ff="function"==typeof queueMicrotask?queueMicrotask:void 0!==_f?function(e){return _f.resolve(null).then(e).catch(Df)}:Lf;function Df(e){setTimeout(function(){throw e})}function Mf(e){return"head"===e}function Of(e,n){var t=n,r=0,l=0;do{var a=t.nextSibling;if(e.removeChild(t),a&&8===a.nodeType)if("/$"===(t=a.data)){if(0<r&&8>r){t=r;var o=e.ownerDocument;if(1&t&&Bf(o.documentElement),2&t&&Bf(o.body),4&t)for(Bf(t=o.head),o=t.firstChild;o;){var u=o.nextSibling,i=o.nodeName;o[We]||"SCRIPT"===i||"STYLE"===i||"LINK"===i&&"stylesheet"===o.rel.toLowerCase()||t.removeChild(o),o=u}}if(0===l)return e.removeChild(a),void np(n);l--}else"$"===t||"$?"===t||"$!"===t?l++:r=t.charCodeAt(0)-48;else r=0;t=a}while(t);np(n)}function Af(e){var n=e.firstChild;for(n&&10===n.nodeType&&(n=n.nextSibling);n;){var t=n;switch(n=n.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":Af(t),qe(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===t.rel.toLowerCase())continue}e.removeChild(t)}}function Rf(e,n,t,r){for(;1===e.nodeType;){var l=t;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!r&&("INPUT"!==e.n
vendor: 4,951 bytes, line 42
42odeName||"hidden"!==e.type))break}else if(r){if(!e[We])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(a=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(a!==l.rel||e.getAttribute("href")!==(null==l.href||""===l.href?null:l.href)||e.getAttribute("crossorigin")!==(null==l.crossOrigin?null:l.crossOrigin)||e.getAttribute("title")!==(null==l.title?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((a=e.getAttribute("src"))!==(null==l.src?null:l.src)||e.getAttribute("type")!==(null==l.type?null:l.type)||e.getAttribute("crossorigin")!==(null==l.crossOrigin?null:l.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==n||"hidden"!==e.type)return e;var a=null==l.name?null:""+l.name;if("hidden"===l.type&&e.getAttribute("name")===a)return e}if(null===(e=Vf(e.nextSibling)))break}return null}function If(e,n,t){if(""===n)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Vf(e.nextSibling)))return null}return e}function Uf(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function jf(e,n){var t=e.ownerDocument;if("$?"!==e.data||"complete"===t.readyState)n();else{var r=function(){n(),t.removeEventListener("DOMContentLoaded",r)};t.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Vf(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break;if(8===n){if("$"===(n=e.data)||"$!"===n||"$?"===n||"F!"===n||"F"===n)break;if("/$"===n)return null}}return e}var Hf=null;function Qf(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("$"===t||"$!"===t||"$?"===t){if(0===n)return e;n--}else"/$"===t&&n++}e=e.previousSibling}return null}function $f(e,n,t){switch(n=Ef(t),e){case"html":if(!(e=n.documentElement))throw Error(c(452));return e;case"head":if(!(e=n.head))throw Error(c(453));return e;case"body":if(!(e=n.body))throw Error(c(454));return e;default:throw Error(c(451))}}function Bf(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);qe(e)}var Wf=new Map,qf=new Set;function Kf(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Yf=j.d;j.d={f:function(){var e=Yf.f(),n=rc();return e||n},r:function(e){var n=Ye(e);null!==n&&5===n.tag&&"form"===n.type?Bo(n):Yf.r(e)},D:function(e){Yf.D(e),Gf("dns-prefetch",e,null)},C:function(e,n){Yf.C(e,n),Gf("preconnect",e,n)},L:function(e,n,t){Yf.L(e,n,t);var r=Xf;if(r&&e&&n){var l='link[rel="preload"][as="'+xn(n)+'"]';"image"===n&&t&&t.imageSrcSet?(l+='[imagesrcset="'+xn(t.imageSrcSet)+'"]',"string"==typeof t.imageSizes&&(l+='[imagesizes="'+xn(t.imageSizes)+'"]')):l+='[href="'+xn(e)+'"]';var a=l;switch(n){case"style":a=Jf(e);break;case"script":a=td(e)}Wf.has(a)||(e=v({rel:"preload",href:"image"===n&&t&&t.imageSrcSet?void 0:e,as:n},t),Wf.set(a,e),null!==r.querySelector(l)||"style"===n&&r.querySelector(ed(a))||"script"===n&&r.querySelector(rd(a))||(bf(n=r.createElement("link"),"link",e),Ze(n),r.head.appendChild(n)))}},m:function(e,n){Yf.m(e,n);var t=Xf;if(t&&e){var r=n&&"string"==typeof n.as?n.as:"script",l='link[rel="modulepreload"][as="'+xn(r)+'"][href="'+xn(e)+'"]',a=l;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=td(e)}if(!Wf.has(a)&&(e=v({rel:"modulepreload",href:e},n),Wf.set(a,e),null===t.querySelector(l))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(rd(a)))return}bf(r=t.createElement("link"),"link",e),Ze(r),t.head.appendChild(r)}}},X:function(e,n){Yf.X(e,n);var t=Xf;if(t&&e){var r=Ge(t).hoistableScripts,l=td(e),a=r.get(l);a||((a=t.querySelector(rd(l)))||(e=v({src:e,async:!0},n),(n=Wf.get(l))&&ud(e,n),Ze(a=t.createElement("script")),bf(a,"link",e),t.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(l,a))}},S:function(e,n,t){Yf.S(e,n,t);var r=Xf;if(r&&e){var l=Ge(r).hoistableStyles,a=Jf(e);n=n||"default";var o=l.get(a);if(!o){var u={loading:0,preload:null};if(o=r.querySelector(ed(a)))u.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":n},t),(t=Wf.get(a))&&od(e,t);var i=o=r.createElement("link");Ze(i),bf(i,"link",e),i._p=new Promise(function(e,n){i.onload=e,i.onerror=n}),i.addEventListener("load",function(){u.loading|=1}),i.addEventListener("error",function(){u.loading|=2}),u.loading|=4,ad(o,n,r)}o={type:"stylesheet",instance:o,count:1,state:u},l.set(a,o)}}},M:function(e,n){Yf.M(e,n);var t=Xf;if(t&&e){var r=Ge(t).hoistableScripts,l=td(e),a=r.get(l);a||((a=t.querySelector(rd(l)))||(e=v({src:e,async:!0,type:"module"},n),(n=Wf.get(l))&&ud(e,n),Ze(a=t.createElement("script")),bf(a,"link",e),t.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(l,a))}}};
vendor: 3,765 bytes, line 42
42var Xf="undefined"==typeof document?null:document;function Gf(e,n,t){var r=Xf;if(r&&"string"==typeof n&&n){var l=xn(n);l='link[rel="'+e+'"][href="'+l+'"]',"string"==typeof t&&(l+='[crossorigin="'+t+'"]'),qf.has(l)||(qf.add(l),e={rel:e,crossOrigin:t,href:n},null===r.querySelector(l)&&(bf(n=r.createElement("link"),"link",e),Ze(n),r.head.appendChild(n)))}}function Zf(e,n,t,r){var l,a,o,u,i=(i=Y.current)?Kf(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof t.precedence&&"string"==typeof t.href?(n=Jf(t.href),(r=(t=Ge(i).hoistableStyles).get(n))||(r={type:"style",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===t.rel&&"string"==typeof t.href&&"string"==typeof t.precedence){e=Jf(t.href);var s=Ge(i).hoistableStyles,f=s.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=i.querySelector(ed(e)))&&!s._p&&(f.instance=s,f.state.loading=5),Wf.has(e)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},Wf.set(e,t),s||(l=i,a=e,o=t,u=f.state,l.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=l.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),bf(a,"link",o),Ze(a),l.head.appendChild(a))))),n&&null===r)throw Error(c(528,""));return f}if(n&&null!==r)throw Error(c(529,""));return null;case"script":return n=t.async,"string"==typeof(t=t.src)&&n&&"function"!=typeof n&&"symbol"!=typeof n?(n=td(t),(r=(t=Ge(i).hoistableScripts).get(n))||(r={type:"script",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Jf(e){return'href="'+xn(e)+'"'}function ed(e){return'link[rel="stylesheet"]['+e+"]"}function nd(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function td(e){return'[src="'+xn(e)+'"]'}function rd(e){return"script[async]"+e}function ld(e,n,t){if(n.count++,null===n.instance)switch(n.type){case"style":var r=e.querySelector('style[data-href~="'+xn(t.href)+'"]');if(r)return n.instance=r,Ze(r),r;var l=v({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return Ze(r=(e.ownerDocument||e).createElement("style")),bf(r,"style",l),ad(r,t.precedence,e),n.instance=r;case"stylesheet":l=Jf(t.href);var a=e.querySelector(ed(l));if(a)return n.state.loading|=4,n.instance=a,Ze(a),a;r=nd(t),(l=Wf.get(l))&&od(r,l),Ze(a=(e.ownerDocument||e).createElement("link"));var o=a;return o._p=new Promise(function(e,n){o.onload=e,o.onerror=n}),bf(a,"link",r),n.state.loading|=4,ad(a,t.precedence,e),n.instance=a;case"script":return a=td(t.src),(l=e.querySelector(rd(a)))?(n.instance=l,Ze(l),l):(r=t,(l=Wf.get(a))&&ud(r=v({},t),l),Ze(l=(e=e.ownerDocument||e).createElement("script")),bf(l,"link",r),e.head.appendChild(l),n.instance=l);case"void":return null;default:throw Error(c(443,n.type))}else"stylesheet"===n.type&&!(4&n.state.loading)&&(r=n.instance,n.state.loading|=4,ad(r,t.precedence,e));return n.instance}function ad(e,n,t){for(var r=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=r.length?r[r.length-1]:null,a=l,o=0;o<r.length;o++){var u=r[o];if(u.dataset.precedence===n)a=u;else if(a!==l)break}a?a.parentNode.insertBefore(e,a.nextSibling):(n=9===t.nodeType?t.head:t).insertBefore(e,n.firstChild)}function od(e,n){null==e.crossOrigin&&(e.crossOrigin=n.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy),null==e.title&&(e.title=n.title)}
vendor: 2,684 bytes, line 42
42function ud(e,n){null==e.crossOrigin&&(e.crossOrigin=n.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy),null==e.integrity&&(e.integrity=n.integrity)}var id=null;function sd(e,n,t){if(null===id){var r=new Map,l=id=new Map;l.set(t,r)}else(r=(l=id).get(t))||(r=new Map,l.set(t,r));if(r.has(e))return r;for(r.set(e,null),t=t.getElementsByTagName(e),l=0;l<t.length;l++){var a=t[l];if(!(a[We]||a[Ue]||"link"===e&&"stylesheet"===a.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==a.namespaceURI){var o=a.getAttribute(n)||"";o=e+o;var u=r.get(o);u?u.push(a):r.set(o,[a])}}return r}function cd(e,n,t){(e=e.ownerDocument||e).head.insertBefore(t,"title"===n?e.querySelector("head > title"):null)}function fd(e,n,t){if(1===t||null!=n.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof n.precedence||"string"!=typeof n.href||""===n.href)break;return!0;case"link":if("string"!=typeof n.rel||"string"!=typeof n.href||""===n.href||n.onLoad||n.onError)break;return"stylesheet"!==n.rel||(e=n.disabled,"string"==typeof n.precedence&&null==e);case"script":if(n.async&&"function"!=typeof n.async&&"symbol"!=typeof n.async&&!n.onLoad&&!n.onError&&n.src&&"string"==typeof n.src)return!0}return!1}function dd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var pd=null;function md(){}function hd(e,n,t){if(null===pd)throw Error(c(475));var r=pd;if(!("stylesheet"!==n.type||"string"==typeof t.media&&!1===matchMedia(t.media).matches||4&n.state.loading)){if(null===n.instance){var l=Jf(t.href),a=e.querySelector(ed(l));if(a)return null!==(e=a._p)&&"object"==typeof e&&"function"==typeof e.then&&(r.count++,r=vd.bind(r),e.then(r,r)),n.state.loading|=4,n.instance=a,void Ze(a);a=e.ownerDocument||e,t=nd(t),(l=Wf.get(l))&&od(t,l),Ze(a=a.createElement("link"));var o=a;o._p=new Promise(function(e,n){o.onload=e,o.onerror=n}),bf(a,"link",t),n.instance=a}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(n,e),(e=n.state.preload)&&!(3&n.state.loading)&&(r.count++,n=vd.bind(r),e.addEventListener("load",n),e.addEventListener("error",n))}}function gd(){if(null===pd)throw Error(c(475));var e=pd;return e.stylesheets&&0===e.count&&bd(e,e.stylesheets),0<e.count?function(n){var t=setTimeout(function(){if(e.stylesheets&&bd(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(t)}}:null}function vd(){if(this.count--,0===this.count)if(this.stylesheets)bd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var yd=null;function bd(e,n){e.stylesheets=null,null!==e.unsuspend&&(e.count++,yd=new Map,n.forEac
vendor: 2,563 bytes, line 42
42h(kd,e),yd=null,vd.call(e))}function kd(e,n){if(!(4&n.state.loading)){var t=yd.get(e);if(t)var r=t.get(null);else{t=new Map,yd.set(e,t);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<l.length;a++){var o=l[a];"LINK"!==o.nodeName&&"not all"===o.getAttribute("media")||(t.set(o.dataset.precedence,o),r=o)}r&&t.set(null,r)}o=(l=n.instance).getAttribute("data-precedence"),(a=t.get(o)||r)===r&&t.set(null,l),t.set(o,l),this.count++,r=vd.bind(this),l.addEventListener("load",r),l.addEventListener("error",r),a?a.parentNode.insertBefore(l,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(l,e.firstChild),n.state.loading|=4}}var wd={$$typeof:z,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function Sd(e,n,t,r,l,a,o,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=r,this.onUncaughtError=l,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=new Map}function Ed(e,n,t,r,l,a,o,u,i,s,c,f){return e=new Sd(e,n,t,o,u,i,s,f),n=1,!0===a&&(n|=24),a=Wr(3,null,null,n),e.current=a,a.stateNode=e,(n=Ql()).refCount++,e.pooledCache=n,n.refCount++,a.memoizedState={element:r,isDehydrated:t,cache:n},pa(a),e}function xd(e){return e?e=$r:$r}function Cd(e,n,t,r,l,a){l=xd(l),null===r.context?r.context=l:r.pendingContext=l,(r=ha(n)).payload={element:t},null!==(a=void 0===a?null:a)&&(r.callback=a),null!==(t=ga(e,r,n))&&(Zs(t,0,n),va(t,e,n))}function zd(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function Pd(e,n){zd(e,n),(e=e.alternate)&&zd(e,n)}function Nd(e){if(13===e.tag){var n=Vr(e,67108864);null!==n&&Zs(n,0,67108864),Pd(e,67108864)}}var Ld=!0;function Td(e,n,t,r){var l=U.T;U.T=null;var a=j.p;try{j.p=2,Fd(e,n,t,r)}finally{j.p=a,U.T=l}}function _d(e,n,t,r){var l=U.T;U.T=null;var a=j.p;try{j.p=8,Fd(e,n,t,r)}finally{j.p=a,U.T=l}}function Fd(e,n,t,r){if(Ld){var l=Dd(r);if(null===l)of(e,n,r,Md,t),Bd(e,r);else if(qd(l,e,n,t,r))r.stopPropagation();else if(Bd(e,r),4&n&&-1<$d.indexOf(e)){for(;null!==l;){var a=Ye(l);
vendor: 17,048 bytes, lines 42-66
42if(null!==a)switch(a.tag){case 3:if((a=a.stateNode).current.memoizedState.isDehydrated){var o=Ee(a.pendingLanes);if(0!==o){var u=a;for(u.pendingLanes|=2,u.entangledLanes|=2;o;){var i=1<<31-ye(o);u.entanglements[1]|=i,o&=~i}Uc(a),!(6&ys)&&(Is=oe()+500,jc(0,!1))}}break;case 13:null!==(u=Vr(a,2))&&Zs(u,0,2),rc(),Pd(a,2)}if(null===(a=Dd(r))&&of(e,n,r,Md,t),a===l)break;l=a}null!==l&&r.stopPropagation()}else of(e,n,r,null,t)}}function Dd(e){return Od(e=jn(e))}var Md=null;function Od(e){if(Md=null,null!==(e=Ke(e))){var n=d(e);if(null===n)e=null;else{var t=n.tag;if(13===t){if(null!==(e=p(n)))return e;e=null}else if(3===t){if(n.stateNode.current.memoizedState.isDehydrated)return 3===n.tag?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Md=e,null}function Ad(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ue()){case ie:return 2;case se:return 8;case ce:case fe:return 32;case de:return 268435456;default:return 32}default:return 32}}var Rd=!1,Id=null,Ud=null,jd=null,Vd=new Map,Hd=new Map,Qd=[],$d="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Bd(e,n){switch(e){case"focusin":case"focusout":Id=null;break;case"dragenter":case"dragleave":Ud=null;break;case"mouseover":case"mouseout":jd=null;break;case"pointerover":case"pointerout":Vd.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hd.delete(n.pointerId)}}function Wd(e,n,t,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},null!==n&&(null!==(n=Ye(n))&&Nd(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,null!==l&&-1===n.indexOf(l)&&n.push(l),e)}function qd(e,n,t,r,l){switch(n){case"focusin":return Id=Wd(Id,e,n,t,r,l),!0;case"dragenter":return Ud=Wd(Ud,e,n,t,r,l),!0;case"mouseover":return jd=Wd(jd,e,n,t,r,l),!0;case"pointerover":var a=l.pointerId;return Vd.set(a,Wd(Vd.get(a)||null,e,n,t,r,l)),!0;case"gotpointercapture":return a=l.pointerId,Hd.set(a,Wd(Hd.get(a)||null,e,n,t,r,l)),!0}return!1}function Kd(e){var n=Ke(e.target);if(null!==n){var t=d(n);if(null!==t)if(13===(n=t.tag)){if(null!==(n=p(t)))return e.blockedOn=n,void Re(e.priority,function(){if(13===t.tag){var e=Xs();e=Me(e);var n=Vr(t,e);null!==n&&Zs(n,0,e),Pd(t,e)}})}else if(3===n&&t.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===t.tag?t.stateNode.containerInfo:null)}e.blockedOn=null}function Yd(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=Dd(e.nativeEvent);if(null!==t)return null!==(n=Ye(t))&&Nd(n),e.blockedOn=t,!1;var r=new(t=e.nativeEvent).constructor(t.type,t);Un=r,t.target.dispatchEvent(r),Un=null,n.shift()}return!0}function Xd(e,n,t){Yd(e)&&t.delete(n)}function Gd(){Rd=!1,null!==Id&&Yd(Id)&&(Id=null),null!==Ud&&Yd(Ud)&&(Ud=null),null!==jd&&Yd(jd)&&(jd=null),Vd.forEach(Xd),Hd.forEach(Xd)}function Zd(e,n){e.blockedOn===n&&(e.blockedOn=null,Rd||(Rd=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Gd)))}var Jd=null;function ep(e){Jd!==e&&(Jd=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Jd===e&&(Jd=null);for(var n=0;n<e.length;n+=3){var t=e[n],r=e[n+1],l=e[n+2];if("function"!=typeof r){if(null===Od(r||t))continue;break}var a=Ye(t);null!==a&&(e.splice(n,3),n-=3,Qo(a,{pending:!0,data:l,method:t.method,action:r},r,l))}}))}function np(e){function n(n){return Zd(n,e)}null!==Id&&Zd(Id,e),null!==Ud&&Zd(Ud,e),null!==jd&&Zd(jd,e),Vd.forEach(n),Hd.forEach(n);for(var t=0;t<Qd.length;t++){var r=Qd[t];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Qd.length&&null===(t=Qd[0]).blockedOn;)Kd(t),null===t.blockedOn&&Qd.shift();if(null!=(t=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<t.length;r+=3){var l=t[r],a=t[r+1],o=l[je]||null;if("function"==typeof a)o||ep(t);else if(o){var u=null;if(a&&a.hasAttribute("formAction")){if(l=a,o=a[je]||null)u=o.formAction;else if(null!==Od(l))continue}else u=o.action;"function"==typeof u?t[r+1]=u:(t.splice(r,3),r-=3),ep(t)}}}function tp(e){this._internalRoot=e}function rp(e){this._internalRoot=e}rp.prototype.render=tp.prototype.render=function(e){var n=this._internalRoot;if(null===n)throw Error(c(409));Cd(n.current,Xs(),e,n,null,null)},rp.prototype.unmount=tp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var n=e.containerInfo;Cd(e.current,2,null,e,null,null),rc(),n[Ve]=null}},rp.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ae();e={blockedOn:null,target:e,priority:n};for(var t=0;t<Qd.length&&0!==n&&n<Qd[t].priority;t++);Qd.splice(t,0,e),0===t&&Kd(e)}};var lp=i.version;if("19.1.0"!==lp)throw Error(c(527,lp,"19.1.0"));j.findDOMNode=function(e){var n=e._reactInternals;if(void 0===n){if("function"==typeof e.render)throw Error(c(188));throw e=Object.keys(e).join(","),Error(c(268,e))}return e=null===(e=null!==(e=h(n))?g(e):null)?null:e.stateNode};var ap={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.1.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var op=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!op.isDisabled&&op.supportsFiber)try{he=op.inject(ap),ge=op}catch(e){}}a.createRoot=function(e,n){if(!f(e))throw Error(c(299));var t=!1,r="",l=Tu,a=_u,o=Fu;return null!=n&&(!0===n.unstable_strictMode&&(t=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onUncaughtError&&(l=n.onUncaughtError),void 0!==n.onCaughtError&&(a=n.onCaughtError),void 0!==n.onRecoverableError&&(o=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks),n=Ed(e,1,!1,null,0,t,r,l,a,o,0,null),e[Ve]=n.current,lf(e),new tp(n)},a.hydrateRoot=function(e,n,t){if(!f(e))throw Error(c(299));var r=!1,l="",a=Tu,o=_u,u=Fu,i=null;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(l=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(u=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks,void 0!==t.formState&&(i=t.formState)),(n=Ed(e,1,!0,n,0,r,l,a,o,u,0,i)).context=xd(null),t=n.current,(l=ha(r=Me(r=Xs()))).callback=null,ga(t,l,r),t=r,n.current.lanes=t,Te(n,t),Uc(n),e[Ve]=n.current,lf(e),new rp(n)},a.version="19.1.0"},31,[32,34,36]);
43__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},32,[33]);
44__d(function(g,r,i,_a,m,e,d){
45/**
46   * @license React
47   * scheduler.production.js
48   *
49   * Copyright (c) Meta Platforms, Inc. and affiliates.
50   *
51   * This source code is licensed under the MIT license found in the
52   * LICENSE file in the root directory of this source tree.
53   */
54"use strict";function n(n,t){var a=n.length;n.push(t);e:for(;0<a;){var o=a-1>>>1,u=n[o];if(!(0<l(u,t)))break e;n[o]=t,n[a]=u,a=o}}function t(n){return 0===n.length?null:n[0]}function a(n){if(0===n.length)return null;var t=n[0],a=n.pop();if(a!==t){n[0]=a;e:for(var o=0,u=n.length,s=u>>>1;o<s;){var f=2*(o+1)-1,c=n[f],b=f+1,p=n[b];if(0>l(c,a))b<u&&0>l(p,c)?(n[o]=p,n[b]=a,o=b):(n[o]=c,n[f]=a,o=f);else{if(!(b<u&&0>l(p,a)))break e;n[o]=p,n[b]=a,o=b}}}return t}function l(n,t){var a=n.sortIndex-t.sortIndex;return 0!==a?a:n.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,s=u.now();e.unstable_now=function(){return u.now()-s}}var f=[],c=[],b=1,p=null,v=3,y=!1,_=!1,k=!1,w=!1,h="function"==typeof setTimeout?setTimeout:null,T="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function I(l){for(var o=t(c);null!==o;){if(null===o.callback)a(c);else{if(!(o.startTime<=l))break;a(c),o.sortIndex=o.expirationTime,n(f,o)}o=t(c)}}function P(n){if(k=!1,I(n),!_)if(null!==t(f))_=!0,L||(L=!0,C());else{var a=t(c);null!==a&&N(P,a.startTime-n)}}var C,L=!1,M=-1,j=5,F=-1;function R(){return!!w||!(e.unstable_now()-F<j)}function q(){if(w=!1,L){var n=e.unstable_now();F=n;var l=!0;try{e:{_=!1,k&&(k=!1,T(M),M=-1),y=!0;var o=v;try{n:{for(I(n),p=t(f);null!==p&&!(p.expirationTime>n&&R());){var u=p.callback;if("function"==typeof u){p.callback=null,v=p.priorityLevel;var s=u(p.expirationTime<=n);if(n=e.unstable_now(),"function"==typeof s){p.callback=s,I(n),l=!0;break n}p===t(f)&&a(f),I(n)}else a(f);p=t(f)}if(null!==p)l=!0;else{var b=t(c);null!==b&&N(P,b.startTime-n),l=!1}}break e}finally{p=null,v=o,y=!1}l=void 0}}finally{l?C():L=!1}}}if("function"==typeof x)C=function(){x(q)};else if("undefined"!=typeof MessageChannel){var B=new MessageChannel,D=B.port2;B.port1.onmessage=q,C=function(){D.postMessage(null)}}else C=function(){h(q,0)};function N(n,t){M=h(function(){n(e.unstable_now())},t)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(n){n.callback=null},e.unstable_forceFrameRate=function(n){0>n||125<n?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<n?Math.floor(1e3/n):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(n){switch(v){case 1:case 2:case 3:var t=3;break;default:t=v}var a=v;v=t;try{return n()}finally{v=a}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(n,t){switch(n){case 1:case 2:case 3:case 4:case 5:break;default:n=3}var a=v;v=n;try{return t()}finally{v=a}},e.unstable_scheduleCallback=function(a,l,o){var u=e.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?u+o:u:o=u,a){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return a={id:b++,callback:l,priorityLevel:a,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>u?(a.sortIndex=o,n(c,a),null===t(f)&&a===t(c)&&(k?(T(M),M=-1):k=!0,N(P,o-u))):(a.sortIndex=s,n(f,a),_||y||(_=!0,L||(L=!0,C()))),a},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(n){var t=v;return function(){var a=v;v=t;try{return n.apply(this,arguments)}finally{v=a}}}},33,[]);
55__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},34,[35]);
56__d(function(g,r,_i,a,m,e,d){
57/**
58   * @license React
59   * react.production.js
60   *
61   * Copyright (c) Meta Platforms, Inc. and affiliates.
62   *
63   * This source code is licensed under the MIT license found in the
64   * LICENSE file in the root directory of this source tree.
65   */
66"use strict";var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),h=Symbol.iterator;var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,b={};function S(t,n,o){this.props=t,this.context=n,this.refs=b,this.updater=o||_}function E(){}function w(t,n,o){this.props=t,this.context=n,this.refs=b,this.updater=o||_}S.prototype.isReactComponent={},S.prototype.setState=function(t,n){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,n,"setState")},S.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},E.prototype=S.prototype;var R=w.prototype=new E;R.constructor=w,v(R,S.prototype),R.isPureReactComponent=!0;var j=Array.isArray,H={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function C(n,o,u,i,c,s){return u=s.ref,{$$typeof:t,type:n,key:o,ref:void 0!==u?u:null,props:s}}function $(n){return"object"==typeof n&&null!==n&&n.$$typeof===t}var T=/\/+/g;function O(t,n){return"object"==typeof t&&null!==t&&null!=t.key?(o=""+t.key,u={"=":"=0",":":"=2"},"$"+o.replace(/[=:]/g,function(t){return u[t]})):n.toString(36);var o,u}function x(){}function A(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(x,x):(t.status="pending",t.then(function(n){"pending"===t.status&&(t.status="fulfilled",t.value=n)},function(n){"pending"===t.status&&(t.status="rejected",t.reason=n)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function I(o,u,i,c,s){var f=typeof o;"undefined"!==f&&"boolean"!==f||(o=null);var l,p,_=!1;if(null===o)_=!0;else switch(f){case"bigint":case"string":case"number":_=!0;break;case"object":switch(o.$$typeof){case t:case n:_=!0;break;case y:return I((_=o._init)(o._payload),u,i,c,s)}}if(_)return s=s(o),_=""===c?"."+O(o,0):c,j(s)?(i="",null!=_&&(i=_.replace(T,"$&/")+"/"),I(s,u,i,"",function(t){return t})):null!=s&&($(s)&&(l=s,p=i+(null==s.key||o&&o.key===s.key?"":(""+s.key).replace(T,"$&/")+"/")+_,s=C(l.type,p,void 0,0,0,l.props)),u.push(s)),1;_=0;var v,b=""===c?".":c+":";if(j(o))for(var S=0;S<o.length;S++)_+=I(c=o[S],u,i,f=b+O(c,S),s);else if("function"==typeof(S=null===(v=o)||"object"!=typeof v?null:"function"==typeof(v=h&&v[h]||v["@@iterator"])?v:null))for(o=S.call(o),S=0;!(c=o.next()).done;)_+=I(c=c.value,u,i,f=b+O(c,S++),s);else if("object"===f){if("function"==typeof o.then)return I(A(o),u,i,c,s);throw u=String(o),Error("Objects are not valid as a React child (found: "+("[object Object]"===u?"object with keys {"+Object.keys(o).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return _}function P(t,n,o){if(null==t)return t;var u=[],i=0;return I(t,u,"","",function(t){return n.call(o,t,i++)}),u}function U(t){if(-1===t._status){var n=t._result;(n=n()).then(function(n){0!==t._status&&-1!==t._status||(t._status=1,t._result=n)},function(n){0!==t._status&&-1!==t._status||(t._status=2,t._result=n)}),-1===t._status&&(t._status=0,t._result=n)}if(1===t._status)return t._result.default;throw t._result}var N="function"==typeof reportError?reportError:function(t){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof t&&null!==t&&"string"==typeof t.message?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",t);console.error(t)};function M(){}e.Children={map:P,forEach:function(t,n,o){P(t,function(){n.apply(this,arguments)},o)},count:function(t){var n=0;return P(t,function(){n++}),n},toArray:function(t){return P(t,function(t){return t})||[]},only:function(t){if(!$(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},e.Component=S,e.Fragment=o,e.Profiler=i,e.PureComponent=w,e.StrictMode=u,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,e.__COMPILER_RUNTIME={__proto__:null,c:function(t){return H.H.useMemoCache(t)}},e.cache=function(t){return function(){return t.apply(null,arguments)}},e.cloneElement=function(t,n,o){if(null==t)throw Error("The argument must be a React element, but you passed "+t+".");var u=v({},t.props),i=t.key;if(null!=n)for(c in void 0!==n.ref&&void 0,void 0!==n.key&&(i=""+n.key),n)!k.call(n,c)||"key"===c||"__self"===c||"__source"===c||"ref"===c&&void 0===n.ref||(u[c]=n[c]);var c=arguments.length-2;if(1===c)u.children=o;else if(1<c){for(var s=Array(c),f=0;f<c;f++)s[f]=arguments[f+2];u.children=s}return C(t.type,i,void 0,0,0,u)},e.createContext=function(t){return(t={$$typeof:s,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}
vendor: 5,232 bytes, lines 66-78
66).Provider=t,t.Consumer={$$typeof:c,_context:t},t},e.createElement=function(t,n,o){var u,i={},c=null;if(null!=n)for(u in void 0!==n.key&&(c=""+n.key),n)k.call(n,u)&&"key"!==u&&"__self"!==u&&"__source"!==u&&(i[u]=n[u]);var s=arguments.length-2;if(1===s)i.children=o;else if(1<s){for(var f=Array(s),l=0;l<s;l++)f[l]=arguments[l+2];i.children=f}if(t&&t.defaultProps)for(u in s=t.defaultProps)void 0===i[u]&&(i[u]=s[u]);return C(t,c,void 0,0,0,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:f,render:t}},e.isValidElement=$,e.lazy=function(t){return{$$typeof:y,_payload:{_status:-1,_result:t},_init:U}},e.memo=function(t,n){return{$$typeof:p,type:t,compare:void 0===n?null:n}},e.startTransition=function(t){var n=H.T,o={};H.T=o;try{var u=t(),i=H.S;null!==i&&i(o,u),"object"==typeof u&&null!==u&&"function"==typeof u.then&&u.then(M,N)}catch(t){N(t)}finally{H.T=n}},e.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},e.use=function(t){return H.H.use(t)},e.useActionState=function(t,n,o){return H.H.useActionState(t,n,o)},e.useCallback=function(t,n){return H.H.useCallback(t,n)},e.useContext=function(t){return H.H.useContext(t)},e.useDebugValue=function(){},e.useDeferredValue=function(t,n){return H.H.useDeferredValue(t,n)},e.useEffect=function(t,n,o){var u=H.H;if("function"==typeof o)throw Error("useEffect CRUD overload is not enabled in this build of React.");return u.useEffect(t,n)},e.useId=function(){return H.H.useId()},e.useImperativeHandle=function(t,n,o){return H.H.useImperativeHandle(t,n,o)},e.useInsertionEffect=function(t,n){return H.H.useInsertionEffect(t,n)},e.useLayoutEffect=function(t,n){return H.H.useLayoutEffect(t,n)},e.useMemo=function(t,n){return H.H.useMemo(t,n)},e.useOptimistic=function(t,n){return H.H.useOptimistic(t,n)},e.useReducer=function(t,n,o){return H.H.useReducer(t,n,o)},e.useRef=function(t){return H.H.useRef(t)},e.useState=function(t){return H.H.useState(t)},e.useSyncExternalStore=function(t,n,o){return H.H.useSyncExternalStore(t,n,o)},e.useTransition=function(){return H.H.useTransition()},e.version="19.1.0"},35,[]);
67__d(function(g,r,i,a,m,e,d){'use strict';!(function _(){if('undefined'!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&'function'==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_)}catch(_){console.error(_)}})(),m.exports=r(d[0])},36,[37]);
68__d(function(g,r,_i,_a,m,e,d){
69/**
70   * @license React
71   * react-dom.production.js
72   *
73   * Copyright (c) Meta Platforms, Inc. and affiliates.
74   *
75   * This source code is licensed under the MIT license found in the
76   * LICENSE file in the root directory of this source tree.
77   */
78"use strict";var t=r(d[0]);function i(t){var i="https://react.dev/errors/"+t;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)i+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var o={d:{f:n,r:function(){throw Error(i(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(t,i,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:s,key:null==o?null:""+o,children:t,containerInfo:i,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(t,i){return"font"===t?"":"string"==typeof i?"use-credentials"===i?i:"":void 0}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,e.createPortal=function(t,n){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(i(299));return f(t,n,null,o)},e.flushSync=function(t){var i=c.T,n=o.p;try{if(c.T=null,o.p=2,t)return t()}finally{c.T=i,o.p=n,o.d.f()}},e.preconnect=function(t,i){"string"==typeof t&&(i?i="string"==typeof(i=i.crossOrigin)?"use-credentials"===i?i:"":void 0:i=null,o.d.C(t,i))},e.prefetchDNS=function(t){"string"==typeof t&&o.d.D(t)},e.preinit=function(t,i){if("string"==typeof t&&i&&"string"==typeof i.as){var n=i.as,s=y(n,i.crossOrigin),f="string"==typeof i.integrity?i.integrity:void 0,c="string"==typeof i.fetchPriority?i.fetchPriority:void 0;"style"===n?o.d.S(t,"string"==typeof i.precedence?i.precedence:void 0,{crossOrigin:s,integrity:f,fetchPriority:c}):"script"===n&&o.d.X(t,{crossOrigin:s,integrity:f,fetchPriority:c,nonce:"string"==typeof i.nonce?i.nonce:void 0})}},e.preinitModule=function(t,i){if("string"==typeof t)if("object"==typeof i&&null!==i){if(null==i.as||"script"===i.as){var n=y(i.as,i.crossOrigin);o.d.M(t,{crossOrigin:n,integrity:"string"==typeof i.integrity?i.integrity:void 0,nonce:"string"==typeof i.nonce?i.nonce:void 0})}}else null==i&&o.d.M(t)},e.preload=function(t,i){if("string"==typeof t&&"object"==typeof i&&null!==i&&"string"==typeof i.as){var n=i.as,s=y(n,i.crossOrigin);o.d.L(t,n,{crossOrigin:s,integrity:"string"==typeof i.integrity?i.integrity:void 0,nonce:"string"==typeof i.nonce?i.nonce:void 0,type:"string"==typeof i.type?i.type:void 0,fetchPriority:"string"==typeof i.fetchPriority?i.fetchPriority:void 0,referrerPolicy:"str
78ing"==typeof i.referrerPolicy?i.referrerPolicy:void 0,imageSrcSet:"string"==typeof i.imageSrcSet?i.imageSrcSet:void 0,imageSizes:"string"==typeof i.imageSizes?i.imageSizes:void 0,media:"string"==typeof i.media?i.media:void 0})}},e.preloadModule=function(t,i){if("string"==typeof t)if(i){var n=y(i.as,i.crossOrigin);o.d.m(t,{as:"string"==typeof i.as&&"script"!==i.as?i.as:void 0,crossOrigin:n,integrity:"string"==typeof i.integrity?i.integrity:void 0})}else o.d.m(t)},e.requestFormReset=function(t){o.d.r(t)},e.unstable_batchedUpdates=function(t,i){return t(i)},e.useFormState=function(t,i,n){return c.H.useFormState(t,i,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version="19.1.0"},37,[34]);
79__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.createSheet=function(e,f){void 0===f&&(f=s);var h;if(t.default){var b=null!=e?e.getRootNode():document;if(0===l.length)h=(0,u.default)((0,n.default)(f)),c.forEach(e=>{h.insert(e,0)}),o.set(b,l.length),l.push(h);else{var p=o.get(b);if(null==p){var v=l[0],k=null!=v?v.getTextContent():'';h=(0,u.default)((0,n.default)(f,b,k)),o.set(b,l.length),l.push(h)}else h=l[p]}}else 0===l.length?(h=(0,u.default)((0,n.default)(f)),c.forEach(e=>{h.insert(e,0)}),l.push(h)):h=l[0];return{getTextContent:()=>h.getTextContent(),id:f,insert(e,t){l.forEach(n=>{n.insert(e,t)})}}};var t=e(r(d[0])),n=e(r(d[1])),u=e(r(d[2])),s='react-native-stylesheet',o=new WeakMap,l=[],c=['html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}','body{margin:0;}','button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}','input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}']},38,[39,40,41]);
80__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var n=!('undefined'==typeof window||!window.document||!window.document.createElement)},39,[]);
81__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};function u(e,t,u){if(n.default){var l=null!=t?t:document,o=l.getElementById(e);if(null==o)if((o=document.createElement('style')).setAttribute('id',e),'string'==typeof u&&o.appendChild(document.createTextNode(u)),l instanceof ShadowRoot)l.insertBefore(o,l.firstChild);else{var f=l.head;f&&f.insertBefore(o,f.firstChild)}return o.sheet}return null}},40,[39]);
82__d(function(g,r,_i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}});var t=Array.prototype.slice;function e(e){var u,a={},c={};null!=e&&t.call(e.cssRules).forEach((t,e)=>{var n=t.cssText;if(n.indexOf('stylesheet-group')>-1)u=l(t),a[u]={start:e,rules:[n]};else{var s=i(n);null!=s&&(c[s]=!0,a[u].rules.push(n))}});function f(t,e,n){var u=s(a),l=u.indexOf(e)+1,i=u[l],c=null!=i&&null!=a[i].start?a[i].start:t.cssRules.length,f=o(t,n,c);if(f){null==a[e].start&&(a[e].start=c);for(var v=l;v<u.length;v+=1){var p=u[v],h=a[p].start||0;a[p].start=h+1}}return f}var v={getTextContent:()=>s(a).map(t=>{var e=a[t].rules,n=e.shift();return e.sort(),e.unshift(n),e.join('\n')}).join('\n'),insert(t,u){var l=Number(u);if(null==a[l]){var s=n(l);a[l]={start:null,rules:[s]},null!=e&&f(e,l,s)}var o=i(t);null!=o&&null==c[o]&&(c[o]=!0,a[l].rules.push(t),null!=e&&(f(e,l,t)||a[l].rules.pop()))}};return v}function n(t){return"[stylesheet-group=\""+t+"\"]{}"}var u=/["']/g;function l(t){return Number(t.selectorText.split(u)[1])}function s(t){return Object.keys(t).map(Number).sort((t,e)=>t>e?1:-1)}var a=/\s*([,])\s*/g;function i(t){var e=t.split('{')[0].trim();return''!==e?e.replace(a,'$1'):null}function o(t,e,n){try{return t.insertRule(e,n),!0}catch(t){return!1}}},41,[]);
83__d(function(g,r,_i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}
83Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return S}});var e=t(r(d[0])),n=t(r(d[1])),i=r(d[2]),o=r(d[3]),l=r(d[4]),u=r(d[5]),c=r(d[6]),f=(r(d[7]),t(r(d[8]))),s=["writingDirection"],_=new WeakMap,v=(0,o.createSheet)(),O={shadow:!0,textShadow:!0};function w(t,i){void 0===i&&(i={});var o=i,f=o.writingDirection,v=(0,n.default)(o,s),w='rtl'===f;return c.styleq.factory({transform(t){var n=_.get(t);return null!=n?(0,l.localizeStyle)(n,w):(0,u.preprocess)(t,(0,e.default)((0,e.default)({},O),v))}})(t)}function h(t){t.forEach(t=>{var e=t[0],n=t[1];null!=v&&e.forEach(t=>{v.insert(t,n)})})}function p(t,e){var n=(0,i.classic)(t,e),o=n[0];return h(n[1]),o}var b={position:'absolute',left:0,right:0,top:0,bottom:0},y=A({x:(0,e.default)({},b)}).x;function A(t){return Object.keys(t).forEach(e=>{var n,o,l,c,f=t[e];null!=f&&!0!==f.$$css&&(e.indexOf('$raw')>-1?n=p(f,e.split('$raw')[0]):(o=f,l=(0,i.atomic)((0,u.preprocess)(o,O)),c=l[0],h(l[1]),n=c),_.set(f,n))}),t}function E(t,e){void 0===e&&(e={});var n='rtl'===e.writingDirection,o=w(t,e);return Array.isArray(o)&&null!=o[1]&&(o[1]=(0,i.inline)(o[1],n)),o}E.absoluteFill=y,E.absoluteFillObject=b,E.create=A,E.compose=function(t,e){return[t,e]},E.flatten=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=e.flat(1/0),o={},l=0;l<i.length;l++){var u=i[l];null!=u&&'object'==typeof u&&Object.assign(o,u)}return o},E.getSheet=function(){return{id:v.id,textContent:v.getTextContent()}},E.hairlineWidth=1,f.default&&window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.resolveRNStyle=E.flatten);var S=E},42,[19,43,44,38,84,86,88,89,39]);
84__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e,n){if(null==e)return{};var r={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(-1!==n.indexOf(t))continue;r[t]=e[t]}return r}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}})},43,[]);
85__d(function(g,r,_i,a,m,_e,d){"use strict";function n(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.atomic=function(n){var e={$$css:!0},t=[];function i(n,e,i){var o,l=J(i,e),s=e+l,u=p.get(s);if(null!=u)o=u[0],t.push(u[1]);else{o=T('r',n,n!==e?s:l);var f=v[n]||h,c=[K(o,e,i),f];t.push(c),p.set(s,[o,c])}return o}return Object.keys(n).sort().forEach(t=>{var o=n[t];if(null!=o){var l;if(P.indexOf(t)>-1){var s=i(t,t,'left'),u=i(t,t,'right');'start'===o?l=[s,u]:'end'===o&&(l=[u,s])}var f=N[t];if(null!=f){var p=i(t,f,o),c=i(t,_[f],o);l=[p,c]}if('transitionProperty'===t){for(var b=Array.isArray(o)?o:[o],h=[],v=0;v<b.length;v++){var y=b[v];'string'==typeof y&&null!=N[y]&&h.push(v)}if(h.length>0){var S=[...b],E=[...b];h.forEach(n=>{var e=S[n];if('string'==typeof e){var o=N[e],s=_[o];S[n]=o,E[n]=s;var u=i(t,t,S),f=i(t,t,E);l=[u,f]}})}}null==l?l=i(t,t,o):e.$$css$localize=!0,e[t]=l}}),[e,t]},_e.classic=function(n,i){var o,l={$$css:!0},s=[],u=n.animationKeyframes,p=(0,t.default)(n,f),c=T('css',i,JSON.stringify(n)),h="."+c;if(null!=u){var v=V(u),y=v[0],S=v[1];o=y.join(','),s.push(...S)}var E=M((0,e.default)((0,e.default)({},p),{},{animationName:o}));return s.push(""+h+E),l[c]=c,[l,[[s,b]]]},_e.inline=function(n,e){var t=n||c,o={},l={},s=function(){var n=t[u],i=u,s=n;if(!Object.prototype.hasOwnProperty.call(t,u)||null==n)return"continue";P.indexOf(u)>-1&&('start'===n?s=e?'right':'left':'end'===n&&(s=e?'left':'right'));var f=N[u];if(null!=f&&(i=e?_[f]:f),'transitionProperty'===u){var p=Array.isArray(n)?n:[n];p.forEach((n,t)=>{if('string'==typeof n){var i=N[n];null!=i&&(p[t]=e?_[i]:i,s=p.join(' '))}})}o[i]||(l[i]=s),i===u&&(o[i]=!0)};for(var u in t)s();return(0,i.default)(l,!0)},_e.stringifyValueWithProperty=J;var e=n(r(d[0])),t=n(r(d[1])),i=n(r(d[2])),o=n(r(d[3])),l=n(r(d[4])),s=n(r(d[5])),u=n(r(d[6])),f=["animationKeyframes"],p=new Map,c={},b=1,h=3,v={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},y='borderTopLeftRadius',S='borderTopRightRadius',E='borderBottomLeftRadius',I='borderBottomRightRadius',k='borderLeftColor',R='borderLeftStyle',B='borderLeftWidth',W='borderRightColor',j='borderRightStyle',C='borderRightWidth',O='right',w='marginLeft',A='marginRight',x='paddingLeft',L='paddingRight',$
85='left',_={[y]:S,[S]:y,[E]:I,[I]:E,[k]:W,[R]:j,[B]:C,[W]:k,[j]:R,[C]:B,[$]:O,[w]:A,[A]:w,[x]:L,[L]:x,[O]:$},N={borderStartStartRadius:y,borderStartEndRadius:S,borderEndStartRadius:E,borderEndEndRadius:I,borderInlineStartColor:k,borderInlineStartStyle:R,borderInlineStartWidth:B,borderInlineEndColor:W,borderInlineEndStyle:j,borderInlineEndWidth:C,insetInlineEnd:O,insetInlineStart:$,marginInlineStart:w,marginInlineEnd:A,paddingInlineStart:x,paddingInlineEnd:L},P=['clear','float','textAlign'];function J(n,e){var t=(0,s.default)(n,e);return'string'!=typeof t?JSON.stringify(t||''):t}function K(n,e,t){var i=[],o="."+n;switch(e){case'animationKeyframes':var l=V(t),s=l[0],u=l[1],f=M({animationName:s.join(',')});i.push(""+o+f,...u);break;case'placeholderTextColor':var p=M({color:t,opacity:1});i.push(o+"::-webkit-input-placeholder"+p,o+"::-moz-placeholder"+p,o+":-ms-input-placeholder"+p,o+"::placeholder"+p);break;case'pointerEvents':var c=t;if('auto'===t)c='auto!important';else if('none'===t){c='none!important';var b=M({pointerEvents:'none'});i.push(o+">* "+b)}else if('box-none'===t){c='none!important';var h=M({pointerEvents:'auto'});i.push(o+">* "+h)}else if('box-only'===t){c='auto!important';var v=M({pointerEvents:'none'});i.push(o+">* "+v)}var y=M({pointerEvents:c});i.push(""+o+y);break;case'scrollbarWidth':'none'===t&&i.push(o+"::-webkit-scrollbar{display:none}");var S=M({scrollbarWidth:t});i.push(""+o+S);break;default:var E=M({[e]:t});i.push(""+o+E)}return i}function M(n){var e=(0,u.default)((0,i.default)(n));return"{"+Object.keys(e).map(n=>{var t=e[n],i=(0,l.default)(n);return Array.isArray(t)?t.map(n=>i+":"+n).join(';'):i+":"+t}).sort().join(';')+";}"}function T(n,e,t){return n+"-"+(0,o.default)(e+t)}function z(n){var e=T('r','animation',JSON.stringify(n)),t='{'+Object.keys(n).map(e=>""+e+M(n[e])).join('')+'}',i=['-webkit-',''].map(n=>"@"+n+"keyframes "+e+t);return[e,i]}function V(n){if('number'==typeof n)throw new Error("Invalid CSS keyframes type: "+typeof n);var e=[],t=[];return(Array.isArray(n)?n:[n]).forEach(n=>{if('string'==typeof n)e.push(n);else{var i=z(n),o=i[0],l=i[1];e.push(o),t.push(...l)}}),[e,t]}},44,[19,43,45,52,53,46,54]);
86__d(function(g,r,_i,a,m,_e,d){"use strict";function o(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}});var e=o(r(d[0])),t=o(r(d[1])),i={},n=!t.default||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports('text-decoration-line','none')||window.CSS.supports('-webkit-text-decoration-line','none')),l='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',b={borderColor:['borderTopColor','borderRightColor','borderBottomColor','borderLeftColor'],borderBlockColor:['borderTopColor','borderBottomColor'],borderInlineColor:['borderRightColor','borderLeftColor'],borderRadius:['borderTopLeftRadius','borderTopRightRadius','borderBottomRightRadius','borderBottomLeftRadius'],borderStyle:['borderTopStyle','borderRightStyle','borderBottomStyle','borderLeftStyle'],borderBlockStyle:['borderTopStyle','borderBottomStyle'],borderInlineStyle:['borderRightStyle','borderLeftStyle'],borderWidth:['borderTopWidth','borderRightWidth','borderBottomWidth','borderLeftWidth'],borderBlockWidth:['borderTopWidth','borderBottomWidth'],borderInlineWidth:['borderRightWidth','borderLeftWidth'],insetBlock:['top','bottom'],insetInline:['left','right'],marginBlock:['marginTop','marginBottom'],marginInline:['marginRight','marginLeft'],paddingBlock:['paddingTop','paddingBottom'],paddingInline:['paddingRight','paddingLeft'],overflow:['overflowX','overflowY'],overscrollBehavior:['overscrollBehaviorX','overscrollBehaviorY'],borderBlockStartColor:['borderTopColor'],borderBlockStartStyle:['borderTopStyle'],borderBlockStartWidth:['borderTopWidth'],borderBlockEndColor:['borderBottomColor'],borderBlockEndStyle:['borderBottomStyle'],borderBlockEndWidth:['borderBottomWidth'],borderEndStartRadius:['borderBottomLeftRadius'],borderEndEndRadius:['borderBottomRightRadius'],borderStartStartRadius:['borderTopLeftRadius'],borderStartEndRadius:['borderTopRightRadius'],insetBlockEnd:['bottom'],insetBlockStart:['top'],marginBlockStart:['marginTop'],marginBlockEnd:['marginBottom'],paddingBlockStart:['paddingTop'],paddingBlockEnd:['paddingBottom']},p=(o,t)=>{if(!o)return i;var p={},s=function(){var i=o[f];if(null==i)return"continue";if('backgroundClip'===f)'text'===i&&(p.backgroundClip=i,p.WebkitBackgroun
86dClip=i);else if('flex'===f)-1===i?(p.flexGrow=0,p.flexShrink=1,p.flexBasis='auto'):p.flex=i;else if('font'===f)p[f]=i.replace('System',l);else if('fontFamily'===f)if(i.indexOf('System')>-1){var s=i.split(/,\s*/);s[s.indexOf('System')]=l,p[f]=s.join(',')}else p[f]='monospace'===i?"monospace,monospace":i;else if('textDecorationLine'===f)n?p.textDecorationLine=i:p.textDecoration=i;else if('writingDirection'===f)p.direction=i;else{var c=(0,e.default)(o[f],f),u=b[f];t&&'inset'===f?(null==o.insetInline&&(p.left=c,p.right=c),null==o.insetBlock&&(p.top=c,p.bottom=c)):t&&'margin'===f?(null==o.marginInline&&(p.marginLeft=c,p.marginRight=c),null==o.marginBlock&&(p.marginTop=c,p.marginBottom=c)):t&&'padding'===f?(null==o.paddingInline&&(p.paddingLeft=c,p.paddingRight=c),null==o.paddingBlock&&(p.paddingTop=c,p.paddingBottom=c)):u?u.forEach((e,t)=>{null==o[e]&&(p[e]=c)}):p[f]=c}};for(var f in o)s();return p}},45,[46,39]);
87__d(function(g,r,i,a,m,_e,d){"use strict";function o(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e=o(r(d[0])),t=o(r(d[1])),l={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function u(o,u){var n=o;return null!=u&&e.default[u]||'number'!=typeof o?null!=u&&l[u]&&(n=(0,t.default)(o)):n=o+"px",n}},46,[47,48]);
88__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var t={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},o=['ms','Moz','O','Webkit'],l=(t,o)=>t+o.charAt(0).toUpperCase()+o.substring(1);Object.keys(t).forEach(n=>{o.forEach(o=>{t[l(o,n)]=t[n]})});var n=t},47,[]);
89__d(function(_g,_r,i,_a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var t=e(_r(d[0])),u=e(_r(d[1])),n=function(e,n){if(void 0===n&&(n=1),null!=e){if('string'==typeof e&&(0,t.default)(e))return e;var r=(0,u.default)(e);if(null!=r)return"rgba("+(r>>16&255)+","+(r>>8&255)+","+(255&r)+","+((r>>24&255)/255*n).toFixed(2)+")"}}},48,[49,50]);
90__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=t=>'currentcolor'===t||'currentColor'===t||'inherit'===t||0===t.indexOf('var(')},49,[]);
91__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e},n=e=>{if(null==e)return e;var t=(0,u.default)(e);return null!=t?t=(t<<24|t>>>8)>>>0:void 0}},50,[51]);
92__d(function(_g,_r,i,a,m,e,d){'use strict';function r(r,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<.16666666666666666?r+6*(n-r)*t:t<.5?n:t<.6666666666666666?r+(n-r)*(.6666666666666666-t)*6:r}function n(n,t,s){const u=s<.5?s*(1+t):s+t-s*t,c=2*s-u,l=r(c,u,n+.3333333333333333),o=r(c,u,n),g=r(c,u,n-.3333333333333333);return Math.round(255*l)<<24|Math.round(255*o)<<16|Math.round(255*g)<<8}function t(n,t,s){if(t+s>=1){const r=Math.round(255*t/(t+s));return r<<24|r<<16|r<<8}const u=r(0,1,n+.3333333333333333)*(1-t-s)+t,c=r(0,1,n)*(1-t-s)+t,l=r(0,1,n-.3333333333333333)*(1-t-s)+t;return Math.round(255*u)<<24|Math.round(255*c)<<16|Math.round(255*l)<<8}const s='[-+]?\\d*\\.?\\d+',u="[-+]?\\d*\\.?\\d+%";function c(...r){return'\\(\\s*('+r.join(')\\s*,?\\s*(')+')\\s*\\)'}function l(...r){return'\\(\\s*('+r.slice(0,r.length-1).join(')\\s*,?\\s*(')+')\\s*/\\s*('+r[r.length-1]+')\\s*\\)'}function o(...r){return'\\(\\s*('+r.join(')\\s*,\\s*(')+')\\s*\\)'}let g;function h(){return void 0===g&&(g={rgb:new RegExp('rgb'+c(s,s,s)),rgba:new RegExp('rgba('+o(s,s,s,s)+'|'+l(s,s,s,s)+')'),hsl:new RegExp('hsl'+c(s,u,u)),hsla:new RegExp('hsla('+o(s,u,u,s)+'|'+l(s,u,u,s)+')'),hwb:new RegExp('hwb'+c(s,u,u)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),g}function b(r){const n=parseInt(r,10);return n<0?0:n>255?255:n}function p(r){return(parseFloat(r)%360+360)%360/360}function f(r){const n=parseFloat(r);return n<0?0:n>1?255:Math.round(255*n)}function y(r){const n=parseFloat(r);return n<0?0:n>100?1:n/100}function k(r){switch(r){case'transparent':return 0;case'aliceblue':return 4042850303;case'antiquewhite':return 4209760255;case'aqua':case'cyan':return 16777215;case'aquamarine':return 2147472639;case'azure':return 4043309055;case'beige':return 4126530815;case'bisque':return 4293182719;case'black':return 255;case'blanchedalmond':return 4293643775;case'blue':return 65535;case'blueviolet':return 2318131967;case'brown':return 2771004159;case'burlywood':return 3736635391;case'burntsienna':return 3934150143;case'cadetblue':return 1604231423;case'chartreuse':return 2147418367;case'chocolate':return 3530104575;case'coral':return 4286533887;case'cornflowerblue':return 1687547391;case'cornsilk':return 4294499583;case'crimson':return 3692313855;
92case'darkblue':return 35839;case'darkcyan':return 9145343;case'darkgoldenrod':return 3095792639;case'darkgray':case'darkgrey':return 2846468607;case'darkgreen':return 6553855;case'darkkhaki':return 3182914559;case'darkmagenta':return 2332068863;case'darkolivegreen':return 1433087999;case'darkorange':return 4287365375;case'darkorchid':return 2570243327;case'darkred':return 2332033279;case'darksalmon':return 3918953215;case'darkseagreen':return 2411499519;case'darkslateblue':return 1211993087;case'darkslategray':case'darkslategrey':return 793726975;case'darkturquoise':return 13554175;case'darkviolet':return 2483082239;case'deeppink':return 4279538687;case'deepskyblue':return 12582911;case'dimgray':case'dimgrey':return 1768516095;case'dodgerblue':return 512819199;case'firebrick':return 2988581631;case'floralwhite':return 4294635775;case'forestgreen':return 579543807;case'fuchsia':case'magenta':return 4278255615;case'gainsboro':return 3705462015;case'ghostwhite':return 4177068031;case'gold':return 4292280575;case'goldenrod':return 3668254975;case'gray':case'grey':return 2155905279;case'green':return 8388863;case'greenyellow':return 2919182335;case'honeydew':return 4043305215;case'hotpink':return 4285117695;case'indianred':return 3445382399;case'indigo':return 1258324735;case'ivory':return 4294963455;case'khaki':return 4041641215;case'lavender':return 3873897215;case'lavenderblush':return 4293981695;case'lawngreen':return 2096890111;case'lemonchiffon':return 4294626815;case'lightblue':return 2916673279;case'lightcoral':return 4034953471;case'lightcyan':return 3774873599;case'lightgoldenrodyellow':return 4210742015;case'lightgray':case'lightgrey':return 3553874943;case'lightgreen':return 2431553791;case'lightpink':return 4290167295;case'lightsalmon':return 4288707327;case'lightseagreen':return 548580095;case'lightskyblue':return 2278488831;case'lightslategray':case'lightslategrey':return 2005441023;case'lightsteelblue':return 2965692159;case'lightyellow':return 4294959359;case'lime':return 16711935;case'limegreen':return 852308735;case'linen':return 4210091775;case'maroon':return 2147483903;case'mediumaquamarine':return 1724754687;case'mediumblue':return 52735;case'mediumorchid':return 3126187007;case'mediumpurple':return 2473647103;case'mediumseagreen':return 1018393087;case'mediumslateblue':return 2070474495;case'mediumspringgreen':return 16423679;case'mediumturquoise':return 1221709055;case'mediumvioletred':return 3340076543;case'midnightblue':return 421097727;case'mintcream':return 4127193855;case'mistyrose':return 4293190143;case'moccasin':return 4293178879;case'navajowhite':return 4292783615;case'navy':return 33023;case'oldlace':return 4260751103;case'olive':return 2155872511;case'olivedrab':return 1804477439;case'orange':return 4289003775;case'orangered':return 4282712319;case'orchid':return 3664828159;case'palegoldenrod':return 4008225535;case'palegreen':return 2566625535;case'paleturquoise':return 2951671551;case'palevioletred':return 3681588223;case'papayawhip':return 4293907967;case'peachpuff':return 4292524543;case'peru':return 3448061951;case'pink':return 4290825215;case'plum':return 3718307327;case'powderblue':return 2967529215;case'purple':return 2147516671;case'rebeccapurple':return 1714657791;case'red':return 4278190335;case'rosybrown':return 3163525119;case'royalblue':return 1097458175;case'saddlebrown':return 2336560127;case'salmon':return 4202722047;case'sandybrown':return 4104413439;case'seagreen':return 780883967;case'seashell':return 4294307583;case'sienna':return 2689740287;case'silver':return 3233857791;case'skyblue':return 2278484991;case'slateblue':return 1784335871;case'slategray':case'slategrey':return 1887473919;case'snow':return 4294638335;case'springgreen':return 16744447;case'steelblue':return 1182971135;case'tan':return 3535047935;case'teal':return 8421631;case'thistle':return 3636451583;case'tomato':return 4284696575;case'turquoise':return 1088475391;case'violet':return 4001558271;case'wheat':return 4125012991;case'white':return 4294967295;case'whitesmoke':return 4126537215;case'yellow':return 4294902015;case'yellowgreen':return 2597139199}return null}m.exports=function(r){if('number'==typeof r)return r>>>0===r&&r>=0&&r<=4294967295?r:null;if('string'!=typeof r)return null;const s=h();let u;if(u=s.hex6.exec(r))return parseInt(u[1]+'ff',16)>>>0;const c=k(r);return null!=c?c:(u=s.rgb.exec(r))?(b(u[1])<<24|b(u[2])<<16|b(u[3])<<8|255)>>>0:(u=s.rgba.exec(r))?void 0!==u[6]?(b(u[6])<<24|b(u[7])<<16|b(u[8])<<8|f(u[9]))>>>0:(b(u[2])<<24|b(u[3])<<16|b(u[4])<<8|f(u[5]))>>>0:(u=s.hex3.exec(r))?parseInt(u[1]+u[1]+u[2]+u[2]+u[3]+u[3]+'ff',16)>>>0:(u=s.hex8.exec(r))?parseInt(u[1],16)>>>0:(u=s.hex4.exec(r))?parseInt(u[1]+u[1]+u[2]+u[2]+u[3]+u[3]+u[4]+u[4],16)>>>0:(u=s.hsl.exec(r))?(255|n(p(u[1]),y(u[2]),y(u[3])))>>>0:(u=s.hsla.exec(r))?void 0!==u[6]?(n(p(u[6]),y(u[7]),y(u[8]))|f(u[9]))>>>0:(n(p(u[2]),y(u[3]),y(u[4]))|f(u[5]))>>>0:(u=s.hwb.exec(r))?(255|t(p(u[1]),y(u[2]),y(u[3])))>>>0:null}},51,[]);
93__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,c){for(var o,n=t.length,u=c^n,h=0;n>=4;)o=1540483477*(65535&(o=255&t.charCodeAt(h)|(255&t.charCodeAt(++h))<<8|(255&t.charCodeAt(++h))<<16|(255&t.charCodeAt(++h))<<24))+((1540483477*(o>>>16)&65535)<<16),u=1540483477*(65535&u)+((1540483477*(u>>>16)&65535)<<16)^(o=1540483477*(65535&(o^=o>>>24))+((1540483477*(o>>>16)&65535)<<16)),n-=4,++h;switch(n){case 3:u^=(255&t.charCodeAt(h+2))<<16;case 2:u^=(255&t.charCodeAt(h+1))<<8;case 1:u=1540483477*(65535&(u^=255&t.charCodeAt(h)))+((1540483477*(u>>>16)&65535)<<16)}return u=1540483477*(65535&(u^=u>>>13))+((1540483477*(u>>>16)&65535)<<16),(u^=u>>>15)>>>0}
93Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}});var c=c=>t(c,1).toString(36)},52,[]);
94__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}});var t=/[A-Z]/g,n=/^ms-/,u={};function o(t){return'-'+t.toLowerCase()}var c=function(c){if(c in u)return u[c];var f=c.replace(t,o);return u[c]=n.test(f)?'-'+f:f}},53,[]);
95__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var t=e(r(d[0])),u=e(r(d[1])),n=(0,t.default)(u.default)},54,[55,61]);
96__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l){var i=l.prefixMap,o=l.plugins;return function l(s){for(var v in s){var c=s[v];if((0,n.default)(c))s[v]=l(c);else if(Array.isArray(c)){for(var _=[],p=0,y=c.length;p<y;++p){var M=(0,u.default)(o,v,c[p],s,i);(0,f.default)(_,M||c[p])}_.length>0&&(s[v]=_)}else{var h=(0,u.default)(o,v,c,s,i);h&&(s[v]=h),s=(0,t.default)(i,v,s)}}return s}};var t=l(r(d[0])),u=l(r(d[1])),f=l(r(d[2])),n=l(r(d[3]));function l(t){return t&&t.__esModule?t:{default:t}}},55,[56,58,59,60]);
97__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,u,n){var l=t[u];if(l&&n.hasOwnProperty(u))for(var o=(0,f.default)(u),_=0;_<l.length;++_){var i=l[_]+o;n[i]||(n[i]=n[u])}return n};var t,u=r(d[0]),f=(t=u)&&t.__esModule?t:{default:t}},56,[57]);
98__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},57,[]);
99__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n,u,f,i){for(var o=0,c=t.length;o<c;++o){var l=t[o](n,u,f,i);if(l)return l}}},58,[]);
100__d(function(g,r,_i,a,m,e,d){"use strict";function n(n,t){-1===n.indexOf(t)&&n.push(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,f){if(Array.isArray(f))for(var i=0,u=f.length;i<u;++i)n(t,f[i]);else n(t,f)}},59,[]);
101__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t instanceof Object&&!Array.isArray(t)}},60,[]);
102__d(function(g,r,i,a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return k}});var t=e(r(d[0])),o=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),m=e(r(d[5])),u=['Webkit'],c=['Webkit','ms'],k={plugins:[t.default,o.default,n.default,l.default,s.default,m.default],prefixMap:{appearance:['Webkit','Moz','ms'],userSelect:['Webkit','Moz'],textEmphasisPosition:c,textEmphasis:c,textEmphasisStyle:c,textEmphasisColor:c,boxDecorationBreak:c,clipPath:u,maskImage:c,maskMode:c,maskRepeat:c,maskPosition:c,maskClip:c,maskOrigin:c,maskSize:c,maskComposite:c,mask:c,maskBorderSource:c,maskBorderMode:c,maskBorderSlice:c,maskBorderWidth:c,maskBorderOutset:c,maskBorderRepeat:c,maskBorder:c,maskType:c,textDecorationStyle:u,textDecorationSkip:u,textDecorationLine:u,textDecorationColor:u,filter:u,breakAfter:u,breakBefore:u,breakInside:u,columnCount:u,columnFill:u,columnGap:u,columnRule:u,columnRuleColor:u,columnRuleStyle:u,columnRuleWidth:u,columns:u,columnSpan:u,columnWidth:u,backdropFilter:u,hyphens:u,flowInto:u,flowFrom:u,regionFragment:u,textOrientation:u,tabSize:['Moz'],fontKerning:u,textSizeAdjust:u}}},61,[62,77,79,80,81,82]);
103__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(s,u){if('string'==typeof u&&!(0,t.isPrefixedValue)(u)&&-1!==u.indexOf('cross-fade('))return n.map(function(t){return u.replace(f,t+'cross-fade(')})};var t=r(d[0]),f=/cross-fade\(/g,n=['-webkit-','']},62,[63]);
104__d(function(g,r,i,a,m,_e,d){"use strict";
104function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"assignStyle",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"camelCaseProperty",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"cssifyDeclaration",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"cssifyObject",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"hyphenateProperty",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_e,"isPrefixedProperty",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(_e,"isPrefixedValue",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"isUnitlessProperty",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_e,"normalizeProperty",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(_e,"resolveArrayValue",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(_e,"unprefixProperty",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(_e,"unprefixValue",{enumerable:!0,get:function(){return s.default}});var t=e(r(d[0])),n=e(r(d[1])),u=e(r(d[2])),f=e(r(d[3])),o=e(r(d[4])),l=e(r(d[5])),c=e(r(d[6])),b=e(r(d[7])),y=e(r(d[8])),p=e(r(d[9])),P=e(r(d[10])),s=e(r(d[11]))},63,[64,65,66,69,67,70,71,72,73,75,74,76]);
105__d(function(g,r,_i,a,m,e,d){"use strict";function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(n)}function n(t){return f(t)||u(t)||i(t)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,n){if(t){if("string"==typeof t)return c(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?c(t,n):void 0}}function u(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function f(t){if(Array.isArray(t))return c(t)}function c(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o<n;o++)i[o]=t[o];return i}function y(t){return t.filter(function(n,o){return t.lastIndexOf(n)===o})}function l(o){for(var i=0,u=arguments.length<=1?0:arguments.length-1;i<u;++i){var f=i+1<1||arguments.length<=i+1?void 0:arguments[i+1];for(var c in f){var b=f[c],s=o[c];if(s&&b){if(Array.isArray(s)){o[c]=y(s.concat(b));continue}if(Array.isArray(b)){o[c]=y([s].concat(n(b)));continue}if('object'===t(b)){o[c]=l({},s,b);continue}}o[c]=b}}return o}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}})},64,[]);
106__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var t=/-([a-z])/g,n=/^Ms/g,u={};function c(t){return t[1].toUpperCase()}function o(o){if(u.hasOwnProperty(o))return u[o];var f=o.replace(t,c).replace(n,'ms');return u[o]=f,f}},65,[]);
107__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e};function n(e,t){return(0,u.default)(e)+':'+t}},66,[67]);
108__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e};function n(e){return(0,u.default)(e)}},67,[68]);
109__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}});var t=/[A-Z]/g,n=/^ms-/,u={};function o(t){return'-'+t.toLowerCase()}var c=function(c){if(u.hasOwnProperty(c))return u[c];var f=c.replace(t,o);return u[c]=n.test(f)?'-'+f:f}},68,[]);
110__d(function(g,r,i,a,m,_e,d){"use strict";
110Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};function u(e){var t='';for(var u in e){var f=e[u];'string'!=typeof f&&'number'!=typeof f||(t&&(t+=';'),t+=(0,n.default)(u,f))}return t}},69,[66]);
111__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var t=/^(Webkit|Moz|O|ms)/;function n(n){return t.test(n)}},70,[]);
112__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var t=/-webkit-|-moz-|-ms-/;function n(n){return'string'==typeof n&&t.test(n)}},71,[]);
113__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return b}});var e,t=r(d[0]),o=(e=t)&&e.__esModule?e:{default:e},i={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},n=['animationIterationCount','boxFlex','boxFlexGroup','boxOrdinalGroup','columnCount','flex','flexGrow','flexPositive','flexShrink','flexNegative','flexOrder','gridColumn','gridColumnEnd','gridColumnStart','gridRow','gridRowEnd','gridRowStart','lineClamp','order'],l=['Webkit','ms','Moz','O'];function u(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}for(var f=0,s=n.length;f<s;++f){var c=n[f];i[c]=!0;for(var p=0,h=l.length;p<h;++p)i[u(l[p],c)]=!0}for(var x in i)i[(0,o.default)(x)]=!0;function b(e){return i.hasOwnProperty(e)}},72,[67]);
114__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var t=e(r(d[0])),u=e(r(d[1]));function n(e){return(0,u.default)((0,t.default)(e))}},73,[65,74]);
115__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var t=/^(ms|Webkit|Moz|O)/;function n(n){var u=n.replace(t,'');return u.charAt(0).toLowerCase()+u.slice(1)}},74,[]);
116__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e};function n(e,t){return t.join(';'+(0,u.default)(e)+':')}},75,[67]);
117__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var t=/(-ms-|-webkit-|-moz-|-o-)/g;function n(n){return'string'==typeof n?n.replace(t,''):n}},76,[]);
118__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,u){if('string'==typeof u&&!(0,n.default)(u)&&u.indexOf('image-set(')>-1)return f.map(function(t){return u.replace(/image-set\(/g,t+'image-set(')})};var t,u=r(d[0]),n=(t=u)&&t.__esModule?t:{default:t};var f=['-webkit-','']},77,[78]);
119__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){return'string'==typeof n&&t.test(n)};var t=/-webkit-|-moz-|-ms-/},78,[]);
120__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,n,i){if(Object.prototype.hasOwnProperty.call(t,o))for(var l=t[o],b=0,B=l.length;b<B;++b)i[l[b]]=n};var t={marginBlockStart:['WebkitMarginBefore'],marginBlockEnd:['WebkitMarginAfter'],marginInlineStart:['WebkitMarginStart','MozMarginStart'],marginInlineEnd:['WebkitMarginEnd','MozMarginEnd'],paddingBlockStart:['WebkitPaddingBefore'],paddingBlockEnd:['WebkitPaddingAfter'],paddingInlineStart:['WebkitPaddingStart','MozPaddingStart'],paddingInlineEnd:['WebkitPaddingEnd','MozPaddingEnd'],borderBlockStart:['WebkitBorderBefore'],borderBlockStartColor:['WebkitBorderBeforeColor'],borderBlockStartStyle:['WebkitBorderBeforeStyle'],borderBlockStartWidth:['WebkitBorderBeforeWidth'],borderBlockEnd:['WebkitBorderAfter'],borderBlockEndColor:['WebkitBorderAfterColor'],borderBlockEndStyle:['WebkitBorderAfterStyle'],borderBlockEndWidth:['WebkitBorderAfterWidth'],borderInlineStart:['WebkitBorderStart','MozBorderStart'],borderInlineStartColor:['WebkitBorderStartColor','MozBorderStartColor'],borderInlineStartStyle:['WebkitBorderStartStyle','MozBorderStartStyle'],borderInlineStartWidth:['WebkitBorderStartWidth','MozBorderStartWidth'],borderInlineEnd:['WebkitBorderEnd','MozBorderEnd'],borderInlineEndColor:['WebkitBorderEndColor','MozBorderEndColor'],borderInlineEndStyle:['WebkitBorderEndStyle','MozBorderEndStyle'],borderInlineEndWidth:['WebkitBorderEndWidth','MozBorderEndWidth']}},79,[]);
121__d(function(g,r,i,a,m,e,d){'use strict';
121Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,c){if('position'===t&&'sticky'===c)return['-webkit-sticky','sticky']}},80,[]);
122__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(c,h){if(n.hasOwnProperty(c)&&o.hasOwnProperty(h))return t.map(function(t){return t+h})};var t=['-webkit-','-moz-',''],n={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={'min-content':!0,'max-content':!0,'fill-available':!0,'fit-content':!0,'contain-floats':!0}},81,[]);
123__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,i,o,u){if('string'==typeof i&&f.hasOwnProperty(t)){var l=s(i,u),p=l.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(t){return!/-moz-|-ms-/.test(t)}).join(',');if(t.indexOf('Webkit')>-1)return p;var v=l.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(t){return!/-webkit-|-ms-/.test(t)}).join(',');return t.indexOf('Moz')>-1?v:(o['Webkit'+(0,n.default)(t)]=p,o['Moz'+(0,n.default)(t)]=v,l)}};var t=o(r(d[0])),i=o(r(d[1])),n=o(r(d[2]));function o(t){return t&&t.__esModule?t:{default:t}}var f={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},u={Webkit:'-webkit-',Moz:'-moz-',ms:'-ms-'};function s(n,o){if((0,i.default)(n))return n;for(var f=n.split(/,(?![^()]*(?:\([^()]*\))?\))/g),s=0,l=f.length;s<l;++s){var p=f[s],v=[p];for(var c in o){var b=(0,t.default)(c);if(p.indexOf(b)>-1&&'order'!==b)for(var k=o[c],z=0,M=k.length;z<M;++z)v.unshift(p.replace(b,u[k[z]]+b))}f[s]=v.join(',')}return f.join(',')}},82,[83,78,57]);
124__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,f.default)(t)};var t,u=r(d[0]),f=(t=u)&&t.__esModule?t:{default:t}},83,[68]);
125__d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},84,[85]);
126__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.localizeStyle=function(l,s){if(null!=l[t]){var c=s?1:0;if(n.has(l)){var f=n.get(l),o=f[c];return null==o&&(o=u(l,s),f[c]=o,n.set(l,f)),o}var v=u(l,s),y=new Array(2);return y[c]=v,n.set(l,y),v}return l};var n=new WeakMap,t='$$css$localize';function u(n,u){var l={};for(var s in n)if(s!==t){var c=n[s];Array.isArray(c)?l[s]=u?c[1]:c[0]:l[s]=c}return l}},85,[]);
127__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"createBoxShadowValue",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"createTextShadowValue",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"createBoxShadowArrayValue",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"createTransformValue",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"createTransformOriginValue",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"preprocess",{enumerable:!0,get:function(){return x}});var t=e(r(d[0])),n=e(r(d[1])),o=r(d[2]),l={},u={height:0,width:0},s=e=>{var o=e.shadowColor,l=e.shadowOffset,s=e.shadowOpacity,f=e.shadowRadius,h=l||u,S=h.height,c=h.width,b=(0,n.default)(c),w=(0,n.default)(S),p=(0,n.default)(f||0),y=(0,t.default)(o||'black',s);if(null!=y&&null!=b&&null!=w&&null!=p)return b+" "+w+" "+p+" "+y},f=e=>{var t=e.textShadowColor,o=e.textShadowOffset,l=e.textShadowRadius,s=o||u,f=s.height,h=s.width,S=l||0,c=(0,n.default)(h),b=(0,n.default)(f),w=(0,n.default)(S),p=(0,n.default)(t,'textShadowColor');if(p&&(0!==f||0!==h||0!==S)&&null!=c&&null!=b&&null!=w)return c+" "+b+" "+w+" "+p},h=e=>{if('string'==typeof e)return e;var o=(0,n.default)(e.offsetX)||0,l=(0,n.default)(e.offsetY)||0,u=(0,n.default)(e.blurRadius)||0,s=(0,n.default)(e.spreadDistance)||0,f=(0,t.default)(e.color)||'black';return""+(e.inset?'inset ':'')+o+" "+l+" "+u+" "+s+" "+f},S=e=>e.map(h).join(', '),c=e=>{var t=Object.keys(e)[0],o=e[t];return'matrix'===t||'matrix3d'===t?t+"("+o.join(',')+")":t+"("+(0,n.default)(o,t)+")"},b=e=>e.map(c).join(' '),w=e=>e.map(e=>(0,n.default)(e)).join(' '),p={borderBottomEndRadius:'borderEndEndRadius',borderBottomStartRadius:'borderEndStartRadius',borderTopEndRadius:'borderStartEndRadius',borderTopStartRadius:'borderStartStartRadius',borderEndColor:'borderInlineEndColor',borderEndStyle:'borderInlineEndStyle',borderEndWidth:'borderInlineEndWidth',borderStartColor:'borderInlineStartColor',borderStartStyle:'borderInlineStartStyle',borderStartWidth:'borderInlineStartWidth',end:'insetInlineEnd',marginEnd:'marginInlineEnd',marginHorizontal:'marginInline',marginStart:'marginInlineStart',marginVertical:'marginBlock',paddingEnd:'paddingInlineEnd',paddingHorizontal:'paddingInline',paddingStart:'paddingInlineStart',paddingVertical:'paddingBlock',start:'insetInlineStart'},y={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},x=function(e,t){void 0===t&&(t={});var n=e||l,u={};
127if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){(0,o.warnOnce)('shadowStyles',"\"shadow*\" style props are deprecated. Use \"boxShadow\".");var h=s(n);null!=h&&(u.boxShadow=h)}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){(0,o.warnOnce)('textShadowStyles',"\"textShadow*\" style props are deprecated. Use \"textShadow\".");var c=f(n);if(null!=c&&null==u.textShadow){var x=n.textShadow,O=x?x+", "+c:c;u.textShadow=O}}for(var v in n)if(null==y[v]&&'shadowColor'!==v&&'shadowOffset'!==v&&'shadowOpacity'!==v&&'shadowRadius'!==v&&'textShadowColor'!==v&&'textShadowOffset'!==v&&'textShadowRadius'!==v){var E=n[v],R=p[v]||v,j=E;if(Object.prototype.hasOwnProperty.call(n,v)&&(R===v||null==n[R]))if('aspectRatio'===R&&'number'==typeof j)u[R]=j.toString();else if('boxShadow'===R){Array.isArray(j)&&(j=S(j));var I=u.boxShadow;u.boxShadow=I?j+", "+I:j}else'fontVariant'===R?(Array.isArray(j)&&j.length>0&&(j=j.join(' ')),u[R]=j):'textAlignVertical'===R?null==n.verticalAlign&&(u.verticalAlign='center'===j?'middle':j):'transform'===R?(Array.isArray(j)&&(j=b(j)),u.transform=j):'transformOrigin'===R?(Array.isArray(j)&&(j=w(j)),u.transformOrigin=j):u[R]=j}return u},O=x},86,[48,46,87]);
128__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.warnOnce=function(n,t){}},87,[]);
129__d(function(g,r,_i2,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.styleq=void 0;var l=new WeakMap;function n(n){var s,u,t;return null!=n&&(s=!0===n.disableCache,u=!0===n.disableMix,t=n.transform),function(){for(var n=[],i='',o=null,f=s?null:l,v=new Array(arguments.length),c=0;c<arguments.length;c++)v[c]=arguments[c];for(;v.length>0;){var p=v.pop();if(null!=p&&!1!==p)if(Array.isArray(p))for(var y=0;y<p.length;y++)v.push(p[y]);else{var h=null!=t?t(p):p;if(h.$$css){var b='';if(null!=f&&f.has(h)){var M=f.get(h);null!=M&&(b=M[0],n.push.apply(n,M[1]),f=M[2])}else{var $=[];for(var _ in h){var j=h[_];"$$css"!==_&&('string'==typeof j||null===j?n.includes(_)||(n.push(_),null!=f&&$.push(_),'string'==typeof j&&(b+=b?' '+j:j)):console.error("styleq: ".concat(_," typeof ").concat(String(j)," is not \"string\" or \"null\".")))}if(null!=f){var q=new WeakMap;f.set(h,[b,$,q]),f=q}}b&&(i=i?b+' '+i:b)}else if(u)null==o&&(o={}),o=Object.assign({},h,o);else{var w=null;for(var A in h){var O=h[A];void 0!==O&&(n.includes(A)||(null!=O&&(null==o&&(o={}),null==w&&(w={}),w[A]=O),n.push(A),f=null))}null!=w&&(o=Object.assign(w,o))}}}return[i,o]}}var s=n();e.styleq=s,s.factory=n},88,[]);
130__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.validate=function(e){for(var n in e){var u=n.trim(),c=e[u],f=!1;if(null!==c){if('string'==typeof c&&c.indexOf('!important')>-1)s("Invalid style declaration \""+u+":"+c+"\". Values cannot include \"!important\""),f=!0;else{var p='';'animation'===u||'animationName'===u?(p='Did you mean "animationKeyframes"?',f=!0):'direction'===u?(p='Did you mean "writingDirection"?',f=!0):t[u]?(p='Please use long-form properties.',f=!0):l[u]&&'string'==typeof c&&(0,o.default)(c).nodes.length>1&&(p="Value is \""+c+"\" but only single values are supported.",f=!0),''!==p&&s("Invalid style property of \""+u+"\". "+p)}f&&delete e[n]}}};var e,n=r(d[0]),o=(e=n)&&e.__esModule?e:{default:e},t={background:!0,borderBottom:!0,borderLeft:!0,borderRight:!0,borderTop:!0,font:!0,grid:!0,outline:!0,textDecoration:!0},l={flex:!0,margin:!0,padding:!0,borderColor:!0,borderRadius:!0,borderStyle:!0,borderWidth:!0,inset:!0,insetBlock:!0,insetInline:!0,marginBlock:!0,marginInline:!0,marginHorizontal:!0,marginVertical:!0,paddingBlock:!0,paddingInline:!0,paddingHorizontal:!0,paddingVertical:!0,overflow:!0,overscrollBehavior:!0,backgroundPosition:!0};function s(e){console.error(e)}},89,[90]);
131__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(n){return this instanceof s?(this.nodes=t(n),this):new s(n)}s.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},s.prototype.walk=function(t,o){return n(this.nodes,t,o),this},s.unit=r(d[3]),s.walk=n,s.stringify=o,m.exports=s},90,[91,92,93,94]);
132__d(function(g,r,i,a,m,e,d){var o="(".charCodeAt(0),n=")".charCodeAt(0),c="'".charCodeAt(0),t='"'.charCodeAt(0),s="\\".charCodeAt(0),u="/".charCodeAt(0),l=",".charCodeAt(0),h=":".charCodeAt(0),f="*".charCodeAt(0),p="u".charCodeAt(0),x="U".charCodeAt(0),A="+".charCodeAt(0),C=/^[a-f0-9?-]+$/i;m.exports=function(I){for(var v,E,y,w,O,b,_,q,U,$=[],j=I,k=0,z=j.charCodeAt(k),B=j.length,D=[{nodes:$}],F=0,G="",H="",J="";k<B;)if(z<=32){v=k;do{v+=1,z=j.charCodeAt(v)}while(z<=32);w=j.slice(k,v),y=$[$.length-1],z===n&&F?J=w:y&&"div"===y.type?(y.after=w,y.sourceEndIndex+=w.length):z===l||z===h||z===u&&j.charCo
vendor: 4,335 bytes, lines 132-137
132deAt(v+1)!==f&&(!U||U&&"function"===U.type&&"calc"!==U.value)?H=w:$.push({type:"space",sourceIndex:k,sourceEndIndex:v,value:w}),k=v}else if(z===c||z===t){v=k,w={type:"string",sourceIndex:k,quote:E=z===c?"'":'"'};do{if(O=!1,~(v=j.indexOf(E,v+1)))for(b=v;j.charCodeAt(b-1)===s;)b-=1,O=!O;else v=(j+=E).length-1,w.unclosed=!0}while(O);w.value=j.slice(k+1,v),w.sourceEndIndex=w.unclosed?v:v+1,$.push(w),k=v+1,z=j.charCodeAt(k)}else if(z===u&&j.charCodeAt(k+1)===f)w={type:"comment",sourceIndex:k,sourceEndIndex:(v=j.indexOf("*/",k))+2},-1===v&&(w.unclosed=!0,v=j.length,w.sourceEndIndex=v),w.value=j.slice(k+2,v),$.push(w),k=v+2,z=j.charCodeAt(k);else if(z!==u&&z!==f||!U||"function"!==U.type||"calc"!==U.value)if(z===u||z===l||z===h)w=j[k],$.push({type:"div",sourceIndex:k-H.length,sourceEndIndex:k+w.length,value:w,before:H,after:""}),H="",k+=1,z=j.charCodeAt(k);else if(o===z){v=k;do{v+=1,z=j.charCodeAt(v)}while(z<=32);if(q=k,w={type:"function",sourceIndex:k-G.length,value:G,before:j.slice(q+1,v)},k=v,"url"===G&&z!==c&&z!==t){v-=1;do{if(O=!1,~(v=j.indexOf(")",v+1)))for(b=v;j.charCodeAt(b-1)===s;)b-=1,O=!O;else v=(j+=")").length-1,w.unclosed=!0}while(O);_=v;do{_-=1,z=j.charCodeAt(_)}while(z<=32);q<_?(w.nodes=k!==_+1?[{type:"word",sourceIndex:k,sourceEndIndex:_+1,value:j.slice(k,_+1)}]:[],w.unclosed&&_+1!==v?(w.after="",w.nodes.push({type:"space",sourceIndex:_+1,sourceEndIndex:v,value:j.slice(_+1,v)})):(w.after=j.slice(_+1,v),w.sourceEndIndex=v)):(w.after="",w.nodes=[]),k=v+1,w.sourceEndIndex=w.unclosed?v:k,z=j.charCodeAt(k),$.push(w)}else F+=1,w.after="",w.sourceEndIndex=k+1,$.push(w),D.push(w),$=w.nodes=[],U=w;G=""}else if(n===z&&F)k+=1,z=j.charCodeAt(k),U.after=J,U.sourceEndIndex+=J.length,J="",F-=1,D[D.length-1].sourceEndIndex=k,D.pop(),$=(U=D[F]).nodes;else{v=k;do{z===s&&(v+=1),v+=1,z=j.charCodeAt(v)}while(v<B&&!(z<=32||z===c||z===t||z===l||z===h||z===u||z===o||z===f&&U&&"function"===U.type&&"calc"===U.value||z===u&&"function"===U.type&&"calc"===U.value||z===n&&F));w=j.slice(k,v),o===z?G=w:p!==w.charCodeAt(0)&&x!==w.charCodeAt(0)||A!==w.charCodeAt(1)||!C.test(w.slice(2))?$.push({type:"word",sourceIndex:k,sourceEndIndex:v,value:w}):$.push({type:"unicode-range",sourceIndex:k,sourceEndIndex:v,value:w}),k=v}else w=j[k],$.push({type:"word",sourceIndex:k-H.length,sourceEndIndex:k+w.length,value:w}),k+=1,z=j.charCodeAt(k);for(k=D.length-1;k;k-=1)D[k].unclosed=!0,D[k].sourceEndIndex=j.length;return D[0].nodes}},91,[]);
133__d(function(g,r,_i,a,m,e,d){m.exports=function n(o,t,f){var i,s,c,u;for(i=0,s=o.length;i<s;i+=1)c=o[i],f||(u=t(c,i,o)),!1!==u&&"function"===c.type&&Array.isArray(c.nodes)&&n(c.nodes,t,f),f&&t(c,i,o)}},92,[]);
134__d(function(g,r,_i,a,m,e,d){function n(n,t){var u,f,i=n.type,s=n.value;return t&&void 0!==(f=t(n))?f:"word"===i||"space"===i?s:"string"===i?(u=n.quote||"")+s+(n.unclosed?"":u):"comment"===i?"/*"+s+(n.unclosed?"":"*/"):"div"===i?(n.before||"")+s+(n.after||""):Array.isArray(n.nodes)?(u=o(n.nodes,t),"function"!==i?u:s+"("+(n.before||"")+u+(n.after||"")+(n.unclosed?"":")")):s}function o(o,t){var u,f;if(Array.isArray(o)){for(u="",f=o.length-1;~f;f-=1)u=n(o[f],t)+u;return u}return n(o,t)}m.exports=o},93,[]);
135__d(function(g,r,i,a,m,e,d){var t="-".charCodeAt(0),o="+".charCodeAt(0),c=".".charCodeAt(0),h="e".charCodeAt(0),A="E".charCodeAt(0);function C(h){var A,C=h.charCodeAt(0);if(C===o||C===t){if((A=h.charCodeAt(1))>=48&&A<=57)return!0;var n=h.charCodeAt(2);return A===c&&n>=48&&n<=57}return C===c?(A=h.charCodeAt(1))>=48&&A<=57:C>=48&&C<=57}m.exports=function(n){var f,u,v,l=0,s=n.length;if(0===s||!C(n))return!1;for((f=n.charCodeAt(l))!==o&&f!==t||l++;l<s&&!((f=n.charCodeAt(l))<48||f>57);)l+=1;if(f=n.charCodeAt(l),u=n.charCodeAt(l+1),f===c&&u>=48&&u<=57)for(l+=2;l<s&&!((f=n.charCodeAt(l))<48||f>57);)l+=1;if(f=n.charCodeAt(l),u=n.charCodeAt(l+1),v=n.charCodeAt(l+2),(f===h||f===A)&&(u>=48&&u<=57||(u===o||u===t)&&v>=48&&v<=57))for(l+=u===o||u===t?3:2;l<s&&!((f=n.charCodeAt(l))<48||f>57);)l+=1;return{number:n.slice(0,l),unit:n.slice(l)}}},94,[]);
136__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t={OS:'web',select:t=>'web'in t?t.web:t.default,get isTesting(){return!1},get Version(){return'0.0.0'}}},95,[]);
137__d(function(g,r,i,a,m,_e,d){"use strict";
137function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return te}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),l=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),f=e(r(d[7])),h=e(r(d[8])),p=e(r(d[9])),b=e(r(d[10])),E=e(r(d[11])),R=e(r(d[12])),S=r(d[13]),y=r(d[14]),w=r(d[15]),O=r(d[16]),x=r(d[17]),T=r(d[18]),_=r(d[19]),C=r(d[20]);const j='blackbunny:last-route',I=5e3,L=/chunk|loading css chunk|loading chunk|importing a module script failed|fetch dynamically imported module|unexpected token '<'|expected expression, got '<'|failed to fetch dynamically imported module/i,v=[{path:'/',label:'Feed',icon:'HOME',mobileLabel:'Feed'},{path:'/search',label:'Search',icon:'SCAN',mobileLabel:'Search'},{path:'/create',label:'Create',icon:'POST',mobileLabel:'Create'},{path:'/chats',label:'Chats',icon:'COMMS',mobileLabel:'Chats'},{path:'/profile',label:'Profile',icon:'USER',mobileLabel:'Profile'}],k={'/':'BlackBunny','/auth':'Authentication','/search':'Search','/create':'Create','/chats':'Chats','/activity':'Activity Deck','/profile':'Profile','/edit-profile':'Edit Profile','/member-profile':'Member Profile','/admin-reports':'Moderation','/videos':'Video Lounge'},N=(e,t)=>t().catch(e=>{if(q(e))return new Promise(()=>{});throw e}),U={'/':()=>N(0,()=>r(d[22])(d[21],d.paths)),'/auth':()=>N(0,()=>r(d[22])(d[23],d.paths)),'/search':()=>N(0,()=>r(d[22])(d[24],d.paths)),'/create':()=>N(0,()=>r(d[22])(d[25],d.paths)),'/chats':()=>N(0,()=>r(d[22])(d[26],d.paths)),'/activity':()=>N(0,()=>r(d[22])(d[27],d.paths)),'/profile':()=>N(0,()=>r(d[22])(d[28],d.paths)),'/edit-profile':()=>N(0,()=>r(d[22])(d[29],d.paths)),'/member-profile':()=>N(0,()=>r(d[22])(d[30],d.paths)),'/admin-reports':()=>N(0,()=>r(d[22])(d[31],d.paths)),'/videos':()=>N(0,()=>r(d[22])(d[32],d.paths))},M=l.default.lazy(U['/search']),z=l.default.lazy(U['/create']),A=l.default.lazy(U['/chats']),B=l.default.lazy(U['/activity']),H=l.default.lazy(U['/profile']),V=l.default.lazy(U['/edit-profile']),P=l.default.lazy(U['/member-profile']),Y=l.default.lazy(U['/admin-reports']),W=l.default.lazy(U['/videos']),D={'/':R.default,'/auth':E.default,'/search':M,'/create':z,'/chats':A,'/activity':B,'/profile':H,'/edit-profile':V,'/member-profile':P,'/admin-reports':Y,'/videos':W},G=e=>(0,C.jsx)(S.LoadingState,{fullScreen:!0,accentLabel:"ROUTE LOAD",title:`Opening ${k[e]||'screen'}`,subtitle:"Loading the screen only when you actually need it."});function K({pathname:e,hasUser:t,onEscape:o}){const[s,f]=l.default.useState(!1);return l.default.useEffect(()=>{f(!1);const e=setTimeout(()=>{f(!0)},I);return()=>clearTimeout(e)},[e]),s?(0,C.jsxs)(c.default,{style:{flex:1,backgroundColor:y.COLORS.background},children:[(0,C.jsx)(n.StatusBar,{style:"light"}),(0,C.jsxs)(p.default,{style:{flex:1,justifyContent:'center',alignItems:'center',paddingHorizontal:24},children:[(0,C.jsx)(S.LoadingState,{compact:!0,accentLabel:"ROUTE TIMEOUT",title:`Still opening ${k[e]||'screen'}`,subtitle:"That screen is taking too long to load, so you can jump back to a lighter route."}),(0,C.jsxs)(p.default,{style:{flexDirection:'row',gap:12,marginTop:20},children:[(0,C.jsx)(u.default,{onPress:o,style:{borderRadius:999,paddingHorizontal:16,paddingVertical:10,backgroundColor:y.COLORS.accent},children:(0,C.jsx)(h.default,{style:Object.assign({},y.TEXT_STYLES.button,{color:y.COLORS.background,fontSize:12}),children:t?'Open Feed':'Open Auth'})}),(0,C.jsx)(u.default,{onPress:()=>{'undefined'!=typeof window&&window.location.reload()},style:{borderRadius:999,paddingHorizontal:16,paddingVertical:10,borderWidth:1,borderColor:'rgba(255,255,255,0.18)',backgroundColor:'#101010'},children:(0,C.jsx)(h.default,{style:Object.assign({},y.TEXT_STYLES.button,{fontSize:12}),children:"Reload"})})]})]})]}):G(e)}const F=e=>{if(e instanceof Error)return e.stack||e.message;if('string'==typeof e)return e;try{return JSON.stringify(e,null,2)}catch{return String(e)}},X=(e,t)=>({message:e,pathname:t,capturedAt:Date.now(),version:T.RUNTIME_ERROR_SCHEMA_VERSION}),$=e=>L.test(F(e)),q=e=>{if('undefined'==typeof window||!$(e))return!1;if(window.sessionStorage.getItem(T.CHUNK_RECOVERY_STORAGE_KEY)===T.RUNTIME_ERROR_SCHEMA_VERSION)return!1;window.sessionStorage.setItem(T.CHUNK_RECOVERY_STORAGE_KEY,T.RUNTIME_ERROR_SCHEMA_VERSION),window.localStorage.removeItem(T.LAST_RUNTIME_ERROR_STORAGE_KEY),window.localStorage.setItem(T.RUNTIME_ERROR_VERSION_STORAGE_KEY,T.RUNTIME_ERROR_SCHEMA_VERSION),Q();const t=new URL(window.location.href);return t.searchParams.set('runtime',T.RUNTIME_ERROR_SCHEMA_VERSION),window.location.replace(`${t.pathname}${t.search}${t.hash}`),!0},J=(e,t)=>
137{if('undefined'==typeof window)return;const n=X(e,t);window.localStorage.setItem(T.LAST_RUNTIME_ERROR_STORAGE_KEY,JSON.stringify(n)),window.localStorage.setItem(T.RUNTIME_ERROR_VERSION_STORAGE_KEY,T.RUNTIME_ERROR_SCHEMA_VERSION)},Q=()=>{'undefined'!=typeof document&&document.getElementById(T.RUNTIME_ERROR_OVERLAY_ID)?.remove()},Z=e=>{if('undefined'==typeof document)return;const t=document.getElementById(T.RUNTIME_ERROR_OVERLAY_ID);if(t)return void(t.textContent=e);const n=document.createElement('pre');n.id=T.RUNTIME_ERROR_OVERLAY_ID,n.style.position='fixed',n.style.inset='0',n.style.zIndex='2147483647',n.style.margin='0',n.style.padding='24px',n.style.whiteSpace='pre-wrap',n.style.overflow='auto',n.style.background='#140000',n.style.color='#ffffff',n.style.fontFamily='ui-monospace, SFMono-Regular, Menlo, monospace',n.style.fontSize='14px',n.style.lineHeight='1.5',n.textContent=e,document.body.appendChild(n)};class ee extends l.default.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){console.error('Web shell error boundary caught an error:',e)}render(){return this.state.error?(0,C.jsxs)(c.default,{style:{flex:1,backgroundColor:'#140000'},children:[(0,C.jsx)(n.StatusBar,{style:"light"}),(0,C.jsxs)(p.default,{style:{flex:1,padding:24,justifyContent:'center'},children:[(0,C.jsx)(h.default,{style:{color:'#ff6b6b',fontSize:24,fontWeight:'700',marginBottom:16},children:"Web Runtime Error"}),(0,C.jsx)(h.default,{selectable:!0,style:{color:'#ffffff',fontSize:16,lineHeight:24},children:this.state.error.message}),this.state.error.stack?(0,C.jsx)(h.default,{selectable:!0,style:{color:'#ffb3b3',fontSize:12,lineHeight:18,marginTop:16},children:this.state.error.stack}):null]})]}):this.props.children}}function te(){const e=l.default.useMemo(()=>(0,_.getInitialPathname)(j),[]),{width:E}=(0,b.default)();(0,t.useFonts)({MGSCodec:r(d[33]),MGSHUD:r(d[34])});const[I,L]=l.default.useState(()=>w.auth.currentUser),[N,M]=l.default.useState(!1),[z,A]=l.default.useState(()=>w.auth.currentUser?'LIVE':'OFFLINE'),[B,H]=l.default.useState(null),V=l.default.useRef(null),P=l.default.useRef(null),Y=l.default.useRef('/'),W=l.default.useRef(null),G=l.default.useRef(null),X=l.default.useRef(null),$=l.default.useRef(new Set),te=l.default.useRef((0,x.startPerfMeasure)('web-shell-boot',{initialPathname:e})),re=l.default.useRef(null),[ne,oe]=l.default.useState(e);l.default.useEffect(()=>{if('undefined'==typeof window)return;window.localStorage.getItem(T.RUNTIME_ERROR_VERSION_STORAGE_KEY)!==T.RUNTIME_ERROR_SCHEMA_VERSION&&(window.localStorage.removeItem(T.LAST_RUNTIME_ERROR_STORAGE_KEY),window.localStorage.setItem(T.RUNTIME_ERROR_VERSION_STORAGE_KEY,T.RUNTIME_ERROR_SCHEMA_VERSION),window.sessionStorage.removeItem(T.CHUNK_RECOVERY_STORAGE_KEY),Q());const e=e=>{if(q(e.error||e.message||'Unknown browser error'))return void e.preventDefault();const t=F(e.error||e.message||'Unknown browser error');J(t,Y.current),Z(t),H(t||'Unknown browser error')},t=e=>{if(q(e.reason||'Unhandled promise rejection'))return void e.preventDefault();const t=F(e.reason||'Unhandled promise rejection');J(t,Y.current),Z(t),H(t)};return window.addEventListener('error',e),window.addEventListener('unhandledrejection',t),()=>{window.removeEventListener('error',e),window.removeEventListener('unhandledrejection',t)}},[]),l.default.useEffect(()=>{B&&console.error('Web shell runtime error:',B)},[B]);const ae=l.default.useCallback(()=>(W.current||(W.current=r(d[22])(d[35],d.paths)),W.current),[]),le=l.default.useCallback(()=>(G.current||(G.current=r(d[22])(d[36],d.paths)),G.current),[]),ie=l.default.useCallback(()=>(X.current||(X.current=r(d[22])(d[37],d.paths)),X.current),[]);l.default.useEffect(()=>{Y.current=ne},[ne]),l.default.useEffect(()=>{re.current=(0,x.startPerfMeasure)('route-visible',{pathname:ne})},[ne]),l.default.useEffect(()=>{N||(te.current?.({pathname:ne,hasUser:Boolean(I)}),te.current=null)},[N,ne,I]),l.default.useEffect(()=>{if(N)return;const e=re.current;if(!e)return;const t=requestAnimationFrame(()=>{e({pathname:ne,hasUser:Boolean(I)}),re.current===e&&(re.current=null)});return()=>cancelAnimationFrame(t)},[N,ne,I]),l.default.useEffect(()=>{if('undefined'==typeof window||!I||N)return;const e=v.map(e=>e.path).filter(e=>e!==ne&&!$.current.has(e));if(0===e.length)return;let t=!1,n=null;const o=()=>
137{t||e.forEach(e=>{$.current.add(e),U[e]().catch(t=>{$.current.delete(e),console.error(`Error preloading route ${e}:`,t)})})};if('requestIdleCallback'in window){const e=window.requestIdleCallback(o,{timeout:1200});return()=>{t=!0,window.cancelIdleCallback(e)}}return n=setTimeout(o,250),()=>{t=!0,n&&clearTimeout(n)}},[N,ne,I]),l.default.useEffect(()=>{if('undefined'==typeof window||N)return;const e=I;if(!e?.uid)return;let t=!1,n=null;const o=()=>{t||Promise.all([le().then(({prewarmSearchBootstrap:t})=>t(e.uid)),ie().then(({prewarmProfileBootstrap:t})=>t(e.uid))]).catch(e=>{console.error('Error prewarming cached route data:',e)})};if('requestIdleCallback'in window){const e=window.requestIdleCallback(o,{timeout:1600});return()=>{t=!0,window.cancelIdleCallback(e)}}return n=setTimeout(o,350),()=>{t=!0,n&&clearTimeout(n)}},[N,ie,le,I]),l.default.useEffect(()=>{if('undefined'==typeof window)return;const e=()=>{const e=(0,_.normalizePath)(window.location.pathname);if(V.current&&('/edit-profile'===Y.current||'/member-profile'===Y.current))return window.history.pushState({},'',Y.current),oe(Y.current),void Promise.resolve(V.current()).then(t=>{t||oe(e)}).catch(t=>{console.error('Error handling browser back navigation:',t),oe(e)});oe(e)};return window.addEventListener('popstate',e),()=>window.removeEventListener('popstate',e)},[]),l.default.useEffect(()=>{let e=!1;const t=(0,o.onAuthStateChanged)(w.auth,t=>{if(!e){if(t&&!t.emailVerified)return L(null),M(!1),A('VERIFY'),void(0,o.signOut)(w.auth).catch(e=>{console.error('Error signing out unverified user:',e)});L(t),M(!1),t?.uid&&t.email?(A('LIVE'),ae().then(({ensureUserProfile:e,updateUserPresence:n})=>{Promise.allSettled([e(t.uid,t.email),n(t.uid,!0)]).then(e=>{e.forEach(e=>{'rejected'===e.status&&console.error('Error finalizing auth bootstrap:',e.reason)})})}).catch(e=>{console.error('Error loading user service during auth bootstrap:',e)})):A('GUEST')}},e=>{console.error('Error subscribing to auth state in web shell:',e),M(!1)});return w.authPersistenceReady.catch(e=>{console.error('Error waiting for auth persistence in web shell:',e)}),()=>{e=!0,t()}},[ae]),l.default.useEffect(()=>{'undefined'!=typeof window&&(I?window.localStorage.setItem(j,ne):'/auth'===ne&&window.localStorage.removeItem(j))},[ne,I]),l.default.useEffect(()=>{if('undefined'==typeof window)return;const e=I;if(!e?.uid)return;const t=async t=>{try{const{updateUserPresence:n}=await ae();await n(e.uid,t),A(t?'LIVE':'AWAY')}catch(e){console.error('Error syncing presence:',e)}},n=()=>{t('visible'===document.visibilityState)};return n(),window.addEventListener('visibilitychange',n),()=>{window.removeEventListener('visibilitychange',n),t(!1)}},[ae,I]);const se=l.default.useCallback((e,t=!1)=>{if('undefined'==typeof window)return void oe((0,_.parseRouteInput)(e).pathname);const n=(0,_.parseRouteInput)(e),o=t?'replaceState':'pushState';window.history[o]({},'',n.historyPath),oe(n.pathname)},[]),de=l.default.useMemo(()=>({pathname:ne,push:e=>se(e,!1),replace:e=>se(e,!0),back:async()=>{if(V.current){if(await V.current())return}'undefined'!=typeof window&&window.history.length>1?window.history.back():se('/',!0)},setBackHandler:e=>{V.current=e}}),[se,ne]),ue=l.default.useCallback(e=>{const t=D[e]||R.default;return'/auth'===e||'/'===e?(0,C.jsx)(t,{}):(0,C.jsx)(l.default.Suspense,{fallback:(0,C.jsx)(K,{pathname:e,hasUser:Boolean(I),onEscape:()=>se(I?'/':'/auth',!0)}),children:(0,C.jsx)(t,{})})},[se,I]);l.default.useEffect(()=>{if(N)return;if(!I&&['/','/search','/create','/chats','/activity','/profile','/edit-profile','/member-profile','/admin-reports','/videos'].includes(ne))return P.current='undefined'!=typeof window?`${window.location.pathname}${window.location.search}`:ne,void se('/auth',!0);if(I&&'/auth'===ne){const e=P.current||'/';P.current=null,se(e,!0)}},[N,se,ne,I]);const ce='/edit-profile'===ne||'/member-profile'===ne||'/admin-reports'===ne,fe=k[ne],he=E<880,pe=E<560,ge=pe&&'/chats'===ne,be=!ce&&!N&&!!I,Ee=pe?10:18,me=pe?16:18,Re=pe?6:10,Se=(e=!1)=>(0,C.jsx)(f.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{gap:e?Re:8,paddingTop:e?0:12,paddingHorizontal:e?pe?2:6:0},style:e?{flexGrow:0}:void 0,children:v.map(t=>{const n=ne===t.path;return(0,C.jsxs)(u.default,{onPress:()=>de.push(t.path),style:{flexDirection:'column',alignItems:'center',justifyContent:'center',backgroundColor:n?'#1d120b':'#11100f',borderWidth:1,borderColor:n?'rgba(212,175,55,0.35)':'rgba(255,255,255,0.12)',borderRadius:e?pe?15:18
137:14,paddingHorizontal:e&&pe?9:12,paddingVertical:e?pe?8:10:9,minWidth:e?pe?62:72:84},children:[(0,C.jsx)(h.default,{style:Object.assign({},y.TEXT_STYLES.bodyText,{color:n?y.COLORS.gold:y.COLORS.textSecondary,fontSize:e?pe?9:10:9,letterSpacing:1.4,marginBottom:pe?2:3}),children:t.icon}),(0,C.jsx)(h.default,{style:Object.assign({},y.TEXT_STYLES.button,{color:n?y.COLORS.text:'#fff',fontSize:e?pe?10:11:12}),children:t.label})]},t.path)})});return N?(0,C.jsxs)(c.default,{style:{flex:1,backgroundColor:y.COLORS.background},children:[(0,C.jsx)(n.StatusBar,{style:"light"}),(0,C.jsx)(S.LoadingState,{fullScreen:!0,accentLabel:"BOOT SEQUENCE",title:"Booting BlackBunny web",subtitle:"Checking your session, hydrating cache, and bringing the feed online."})]}):B?(0,C.jsxs)(c.default,{style:{flex:1,backgroundColor:'#140000'},children:[(0,C.jsx)(n.StatusBar,{style:"light"}),(0,C.jsxs)(p.default,{style:{flex:1,padding:24,justifyContent:'center'},children:[(0,C.jsx)(h.default,{style:{color:'#ff6b6b',fontSize:24,fontWeight:'700',marginBottom:16},children:"Browser Error"}),(0,C.jsx)(h.default,{selectable:!0,style:{color:'#ffffff',fontSize:16,lineHeight:24},children:B}),(0,C.jsx)(u.default,{onPress:()=>{'undefined'!=typeof window&&window.localStorage.removeItem(T.LAST_RUNTIME_ERROR_STORAGE_KEY),Q(),H(null)},style:{marginTop:16,alignSelf:'flex-start',borderRadius:999,borderWidth:1,borderColor:'rgba(255,255,255,0.18)',paddingHorizontal:14,paddingVertical:9,backgroundColor:'#1b0b0b'},children:(0,C.jsx)(h.default,{style:Object.assign({},y.TEXT_STYLES.button,{fontSize:12}),children:"Dismiss Error"})})]})]}):(0,C.jsx)(ee,{children:(0,C.jsx)(O.WebRouterProvider,{value:de,children:(0,C.jsxs)(c.default,{style:{flex:1,backgroundColor:y.COLORS.background},children:[(0,C.jsx)(n.StatusBar,{style:"light"}),I&&!ge?(0,C.jsxs)(p.default,{style:{borderBottomWidth:1,borderBottomColor:'rgba(255,255,255,0.12)',backgroundColor:'#050505',paddingHorizontal:Ee,paddingTop:pe?8:14,paddingBottom:pe?8:12},children:[(0,C.jsx)(p.default,{style:{borderWidth:1,borderColor:'rgba(212,175,55,0.16)',borderRadius:me,backgroundColor:'#090806',paddingHorizontal:pe?10:14,paddingVertical:pe?8:12,marginBottom:pe?6:10},children:(0,C.jsxs)(p.default,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},children:[(0,C.jsxs)(p.default,{style:{flexDirection:'row',alignItems:'center'},children:[(0,C.jsx)(p.default,{style:{width:pe?38:52,height:pe?38:52,borderRadius:pe?12:16,backgroundColor:'#120d09',borderWidth:1,borderColor:'rgba(212,175,55,0.35)',justifyContent:'center',alignItems:'center',marginRight:pe?8:14},children:(0,C.jsx)(s.default,{source:r(d[38]),style:{width:pe?24:34,height:pe?24:34}})}),(0,C.jsxs)(p.default,{children:[pe?null:(0,C.jsx)(h.default,{style:Object.assign({},y.TEXT_STYLES.bodyText,{color:y.COLORS.accent,fontSize:11,letterSpacing:2}),children:"BLACKBUNNY // RETRO ANALOG NETWORK"}),(0,C.jsx)(h.default,{style:Object.assign({},y.TEXT_STYLES.title,{fontSize:pe?16:22}),children:fe})]})]}),(0,C.jsx)(p.default,{style:{paddingHorizontal:pe?7:10,paddingVertical:pe?5:8,borderRadius:999,backgroundColor:'#14110d',borderWidth:1,borderColor:'rgba(212,175,55,0.16)'},children:(0,C.jsx)(h.default,{style:Object.assign({},y.TEXT_STYLES.bodyText,{fontSize:pe?8:10,color:y.COLORS.textSecondary,letterSpacing:1.1}),children:I?`${z}${pe?'':' SESSION'}`:'SIGN IN'})})]})}),(0,C.jsxs)(p.default,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',minHeight:pe?28:void 0},children:[pe?(0,C.jsx)(p.default,{}):(0,C.jsx)(h.default,{style:Object.assign({},y.TEXT_STYLES.bodyText,{color:y.COLORS.textSecondary,fontSize:12}),children:I?'Feed, chats, publishing, and profile tools stay one tap away.':'Log in to continue.'}),ce?(0,C.jsx)(u.default,{onPress:de.back,style:{borderWidth:1,borderColor:'rgba(255,255,255,0.18)',borderRadius:999,paddingHorizontal:pe?10:14,paddingVertical:pe?6:8,backgroundColor:'#0f0f0f'},children:(0,C.jsx)(h.default,{style:Object.assign({},y.TEXT_STYLES.button,{fontSize:pe?12:13}),children:"Back"})}):null]}),be&&!pe?Se(!1):null]}):null,(0,C.jsxs)(p.default,{style:{flex:1,backgroundColor:y.COLORS.background,alignItems:'center'},children:[I?null:(0,C.jsx)(p.default,{style:{flex:1,width:'100%',maxWidth:he?void 0:1180},children:ue('/auth')}),I?(0,C.jsx)(p.default,{style:{flex:1,width:'100%',maxWidth:he?void 0:1180},children:ue(ne)}):null]}),be&&pe?(0,C.jsx)(p.default,{style:{borderTopWidth:1,borderTopColor:'rgba(255,255,255,0.12)',backgroundColor:'#050505',paddingTop:6,paddingBottom:8,paddingHorizontal:8},children:Se(!0)}):null]})})})}}
137,96,{"0":97,"1":170,"2":178,"3":34,"4":188,"5":215,"6":222,"7":223,"8":229,"9":199,"10":230,"11":231,"12":332,"13":232,"14":233,"15":309,"16":489,"17":762,"18":330,"19":763,"20":175,"21":332,"22":327,"23":231,"24":766,"25":767,"26":768,"27":769,"28":770,"29":771,"30":772,"31":773,"32":774,"33":764,"34":765,"35":318,"36":775,"37":776,"38":306,"paths":{"766":"/_expo/static/js/web/search-13176843a3933b8488406504a2119225.js","767":"/_expo/static/js/web/create-874b5d84dd14b56a3427d510fcf558e7.js","768":"/_expo/static/js/web/chats-cff65098cb0476bfc73001601848a965.js","769":"/_expo/static/js/web/activity-7eaf7666a9c5c7872edf3d7da752cdad.js","770":"/_expo/static/js/web/profile-f8443a2d7bcdf6befdca86d33ea250e5.js","771":"/_expo/static/js/web/edit-profile-88e4a8308e3d43edd73226842b08b69e.js","772":"/_expo/static/js/web/member-profile-35ba649370873af39b40fb28760d89e5.js","773":"/_expo/static/js/web/admin-reports-7ac42a504f03aee2508d683014885bd7.js","774":"/_expo/static/js/web/videos-d6930c7cd758a1881ce1abb6b0796de4.js"}});
138__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useFonts",{enumerable:!0,get:function(){return o.useFonts}});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var o=r(d[2])},97,[98,167,169]);
139__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.isLoaded=c,_e.getLoadedFonts=function(){return t.default.getLoadedFonts()},_e.isLoading=function(e){return e in u.loadPromises},_e.loadAsync=function(e,n){const t='undefined'==typeof window;if('object'==typeof e){if(n)return Promise.reject(new o.CodedError("ERR_FONT_API",`No fontFamily can be used for the provided source: ${n}. The second argument of \`loadAsync()\` can only be used with a \`string\` value as the first argument.`));const s=e,l=Object.keys(s);return t?(l.map(e=>(0,f.registerStaticFont)(e,s[e])),Promise.resolve()):Promise.all(l.map(e=>y(e,s[e]))).then(()=>{})}if(t)return(0,f.registerStaticFont)(e,n),Promise.resolve();return y(e,n)},_e.unloadAllAsync=async function(){if(!t.default.unloadAllAsync)throw new o.UnavailabilityError('expo-font','unloadAllAsync');if(Object.keys(u.loadPromises).length)throw new o.CodedError("ERR_UNLOAD",`Cannot unload fonts while they're still loading: ${Object.keys(u.loadPromises).join(', ')}`);(0,u.purgeCache)(),await t.default.unloadAllAsync()},_e.unloadAsync=async function(e,n){if(!t.default.unloadAsync)throw new o.UnavailabilityError('expo-font','unloadAsync');if('object'==typeof e){if(n)throw new o.CodedError("ERR_FONT_API",`No fontFamily can be used for the provided options: ${n}. The second argument of \`unloadAsync()\` can only be used with a \`string\` value as the first argument.`);const t=e,s=Object.keys(t);return void await Promise.all(s.map(e=>w(e,t[e])))}return await w(e,n)},Object.defineProperty(_e,"FontDisplay",{enumerable:!0,get:function(){return s.FontDisplay}});var e,o=r(d[0]),n=r(d[1]),t=(e=n)&&e.__esModule?e:{default:e},s=r(d[2]),l=r(d[3]),u=r(d[4]),f=r(d[5]);function c(e){if('function'!=typeof t.default.isLoaded)throw new Error("expected ExpoFontLoader.isLoaded to be a function, was "+typeof t.default.isLoaded);return(0,u.isLoadedInCache)(e)||t.default.isLoaded(e)}async function y(e,n){if(!n)throw new o.CodedError("ERR_FONT_SOURCE",`Cannot load null or undefined font source: { "${e}": ${n} }. Expected asset of type \`FontSource\` for fontFamily of name: "${e}"`);if(c(e))return;if(u.loadPromises.hasOwnProperty(e))return u.loadPromises[e];const t=(0,l.getAssetForSource)(n);u.loadPromises[e]=(async()=>{try{await(0,l.loadSingleFontAsync)(e,t),(0,u.markLoaded)(e)}finally{delete u.loadPromises[e]}})(),await u.loadPromises[e]}async function w(e,n){if(c(e)){if((0,u.purgeFontFamilyFromCache)(e),!e)throw new o.CodedError("ERR_FONT_FAMILY","Cannot unload an empty name");if(!t.default.unloadAsync)throw new o.UnavailabilityError('expo-font','unloadAsync');await t.default.unloadAsync(e,n)}}},98,[99,140,142,143,165,166]);
140__d(function(g,r,i,a,m,_e,d){"use strict";
140function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"EventEmitter",{enumerable:!0,get:function(){return t.EventEmitter}}),Object.defineProperty(_e,"NativeModule",{enumerable:!0,get:function(){return n.NativeModule}}),Object.defineProperty(_e,"SharedObject",{enumerable:!0,get:function(){return o.SharedObject}}),Object.defineProperty(_e,"SharedRef",{enumerable:!0,get:function(){return u.SharedRef}}),Object.defineProperty(_e,"Platform",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"uuid",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"requireNativeViewManager",{enumerable:!0,get:function(){return b.requireNativeViewManager}}),Object.defineProperty(_e,"CodedError",{enumerable:!0,get:function(){return h.CodedError}}),Object.defineProperty(_e,"UnavailabilityError",{enumerable:!0,get:function(){return E.UnavailabilityError}}),Object.defineProperty(_e,"LegacyEventEmitter",{enumerable:!0,get:function(){return w.LegacyEventEmitter}}),Object.defineProperty(_e,"NativeModulesProxy",{enumerable:!0,get:function(){return k.default}}),r(d[0]),r(d[1]);
140var t=r(d[2]),n=r(d[3]),o=r(d[4]),u=r(d[5]),c=e(r(d[6])),f=e(r(d[7])),b=r(d[8]),l=r(d[9]);Object.keys(l).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return l[e]}})});var y=r(d[10]);Object.keys(y).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return y[e]}})});var O=r(d[11]);Object.keys(O).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return O[e]}})});var p=r(d[12]);Object.keys(p).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return p[e]}})});var j=r(d[13]);Object.keys(j).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return j[e]}})});var P=r(d[14]);Object.keys(P).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return P[e]}})});var s=r(d[15]);Object.keys(s).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return s[e]}})});var v=r(d[16]);Object.keys(v).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return v[e]}})});var h=r(d[17]),E=r(d[18]),w=r(d[19]),k=e(r(d[20]))},99,[100,101,114,116,117,118,119,104,121,124,125,126,127,128,130,131,132,123,122,133,139]);
141__d(function(g,r,i,a,m,e,d){},100,[]);
142__d(function(g,r,i,a,m,e,d){"use strict";(0,r(d[0]).installExpoGlobalPolyfill)()},101,[102]);
143__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.installExpoGlobalPolyfill=function(){if(globalThis.expo)return;globalThis.expo={EventEmitter:o.EventEmitter,NativeModule:o.NativeModule,SharedObject:o.SharedObject,SharedRef:o.SharedRef,modules:globalThis.ExpoDomWebView?.expoModulesProxy??{},uuidv4:l.default.v4,uuidv5:l.default.v5,getViewConfig:()=>{throw new Error('Method not implemented.')},reloadAppAsync:async()=>{window.location.reload()},expoModulesCoreVersion:void 0,cacheDir:void 0,documentsDir:void 0}};var e,o=r(d[0]),t=r(d[1]),l=(e=t)&&e.__esModule?e:{default:e},n=r(d[2]);Object.keys(n).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return n[e]}})})},102,[103,104,109]);
144__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EventEmitter",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"NativeModule",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SharedObject",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SharedRef",{enumerable:!0,get:function(){return o}});class t{addListener(t,s){this.listeners||(this.listeners=new Map),this.listeners?.has(t)||this.listeners?.set(t,new Set);const n=this.listenerCount(t);return this.listeners?.get(t)?.add(s),0===n&&1===this.listenerCount(t)&&this.startObserving(t),{remove:()=>{this.removeListener(t,s)}}}removeListener(t,s){const n=this.listeners?.get(t)?.delete(s);0===this.listenerCount(t)&&n&&this.stopObserving(t)}removeAllListeners(t){const s=this.listenerCount(t);this.listeners?.get(t)?.clear(),s>0&&this.stopObserving(t)}emit(t,...s){new Set(this.listeners?.get(t)).forEach(t=>{try{t(...s)}catch(t){console.error(t)}})}listenerCount(t){return this.listeners?.get(t)?.size??0}startObserving(t){}stopObserving(t){}}class s extends t{}class n extends t{release(){}}class o extends n{nativeRefType='unknown'}},103,[]);
145__d(function(g,r,i,a,m,_e,d){"use strict";function _interopDefault(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return _default}});var _libSha=r(d[0]),sha1=_interopDefault(_libSha),_libV=r(d[1]),v35=_interopDefault(_libV),_uuidTypes=r(d[2]);function uuidv4(){return'undefined'==typeof crypto&&'undefined'==typeof window?eval('require')('node:crypto').randomUUID():crypto.randomUUID()}const uuid={v4:uuidv4,v5:(0,v35.default)('v5',80,sha1.default),namespace:_uuidTypes.Uuidv5Namespace};var _default=uuid},104,[105,106,108]);
146__d(function(g,r,_i,_a,m,_e,_d){'use strict';function e(e,t,n,o){switch(e){case 0:return t&n^~t&o;case 1:case 3:return t^n^o;case 2:return t&n^t&o^n&o;default:return 0}}function t(e,t){return e<<t|e>>>32-t}
146Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var n=function(n){const o=[1518500249,1859775393,2400959708,3395469782],c=[1732584193,4023233417,2562383102,271733878,3285377520];if('string'==typeof n){const e=unescape(encodeURIComponent(n));n=new Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t)}n.push(128);const l=n.length/4+2,f=Math.ceil(l/16),u=new Array(f);for(let e=0;e<f;e++){u[e]=new Array(16);for(let t=0;t<16;t++)u[e][t]=n[64*e+4*t]<<24|n[64*e+4*t+1]<<16|n[64*e+4*t+2]<<8|n[64*e+4*t+3]}u[f-1][14]=8*(n.length-1)/Math.pow(2,32),u[f-1][14]=Math.floor(u[f-1][14]),u[f-1][15]=8*(n.length-1)&4294967295;for(let n=0;n<f;n++){const l=new Array(80);for(let e=0;e<16;e++)l[e]=u[n][e];for(let e=16;e<80;e++)l[e]=t(l[e-3]^l[e-8]^l[e-14]^l[e-16],1);let f=c[0],a=c[1],s=c[2],h=c[3],i=c[4];for(let n=0;n<80;n++){const c=Math.floor(n/20),u=t(f,5)+e(c,a,s,h)+i+o[c]+l[n]>>>0;i=h,h=s,s=t(a,30)>>>0,a=f,f=u}c[0]=c[0]+f>>>0,c[1]=c[1]+a>>>0,c[2]=c[2]+s>>>0,c[3]=c[3]+h>>>0,c[4]=c[4]+i>>>0}return[c[0]>>24&255,c[0]>>16&255,c[0]>>8&255,255&c[0],c[1]>>24&255,c[1]>>16&255,c[1]>>8&255,255&c[1],c[2]>>24&255,c[2]>>16&255,c[2]>>8&255,255&c[2],c[3]>>24&255,c[3]>>16&255,c[3]>>8&255,255&c[3],c[4]>>24&255,c[4]>>16&255,c[4]>>8&255,255&c[4]]}},105,[]);
147__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};function o(e){const t=[];return e.replace(/[a-fA-F0-9]{2}/g,e=>(t.push(parseInt(e,16)),'')),t}function c(e){e=unescape(encodeURIComponent(e));const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function u(e,t,u){const f=function(e,f,s,i){const y=s&&i||0;if('string'==typeof e&&(e=c(e)),'string'==typeof f&&(f=o(f)),!Array.isArray(e))throw TypeError('value must be an array of bytes');if(!Array.isArray(f)||16!==f.length)throw TypeError('namespace must be uuid string or an Array of 16 byte values');const l=u(f.concat(e));if(l[6]=15&l[6]|t,l[8]=63&l[8]|128,s)for(let e=0;e<16;++e)s[y+e]=l[e];return(0,n.default)(l)};try{f.name=e}catch{}return f.DNS='6ba7b810-9dad-11d1-80b4-00c04fd430c8',f.URL='6ba7b811-9dad-11d1-80b4-00c04fd430c8',f}},106,[107]);
148__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});const t=[];for(let n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);var n=function(n,o){let u=o||0;const c=t;return[c[n[u++]],c[n[u++]],c[n[u++]],c[n[u++]],'-',c[n[u++]],c[n[u++]],'-',c[n[u++]],c[n[u++]],'-',c[n[u++]],c[n[u++]],'-',c[n[u++]],c[n[u++]],c[n[u++]],c[n[u++]],c[n[u++]],c[n[u++]]].join('')}},107,[]);
149__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Uuidv5Namespace",{enumerable:!0,get:function(){return b}});let b=(function(b){return b.dns="6ba7b810-9dad-11d1-80b4-00c04fd430c8",b.url="6ba7b811-9dad-11d1-80b4-00c04fd430c8",b.oid="6ba7b812-9dad-11d1-80b4-00c04fd430c8",b.x500="6ba7b814-9dad-11d1-80b4-00c04fd430c8",b})({})},108,[]);
150__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]),r(d[1]),r(d[2]),r(d[3])},109,[110,111,112,113]);
151__d(function(g,r,i,a,m,e,d){},110,[]);
152__d(function(g,r,i,a,m,e,d){},111,[]);
153__d(function(g,r,i,a,m,e,d){},112,[]);
154__d(function(g,r,i,a,m,e,d){},113,[]);
155__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EventEmitter",{enumerable:!0,get:function(){return t}}),(0,r(d[0]).ensureNativeModulesAreInstalled)();const t=globalThis.expo.EventEmitter},114,[115]);
156__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.ensureNativeModulesAreInstalled=function(){},r(d[0])},115,[101]);
157__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"NativeModule",{enumerable:!0,get:function(){return t}}),(0,r(d[0]).ensureNativeModulesAreInstalled)();const t=globalThis.expo.NativeModule},116,[115]);
158__d(function(g,r,i,a,m,e,d){"use strict";
158Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SharedObject",{enumerable:!0,get:function(){return t}}),(0,r(d[0]).ensureNativeModulesAreInstalled)();const t=globalThis.expo.SharedObject},117,[115]);
159__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SharedRef",{enumerable:!0,get:function(){return t}}),(0,r(d[0]).ensureNativeModulesAreInstalled)();const t=globalThis.expo.SharedRef},118,[115]);
160__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},s=r(d[1]);var u={OS:"web",select:'undefined'!=typeof window?t.default.select:function(e){return e.hasOwnProperty("web")?e.web:e.hasOwnProperty('default')?e.default:void 0},isDOMAvailable:s.isDOMAvailable,canUseEventListeners:s.canUseEventListeners,canUseViewport:s.canUseViewport,isAsyncDebugging:s.isAsyncDebugging}},119,[95,120]);
161__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isDOMAvailable",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"canUseEventListeners",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"canUseViewport",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isAsyncDebugging",{enumerable:!0,get:function(){return c}});const n='undefined'!=typeof window&&!!window.document?.createElement,t=n&&!(!window.addEventListener&&!window.attachEvent),o=n&&!!window.screen,c=!1},120,[]);
162__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.requireNativeViewManager=function(n,o){throw new t.UnavailabilityError('expo-modules-core','requireNativeViewManager')};var t=r(d[0])},121,[122]);
163__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"UnavailabilityError",{enumerable:!0,get:function(){return o}});var t=r(d[0]);r(d[1]);class o extends t.CodedError{constructor(t,o){super('ERR_UNAVAILABLE',`The method or property ${t}.${o} is not available on web, are you sure you've linked all the native dependencies properly?`)}}},122,[123,119]);
164__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CodedError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(t,o){super(o),this.code=t}}},123,[]);
165__d(function(g,r,i,a,m,e,d){"use strict";function o(o){return'object'==typeof globalThis.ExpoDomWebView&&null!=globalThis?.expo?.modules?globalThis.expo?.modules?.[o]??null:null}Object.defineProperty(e,'__esModule',{value:!0}),e.requireNativeModule=function(n){const l=o(n);if(null!=l)return l;if('undefined'==typeof window)return{};throw new Error(`Cannot find native module '${n}'`)},e.requireOptionalNativeModule=o},124,[]);
166__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.registerWebModule=function(s,l){if((0,o.ensureNativeModulesAreInstalled)(),!(l=l??s.name))throw new Error('Web module implementation is missing a name - it is either not a class or has been minified. Pass the name as a second argument to the `registerWebModule` function.');globalThis?.expo?.modules||(globalThis.expo.modules={});if(globalThis.expo.modules[l])return globalThis.expo.modules[l];return globalThis.expo.modules[l]=new s,globalThis.expo.modules[l]};var o=r(d[0])},125,[115]);
167__d(function(g,r,i,a,m,e,d){},126,[]);
168__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PermissionStatus",{enumerable:!0,get:function(){return t}});let t=(function(t){return t.GRANTED="granted",t.UNDETERMINED="undetermined",t.DENIED="denied",t})({})},127,[]);
169__d(function(g,r,i,a,m,_e,d){"use strict";const e=["get","request"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.createPermissionHook=function(e){return t=>c(e,t)};var t,u=r(d[0]),n=(t=u)&&t.__esModule?t:{default:t},s=r(d[1]);
169function c(t,u){const c=(0,s.useRef)(!0),[o,l]=(0,s.useState)(null),f=u||{},{get:h=!0,request:M=!1}=f,_=(0,n.default)(f,e),b=(0,s.useCallback)(async()=>{let e;return e=Object.keys(_).length>0?await t.getMethod(_):await t.getMethod(),c.current&&l(e),e},[t.getMethod]),k=(0,s.useCallback)(async()=>{let e;return e=Object.keys(_).length>0?await t.requestMethod(_):await t.requestMethod(),c.current&&l(e),e},[t.requestMethod]);return(0,s.useEffect)(function(){M&&k(),!M&&h&&b()},[h,M,k,b]),(0,s.useEffect)(function(){return c.current=!0,()=>{c.current=!1}},[]),[o,k,b]}},128,[129,34]);
170__d(function(g,_r,i,a,m,_e,d){m.exports=function(r,e){if(null==r)return{};var n={};for(var t in r)if({}.hasOwnProperty.call(r,t)){if(-1!==e.indexOf(t))continue;n[t]=r[t]}return n},m.exports.__esModule=!0,m.exports.default=m.exports},129,[]);
171__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createSnapshotFriendlyRef=function(){return(0,t.createRef)()};var t=r(d[0])},130,[34]);
172__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useReleasingSharedObject=function(u,n){const c=(0,t.useRef)(null),s=(0,t.useRef)(!1),l=(0,t.useRef)(n);null==c.current&&(c.current=u());const o=(0,t.useMemo)(()=>{let t=c.current;const s=l.current?.length===n.length&&n.every((t,u)=>t===l.current[u]);return t&&s||(c.current?.release(),t=u(),c.current=t,l.current=n),t},n);return(0,t.useMemo)(()=>{s.current=!0},[]),(0,t.useEffect)(()=>(s.current=!1,()=>{!s.current&&c.current&&c.current.release()}),[]),o};var t=r(d[0])},131,[34]);
173__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.reloadAppAsync=async function(o="Reloaded from JS call"){await(globalThis.expo?.reloadAppAsync(o))}},132,[]);
174__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"LegacyEventEmitter",{enumerable:!0,get:function(){return o}});var t=e(r(d[0])),n=e(r(d[1]));r(d[2]);const s='@@nativeEmitterSubscription@@';class o{_listenerCount=0;constructor(e){if(e.__expo_module_name__)return e;this._nativeModule=e,this._eventEmitter=new n.default(e)}addListener(e,t){!this._listenerCount&&this._nativeModule.startObserving&&this._nativeModule.startObserving(),this._listenerCount++;const n=this._eventEmitter.addListener(e,t),o={[s]:n,remove:()=>{this.removeSubscription(o)}};return o}removeAllListeners(e){const n=this._eventEmitter.listenerCount?this._eventEmitter.listenerCount(e):this._eventEmitter.listeners(e).length;this._eventEmitter.removeAllListeners(e),this._listenerCount-=n,(0,t.default)(this._listenerCount>=0,"EventEmitter must have a non-negative number of listeners"),!this._listenerCount&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving()}removeSubscription(e){const t=e,n=t[s];n&&('remove'in n&&n.remove?.(),this._listenerCount--,delete t[s],e.remove=()=>{},!this._listenerCount&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving())}emit(e,...t){this._eventEmitter.emit(e,...t)}}},133,[134,135,95]);
175__d(function(g,r,i,_a,m,_e,_d){'use strict';m.exports=function(e,n,o,t,a,f,s,d){if(!e){var u;if(void 0===n)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[o,t,a,f,s,d],l=0;(u=new Error(n.replace(/%s/g,function(){return c[l++]}))).name='Invariant Violation'}throw u.framesToPop=1,u}}},134,[]);
176__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},135,[136]);
177__d(function(g,r,i,a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}}),r(d[0]);var t=e(r(d[1])),n=e(r(d[2]));class l{constructor(e){}addListener(e,n,l){var u;null==(u=this._nativeModule)||u.addListener(e);var s=t.default.addListener(e,n,l);return{remove:()=>{var e;null!=s&&(null==(e=this._nativeModule)||e.removeListeners(1),s.remove(),s=null)}}}removeListener(e,n){var l;null==(l=this._nativeModule)||l.removeListeners(1),t.default.removeListener(e,n)}emit(e){for(var n=arguments.length,l=new Array(n>1?n-1:0),u=1;u<n;u++)l[u-1]=arguments[u];t.default.emit(e,...l)}removeAllListeners(e){var l;(0,n.default)(null!=e,'`NativeEventEmitter.removeAllListener()` requires a non-null argument.'),null==(l=this._nativeModule)||l.removeListeners(this.listenerCount(e)),t.default.removeAllListeners(e)}listenerCount(e){return t.default.listenerCount(e)}}},136,[95,137,24]);
178__d(function(g,r,i,a,m,_e,d){"use strict";
178Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=new((e=t)&&e.__esModule?e:{default:e}).default},137,[138]);
179__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});class t{constructor(){this._registry={}}addListener(t,s,l){var u=n(this._registry,t),o={context:l,listener:s,remove(){u.delete(o)}};return u.add(o),o}emit(t){var n=this._registry[t];if(null!=n){for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];for(var o=0,c=[...n];o<c.length;o++){var v=c[o];v.listener.apply(v.context,l)}}}removeAllListeners(t){null==t?this._registry={}:delete this._registry[t]}listenerCount(t){var n=this._registry[t];return null==n?0:n.size}}function n(t,n){var s=t[n];return null==s&&(s=new Set,t[n]=s),s}},138,[]);
180__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t={}},139,[]);
181__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}}),_e._createWebFontTemplate=$;var e,n=r(d[0]),t=r(d[1]),o=(e=t)&&e.__esModule?e:{default:e},s=r(d[2]);function i(){if('undefined'==typeof window)return null;const e=w();return e.sheet?e.sheet:null}function l(){const e=i();if(e){const n=[...e.cssRules],t=[];for(let e=0;e<n.length;e++){const o=n[e];o instanceof CSSFontFaceRule&&t.push({rule:o,index:e})}return t}return[]}function u(e,n){return l().filter(({rule:t})=>!(t.style.fontFamily!==e||n&&n.display&&n.display!==t.style.fontDisplay))}const c=new Set;function f(){const e=[...c.entries()];if(!e.length)return[];const n=e.map(([{css:e}])=>e).join('\n'),t=e.map(([{resourceId:e}])=>e);return[{$$type:'style',children:n,id:h,type:'text/css'},...t.map(e=>({$$type:'link',rel:'preload',href:e,as:'font',crossorigin:''}))]}const y={async unloadAllAsync(){if('undefined'==typeof window)return;const e=document.getElementById(h);e&&e instanceof HTMLStyleElement&&document.removeChild(e)},async unloadAsync(e,n){const t=i();if(!t)return;const o=u(e,n);for(const e of o)t.deleteRule(e.index)},getServerResources:()=>f().map(e=>{switch(e.$$type){case'style':return`<style id="${e.id}">${e.children}</style>`;case'link':return`<link rel="${e.rel}" href="${e.href}" as="${e.as}" crossorigin="${e.crossorigin}" />`;default:return''}}).filter(Boolean),resetServerContext(){c.clear()},getLoadedFonts(){if('undefined'==typeof window)return[...c.values()].map(({name:e})=>e);return l().map(({rule:e})=>e.style.fontFamily)},isLoaded:(e,n={})=>'undefined'==typeof window?!![...c.values()].find(n=>n.name===e):u(e,n)?.length>0,loadAsync(e,t){if('undefined'==typeof window)return c.add({name:e,css:$(e,t),resourceId:t.uri}),Promise.resolve();if(!(document.head&&'function'==typeof document.head.appendChild))throw new n.CodedError('ERR_WEB_ENVIRONMENT',"The browser's `document.head` element doesn't support injecting fonts.");const s=w();document.head.appendChild(s);return u(e,t).length||v(e,t),E()?new o.default(e,{display:t.display}).load(null,6e3):Promise.resolve()}};var p='undefined'==typeof window?y:(0,n.registerWebModule)(function(){return y},'ExpoFontLoader');const h='expo-generated-fonts';function w(){const e=document.getElementById(h);if(e&&e instanceof HTMLStyleElement)return e;const n=document.createElement('style');return n.id=h,n}function $(e,n){return`@font-face{font-family:"${e}";src:url("${n.uri}");font-display:${n.display||s.FontDisplay.AUTO}}`}function v(e,n){const t=$(e,n),o=w();if(o.styleSheet){const e=o;e.styleSheet.cssText=e.styleSheet.cssText?e.styleSheet.cssText+t:t}else{const e=document.createTextNode(t);o.appendChild(e)}return o}function E(){const{userAgent:e}=window.navigator,n=!!e.match(/iPad|iPhone/i),t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),o=e.includes('Edge'),s=e.includes('Trident'),i=e.includes('Firefox');return!(t||n||o||s||i)}},140,[99,141,142]);
182__d(function(_g,_r,i,_a,_m,_e,_d){!(function(){function e(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function t(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t),e()}):document.attachEvent("onreadystatechange",function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())})}function n(e){this.g=document.createElement("div"),this.g.setAttribute("aria-hidden","true"),this.g.appendChild(document.createTextNode(e)),this.h=document.createElement("span"),this.i=document.createElement("span"),this.m=document.createElement("span"),this.j=document.createElement("span"),this.l=-1,this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.h.appendChild(this.m),this.i.appendChild(this.j),this.g.appendChild(this.h),this.g.appendChild(this.i)}function o(e,t){e.g.style.cssText="max-width:none;min-width:20px;min-height:20px;
182display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function s(e){var t=e.g.offsetWidth,n=t+100;return e.j.style.width=n+"px",e.i.scrollLeft=n,e.h.scrollLeft=e.h.scrollWidth+100,e.l!==t&&(e.l=t,!0)}function d(t,n){function o(){var e=d;s(e)&&null!==e.g.parentNode&&n(e.l)}var d=t;e(t.h,o),e(t.i,o),s(t)}function a(e,t,n){t=t||{},n=n||window,this.family=e,this.style=t.style||"normal",this.weight=t.weight||"normal",this.stretch=t.stretch||"normal",this.context=n}var l=null,r=null,c=null,h=null;function u(e){return null===r&&(f(e)&&/Apple/.test(window.navigator.vendor)?(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),r=!!e&&603>parseInt(e[1],10)):r=!1),r}function f(e){return null===h&&(h=!!e.document.fonts),h}function m(e,t){var n=e.style,o=e.weight;if(null===c){var s=document.createElement("div");try{s.style.font="condensed 100px sans-serif"}catch(e){}c=""!==s.style.font}return[n,o,c?e.stretch:"","100px",t].join(" ")}a.prototype.load=function(e,s){var a=this,r=e||"BESbswy",c=0,h=s||3e3,p=(new Date).getTime();return new Promise(function(e,s){if(f(a.context)&&!u(a.context)){var w=new Promise(function(e,t){!(function n(){(new Date).getTime()-p>=h?t(Error(h+"ms timeout exceeded")):a.context.document.fonts.load(m(a,'"'+a.family+'"'),r).then(function(t){1<=t.length?e():setTimeout(n,25)},t)})()}),g=new Promise(function(e,t){c=setTimeout(function(){t(Error(h+"ms timeout exceeded"))},h)});Promise.race([g,w]).then(function(){clearTimeout(c),e(a)},s)}else t(function(){function t(){var t;(t=-1!=g&&-1!=v||-1!=g&&-1!=y||-1!=v&&-1!=y)&&((t=g!=v&&g!=y&&v!=y)||(null===l&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),l=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=l&&(g==x&&v==x&&y==x||g==E&&v==E&&y==E||g==b&&v==b&&y==b)),t=!t),t&&(null!==T.parentNode&&T.parentNode.removeChild(T),clearTimeout(c),e(a))}var u=new n(r),f=new n(r),w=new n(r),g=-1,v=-1,y=-1,x=-1,E=-1,b=-1,T=document.createElement("div");T.dir="ltr",o(u,m(a,"sans-serif")),o(f,m(a,"serif")),o(w,m(a,"monospace")),T.appendChild(u.g),T.appendChild(f.g),T.appendChild(w.g),a.context.document.body.appendChild(T),x=u.g.offsetWidth,E=f.g.offsetWidth,b=w.g.offsetWidth,(function e(){if((new Date).getTime()-p>=h)null!==T.parentNode&&T.parentNode.removeChild(T),s(Error(h+"ms timeout exceeded"));else{var n=a.context.document.hidden;!0!==n&&void 0!==n||(g=u.g.offsetWidth,v=f.g.offsetWidth,y=w.g.offsetWidth,t()),c=setTimeout(e,50)}})(),d(u,function(e){g=e,t()}),o(u,m(a,'"'+a.family+'",sans-serif')),d(f,function(e){v=e,t()}),o(f,m(a,'"'+a.family+'",serif')),d(w,function(e){y=e,t()}),o(w,m(a,'"'+a.family+'",monospace'))})})},"object"==typeof _m?_m.exports=a:(window.FontFaceObserver=a,window.FontFaceObserver.prototype.load=a.prototype.load)})()},141,[]);
183__d(function(g,r,i,a,m,e,d){"use strict";var t;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FontDisplay",{enumerable:!0,get:function(){return t}}),(function(t){t.AUTO="auto",t.SWAP="swap",t.BLOCK="block",t.FALLBACK="fallback",t.OPTIONAL="optional"})(t||(t={}))},142,[]);
184__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getAssetForSource=function(t){const e=l(t),o=f(t);e&&'string'==typeof e||c(e);return{uri:e,display:o}},_e.loadSingleFontAsync=function(t,e){('object'!=typeof e||'string'!=typeof e.uri||e.downloadAsync)&&c(e);try{return u.default.loadAsync(t,e)}catch{}return Promise.resolve()};var t,e=r(d[0]),o=r(d[1]),n=r(d[2]),u=(t=n)&&t.__esModule?t:{default:t},s=r(d[3]);function l(t){return'string'==typeof t?t||null:'number'==typeof t?l(e.Asset.fromModule(t)):'object'==typeof t&&'number'==typeof t.uri?l(t.uri):'object'==typeof t&&(t.uri||t.localUri||t.default)||null}function f(t){return'object'==typeof t&&'display'in t&&t.display||s.FontDisplay.AUTO}function c(t){let e=typeof t;throw'object'===e&&(e=JSON.stringify(t,null,2)),new o.CodedError("ERR_FONT_SOURCE",`Expected font asset of type \`string | FontResource | Asset\` instead got: ${e}`)}},143,[144,99,140,142]);
185__d(function(g,r,i,a,m,e,d){"use strict";
185Object.defineProperty(e,'__esModule',{value:!0}),r(d[0]);var t=r(d[1]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[2]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})},144,[145,146,164]);
186__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),s=r(d[1]),u=r(d[2]),o=(e=u)&&e.__esModule?e:{default:e};if(s.IS_ENV_WITH_LOCAL_ASSETS){(o.default.setCustomSourceTransformer||u.setCustomSourceTransformer)(function(e){try{if('fileHashes'in e.asset&&e.asset.fileHashes){const s=t.Asset.fromMetadata(e.asset);return s.uri.startsWith(t.ANDROID_EMBEDDED_URL_BASE_RESOURCE)?e.resourceIdentifierWithoutScale():e.fromSource(s.downloaded?s.localUri:s.uri)}return e.defaultAsset()}catch{return e.defaultAsset()}})}},145,[146,158,163]);
187__d(function(g,r,i,a,m,_e,_d){"use strict";function t(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(s){var n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:function(){return t[s]}})}),e.default=t,e}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ANDROID_EMBEDDED_URL_BASE_RESOURCE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"Asset",{enumerable:!0,get:function(){return w}});var e=r(_d[0]);r(_d[1]);var s,n=r(_d[2]),h=t(r(_d[3])),o=r(_d[4]),l=t(r(_d[5])),u=r(_d[6]),d=r(_d[7]),c=r(_d[8]),f=(s=c)&&s.__esModule?s:{default:s};const y='file:///android_res/';class w{static byHash={};static byUri={};hash=null;localUri=null;width=null;height=null;downloading=!1;downloaded=!1;_downloadCallbacks=[];constructor({name:t,type:e,hash:s=null,uri:n,width:o,height:l}){this.name=t,this.type=e,this.hash=s,this.uri=n,'number'==typeof o&&(this.width=o),'number'==typeof l&&(this.height=l),s&&(this.localUri=(0,u.getLocalAssetUri)(s,e),this.localUri?.startsWith(y)?(this.uri=this.localUri,this.localUri=null):this.localUri&&(this.downloaded=!0)),t||(this.name=h.getFilename(n)),e||(this.type=h.getFileExtension(n))}static loadAsync(t){const e=Array.isArray(t)?t:[t];return Promise.all(e.map(t=>w.fromModule(t).downloadAsync()))}static fromModule(t){if('string'==typeof t)return w.fromURI(t);if('object'==typeof t&&'uri'in t&&'string'==typeof t.uri){const e=h.getFileExtension(t.uri);return new w({name:'',type:e.startsWith('.')?e.substring(1):e,hash:null,uri:t.uri,width:t.width,height:t.height})}const s=(0,e.getAssetByID)(t);if(!s)throw new Error(`Module "${t}" is missing from the asset registry`);
187if(!d.IS_ENV_WITH_LOCAL_ASSETS){const{uri:e}=(0,f.default)(t),n=new w({name:s.name,type:s.type,hash:s.hash,uri:e,width:s.width,height:s.height});return w.byHash[s.hash]=n,n}return w.fromMetadata(s)}static fromMetadata(t){const e=t.hash,s=w.byHash[e];if(s)return s;const{uri:h,hash:o}=(0,n.selectAssetSource)(t),l=new w({name:t.name,type:t.type,hash:o,uri:h,width:t.width,height:t.height});return w.byHash[e]=l,l}static fromURI(t){if(w.byUri[t])return w.byUri[t];let e='';if(t.indexOf(';base64')>-1)e=t.split(';')[0].split('/')[1];else{const s=h.getFileExtension(t);e=s.startsWith('.')?s.substring(1):s}const s=new w({name:'',type:e,hash:null,uri:t});return w.byUri[t]=s,s}async downloadAsync(){if(this.downloaded)return this;if(this.downloading)return await new Promise((t,e)=>{this._downloadCallbacks.push({resolve:t,reject:e})}),this;this.downloading=!0;try{if(l.isImageType(this.type)){const{width:t,height:e,name:s}=await l.getImageInfoAsync(this.uri);this.width=t,this.height=e,this.name=s}else this.name=h.getFilename(this.uri);this.localUri=await(0,o.downloadAsync)(this.uri,this.hash,this.type),this.downloaded=!0,this._downloadCallbacks.forEach(({resolve:t})=>t())}catch(t){throw this._downloadCallbacks.forEach(({reject:e})=>e(t)),t}finally{this.downloading=!1,this._downloadCallbacks=[]}return this}}},146,[147,99,148,159,160,161,162,158,163]);
188__d(function(g,r,i,a,m,e,d){const s=[];m.exports={registerAsset:t=>s.push(t),getAssetByID:t=>s[t-1]}},147,[]);
189__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.selectAssetSource=function(e){const c=n.default.pickScale(e.scales,t.default.get()),u=e.scales.findIndex(e=>e===c),f=e.fileHashes?e.fileHashes[u]??e.fileHashes[0]:e.hash,l=e.fileUris?e.fileUris[u]??e.fileUris[0]:e.uri;if(l)return{uri:h(l),hash:f};const p=1===c?'':`@${c}x`,U=e.type?`.${encodeURIComponent(e.type)}`:'',v=`/${encodeURIComponent(e.name)}${p}${U}`,x=new URLSearchParams({platform:"web",hash:e.hash});if(/^https?:\/\//.test(e.httpServerLocation)){return{uri:e.httpServerLocation+v+'?'+x,hash:f}}const L=(0,o.getManifest2)(),R=L?.extra?.expoGo?.developer?'http://'+L.extra.expoGo.debuggerHost:null;if(R){const t=new URL(e.httpServerLocation+v,R);return t.searchParams.set('platform',"web"),t.searchParams.set('hash',e.hash),{uri:t.href,hash:f}}if(s.default.ExponentKernel)return{uri:`https://classic-assets.eascdn.net/~assets/${encodeURIComponent(f)}`,hash:f};return{uri:'',hash:f}},_e.resolveUri=h,r(d[0]);var t=e(r(d[1])),s=e(r(d[2])),n=e(r(d[3])),o=r(d[4]);function h(e){return o.manifestBaseUrl?new URL(e,o.manifestBaseUrl).href:e}},148,[99,149,151,157,158]);
190__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e};class n{static get(){return u.default.get('window').scale}static getFontScale(){return u.default.get('window').fontScale||n.get()}static getPixelSizeForLayoutSize(e){return Math.round(e*n.get())}static roundToNearestPixel(e){var t=n.get();return Math.round(e*t)/t}}},149,[150]);
191__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return w}});var t=e(r(d[0])),n=e(r(d[1])),s={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},o={},c=n.default;function l(){if(n.default){var e,t,o=window;if(o.visualViewport){var c=o.visualViewport;e=Math.round(c.height*c.scale),t=Math.round(c.width*c.scale)}else{var l=o.document.documentElement;e=l.clientHeight,t=l.clientWidth}s.window={fontScale:1,height:e,scale:o.devicePixelRatio||1,width:t},s.screen={fontScale:1,height:o.screen.height,scale:o.devicePixelRatio||1,width:o.screen.width}}}function u(){l(),Array.isArray(o.change)&&o.change.forEach(e=>e(s))}class w{static get(e){return c&&(c=!1,l()),(0,t.default)(s[e],"No dimension set for key "+e),s[e]}static set(e){e&&(n.default?(0,t.default)(!1,'Dimensions cannot be set in the browser'):(null!=e.screen&&(s.screen=e.screen),null!=e.window&&(s.window=e.window)))}static addEventListener(e,t){return o[e]=o[e]||[],o[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(o[e])&&(o[e]=o[e].filter(e=>e!==t))}}
191n.default&&(window.visualViewport?window.visualViewport.addEventListener('resize',u,!1):window.addEventListener('resize',u,!1))},150,[24,39]);
192__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u={UIManager:((e=t)&&e.__esModule?e:{default:e}).default}},151,[152]);
193__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var t=e(r(d[0])),o=e(r(d[1])),s=e=>{var t=e.offsetHeight,o=e.offsetWidth,s=e.offsetLeft,n=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)s+=e.offsetLeft+e.clientLeft-e.scrollLeft,n+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:o,height:t,top:n-=window.scrollY,left:s-=window.scrollX}},n=(e,t,o)=>{var n=t||e&&e.parentNode;e&&n&&setTimeout(()=>{if(e.isConnected&&n.isConnected){var t=s(n),l=s(e),f=l.height,u=l.left,c=l.top,b=l.width,p=u-t.left,h=c-t.top;o(p,h,b,f,u,c)}},0)},l={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0},f={blur(e){try{e.blur()}catch(e){}},focus(e){try{var t=e.nodeName;null==e.getAttribute('tabIndex')&&!0!==e.isContentEditable&&null==l[t]&&e.setAttribute('tabIndex','-1'),e.focus()}catch(e){}},measure(e,t){n(e,null,t)},measureInWindow(e,o){e&&setTimeout(()=>{var s=(0,t.default)(e),n=s.height,l=s.left,f=s.top,u=s.width;o(l,f,u,n)},0)},measureLayout(e,t,o,s){n(e,t,s)},updateView(e,t){for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var n=t[s];switch(s){case'style':(0,o.default)(e,n);break;case'class':case'className':e.setAttribute('class',n);break;case'text':case'value':e.value=n;break;default:e.setAttribute(s,n)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}}},152,[153,154]);
194__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=t=>{if(null!=t&&(1===t.nodeType&&'function'==typeof t.getBoundingClientRect))return t.getBoundingClientRect()}},153,[]);
195__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};var f=function(e,t){var f=e.style;for(var o in t)if(t.hasOwnProperty(o)){var u=0===o.indexOf('--'),l=(0,n.default)(o,t[o],u);'float'===o&&(o='cssFloat'),u?f.setProperty(o,l):f[o]=l}}},154,[155]);
196__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e};var n=function(e,t,n){return null==t||'boolean'==typeof t||''===t?'':n||'number'!=typeof t||0===t||u.default.hasOwnProperty(e)&&u.default[e]?(''+t).trim():t+'px'}},155,[156]);
197__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var t={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},o=['ms','Moz','O','Webkit'],l=(t,o)=>t+o.charAt(0).toUpperCase()+o.substring(1);Object.keys(t).forEach(n=>{o.forEach(o=>{t[l(o,n)]=t[n]})});var n=t},156,[]);
198__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}}),r(d[0]);
198var e,t=r(d[1]),s=(e=t)&&e.__esModule?e:{default:e};function i(e){const t=n.pickScale(e.scales,s.default.get()),i=1===t?'':'@'+t+'x',c=e.type?`.${e.type}`:'';return e.httpServerLocation.replace(/\.\.\//g,'_')+'/'+e.name+i+c}class n{constructor(e,t,s){this.serverUrl=e||'https://expo.dev',this.jsbundleUrl=null,this.asset=s}isLoadedFromServer(){return!0}isLoadedFromFileSystem(){return!1}defaultAsset(){return this.assetServerURL()}assetServerURL(){const e=new URL(i(this.asset),this.serverUrl);return e.searchParams.set('platform',"web"),e.searchParams.set('hash',this.asset.hash),this.fromSource(e.toString().replace(e.origin,''))}fromSource(e){return{__packager_asset:!0,width:this.asset.width??void 0,height:this.asset.height??void 0,uri:e,scale:n.pickScale(this.asset.scales,s.default.get())}}static pickScale(e,t){for(let s=0;s<e.length;s++)if(e[s]>=t)return e[s];return e[e.length-1]||1}}},157,[99,149]);
199__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"IS_ENV_WITH_LOCAL_ASSETS",{enumerable:!0,get:function(){return t}}),e.getLocalAssets=function(){return{}},e.getManifest2=function(){return{}},Object.defineProperty(e,"manifestBaseUrl",{enumerable:!0,get:function(){return n}});const t=!1;const n=null},158,[]);
200__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const{pathname:s,searchParams:o}=new URL(t,'https://e');return n(s)}function n(t){return t.substring(t.lastIndexOf('/')+1)}Object.defineProperty(e,'__esModule',{value:!0}),e.getFilename=t,e.getFileExtension=function(n){const s=t(n),o=s.lastIndexOf('.');return o>0?s.substring(o):''},e.getManifestBaseUrl=function(t){const n=new URL(t);let s=n.protocol;'exp:'===s?s='http:':'exps:'===s&&(s='https:');n.protocol=s;const o=n.pathname.substring(0,n.pathname.lastIndexOf('/')+1);return n.pathname=o,n.search='',n.hash='',n.protocol!==s?n.href.replace(n.protocol,s):n.href}},159,[]);
201__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.downloadAsync=async function(n,t,c){return n}},160,[]);
202__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isImageType=function(n){return/^(jpeg|jpg|gif|png|bmp|webp|heic)$/i.test(n)},e.getImageInfoAsync=function(t){if('undefined'==typeof window)return Promise.resolve({name:(0,n.getFilename)(t),width:0,height:0});return new Promise((o,u)=>{const s=new Image;s.onerror=u,s.onload=()=>{o({name:(0,n.getFilename)(t),width:s.naturalWidth,height:s.naturalHeight})},s.src=t})};var n=r(d[0])},161,[159]);
203__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getLocalAssetUri=function(t,n){return null}},162,[]);
204__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}}),_e.setCustomSourceTransformer=c,Object.defineProperty(_e,"pickScale",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=r(d[1]),u=(e=n)&&e.__esModule?e:{default:e};let o;function c(e){o=e}function f(e){if('object'==typeof e)return e;const n=(0,t.getAssetByID)(e);if(!n)return null;const c=new u.default('https://expo.dev',null,n);return o?o(c):c.defaultAsset()}Object.defineProperty(f,'setCustomSourceTransformer',{get:()=>c});var s=f;const{pickScale:l}=u.default},163,[147,157]);
205__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useAssets=function(u){const[c,n]=(0,t.useState)(),[o,f]=(0,t.useState)();return(0,t.useEffect)(()=>{s.Asset.loadAsync(u).then(n).catch(f)},[]),[c,o]};var t=r(d[0]),s=r(d[1])},164,[34,146]);
206__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"loadPromises",{enumerable:!0,get:function(){return o}}),_e.markLoaded=function(e){u[e]=!0},_e.isLoadedInCache=c,_e.isLoadedNative=function(e){if(c(e))return!0;{const n=t.default.getLoadedFonts();return!!n?.length&&(n.forEach(e=>{u[e]=!0}),e in u)}},_e.purgeFontFamilyFromCache=function(e){delete u[e]},_e.purgeCache=function(){u={}};
206var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e};const o={};let u={};function c(e){return e in u}},165,[140]);
207__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getServerResources=function(){if(!n.default.getServerResources)throw new t.UnavailabilityError('expo-font','getServerResources');return n.default.getServerResources()},_e.resetServerContext=function(){if(!n.default.resetServerContext)throw new t.UnavailabilityError('expo-font','resetServerContext');return n.default.resetServerContext()},_e.registerStaticFont=function(e,o){if(!o)throw new t.CodedError("ERR_FONT_SOURCE",`Cannot load null or undefined font source: { "${e}": ${o} }. Expected asset of type \`FontSource\` for fontFamily of name: "${e}"`);const n=(0,s.getAssetForSource)(o);(0,s.loadSingleFontAsync)(e,n)};var e,t=r(d[0]),o=r(d[1]),n=(e=o)&&e.__esModule?e:{default:e},s=r(d[2])},166,[99,140,143]);
208__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.renderToImageAsync=async function(e,c){if(!t.default)throw new o.UnavailabilityError('expo-font','ExpoFontUtils.renderToImageAsync');return await t.default.renderToImageAsync(e,Object.assign({},c,{color:c?.color?(0,n.default)(c.color):void 0}))};var o=r(d[0]),n=e(r(d[1])),t=e(r(d[2]))},167,[99,50,168]);
209__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var t=r(d[0]);class n extends t.NativeModule{async renderToImageAsync(n,o){throw new t.UnavailabilityError('expo-font','renderToImageAsync')}}var o=(0,t.registerWebModule)(n,'ExpoFontUtils')},168,[99]);
210__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useFonts",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);function u(t){return'string'==typeof t?(0,n.isLoaded)(t):Object.keys(t).every(t=>(0,n.isLoaded)(t))}const o='undefined'==typeof window?function(t){return(0,n.loadAsync)(t),[!0,null]}:function(o){const[c,s]=(0,t.useState)(u(o)),[f,l]=(0,t.useState)(null);return(0,t.useEffect)(()=>{let t=!0;return(0,n.loadAsync)(o).then(()=>{t&&s(!0)}).catch(n=>{t&&l(n)}),()=>{t=!1}},[]),[c,f]}},169,[34,98]);
211__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"StatusBar",{enumerable:!0,get:function(){return t.StatusBar}}),Object.defineProperty(e,"setStatusBarStyle",{enumerable:!0,get:function(){return t.setStatusBarStyle}}),Object.defineProperty(e,"setStatusBarHidden",{enumerable:!0,get:function(){return t.setStatusBarHidden}}
211),Object.defineProperty(e,"setStatusBarBackgroundColor",{enumerable:!0,get:function(){return t.setStatusBarBackgroundColor}}),Object.defineProperty(e,"setStatusBarNetworkActivityIndicatorVisible",{enumerable:!0,get:function(){return t.setStatusBarNetworkActivityIndicatorVisible}}),Object.defineProperty(e,"setStatusBarTranslucent",{enumerable:!0,get:function(){return t.setStatusBarTranslucent}}),Object.defineProperty(e,"StatusBarStyle",{enumerable:!0,get:function(){return n.StatusBarStyle}}),Object.defineProperty(e,"StatusBarAnimation",{enumerable:!0,get:function(){return n.StatusBarAnimation}}),Object.defineProperty(e,"StatusBarProps",{enumerable:!0,get:function(){return n.StatusBarProps}});var t=r(d[0]),n=r(d[1])},170,[171,177]);
212__d(function(g,r,i,a,m,_e,d){"use strict";const t=["style","hideTransitionAnimation","translucent","backgroundColor"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.StatusBar=function(e){let{style:u,hideTransitionAnimation:h,translucent:k=!0,backgroundColor:S}=e,B=(0,n.default)(e,t);const b=(0,s.default)(),y=o.default.useMemo(()=>f(u,b),[u,b]);let v=S;k&&!v&&(v='transparent');return(0,c.jsx)(l.default,Object.assign({},B,{translucent:k,barStyle:y,backgroundColor:v,showHideTransition:'none'===h?void 0:h}))},_e.setStatusBarStyle=function(t,e){l.default.setBarStyle(f(t),e)},_e.setStatusBarHidden=function(t,e){l.default.setHidden(t,e)}
212,_e.setStatusBarBackgroundColor=function(t,e){l.default.setBackgroundColor(t,e)},_e.setStatusBarNetworkActivityIndicatorVisible=function(t){l.default.setNetworkActivityIndicatorVisible(t)},_e.setStatusBarTranslucent=function(t){l.default.setTranslucent(t)};var n=e(r(d[0])),o=e(r(d[1])),u=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),c=r(d[5]);function f(t="auto",e=u.default?.getColorScheme()??'light'){e||(e='light');let n=t;return'auto'===t?n='light'===e?'dark':'light':'inverted'===t&&(n='light'===e?'light':'dark'),'light'===n?'light-content':'dark-content'}},171,[129,34,172,173,174,175]);
213__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]);var n=((e=t)&&e.__esModule?e:{default:e}).default&&null!=window.matchMedia?window.matchMedia('(prefers-color-scheme: dark)'):null,l=new WeakMap,o={getColorScheme:()=>n&&n.matches?'dark':'light',addChangeListener(e){var t=l.get(e);return t||(t=t=>{var n=t.matches;e({colorScheme:n?'dark':'light'})},l.set(e,t)),n&&n.addListener(t),{remove:function(){var t=l.get(e);n&&t&&n.removeListener(t),l.delete(e)}}}}},172,[39]);
214__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return u}});var t=()=>{};function n(){return null}n.setBackgroundColor=t,n.setBarStyle=t,n.setHidden=t,n.setNetworkActivityIndicatorVisible=t,n.setTranslucent=t;var u=n},173,[]);
215__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=r(_d[1]),u=(e=n)&&e.__esModule?e:{default:e};function o(){var e=t.useState(u.default.getColorScheme()),n=e[0],o=e[1];return t.useEffect(()=>u.default.addChangeListener(function(e){o(e.colorScheme)}).remove),n}},174,[34,172]);
216__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},175,[176]);
217__d(function(g,r,i,a,m,e,d){
218/**
219   * @license React
220   * react-jsx-runtime.production.js
221   *
222   * Copyright (c) Meta Platforms, Inc. and affiliates.
223   *
224   * This source code is licensed under the MIT license found in the
225   * LICENSE file in the root directory of this source tree.
226   */
227"use strict";var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(t,o,f){var l=null;if(void 0!==f&&(l=""+f),void 0!==o.key&&(l=""+o.key),"key"in o)for(var y in f={},o)"key"!==y&&(f[y]=o[y]);else f=o;return o=f.ref,{$$typeof:n,type:t,key:l,ref:void 0!==o?o:null,props:f}}e.Fragment=t,e.jsx=o,e.jsxs=o},176,[]);
228__d(function(g,r,i,a,m,e,d){},177,[]);
229__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})},178,[179]);
230__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ActionCodeOperation",{enumerable:!0,get:function(){return t.A}}),Object.defineProperty(e,"ActionCodeURL",{enumerable:!0,get:function(){return t.aj}}),Object.defineProperty(e,"AuthCredential",{enumerable:!0,get:function(){return t.M}}),Object.defineProperty(e,"AuthErrorCodes",{enumerable:!0,get:function(){return t.J}}),Object.defineProperty(e,"EmailAuthCredential",{enumerable:!0,get:function(){return t.N}}),Object.defineProperty(e,"EmailAuthProvider",{enumerable:!0,get:function(){return t.W}}),Object.defineProperty(e,"FacebookAuthProvider",{enumerable:!0,get:function(){return t.X}}),Object.defineProperty(e,"FactorId",{enumerable:!0,get:function(){return t.F}}),Object.defineProperty(e,"GithubAuthProvider",{enumerable:!0,get:function(){return t.Z}}),Object.defineProperty(e,"GoogleAuthProvider",{enumerable:!0,get:function(){return t.Y}}),Object.defineProperty(e,"OAuthCredential",{enumerable:!0,get:function(){return t.Q}}),Object.defineProperty(e,"OAuthProvider",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(e,"OperationType",{enumerable:!0,get:function(){return t.O}}),Object.defineProperty(e,"PhoneAuthCredential",{enumerable:!0,get:function(){return t.U}}),Object.defineProperty(e,"PhoneAuthProvider",{enumerable:!0,get:function(){return t.P}}),Object.defineProperty(e,"PhoneMultiFactorGenerator",{enumerable:!0,get:function(){return t.n}}),Object.defineProperty(e,"ProviderId",{enumerable:!0,get:function(){return t.q}}),Object.defineProperty(e,"RecaptchaVerifier",{enumerable:!0,get:function(){return t.R}}),Object.defineProperty(e,"SAMLAuthProvider",{enumerable:!0,get:function(){return t.$}}),Object.defineProperty(e,"SignInMethod",{enumerable:!0,get:function(){return t.S}}),Object.defineProperty(e,"TotpMultiFactorGenerator",{enumerable:!0,get:function(){return t.T}}),Object.defineProperty(e,"TotpSecret",{enumerable:!0,get:function(){return t.o}}),Object.defineProperty(e,"TwitterAuthProvider",{enumerable:!0,get:function(){return t.a0}}),Object.defineProperty(e,"applyActionCode",{enumerable:!0,get:function(){return t.a8}}),Object.defineProperty(e,"beforeAuthStateChanged",{enumerable:!0,get:function(){return t.y}}),Object.defineProperty(e,"browserCookiePersistence",{enumerable:!0,get:function(){return t.a}}),Object.defineProperty(e,"browserLocalPersistence",{enumerable:!0,get:function(){return t.b}}),Object.defineProperty(e,"browserPopupRedirectResolver",{enumerable:!0,get:function(){return t.m}}),Object.defineProperty(e,"browserSessionPersistence",{enumerable:!0,get:function(){return t.c}}),Object.defineProperty(e,"checkActionCode",{enumerable:!0,get:function(){return t.a9}}),Object.defineProperty(e,"confirmPasswordReset",{enumerable:!0,get:function(){return t.a7}}),Object.defineProperty(e,"connectAuthEmulator",{enumerable:!0,get:function(){return t.L}}),Object.defineProperty(e,"createUserWithEmailAndPassword",{enumerable:!0,get:function(){return t.ab}}
230),Object.defineProperty(e,"debugErrorMap",{enumerable:!0,get:function(){return t.H}}),Object.defineProperty(e,"deleteUser",{enumerable:!0,get:function(){return t.G}}),Object.defineProperty(e,"fetchSignInMethodsForEmail",{enumerable:!0,get:function(){return t.ag}}),Object.defineProperty(e,"getAdditionalUserInfo",{enumerable:!0,get:function(){return t.ar}}),Object.defineProperty(e,"getAuth",{enumerable:!0,get:function(){return t.p}}),Object.defineProperty(e,"getIdToken",{enumerable:!0,get:function(){return t.ao}}),Object.defineProperty(e,"getIdTokenResult",{enumerable:!0,get:function(){return t.ap}}),Object.defineProperty(e,"getMultiFactorResolver",{enumerable:!0,get:function(){return t.at}}),Object.defineProperty(e,"getRedirectResult",{enumerable:!0,get:function(){return t.k}}),Object.defineProperty(e,"inMemoryPersistence",{enumerable:!0,get:function(){return t.V}}),Object.defineProperty(e,"indexedDBLocalPersistence",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(e,"initializeAuth",{enumerable:!0,get:function(){return t.K}}),Object.defineProperty(e,"initializeRecaptchaConfig",{enumerable:!0,get:function(){return t.v}}),Object.defineProperty(e,"isSignInWithEmailLink",{enumerable:!0,get:function(){return t.ae}}),Object.defineProperty(e,"linkWithCredential",{enumerable:!0,get:function(){return t.a3}}),Object.defineProperty(e,"linkWithPhoneNumber",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(e,"linkWithPopup",{enumerable:!0,get:function(){return t.e}}),Object.defineProperty(e,"linkWithRedirect",{enumerable:!0,get:function(){return t.h}}),Object.defineProperty(e,"multiFactor",{enumerable:!0,get:function(){return t.au}}),Object.defineProperty(e,"onAuthStateChanged",{enumerable:!0,get:function(){return t.z}}),Object.defineProperty(e,"onIdTokenChanged",{enumerable:!0,get:function(){return t.x}}),Object.defineProperty(e,"parseActionCodeURL",{enumerable:!0,get:function(){return t.ak}}),Object.defineProperty(e,"prodErrorMap",{enumerable:!0,get:function(){return t.I}}),Object.defineProperty(e,"reauthenticateWithCredential",{enumerable:!0,get:function(){return t.a4}}),Object.defineProperty(e,"reauthenticateWithPhoneNumber",{enumerable:!0,get:function(){return t.r}}),Object.defineProperty(e,"reauthenticateWithPopup",{enumerable:!0,get:function(){return t.f}}),Object.defineProperty(e,"reauthenticateWithRedirect",{enumerable:!0,get:function(){return t.j}}),Object.defineProperty(e,"reload",{enumerable:!0,get:function(){return t.as}}),Object.defineProperty(e,"revokeAccessToken",{enumerable:!0,get:function(){return t.E}}),Object.defineProperty(e,"sendEmailVerification",{enumerable:!0,get:function(){return t.ah}}),Object.defineProperty(e,"sendPasswordResetEmail",{enumerable:!0,get:function(){return t.a6}}),Object.defineProperty(e,"sendSignInLinkToEmail",{enumerable:!0,get:function(){return t.ad}}),Object.defineProperty(e,"setPersistence",{enumerable:!0,get:function(){return t.t}}),Object.defineProperty(e,"signInAnonymously",{enumerable:!0,get:function(){return t.a1}}),Object.defineProperty(e,"signInWithCredential",{enumerable:!0,get:function(){return t.a2}}),Object.defineProperty(e,"signInWithCustomToken",{enumerable:!0,get:function(){return t.a5}}),Object.defineProperty(e,"signInWithEmailAndPassword",{enumerable:!0,get:function(){return t.ac}}),Object.defineProperty(e,"signInWithEmailLink",{enumerable:!0,get:function(){return t.af}}),Object.defineProperty(e,"signInWithPhoneNumber",{enumerable:!0,get:function(){return t.s}}),Object.defineProperty(e,"signInWithPopup",{enumerable:!0,get:function(){return t.d}}),Object.defineProperty(e,"signInWithRedirect",{enumerable:!0,get:function(){return t.g}}),Object.defineProperty(e,"signOut",{enumerable:!0,get:function(){return t.D}}),Object.defineProperty(e,"unlink",{enumerable:!0,get:function(){return t.aq}}),Object.defineProperty(e,"updateCurrentUser",{enumerable:!0,get:function(){return t.C}}),Object.defineProperty(e,"updateEmail",{enumerable:!0,get:function(){return t.am}}),Object.defineProperty(e,"updatePassword",{enumerable:!0,get:function(){return t.an}}),Object.defineProperty(e,"updatePhoneNumber",{enumerable:!0,get:function(){return t.u}}),Object.defineProperty(e,"updateProfile",{enumerable:!0,get:function(){return t.al}}),Object.defineProperty(e,"useDeviceLanguage",{enumerable:!0,get:function(){return t.B}}),Object.defineProperty(e,"validatePassword",{enumerable:!0,get:function(){return t.w}}),Object.defineProperty(e,"verifyBeforeUpdateEmail",{enumerable:!0,get:function(){return t.ai}}),Object.defineProperty(e,"verifyPasswordResetCode",{enumerable:!0,get:function(){return t.aa}});var t=r(d[0]);r(d[1]),r(d[2]),r(d[3]),r(d[4])},179,[180,181,183,185,182]);
231__d(function(e,t,n,r,i,s,o){"use strict";const a=["providerId"],c=["uid","auth","stsTokenManager"],u=["providerId","signInMethod"];Object.defineProperty(s,'__esModule',{value:!0}),Object.defineProperty(s,"$",{enumerable:!0,get:function(){return nn}}),Object.defineProperty(s,"A",{enumerable:!0,get:function(){return T}}),Object.defineProperty(s,"B",{enumerable:!0,get:function(){return or}}),Object.defineProperty(s,"C",{enumerable:!0,get:function(){return ar}}),Object.defineProperty(s,"D",{enumerable:!0,get:function(){return cr}}),Object.defineProperty(s,"E",{enumerable:!0,get:function(){return ur}}),Object.defineProperty(s,"F",{enumerable:!0,get:function(){return I}}),Object.defineProperty(s,"G",{enumerable:!0,get:function(){return dr}}),Object.defineProperty(s,"H",{enumerable:!0,get:function(){return w}}),Object.defineProperty(s,"I",{enumerable:!0,get:function(){return b}}),Object.defineProperty(s,"J",{enumerable:!0,get:function(){return A}}),Object.defineProperty(s,"K",{enumerable:!0,get:function(){return mt}}),Object.defineProperty(s,"L",{enumerable:!0,get:function(){return It}}),Object.defineProperty(s,"M",{enumerable:!0,get:function(){return Et}}),Object.defineProperty(s,"N",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(s,"O",{enumerable:!0,get:function(){return v}}),Object.defineProperty(s,"P",{enumerable:!0,get:function(){return mi}}),Object.defineProperty(s,"Q",{enumerable:!0,get:function(){return jt}}),Object.defineProperty(s,"R",{enumerable:!0,get:function(){return oi}}),Object.defineProperty(s,"S",{enumerable:!0,get:function(){return y}}),Object.defineProperty(s,"T",{enumerable:!0,get:function(){return bs}}),Object.defineProperty(s,"U",{enumerable:!0,get:function(){return Wt}}),Object.defineProperty(s,"V",{enumerable:!0,get:function(){return De}}),Object.defineProperty(s,"W",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(s,"X",{enumerable:!0,get:function(){return Qt}}),Object.defineProperty(s,"Y",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(s,"Z",{enumerable:!0,get:function(){return en}}),Object.defineProperty(s,"_",{enumerable:!0,get:function(){return Xt}}),Object.defineProperty(s,"a",{enumerable:!0,get:function(){return Sr}}),Object.defineProperty(s,"a0",{enumerable:!0,get:function(){return rn}}),Object.defineProperty(s,"a1",{enumerable:!0,get:function(){return cn}}),Object.defineProperty(s,"a2",{enumerable:!0,get:function(){return In}}),Object.defineProperty(s,"a3",{enumerable:!0,get:function(){return _n}}),Object.defineProperty(s,"a4",{enumerable:!0,get:function(){return yn}}),Object.defineProperty(s,"a5",{enumerable:!0,get:function(){return Tn}}),Object.defineProperty(s,"a6",{enumerable:!0,get:function(){return Sn}}),Object.defineProperty(s,"a7",{enumerable:!0,get:function(){return On}}),Object.defineProperty(s,"a8",{enumerable:!0,get:function(){return kn}}),Object.defineProperty(s,"a9",{enumerable:!0,get:function(){return Rn}}),Object.defineProperty(s,"aA",{enumerable:!0,get:function(){return Ji}}),Object.defineProperty(s,"aB",{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(s,"aC",{enumerable:!0,get:function(){return N}}),Object.defineProperty(s,"aD",{enumerable:!0,get:function(){return U}}),Object.defineProperty(s,"aE",{enumerable:!0,get:function(){return Gi}}),Object.defineProperty(s,"aF",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(s,"aG",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(s,"aH",{enumerable:!0,get:function(){return Wi}}),Object.defineProperty(s,"aI",{enumerable:!0,get:function(){return Di}}),Object.defineProperty(s,"aJ",{enumerable:!0,get:function(){return Ci}}),Object.defineProperty(s,"aK",{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(s,"aL",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(s,"aM",{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(s,"aN",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(s,"aO",{enumerable:!0,get:function(){return Cr}}
231),Object.defineProperty(s,"aP",{enumerable:!0,get:function(){return ls}}),Object.defineProperty(s,"aQ",{enumerable:!0,get:function(){return G}}),Object.defineProperty(s,"aR",{enumerable:!0,get:function(){return tn}}),Object.defineProperty(s,"aa",{enumerable:!0,get:function(){return Nn}}),Object.defineProperty(s,"ab",{enumerable:!0,get:function(){return Cn}}),Object.defineProperty(s,"ac",{enumerable:!0,get:function(){return Dn}}),Object.defineProperty(s,"ad",{enumerable:!0,get:function(){return Ln}}),Object.defineProperty(s,"ae",{enumerable:!0,get:function(){return Mn}}),Object.defineProperty(s,"af",{enumerable:!0,get:function(){return Un}}),Object.defineProperty(s,"ag",{enumerable:!0,get:function(){return Fn}}),Object.defineProperty(s,"ah",{enumerable:!0,get:function(){return Vn}}),Object.defineProperty(s,"ai",{enumerable:!0,get:function(){return xn}}),Object.defineProperty(s,"aj",{enumerable:!0,get:function(){return Kt}}),Object.defineProperty(s,"ak",{enumerable:!0,get:function(){return $t}}),Object.defineProperty(s,"al",{enumerable:!0,get:function(){return qn}}),Object.defineProperty(s,"am",{enumerable:!0,get:function(){return Wn}}),Object.defineProperty(s,"an",{enumerable:!0,get:function(){return zn}}),Object.defineProperty(s,"ao",{enumerable:!0,get:function(){return he}}),Object.defineProperty(s,"ap",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(s,"aq",{enumerable:!0,get:function(){return hn}}),Object.defineProperty(s,"ar",{enumerable:!0,get:function(){return Zn}}),Object.defineProperty(s,"as",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(s,"at",{enumerable:!0,get:function(){return pr}}),Object.defineProperty(s,"au",{enumerable:!0,get:function(){return yr}}),Object.defineProperty(s,"av",{enumerable:!0,get:function(){return F}}),Object.defineProperty(s,"aw",{enumerable:!0,get:function(){return ze}}),Object.defineProperty(s,"ax",{enumerable:!0,get:function(){return He}}),Object.defineProperty(s,"ay",{enumerable:!0,get:function(){return R}}),Object.defineProperty(s,"az",{enumerable:!0,get:function(){return Is}}),Object.defineProperty(s,"b",{enumerable:!0,get:function(){return wr}}),Object.defineProperty(s,"c",{enumerable:!0,get:function(){return kr}}),Object.defineProperty(s,"d",{enumerable:!0,get:function(){return wi}}),Object.defineProperty(s,"e",{enumerable:!0,get:function(){return Pi}}),Object.defineProperty(s,"f",{enumerable:!0,get:function(){return bi}}),Object.defineProperty(s,"g",{enumerable:!0,get:function(){return Ui}}),Object.defineProperty(s,"h",{enumerable:!0,get:function(){return xi}}),Object.defineProperty(s,"i",{enumerable:!0,get:function(){return Jr}}),Object.defineProperty(s,"j",{enumerable:!0,get:function(){return Fi}}),Object.defineProperty(s,"k",{enumerable:!0,get:function(){return qi}}),Object.defineProperty(s,"l",{enumerable:!0,get:function(){return di}}),Object.defineProperty(s,"m",{enumerable:!0,get:function(){return vs}}),Object.defineProperty(s,"n",{enumerable:!0,get:function(){return ws}}),Object.defineProperty(s,"o",{enumerable:!0,get:function(){return As}}),Object.defineProperty(s,"p",{enumerable:!0,get:function(){return Ms}}),Object.defineProperty(s,"q",{enumerable:!0,get:function(){return _}}),Object.defineProperty(s,"r",{enumerable:!0,get:function(){return li}}),Object.defineProperty(s,"s",{enumerable:!0,get:function(){return ui}}),Object.defineProperty(s,"t",{enumerable:!0,get:function(){return er}}),Object.defineProperty(s,"u",{enumerable:!0,get:function(){return pi}}),Object.defineProperty(s,"v",{enumerable:!0,get:function(){return tr}}),Object.defineProperty(s,"w",{enumerable:!0,get:function(){return nr}}),Object.defineProperty(s,"x",{enumerable:!0,get:function(){return rr}}),Object.defineProperty(s,"y",{enumerable:!0,get:function(){return ir}}),Object.defineProperty(s,"z",{enumerable:!0,get:function(){return sr}});var d,l=t(o[0]),h=(d=l)&&d.__esModule?d:{default:d},p=t(o[1]),f=t(o[2]),m=t(o[3]),g=t(o[4]);
232/**
233   * @license
234   * Copyright 2021 Google LLC
235   *
236   * Licensed under the Apache License, Version 2.0 (the "License");
237   * you may not use this file except in compliance with the License.
238   * You may obtain a copy of the License at
239   *
240   *   http://www.apache.org/licenses/LICENSE-2.0
241   *
242   * Unless required by applicable law or agreed to in writing, softw
242are
243   * distributed under the License is distributed on an "AS IS" BASIS,
244   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
245   * See the License for the specific language governing permissions and
246   * limitations under the License.
247   */
248const I={PHONE:'phone',TOTP:'totp'},_={FACEBOOK:'facebook.com',GITHUB:'github.com',GOOGLE:'google.com',PASSWORD:'password',PHONE:'phone',TWITTER:'twitter.com'},y={EMAIL_LINK:'emailLink',EMAIL_PASSWORD:'password',FACEBOOK:'facebook.com',GITHUB:'github.com',GOOGLE:'google.com',PHONE:'phone',TWITTER:'twitter.com'},v={LINK:'link',REAUTHENTICATE:'reauthenticate',SIGN_IN:'signIn'},T={EMAIL_SIGNIN:'EMAIL_SIGNIN',PASSWORD_RESET:'PASSWORD_RESET',RECOVER_EMAIL:'RECOVER_EMAIL',REVERT_SECOND_FACTOR_ADDITION:'REVERT_SECOND_FACTOR_ADDITION',VERIFY_AND_CHANGE_EMAIL:'VERIFY_AND_CHANGE_EMAIL',VERIFY_EMAIL:'VERIFY_EMAIL'};function E(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const w=
249/**
250   * @license
251   * Copyright 2020 Google LLC
252   *
253   * Licensed under the Apache License, Version 2.0 (the "License");
254   * you may not use this file except in compliance with the License.
255   * You may obtain a copy of the License at
256   *
257   *   http://www.apache.org/licenses/LICENSE-2.0
258   *
259   * Unless required by applicable law or agreed to in writing, software
260   * distributed under the License is distributed on an "AS IS" BASIS,
261   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
262   * See the License for the specific language governing permissions and
263   * limitations under the License.
264   */
265function(){return{"admin-restricted-operation":'This operation is restricted to administrators only.',"argument-error":'',"app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":'Cordova framework is not ready.',"cors-unsupported":'This browser is not supported.',"credential-already-in-use":'This credential is already associated with a different user account.',"custom-token-mismatch":'The custom token corresponds to a different audience.',"requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":'Multi-factor users must al
265ways have a verified email.',"email-already-in-use":'The email address is already in use by another account.',"emulator-config-failed":"Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling \"connectAuthEmulator()\" sooner.","expired-action-code":'The action code has expired.',"cancelled-popup-request":'This operation has been cancelled due to another conflicting popup being opened.',"internal-error":'An internal AuthError has occurred.',"invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":'The mobile app identifier is not registered for the current project.',"invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":'An internal AuthError has occurred.',"invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":'The continue URL provided in the request is invalid.',"invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":'The custom token format is incorrect. Please check the documentation.',"invalid-dynamic-link-domain":'The provided dynamic link domain is not configured or authorized for the current project.',"invali
265d-email":'The email address is badly formatted.',"invalid-emulator-scheme":'Emulator URL must start with a valid scheme (http:// or https://).',"invalid-api-key":'Your API key is invalid, please check you have copied it correctly.',"invalid-cert-hash":'The SHA-1 certificate hash provided is invalid.',"invalid-credential":'The supplied auth credential is incorrect, malformed or has expired.',"invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":'The request does not contain a valid proof of first factor successful sign-in.',"invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":'The password is invalid or the user does not have a password.',"invalid-persistence-type":'The specified persistence type is invalid. It can only be local, session or none.',"invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":'The specified provider ID is invali
265d.',"invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":'The verification ID used to create the phone auth credential is invalid.',"invalid-tenant-id":"The Auth instance's tenant ID is invalid.","login-blocked":'Login blocked by user-provided method: {$originalMessage}',"missing-android-pkg-name":'An Android Package Name must be provided if the Android App is required to be installed.',"auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":'The phone auth credential was created with an empty SMS verification code.',"missing-continue-uri":'A continue URL must be provided in the request.',"missing-iframe-start":'An internal AuthError has occurred.',"missing-ios-bundle-id":'An iOS Bundle ID must be provided if an App Store ID is provided.',"missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-password":'A non-empty password must be provided',"missing-multi-factor-info":'No second factor identifier is provided.',"missing-multi-factor-session":'The request is missing proof of first factor successful sign-in.',"missing-phone-number":'To send verification codes, provide a phone number for the recipient.',"missing-verification-id":'The phone auth credential was created with an empty verification ID.',"app-deleted":'This instance of FirebaseApp has been deleted.',"multi-factor-info-not-found":'The user does not have a second factor matching the identifier provided.',"multi-factor-auth-required":'Proof of ownership of a second factor is required to complete sign-in.',"account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":'A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.',"no-auth-event":'An internal AuthError has occurred.',"no-such-provider":'User was not linked to an account with the given provider.',"null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":"This operation is not supported in the environment this application is running on. \"location.protocol\" must be http, https or chrome-extension and web storage must be enabled.","popup-blocked":'Unable to establish a connection with the popup. It may have been blocked by the browser.',"popup-closed-by-user":'The popup has been closed by the user before finalizing the operation.',"provider-already-linked":'User can only be linked to one identity for the given provider.',"quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":'The redirect operation has been cancelled by the user before finalizing.',"redirect-operation-pending":'A redirect sign-in operation is already pending.',"rejected-credential":'The request contains malformed or mismatching credentials.',"second-factor-already-in-use":'The second factor is already enrolled on this account.',"maximum-second-factor-count-exceeded":'The maximum allowed number of second factors on a user has been exceeded.',"tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:'The operation has timed out.',"user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":'Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.',"unsupported-persistence-type":'The current environment does not support the specified persistence type.',"unsupported-tenant-operation":'This operation is not supported in a multi-tenant context.',"unverified-email":'The operation requires a verified email.',"user-cancelled":'The user did not grant your application the permissions it requested.',"user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":'The user account has been disabled by an administrator.',"user-mismatch":'The supplied credentials do not correspond to the previously signed in user.',"user-signed-out":'',"weak-password":'The password must be 6 characters long or more.',"web-storage-unsupported":'This browser is not supported or 3rd party cookies and data may be disabled.',"already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.","missing-rec
265aptcha-token":'The reCAPTCHA token is missing when sending request to the backend.',"invalid-recaptcha-token":'The reCAPTCHA token is invalid when sending request to the backend.',"invalid-recaptcha-action":'The reCAPTCHA action is invalid when sending request to the backend.',"recaptcha-not-enabled":'reCAPTCHA Enterprise integration is not enabled for this project.',"missing-client-type":'The reCAPTCHA client type is missing when sending request to the backend.',"missing-recaptcha-version":'The reCAPTCHA version is missing when sending request to the backend.',"invalid-req-type":'Invalid request parameters.',"invalid-recaptcha-version":'The reCAPTCHA version is invalid when sending request to the backend.',"unsupported-password-policy-schema-version":'The password policy received from the backend uses a schema version that is not supported by this version of the Firebase SDK.',"password-does-not-meet-requirements":'The password does not meet the requirements.',"invalid-hosting-link-domain":"The provided Hosting link domain is not configured in Firebase Hosting or is not owned by the current project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`)."}},b=E,P=new f.ErrorFactory('auth','Firebase',{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),A={ADMIN_ONLY_OPERATION:'auth/admin-restricted-operation',ARGUMENT_ERROR:'auth/argument-error',APP_NOT_AUTHORIZED:'auth/app-not-authorized',APP_NOT_INSTALLED:'auth/app-not-installed',CAPTCHA_CHECK_FAILED:'auth/captcha-check-failed',CODE_EXPIRED:'auth/code-expired',CORDOVA_NOT_READY:'auth/cordova-not-ready',CORS_UNSUPPORTED:'auth/cors-unsupported',CREDENTIAL_ALREADY_IN_USE:'auth/credential-already-in-use',CREDENTIAL_MISMATCH:'auth/custom-token-mismatch',CREDENTIAL_TOO_OLD_LOGIN_AGAIN:'auth/requires-recent-login',DEPENDENT_SDK_INIT_BEFORE_AUTH:'auth/dependent-sdk-initialized-before-auth',DYNAMIC_LINK_NOT_ACTIVATED:'auth/dynamic-link-not-activated',EMAIL_CHANGE_NEEDS_VERIFICATION:'auth/email-change-needs-verification',EMAIL_EXISTS:'auth/email-already-in-use',EMULATOR_CONFIG_FAILED:'auth/emulator-config-failed',EXPIRED_OOB_CODE:'auth/expired-action-code',EXPIRED_POPUP_REQUEST:'auth/cancelled-popup-request',INTERNAL_ERROR:'auth/internal-error',INVALID_API_KEY:'auth/invalid-api-key',INVALID_APP_CREDENTIAL:'auth/invalid-app-credential',INVALID_APP_ID:'auth/invalid-app-id',INVALID_AUTH:'auth/invalid-user-token',INVALID_AUTH_EVENT:'auth/invalid-auth-event',INVALID_CERT_HASH:'auth/invalid-cert-hash',INVALID_CODE:'auth/invalid-verification-code',INVALID_CONTINUE_URI:'auth/invalid-continue-uri',INVALID_CORDOVA_CONFIGURATION:'auth/invalid-cordova-configuration',INVALID_CUSTOM_TOKEN:'auth/invalid-custom-token',INVALID_DYNAMIC_LINK_DOMAIN:'auth/invalid-dynamic-link-domain',INVALID_EMAIL:'auth/invalid-email',INVALID_EMULATOR_SCHEME:'auth/invalid-emulator-scheme',INVALID_IDP_RESPONSE:'auth/invalid-credential',INVALID_LOGIN_CREDENTIALS:'auth/invalid-credential',INVALID_MESSAGE_PAYLOAD:'auth/invalid-message-payload',INVALID_MFA_SESSION:'auth/invalid-multi-factor-session',INVALID_OAUTH_CLIENT_ID:'auth/invalid-oauth-client-id',INVALID_OAUTH_PROVIDER:'auth/invalid-oauth-provider',INVALID_OOB_CODE:'auth/invalid-action-code',INVALID_ORIGIN:'auth/unauthorized-domain',INVALID_PASSWORD:'auth/wrong-password',INVALID_PERSISTENCE:'auth/invalid-persistence-type',INVALID_PHONE_NUMBER:'auth/invalid-phone-number',INVALID_PROVIDER_ID:'auth/invalid-provider-id',INVALID_RECIPIENT_EMAIL:'auth/invalid-recipient-email',INVALID_SENDER:'auth/invalid-sender',INVALID_SESSION_INFO:'auth/invalid-verification-id',INVALID_TENANT_ID:'auth/invalid-tenant-id',MFA_INFO_NOT_FOUND:'auth/multi-factor-info-not-found',MFA_REQUIRED:'auth/multi-factor-auth-required',MISSING_ANDROID_PACKAGE_NAME:'auth/missing-android-pkg-name',MISSING_APP_CREDENTIAL:'auth/missing-app-credential',MISSING_AUTH_DOMAIN:'auth/auth-domain-config-required',MISSING_CODE:'auth/missing-verification-code',MISSING_CONTINUE_URI:'auth/missing-continue-uri',MISSING_IFRAME_START:'auth/missing-iframe-start',MISSING_IOS_BUNDLE_ID:'auth/missing-ios-bundle-id',MISSING_OR_INVALID_
265NONCE:'auth/missing-or-invalid-nonce',MISSING_MFA_INFO:'auth/missing-multi-factor-info',MISSING_MFA_SESSION:'auth/missing-multi-factor-session',MISSING_PHONE_NUMBER:'auth/missing-phone-number',MISSING_PASSWORD:'auth/missing-password',MISSING_SESSION_INFO:'auth/missing-verification-id',MODULE_DESTROYED:'auth/app-deleted',NEED_CONFIRMATION:'auth/account-exists-with-different-credential',NETWORK_REQUEST_FAILED:'auth/network-request-failed',NULL_USER:'auth/null-user',NO_AUTH_EVENT:'auth/no-auth-event',NO_SUCH_PROVIDER:'auth/no-such-provider',OPERATION_NOT_ALLOWED:'auth/operation-not-allowed',OPERATION_NOT_SUPPORTED:'auth/operation-not-supported-in-this-environment',POPUP_BLOCKED:'auth/popup-blocked',POPUP_CLOSED_BY_USER:'auth/popup-closed-by-user',PROVIDER_ALREADY_LINKED:'auth/provider-already-linked',QUOTA_EXCEEDED:'auth/quota-exceeded',REDIRECT_CANCELLED_BY_USER:'auth/redirect-cancelled-by-user',REDIRECT_OPERATION_PENDING:'auth/redirect-operation-pending',REJECTED_CREDENTIAL:'auth/rejected-credential',SECOND_FACTOR_ALREADY_ENROLLED:'auth/second-factor-already-in-use',SECOND_FACTOR_LIMIT_EXCEEDED:'auth/maximum-second-factor-count-exceeded',TENANT_ID_MISMATCH:'auth/tenant-id-mismatch',TIMEOUT:'auth/timeout',TOKEN_EXPIRED:'auth/user-token-expired',TOO_MANY_ATTEMPTS_TRY_LATER:'auth/too-many-requests',UNAUTHORIZED_DOMAIN:'auth/unauthorized-continue-uri',UNSUPPORTED_FIRST_FACTOR:'auth/unsupported-first-factor',UNSUPPORTED_PERSISTENCE:'auth/unsupported-persistence-type',UNSUPPORTED_TENANT_OPERATION:'auth/unsupported-tenant-operation',UNVERIFIED_EMAIL:'auth/unverified-email',USER_CANCELLED:'auth/user-cancelled',USER_DELETED:'auth/user-not-found',USER_DISABLED:'auth/user-disabled',USER_MISMATCH:'auth/user-mismatch',USER_SIGNED_OUT:'auth/user-signed-out',WEAK_PASSWORD:'auth/weak-password',WEB_STORAGE_UNSUPPORTED:'auth/web-storage-unsupported',ALREADY_INITIALIZED:'auth/already-initialized',RECAPTCHA_NOT_ENABLED:'auth/recaptcha-not-enabled',MISSING_RECAPTCHA_TOKEN:'auth/missing-recaptcha-token',INVALID_RECAPTCHA_TOKEN:'auth/invalid-recaptcha-token',INVALID_RECAPTCHA_ACTION:'auth/invalid-recaptcha-action',MISSING_CLIENT_TYPE:'auth/missing-client-type',MISSING_RECAPTCHA_VERSION:'auth/missing-recaptcha-version',INVALID_RECAPTCHA_VERSION:'auth/invalid-recaptcha-version',INVALID_REQ_TYPE:'auth/invalid-req-type',INVALID_HOSTING_LINK_DOMAIN:'auth/invalid-hosting-link-domain'},S=new m.Logger('@firebase/auth');function O(e,...t){S.logLevel<=m.LogLevel.WARN&&S.warn(`Auth (${p.SDK_VERSION}): ${e}`,...t)}function k(e,...t){S.logLevel<=m.LogLevel.ERROR&&S.error(`Auth (${p.SDK_VERSION}): ${e}`,...t)}
266/**
267   * @license
268   * Copyright 2020 Google LLC
269   *
270   * Licensed under the Apache License, Version 2.0 (the "License");
271   * you may not use this file except in compliance with the License.
272   * You may obtain a copy of the License at
273   *
274   *   http://www.apache.org/licenses/LICENSE-2.0
275   *
276   * Unless required by applicable law or agreed to in writing, software
277   * distributed under the License is distributed on an "AS IS" BASIS,
278   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
279   * See the License for the specific language governing permissions and
280   * limitations under the License.
281   */function R(e,...t){throw M(e,...t)}function N(e,...t){return M(e,...t)}function C(e,t,n){const r=Object.assign({},b(),{[t]:n});return new f.ErrorFactory('auth','Firebase',r).create(t,{appName:e.name})}function D(e){return C(e,"operation-not-supported-in-this-environment",'Operations that alter the current user are not supported in conjunction with FirebaseServerApp')}function L(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&R(e,"argument-error"),C(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function M(e,...t){if('string'!=typeof e){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return P.create(e,...t)}function U(e,t,...n){if(!e)throw M(t,...n)}function j(e){const t="INTERNAL ASSERTION FAILED: "+e;throw k(t),new Error(t)}function F(e,t){e||j(t)}
282/**
283   * @license
284   * Copyright 2020 Google LLC
285   *
286   * Licensed under the Apache License, Version 2.0 (the "License");
287   * you may not use this file except in compliance with the License.
288   * You may obtain a copy of the License at
289   *
290   *   http://www.apache.org/licenses/LICENSE-2.0
291   *
292   * Unless required by applicable law or agreed to in writing, software
293   * distributed under the License is distributed on an "AS IS" BASIS,
294   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
295   * See the License for the specific language governing permissions and
296   * limitations under the License.
297   */function V(){return'undefined'!=typeof self&&self.location?.href||''}function x(){return'http:'===H()||'https:'===H()}function H(){return'undefined'!=typeof self&&self.location?.protocol||null}
298/**
299   * @license
300   * Copyright 2020 Google LLC
301   *
302   * Licensed under the Apache License, Version 2.0 (the "License");
303   * you may not use this file except in compliance with the License.
304   * You may obtain a copy of the License at
305   *
306   *   http://www.apache.org/licenses/LICENSE-2.0
307   *
308   * Unless required by applicable law or agreed to in writing, software
309   * distributed under the License is distributed on an "AS IS" BASIS,
310   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
311   * See the License for the specific language governing permissions and
312   * limitations under the License.
313   */function q(){if('undefined'==typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}
314/**
315   * @license
316   * Copyright 2020 Google LLC
317   *
318   * Licensed under the Apache License, Version 2.0 (the "License");
319   * you may not use this file except in compliance with the License.
320   * You may obtain a copy of the License at
321   *
322   *   http://www.apache.org/licenses/LICENSE-2.0
323   *
324   * Unless required by applicable law or agreed to in writing, software
325   * distributed under the License is distributed on an "AS IS" BASIS,
326   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
327   * See the License for the specific language governing permissions and
328   * limitations under the License.
329   */class W{constructor(e,t){this.shortDelay=e,this.longDelay=t,F(t>e,'Short delay should be less than long delay!'),this.isMobile=(0,f.isMobileCordova)()||(0,f.isReactNative)()}get(){return'undefined'!=typeof navigator&&navigator&&'onLine'in navigator&&'boolean'==typeof navigator.onLine&&(x()||(0,f.isBrowserExtension)()||'connection'in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}
330/**
331   * @license
332   * Copyright 2020 Google LLC
333   *
334   * Licensed under the Apache License, Version 2.0 (the "License");
335   * you may not use this file except in compliance with the License.
336   * You may obtain a copy of the License at
337   *
338   *   http://www.apache.org/licenses/LICENSE-2.0
339   *
340   * Unless required by applicable law or agreed to in writing, software
341   * distributed under the License is distributed on an "AS IS" BASIS,
342   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
343   * See the License for the specific language governing permissions and
344   * limitations under the License.
345   */function z(e,t){F(e.emulator,'Emulator should always be set here');const{url:n}=e.emulator;return t?`${n}${t.startsWith('/')?t.slice(1):t}`:n}
346/**
347   * @license
348   * Copyright 2020 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   */class G{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:'undefined'!=typeof self&&'fetch'in self?self.fetch:'undefined'!=typeof globalThis&&globalThis.fetch?globalThis.fetch:'undefined'!=typeof fetch?fetch:void j('Could not find fetch implementation, make sure you call FetchProvi
361der.initialize() with an appropriate polyfill')}static headers(){return this.headersImpl?this.headersImpl:'undefined'!=typeof self&&'Headers'in self?self.Headers:'undefined'!=typeof globalThis&&globalThis.Headers?globalThis.Headers:'undefined'!=typeof Headers?Headers:void j('Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill')}static response(){return this.responseImpl?this.responseImpl:'undefined'!=typeof self&&'Response'in self?self.Response:'undefined'!=typeof globalThis&&globalThis.Response?globalThis.Response:'undefined'!=typeof Response?Response:void j('Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill')}}
362/**
363   * @license
364   * Copyright 2020 Google LLC
365   *
366   * Licensed under the Apache License, Version 2.0 (the "License");
367   * you may not use this file except in compliance with the License.
368   * You may obtain a copy of the License at
369   *
370   *   http://www.apache.org/licenses/LICENSE-2.0
371   *
372   * Unless required by applicable law or agreed to in writing, software
373   * distributed under the License is distributed on an "AS IS" BASIS,
374   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
375   * See the License for the specific language governing permissions and
376   * limitations under the License.
377   */const K={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},$=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],B=new W(3e4,6e4);
378/**
379   * @license
380   * Copyright 2020 Google LLC
381   *
382   * Licensed under the Apache License, Version 2.0 (the "License");
383   * you may not use this file except in compliance with the License.
384   * You may obtain a copy of the License at
385   *
386   *   http://www.apache.org/licenses/LICENSE-2.0
387   *
388   * Unless required by applicable law or agreed to in writing, softw
388are
389   * distributed under the License is distributed on an "AS IS" BASIS,
390   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
391   * See the License for the specific language governing permissions and
392   * limitations under the License.
393   */function J(e,t){return e.tenantId&&!t.tenantId?Object.assign({},t,{tenantId:e.tenantId}):t}async function Y(e,t,n,r,i={}){return X(e,i,async()=>{let i={},s={};r&&("GET"===t?s=r:i={body:JSON.stringify(r)});const o=(0,f.querystring)(Object.assign({key:e.config.apiKey},s)).slice(1),a=await e._getAdditionalHeaders();a["Content-Type"]='application/json',e.languageCode&&(a["X-Firebase-Locale"]=e.languageCode);const c=Object.assign({method:t,headers:a},i);return(0,f.isCloudflareWorker)()||(c.referrerPolicy='no-referrer'),e.emulatorConfig&&(0,f.isCloudWorkstation)(e.emulatorConfig.host)&&(c.credentials='include'),G.fetch()(await Z(e,e.config.apiHost,n,o),c)})}async function X(e,t,n){e._canInitEmulator=!1;const r=Object.assign({},K,t);try{const t=new te(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const s=await i.json();if('needConfirmation'in s)throw ne(e,"account-exists-with-different-credential",s);if(i.ok&&!('errorMessage'in s))return s;{const t=i.ok?s.errorMessage:s.error.message,[n,o]=t.split(' : ');if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw ne(e,"credential-already-in-use",s);if("EMAIL_EXISTS"===n)throw ne(e,"email-already-in-use",s);if("USER_DISABLED"===n)throw ne(e,"user-disabled",s);const a=r[n]||n.toLowerCase().replace(/[_\s]+/g,'-');if(o)throw C(e,a,o);R(e,a)}}catch(t){if(t instanceof f.FirebaseError)throw t;R(e,"network-request-failed",{message:String(t)})}}async function Q(e,t,n,r,i={}){const s=await Y(e,t,n,r,i);return'mfaPendingCredential'in s&&R(e,"multi-factor-auth-required",{_serverResponse:s}),s}async function Z(e,t,n,r){const i=`${t}${n}?${r}`,s=e,o=s.config.emulator?z(e.config,i):`${e.config.apiScheme}://${i}`;if($.includes(n)&&(await s._persistenceManagerAvailable,"COOKIE"===s._getPersistenceType())){return s._getPersistence()._getFinalTarget(o).toString()}return o}function ee(e){switch(e){case'ENFORCE':return"ENFORCE";case'AUDIT':return"AUDIT";case'OFF':return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class te{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(N(this.auth,"network-request-failed")),B.get())})}}function ne(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=N(e,t,r);return i.customData._tokenResponse=n,i}
394/**
395   * @license
396   * Copyright 2020 Google LLC
397   *
398   * Licensed under the Apache License, Version 2.0 (the "License");
399   * you may not use this file except in compliance with the License.
400   * You may obtain a copy of the License at
401   *
402   *   http://www.apache.org/licenses/LICENSE-2.0
403   *
404   * Unless required by applicable law or agreed to in writing, software
405   * distributed under the License is distributed on an "AS IS" BASIS,
406   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
407   * See the License for the specific language governing permissions and
408   * limitations under the License.
409   */function re(e){return void 0!==e&&void 0!==e.getResponse}function ie(e){return void 0!==e&&void 0!==e.enterprise}class se{constructor(e){if(this.siteKey='',this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw new Error('recaptchaKey undefined');this.siteKey=e.recaptchaKey.split('/')[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return ee(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PRO
409VIDER")}}
410/**
411   * @license
412   * Copyright 2020 Google LLC
413   *
414   * Licensed under the Apache License, Version 2.0 (the "License");
415   * you may not use this file except in compliance with the License.
416   * You may obtain a copy of the License at
417   *
418   *   http://www.apache.org/licenses/LICENSE-2.0
419   *
420   * Unless required by applicable law or agreed to in writing, software
421   * distributed under the License is distributed on an "AS IS" BASIS,
422   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
423   * See the License for the specific language governing permissions and
424   * limitations under the License.
425   */async function oe(e){return(await Y(e,"GET","/v1/recaptchaParams")).recaptchaSiteKey||''}async function ae(e,t){return Y(e,"GET","/v2/recaptchaConfig",J(e,t))}
426/**
427   * @license
428   * Copyright 2020 Google LLC
429   *
430   * Licensed under the Apache License, Version 2.0 (the "License");
431   * you may not use this file except in compliance with the License.
432   * You may obtain a copy of the License at
433   *
434   *   http://www.apache.org/licenses/LICENSE-2.0
435   *
436   * Unless required by applicable law or agreed to in writing, software
437   * distributed under the License is distributed on an "AS IS" BASIS,
438   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
439   * See the License for the specific language governing permissions and
440   * limitations under the License.
441   */async function ce(e,t){return Y(e,"POST","/v1/accounts:delete",t)}async function ue(e,t){return Y(e,"POST","/v1/accounts:update",t)}async function de(e,t){return Y(e,"POST","/v1/accounts:lookup",t)}
442/**
443   * @license
444   * Copyright 2020 Google LLC
445   *
446   * Licensed under the Apache License, Version 2.0 (the "License");
447   * you may not use this file except in compliance with the License.
448   * You may obtain a copy of the License at
449   *
450   *   http://www.apache.org/licenses/LICENSE-2.0
451   *
452   * Unless required by applicable law or agreed to in writing, software
453   * distributed under the License is distributed on an "AS IS" BASIS,
454   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
455   * See the License for the specific language governing permissions and
456   * limitations under the License.
457   */function le(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(e){}}
458/**
459   * @license
460   * Copyright 2020 Google LLC
461   *
462   * Licensed under the Apache License, Version 2.0 (the "License");
463   * you may not use this file except in compliance with the License.
464   * You may obtain a copy of the License at
465   *
466   *   http://www.apache.org/licenses/LICENSE-2.0
467   *
468   * Unless required by applicable law or agreed to in writing, software
469   * distributed under the License is distributed on an "AS IS" BASIS,
470   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
471   * See the License for the specific language governing permissions and
472   * limitations under the License.
473   */function he(e,t=!1){return(0,f.getModularInstance)(e).getIdToken(t)}async function pe(e,t=!1){const n=(0,f.getModularInstance)(e),r=await n.getIdToken(t),i=me(r);U(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const s='object'==typeof i.firebase?i.firebase:void 0,o=s?.sign_in_provider;return{claims:i,token:r,authTime:le(fe(i.auth_time)),issuedAtTime:le(fe(i.iat)),expirationTime:le(fe(i.exp)),signInProvider:o||null,signInSecondFactor:s?.sign_in_second_factor||null}}function fe(e){return 1e3*Number(e)}function me(e){const[t,n,r]=e.split('.');if(void 0===t||void 0===n||void 0===r)return k('JWT malformed, contained fewer than 3 sections'),null;try{const e=(0,f.base64Decode)(n);return e?JSON.parse(e):(k('Failed to decode base64 JWT payload'),null)}catch(e){return k('Caught error parsing JWT payload as JSON',e?.toString()),null}}function ge(e){const t=me(e);return U(t,"internal-error"),U(void 0!==t.exp,"internal-error"),U(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}
474/**
475   * @license
476   * Copyright 2020 Google LLC
477   *
478   * Licensed under the Apache License, Version 2.0 (the "License");
479   * you may not use this file except in compliance with the License.
480   * You may obtain a copy of the License at
481   *
482   *   http://www.apache.org/licenses/LICENSE-2.0
483   *
484   * Unless required by applicable law or agreed to in writing, software
485   * distributed under the License is distributed on an "AS IS" BASIS,
486   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
487   * See the License for the specific language governing permissions and
488   * limitations under the License.
489   */async function Ie(e,t,n=!1){if(n)return t;try{return await t}catch(t){throw t instanceof f.FirebaseError&&_e(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}function _e({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}
490/**
491   * @license
492   * Copyright 2020 Google LLC
493   *
494   * Licensed under the Apache License, Version 2.0 (the "License");
495   * you may not use this file except in compliance with the License.
496   * You may obtain a copy of the License at
497   *
498   *   http://www.apache.org/licenses/LICENSE-2.0
499   *
500   * Unless required by applicable law or agreed to in writing, software
501   * distributed under the License is distributed on an "AS IS" BASIS,
502   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
503   * See the License for the specific language governing permissions and
504   * limitations under the License.
505   */class ye{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,e)}}schedule(e=!1){if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){return void("auth/network-request-failed"===e?.code&&this.schedule(!0))}this.schedule()}}
506/**
507   * @license
508   * Copyright 2020 Google LLC
509   *
510   * Licensed under the Apache License, Version 2.0 (the "License");
511   * you may not use this file except in compliance with the License.
512   * You may obtain a copy of the License at
513   *
514   *   http://www.apache.org/licenses/LICENSE-2.0
515   *
516   * Unless required by applicable law or agreed to in writing, software
517   * distributed under the License is distributed on an "AS IS" BASIS,
518   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
519   * See the License for the specific language governing permissions and
520   * limitations under the License.
521   */class ve{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=le(this.lastLoginAt),this.creationTime=le(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}
522/**
523   * @license
524   * Copyright 2019 Google LLC
525   *
526   * Licensed under the Apache License, Version 2.0 (the "License");
527   * you may not use this file except in compliance with the License.
528   * You may obtain a copy of the License at
529   *
530   *   http://www.apache.org/licenses/LICENSE-2.0
531   *
532   * Unless required by applicable law or agreed to in writing, software
533   * distributed under the License is distributed on an "AS IS" BASIS,
534   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
535   * See the License for the specific language governing permissions and
536   * limitations under the License.
537   */async function Te(e){const t=e.auth,n=await e.getIdToken(),r=await Ie(e,de(t,{idToken:n}));U(r?.users.length,t,"internal-error");const i=r.users[0];e._notifyReloadListener(i);const s=i.providerUserInfo?.length?be(i.providerUserInfo):[],o=we(e.providerData,s),a=e.isAnonymous,c=!(e.email&&i.passwordHash||o?.length),u=!!a&&c,d={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:o,metadata:new ve(i.createdAt,i.lastLoginAt),isAnonymous:u};Object.assign(e,d)}async function Ee(e){const t=(0,f.getModularInstance)(e);await Te(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function we(e,t){return[...e.filter(e=>!t.some(t=>t.providerId===e.providerId)),...t]}function be(e){return e.map(e=>{let{providerId:t}=e,n=(0,h.default)(e,a);return{providerId:t,uid:n.rawId||'',displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})}
538/**
539   * @license
540   * Copyright 2020 Google LLC
541   *
542   * Licensed under the Apache License, Version 2.0 (the "License");
543   * you may not use this file except in compliance with the License.
544   * You may obtain a copy of the License at
545   *
546   *   http://www.apache.org/licenses/LICENSE-2.0
547   *
548   * Unless required by applicable law or agreed to in writing, software
549   * distributed under the License is distributed on an "AS IS" BASIS,
550   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
551   * See the License for the specific language governing permissions and
552   * limitations under the License.
553   */async function Pe(e,t){const n=await X(e,{},async()=>{const n=(0,f.querystring)({grant_type:'refresh_token',refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,s=await Z(e,r,"/v1/token",`key=${i}`),o=await e._getAdditionalHeaders();o["Content-Type"]='application/x-www-form-urlencoded';const a={method:"POST",headers:o,body:n};return e.emulatorConfig&&(0,f.isCloudWorkstation)(e.emulatorConfig.host)&&(a.credentials='include'),G.fetch()(s,a)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function Ae(e,t){return Y(e,"POST","/v2/accounts:revokeToken",J(e,t))}
554/**
555   * @license
556   * Copyright 2020 Google LLC
557   *
558   * Licensed under the Apache License, Version 2.0 (the "License");
559   * you may not use this file except in compliance with the License.
560   * You may obtain a copy of the License at
561   *
562   *   http://www.apache.org/licenses/LICENSE-2.0
563   *
564   * Unless required by applicable law or agreed to in writing, software
565   * distributed under the License is distributed on an "AS IS" BASIS,
566   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
567   * See the License for the specific language governing permissions and
568   * limitations under the License.
569   */class Se{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){U(e.idToken,"internal-error"),U(void 0!==e.idToken,"internal-error"),U(void 0!==e.refreshToken,"internal-error");const t='expiresIn'in e&&void 0!==e.expiresIn?Number(e.expiresIn):ge(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){U(0!==e.length,"internal-error");const t=ge(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return t||!this.accessToken||this.isExpired?(U(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null):this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:i}=await Pe(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t,s=new Se;return n&&(U('string'==typeof n,"internal-error",{appName:e}),s.refreshToken=n),r&&(U('string'==typeof r,"internal-error",{appName:e}),s.accessToken=r),i&&(U('number'==typeof i,"internal-error",{appName:e}),s.expirationTime=i),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Se,this.toJSON())}_performRefresh(){return j('not implemented')}}
570/**
571   * @license
572   * Copyright 2020 Google LLC
573   *
574   * Licensed under the Apache License, Version 2.0 (the "License");
575   * you may not use this file except in compliance with the License.
576   * You may obtain a copy of the License at
577   *
578   *   http://www.apache.org/licenses/LICENSE-2.0
579   *
580   * Unless required by applicable law or agreed to in writing, software
581   * distributed under the License is distributed on an "AS IS" BASIS,
582   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
583   * See the License for the specific language governing permissions and
584   * limitations under the License.
585   */function Oe(e,t){U('string'==typeof e||void 0===e,"internal-error",{appName:t})}class ke{constructor(e){let{uid:t,auth:n,stsTokenManager:r}=e,i=(0,h.default)(e,c);this.providerId="firebase",this.proactiveRefresh=new ye(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new ve(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const t=await Ie(this,this.stsTokenManager.getToken(this.auth,e));return U(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return pe(this,e)}reload(){return Ee(this)}_assign(e){this!==e&&(U(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
585otoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>Object.assign({},e)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new ke(Object.assign({},this,{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){U(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await Te(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if((0,p._isFirebaseServerApp)(this.auth.app))return Promise.reject(D(this.auth));const e=await this.getIdToken();return await Ie(this,ce(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON(),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||''}static _fromJSON(e,t){const n=t.displayName??void 0,r=t.email??void 0,i=t.phoneNumber??void 0,s=t.photoURL??void 0,o=t.tenantId??void 0,a=t._redirectEventId??void 0,c=t.createdAt??void 0,u=t.lastLoginAt??void 0,{uid:d,emailVerified:l,isAnonymous:h,providerData:p,stsTokenManager:f}=t;U(d&&f,e,"internal-error");const m=Se.fromJSON(this.name,f);U('string'==typeof d,e,"internal-error"),Oe(n,e.name),Oe(r,e.name),U('boolean'==typeof l,e,"internal-error"),U('boolean'==typeof h,e,"internal-error"),Oe(i,e.name),Oe(s,e.name),Oe(o,e.name),Oe(a,e.name),Oe(c,e.name),Oe(u,e.name);const g=new ke({uid:d,auth:e,email:r,emailVerified:l,displayName:n,isAnonymous:h,photoURL:s,phoneNumber:i,tenantId:o,stsTokenManager:m,createdAt:c,lastLoginAt:u});return p&&Array.isArray(p)&&(g.providerData=p.map(e=>Object.assign({},e))),a&&(g._redirectEventId=a),g}static async _fromIdTokenResponse(e,t,n=!1){const r=new Se;r.updateFromServerResponse(t);const i=new ke({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await Te(i),i}static async _fromGetAccountInfoResponse(e,t,n){const r=t.users[0];U(void 0!==r.localId,"internal-error");const i=void 0!==r.providerUserInfo?be(r.providerUserInfo):[],s=!(r.email&&r.passwordHash||i?.length),o=new Se;o.updateFromIdToken(n);const a=new ke({uid:r.localId,auth:e,stsTokenManager:o,isAnonymous:s}),c={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:i,metadata:new ve(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash||i?.length)};return Object.assign(a,c),a}}
586/**
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   */const Re=new Map;function Ne(e){F(e instanceof Function,'Expected a class definition');let t=Re.get(e);return t?(F(t instanceof e,'Instance stored in cache mismatched with class'),t):(t=new e,Re.set(e,t),t)}
602/**
603   * @license
604   * Copyright 2019 Google LLC
605   *
606   * Licensed under the Apache License, Version 2.0 (the "License");
607   * you may not use this file except in compliance with the License.
608   * You may obtain a copy of the License at
609   *
610   *   http://www.apache.org/licenses/LICENSE-2.0
611   *
612   * Unless required by applicable law or agreed to in writing, software
613   * distributed under the License is distributed on an "AS IS" BASIS,
614   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
615   * See the License for the specific language governing permissions and
616   * limitations under the License.
617   */class Ce{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}Ce.type='NONE';const De=Ce;
618/**
619   * @license
620   * Copyright 2019 Google LLC
621   *
622   * Licensed under the Apache License, Version 2.0 (the "License");
623   * you may not use this file except in compliance with the License.
624   * You may obtain a copy of the License at
625   *
626   *   http://www.apache.org/licenses/LICENSE-2.0
627   *
628   * Unless required by applicable law or agreed to in writing, software
629   * distributed under the License is distributed on an "AS IS" BASIS,
630   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
631   * See the License for the specific language governing permissions and
632   * limitations under the License.
633   */function Le(e,t,n){return`firebase:${e}:${t}:${n}`}class Me{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=Le(this.userKey,r.apiKey,i),this.fullPersistenceKey=Le("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if('string'==typeof e){const t=await de(this.auth,{idToken:e}).catch(()=>{});return t?ke._fromGetAccountInfoResponse(this.auth,t,e):null}return ke._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,n="authUser"){if(!t.length)return new Me(Ne(De),e,n);const r=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e);let i=r[0]||Ne(De);const s=Le(n,e.config.apiKey,e.name);let o=null;for(const n of t)try{const t=await n._get(s);if(t){let r;if('string'==typeof t){const n=await de(e,{idToken:t}).catch(()=>{});if(!n)break;r=await ke._fromGetAccountInfoResponse(e,n,t)}else r=ke._fromJSON(e,t);n!==i&&(o=r),i=n;break}}catch{}const a=r.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&a.length?(i=a[0],o&&await i._set(s,o.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(s)}catch{}})),new Me(i,e,n)):new Me(i,e,n)}}
634/**
635   * @license
636   * Copyright 2020 Google LLC
637   *
638   * Licensed under the Apache License, Version 2.0 (the "License");
639   * you may not use this file except in compliance with the License.
640   * You may obtain a copy of the License at
641   *
642   *   http://www.apache.org/licenses/LICENSE-2.0
643   *
644   * Unless required by applicable law or agreed to in writing, software
645   * distributed under the License is distributed on an "AS IS" BASIS,
646   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
647   * See the License for the specific language governing permissions and
648   * limitations under the License.
649   */function Ue(e){const t=e.toLowerCase();if(t.includes('opera/')||t.includes('opr/')||t.includes('opios/'))return"Opera";if(xe(t))return"IEMobile";if(t.includes('msie')||t.includes('trident/'))return"IE";if(t.includes('edge/'))return"Edge";if(je(t))return"Firefox";if(t.includes('silk/'))return"Silk";if(qe(t))return"Blackberry";if(We(t))return"Webos";if(Fe(t))return"Safari";if((t.includes('chrome/')||Ve(t))&&!t.includes('edge/'))return"Chrome";if(He(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===n?.length)return n[1]}return"Other"}function je(e=(0,f.getUA)()){return/firefox\//i.test(e)}function Fe(e=(0,f.getUA)()){const t=e.toLowerCase();return t.includes('safari/')&&!t.includes('chrome/')&&!t.includes('crios/')&&!t.includes('android')}function Ve(e=(0,f.getUA)()){return/crios\//i.test(e)}function xe(e=(0,f.getUA)()){return/iemobile/i.test(e)}function He(e=(0,f.getUA)()){return/android/i.test(e)}function qe(e=(0,f.getUA)()){return/blackberry/i.test(e)}function We(e=(0,f.getUA)()){return/webos/i.test(e)}function ze(e=(0,f.getUA)()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Ge(e=(0,f.getUA)()){return/(iPad|iPhone|iPod).*OS 7_\d/i.test(e)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(e)}function Ke(e=(0,f.getUA)()){return ze(e)&&!!window.navigator?.standalone}function $e(e=(0,f.getUA)()){return ze(e)||He(e)||We(e)||qe(e)||/windows phone/i.test(e)||xe(e)}
650/**
651   * @license
652   * Copyright 2020 Google LLC
653   *
654   * Licensed under the Apache License, Version 2.0 (the "License");
655   * you may not use this file except in compliance with the License.
656   * You may obtain a copy of the License at
657   *
658   *   http://www.apache.org/licenses/LICENSE-2.0
659   *
660   * Unless required by applicable law or agreed to in writing, software
661   * distributed under the License is distributed on an "AS IS" BASIS,
662   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
663   * See the License for the specific language governing permissions and
664   * limitations under the License.
665   */function Be(e,t=[]){let n;switch(e){case"Browser":n=Ue((0,f.getUA)());break;case"Worker":n=`${Ue((0,f.getUA)())}-${e}`;break;default:n=e}const r=t.length?t.join(','):'FirebaseCore-web';return`${n}/JsCore/${p.SDK_VERSION}/${r}`}
666/**
667   * @license
668   * Copyright 2022 Google LLC
669   *
670   * Licensed under the Apache License, Version 2.0 (the "License");
671   * you may not use this file except in compliance with the License.
672   * You may obtain a copy of the License at
673   *
674   *   http://www.apache.org/licenses/LICENSE-2.0
675   *
676   * Unless required by applicable law or agreed to in writing, software
677   * distributed under the License is distributed on an "AS IS" BASIS,
678   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
679   * See the License for the specific language governing permissions and
680   * limitations under the License.
681   */class Je{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise((n,r)=>{try{n(e(t))}catch(e){r(e)}});n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(e){t.reverse();for(const e of t)try{e()}catch(e){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:e?.message})}}}
682/**
683   * @license
684   * Copyright 2023 Google LLC
685   *
686   * Licensed under the Apache License, Version 2.0 (the "License");
687   * you may not use this file except in compliance with the License.
688   * You may obtain a copy of the License at
689   *
690   *   http://www.apache.org/licenses/LICENSE-2.0
691   *
692   * Unless required by applicable law or agreed to in writing, software
693   * distributed under the License is distributed on an "AS IS" BASIS,
694   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
695   * See the License for the specific language governing permissions and
696   * limitations under the License.
697   */async function Ye(e,t={}){return Y(e,"GET","/v2/passwordPolicy",J(e,t))}
698/**
699   * @license
700   * Copyright 2023 Google LLC
701   *
702   * Licensed under the Apache License, Version 2.0 (the "License");
703   * you may not use this file except in compliance with the License.
704   * You may obtain a copy of the License at
705   *
706   *   http://www.apache.org/licenses/LICENSE-2.0
707   *
708   * Unless required by applicable law or agreed to in writing, software
709   * distributed under the License is distributed on an "AS IS" BASIS,
710   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
711   * See the License for the specific language governing permissions and
712   * limitations under the License.
713   */class Xe{constructor(e){const t=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=t.minPasswordLength??6,t.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=t.maxPasswordLength),void 0!==t.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=t.containsLowercaseCharacter),void 0!==t.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=t.containsUppercaseCharacter),void 0!==t.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=t.containsNumericCharacter),void 0!==t.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=t.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,'ENFORCEMENT_STATE_UNSPECIFIED'===this.enforcementState&&(this.enforcementState='OFF'),this.allowedNonAlphanumericCharacters=e.allowedNonAlphanumericCharacters?.join('')??'',this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){const t={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,t),this.validatePasswordCharacterOptions(e,t),t.isValid&&
713(t.isValid=t.meetsMinPasswordLength??!0),t.isValid&&(t.isValid=t.meetsMaxPasswordLength??!0),t.isValid&&(t.isValid=t.containsLowercaseLetter??!0),t.isValid&&(t.isValid=t.containsUppercaseLetter??!0),t.isValid&&(t.isValid=t.containsNumericCharacter??!0),t.isValid&&(t.isValid=t.containsNonAlphanumericCharacter??!0),t}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>='a'&&n<='z',n>='A'&&n<='Z',n>='0'&&n<='9',this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}
714/**
715   * @license
716   * Copyright 2020 Google LLC
717   *
718   * Licensed under the Apache License, Version 2.0 (the "License");
719   * you may not use this file except in compliance with the License.
720   * You may obtain a copy of the License at
721   *
722   *   http://www.apache.org/licenses/LICENSE-2.0
723   *
724   * Unless required by applicable law or agreed to in writing, software
725   * distributed under the License is distributed on an "AS IS" BASIS,
726   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
727   * See the License for the specific language governing permissions and
728   * limitations under the License.
729   */class Qe{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new et(this),this.idTokenSubscription=new et(this),this.beforeStateQueue=new Je(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=P,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion,this._persistenceManagerAvailable=new Promise(e=>this._resolvePersistenceManagerAvailable=e)}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=Ne(t)),this._initializationPromise=this.queue(async()=>{if(!this._deleted&&(this.persistenceManager=await Me.create(this,e),this._resolvePersistenceManagerAvailable?.(),!this._deleted)){if(this._popupRedirectResolver?._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(e){}await this.initializeCurrentUser(t),this.lastNotifiedUid=this.currentUser?.uid||null,this._deleted||(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(e,!0):void 0}async initializeCurrentUserFromIdToken(e){try{const t=await de(this,{idToken:e}),n=await ke._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(e){console.warn('FirebaseServerApp could not login user with provided authIdToken: ',e),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){if((0,p._isFirebaseServerApp)(this.app)){const e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}const t=await this.assertedPersistence.getCurrentUser();let n=t,r=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const t=this.redirectUser?._redirectEventId,i=n?._redirectEventId,s=await this.tryRedirectSignIn(e);t&&t!==i||!s?.user||(n=s.user,r=!0)}if(!n)return this.directlySetCurrentUser(null);
729if(!n._redirectEventId){if(r)try{await this.beforeStateQueue.runMiddleware(n)}catch(e){n=t,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(e))}return n?this.reloadAndSetCurrentUserOrClear(n):this.directlySetCurrentUser(null)}return U(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===n._redirectEventId?this.directlySetCurrentUser(n):this.reloadAndSetCurrentUserOrClear(n)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(e){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await Te(e)}catch(e){if("auth/network-request-failed"!==e?.code)return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=q()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if((0,p._isFirebaseServerApp)(this.app))return Promise.reject(D(this));const t=e?(0,f.getModularInstance)(e):null;return t&&U(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&U(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return(0,p._isFirebaseServerApp)(this.app)?Promise.reject(D(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return(0,p._isFirebaseServerApp)(this.app)?Promise.reject(D(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Ne(e))})}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await Ye(this),t=new Xe(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new f.ErrorFactory('auth','Firebase',e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged(()=>{n(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){const t={providerId:'apple.com',tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await Ae(this,t)}}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&Ne(e)||this._popupRedirectResolver;U(t,this,"argument-error"),this.redirectPersistenceManager=await Me.create(this,[Ne(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){return this._isInitialized&&await this.queue(async()=>{}),this._currentUser?._redirectEventId===e?this._currentUser:this.redirectUser?._redirectEventId===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const e=this.currentUser?.uid??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i='function'==typeof t?t:t.next.bind(t);let s=!1;const o=this._isInitialized?Promise.resolve():this._initializationPromise;if(U(o,this,"internal-error"),o.then(()=>{s||i(this.currentUser)}),'function'==typeof t){const i=e.addObserver(t,n,r);return()=>{s=!0,i()}}{const n=e.addObserver(t);return()=>{s=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return U(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Be(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){const e={"X-Client-Version":this.clientVersion};this.app.options.appId&&(e["X-Firebase-gmpid"]=this.app.options.appId);const t=await(this.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader());t&&(e["X-Firebase-Client"]=t);const n=await this._getAppCheckToken();return n&&(e["X-Firebase-AppCheck"]=n),e}async _getAppCheckToken(){if((0,p._isFirebaseServerApp)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=await(this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken());return e?.error&&O(`Error while retrieving App Check token: ${e.error}`),e?.token}}function Ze(e){return(0,f.getModularInstance)(e)}class et{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,f.createSubscribe)(e=>this.observer=e)}get next(){return U(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}
730/**
731   * @license
732   * Copyright 2020 Google LLC
733   *
734   * Licensed under the Apache License, Version 2.0 (the "License");
735   * you may not use this file except in compliance with the License.
736   * You may obtain a copy of the License at
737   *
738   *   http://www.apache.org/licenses/LICENSE-2.0
739   *
740   * Unless required by applicable law or agreed to in writing, software
741   * distributed under the License is distributed on an "AS IS" BASIS,
742   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
743   * See the License for the specific language governing permissions and
744   * limitations under the License.
745   */let tt={async loadJS(){throw new Error('Unable to load external scripts')},recaptchaV2Script:'',recaptchaEnterpriseScript:'',gapiScript:''};function nt(e){return tt.loadJS(e)}function rt(e){return`__${e}${Math.floor(1e6*Math.random())}`}
746/**
747   * @license
748   * Copyright 2020 Google LLC
749   *
750   * Licensed under the Apache License, Version 2.0 (the "License");
751   * you may not use this file except in compliance with the License.
752   * You may obtain a copy of the License at
753   *
754   *   http://www.apache.org/licenses/LICENSE-2.0
755   *
756   * Unless required by applicable law or agreed to in writing, software
757   * distributed under the License is distributed on an "AS IS" BASIS,
758   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
759   * See the License for the specific language governing permissions and
760   * limitations under the License.
761   */const it=1e12;class st{constructor(e){this.auth=e,this.counter=it,this._widgets=new Map}render(e,t){const n=this.counter;return this._widgets.set(n,new ct(e,this.auth.name,t||{})),this.counter++,n}reset(e){const t=e||it;this._widgets.get(t)?.delete(),this._widgets.delete(t)}getResponse(e){const t=e||it;return this._widgets.get(t)?.getResponse()||''}async execute(e){const t=e||it;return this._widgets.get(t)?.execute(),''}}class ot{constructor(){this.enterprise=new at}ready(e){e()}execute(e,t){return Promise.resolve('token')}render(e,t){return''}}class at{ready(e){e()}execute(e,t){return Promise.resolve('token')}render(e,t){return''}}class ct{constructor(e,t,n){this.params=n,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const r='string'==typeof e?document.getElementById(e):e;U(r,"argument-error",{appName:t}),this.container=r,this.isVisible='invisible'!==this.params.size,this.isVisible?this.execute():this.container.addEventListener('click',this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener('click',this.clickHandler)}execute(){this.checkIfDeleted(),this.timerId||(this.timerId=window.setTimeout(()=>{this.responseToken=ut(50);const{callback:e,'expired-callback':t}=this.params;if(e)try{e(this.responseToken)}catch(e){}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,t)try{t()}catch(e){}this.isVisible&&this.execute()},6e4)},500))}checkIfDeleted(){if(this.deleted)throw new Error('reCAPTCHA mock was already deleted!')}}function ut(e){const t=[],n='1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';for(let r=0;r<e;r++)t.push(n.charAt(Math.floor(62*Math.random())));return t.join('')}const dt='NO_RECAPTCHA';class lt{constructor(e){this.type="recaptcha-enterprise",this.auth=Ze(e)}async verify(e="verify",t=!1){async function n(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise(async(t,n)=>{ae(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(r=>{if(void 0!==r.recaptchaKey){const n=new se(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}n(new Error('recaptcha Enterprise site key undefined'))}).catch(e=>{n(e)})})}function r(t,n,r){const i=window.grecaptcha;ie(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{n(e)}).catch(()=>{n(dt)})}):r(Error('No reCAPTCHA enterprise script loaded.'))}if(this.auth.settings.appVerificationDisabledForTesting){return(new ot).execute('siteKey',{action:'verify'})}return new Promise((e,i)=>{n(this.auth).then(n=>{if(!t&&ie(window.grecaptcha))r(n,e,i);else{if('undefined'==typeof window)return void i(new Error('RecaptchaVerifier is only supported in browser'));let t=tt.recaptchaEnterpriseScript;0!==t.length&&(t+=n),nt(t).then(()=>{r(n,e,i)}).catch(e=>{i(e)})}}).catch(e=>{i(e)})})}}async function ht(e,t,n,r=!1,i=!1){const s=new lt(e);let o;if(i)o=dt;else try{o=await s.verify(n)}
761catch(e){o=await s.verify(n,!0)}const a=Object.assign({},t);if("mfaSmsEnrollment"===n||"mfaSmsSignIn"===n){if('phoneEnrollmentInfo'in a){const e=a.phoneEnrollmentInfo.phoneNumber,t=a.phoneEnrollmentInfo.recaptchaToken;Object.assign(a,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:t,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if('phoneSignInInfo'in a){const e=a.phoneSignInInfo.recaptchaToken;Object.assign(a,{phoneSignInInfo:{recaptchaToken:e,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return a}return r?Object.assign(a,{captchaResp:o}):Object.assign(a,{captchaResponse:o}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function pt(e,t,n,r,i){if("EMAIL_PASSWORD_PROVIDER"===i){if(e._getRecaptchaConfig()?.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await ht(e,t,n,"getOobCode"===n);return r(e,i)}return r(e,t).catch(async i=>{if("auth/missing-recaptcha-token"===i.code){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const i=await ht(e,t,n,"getOobCode"===n);return r(e,i)}return Promise.reject(i)})}if("PHONE_PROVIDER"===i){if(e._getRecaptchaConfig()?.isProviderEnabled("PHONE_PROVIDER")){const i=await ht(e,t,n);return r(e,i).catch(async i=>{if("AUDIT"===e._getRecaptchaConfig()?.getProviderEnforcementState("PHONE_PROVIDER")&&("auth/missing-recaptcha-token"===i.code||"auth/invalid-app-credential"===i.code)){console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${n} flow.`);const i=await ht(e,t,n,!1,!0);return r(e,i)}return Promise.reject(i)})}{const i=await ht(e,t,n,!1,!0);return r(e,i)}}return Promise.reject(i+' provider is not supported.')}async function ft(e){const t=Ze(e),n=await ae(t,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),r=new se(n);if(null==t.tenantId?t._agentRecaptchaConfig=r:t._tenantRecaptchaConfigs[t.tenantId]=r,r.isAnyProviderEnabled()){new lt(t).verify()}}
762/**
763   * @license
764   * Copyright 2020 Google LLC
765   *
766   * Licensed under the Apache License, Version 2.0 (the "License");
767   * you may not use this file except in compliance with the License.
768   * You may obtain a copy of the License at
769   *
770   *   http://www.apache.org/licenses/LICENSE-2.0
771   *
772   * Unless required by applicable law or agreed to in writing, software
773   * distributed under the License is distributed on an "AS IS" BASIS,
774   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
775   * See the License for the specific language governing permissions and
776   * limitations under the License.
777   */function mt(e,t){const n=(0,p._getProvider)(e,'auth');if(n.isInitialized()){const e=n.getImmediate(),r=n.getOptions();if((0,f.deepEqual)(r,t??{}))return e;R(e,"already-initialized")}return n.initialize({options:t})}function gt(e,t){const n=t?.persistence||[],r=(Array.isArray(n)?n:[n]).map(Ne);t?.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t?.popupRedirectResolver)}function It(e,t,n){const r=Ze(e);U(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!!n?.disableWarnings,s=_t(t),{host:o,port:a}=yt(t),c=null===a?'':`:${a}`,u={url:`${s}//${o}${c}/`},d=Object.freeze({host:o,port:a,protocol:s.replace(':',''),options:Object.freeze({disableWarnings:i})});if(!r._canInitEmulator)return U(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),void U((0,f.deepEqual)(u,r.config.emulator)&&(0,f.deepEqual)(d,r.emulatorConfig),r,"emulator-config-failed");r.config.emulator=u,r.emulatorConfig=d,r.settings.appVerificationDisabledForTesting=!0,(0,f.isCloudWorkstation)(o)?(0,f.pingServer)(`${s}//${o}${c}`):i||Tt()}function _t(e){const t=e.indexOf(':');return t<0?'':e.substr(0,t+1)}function yt(e){const t=_t(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:'',port:null};const r=n[2].split('@').pop()||'',i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const e=i[1];return{host:e,port:vt(r.substr(e.length+1))}}{const[e,t]=r.split(':');return{host:e,port:vt(t)}}}function vt(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function Tt(){function e(){const e=document.createElement('p'),t=e.style;e.innerText='Running in emulator mode. Do not use with production credentials.',t.position='fixed',t.width='100%',t.backgroundColor='#ffffff',t.border='.1em solid #000000',t.color='#b50000',t.bottom='0px',t.left='0px',t.margin='0px',t.zIndex='10000',t.textAlign='center',e.classList.add('firebase-emulator-warning'),document.body.appendChild(e)}'undefined'!=typeof console&&'function'==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),'undefined'!=typeof window&&'undefined'!=typeof document&&('loading'===document.readyState?window.addEventListener('DOMContentLoaded',e):e())}
778/**
779   * @license
780   * Copyright 2020 Google LLC
781   *
782   * Licensed under the Apache License, Version 2.0 (the "License");
783   * you may not use this file except in compliance with the License.
784   * You may obtain a copy of the License at
785   *
786   *   http://www.apache.org/licenses/LICENSE-2.0
787   *
788   * Unless required by applicable law or agreed to in writing, software
789   * distributed under the License is distributed on an "AS IS" BASIS,
790   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
791   * See the License for the specific language governing permissions and
792   * limitations under the License.
793   */class Et{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return j('not implemented')}_getIdTokenResponse(e){return j('not implemented')}_linkToIdToken(e,t){return j('not implemented')}_getReauthenticationResolver(e){return j('not implemented')}}
794/**
795   * @license
796   * Copyright 2020 Google LLC
797   *
798   * Licensed under the Apache License, Version 2.0 (the "License");
799   * you may not use this file except in compliance with the License.
800   * You may obtain a copy of the License at
801   *
802   *   http://www.apache.org/licenses/LICENSE-2.0
803   *
804   * Unless required by applicable law or agreed to in writing, software
805   * distributed under the License is distributed on an "AS IS" BASIS,
806   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
807   * See the License for the specific language governing permissions and
808   * limitations under the License.
809   */async function wt(e,t){return Y(e,"POST","/v1/accounts:resetPassword",J(e,t))}async function bt(e,t){return Y(e,"POST","/v1/accounts:update",t)}async function Pt(e,t){return Y(e,"POST","/v1/accounts:signUp",t)}async function At(e,t){return Y(e,"POST","/v1/accounts:update",J(e,t))}
810/**
811   * @license
812   * Copyright 2020 Google LLC
813   *
814   * Licensed under the Apache License, Version 2.0 (the "License");
815   * you may not use this file except in compliance with the License.
816   * You may obtain a copy of the License at
817   *
818   *   http://www.apache.org/licenses/LICENSE-2.0
819   *
820   * Unless required by applicable law or agreed to in writing, software
821   * distributed under the License is distributed on an "AS IS" BASIS,
822   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
823   * See the License for the specific language governing permissions and
824   * limitations under the License.
825   */async function St(e,t){return Q(e,"POST","/v1/accounts:signInWithPassword",J(e,t))}async function Ot(e,t){return Y(e,"POST","/v1/accounts:sendOobCode",J(e,t))}async function kt(e,t){return Ot(e,t)}async function Rt(e,t){return Ot(e,t)}async function Nt(e,t){return Ot(e,t)}async function Ct(e,t){return Ot(e,t)}
826/**
827   * @license
828   * Copyright 2020 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 Dt(e,t){return Q(e,"POST","/v1/accounts:signInWithEmailLink",J(e,t))}async function Lt(e,t){return Q(e,"POST","/v1/accounts:signInWithEmailLink",J(e,t))}
842/**
843   * @license
844   * Copyright 2020 Google LLC
845   *
846   * Licensed under the Apache License, Version 2.0 (the "License");
847   * you may not use this file except in compliance with the License.
848   * You may obtain a copy of the License at
849   *
850   *   http://www.apache.org/licenses/LICENSE-2.0
851   *
852   * Unless required by applicable law or agreed to in writing, software
853   * distributed under the License is distributed on an "AS IS" BASIS,
854   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
855   * See the License for the specific language governing permissions and
856   * limitations under the License.
857   */class Mt extends Et{constructor(e,t,n,r=null){super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new Mt(e,t,"password")}static _fromEmailAndCode(e,t,n=null){return new Mt(e,t,"emailLink",n)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t='string'==typeof e?JSON.parse(e):e;if(t?.email&&t?.password){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return pt(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",St,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return Dt(e,{email:this._email,oobCode:this._password});default:R(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return pt(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Pt,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return Lt(e,{idToken:t,email:this._email,oobCode:this._password});default:R(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}
858/**
859   * @license
860   * Copyright 2020 Google LLC
861   *
862   * Licensed under the Apache License, Version 2.0 (the "License");
863   * you may not use this file except in compliance with the License.
864   * You may obtain a copy of the License at
865   *
866   *   http://www.apache.org/licenses/LICENSE-2.0
867   *
868   * Unless required by applicable law or agreed to in writing, software
869   * distributed under the License is distributed on an "AS IS" BASIS,
870   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
871   * See the License for the specific language governing permissions and
872   * limitations under the License.
873   */async function Ut(e,t){return Q(e,"POST","/v1/accounts:signInWithIdp",J(e,t))}
874/**
875   * @license
876   * Copyright 2020 Google LLC
877   *
878   * Licensed under the Apache License, Version 2.0 (the "License");
879   * you may not use this file except in compliance with the License.
880   * You may obtain a copy of the License at
881   *
882   *   http://www.apache.org/licenses/LICENSE-2.0
883   *
884   * Unless required by applicable law or agreed to in writing, software
885   * distributed under the License is distributed on an "AS IS" BASIS,
886   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
887   * See the License for the specific language governing permissions and
888   * limitations under the License.
889   */class jt extends Et{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new jt(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):R("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
889once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t='string'==typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,i=(0,h.default)(t,u);if(!n||!r)return null;const s=new jt(n,r);return s.idToken=i.idToken||void 0,s.accessToken=i.accessToken||void 0,s.secret=i.secret,s.nonce=i.nonce,s.pendingToken=i.pendingToken||null,s}_getIdTokenResponse(e){return Ut(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Ut(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Ut(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=(0,f.querystring)(t)}return e}}
890/**
891   * @license
892   * Copyright 2020 Google LLC
893   *
894   * Licensed under the Apache License, Version 2.0 (the "License");
895   * you may not use this file except in compliance with the License.
896   * You may obtain a copy of the License at
897   *
898   *   http://www.apache.org/licenses/LICENSE-2.0
899   *
900   * Unless required by applicable law or agreed to in writing, software
901   * distributed under the License is distributed on an "AS IS" BASIS,
902   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
903   * See the License for the specific language governing permissions and
904   * limitations under the License.
905   */async function Ft(e,t){return Y(e,"POST","/v1/accounts:sendVerificationCode",J(e,t))}async function Vt(e,t){return Q(e,"POST","/v1/accounts:signInWithPhoneNumber",J(e,t))}async function xt(e,t){const n=await Q(e,"POST","/v1/accounts:signInWithPhoneNumber",J(e,t));if(n.temporaryProof)throw ne(e,"account-exists-with-different-credential",n);return n}const Ht={USER_NOT_FOUND:"user-not-found"};async function qt(e,t){return Q(e,"POST","/v1/accounts:signInWithPhoneNumber",J(e,Object.assign({},t,{operation:'REAUTH'})),Ht)}
906/**
907   * @license
908   * Copyright 2020 Google LLC
909   *
910   * Licensed under the Apache License, Version 2.0 (the "License");
911   * you may not use this file except in compliance with the License.
912   * You may obtain a copy of the License at
913   *
914   *   http://www.apache.org/licenses/LICENSE-2.0
915   *
916   * Unless required by applicable law or agreed to in writing, software
917   * distributed under the License is distributed on an "AS IS" BASIS,
918   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
919   * See the License for the specific language governing permissions and
920   * limitations under the License.
921   */class Wt extends Et{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Wt({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Wt({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return Vt(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return xt(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return qt(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){'string'==typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new Wt({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}
922/**
923   * @license
924   * Copyright 2020 Google LLC
925   *
926   * Licensed under the Apache License, Version 2.0 (the "License");
927   * you may not use this file except in compliance with the License.
928   * You may obtain a copy of the License at
929   *
930   *   http://www.apache.org/licenses/LICENSE-2.0
931   *
932   * Unless required by applicable law or agreed to in writing, software
933   * distributed under the License is distributed on an "AS IS" BASIS,
934   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
935   * See the License for the specific language governing permissions and
936   * limitations under the License.
937   */function zt(e){switch(e){case'recoverEmail':return"RECOVER_EMAIL";case'resetPassword':return"PASSWORD_RESET";case'signIn':return"EMAIL_SIGNIN";case'verifyEmail':return"VERIFY_EMAIL";case'verifyAndChangeEmail':return"VERIFY_AND_CHANGE_EMAIL";case'revertSecondFactorAddition':return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function Gt(e){const t=(0,f.querystringDecode)((0,f.extractQuerystring)(e)).link,n=t?(0,f.querystringDecode)((0,f.extractQuerystring)(t)).deep_link_id:null,r=(0,f.querystringDecode)((0,f.extractQuerystring)(e)).deep_link_id;return(r?(0,f.querystringDecode)((0,f.extractQuerystring)(r)).link:null)||r||n||t||e}class Kt{constructor(e){const t=(0,f.querystringDecode)((0,f.extractQuerystring)(e)),n=t.apiKey??null,r=t.oobCode??null,i=zt(t.mode??null);U(n&&r&&i,"argument-error"),this.apiKey=n,this.operation=i,this.code=r,this.continueUrl=t.continueUrl??null,this.languageCode=t.lang??null,this.tenantId=t.tenantId??null}static parseLink(e){const t=Gt(e);try{return new Kt(t)}catch{return null}}}function $t(e){return Kt.parseLink(e)}
938/**
939   * @license
940   * Copyright 2020 Google LLC
941   *
942   * Licensed under the Apache License, Version 2.0 (the "License");
943   * you may not use this file except in compliance with the License.
944   * You may obtain a copy of the License at
945   *
946   *   http://www.apache.org/licenses/LICENSE-2.0
947   *
948   * Unless required by applicable law or agreed to in writing, software
949   * distributed under the License is distributed on an "AS IS" BASIS,
950   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
951   * See the License for the specific language governing permissions and
952   * limitations under the License.
953   */class Bt{constructor(){this.providerId=Bt.PROVIDER_ID}static credential(e,t){return Mt._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=Kt.parseLink(t);return U(n,"argument-error"),Mt._fromEmailAndCode(e,n.code,n.tenantId)}}Bt.PROVIDER_ID="password",Bt.EMAIL_PASSWORD_SIGN_IN_METHOD="password",Bt.EMAIL_LINK_SIGN_IN_METHOD="emailLink";
954/**
955   * @license
956   * Copyright 2020 Google LLC
957   *
958   * Licensed under the Apache License, Version 2.0 (the "License");
959   * you may not use this file except in compliance with the License.
960   * You may obtain a copy of the License at
961   *
962   *   http://www.apache.org/licenses/LICENSE-2.0
963   *
964   * Unless required by applicable law or agreed to in writing, software
965   * distributed under the License is distributed on an "AS IS" BASIS,
966   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
967   * See the License for the specific language governing permissions and
968   * limitations under the License.
969   */
970class Jt{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}
971/**
972   * @license
973   * Copyright 2019 Google LLC
974   *
975   * Licensed under the Apache License, Version 2.0 (the "License");
976   * you may not use this file except in compliance with the License.
977   * You may obtain a copy of the License at
978   *
979   *   http://www.apache.org/licenses/LICENSE-2.0
980   *
981   * Unless required by applicable law or agreed to in writing, software
982   * distributed under the License is distributed on an "AS IS" BASIS,
983   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
984   * See the License for the specific language governing permissions and
985   * limitations under the License.
986   */class Yt extends Jt{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class Xt extends Yt{static credentialFromJSON(e){const t='string'==typeof e?JSON.parse(e):e;return U('providerId'in t&&'signInMethod'in t,"argument-error"),jt._fromParams(t)}credential(e){return this._credential(Object.assign({},e,{nonce:e.rawNonce}))}_credential(e){return U(e.idToken||e.accessToken,"argument-error"),jt._fromParams(Object.assign({}
vendor: 8,395 bytes, lines 986-1096
986,e,{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return Xt.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return Xt.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:n,oauthTokenSecret:r,pendingToken:i,nonce:s,providerId:o}=e;if(!(n||r||t||i))return null;if(!o)return null;try{return new Xt(o)._credential({idToken:t,accessToken:n,nonce:s,pendingToken:i})}catch(e){return null}}}
987/**
988   * @license
989   * Copyright 2020 Google LLC
990   *
991   * Licensed under the Apache License, Version 2.0 (the "License");
992   * you may not use this file except in compliance with the License.
993   * You may obtain a copy of the License at
994   *
995   *   http://www.apache.org/licenses/LICENSE-2.0
996   *
997   * Unless required by applicable law or agreed to in writing, software
998   * distributed under the License is distributed on an "AS IS" BASIS,
999   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1000   * See the License for the specific language governing permissions and
1001   * limitations under the License.
1002   */class Qt extends Yt{constructor(){super("facebook.com")}static credential(e){return jt._fromParams({providerId:Qt.PROVIDER_ID,signInMethod:Qt.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Qt.credentialFromTaggedObject(e)}static credentialFromError(e){return Qt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!('oauthAccessToken'in e))return null;if(!e.oauthAccessToken)return null;try{return Qt.credential(e.oauthAccessToken)}catch{return null}}}Qt.FACEBOOK_SIGN_IN_METHOD="facebook.com",Qt.PROVIDER_ID="facebook.com";
1003/**
1004   * @license
1005   * Copyright 2020 Google LLC
1006   *
1007   * Licensed under the Apache License, Version 2.0 (the "License");
1008   * you may not use this file except in compliance with the License.
1009   * You may obtain a copy of the License at
1010   *
1011   *   http://www.apache.org/licenses/LICENSE-2.0
1012   *
1013   * Unless required by applicable law or agreed to in writing, software
1014   * distributed under the License is distributed on an "AS IS" BASIS,
1015   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1016   * See the License for the specific language governing permissions and
1017   * limitations under the License.
1018   */
1019class Zt extends Yt{constructor(){super("google.com"),this.addScope('profile')}static credential(e,t){return jt._fromParams({providerId:Zt.PROVIDER_ID,signInMethod:Zt.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return Zt.credentialFromTaggedObject(e)}static credentialFromError(e){return Zt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:n}=e;if(!t&&!n)return null;try{return Zt.credential(t,n)}catch{return null}}}Zt.GOOGLE_SIGN_IN_METHOD="google.com",Zt.PROVIDER_ID="google.com";
1020/**
1021   * @license
1022   * Copyright 2020 Google LLC
1023   *
1024   * Licensed under the Apache License, Version 2.0 (the "License");
1025   * you may not use this file except in compliance with the License.
1026   * You may obtain a copy of the License at
1027   *
1028   *   http://www.apache.org/licenses/LICENSE-2.0
1029   *
1030   * Unless required by applicable law or agreed to in writing, software
1031   * distributed under the License is distributed on an "AS IS" BASIS,
1032   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1033   * See the License for the specific language governing permissions and
1034   * limitations under the License.
1035   */
1036class en extends Yt{constructor(){super("github.com")}static credential(e){return jt._fromParams({providerId:en.PROVIDER_ID,signInMethod:en.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return en.credentialFromTaggedObject(e)}static credentialFromError(e){return en.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!('oauthAccessToken'in e))return null;if(!e.oauthAccessToken)return null;try{return en.credential(e.oauthAccessToken)}catch{return null}}}en.GITHUB_SIGN_IN_METHOD="github.com",en.PROVIDER_ID="github.com";class tn extends Et{constructor(e,t){super(e,e),this.pendingToken=t}_getIdTokenResponse(e){return Ut(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Ut(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Ut(e,t)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(e){const t='string'==typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r,pendingToken:i}=t;return n&&r&&i&&n===r?new tn(n,i):null}static _create(e,t){return new tn(e,t)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}
1037/**
1038   * @license
1039   * Copyright 2020 Google LLC
1040   *
1041   * Licensed under the Apache License, Version 2.0 (the "License");
1042   * you may not use this file except in compliance with the License.
1043   * You may obtain a copy of the License at
1044   *
1045   *   http://www.apache.org/licenses/LICENSE-2.0
1046   *
1047   * Unless required by applicable law or agreed to in writing, software
1048   * distributed under the License is distributed on an "AS IS" BASIS,
1049   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1050   * See the License for the specific language governing permissions and
1051   * limitations under the License.
1052   */class nn extends Jt{constructor(e){U(e.startsWith("saml."),"argument-error"),super(e)}static credentialFromResult(e){return nn.samlCredentialFromTaggedObject(e)}static credentialFromError(e){return nn.samlCredentialFromTaggedObject(e.customData||{})}static credentialFromJSON(e){const t=tn.fromJSON(e);return U(t,"argument-error"),t}static samlCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{pendingToken:t,providerId:n}=e;if(!t||!n)return null;try{return tn._create(n,t)}catch(e){return null}}}
1053/**
1054   * @license
1055   * Copyright 2020 Google LLC
1056   *
1057   * Licensed under the Apache License, Version 2.0 (the "License");
1058   * you may not use this file except in compliance with the License.
1059   * You may obtain a copy of the License at
1060   *
1061   *   http://www.apache.org/licenses/LICENSE-2.0
1062   *
1063   * Unless required by applicable law or agreed to in writing, software
1064   * distributed under the License is distributed on an "AS IS" BASIS,
1065   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1066   * See the License for the specific language governing permissions and
1067   * limitations under the License.
1068   */class rn extends Yt{constructor(){super("twitter.com")}static credential(e,t){return jt._fromParams({providerId:rn.PROVIDER_ID,signInMethod:rn.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return rn.credentialFromTaggedObject(e)}static credentialFromError(e){return rn.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:t,oauthTokenSecret:n}=e;if(!t||!n)return null;try{return rn.credential(t,n)}catch{return null}}}
1069/**
1070   * @license
1071   * Copyright 2020 Google LLC
1072   *
1073   * Licensed under the Apache License, Version 2.0 (the "License");
1074   * you may not use this file except in compliance with the License.
1075   * You may obtain a copy of the License at
1076   *
1077   *   http://www.apache.org/licenses/LICENSE-2.0
1078   *
1079   * Unless required by applicable law or agreed to in writing, software
1080   * distributed under the License is distributed on an "AS IS" BASIS,
1081   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1082   * See the License for the specific language governing permissions and
1083   * limitations under the License.
1084   */
1085async function sn(e,t){return Q(e,"POST","/v1/accounts:signUp",J(e,t))}
1086/**
1087   * @license
1088   * Copyright 2020 Google LLC
1089   *
1090   * Licensed under the Apache License, Version 2.0 (the "License");
1091   * you may not use this file except in compliance with the License.
1092   * You may obtain a copy of the License at
1093   *
1094   *   http://www.apache.org/licenses/LICENSE-2.0
1095   *
1096   * Unless required by applicable law or agreed to in writing, softw
1096are
1097   * distributed under the License is distributed on an "AS IS" BASIS,
1098   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1099   * See the License for the specific language governing permissions and
1100   * limitations under the License.
1101   */rn.TWITTER_SIGN_IN_METHOD="twitter.com",rn.PROVIDER_ID="twitter.com";class on{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n,r=!1){const i=await ke._fromIdTokenResponse(e,n,r),s=an(n);return new on({user:i,providerId:s,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=an(n);return new on({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function an(e){return e.providerId?e.providerId:'phoneNumber'in e?"phone":null}
1102/**
1103   * @license
1104   * Copyright 2020 Google LLC
1105   *
1106   * Licensed under the Apache License, Version 2.0 (the "License");
1107   * you may not use this file except in compliance with the License.
1108   * You may obtain a copy of the License at
1109   *
1110   *   http://www.apache.org/licenses/LICENSE-2.0
1111   *
1112   * Unless required by applicable law or agreed to in writing, software
1113   * distributed under the License is distributed on an "AS IS" BASIS,
1114   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1115   * See the License for the specific language governing permissions and
1116   * limitations under the License.
1117   */async function cn(e){if((0,p._isFirebaseServerApp)(e.app))return Promise.reject(D(e));const t=Ze(e);if(await t._initializationPromise,t.currentUser?.isAnonymous)return new on({user:t.currentUser,providerId:null,operationType:"signIn"});const n=await sn(t,{returnSecureToken:!0}),r=await on._fromIdTokenResponse(t,"signIn",n,!0);return await t._updateCurrentUser(r.user),r}
1118/**
1119   * @license
1120   * Copyright 2020 Google LLC
1121   *
1122   * Licensed under the Apache License, Version 2.0 (the "License");
1123   * you may not use this file except in compliance with the License.
1124   * You may obtain a copy of the License at
1125   *
1126   *   http://www.apache.org/licenses/LICENSE-2.0
1127   *
1128   * Unless required by applicable law or agreed to in writing, software
1129   * distributed under the License is distributed on an "AS IS" BASIS,
1130   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1131   * See the License for the specific language governing permissions and
1132   * limitations under the License.
1133   */class un extends f.FirebaseError{constructor(e,t,n,r){super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,un.prototype),this.customData={appName:e.name,tenantId:e.tenantId??void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new un(e,t,n,r)}}function dn(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(n=>{if("auth/multi-factor-auth-required"===n.code)throw un._fromErrorAndOperation(e,n,t,r);throw n})}
1134/**
1135   * @license
1136   * Copyright 2020 Google LLC
1137   *
1138   * Licensed under the Apache License, Version 2.0 (the "License");
1139   * you may not use this file except in compliance with the License.
1140   * You may obtain a copy of the License at
1141   *
1142   *   http://www.apache.org/licenses/LICENSE-2.0
1143   *
1144   * Unless required by applicable law or agreed to in writing, software
1145   * distributed under the License is distributed on an "AS IS" BASIS,
1146   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1147   * See the License for the specific language governing permissions and
1148   * limitations under the License.
1149   */function ln(e){return new Set(e.map(({providerId:e})=>e).filter(e=>!!e))}
1150/**
1151   * @license
1152   * Copyright 2019 Google LLC
1153   *
1154   * Licensed under the Apache License, Version 2.0 (the "License");
1155   * you may not use this file except in compliance with the License.
1156   * You may obtain a copy of the License at
1157   *
1158   *   http://www.apache.org/licenses/LICENSE-2.0
1159   *
1160   * Unless required by applicable law or agreed to in writing, softw
1160are
1161   * distributed under the License is distributed on an "AS IS" BASIS,
1162   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1163   * See the License for the specific language governing permissions and
1164   * limitations under the License.
1165   */async function hn(e,t){const n=(0,f.getModularInstance)(e);await fn(!0,n,t);const{providerUserInfo:r}=await ue(n.auth,{idToken:await n.getIdToken(),deleteProvider:[t]}),i=ln(r||[]);return n.providerData=n.providerData.filter(e=>i.has(e.providerId)),i.has("phone")||(n.phoneNumber=null),await n.auth._persistUserIfCurrent(n),n}async function pn(e,t,n=!1){const r=await Ie(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return on._forOperation(e,"link",r)}async function fn(e,t,n){await Te(t);const r=!1===e?"provider-already-linked":"no-such-provider";U(ln(t.providerData).has(n)===e,t.auth,r)}
1166/**
1167   * @license
1168   * Copyright 2019 Google LLC
1169   *
1170   * Licensed under the Apache License, Version 2.0 (the "License");
1171   * you may not use this file except in compliance with the License.
1172   * You may obtain a copy of the License at
1173   *
1174   *   http://www.apache.org/licenses/LICENSE-2.0
1175   *
1176   * Unless required by applicable law or agreed to in writing, software
1177   * distributed under the License is distributed on an "AS IS" BASIS,
1178   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1179   * See the License for the specific language governing permissions and
1180   * limitations under the License.
1181   */async function mn(e,t,n=!1){const{auth:r}=e;if((0,p._isFirebaseServerApp)(r.app))return Promise.reject(D(r));const i="reauthenticate";try{const s=await Ie(e,dn(r,i,t,e),n);U(s.idToken,r,"internal-error");const o=me(s.idToken);U(o,r,"internal-error");const{sub:a}=o;return U(e.uid===a,r,"user-mismatch"),on._forOperation(e,i,s)}catch(e){throw"auth/user-not-found"===e?.code&&R(r,"user-mismatch"),e}}
1182/**
1183   * @license
1184   * Copyright 2020 Google LLC
1185   *
1186   * Licensed under the Apache License, Version 2.0 (the "License");
1187   * you may not use this file except in compliance with the License.
1188   * You may obtain a copy of the License at
1189   *
1190   *   http://www.apache.org/licenses/LICENSE-2.0
1191   *
1192   * Unless required by applicable law or agreed to in writing, software
1193   * distributed under the License is distributed on an "AS IS" BASIS,
1194   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1195   * See the License for the specific language governing permissions and
1196   * limitations under the License.
1197   */async function gn(e,t,n=!1){if((0,p._isFirebaseServerApp)(e.app))return Promise.reject(D(e));const r="signIn",i=await dn(e,r,t),s=await on._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(s.user),s}async function In(e,t){return gn(Ze(e),t)}async function _n(e,t){const n=(0,f.getModularInstance)(e);return await fn(!1,n,t.providerId),pn(n,t)}async function yn(e,t){return mn((0,f.getModularInstance)(e),t)}
1198/**
1199   * @license
1200   * Copyright 2020 Google LLC
1201   *
1202   * Licensed under the Apache License, Version 2.0 (the "License");
1203   * you may not use this file except in compliance with the License.
1204   * You may obtain a copy of the License at
1205   *
1206   *   http://www.apache.org/licenses/LICENSE-2.0
1207   *
1208   * Unless required by applicable law or agreed to in writing, software
1209   * distributed under the License is distributed on an "AS IS" BASIS,
1210   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1211   * See the License for the specific language governing permissions and
1212   * limitations under the License.
1213   */async function vn(e,t){return Q(e,"POST","/v1/accounts:signInWithCustomToken",J(e,t))}
1214/**
1215   * @license
1216   * Copyright 2020 Google LLC
1217   *
1218   * Licensed under the Apache License, Version 2.0 (the "License");
1219   * you may not use this file except in compliance with the License.
1220   * You may obtain a copy of the License at
1221   *
1222   *   http://www.apache.org/licenses/LICENSE-2.0
1223   *
1224   * Unless required by applicable law or agreed to in writing, software
1225   * distributed under the License is distributed on an "AS IS" BASIS,
1226   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1227   * See the License for the specific language governing permissions and
1228   * limitations under the License.
1229   */async function Tn(e,t){if((0,p._isFirebaseServerApp)(e.app))return Promise.reject(D(e));const n=Ze(e),r=await vn(n,{token:t,returnSecureToken:!0}),i=await on._fromIdTokenResponse(n,"signIn",r);return await n._updateCurrentUser(i.user),i}
1230/**
1231   * @license
1232   * Copyright 2020 Google LLC
1233   *
1234   * Licensed under the Apache License, Version 2.0 (the "License");
1235   * you may not use this file except in compliance with the License.
1236   * You may obtain a copy of the License at
1237   *
1238   *   http://www.apache.org/licenses/LICENSE-2.0
1239   *
1240   * Unless required by applicable law or agreed to in writing, software
1241   * distributed under the License is distributed on an "AS IS" BASIS,
1242   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1243   * See the License for the specific language governing permissions and
1244   * limitations under the License.
1245   */class En{constructor(e,t){this.factorId=e,this.uid=t.mfaEnrollmentId,this.enrollmentTime=new Date(t.enrolledAt).toUTCString(),this.displayName=t.displayName}static _fromServerResponse(e,t){return'phoneInfo'in t?wn._fromServerResponse(e,t):'totpInfo'in t?bn._fromServerResponse(e,t):R(e,"internal-error")}}class wn extends En{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,t){return new wn(t)}}class bn extends En{constructor(e){super("totp",e)}static _fromServerResponse(e,t){return new bn(t)}}
1246/**
1247   * @license
1248   * Copyright 2020 Google LLC
1249   *
1250   * Licensed under the Apache License, Version 2.0 (the "License");
1251   * you may not use this file except in compliance with the License.
1252   * You may obtain a copy of the License at
1253   *
1254   *   http://www.apache.org/licenses/LICENSE-2.0
1255   *
1256   * Unless required by applicable law or agreed to in writing, software
1257   * distributed under the License is distributed on an "AS IS" BASIS,
1258   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1259   * See the License for the specific language governing permissions and
1260   * limitations under the License.
1261   */function Pn(e,t,n){U(n.url?.length>0,e,"invalid-continue-uri"),U(void 0===n.dynamicLinkDomain||n.dynamicLinkDomain.length>0,e,"invalid-dynamic-link-domain"),U(void 0===n.linkDomain||n.linkDomain.length>0,e,"invalid-hosting-link-domain"),t.continueUrl=n.url,t.dynamicLinkDomain=n.dynamicLinkDomain,t.linkDomain=n.linkDomain,t.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(U(n.iOS.bundleId.length>0,e,"missing-ios-bundle-id"),t.iOSBundleId=n.iOS.bundleId),n.android&&(U(n.android.packageName.length>0,e,"missing-android-pkg-name"),t.androidInstallApp=n.android.installApp,t.androidMinimumVersionCode=n.android.minimumVersion,t.androidPackageName=n.android.packageName)}
1262/**
1263   * @license
1264   * Copyright 2020 Google LLC
1265   *
1266   * Licensed under the Apache License, Version 2.0 (the "License");
1267   * you may not use this file except in compliance with the License.
1268   * You may obtain a copy of the License at
1269   *
1270   *   http://www.apache.org/licenses/LICENSE-2.0
1271   *
1272   * Unless required by applicable law or agreed to in writing, software
1273   * distributed under the License is distributed on an "AS IS" BASIS,
1274   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1275   * See the License for the specific language governing permissions and
1276   * limitations under the License.
1277   */async function An(e){const t=Ze(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function Sn(e,t,n){const r=Ze(e),i={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};n&&Pn(r,i,n),await pt(r,i,"getOobCode",Rt,"EMAIL_PASSWORD_PROVIDER")}async function On(e,t,n){await wt((0,f.getModularInstance)(e),{oobCode:t,newPassword:n}).catch(async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&An(e),t})}async function kn(e,t){await At((0,f.getModularInstance)(e),{oobCode:t})}async function Rn(e,t){const n=(0,f.getModularInstance)(e),r=await wt(n,{oobCode:t}),i=r.requestType;switch(U(i,n,"internal-error"),i){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":U(r.newEmail,n,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":U(r.mfaInfo,n,"internal-error");default:U(r.email,n,"internal-error")}let s=null;return r.mfaInfo&&(s=En._fromServerResponse(Ze(n),r.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===r.requestType?r.newEmail:r.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===r.requestType?r.email:r.newEmail)||null,multiFactorInfo:s},operation:i}}async function Nn(e,t){const{data:n}=await Rn((0,f.getModularInstance)(e),t);return n.email}async function Cn(e,t,n){if((0,p._isFirebaseServerApp)(e.app))return Promise.reject(D(e));const r=Ze(e),i=pt(r,{returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",sn,"EMAIL_PASSWORD_PROVIDER"),s=await i.catch(t=>{throw"auth/password-does-not-meet-requirements"===t.code&&An(e),t}),o=await on._fromIdTokenResponse(r,"signIn",s);return await r._updateCurrentUser(o.user),o}function Dn(e,t,n){return(0,p._isFirebaseServerApp)(e.app)?Promise.reject(D(e)):In((0,f.getModularInstance)(e),Bt.credential(t,n)).catch(async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&An(e),t})}
1278/**
1279   * @license
1280   * Copyright 2020 Google LLC
1281   *
1282   * Licensed under the Apache License, Version 2.0 (the "License");
1283   * you may not use this file except in compliance with the License.
1284   * You may obtain a copy of the License at
1285   *
1286   *   http://www.apache.org/licenses/LICENSE-2.0
1287   *
1288   * Unless required by applicable law or agreed to in writing, software
1289   * distributed under the License is distributed on an "AS IS" BASIS,
1290   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1291   * See the License for the specific language governing permissions and
1292   * limitations under the License.
1293   */async function Ln(e,t,n){const r=Ze(e),i={requestType:"EMAIL_SIGNIN",email:t,clientType:"CLIENT_TYPE_WEB"};!(function(e,t){U(t.handleCodeInApp,r,"argument-error"),t&&Pn(r,e,t)})(i,n),await pt(r,i,"getOobCode",Nt,"EMAIL_PASSWORD_PROVIDER")}function Mn(e,t){const n=Kt.parseLink(t);return"EMAIL_SIGNIN"===n?.operation}async function Un(e,t,n){if((0,p._isFirebaseServerApp)(e.app))return Promise.reject(D(e));const r=(0,f.getModularInstance)(e),i=Bt.credentialWithLink(t,n||V());return U(i._tenantId===(r.tenantId||null),r,"tenant-id-mismatch"),In(r,i)}
1294/**
1295   * @license
1296   * Copyright 2020 Google LLC
1297   *
1298   * Licensed under the Apache License, Version 2.0 (the "License");
1299   * you may not use this file except in compliance with the License.
1300   * You may obtain a copy of the License at
1301   *
1302   *   http://www.apache.org/licenses/LICENSE-2.0
1303   *
1304   * Unless required by applicable law or agreed to in writing, software
1305   * distributed under the License is distributed on an "AS IS" BASIS,
1306   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1307   * See the License for the specific language governing permissions and
1308   * limitations under the License.
1309   */async function jn(e,t){return Y(e,"POST","/v1/accounts:createAuthUri",J(e,t))}
1310/**
1311   * @license
1312   * Copyright 2020 Google LLC
1313   *
1314   * Licensed under the Apache License, Version 2.0 (the "License");
1315   * you may not use this file except in compliance with the License.
1316   * You may obtain a copy of the License at
1317   *
1318   *   http://www.apache.org/licenses/LICENSE-2.0
1319   *
1320   * Unless required by applicable law or agreed to in writing, software
1321   * distributed under the License is distributed on an "AS IS" BASIS,
1322   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1323   * See the License for the specific language governing permissions and
1324   * limitations under the License.
1325   */async function Fn(e,t){const n={identifier:t,continueUri:x()?V():'http://localhost'},{signinMethods:r}=await jn((0,f.getModularInstance)(e),n);return r||[]}async function Vn(e,t){const n=(0,f.getModularInstance)(e),r={requestType:"VERIFY_EMAIL",idToken:await e.getIdToken()};t&&Pn(n.auth,r,t);const{email:i}=await kt(n.auth,r);i!==e.email&&await e.reload()}async function xn(e,t,n){const r=(0,f.getModularInstance)(e),i={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:await e.getIdToken(),newEmail:t};n&&Pn(r.auth,i,n);const{email:s}=await Ct(r.auth,i);s!==e.email&&await e.reload()}
1326/**
1327   * @license
1328   * Copyright 2020 Google LLC
1329   *
1330   * Licensed under the Apache License, Version 2.0 (the "License");
1331   * you may not use this file except in compliance with the License.
1332   * You may obtain a copy of the License at
1333   *
1334   *   http://www.apache.org/licenses/LICENSE-2.0
1335   *
1336   * Unless required by applicable law or agreed to in writing, software
1337   * distributed under the License is distributed on an "AS IS" BASIS,
1338   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1339   * See the License for the specific language governing permissions and
1340   * limitations under the License.
1341   */async function Hn(e,t){return Y(e,"POST","/v1/accounts:update",t)}
1342/**
1343   * @license
1344   * Copyright 2020 Google LLC
1345   *
1346   * Licensed under the Apache License, Version 2.0 (the "License");
1347   * you may not use this file except in compliance with the License.
1348   * You may obtain a copy of the License at
1349   *
1350   *   http://www.apache.org/licenses/LICENSE-2.0
1351   *
1352   * Unless required by applicable law or agreed to in writing, software
1353   * distributed under the License is distributed on an "AS IS" BASIS,
1354   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1355   * See the License for the specific language governing permissions and
1356   * limitations under the License.
1357   */async function qn(e,{displayName:t,photoURL:n}){if(void 0===t&&void 0===n)return;const r=(0,f.getModularInstance)(e),i={idToken:await r.getIdToken(),displayName:t,photoUrl:n,returnSecureToken:!0},s=await Ie(r,Hn(r.auth,i));r.displayName=s.displayName||null,r.photoURL=s.photoUrl||null;const o=r.providerData.find(({providerId:e})=>"password"===e);o&&(o.displayName=r.displayName,o.photoURL=r.photoURL),await r._updateTokensIfNecessary(s)}function Wn(e,t){const n=(0,f.getModularInstance)(e);return(0,p._isFirebaseServerApp)(n.auth.app)?Promise.reject(D(n.auth)):Gn(n,t,null)}function zn(e,t){return Gn((0,f.getModularInstance)(e),null,t)}async function Gn(e,t,n){const{auth:r}=e,i={idToken:await e.getIdToken(),returnSecureToken:!0};t&&(i.email=t),n&&(i.password=n);const s=await Ie(e,bt(r,i));await e._updateTokensIfNecessary(s,!0)}
1358/**
1359   * @license
1360   * Copyright 2019 Google LLC
1361   *
1362   * Licensed under the Apache License, Version 2.0 (the "License");
1363   * you may not use this file except in compliance with the License.
1364   * You may obtain a copy of the License at
1365   *
1366   *   http://www.apache.org/licenses/LICENSE-2.0
1367   *
1368   * Unless required by applicable law or agreed to in writing, software
1369   * distributed under the License is distributed on an "AS IS" BASIS,
1370   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1371   * See the License for the specific language governing permissions and
1372   * limitations under the License.
1373   */function Kn(e){if(!e)return null;const{providerId:t}=e,n=e.rawUserInfo?JSON.parse(e.rawUserInfo):{},r=e.isNewUser||"identitytoolkit#SignupNewUserResponse"===e.kind;if(!t&&e?.idToken){const t=me(e.idToken)?.firebase?.sign_in_provider;if(t){return new $n(r,"anonymous"!==t&&"custom"!==t?t:null)}}if(!t)return null;switch(t){case"facebook.com":return new Jn(r,n);case"github.com":return new Yn(r,n);case"google.com":return new Xn(r,n);case"twitter.com":return new Qn(r,n,e.screenName||null);case"custom":case"anonymous":return new $n(r,null);default:return new $n(r,t,n)}}class $n{constructor(e,t,n={}){this.isNewUser=e,this.providerId=t,this.profile=n}}class Bn extends $n{constructor(e,t,n,r){super(e,t,n),this.username=r}}class Jn extends $n{constructor(e,t){super(e,"facebook.com",t)}}class Yn extends Bn{constructor(e,t){super(e,"github.com",t,'string'==typeof t?.login?t?.login:null)}}class Xn extends $n{constructor(e,t){super(e,"google.com",t)}}class Qn extends Bn{constructor(e,t,n){super(e,"twitter.com",t,n)}}function Zn(e){const{user:t,_tokenResponse:n}=e;return t.isAnonymous&&!n?{providerId:null,isNewUser:!1,profile:null}:Kn(n)}
1374/**
1375   * @license
1376   * Copyright 2020 Google LLC
1377   *
1378   * Licensed under the Apache License, Version 2.0 (the "License");
1379   * you may not use this file except in compliance with the License.
1380   * You may obtain a copy of the License at
1381   *
1382   *   http://www.apache.org/licenses/LICENSE-2.0
1383   *
1384   * Unless required by applicable law or agreed to in writing, software
1385   * distributed under the License is distributed on an "AS IS" BASIS,
1386   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1387   * See the License for the specific language governing permissions and
1388   * limitations under the License.
1389   */function er(e,t){return(0,f.getModularInstance)(e).setPersistence(t)}function tr(e){return ft(e)}async function nr(e,t){return Ze(e).validatePassword(t)}function rr(e,t,n,r){return(0,f.getModularInstance)(e).onIdTokenChanged(t,n,r)}function ir(e,t,n){return(0,f.getModularInstance)(e).beforeAuthStateChanged(t,n)}function sr(e,t,n,r){return(0,f.getModularInstance)(e).onAuthStateChanged(t,n,r)}function or(e){(0,f.getModularInstance)(e).useDeviceLanguage()}function ar(e,t){return(0,f.getModularInstance)(e).updateCurrentUser(t)}function cr(e){return(0,f.getModularInstance)(e).signOut()}function ur(e,t){return Ze(e).revokeAccessToken(t)}async function dr(e){return(0,f.getModularInstance)(e).delete()}
1390/**
1391   * @license
1392   * Copyright 2020 Google LLC
1393   *
1394   * Licensed under the Apache License, Version 2.0 (the "License");
1395   * you may not use this file except in compliance with the License.
1396   * You may obtain a copy of the License at
1397   *
1398   *   http://www.apache.org/licenses/LICENSE-2.0
1399   *
1400   * Unless required by applicable law or agreed to in writing, software
1401   * distributed under the License is distributed on an "AS IS" BASIS,
1402   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1403   * See the License for the specific language governing permissions and
1404   * limitations under the License.
1405   */class lr{constructor(e,t,n){this.type=e,this.credential=t,this.user=n}static _fromIdtoken(e,t){return new lr("enroll",e,t)}static _fromMfaPendingCredential(e){return new lr("signin",e)}toJSON(){const e="enroll"===this.type?'idToken':'pendingCredential';return{multiFactorSession:{[e]:this.credential}}}static fromJSON(e){if(e?.multiFactorSession){if(e.multiFactorSession?.pendingCredential)return lr._fromMfaPendingCredential(e.multiFactorSession.pendingCredential);if(e.multiFactorSession?.idToken)return lr._fromIdtoken(e.multiFactorSession.idToken)}return null}}
1406/**
1407   * @license
1408   * Copyright 2020 Google LLC
1409   *
1410   * Licensed under the Apache License, Version 2.0 (the "License");
1411   * you may not use this file except in compliance with the License.
1412   * You may obtain a copy of the License at
1413   *
1414   *   http://www.apache.org/licenses/LICENSE-2.0
1415   *
1416   * Unless required by applicable law or agreed to in writing, software
1417   * distributed under the License is distributed on an "AS IS" BASIS,
1418   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1419   * See the License for the specific language governing permissions and
1420   * limitations under the License.
1421   */class hr{constructor(e,t,n){this.session=e,this.hints=t,this.signInResolver=n}static _fromError(e,t){const n=Ze(e),r=t.customData._serverResponse,i=(r.mfaInfo||[]).map(e=>En._fromServerResponse(n,e));U(r.mfaPendingCredential,n,"internal-error");const s=lr._fromMfaPendingCredential(r.mfaPendingCredential);return new hr(s,i,async e=>{const i=await e._process(n,s);delete r.mfaInfo,delete r.mfaPendingCredential;const o=Object.assign({},r,{idToken:i.idToken,refreshToken:i.refreshToken});switch(t.operationType){case"signIn":const e=await on._fromIdTokenResponse(n,t.operationType,o);return await n._updateCurrentUser(e.user),e;case"reauthenticate":return U(t.user,n,"internal-error"),on._forOperation(t.user,t.operationType,o);default:R(n,"internal-error")}})}async resolveSignIn(e){const t=e;return this.signInResolver(t)}}function pr(e,t){const n=(0,f.getModularInstance)(e),r=t;return U(t.customData.operationType,n,"argument-error"),U(r.customData._serverResponse?.mfaPendingCredential,n,"argument-error"),hr._fromError(n,r)}
1422/**
1423   * @license
1424   * Copyright 2020 Google LLC
1425   *
1426   * Licensed under the Apache License, Version 2.0 (the "License");
1427   * you may not use this file except in compliance with the License.
1428   * You may obtain a copy of the License at
1429   *
1430   *   http://www.apache.org/licenses/LICENSE-2.0
1431   *
1432   * Unless required by applicable law or agreed to in writing, software
1433   * distributed under the License is distributed on an "AS IS" BASIS,
1434   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1435   * See the License for the specific language governing permissions and
1436   * limitations under the License.
1437   */function fr(e,t){return Y(e,"POST","/v2/accounts/mfaEnrollment:start",J(e,t))}function mr(e,t){return Y(e,"POST","/v2/accounts/mfaEnrollment:finalize",J(e,t))}function gr(e,t){return Y(e,"POST","/v2/accounts/mfaEnrollment:finalize",J(e,t))}class Ir{constructor(e){this.user=e,this.enrolledFactors=[],e._onReload(t=>{t.mfaInfo&&(this.enrolledFactors=t.mfaInfo.map(t=>En._fromServerResponse(e.auth,t)))})}static _fromUser(e){return new Ir(e)}async getSession(){return lr._fromIdtoken(await this.user.getIdToken(),this.user)}
1437async enroll(e,t){const n=e,r=await this.getSession(),i=await Ie(this.user,n._process(this.user.auth,r,t));return await this.user._updateTokensIfNecessary(i),this.user.reload()}async unenroll(e){const t='string'==typeof e?e:e.uid,n=await this.user.getIdToken();try{const e=await Ie(this.user,(r=this.user.auth,i={idToken:n,mfaEnrollmentId:t},Y(r,"POST","/v2/accounts/mfaEnrollment:withdraw",J(r,i))));this.enrolledFactors=this.enrolledFactors.filter(({uid:e})=>e!==t),await this.user._updateTokensIfNecessary(e),await this.user.reload()}catch(e){throw e}var r,i}}const _r=new WeakMap;function yr(e){const t=(0,f.getModularInstance)(e);return _r.has(t)||_r.set(t,Ir._fromUser(t)),_r.get(t)}const vr='__sak';
1438/**
1439   * @license
1440   * Copyright 2019 Google LLC
1441   *
1442   * Licensed under the Apache License, Version 2.0 (the "License");
1443   * you may not use this file except in compliance with the License.
1444   * You may obtain a copy of the License at
1445   *
1446   *   http://www.apache.org/licenses/LICENSE-2.0
1447   *
1448   * Unless required by applicable law or agreed to in writing, software
1449   * distributed under the License is distributed on an "AS IS" BASIS,
1450   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1451   * See the License for the specific language governing permissions and
1452   * limitations under the License.
1453   */class Tr{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(vr,'1'),this.storage.removeItem(vr),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}
1454/**
1455   * @license
1456   * Copyright 2020 Google LLC
1457   *
1458   * Licensed under the Apache License, Version 2.0 (the "License");
1459   * you may not use this file except in compliance with the License.
1460   * You may obtain a copy of the License at
1461   *
1462   *   http://www.apache.org/licenses/LICENSE-2.0
1463   *
1464   * Unless required by applicable law or agreed to in writing, software
1465   * distributed under the License is distributed on an "AS IS" BASIS,
1466   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1467   * See the License for the specific language governing permissions and
1468   * limitations under the License.
1469   */class Er extends Tr{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=$e(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e,t=!1){if(!e.key)return void this.forAllChangedKeys((e,t,n)=>{this.notifyListeners(e,n)});const n=e.key;t?this.detachListener():this.stopPolling();const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);(0,f.isIE)()&&10===document.documentMode&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const e of Array.from(n))e(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,n)=>{this.onStorageEvent(new StorageEvent('storage',{key:e,oldValue:t,newValue:n}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener('storage',this.boundEventHandler)}detachListener(){window.removeEventListener('storage',this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}Er.type='LOCAL';const wr=Er;
1470/**
1471   * @license
1472   * Copyright 2025 Google LLC
1473   *
1474   * Licensed under the Apache License, Version 2.0 (the "License");
1475   * you may not use this file except in compliance with the License.
1476   * You may obtain a copy of the License at
1477   *
1478   *   http://www.apache.org/licenses/LICENSE-2.0
1479   *
1480   * Unless required by applicable law or agreed to in writing, software
1481   * distributed under the License is distributed on an "AS IS" BASIS,
1482   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1483   * See the License for the specific language governing permissions and
1484   * limitations under the License.
1485   */function br(e){const t=e.replace(/[\\^$.*+?()[\]{}|]/g,'\\$&'),n=RegExp(`${t}=([^;]+)`);return document.cookie.match(n)?.[1]??null}function Pr(e){return`${'http:'===window.location.protocol?'__dev_':'__HOST-'}FIREBASE_${e.split(':')[3]}`}class Ar{constructor(){this.type="COOKIE",this.listenerUnsubscribes=new Map}_getFinalTarget(e){if(void 0===typeof window)return e;const t=new URL(`${window.location.origin}/__cookies__`);return t.searchParams.set('finalTarget',e),t}async _isAvailable(){return!('boolean'==typeof isSecureContext&&!isSecureContext)&&('undefined'!=typeof navigator&&'undefined'!=typeof document&&(navigator.cookieEnabled??!0))}async _set(e,t){}async _get(e){if(!this._isAvailable())return null;const t=Pr(e);if(window.cookieStore){const e=await window.cookieStore.get(t);return e?.value}return br(t)}async _remove(e){if(!this._isAvailable())return;if(!await this._get(e))return;const t=Pr(e);document.cookie=`${t}=;Max-Age=34560000;Partitioned;Secure;SameSite=Strict;Path=/;Priority=High`,await fetch("/__cookies__",{method:'DELETE'}).catch(()=>{})}_addListener(e,t){if(!this._isAvailable())return;const n=Pr(e);if(window.cookieStore){const e=e=>{const r=e.changed.find(e=>e.name===n);r&&t(r.value);e.deleted.find(e=>e.name===n)&&t(null)},r=()=>window.cookieStore.removeEventListener('change',e);return this.listenerUnsubscribes.set(t,r),window.cookieStore.addEventListener('change',e)}let r=br(n);const i=setInterval(()=>{const e=br(n);e!==r&&(t(e),r=e)},1e3);this.listenerUnsubscribes.set(t,()=>clearInterval(i))}_removeListener(e,t){const n=this.listenerUnsubscribes.get(t);n&&(n(),this.listenerUnsubscribes.delete(t))}}Ar.type='COOKIE';const Sr=Ar;
1486/**
1487   * @license
1488   * Copyright 2020 Google LLC
1489   *
1490   * Licensed under the Apache License, Version 2.0 (the "License");
1491   * you may not use this file except in compliance with the License.
1492   * You may obtain a copy of the License at
1493   *
1494   *   http://www.apache.org/licenses/LICENSE-2.0
1495   *
1496   * Unless required by applicable law or agreed to in writing, software
1497   * distributed under the License is distributed on an "AS IS" BASIS,
1498   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1499   * See the License for the specific language governing permissions and
1500   * limitations under the License.
1501   */class Or extends Tr{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}Or.type='SESSION';const kr=Or;
1502/**
1503   * @license
1504   * Copyright 2019 Google LLC
1505   *
1506   * Licensed under the Apache License, Version 2.0 (the "License");
1507   * you may not use this file except in compliance with the License.
1508   * You may obtain a copy of the License at
1509   *
1510   *   http://www.apache.org/licenses/LICENSE-2.0
1511   *
1512   * Unless required by applicable law or agreed to in writing, software
1513   * distributed under the License is distributed on an "AS IS" BASIS,
1514   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515   * See the License for the specific language governing permissions and
1516   * limitations under the License.
1517   */function Rr(e){return Promise.all(e.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(e){return{fulfilled:!1,reason:e}}}))}
1518/**
1519   * @license
1520   * Copyright 2019 Google LLC
1521   *
1522   * Licensed under the Apache License, Version 2.0 (the "License");
1523   * you may not use this file except in compliance with the License.
1524   * You may obtain a copy of the License at
1525   *
1526   *   http://www.apache.org/licenses/LICENSE-2.0
1527   *
1528   * Unless required by applicable law or agreed to in writing, softw
1528are
1529   * distributed under the License is distributed on an "AS IS" BASIS,
1530   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1531   * See the License for the specific language governing permissions and
1532   * limitations under the License.
1533   */class Nr{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;const n=new Nr(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:i}=t.data,s=this.handlersMap[r];if(!s?.size)return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const o=Array.from(s).map(async e=>e(t.origin,i)),a=await Rr(o);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:a})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener('message',this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener('message',this.boundEventHandler)}}
1534/**
1535   * @license
1536   * Copyright 2020 Google LLC
1537   *
1538   * Licensed under the Apache License, Version 2.0 (the "License");
1539   * you may not use this file except in compliance with the License.
1540   * You may obtain a copy of the License at
1541   *
1542   *   http://www.apache.org/licenses/LICENSE-2.0
1543   *
1544   * Unless required by applicable law or agreed to in writing, software
1545   * distributed under the License is distributed on an "AS IS" BASIS,
1546   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1547   * See the License for the specific language governing permissions and
1548   * limitations under the License.
1549   */
1550function Cr(e="",t=10){let n='';for(let e=0;e<t;e++)n+=Math.floor(10*Math.random());return e+n}
1551/**
1552   * @license
1553   * Copyright 2019 Google LLC
1554   *
1555   * Licensed under the Apache License, Version 2.0 (the "License");
1556   * you may not use this file except in compliance with the License.
1557   * You may obtain a copy of the License at
1558   *
1559   *   http://www.apache.org/licenses/LICENSE-2.0
1560   *
1561   * Unless required by applicable law or agreed to in writing, software
1562   * distributed under the License is distributed on an "AS IS" BASIS,
1563   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1564   * See the License for the specific language governing permissions and
1565   * limitations under the License.
1566   */Nr.receivers=[];class Dr{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener('message',e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,n=50){const r='undefined'!=typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,s;return new Promise((o,a)=>{const c=Cr('',20);r.port1.start();const u=setTimeout(()=>{a(new Error("unsupported_event"))},n);s={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===c)switch(t.data.status){case"ack":clearTimeout(u),i=setTimeout(()=>{a(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),o(t.data.response);break;default:clearTimeout(u),clearTimeout(i),a(new Error("invalid_response"))}}},this.handlers.add(s),r.port1.addEventListener('message',s.onMessage),this.target.postMessage({eventType:e,eventId:c,data:t},[r.port2])}).finally(()=>{s&&this.removeMessageHandler(s)})}}
1567/**
1568   * @license
1569   * Copyright 2020 Google LLC
1570   *
1571   * Licensed under the Apache License, Version 2.0 (the "License");
1572   * you may not use this file except in compliance with the License.
1573   * You may obtain a copy of the License at
1574   *
1575   *   http://www.apache.org/licenses/LICENSE-2.0
1576   *
1577   * Unless required by applicable law or agreed to in writing, software
1578   * distributed under the License is distributed on an "AS IS" BASIS,
1579   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1580   * See the License for the specific language governing permissions and
1581   * limitations under the License.
1582   */function Lr(){return window}
1582function Mr(e){Lr().location.href=e}
1583/**
1584   * @license
1585   * Copyright 2020 Google LLC.
1586   *
1587   * Licensed under the Apache License, Version 2.0 (the "License");
1588   * you may not use this file except in compliance with the License.
1589   * You may obtain a copy of the License at
1590   *
1591   *   http://www.apache.org/licenses/LICENSE-2.0
1592   *
1593   * Unless required by applicable law or agreed to in writing, software
1594   * distributed under the License is distributed on an "AS IS" BASIS,
1595   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1596   * See the License for the specific language governing permissions and
1597   * limitations under the License.
1598   */function Ur(){return void 0!==Lr().WorkerGlobalScope&&'function'==typeof Lr().importScripts}async function jr(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}
1599/**
1600   * @license
1601   * Copyright 2019 Google LLC
1602   *
1603   * Licensed under the Apache License, Version 2.0 (the "License");
1604   * you may not use this file except in compliance with the License.
1605   * You may obtain a copy of the License at
1606   *
1607   *   http://www.apache.org/licenses/LICENSE-2.0
1608   *
1609   * Unless required by applicable law or agreed to in writing, software
1610   * distributed under the License is distributed on an "AS IS" BASIS,
1611   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1612   * See the License for the specific language governing permissions and
1613   * limitations under the License.
1614   */
1615const Fr='firebaseLocalStorageDb',Vr='firebaseLocalStorage',xr='fbase_key';class Hr{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>{this.request.addEventListener('success',()=>{e(this.request.result)}),this.request.addEventListener('error',()=>{t(this.request.error)})})}}function qr(e,t){return e.transaction([Vr],t?'readwrite':'readonly').objectStore(Vr)}function Wr(){const e=indexedDB.deleteDatabase(Fr);return new Hr(e).toPromise()}function zr(){const e=indexedDB.open(Fr,1);return new Promise((t,n)=>{e.addEventListener('error',()=>{n(e.error)}),e.addEventListener('upgradeneeded',()=>{const t=e.result;try{t.createObjectStore(Vr,{keyPath:xr})}catch(e){n(e)}}),e.addEventListener('success',async()=>{const n=e.result;n.objectStoreNames.contains(Vr)?t(n):(n.close(),await Wr(),t(await zr()))})})}async function Gr(e,t,n){const r=qr(e,!0).put({[xr]:t,value:n});return new Hr(r).toPromise()}async function Kr(e,t){const n=qr(e,!1).get(t),r=await new Hr(n).toPromise();return void 0===r?null:r.value}function $r(e,t){const n=qr(e,!0).delete(t);return new Hr(n).toPromise()}class Br{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db||(this.db=await zr()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(e){if(t++>3)throw e;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return Ur()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Nr._getInstance(Ur()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){if(this.activeServiceWorker=await jr(),!this.activeServiceWorker)return;this.sender=new Dr(this.activeServiceWorker);const e=await this.sender._send("ping",{},800);e&&e[0]?.fulfilled&&e[0]?.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&(navigator?.serviceWorker?.controller||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await zr();return await Gr(e,vr,'1'),await $r(e,vr),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(n=>Gr(n,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){const t=await this._withRetries(t=>Kr(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>$r(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(e=>{const t=qr(e,!1).getAll();
1615return new Hr(t).toPromise()});if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(const e of Object.keys(this.localCache))this.localCache[e]&&!n.has(e)&&(this.notifyListeners(e,null),t.push(e));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const e of Array.from(n))e(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}Br.type='LOCAL';const Jr=Br;
1616/**
1617   * @license
1618   * Copyright 2020 Google LLC
1619   *
1620   * Licensed under the Apache License, Version 2.0 (the "License");
1621   * you may not use this file except in compliance with the License.
1622   * You may obtain a copy of the License at
1623   *
1624   *   http://www.apache.org/licenses/LICENSE-2.0
1625   *
1626   * Unless required by applicable law or agreed to in writing, software
1627   * distributed under the License is distributed on an "AS IS" BASIS,
1628   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1629   * See the License for the specific language governing permissions and
1630   * limitations under the License.
1631   */function Yr(e,t){return Y(e,"POST","/v2/accounts/mfaSignIn:start",J(e,t))}function Xr(e,t){return Y(e,"POST","/v2/accounts/mfaSignIn:finalize",J(e,t))}function Qr(e,t){return Y(e,"POST","/v2/accounts/mfaSignIn:finalize",J(e,t))}
1632/**
1633   * @license
1634   * Copyright 2020 Google LLC
1635   *
1636   * Licensed under the Apache License, Version 2.0 (the "License");
1637   * you may not use this file except in compliance with the License.
1638   * You may obtain a copy of the License at
1639   *
1640   *   http://www.apache.org/licenses/LICENSE-2.0
1641   *
1642   * Unless required by applicable law or agreed to in writing, software
1643   * distributed under the License is distributed on an "AS IS" BASIS,
1644   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1645   * See the License for the specific language governing permissions and
1646   * limitations under the License.
1647   */const Zr=rt('rcb'),ei=new W(3e4,6e4);class ti{constructor(){this.hostLanguage='',this.counter=0,this.librarySeparatelyLoaded=!!Lr().grecaptcha?.render}load(e,t=""){return U(ni(t),e,"argument-error"),this.shouldResolveImmediately(t)&&re(Lr().grecaptcha)?Promise.resolve(Lr().grecaptcha):new Promise((n,r)=>{const i=Lr().setTimeout(()=>{r(N(e,"network-request-failed"))},ei.get());Lr()[Zr]=()=>{Lr().clearTimeout(i),delete Lr()[Zr];const s=Lr().grecaptcha;if(!s||!re(s))return void r(N(e,"internal-error"));const o=s.render;s.render=(e,t)=>{const n=o(e,t);return this.counter++,n},this.hostLanguage=t,n(s)};nt(`${tt.recaptchaV2Script}?${(0,f.querystring)({onload:Zr,render:'explicit',hl:t})}`).catch(()=>{clearTimeout(i),r(N(e,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){return!!Lr().grecaptcha?.render&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}function ni(e){return e.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(e)}class ri{async load(e){return new st(e)}clearedOneInstance(){}}
1648/**
1649   * @license
1650   * Copyright 2020 Google LLC
1651   *
1652   * Licensed under the Apache License, Version 2.0 (the "License");
1653   * you may not use this file except in compliance with the License.
1654   * You may obtain a copy of the License at
1655   *
1656   *   http://www.apache.org/licenses/LICENSE-2.0
1657   *
1658   * Unless required by applicable law or agreed to in writing, software
1659   * distributed under the License is distributed on an "AS IS" BASIS,
1660   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1661   * See the License for the specific language governing permissions and
1662   * limitations under the License.
1663   */const ii='recaptcha',si={theme:'light',type:'image'};class oi{constructor(e,t,n=Object.assign({},si)){this.parameters=n,this.type=ii,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=Ze(e),this.isInvisible='invisible'===this.parameters.size,U('undefined'!=typeof document,this.auth,"operation-not-supported-in-this-environment");const r='string'==typeof t?document.getElementById(t):t;U(r,this.auth,"argument-error"),this.container=r,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new ri:new ti,this.validateStartingState()}async verify(){this.assertNotDestroyed();const e=await this.render(),t=this.getAssertedRecaptcha(),n=t.getResponse(e);return n||new Promise(n=>{const r=e=>{e&&(this.tokenChangeListeners.delete(r),n(e))};this.tokenChangeListeners.add(r),this.isInvisible&&t.execute(e)})}render(){try{this.assertNotDestroyed()}catch(e){return Promise.reject(e)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch(e=>{throw this.renderPromise=null,e})),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEac
1663h(e=>{this.container.removeChild(e)})}validateStartingState(){U(!this.parameters.sitekey,this.auth,"argument-error"),U(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),U('undefined'!=typeof document,this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(e){return t=>{if(this.tokenChangeListeners.forEach(e=>e(t)),'function'==typeof e)e(t);else if('string'==typeof e){const n=Lr()[e];'function'==typeof n&&n(t)}}}assertNotDestroyed(){U(!this.destroyed,this.auth,"internal-error")}async makeRenderPromise(){if(await this.init(),!this.widgetId){let e=this.container;if(!this.isInvisible){const t=document.createElement('div');e.appendChild(t),e=t}this.widgetId=this.getAssertedRecaptcha().render(e,this.parameters)}return this.widgetId}async init(){U(x()&&!Ur(),this.auth,"internal-error"),await ai(),this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);const e=await oe(this.auth);U(e,this.auth,"internal-error"),this.parameters.sitekey=e}getAssertedRecaptcha(){return U(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}function ai(){let e=null;return new Promise(t=>{'complete'!==document.readyState?(e=()=>t(),window.addEventListener('load',e)):t()}).catch(t=>{throw e&&window.removeEventListener('load',e),t})}
1664/**
1665   * @license
1666   * Copyright 2020 Google LLC
1667   *
1668   * Licensed under the Apache License, Version 2.0 (the "License");
1669   * you may not use this file except in compliance with the License.
1670   * You may obtain a copy of the License at
1671   *
1672   *   http://www.apache.org/licenses/LICENSE-2.0
1673   *
1674   * Unless required by applicable law or agreed to in writing, software
1675   * distributed under the License is distributed on an "AS IS" BASIS,
1676   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1677   * See the License for the specific language governing permissions and
1678   * limitations under the License.
1679   */class ci{constructor(e,t){this.verificationId=e,this.onConfirmation=t}confirm(e){const t=Wt._fromVerification(this.verificationId,e);return this.onConfirmation(t)}}async function ui(e,t,n){if((0,p._isFirebaseServerApp)(e.app))return Promise.reject(D(e));const r=Ze(e),i=await hi(r,t,(0,f.getModularInstance)(n));return new ci(i,e=>In(r,e))}async function di(e,t,n){const r=(0,f.getModularInstance)(e);await fn(!1,r,"phone");const i=await hi(r.auth,t,(0,f.getModularInstance)(n));return new ci(i,e=>_n(r,e))}async function li(e,t,n){const r=(0,f.getModularInstance)(e);if((0,p._isFirebaseServerApp)(r.auth.app))return Promise.reject(D(r.auth));const i=await hi(r.auth,t,(0,f.getModularInstance)(n));return new ci(i,e=>yn(r,e))}async function hi(e,t,n){if(!e._getRecaptchaConfig())try{await ft(e)}catch(e){console.log('Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.')}try{let r;if(r='string'==typeof t?{phoneNumber:t}:t,'session'in r){const t=r.session;if('phoneNumber'in r){U("enroll"===t.type,e,"internal-error");const i={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:r.phoneNumber,clientType:"CLIENT_TYPE_WEB"}},s=pt(e,i,"mfaSmsEnrollment",async(e,t)=>{if(t.phoneEnrollmentInfo.captchaResponse===dt){U(n?.type===ii,e,"argument-error");return fr(e,await fi(e,t,n))}return fr(e,t)},"PHONE_PROVIDER");return(await s.catch(e=>Promise.reject(e))).phoneSessionInfo.sessionInfo}{U("signin"===t.type,e,"internal-error");const i=r.multiFactorHint?.uid||r.multiFactorUid;U(i,e,"missing-multi-factor-info");const s={mfaPendingCredential:t.credential,mfaEnrollmentId:i,phoneSignInInfo:{clientType:"CLIENT_TYPE_WEB"}},o=pt(e,s,"mfaSmsSignIn",async(e,t)=>{if(t.phoneSignInInfo.captchaResponse===dt){U(n?.type===ii,e,"argument-error");return Yr(e,await fi(e,t,n))}return Yr(e,t)},"PHONE_PROVIDER");return(await o.catch(e=>Promise.reject(e))).phoneResponseInfo.sessionInfo}}{const t={phoneNumber:r.phoneNumber,clientType:"CLIENT_TYPE_WEB"},i=pt(e,t,"sendVerificationCode",async(e,t)=>{if(t.captchaResponse===dt){U(n?.type===ii,e,"argument-error");return Ft(e,await fi(e,t,n))}return Ft(e,t)},"PHONE_PROVIDER");return(await i.catch(e=>Promise.reject(e))).sessionInfo}}finally{n?._reset()}}async function pi(e,t){const n=(0,f.getModularInstance)(e);if((0,p._isFirebaseServerApp)(n.auth.app))return Promise.reject(D(n.auth));await pn(n,t)}async function fi(e,t,n){U(n.type===ii,e,"argument-error");const r=await n.verify();U('string'==typeof r,e,"argument-error");const i=Object.assign({},t);if('phoneEnrollmentInfo'in i){const e=i.phoneEnrollmentInfo.phoneNumber,t=i.phoneEnrollmentInfo.captchaResponse,n=i.phoneEnrollmentInfo.clientType,s=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:r,captchaResponse:t,clientType:n,recaptchaVersion:s}}),i}if('phoneSignInInfo'in i){const e=i.phoneSignInInfo.captchaResponse,t=i.phoneSignInInfo.clientType,n=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:r,captchaResponse:e,clientType:t,recaptchaVersion:n}}),i}return Object.assign(i,{recaptchaToken:r}),i}
1680/**
1681   * @license
1682   * Copyright 2020 Google LLC
1683   *
1684   * Licensed under the Apache License, Version 2.0 (the "License");
1685   * you may not use this file except in compliance with the License.
1686   * You may obtain a copy of the License at
1687   *
1688   *   http://www.apache.org/licenses/LICENSE-2.0
1689   *
1690   * Unless required by applicable law or agreed to in writing, software
1691   * distributed under the License is distributed on an "AS IS" BASIS,
1692   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1693   * See the License for the specific language governing permissions and
1694   * limitations under the License.
1695   */class mi{constructor(e){this.providerId=mi.PROVIDER_ID,this.auth=Ze(e)}verifyPhoneNumber(e,t){return hi(this.auth,e,(0,f.getModularInstance)(t))}static credential(e,t){return Wt._fromVerification(e,t)}static credentialFromResult(e){const t=e;return mi.credentialFromTaggedObject(t)}static credentialFromError(e){return mi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{phoneNumber:t,temporaryProof:n}=e;return t&&n?Wt._fromTokenResponse(t,n):null}}
1696/**
1697   * @license
1698   * Copyright 2021 Google LLC
1699   *
1700   * Licensed under the Apache License, Version 2.0 (the "License");
1701   * you may not use this file except in compliance with the License.
1702   * You may obtain a copy of the License at
1703   *
1704   *   http://www.apache.org/licenses/LICENSE-2.0
1705   *
1706   * Unless required by applicable law or agreed to in writing, software
1707   * distributed under the License is distributed on an "AS IS" BASIS,
1708   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1709   * See the License for the specific language governing permissions and
1710   * limitations under the License.
1711   */
1712function gi(e,t){return t?Ne(t):(U(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}
1713/**
1714   * @license
1715   * Copyright 2019 Google LLC
1716   *
1717   * Licensed under the Apache License, Version 2.0 (the "License");
1718   * you may not use this file except in compliance with the License.
1719   * You may obtain a copy of the License at
1720   *
1721   *   http://www.apache.org/licenses/LICENSE-2.0
1722   *
1723   * Unless required by applicable law or agreed to in writing, software
1724   * distributed under the License is distributed on an "AS IS" BASIS,
1725   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1726   * See the License for the specific language governing permissions and
1727   * limitations under the License.
1728   */mi.PROVIDER_ID="phone",mi.PHONE_SIGN_IN_METHOD="phone";class Ii extends Et{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Ut(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Ut(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Ut(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function _i(e){return gn(e.auth,new Ii(e),e.bypassAuthState)}function yi(e){const{auth:t,user:n}=e;return U(n,t,"internal-error"),mn(n,new Ii(e),e.bypassAuthState)}async function vi(e){const{auth:t,user:n}=e;return U(n,t,"internal-error"),pn(n,new Ii(e),e.bypassAuthState)}
1729/**
1730   * @license
1731   * Copyright 2020 Google LLC
1732   *
1733   * Licensed under the Apache License, Version 2.0 (the "License");
1734   * you may not use this file except in compliance with the License.
1735   * You may obtain a copy of the License at
1736   *
1737   *   http://www.apache.org/licenses/LICENSE-2.0
1738   *
1739   * Unless required by applicable law or agreed to in writing, software
1740   * distributed under the License is distributed on an "AS IS" BASIS,
1741   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1742   * See the License for the specific language governing permissions and
1743   * limitations under the License.
1744   */class Ti{constructor(e,t,n,r,i=!1){this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(e){this.reject(e)}})}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:s,type:o}=e;if(s)return void this.reject(s);const a={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(o)(a))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return _i;case"linkViaPopup":case"linkViaRedirect":return vi;case"reauthViaPopup":case"reauthViaRedirect":return yi;default:R(this.auth,"internal-error")}}resolve(e){F(this.pendingPromise,'Pending promise was never set'),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){F(this.pendingPromise,'Pending promise was never set'),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}
1745/**
1746   * @license
1747   * Copyright 2020 Google LLC
1748   *
1749   * Licensed under the Apache License, Version 2.0 (the "License");
1750   * you may not use this file except in compliance with the License.
1751   * You may obtain a copy of the License at
1752   *
1753   *   http://www.apache.org/licenses/LICENSE-2.0
1754   *
1755   * Unless required by applicable law or agreed to in writing, software
1756   * distributed under the License is distributed on an "AS IS" BASIS,
1757   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1758   * See the License for the specific language governing permissions and
1759   * limitations under the License.
1760   */const Ei=new W(2e3,1e4);async function wi(e,t,n){if((0,p._isFirebaseServerApp)(e.app))return Promise.reject(N(e,"operation-not-supported-in-this-environment"));const r=Ze(e);L(e,t,Jt);const i=gi(r,n);return new Ai(r,"signInViaPopup",t,i).executeNotNull()}async function bi(e,t,n){const r=(0,f.getModularInstance)(e);if((0,p._isFirebaseServerApp)(r.auth.app))return Promise.reject(N(r.auth,"operation-not-supported-in-this-environment"));L(r.auth,t,Jt);const i=gi(r.auth,n);return new Ai(r.auth,"reauthViaPopup",t,i,r).executeNotNull()}async function Pi(e,t,n){const r=(0,f.getModularInstance)(e);L(r.auth,t,Jt);const i=gi(r.auth,n);return new Ai(r.auth,"linkViaPopup",t,i,r).executeNotNull()}class Ai extends Ti{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,Ai.currentPopupAction&&Ai.currentPopupAction.cancel(),Ai.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return U(e,this.auth,"internal-error"),e}async onExecution(){F(1===this.filter.length,'Popup operations only handle one event');const e=Cr();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(N(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(N(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Ai.currentPopupAction=null}pollUserCancellation(){const e=()=>{this.authWindow?.window?.closed?this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(N(this.auth,"popup-closed-by-user"))},8e3):this.pollId=window.setTimeout(e,Ei.get())};e()}}Ai.currentPopupAction=null;
1761/**
1762   * @license
1763   * Copyright 2020 Google LLC
1764   *
1765   * Licensed under the Apache License, Version 2.0 (the "License");
1766   * you may not use this file except in compliance with the License.
1767   * You may obtain a copy of the License at
1768   *
1769   *   http://www.apache.org/licenses/LICENSE-2.0
1770   *
1771   * Unless required by applicable law or agreed to in writing, software
1772   * distributed under the License is distributed on an "AS IS" BASIS,
1773   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1774   * See the License for the specific language governing permissions and
1775   * limitations under the License.
1776   */
1777const Si='pendingRedirect',Oi=new Map;class ki extends Ti{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}async execute(){let e=Oi.get(this.auth._key());if(!e){try{const t=await Ri(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}Oi.set(this.auth._key(),e)}return this.bypassAuthState||Oi.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}async function Ri(e,t){const n=Mi(t),r=Li(e);if(!await r._isAvailable())return!1;const i='true'===await r._get(n);return await r._remove(n),i}async function Ni(e,t){return Li(e)._set(Mi(t),'true')}function Ci(){Oi.clear()}function Di(e,t){Oi.set(e._key(),t)}function Li(e){return Ne(e._redirectPersistence)}function Mi(e){return Le(Si,e.config.apiKey,e.name)}
1778/**
1779   * @license
1780   * Copyright 2020 Google LLC
1781   *
1782   * Licensed under the Apache License, Version 2.0 (the "License");
1783   * you may not use this file except in compliance with the License.
1784   * You may obtain a copy of the License at
1785   *
1786   *   http://www.apache.org/licenses/LICENSE-2.0
1787   *
1788   * Unless required by applicable law or agreed to in writing, software
1789   * distributed under the License is distributed on an "AS IS" BASIS,
1790   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1791   * See the License for the specific language governing permissions and
1792   * limitations under the License.
1793   */function Ui(e,t,n){return ji(e,t,n)}async function ji(e,t,n){if((0,p._isFirebaseServerApp)(e.app))return Promise.reject(D(e));const r=Ze(e);L(e,t,Jt),await r._initializationPromise;const i=gi(r,n);return await Ni(i,r),i._openRedirect(r,t,"signInViaRedirect")}function Fi(e,t,n){return Vi(e,t,n)}async function Vi(e,t,n){const r=(0,f.getModularInstance)(e);if(L(r.auth,t,Jt),(0,p._isFirebaseServerApp)(r.auth.app))return Promise.reject(D(r.auth));await r.auth._initializationPromise;const i=gi(r.auth,n);await Ni(i,r.auth);const s=await zi(r);return i._openRedirect(r.auth,t,"reauthViaRedirect",s)}function xi(e,t,n){return Hi(e,t,n)}async function Hi(e,t,n){const r=(0,f.getModularInstance)(e);L(r.auth,t,Jt),await r.auth._initializationPromise;const i=gi(r.auth,n);await fn(!1,r,t.providerId),await Ni(i,r.auth);const s=await zi(r);return i._openRedirect(r.auth,t,"linkViaRedirect",s)}async function qi(e,t){return await Ze(e)._initializationPromise,Wi(e,t,!1)}async function Wi(e,t,n=!1){if((0,p._isFirebaseServerApp)(e.app))return Promise.reject(D(e));const r=Ze(e),i=gi(r,t),s=new ki(r,i,n),o=await s.execute();return o&&!n&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,t)),o}async function zi(e){const t=Cr(`${e.uid}:::`);return e._redirectEventId=t,await e.auth._setRedirectUser(e),await e.auth._persistUserIfCurrent(e),t}
1794/**
1795   * @license
1796   * Copyright 2020 Google LLC
1797   *
1798   * Licensed under the Apache License, Version 2.0 (the "License");
1799   * you may not use this file except in compliance with the License.
1800   * You may obtain a copy of the License at
1801   *
1802   *   http://www.apache.org/licenses/LICENSE-2.0
1803   *
1804   * Unless required by applicable law or agreed to in writing, software
1805   * distributed under the License is distributed on an "AS IS" BASIS,
1806   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1807   * See the License for the specific language governing permissions and
1808   * limitations under the License.
1809   */class Gi{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!Bi(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){if(e.error&&!$i(e)){const n=e.error.code?.split('auth/')[1]||"internal-error";t.onError(N(this.auth,n))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Ki(e))}saveEventToCache(e){this.cachedEventUids.add(Ki(e)),this.lastProcessedEventTime=Date.now()}}function Ki(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join('-')}function $i({type:e,error:t}){return"unknown"===e&&"auth/no-auth-event"===t?.code}function Bi(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return $i(e);default:return!1}}
1810/**
1811   * @license
1812   * Copyright 2020 Google LLC
1813   *
1814   * Licensed under the Apache License, Version 2.0 (the "License");
1815   * you may not use this file except in compliance with the License.
1816   * You may obtain a copy of the License at
1817   *
1818   *   http://www.apache.org/licenses/LICENSE-2.0
1819   *
1820   * Unless required by applicable law or agreed to in writing, software
1821   * distributed under the License is distributed on an "AS IS" BASIS,
1822   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1823   * See the License for the specific language governing permissions and
1824   * limitations under the License.
1825   */async function Ji(e,t={}){return Y(e,"GET","/v1/projects",t)}
1826/**
1827   * @license
1828   * Copyright 2020 Google LLC
1829   *
1830   * Licensed under the Apache License, Version 2.0 (the "License");
1831   * you may not use this file except in compliance with the License.
1832   * You may obtain a copy of the License at
1833   *
1834   *   http://www.apache.org/licenses/LICENSE-2.0
1835   *
1836   * Unless required by applicable law or agreed to in writing, software
1837   * distributed under the License is distributed on an "AS IS" BASIS,
1838   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1839   * See the License for the specific language governing permissions and
1840   * limitations under the License.
1841   */const Yi=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Xi=/^https?/;async function Qi(e){if(e.config.emulator)return;const{authorizedDomains:t}=await Ji(e);for(const e of t)try{if(Zi(e))return}catch{}R(e,"unauthorized-domain")}function Zi(e){const t=V(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith('chrome-extension://')){const i=new URL(e);return''===i.hostname&&''===r?'chrome-extension:'===n&&e.replace('chrome-extension://','')===t.replace('chrome-extension://',''):'chrome-extension:'===n&&i.hostname===r}if(!Xi.test(n))return!1;if(Yi.test(e))return r===e;const i=e.replace(/\./g,'\\.');return new RegExp('^(.+\\.'+i+'|'+i+')$','i').test(r)}
1842/**
1843   * @license
1844   * Copyright 2020 Google LLC.
1845   *
1846   * Licensed under the Apache License, Version 2.0 (the "License");
1847   * you may not use this file except in compliance with the License.
1848   * You may obtain a copy of the License at
1849   *
1850   *   http://www.apache.org/licenses/LICENSE-2.0
1851   *
1852   * Unless required by applicable law or agreed to in writing, software
1853   * distributed under the License is distributed on an "AS IS" BASIS,
1854   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1855   * See the License for the specific language governing permissions and
1856   * limitations under the License.
1857   */const es=new W(3e4,6e4);function ts(){const e=Lr().___jsl;if(e?.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let t=0;t<e.CP.length;t++)e.CP[t]=null}function ns(e){return new Promise((t,n)=>{function r(){ts(),gapi.load('gapi.iframes',{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{ts(),n(N(e,"network-request-failed"))},timeout:es.get()})}if(Lr().gapi?.iframes?.Iframe)t(gapi.iframes.getContext());else{if(!Lr().gapi?.load){const t=rt('iframefcb');return Lr()[t]=()=>{gapi.load?r():n(N(e,"network-request-failed"))},nt(`${tt.gapiScript}?onload=${t}`).catch(e=>n(e))}r()}}).catch(e=>{throw rs=null,e})}let rs=null;function is(e){return rs=rs||ns(e),rs}
1858/**
1859   * @license
1860   * Copyright 2020 Google LLC.
1861   *
1862   * Licensed under the Apache License, Version 2.0 (the "License");
1863   * you may not use this file except in compliance with the License.
1864   * You may obtain a copy of the License at
1865   *
1866   *   http://www.apache.org/licenses/LICENSE-2.0
1867   *
1868   * Unless required by applicable law or agreed to in writing, software
1869   * distributed under the License is distributed on an "AS IS" BASIS,
1870   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1871   * See the License for the specific language governing permissions and
1872   * limitations under the License.
1873   */const ss=new W(5e3,15e3),os={style:{position:'absolute',top:'-100px',width:'1px',height:'1px'},'aria-hidden':'true',tabindex:'-1'},as=new Map([["identitytoolkit.googleapis.com",'p'],['staging-identitytoolkit.sandbox.googleapis.com','s'],['test-identitytoolkit.sandbox.googleapis.com','t']]);function cs(e){const t=e.config;U(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?z(t,"emulator/auth/iframe"):`https://${e.config.authDomain}
1873/__/auth/iframe`,r={apiKey:t.apiKey,appName:e.name,v:p.SDK_VERSION},i=as.get(e.config.apiHost);i&&(r.eid=i);const s=e._getFrameworks();return s.length&&(r.fw=s.join(',')),`${n}?${(0,f.querystring)(r).slice(1)}`}async function us(e){const t=await is(e),n=Lr().gapi;return U(n,e,"internal-error"),t.open({where:document.body,url:cs(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:os,dontclear:!0},t=>new Promise(async(n,r)=>{await t.restyle({setHideOnLeave:!1});const i=N(e,"network-request-failed"),s=Lr().setTimeout(()=>{r(i)},ss.get());function o(){Lr().clearTimeout(s),n(t)}t.ping(o).then(o,()=>{r(i)})}))}
1874/**
1875   * @license
1876   * Copyright 2020 Google LLC.
1877   *
1878   * Licensed under the Apache License, Version 2.0 (the "License");
1879   * you may not use this file except in compliance with the License.
1880   * You may obtain a copy of the License at
1881   *
1882   *   http://www.apache.org/licenses/LICENSE-2.0
1883   *
1884   * Unless required by applicable law or agreed to in writing, software
1885   * distributed under the License is distributed on an "AS IS" BASIS,
1886   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1887   * See the License for the specific language governing permissions and
1888   * limitations under the License.
1889   */const ds={location:'yes',resizable:'yes',statusbar:'yes',toolbar:'no'};class ls{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function hs(e,t,n,r=500,i=600){const s=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString();let a='';const c=Object.assign({},ds,{width:r.toString(),height:i.toString(),top:s,left:o}),u=(0,f.getUA)().toLowerCase();n&&(a=Ve(u)?"_blank":n),je(u)&&(t=t||"http://localhost",c.scrollbars='yes');const d=Object.entries(c).reduce((e,[t,n])=>`${e}${t}=${n},`,'');if(Ke(u)&&'_self'!==a)return ps(t||'',a),new ls(null);const l=window.open(t||'',a,d);U(l,e,"popup-blocked");try{l.focus()}catch(e){}return new ls(l)}function ps(e,t){const n=document.createElement('a');n.href=e,n.target=t;const r=document.createEvent('MouseEvent');r.initMouseEvent('click',!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}
1890/**
1891   * @license
1892   * Copyright 2021 Google LLC
1893   *
1894   * Licensed under the Apache License, Version 2.0 (the "License");
1895   * you may not use this file except in compliance with the License.
1896   * You may obtain a copy of the License at
1897   *
1898   *   http://www.apache.org/licenses/LICENSE-2.0
1899   *
1900   * Unless required by applicable law or agreed to in writing, software
1901   * distributed under the License is distributed on an "AS IS" BASIS,
1902   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1903   * See the License for the specific language governing permissions and
1904   * limitations under the License.
1905   */const fs='__/auth/handler',ms='emulator/auth/handler',gs=encodeURIComponent('fac');async function Is(e,t,n,r,i,s){U(e.config.authDomain,e,"auth-domain-config-required"),U(e.config.apiKey,e,"invalid-api-key");const o={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:p.SDK_VERSION,eventId:i};if(t instanceof Jt){t.setDefaultLanguage(e.languageCode),o.providerId=t.providerId||'',(0,f.isEmpty)(t.getCustomParameters())||(o.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(s||{}))o[e]=t}if(t instanceof Yt){const e=t.getScopes().filter(e=>''!==e);e.length>0&&(o.scopes=e.join(','))}e.tenantId&&(o.tid=e.tenantId);const a=o;for(const e of Object.keys(a))void 0===a[e]&&delete a[e];const c=await e._getAppCheckToken(),u=c?`#${gs}=${encodeURIComponent(c)}`:'';return`${_s(e)}?${(0,f.querystring)(a).slice(1)}${u}`}function _s({config:e}){return e.emulator?z(e,ms):`https://${e.authDomain}/${fs}`}
1906/**
1907   * @license
1908   * Copyright 2020 Google LLC
1909   *
1910   * Licensed under the Apache License, Version 2.0 (the "License");
1911   * you may not use this file except in compliance with the License.
1912   * You may obtain a copy of the License at
1913   *
1914   *   http://www.apache.org/licenses/LICENSE-2.0
1915   *
1916   * Unless required by applicable law or agreed to in writing, softw
1916are
1917   * distributed under the License is distributed on an "AS IS" BASIS,
1918   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1919   * See the License for the specific language governing permissions and
1920   * limitations under the License.
1921   */const ys='webStorageSupport';const vs=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=kr,this._completeRedirectFn=Wi,this._overrideRedirectResult=Di}async _openPopup(e,t,n,r){F(this.eventManagers[e._key()]?.manager,'_initialize() not called before _openPopup()');return hs(e,await Is(e,t,n,V(),r),Cr())}async _openRedirect(e,t,n,r){await this._originValidation(e);return Mr(await Is(e,t,n,V(),r)),new Promise(()=>{})}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(F(n,'If manager is not set, promise should be'),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){const t=await us(e),n=new Gi(e);return t.register('authEvent',t=>{U(t?.authEvent,e,"invalid-auth-event");return{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(ys,{type:ys},n=>{const r=n?.[0]?.[ys];void 0!==r&&t(!!r),R(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=Qi(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return $e()||Fe()||ze()}};class Ts{constructor(e){this.factorId=e}_process(e,t,n){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,n);case"signin":return this._finalizeSignIn(e,t.credential);default:return j('unexpected MultiFactorSessionType')}}}class Es extends Ts{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new Es(e)}_finalizeEnroll(e,t,n){return mr(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(e,t){return Xr(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}class ws{constructor(){}static assertion(e){return Es._fromCredential(e)}}ws.FACTOR_ID='phone';class bs{static assertionForEnrollment(e,t){return Ps._fromSecret(e,t)}static assertionForSignIn(e,t){return Ps._fromEnrollmentId(e,t)}static async generateSecret(e){const t=e;U(void 0!==t.user?.auth,"internal-error");const n=await(r=t.user.auth,i={idToken:t.credential,totpEnrollmentInfo:{}},Y(r,"POST","/v2/accounts/mfaEnrollment:start",J(r,i)));var r,i;return As._fromStartTotpMfaEnrollmentResponse(n,t.user.auth)}}bs.FACTOR_ID="totp";class Ps extends Ts{constructor(e,t,n){super("totp"),this.otp=e,this.enrollmentId=t,this.secret=n}static _fromSecret(e,t){return new Ps(t,void 0,e)}static _fromEnrollmentId(e,t){return new Ps(t,e)}async _finalizeEnroll(e,t,n){return U(void 0!==this.secret,e,"argument-error"),gr(e,{idToken:t,displayName:n,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)})}async _finalizeSignIn(e,t){U(void 0!==this.enrollmentId&&void 0!==this.otp,e,"argument-error");const n={verificationCode:this.otp};return Qr(e,{mfaPendingCredential:t,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:n})}}class As{constructor(e,t,n,r,i,s,o){this.sessionInfo=s,this.auth=o,this.secretKey=e,this.hashingAlgorithm=t,this.codeLength=n,this.codeIntervalSeconds=r,this.enrollmentCompletionDeadline=i}static _fromStartTotpMfaEnrollmentResponse(e,t){return new As(e.totpSessionInfo.sharedSecretKey,e.totpSessionInfo.hashingAlgorithm,e.totpSessionInfo.verificationCodeLength,e.totpSessionInfo.periodSec,new Date(e.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),e.totpSessionInfo.sessionInfo,t)}_makeTotpVerificationInfo(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}generateQrCodeUrl(e,t){let n=!1;return(Ss(e)||Ss(t))&&(n=!0),n&&(Ss(e)&&(e=this.auth.currentUser?.email||'unknownuser'),Ss(t)&&(t=this.auth.name)),`otpauth://totp/${t}:${e}?secret=${this.secretKey}&issuer=${t}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}}function Ss(e){return void 0===e||0===e?.length}var Os="@firebase/auth",ks="1.13.0";
1922/**
1923   * @license
1924   * Copyright 2020 Google LLC
1925   *
1926   * Licensed under the Apache License, Version 2.0 (the "License");
1927   * you may not use this file except in compliance with the License.
1928   * You may obtain a copy of the License at
1929   *
1930   *   http://www.apache.org/licenses/LICENSE-2.0
1931   *
1932   * Unless required by applicable law or agreed to in writing, software
1933   * distributed under the License is distributed on an "AS IS" BASIS,
1934   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1935   * See the License for the specific language governing permissions and
1936   * limitations under the License.
1937   */
1938class Rs{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged(t=>{e(t?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){U(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}
1939/**
1940   * @license
1941   * Copyright 2020 Google LLC
1942   *
1943   * Licensed under the Apache License, Version 2.0 (the "License");
1944   * you may not use this file except in compliance with the License.
1945   * You may obtain a copy of the License at
1946   *
1947   *   http://www.apache.org/licenses/LICENSE-2.0
1948   *
1949   * Unless required by applicable law or agreed to in writing, software
1950   * distributed under the License is distributed on an "AS IS" BASIS,
1951   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1952   * See the License for the specific language governing permissions and
1953   * limitations under the License.
1954   */function Ns(e){switch(e){case"Node":return'node';case"ReactNative":return'rn';case"Worker":return'webworker';case"Cordova":return'cordova';case"WebExtension":return'web-extension';default:return}}
1955/**
1956   * @license
1957   * Copyright 2021 Google LLC
1958   *
1959   * Licensed under the Apache License, Version 2.0 (the "License");
1960   * you may not use this file except in compliance with the License.
1961   * You may obtain a copy of the License at
1962   *
1963   *   http://www.apache.org/licenses/LICENSE-2.0
1964   *
1965   * Unless required by applicable law or agreed to in writing, software
1966   * distributed under the License is distributed on an "AS IS" BASIS,
1967   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1968   * See the License for the specific language governing permissions and
1969   * limitations under the License.
1970   */
1971const Cs=(0,f.getExperimentalSetting)('authIdTokenMaxAge')||300;let Ds=null;const Ls=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&((new Date).getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>Cs)return;const i=n?.token;Ds!==i&&(Ds=i,await fetch(e,{method:i?'POST':'DELETE',headers:i?{Authorization:`Bearer ${i}`}:{}}))};function Ms(e=(0,p.getApp)()){const t=(0,p._getProvider)(e,'auth');if(t.isInitialized())return t.getImmediate();const n=mt(e,{popupRedirectResolver:vs,persistence:[Jr,wr,kr]}),r=(0,f.getExperimentalSetting)('authTokenSyncURL');if(r&&'boolean'==typeof isSecureContext&&isSecureContext){const e=new URL(r,location.origin);if(location.origin===e.origin){const t=Ls(e.toString());ir(n,t,()=>t(n.currentUser)),rr(n,e=>t(e))}}const i=(0,f.getDefaultEmulatorHost)('auth');return i&&It(n,`http://${i}`),n}var Us,js;Us={loadJS:e=>new Promise((t,n)=>{const r=document.createElement('script');r.setAttribute('src',e),r.onload=t,r.onerror=e=>{const t=N("internal-error");t.customData=e,n(t)},r.type='text/javascript',r.charset='UTF-8',(document.getElementsByTagName('head')?.[0]??document).appendChild(r)}
1971),gapiScript:'https://apis.google.com/js/api.js',recaptchaV2Script:'https://www.google.com/recaptcha/api.js',recaptchaEnterpriseScript:'https://www.google.com/recaptcha/enterprise.js?render='},tt=Us,js="Browser",(0,p._registerComponent)(new g.Component("auth",(e,{options:t})=>{const n=e.getProvider('app').getImmediate(),r=e.getProvider('heartbeat'),i=e.getProvider('app-check-internal'),{apiKey:s,authDomain:o}=n.options;U(s&&!s.includes(':'),"invalid-api-key",{appName:n.name});const a={apiKey:s,authDomain:o,clientPlatform:js,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Be(js)},c=new Qe(n,r,i,a);return gt(c,t),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{e.getProvider("auth-internal").initialize()})),(0,p._registerComponent)(new g.Component("auth-internal",e=>(e=>new Rs(e))(Ze(e.getProvider("auth").getImmediate())),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,p.registerVersion)(Os,ks,Ns(js)),(0,p.registerVersion)(Os,ks,'esm2020')},180,[129,181,183,185,182]);
1972__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FirebaseError",{enumerable:!0,get:function(){return n.FirebaseError}}),Object.defineProperty(_e,"SDK_VERSION",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(_e,"_DEFAULT_ENTRY_NAME",{enumerable:!0,get:function(){return H}}),Object.defineProperty(_e,"_addComponent",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"_addOrOverwriteComponent",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"_apps",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"_clearComponents",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(_e,"_components",{enumerable:!0,get:function(){return J}}),Object.defineProperty(_e,"_getProvider",{enumerable:!0,get:function(){return K}}),Object.defineProperty(_e,"_isFirebaseApp",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e,"_isFirebaseServerApp",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"_isFirebaseServerAppSettings",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(_e,"_registerComponent",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"_removeServiceInstance",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(_e,"_serverApps",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"deleteApp",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(_e,"getApp",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(_e,"getApps",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(_e,"initializeApp",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(_e,"initializeServerApp",{enumerable:!0,get:function(){return se}}),Object.defineProperty(_e,"onLog",{enumerable:!0,get:function(){return he}}),Object.defineProperty(_e,"registerVersion",{enumerable:!0,get:function(){return le}}),Object.defineProperty(_e,"setLogLevel",{enumerable:!0,get:function(){return ue}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),i=r(d[3]);
1973/**
1974   * @license
1975   * Copyright 2019 Google LLC
1976   *
1977   * Licensed under the Apache License, Version 2.0 (the "License");
1978   * you may not use this file except in compliance with the License.
1979   * You may obtain a copy of the License at
1980   *
1981   *   http://www.apache.org/licenses/LICENSE-2.0
1982   *
1983   * Unless required by applicable law or agreed to in writing, software
1984   * distributed under the License is distributed on an "AS IS" BASIS,
1985   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1986   * See the License for the specific language governing permissions and
1987   * limitations under the License.
1988   */
1989class o{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(s(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null}).filter(e=>e).join(' ')}}function s(e){const t=e.getComponent();return"VERSION"===t?.type}const c="@firebase/app",p="0.14.11",f=new t.Logger('@firebase/app'),l="@firebase/app-compat",h="@firebase/analytics-compat",u="@firebase/analytics",b="@firebase/app-check-compat",v="@firebase/app-check",C="@firebase/auth",_="@firebase/auth-compat",y="@firebase/database",w="@firebase/data-connect",D="@firebase/database-compat",O="@firebase/functions",E="@firebase/functions-compat",P="@firebase/installations",S="@firebase/installations-compat",j="@firebase/messaging",A="@firebase/messaging-compat",I="@firebase/performance",k="@firebase/performance-compat",F="@firebase/remote-config",$="@firebase/remote-config-compat",N="@firebase/storage",x="@firebase/storage-compat",R="@firebase/firestore",T="@firebase/ai",B="@firebase/firestore-compat",z="firebase",H='[DEFAULT]',M={[c]:'fire-core',[l]:'fire-core-compat',[u]:'fire-analytics',[h]:'fire-analytics-compat',[v]:'fire-app-check',[b]:'fire-app-check-compat',[C]:'fire-auth',[_]:'fire-auth-compat',[y]:'fire-rtdb',[w]:'fire-data-connect',[D]:'fire-rtdb-compat',[O]:'fire-fn',[E]:'fire-fn-compat',[P]:'fire-iid',[S]:'fire-iid-compat',[j]:'fire-fcm',[A]:'fire-fcm-compat',[I]:'fire-perf',[k]:'fire-perf-compat',[F]:'fire-rc',[$]:'fire-rc-compat',[N]:'fire-g
1989cs',[x]:'fire-gcs-compat',[R]:'fire-fst',[B]:'fire-fst-compat',[T]:'fire-vertex','fire-js':'fire-js',[z]:'fire-js-all'},L=new Map,U=new Map,J=new Map;function V(e,t){try{e.container.addComponent(t)}catch(n){f.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function W(e,t){e.container.addOrOverwriteComponent(t)}function q(e){const t=e.name;if(J.has(t))return f.debug(`There were multiple attempts to register component ${t}.`),!1;J.set(t,e);for(const t of L.values())V(t,e);for(const t of U.values())V(t,e);return!0}function K(e,t){const n=e.container.getProvider('heartbeat').getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Y(e,t,n=H){K(e,t).clearInstance(n)}function G(e){return void 0!==e.options}function Q(e){return!G(e)&&('authIdToken'in e||'appCheckToken'in e||'releaseOnDeref'in e||'automaticDataCollectionEnabled'in e)}function X(e){return null!=e&&void 0!==e.settings}function Z(){J.clear()}
1990/**
1991   * @license
1992   * Copyright 2019 Google LLC
1993   *
1994   * Licensed under the Apache License, Version 2.0 (the "License");
1995   * you may not use this file except in compliance with the License.
1996   * You may obtain a copy of the License at
1997   *
1998   *   http://www.apache.org/licenses/LICENSE-2.0
1999   *
2000   * Unless required by applicable law or agreed to in writing, software
2001   * distributed under the License is distributed on an "AS IS" BASIS,
2002   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2003   * See the License for the specific language governing permissions and
2004   * limitations under the License.
2005   */const ee={"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","server-app-deleted":'Firebase Server App has been deleted',"no-options":'Need to provide options, when not being deployed to hosting via source.',"invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
2005d-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}.',"finalization-registry-not-supported":'FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.',"invalid-server-app-environment":'FirebaseServerApp is not for use in browser environments.'},te=new n.ErrorFactory('app','Firebase',ee);
2006/**
2007   * @license
2008   * Copyright 2019 Google LLC
2009   *
2010   * Licensed under the Apache License, Version 2.0 (the "License");
2011   * you may not use this file except in compliance with the License.
2012   * You may obtain a copy of the License at
2013   *
2014   *   http://www.apache.org/licenses/LICENSE-2.0
2015   *
2016   * Unless required by applicable law or agreed to in writing, software
2017   * distributed under the License is distributed on an "AS IS" BASIS,
2018   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2019   * See the License for the specific language governing permissions and
2020   * limitations under the License.
2021   */
2022class re{constructor(t,n,i){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=i,this.container.addComponent(new e.Component('app',()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}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(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw te.create("app-deleted",{appName:this._name})}}
2023/**
2024   * @license
2025   * Copyright 2023 Google LLC
2026   *
2027   * Licensed under the Apache License, Version 2.0 (the "License");
2028   * you may not use this file except in compliance with the License.
2029   * You may obtain a copy of the License at
2030   *
2031   *   http://www.apache.org/licenses/LICENSE-2.0
2032   *
2033   * Unless required by applicable law or agreed to in writing, software
2034   * distributed under the License is distributed on an "AS IS" BASIS,
2035   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2036   * See the License for the specific language governing permissions and
2037   * limitations under the License.
2038   */function ae(e,t){const i=(0,n.base64Decode)(e.split('.')[1]);if(null===i)return void console.error(`FirebaseServerApp ${t} is invalid: second part could not be parsed.`);if(void 0===JSON.parse(i).exp)return void console.error(`FirebaseServerApp ${t} is invalid: expiration claim could not be parsed`);1e3*JSON.parse(i).exp-(new Date).getTime()<=0&&console.error(`FirebaseServerApp ${t} is invalid: the token has expired.`)}class ne extends re{constructor(e,t,n,i){const o=void 0===t.automaticDataCollectionEnabled||t.automaticDataCollectionEnabled,s={name:n,automaticDataCollectionEnabled:o};if(void 0!==e.apiKey)super(e,s,i);else{super(e.options,s,i)}this._serverConfig=Object.assign({automaticDataCollectionEnabled:o},t),this._serverConfig.authIdToken&&ae(this._serverConfig.authIdToken,'authIdToken'),this._serverConfig.appCheckToken&&ae(this._serverConfig.appCheckToken,'appCheckToken'),this._finalizationRegistry=null,'undefined'!=typeof FinalizationRegistry&&(this._finalizationRegistry=new FinalizationRegistry(()=>{this.automaticCleanup()})),this._refCount=0,this.incRefCount(this._serverConfig.releaseOnDeref),this._serverConfig.releaseOnDeref=void 0,t.releaseOnDeref=void 0,le(c,p,'serverapp')}toJSON(){}get refCount(){return this._refCount}incRefCount(e){this.isDeleted||(this._refCount++,void 0!==e&&null!==this._finalizationRegistry&&this._finalizationRegistry.register(e,this))}decRefCount(){return this.isDeleted?0:--this._refCount}automaticCleanup(){fe(this)}get settings(){return this.checkDestroyed(),this._serverConfig}checkDestroyed(){if(this.isDeleted)throw te.create("server-app-deleted")}}
2039/**
2040   * @license
2041   * Copyright 2019 Google LLC
2042   *
2043   * Licensed under the Apache License, Version 2.0 (the "License");
2044   * you may not use this file except in compliance with the License.
2045   * You may obtain a copy of the License at
2046   *
2047   *   http://www.apache.org/licenses/LICENSE-2.0
2048   *
2049   * Unless required by applicable law or agreed to in writing, software
2050   * distributed under the License is distributed on an "AS IS" BASIS,
2051   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2052   * See the License for the specific language governing permissions and
2053   * limitations under the License.
2054   */const ie="12.12.0";function oe(t,i={}){let o=t;if('object'!=typeof i){i={name:i}}const s=Object.assign({name:H,automaticDataCollectionEnabled:!0},i),c=s.name;if('string'!=typeof c||!c)throw te.create("bad-app-name",{appName:String(c)});if(o||(o=(0,n.getDefaultAppConfig)()),!o)throw te.create("no-options");const p=L.get(c);if(p){if((0,n.deepEqual)(o,p.options)&&(0,n.deepEqual)(s,p.config))return p;throw te.create("duplicate-app",{appName:c})}const f=new e.ComponentContainer(c);for(const e of J.values())f.addComponent(e);const l=new re(o,s,f);return L.set(c,l),l}function se(t,i={}){if((0,n.isBrowser)()&&!(0,n.isWebWorker)())throw te.create("invalid-server-app-environment");let o,s=i||{};if(t&&(G(t)?o=t.options:Q(t)?s=t:o=t),void 0===s.automaticDataCollectionEnabled&&(s.automaticDataCollectionEnabled=!0),o||(o=(0,n.getDefaultAppConfig)()),!o)throw te.create("no-options");const c=Object.assign({},s,o);void 0!==c.releaseOnDeref&&delete c.releaseOnDeref;if(void 0!==s.releaseOnDeref&&'undefined'==typeof FinalizationRegistry)throw te.create("finalization-registry-not-supported",{});const p=''+(f=JSON.stringify(c),[...f].reduce((e,t)=>Math.imul(31,e)+t.charCodeAt(0)|0,0));var f;const l=U.get(p);if(l)return l.incRefCount(s.releaseOnDeref),l;const h=new e.ComponentContainer(p);for(const e of J.values())h.addComponent(e);const u=new ne(o,s,p,h);return U.set(p,u),u}function ce(e=H){const t=L.get(e);if(!t&&e===H&&(0,n.getDefaultAppConfig)())return oe();if(!t)throw te.create("no-app",{appName:e});return t}function pe(){return Array.from(L.values())}async function fe(e){let t=!1;const n=e.name;if(L.has(n))t=!0,L.delete(n);else if(U.has(n)){e.decRefCount()<=0&&(U.delete(n),t=!0)}t&&(await Promise.all(e.container.getProviders().map(e=>e.delete())),e.isDeleted=!0)}function le(t,n,i){let o=M[t]??t;i&&(o+=`-${i}`);const s=o.match(/\s|\//),c=n.match(/\s|\//);if(s||c){const e=[`Unable to register library "${o}" with version "${n}":`];return s&&e.push(`library name "${o}" contains illegal characters (whitespace or "/")`),s&&c&&e.push('and'),c&&e.push(`version name "${n}" contains illegal characters (whitespace or "/")`),void f.warn(e.join(' '))}q(new e.Component(`${o}-version`,()=>({library:o,version:n}),"VERSION"))}function he(e,n){if(null!==e&&'function'!=typeof e)throw te.create("invalid-log-argument");(0,t.setUserLogHandler)(e,n)}function ue(e){(0,t.setLogLevel)(e)}
2055/**
2056   * @license
2057   * Copyright 2021 Google LLC
2058   *
2059   * Licensed under the Apache License, Version 2.0 (the "License");
2060   * you may not use this file except in compliance with the License.
2061   * You may obtain a copy of the License at
2062   *
2063   *   http://www.apache.org/licenses/LICENSE-2.0
2064   *
2065   * Unless required by applicable law or agreed to in writing, software
2066   * distributed under the License is distributed on an "AS IS" BASIS,
2067   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2068   * See the License for the specific language governing permissions and
2069   * limitations under the License.
2070   */const de='firebase-heartbeat-store';let be=null;function ge(){return be||(be=(0,i.openDB)("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(de)}catch(e){console.warn(e)}}}).catch(e=>{throw te.create("idb-open",{originalErrorMessage:e.message})})),be}async function me(e){try{const t=(await ge()).transaction(de),n=await t.objectStore(de).get(Ce(e));return await t.done,n}catch(e){if(e instanceof n.FirebaseError)f.warn(e.message);else{const t=te.create("idb-get",{originalErrorMessage:e?.message});f.warn(t.message)}}}async function ve(e,t){try{const n=(await ge()).transaction(de,'readwrite'),i=n.objectStore(de);await i.put(t,Ce(e)),await n.done}catch(e){if(e instanceof n.FirebaseError)f.warn(e.message);else{const t=te.create("idb-set",{originalErrorMessage:e?.message});f.warn(t.message)}}}function Ce(e){return`${e.name}!${e.options.appId}`}
2071/**
2072   * @license
2073   * Copyright 2021 Google LLC
2074   *
2075   * Licensed under the Apache License, Version 2.0 (the "License");
2076   * you may not use this file except in compliance with the License.
2077   * You may obtain a copy of the License at
2078   *
2079   *   http://www.apache.org/licenses/LICENSE-2.0
2080   *
2081   * Unless required by applicable law or agreed to in writing, software
2082   * distributed under the License is distributed on an "AS IS" BASIS,
2083   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2084   * See the License for the specific language governing permissions and
2085   * limitations under the License.
2086   */class ye{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider('app').getImmediate();this._storage=new Oe(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){try{const e=this.container.getProvider('platform-logger').getImmediate().getPlatformInfoString(),t=we();if(null==this._heartbeatsCache?.heartbeats&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==this._heartbeatsCache?.heartbeats))return;if(this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(e=>e.date===t))return;if(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats.length>30){const e=Pe(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){f.warn(e)}}async getHeartbeatsHeader(){try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==this._heartbeatsCache?.heartbeats||0===this._heartbeatsCache.heartbeats.length)return'';const e=we(),{heartbeatsToSend:t,unsentEntries:i}=De(this._heartbeatsCache.heartbeats),o=(0,n.base64urlEncodeWithoutPadding)(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(e){return f.warn(e),''}}}function we(){return(new Date).toISOString().substring(0,10)}function De(e,t=1024){const n=[];let i=e.slice();for(const o of e){const e=n.find(e=>e.agent===o.agent);if(e){if(e.dates.push(o.date),Ee(n)>t){e.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),Ee(n)>t){n.pop();break}i=i.slice(1)}return{heartbeatsToSend:n,unsentEntries:i}}class Oe{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,n.isIndexedDBAvailable)()&&(0,n.validateIndexedDBOpenable)().then(()=>!0).catch(()=>!1)}async read(){if(await this._canUseIndexedDBPromise){const e=await me(this.app);return e?.heartbeats?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){const t=await this.read();return ve(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){const t=await this.read();return ve(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}}function Ee(e){return(0,n.base64urlEncodeWithoutPadding)(JSON.stringify({version:2,heartbeats:e})).length}function Pe(e){if(0===e.length)return-1;let t=0,n=e[0].date;for(let i=1;i<e.length;i++)e[i].date<n&&(n=e[i].date,t=i);return t}
2087/**
2088   * @license
2089   * Copyright 2019 Google LLC
2090   *
2091   * Licensed under the Apache License, Version 2.0 (the "License");
2092   * you may not use this file except in compliance with the License.
2093   * You may obtain a copy of the License at
2094   *
2095   *   http://www.apache.org/licenses/LICENSE-2.0
2096   *
2097   * Unless required by applicable law or agreed to in writing, software
2098   * distributed under the License is distributed on an "AS IS" BASIS,
2099   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2100   * See the License for the specific language governing permissions and
2101   * limitations under the License.
2102   */var Se;Se='',q(new e.Component('platform-logger',e=>new o(e),"PRIVATE")),q(new e.Component('heartbeat',e=>new ye(e),"PRIVATE")),le(c,p,Se),le(c,p,'esm2020'),le('fire-js','')},181,[182,185,183,186]);
2103__d(function(g,r,i,a,m,_e,d){"use strict";
2103Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Component",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e,"ComponentContainer",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"Provider",{enumerable:!0,get:function(){return s}});var e=r(d[0]);class t{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}
2104/**
2105   * @license
2106   * Copyright 2019 Google LLC
2107   *
2108   * Licensed under the Apache License, Version 2.0 (the "License");
2109   * you may not use this file except in compliance with the License.
2110   * You may obtain a copy of the License at
2111   *
2112   *   http://www.apache.org/licenses/LICENSE-2.0
2113   *
2114   * Unless required by applicable law or agreed to in writing, software
2115   * distributed under the License is distributed on an "AS IS" BASIS,
2116   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2117   * See the License for the specific language governing permissions and
2118   * limitations under the License.
2119   */const n='[DEFAULT]';
2120/**
2121   * @license
2122   * Copyright 2019 Google LLC
2123   *
2124   * Licensed under the Apache License, Version 2.0 (the "License");
2125   * you may not use this file except in compliance with the License.
2126   * You may obtain a copy of the License at
2127   *
2128   *   http://www.apache.org/licenses/LICENSE-2.0
2129   *
2130   * Unless required by applicable law or agreed to in writing, software
2131   * distributed under the License is distributed on an "AS IS" BASIS,
2132   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2133   * See the License for the specific language governing permissions and
2134   * limitations under the License.
2135   */class s{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const t=new e.Deferred;if(this.instancesDeferred.set(n,t),this.isInitialized(n)||this.shouldAutoInitialize())try{const e=this.getOrInitializeService({instanceIdentifier:n});e&&t.resolve(e)}catch(e){}}return this.instancesDeferred.get(n).promise}getImmediate(e){const t=this.normalizeInstanceIdentifier(e?.identifier),n=e?.optional??!1;if(!this.isInitialized(t)&&!this.shouldAutoInitialize()){if(n)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:t})}catch(e){if(n)return null;throw e}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(o(e))try{this.getOrInitializeService({instanceIdentifier:n})}catch(e){}for(const[e,t]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(e){}}}}clearInstance(e=n){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>'INTERNAL'in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>'_delete'in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=n){return this.instances.has(e)}getOptions(e=n){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const s=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[e,t]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(e)&&t.resolve(s)}return s}onInit(e,t){const n=this.normalizeInstanceIdentifier(t),s=this.onInitCallbacks.get(n)??new Set;s.add(e),this.onInitCallbacks.set(n,s);const o=this.instances.get(n);return o&&e(o,n),()=>{s.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const s of n)try{s(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let s=this.instances.get(e);if(!s&&this.component&&(s=this.component.instanceFactory(this.container,{instanceIdentifier:(o=e,o===n?void 0:o),options:t}),this.instances.set(e,s),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(s,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,s)}catch{}var o;return s||null}normalizeInstanceIdentifier(e=n){return this.component?this.component.multipleInstances?e:n:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}function o(e){return"EAGER"===e.instantiationMode}
2136/**
2137   * @license
2138   * Copyright 2019 Google LLC
2139   *
2140   * Licensed under the Apache License, Version 2.0 (the "License");
2141   * you may not use this file except in compliance with the License.
2142   * You may obtain a copy of the License at
2143   *
2144   *   http://www.apache.org/licenses/LICENSE-2.0
2145   *
2146   * Unless required by applicable law or agreed to in writing, software
2147   * distributed under the License is distributed on an "AS IS" BASIS,
2148   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2149   * See the License for the specific language governing permissions and
2150   * limitations under the License.
2151   */class c{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new s(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},182,[183]);
2152__d(function(g,r,_i,_a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"CONSTANTS",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e,"DecodeBase64StringError",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"Deferred",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"ErrorFactory",{enumerable:!0,get:function(){return H}}),Object.defineProperty(_e,"FirebaseError",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_e,"MAX_VALUE_MILLIS",{enumerable:!0,get:function(){return we}}),Object.defineProperty(_e,"RANDOM_FACTOR",{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(_e,"Sha1",{enumerable:!0,get:function(){return le}}),Object.defineProperty(_e,"areCookiesEnabled",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e,"assert",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"assertionError",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"async",{enumerable:!0,get:function(){return be}}),Object.defineProperty(_e,"base64",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"base64Decode",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"base64Encode",{enumerable:!0,get:function(){return a}}),Object.defineProperty(_e,"base64urlEncodeWithoutPadding",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"calculateBackoffMillis",{enumerable:!0,get:function(){return De}}),Object.defineProperty(_e,"contains",{enumerable:!0,get:function(){return te}}),Object.defineProperty(_e,"createMockUserToken",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"createSubscribe",{enumerable:!0,get:function(){return he}}),Object.defineProperty(_e,"decode",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(_e,"deepCopy",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"deepEqual",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(_e,"deepExtend",{enumerable:!0,get:function(){return d}}),Object.defineProperty(_e,"errorPrefix",{enumerable:!0,get:function(){return me}}),Object.defineProperty(_e,"extractQuerystring",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(_e,"generateSHA256Hash",{enumerable:!0,get:function(){return xe}}),Object.defineProperty(_e,"getDefaultAppConfig",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"getDefaultEmulatorHost",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"getDefaultEmulatorHostnameAndPort",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"getDefaults",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"getExperimentalSetting",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"getGlobal",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"getModularInstance",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(_e,"getUA",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"isAdmin",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(_e,"isBrowser",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"isBrowserExtension",{enumerable:!0,get:function(){return M}}),Object.defineProperty(_e,"isCloudWorkstation",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(_e,"isCloudflareWorker",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"isElectron",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"isEmpty",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(_e,"isIE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"isIndexedDBAvailable",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"isMobileCordova",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"isNode",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"isNodeSdk",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"isReactNative",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"isSafari",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"isSafariOrWebkit",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"isUWP",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"isValidFormat",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(_e,"isValidTimestamp",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"isWebWorker",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"issuedAtTime",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(_e,"jsonEval",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"map",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(_e,"ordinal",{enumerable:!0,get:function(){return Te}}),Object.defineProperty(_e,"pingServer",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(_e,"promiseWithTimeout",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(_e,"querystring",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(_e,"querystringDecode",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(_e,"safeGet",{enumerable:!0,get:function(){return re}}),Object.defineProperty(_e,"stringLength",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(_e,"stringToByteArray",{enumerable:!0,get:function(){return Se}}),Object.defineProperty(_e,"stringify",{enumerable:!0,get:function(){return K}}),Object.defineProperty(_e,"validateArgCount",{enumerable:!0,get:function(){return ye}}),Object.defineProperty(_e,"validateCallback",{enumerable:!0,get:function(){return je}}),Object.defineProperty(_e,"validateContextObject",{enumerable:!0,get:function(){return Ee}}
2152),Object.defineProperty(_e,"validateIndexedDBOpenable",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"validateNamespace",{enumerable:!0,get:function(){return Oe}});var e=r(_d[0]);
2153/**
2154   * @license
2155   * Copyright 2017 Google LLC
2156   *
2157   * Licensed under the Apache License, Version 2.0 (the "License");
2158   * you may not use this file except in compliance with the License.
2159   * You may obtain a copy of the License at
2160   *
2161   *   http://www.apache.org/licenses/LICENSE-2.0
2162   *
2163   * Unless required by applicable law or agreed to in writing, software
2164   * distributed under the License is distributed on an "AS IS" BASIS,
2165   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2166   * See the License for the specific language governing permissions and
2167   * limitations under the License.
2168   */const t={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:'${JSCORE_VERSION}'},n=function(e,t){if(!e)throw o(t)},o=function(e){return new Error('Firebase Database ('+t.SDK_VERSION+') INTERNAL ASSERT FAILED: '+e)},i=function(e){const t=[];let n=0;for(let o=0;o<e.length;o++){let i=e.charCodeAt(o);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&o+1<e.length&&56320==(64512&e.charCodeAt(o+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++o)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},s=function(e){const t=[];let n=0,o=0;for(;n<e.length;){const i=e[n++];if(i<128)t[o++]=String.fromCharCode(i);else if(i>191&&i<224){const s=e[n++];t[o++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){const s=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[o++]=String.fromCharCode(55296+(s>>10)),t[o++]=String.fromCharCode(56320+(1023&s))}else{const s=e[n++],c=e[n++];t[o++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&c)}}return t.join('')},c={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+'+/='},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+'-_.'},HAS_NATIVE_SUPPORT:'function'==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error('encodeByteArray takes an array as a parameter');this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,o=[];for(let t=0;t<e.length;
vendor: 4,230 bytes, lines 2168-2222
2168t+=3){const i=e[t],s=t+1<e.length,c=s?e[t+1]:0,u=t+2<e.length,a=u?e[t+2]:0,f=i>>2,l=(3&i)<<4|c>>4;let h=(15&c)<<2|a>>6,d=63&a;u||(d=64,s||(h=64)),o.push(n[f],n[l],n[h],n[d])}return o.join('')},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(i(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):s(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,o=[];for(let t=0;t<e.length;){const i=n[e.charAt(t++)],s=t<e.length?n[e.charAt(t)]:0;++t;const c=t<e.length?n[e.charAt(t)]:64;++t;const a=t<e.length?n[e.charAt(t)]:64;if(++t,null==i||null==s||null==c||null==a)throw new u;const f=i<<2|s>>4;if(o.push(f),64!==c){const e=s<<4&240|c>>2;if(o.push(e),64!==a){const e=c<<6&192|a;o.push(e)}}}return o},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
2169/**
2170   * @license
2171   * Copyright 2017 Google LLC
2172   *
2173   * Licensed under the Apache License, Version 2.0 (the "License");
2174   * you may not use this file except in compliance with the License.
2175   * You may obtain a copy of the License at
2176   *
2177   *   http://www.apache.org/licenses/LICENSE-2.0
2178   *
2179   * Unless required by applicable law or agreed to in writing, software
2180   * distributed under the License is distributed on an "AS IS" BASIS,
2181   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2182   * See the License for the specific language governing permissions and
2183   * limitations under the License.
2184   */class u extends Error{constructor(){super(...arguments),this.name='DecodeBase64StringError'}}const a=function(e){const t=i(e);return c.encodeByteArray(t,!0)},f=function(e){return a(e).replace(/\./g,'')},l=function(e){try{return c.decodeString(e,!0)}catch(e){console.error('base64Decode failed: ',e)}return null};
2185/**
2186   * @license
2187   * Copyright 2017 Google LLC
2188   *
2189   * Licensed under the Apache License, Version 2.0 (the "License");
2190   * you may not use this file except in compliance with the License.
2191   * You may obtain a copy of the License at
2192   *
2193   *   http://www.apache.org/licenses/LICENSE-2.0
2194   *
2195   * Unless required by applicable law or agreed to in writing, software
2196   * distributed under the License is distributed on an "AS IS" BASIS,
2197   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2198   * See the License for the specific language governing permissions and
2199   * limitations under the License.
2200   */
2201function h(e){return d(void 0,e)}function d(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(const n in t)t.hasOwnProperty(n)&&b(n)&&(e[n]=d(e[n],t[n]));return e}function b(e){return'__proto__'!==e}
2202/**
2203   * @license
2204   * Copyright 2022 Google LLC
2205   *
2206   * Licensed under the Apache License, Version 2.0 (the "License");
2207   * you may not use this file except in compliance with the License.
2208   * You may obtain a copy of the License at
2209   *
2210   *   http://www.apache.org/licenses/LICENSE-2.0
2211   *
2212   * Unless required by applicable law or agreed to in writing, software
2213   * distributed under the License is distributed on an "AS IS" BASIS,
2214   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2215   * See the License for the specific language governing permissions and
2216   * limitations under the License.
2217   */function p(){if('undefined'!=typeof self)return self;if('undefined'!=typeof window)return window;if(void 0!==g)return g;throw new Error('Unable to locate global object.')}
2218/**
2219   * @license
2220   * Copyright 2022 Google LLC
2221   *
2222   * Licensed under the Apache License, Version 2.0 (the "License");
2223   * you may not use this file except in compliance with the License.
2224   * You may obtain a copy of the License at
2225   *
2226   *   http://www.apache.org/licenses/LICENSE-2.0
2227   *
2228   * Unless required by applicable law or agreed to in writing, software
2229   * distributed under the License is distributed on an "AS IS" BASIS,
2230   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2231   * See the License for the specific language governing permissions and
2232   * limitations under the License.
2233   */const y=()=>{if('undefined'==typeof process||void 0===process.env)return;const e=process.env.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0},O=()=>{if('undefined'==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}const t=e&&l(e[1]);return t&&JSON.parse(t)},_=()=>{try{return(0,e.getDefaultsFromPostinstall)()||p().__FIREBASE_DEFAULTS__||y()||O()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},j=e=>_()?.emulatorHosts?.[e],E=e=>{const t=j(e);if(!t)return;const n=t.lastIndexOf(':');if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const o=parseInt(t.substring(n+1),10);return'['===t[0]?[t.substring(1,n-1),o]:[t.substring(0,n),o]},S=()=>_()?.config,P=e=>_()?.[`_${e}`];
2234/**
2235   * @license
2236   * Copyright 2017 Google LLC
2237   *
2238   * Licensed under the Apache License, Version 2.0 (the "License");
2239   * you may not use this file except in compliance with the License.
2240   * You may obtain a copy of the License at
2241   *
2242   *   http://www.apache.org/licenses/LICENSE-2.0
2243   *
2244   * Unless required by applicable law or agreed to in writing, software
2245   * distributed under the License is distributed on an "AS IS" BASIS,
2246   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2247   * See the License for the specific language governing permissions and
2248   * limitations under the License.
2249   */
2250class v{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),'function'==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}}
2251/**
2252   * @license
2253   * Copyright 2021 Google LLC
2254   *
2255   * Licensed under the Apache License, Version 2.0 (the "License");
2256   * you may not use this file except in compliance with the License.
2257   * You may obtain a copy of the License at
2258   *
2259   *   http://www.apache.org/licenses/LICENSE-2.0
2260   *
2261   * Unless required by applicable law or agreed to in writing, software
2262   * distributed under the License is distributed on an "AS IS" BASIS,
2263   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2264   * See the License for the specific language governing permissions and
2265   * limitations under the License.
2266   */function A(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||'demo-project',o=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s=Object.assign({iss:`https://securetoken.google.com/${n}`,aud:n,iat:o,exp:o+3600,auth_time:o,sub:i,user_id:i,firebase:{sign_in_provider:'custom',identities:{}}},e);return[f(JSON.stringify({alg:'none',type:'JWT'})),f(JSON.stringify(s)),''].join('.')}
2267/**
2268   * @license
2269   * Copyright 2017 Google LLC
2270   *
2271   * Licensed under the Apache License, Version 2.0 (the "License");
2272   * you may not use this file except in compliance with the License.
2273   * You may obtain a copy of the License at
2274   *
2275   *   http://www.apache.org/licenses/LICENSE-2.0
2276   *
2277   * Unless required by applicable law or agreed to in writing, software
2278   * distributed under the License is distributed on an "AS IS" BASIS,
2279   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2280   * See the License for the specific language governing permissions and
2281   * limitations under the License.
2282   */function w(){return'undefined'!=typeof navigator&&'string'==typeof navigator.userAgent?navigator.userAgent:''}function C(){return'undefined'!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(w())}function D(){const e=_()?.forceEnvironment;if('node'===e)return!0;
2282if('browser'===e)return!1;try{return'[object process]'===Object.prototype.toString.call(g.process)}catch(e){return!1}}function T(){return'undefined'!=typeof window||N()}function N(){return'undefined'!=typeof WorkerGlobalScope&&'undefined'!=typeof self&&self instanceof WorkerGlobalScope}function k(){return'undefined'!=typeof navigator&&'Cloudflare-Workers'===navigator.userAgent}function M(){const e='object'==typeof chrome?chrome.runtime:'object'==typeof browser?browser.runtime:void 0;return'object'==typeof e&&void 0!==e.id}function B(){return'object'==typeof navigator&&'ReactNative'===navigator.product}function x(){return w().indexOf('Electron/')>=0}function I(){const e=w();return e.indexOf('MSIE ')>=0||e.indexOf('Trident/')>=0}function W(){return w().indexOf('MSAppHost/')>=0}function L(){return!0===t.NODE_CLIENT||!0===t.NODE_ADMIN}function R(){return!D()&&!!navigator.userAgent&&navigator.userAgent.includes('Safari')&&!navigator.userAgent.includes('Chrome')}function U(){return!D()&&!!navigator.userAgent&&(navigator.userAgent.includes('Safari')||navigator.userAgent.includes('WebKit'))&&!navigator.userAgent.includes('Chrome')}function F(){try{return'object'==typeof indexedDB}catch(e){return!1}}function V(){return new Promise((e,t)=>{try{let n=!0;const o='validate-browser-context-for-indexeddb-analytics-module',i=self.indexedDB.open(o);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(o),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{t(i.error?.message||'')}}catch(e){t(e)}})}function $(){return!('undefined'==typeof navigator||!navigator.cookieEnabled)}
2283/**
2284   * @license
2285   * Copyright 2017 Google LLC
2286   *
2287   * Licensed under the Apache License, Version 2.0 (the "License");
2288   * you may not use this file except in compliance with the License.
2289   * You may obtain a copy of the License at
2290   *
2291   *   http://www.apache.org/licenses/LICENSE-2.0
2292   *
2293   * Unless required by applicable law or agreed to in writing, software
2294   * distributed under the License is distributed on an "AS IS" BASIS,
2295   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2296   * See the License for the specific language governing permissions and
2297   * limitations under the License.
2298   */class z extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,z.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,H.prototype.create)}}class H{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},o=`${this.service}/${e}`,i=this.errors[e],s=i?J(i,n):'Error',c=`${this.serviceName}: ${s} (${o}).`;return new z(o,c,n)}}function J(e,t){return e.replace(G,(e,n)=>{const o=t[n];return null!=o?String(o):`<${n}?>`})}const G=/\{\$([^}]+)}/g;
2299/**
2300   * @license
2301   * Copyright 2017 Google LLC
2302   *
2303   * Licensed under the Apache License, Version 2.0 (the "License");
2304   * you may not use this file except in compliance with the License.
2305   * You may obtain a copy of the License at
2306   *
2307   *   http://www.apache.org/licenses/LICENSE-2.0
2308   *
2309   * Unless required by applicable law or agreed to in writing, software
2310   * distributed under the License is distributed on an "AS IS" BASIS,
2311   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2312   * See the License for the specific language governing permissions and
2313   * limitations under the License.
2314   */function q(e){return JSON.parse(e)}function K(e){return JSON.stringify(e)}
2315/**
2316   * @license
2317   * Copyright 2017 Google LLC
2318   *
2319   * Licensed under the Apache License, Version 2.0 (the "License");
2320   * you may not use this file except in compliance with the License.
2321   * You may obtain a copy of the License at
2322   *
2323   *   http://www.apache.org/licenses/LICENSE-2.0
2324   *
2325   * Unless required by applicable law or agreed to in writing, software
2326   * distributed under the License is distributed on an "AS IS" BASIS,
2327   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2328   * See the License for the specific language governing permissions and
2329   * limitations under the License.
2330   */const Q=function(e){let t={},n={},o={},i='';try{const s=e.split('.');t=q(l(s[0])||''),n=q(l(s[1])||''),i=s[2],o=n.d||{},delete n.d}catch(e){}return{header:t,claims:n,data:o,signature:i}},X=function(e){const t=Q(e).claims,n=Math.floor((new Date).getTime()/1e3);let o=0,i=0;return'object'==typeof t&&(t.hasOwnProperty('nbf')?o=t.nbf:t.hasOwnProperty('iat')&&(o=t.iat),i=t.hasOwnProperty('exp')?t.exp:o+86400),!!n&&!!o&&!!i&&n>=o&&n<=i},Y=function(e){const t=Q(e).claims;return'object'==typeof t&&t.hasOwnProperty('iat')?t.iat:null},Z=function(e){const t=Q(e).claims;return!!t&&'object'==typeof t&&t.hasOwnProperty('iat')},ee=function(e){const t=Q(e).claims;return'object'==typeof t&&!0===t.admin};
2331/**
2332   * @license
2333   * Copyright 2017 Google LLC
2334   *
2335   * Licensed under the Apache License, Version 2.0 (the "License");
2336   * you may not use this file except in compliance with the License.
2337   * You may obtain a copy of the License at
2338   *
2339   *   http://www.apache.org/licenses/LICENSE-2.0
2340   *
2341   * Unless required by applicable law or agreed to in writing, software
2342   * distributed under the License is distributed on an "AS IS" BASIS,
2343   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2344   * See the License for the specific language governing permissions and
2345   * limitations under the License.
2346   */
2347function te(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function re(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function ne(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function oe(e,t,n){const o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o}function ie(e,t){if(e===t)return!0;const n=Object.keys(e),o=Object.keys(t);for(const i of n){if(!o.includes(i))return!1;const n=e[i],s=t[i];if(se(n)&&se(s)){if(!ie(n,s))return!1}else if(n!==s)return!1}for(const e of o)if(!n.includes(e))return!1;return!0}function se(e){return null!==e&&'object'==typeof e}
2348/**
2349   * @license
2350   * Copyright 2022 Google LLC
2351   *
2352   * Licensed under the Apache License, Version 2.0 (the "License");
2353   * you may not use this file except in compliance with the License.
2354   * You may obtain a copy of the License at
2355   *
2356   *   http://www.apache.org/licenses/LICENSE-2.0
2357   *
2358   * Unless required by applicable law or agreed to in writing, software
2359   * distributed under the License is distributed on an "AS IS" BASIS,
2360   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2361   * See the License for the specific language governing permissions and
2362   * limitations under the License.
2363   */function ce(e,t=2e3){const n=new v;return setTimeout(()=>n.reject('timeout!'),t),e.then(n.resolve,n.reject),n.promise}
2364/**
2365   * @license
2366   * Copyright 2017 Google LLC
2367   *
2368   * Licensed under the Apache License, Version 2.0 (the "License");
2369   * you may not use this file except in compliance with the License.
2370   * You may obtain a copy of the License at
2371   *
2372   *   http://www.apache.org/licenses/LICENSE-2.0
2373   *
2374   * Unless required by applicable law or agreed to in writing, software
2375   * distributed under the License is distributed on an "AS IS" BASIS,
2376   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2377   * See the License for the specific language governing permissions and
2378   * limitations under the License.
2379   */function ue(e){const t=[];for(const[n,o]of Object.entries(e))Array.isArray(o)?o.forEach(e=>{t.push(encodeURIComponent(n)+'='+encodeURIComponent(e))}):t.push(encodeURIComponent(n)+'='+encodeURIComponent(o));return t.length?'&'+t.join('&'):''}function ae(e){const t={};return e.replace(/^\?/,'').split('&').forEach(e=>{if(e){const[n,o]=e.split('=');
2379t[decodeURIComponent(n)]=decodeURIComponent(o)}}),t}function fe(e){const t=e.indexOf('?');if(!t)return'';const n=e.indexOf('#',t);return e.substring(t,n>0?n:void 0)}
2380/**
2381   * @license
2382   * Copyright 2017 Google LLC
2383   *
2384   * Licensed under the Apache License, Version 2.0 (the "License");
2385   * you may not use this file except in compliance with the License.
2386   * You may obtain a copy of the License at
2387   *
2388   *   http://www.apache.org/licenses/LICENSE-2.0
2389   *
2390   * Unless required by applicable law or agreed to in writing, software
2391   * distributed under the License is distributed on an "AS IS" BASIS,
2392   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2393   * See the License for the specific language governing permissions and
2394   * limitations under the License.
2395   */class le{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}reset(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0}compress_(e,t){t||(t=0);const n=this.W_;if('string'==typeof e)for(let o=0;o<16;o++)n[o]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(let o=0;o<16;o++)n[o]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(let e=16;e<80;e++){const t=n[e-3]^n[e-8]^n[e-14]^n[e-16];n[e]=4294967295&(t<<1|t>>>31)}let o,i,s=this.chain_[0],c=this.chain_[1],u=this.chain_[2],a=this.chain_[3],f=this.chain_[4];for(let e=0;e<80;e++){e<40?e<20?(o=a^c&(u^a),i=1518500249):(o=c^u^a,i=1859775393):e<60?(o=c&u|a&(c|u),i=2400959708):(o=c^u^a,i=3395469782);const t=(s<<5|s>>>27)+o+f+i+n[e]&4294967295;f=a,a=u,u=4294967295&(c<<30|c>>>2),c=s,s=t}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+c&4294967295,this.chain_[2]=this.chain_[2]+u&4294967295,this.chain_[3]=this.chain_[3]+a&4294967295,this.chain_[4]=this.chain_[4]+f&4294967295}update(e,t){if(null==e)return;void 0===t&&(t=e.length);const n=t-this.blockSize;let o=0;const i=this.buf_;let s=this.inbuf_;for(;o<t;){if(0===s)for(;o<=n;)this.compress_(e,o),o+=this.blockSize;if('string'==typeof e){for(;o<t;)if(i[s]=e.charCodeAt(o),++s,++o,s===this.blockSize){this.compress_(i),s=0;break}}else for(;o<t;)if(i[s]=e[o],++s,++o,s===this.blockSize){this.compress_(i),s=0;break}}this.inbuf_=s,this.total_+=t}digest(){const e=[];let t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(let e=this.blockSize-1;e>=56;e--)this.buf_[e]=255&t,t/=256;this.compress_(this.buf_);let n=0;for(let t=0;t<5;t++)for(let o=24;o>=0;o-=8)e[n]=this.chain_[t]>>o&255,++n;return e}}function he(e,t){const n=new de(e,t);return n.subscribe.bind(n)}class de{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,n){let o;if(void 0===e&&void 0===t&&void 0===n)throw new Error('Missing Observer.');o=pe(e,['next','error','complete'])?e:{next:e,error:t,complete:n},void 0===o.next&&(o.next=ge),void 0===o.error&&(o.error=ge),void 0===o.complete&&(o.complete=ge);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?o.error(this.finalError):o.complete()}catch(e){}}),this.observers.push(o),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){'undefined'!=typeof console&&console.error&&console.error(e)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function be(e,t){return(...n)=>{Promise.resolve(!0).then(()=>{e(...n)}).catch(e=>{t&&t(e)})}}function pe(e,t){if('object'!=typeof e||null===e)return!1;for(const n of t)if(n in e&&'function'==typeof e[n])return!0;return!1}function ge(){}
2396/**
2397   * @license
2398   * Copyright 2017 Google LLC
2399   *
2400   * Licensed under the Apache License, Version 2.0 (the "License");
2401   * you may not use this file except in compliance with the License.
2402   * You may obtain a copy of the License at
2403   *
2404   *   http://www.apache.org/licenses/LICENSE-2.0
2405   *
2406   * Unless required by applicable law or agreed to in writing, software
2407   * distributed under the License is distributed on an "AS IS" BASIS,
2408   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2409   * See the License for the specific language governing permissions and
2410   * limitations under the License.
2411   */const ye=function(e,t,n,o){let i;if(o<t?i='at least '+t:o>n&&(i=0===n?'none':'no more than '+n),i){throw new Error(e+' failed: Was called with '+o+(1===o?' argument.':' arguments.')+' Expects '+i+'.')}};function me(e,t){return`${e} failed: ${t} argument `}function Oe(e,t,n){if((!n||t)&&'string'!=typeof t)throw new Error(me(e,'namespace')+'must be a valid firebase namespace.')}function je(e,t,n,o){if((!o||n)&&'function'!=typeof n)throw new Error(me(e,t)+'must be a valid function.')}function Ee(e,t,n,o){if((!o||n)&&('object'!=typeof n||null===n))throw new Error(me(e,t)+'must be a valid context object.')}
2412/**
2413   * @license
2414   * Copyright 2017 Google LLC
2415   *
2416   * Licensed under the Apache License, Version 2.0 (the "License");
2417   * you may not use this file except in compliance with the License.
2418   * You may obtain a copy of the License at
2419   *
2420   *   http://www.apache.org/licenses/LICENSE-2.0
2421   *
2422   * Unless required by applicable law or agreed to in writing, software
2423   * distributed under the License is distributed on an "AS IS" BASIS,
2424   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2425   * See the License for the specific language governing permissions and
2426   * limitations under the License.
2427   */const Se=function(e){const t=[];let o=0;for(let i=0;i<e.length;i++){let s=e.charCodeAt(i);if(s>=55296&&s<=56319){const t=s-55296;i++,n(i<e.length,'Surrogate pair missing trail surrogate.');s=65536+(t<<10)+(e.charCodeAt(i)-56320)}s<128?t[o++]=s:s<2048?(t[o++]=s>>6|192,t[o++]=63&s|128):s<65536?(t[o++]=s>>12|224,t[o++]=s>>6&63|128,t[o++]=63&s|128):(t[o++]=s>>18|240,t[o++]=s>>12&63|128,t[o++]=s>>6&63|128,t[o++]=63&s|128)}return t},Pe=function(e){let t=0;for(let n=0;n<e.length;n++){const o=e.charCodeAt(n);o<128?t++:o<2048?t+=2:o>=55296&&o<=56319?(t+=4,n++):t+=3}return t},ve=1e3,Ae=2,we=144e5,Ce=.5;function De(e,t=ve,n=Ae){const o=t*Math.pow(n,e),i=Math.round(Ce*o*(Math.random()-.5)*2);return Math.min(we,o+i)}
2428/**
2429   * @license
2430   * Copyright 2020 Google LLC
2431   *
2432   * Licensed under the Apache License, Version 2.0 (the "License");
2433   * you may not use this file except in compliance with the License.
2434   * You may obtain a copy of the License at
2435   *
2436   *   http://www.apache.org/licenses/LICENSE-2.0
2437   *
2438   * Unless required by applicable law or agreed to in writing, software
2439   * distributed under the License is distributed on an "AS IS" BASIS,
2440   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2441   * See the License for the specific language governing permissions and
2442   * limitations under the License.
2443   */function Te(e){return Number.isFinite(e)?e+Ne(e):`${e}`}function Ne(e){const t=(e=Math.abs(e))%100;if(t>=10&&t<=20)return'th';const n=e%10;return 1===n?'st':2===n?'nd':3===n?'rd':'th'}
2444/**
2445   * @license
2446   * Copyright 2021 Google LLC
2447   *
2448   * Licensed under the Apache License, Version 2.0 (the "License");
2449   * you may not use this file except in compliance with the License.
2450   * You may obtain a copy of the License at
2451   *
2452   *   http://www.apache.org/licenses/LICENSE-2.0
2453   *
2454   * Unless required by applicable law or agreed to in writing, software
2455   * distributed under the License is distributed on an "AS IS" BASIS,
2456   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2457   * See the License for the specific language governing permissions and
2458   * limitations under the License.
2459   */function ke(e){return e&&e._delegate?e._delegate:e}
2460/**
2461   * @license
2462   * Copyright 2025 Google LLC
2463   *
2464   * Licensed under the Apache License, Version 2.0 (the "License");
2465   * you may not use this file except in compliance with the License.
2466   * You may obtain a copy of the License at
2467   *
2468   *   http://www.apache.org/licenses/LICENSE-2.0
2469   *
2470   * Unless required by applicable law or agreed to in writing, software
2471   * distributed under the License is distributed on an "AS IS" BASIS,
2472   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2473   * See the License for the specific language governing permissions and
2474   * limitations under the License.
2475   */function Me(e){try{return(e.startsWith('http://')||e.startsWith('https://')?new URL(e).hostname:e).endsWith('.cloudworkstations.dev')}catch{return!1}}async function Be(e){return(await fetch(e,{credentials:'include'})).ok}
2476/**
2477   * @license
2478   * Copyright 2025 Google LLC
2479   *
2480   * Licensed under the Apache License, Version 2.0 (the "License");
2481   * you may not use this file except in compliance with the License.
2482   * You may obtain a copy of the License at
2483   *
2484   *   http://www.apache.org/licenses/LICENSE-2.0
2485   *
2486   * Unless required by applicable law or agreed to in writing, software
2487   * distributed under the License is distributed on an "AS IS" BASIS,
2488   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2489   * See the License for the specific language governing permissions and
2490   * limitations under the License.
2491   */async function xe(e){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest('SHA-256',t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,'0')).join('')}},183,[184]);
2492__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDefaultsFromPostinstall",{enumerable:!0,get:function(){return t}});const t=()=>{}},184,[]);
2493__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"Logger",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"setLogLevel",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"setUserLogHandler",{enumerable:!0,get:function(){return f}});
2494/**
2495   * @license
2496   * Copyright 2017 Google LLC
2497   *
2498   * Licensed under the Apache License, Version 2.0 (the "License");
2499   * you may not use this file except in compliance with the License.
2500   * You may obtain a copy of the License at
2501   *
2502   *   http://www.apache.org/licenses/LICENSE-2.0
2503   *
2504   * Unless required by applicable law or agreed to in writing, software
2505   * distributed under the License is distributed on an "AS IS" BASIS,
2506   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2507   * See the License for the specific language governing permissions and
2508   * limitations under the License.
2509   */
2510const t=[];var n;!(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(n||(n={}));const o={debug:n.DEBUG,verbose:n.VERBOSE,info:n.INFO,warn:n.WARN,error:n.ERROR,silent:n.SILENT},l=n.INFO,s={[n.DEBUG]:'log',[n.VERBOSE]:'log',[n.INFO]:'info',[n.WARN]:'warn',[n.ERROR]:'error'},u=(t,n,...o)=>{if(n<t.logLevel)return;const l=(new Date).toISOString(),u=s[n];if(!u)throw new Error(`Attempted to log a message with an invalid logType (value: ${n})`);console[u](`[${l}]  ${t.name}:`,...o)};class h{constructor(n){this.name=n,this._logLevel=l,this._logHandler=u,this._userLogHandler=null,t.push(this)}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in n))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel='string'==typeof t?o[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if('function'!=typeof t)throw new TypeError('Value assigned to `logHandler` must be a function');this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,n.DEBUG,...t),this._logHandler(this,n.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,n.VERBOSE,...t),this._logHandler(this,n.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,n.INFO,...t),this._logHandler(this,n.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,n.WARN,...t),this._logHandler(this,n.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,n.ERROR,...t),this._logHandler(this,n.ERROR,...t)}}function L(n){t.forEach(t=>{t.setLogLevel(n)})}function f(l,s){for(const u of t){let t=null;s&&s.level&&(t=o[s.level]),u.userLogHandler=null===l?null:(o,s,...u)=>{const h=u.map(t=>{if(null==t)return null;if('string'==typeof t)return t;if('number'==typeof t||'boolean'==typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(t){return null}}).filter(t=>t).join(' ');s>=(t??o.logLevel)&&l({level:n[s].toLowerCase(),message:h,args:u,type:o.name})}}}},185,[]);
2511__d(function(g,r,i,a,m,e,d){"use strict";
2511Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"unwrap",{enumerable:!0,get:function(){return n.u}}),Object.defineProperty(e,"wrap",{enumerable:!0,get:function(){return n.w}}),Object.defineProperty(e,"deleteDB",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"openDB",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(t,o,{blocked:s,upgrade:c,blocking:u,terminated:l}={}){const f=indexedDB.open(t,o),b=(0,n.w)(f);return c&&f.addEventListener('upgradeneeded',t=>{c((0,n.w)(f.result),t.oldVersion,t.newVersion,(0,n.w)(f.transaction),t)}),s&&f.addEventListener('blocked',n=>s(n.oldVersion,n.newVersion,n)),b.then(n=>{l&&n.addEventListener('close',()=>l()),u&&n.addEventListener('versionchange',n=>u(n.oldVersion,n.newVersion,n))}).catch(()=>{}),b}function o(t,{blocked:o}={}){const s=indexedDB.deleteDatabase(t);return o&&s.addEventListener('blocked',n=>o(n.oldVersion,n)),(0,n.w)(s).then(()=>{})}const s=['get','getKey','getAll','getAllKeys','count'],c=['put','add','delete','clear'],u=new Map;function l(n,t){if(!(n instanceof IDBDatabase)||t in n||'string'!=typeof t)return;if(u.get(t))return u.get(t);const o=t.replace(/FromIndex$/,''),l=t!==o,f=c.includes(o);if(!(o in(l?IDBIndex:IDBObjectStore).prototype)||!f&&!s.includes(o))return;const b=async function(n,...t){const s=this.transaction(n,f?'readwrite':'readonly');let c=s.store;return l&&(c=c.index(t.shift())),(await Promise.all([c[o](...t),f&&s.done]))[0]};return u.set(t,b),b}(0,n.r)(n=>Object.assign({},n,{get:(t,o,s)=>l(t,o)||n.get(t,o,s),has:(t,o)=>!!l(t,o)||n.has(t,o)}))},186,[187]);
2512__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"a",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"i",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"u",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"w",{enumerable:!0,get:function(){return I}});const t=(t,n)=>n.some(n=>t instanceof n);let n,o;const s=new WeakMap,c=new WeakMap,u=new WeakMap,f=new WeakMap,p=new WeakMap;function b(t){const n=new Promise((n,o)=>{const s=()=>{t.removeEventListener('success',c),t.removeEventListener('error',u)},c=()=>{n(I(t.result)),s()},u=()=>{o(t.error),s()};t.addEventListener('success',c),t.addEventListener('error',u)});return n.then(n=>{n instanceof IDBCursor&&s.set(n,t)}).catch(()=>{}),p.set(n,t),n}function v(t){if(c.has(t))return;const n=new Promise((n,o)=>{const s=()=>{t.removeEventListener('complete',c),t.removeEventListener('error',u),t.removeEventListener('abort',u)},c=()=>{n(),s()},u=()=>{o(t.error||new DOMException('AbortError','AbortError')),s()};t.addEventListener('complete',c),t.addEventListener('error',u),t.addEventListener('abort',u)});c.set(t,n)}let D={get(t,n,o){if(t instanceof IDBTransaction){if('done'===n)return c.get(t);if('objectStoreNames'===n)return t.objectStoreNames||u.get(t);if('store'===n)return o.objectStoreNames[1]?void 0:o.objectStore(o.objectStoreNames[0])}return I(t[n])},set:(t,n,o)=>(t[n]=o,!0),has:(t,n)=>t instanceof IDBTransaction&&('done'===n||'store'===n)||n in t};function l(t){D=t(D)}function y(c){return'function'==typeof c?(f=c)!==IDBDatabase.prototype.transaction||'objectStoreNames'in IDBTransaction.prototype?(o||(o=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(f)?function(...t){return f.apply(B(this),t),I(s.get(this))}:function(...t){return I(f.apply(B(this),t))}:function(t,...n){const o=f.call(B(this),t,...n);return u.set(o,t.sort?t.sort():[t]),I(o)}:(c instanceof IDBTransaction&&v(c),t(c,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(c,D):c);var f}function I(t){if(t instanceof IDBRequest)return b(t);if(f.has(t))return f.get(t);const n=y(t);return n!==t&&(f.set(t,n),p.set(n,t)),n}const B=t=>p.get(t)},187,[]);
2513__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return P}});var t=e(r(_d[0])),n=e(r(_d[1])),o=e(r(_d[2])),l=(function(e){if(e&&e.__esMo
2513dule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[3])),u=e(r(_d[4])),d=r(_d[5]),s=r(_d[6]),c=e(r(_d[7])),f=e(r(_d[8])),h=e(r(_d[9])),p=e(r(_d[10])),b=e(r(_d[11])),y=r(_d[12]),v=["aria-label","accessibilityLabel","blurRadius","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","source","style"],w='LOADED',E='LOADING',z=0,S=/^(data:image\/svg\+xml;utf8,)(.*)/;function k(e,t){return e&&null!=t?l.createElement("svg",{style:{position:'absolute',height:0,visibility:'hidden',width:0}},l.createElement("defs",null,l.createElement("filter",{id:"tint-"+t,suppressHydrationWarning:!0},l.createElement("feFlood",{floodColor:""+e,key:e}),l.createElement("feComposite",{in2:"SourceAlpha",operator:"in"})))):null}function I(e,t,n,o){var l=h.default.flatten(e),u=l.filter,d=l.resizeMode,c=l.shadowOffset,f=l.tintColor;l.resizeMode&&(0,y.warnOnce)('Image.style.resizeMode','Image: style.resizeMode is deprecated. Please use props.resizeMode.'),l.tintColor&&(0,y.warnOnce)('Image.style.tintColor','Image: style.tintColor is deprecated. Please use props.tintColor.');var p=[],b=null;if(u&&p.push(u),t&&p.push("blur("+t+"px)"),c){var v=(0,s.createBoxShadowValue)(l);v&&p.push("drop-shadow("+v+")")}return(o||f)&&null!=n&&p.push("url(#tint-"+n+")"),p.length>0&&(b=p.join(' ')),[d,b,f]}function C(e){if('number'==typeof e){var t=(0,d.getAssetByID)(e);return{height:t.height,width:t.width}}if(null!=e&&!Array.isArray(e)&&'object'==typeof e)return{height:e.height,width:e.width}}function O(e){var t=null;if('number'==typeof e){var n=(0,d.getAssetByID)(e);if(null==n)throw new Error("Image: asset with ID \""+e+"\" could not be found. Please check the image source or packager.");var o=n.scales[0];if(n.scales.length>1){var l=f.default.get();o=n.scales.reduce((e,t)=>Math.abs(t-l)<Math.abs(e-l)?t:e)}var u=1!==o?"@"+o+"x":'';t=n?n.httpServerLocation+"/"+n.name+u+"."+n.type:''}else'string'==typeof e?t=e:e&&'string'==typeof e.uri&&(t=e.uri);if(t){var s=t.match(S);if(s){var c=s[1],h=s[2];return""+c+encodeURIComponent(h)}}return t}var L=l.forwardRef((e,t)=>{var d=e['aria-label'],s=e.accessibilityLabel,f=e.blurRadius,h=e.defaultSource,y=e.draggable,S=e.onError,L=e.onLayout,M=e.onLoad,P=e.onLoadEnd,j=e.onLoadStart,D=e.pointerEvents,_=e.source,A=e.style,B=(0,o.default)(e,v),F=d||s,H=l.useState(()=>{var e=O(_);if(null!=e&&c.default.has(e))return w;return"IDLE"}),W=H[0],q=H[1],N=l.useState({}),$=N[0],G=N[1],U=l.useContext(p.default),V=l.useRef(null),J=l.useRef(z++),K=l.useRef(null),Q=W===w||W===E&&null==h,T=I(A,f,J.current,e.tintColor),X=T[0],Y=T[1],Z=T[2],ee=e.resizeMode||X||'cover',te=e.tintColor||Z,re=Q?_:h,ae=O(re),ne=C(re),oe=ae?"url(\""+ae+"\")":null,le=(function(){if(null!=V.current&&('center'===ee||'repeat'===ee)){var e=V.current,t=e.naturalHeight,n=e.naturalWidth,o=$.height,l=$.width;if(t&&n&&o&&l){var u=Math.min(1,l/n,o/t);return Math.ceil(u*n)+"px "+Math.ceil(u*t)+"px"}}})(),ue=ae?(0,u.default)('img',{alt:F||'',style:R.accessibilityImage$raw,draggable:y||!1,ref:V,src:ae}):null;var ie=O(_);return l.useEffect(()=>{function e(){null!=K.current&&(c.default.abort(K.current),K.current=null)}return e(),null!=ie&&(q(E),j&&j(),K.current=c.default.load(ie,function(e){q(w),M&&M(e),P&&P()},function(){q("ERRORED"),S&&S({nativeEvent:{error:"Failed to load resource "+ie}}),P&&P()})),e},[ie,K,q,S,M,P,j]),l.createElement(b.default,(0,n.default)({},B,{"aria-label":F,onLayout:function(e){if('center'===ee||'repeat'===ee||L){var t=e.nativeEvent.layout;L&&L(e),G(t)}},pointerEvents:D,ref:t,style:[R.root,U&&R.inline,ne,A,R.undo,{boxShadow:null}]}),l.createElement(b.default,{style:[R.image,x[ee],{backgroundImage:oe,filter:Y},null!=le&&{backgroundSize:le}],suppressHydrationWarning:!0}),ue,k(te,J.current))});L.displayName='Image';var M=L;M.getSize=function(e,t,n){c.default.getSize(e,t,n)},M.prefetch=function(e){return c.default.prefetch(e)},M.queryCache=function(e){return c.default.queryCache(e)};var R=h.default.create({root:{flexBasis:'auto',overflow:'hidden',zIndex:0},inline:{display:'inline-flex'}
2513,undo:{blurRadius:null,shadowColor:null,shadowOpacity:null,shadowOffset:null,shadowRadius:null,tintColor:null,overlayColor:null,resizeMode:null},image:(0,t.default)((0,t.default)({},h.default.absoluteFillObject),{},{backgroundColor:'transparent',backgroundPosition:'center',backgroundRepeat:'no-repeat',backgroundSize:'cover',height:'100%',width:'100%',zIndex:-1}),accessibilityImage$raw:(0,t.default)((0,t.default)({},h.default.absoluteFillObject),{},{height:'100%',opacity:0,width:'100%',zIndex:-1})}),x=h.default.create({center:{backgroundSize:'auto'},contain:{backgroundSize:'contain'},cover:{backgroundSize:'cover'},none:{backgroundPosition:'0',backgroundSize:'auto'},repeat:{backgroundPosition:'0',backgroundRepeat:'repeat',backgroundSize:'auto'},stretch:{backgroundSize:'100% 100%'}}),P=M},188,[19,27,43,34,189,147,86,197,149,42,198,199,87]);
2514__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var t=e(r(d[0])),n=e(r(d[1])),l=e(r(d[2])),u=r(d[3]),o=(e,o,c)=>{var f;e&&e.constructor===String&&(f=t.default.propsToAccessibilityComponent(o));var s=f||e,_=(0,n.default)(s,o,c),p=l.default.createElement(s,_);return _.dir?l.default.createElement(u.LocaleProvider,{children:p,direction:_.dir,locale:_.lang}):p}},189,[190,194,34,195]);
2515__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var t=e(r(d[0])),u=e(r(d[1])),o=e(r(d[2])),n={isDisabled:t.default,propsToAccessibilityComponent:u.default,propsToAriaRole:o.default}},190,[191,192,193]);
2516__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=t=>t.disabled||Array.isArray(t.accessibilityStates)&&t.accessibilityStates.indexOf('disabled')>-1},191,[]);
2517__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o={article:'article',banner:'header',blockquote:'blockquote',button:'button',code:'code',complementary:'aside',contentinfo:'footer',deletion:'del',emphasis:'em',figure:'figure',insertion:'ins',form:'form',list:'ul',listitem:'li',main:'main',navigation:'nav',paragraph:'p',region:'section',strong:'strong'},l={},u=function(e){if(void 0===e&&(e=l),'label'===(e.role||e.accessibilityRole))return'label';var t=(0,n.default)(e);if(t){if('heading'===t){var u=e.accessibilityLevel||e['aria-level'];return null!=u?"h"+u:'h1'}return o[t]}}},192,[193]);
2518__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var n={adjustable:'slider',button:'button',header:'heading',image:'img',imagebutton:null,keyboardkey:null,label:null,link:'link',none:'presentation',search:'search',summary:'region',text:null},t=t=>{var l=t.accessibilityRole,u=t.role||l;if(u){var o=n[u];if(null!==o)return o||u}}},193,[]);
2519__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var l=e(r(d[0])),t=e(r(d[1])),s=e(r(d[2])),n=e(r(d[3])),c=r(d[4]),u=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvali
2519d","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],o={},b=Object.prototype.hasOwnProperty,y=Array.isArray,v=/[A-Z]/g;function p(e){return'-'+e.toLowerCase()}function x(e){return e.replace(v,p)}function w(e){return y(e)?e.join(' '):e}var f=n.default.create({auto:{pointerEvents:'auto'},'box-none':{pointerEvents:'box-none'},'box-only':{pointerEvents:'box-only'},none:{pointerEvents:'none'}}),h=(e,y,v)=>{y||(y=o);var p=y,h=p['aria-activedescendant'],S=p.accessibilityActiveDescendant,C=p['aria-atomic'],I=p.accessibilityAtomic,R=p['aria-autocomplete'],D=p.accessibilityAutoComplete,M=p['aria-busy'],E=p.accessibilityBusy,O=p['aria-checked'],P=p.accessibilityChecked,k=p['aria-colcount'],A=p.accessibilityColumnCount,L=p['aria-colindex'],V=p.accessibilityColumnIndex,q=p['aria-colspan'],B=p.accessibilityColumnSpan,_=p['aria-controls'],z=p.accessibilityControls,T=p['aria-current'],j=p.accessibilityCurrent,H=p['aria-describedby'],N=p.accessibilityDescribedBy,F=p['aria-details'],K=p.accessibilityDetails,U=p['aria-disabled'],Z=p.accessibilityDisabled,G=p['aria-errormessage'],J=p.accessibilityErrorMessage,Q=p['aria-expanded'],W=p.accessibilityExpanded,X=p['aria-flowto'],Y=p.accessibilityFlowTo,$=p['aria-haspopup'],aa=p.accessibilityHasPopup,ia=p['aria-hidden'],ea=p.accessibilityHidden,la=p['aria-invalid'],ra=p.accessibilityInvalid,ta=p['aria-keyshortcuts'],sa=p.accessibilityKeyShortcuts,na=p['aria-label'],ca=p.accessibilityLabel,ua=p['aria-labelledby'],oa=p.accessibilityLabelledBy,ba=p['aria-level'],da=p.accessibilityLevel,ya=p['aria-live'],va=p.accessibilityLiveRegion,pa=p['aria-modal'],xa=p.accessibilityModal,ma=p['aria-multiline'],wa=p.accessibilityMultiline,fa=p['aria-multiselectable'],ha=p.accessibilityMultiSelectable,Sa=p['aria-orientation'],Ca=p.accessibilityOrientation,Ia=p['aria-owns'],Ra=p.accessibilityOwns,Da=p['aria-placeholder'],Ma=p.accessibilityPlaceholder,Ea=p['aria-posinset'],Oa=p.accessibilityPosInSet,Pa=p['aria-pressed'],ga=p.accessibilityPressed,ka=p['aria-readonly'],Aa=p.accessibilityReadOnly,La=p['aria-required'],Va=p.accessibilityRequired,qa=(p.role,p.accessibilityRole,p['aria-roledescription']),Ba=p.accessibilityRoleDescription,_a=p['aria-rowcount'],za=p.accessibilityRowCount,Ta=p['aria-rowindex'],ja=p.accessibilityRowIndex,Ha=p['aria-rowspan'],Na=p.accessibilityRowSpan,Fa=p['aria-selected'],Ka=p.accessibilitySelected,Ua=p['aria-setsize'],Za=p.accessibilitySetSize,Ga=p['aria-sort'],Ja=p.accessibilitySort,Qa=p['aria-valuemax'],Wa=p.accessibilityValueMax,Xa=p['aria-valuemin'],Ya=p.accessibilityValueMin,$a=p['aria-valuenow'],ai=p.accessibilityValueNow,ii=p['aria-valuetext'],ei=p.accessibilityValueText,li=p.dataSet,ri=p.focusable,ti=p.id,si=p.nativeID,ni=p.pointerEvents,ci=p.style,ui=p.tabIndex,oi=p.testID,bi=(0,t.default)(p,u),di=U||Z,yi=s.default.propsToAriaRole(y),vi=null!=h?h:S;null!=vi&&(bi['aria-activedescendant']=vi);var pi=null!=C?h:I;null!=pi&&(bi['aria-atomic']=pi);var xi=null!=R?R:D;null!=xi&&(bi['aria-autocomplete']=xi);var mi=null!=M?M:E;null!=mi&&(bi['aria-busy']=mi);var wi=null!=O?O:P;null!=wi&&(bi['aria-checked']=wi);var fi=null!=k?k:A;null!=fi&&(bi['aria-colcount']=fi);var hi=null!=L?L:V;null!=hi&&(bi['aria-colindex']=hi);var Si=null!=q?q:B;null!=Si&&(bi['aria-colspan']=Si);
2519var Ci=null!=_?_:z;null!=Ci&&(bi['aria-controls']=w(Ci));var Ii=null!=T?T:j;null!=Ii&&(bi['aria-current']=Ii);var Ri=null!=H?H:N;null!=Ri&&(bi['aria-describedby']=w(Ri));var Di=null!=F?F:K;null!=Di&&(bi['aria-details']=Di),!0===di&&(bi['aria-disabled']=!0,'button'!==e&&'form'!==e&&'input'!==e&&'select'!==e&&'textarea'!==e||(bi.disabled=!0));var Mi=null!=G?G:J;null!=Mi&&(bi['aria-errormessage']=Mi);var Ei=null!=Q?Q:W;null!=Ei&&(bi['aria-expanded']=Ei);var Oi=null!=X?X:Y;null!=Oi&&(bi['aria-flowto']=w(Oi));var Pi=null!=$?$:aa;null!=Pi&&(bi['aria-haspopup']=Pi);var gi=null!=ia?ia:ea;!0===gi&&(bi['aria-hidden']=gi);var ki=null!=la?la:ra;null!=ki&&(bi['aria-invalid']=ki);var Ai=null!=ta?ta:sa;null!=Ai&&(bi['aria-keyshortcuts']=w(Ai));var Li=null!=na?na:ca;null!=Li&&(bi['aria-label']=Li);var Vi=null!=ua?ua:oa;null!=Vi&&(bi['aria-labelledby']=w(Vi));var qi=null!=ba?ba:da;null!=qi&&(bi['aria-level']=qi);var Bi=null!=ya?ya:va;null!=Bi&&(bi['aria-live']='none'===Bi?'off':Bi);var _i=null!=pa?pa:xa;null!=_i&&(bi['aria-modal']=_i);var zi=null!=ma?ma:wa;null!=zi&&(bi['aria-multiline']=zi);var Ti=null!=fa?fa:ha;null!=Ti&&(bi['aria-multiselectable']=Ti);var ji=null!=Sa?Sa:Ca;null!=ji&&(bi['aria-orientation']=ji);var Hi=null!=Ia?Ia:Ra;null!=Hi&&(bi['aria-owns']=w(Hi));var Ni=null!=Da?Da:Ma;null!=Ni&&(bi['aria-placeholder']=Ni);var Fi=null!=Ea?Ea:Oa;null!=Fi&&(bi['aria-posinset']=Fi);var Ki=null!=Pa?Pa:ga;null!=Ki&&(bi['aria-pressed']=Ki);var Ui=null!=ka?ka:Aa;null!=Ui&&(bi['aria-readonly']=Ui,'input'!==e&&'select'!==e&&'textarea'!==e||(bi.readOnly=!0));var Zi=null!=La?La:Va;null!=Zi&&(bi['aria-required']=Zi,'input'!==e&&'select'!==e&&'textarea'!==e||(bi.required=Va)),null!=yi&&(bi.role='none'===yi?'presentation':yi);var Gi=null!=qa?qa:Ba;null!=Gi&&(bi['aria-roledescription']=Gi);var Ji=null!=_a?_a:za;null!=Ji&&(bi['aria-rowcount']=Ji);var Qi=null!=Ta?Ta:ja;null!=Qi&&(bi['aria-rowindex']=Qi);var Wi=null!=Ha?Ha:Na;null!=Wi&&(bi['aria-rowspan']=Wi);var Xi=null!=Fa?Fa:Ka;null!=Xi&&(bi['aria-selected']=Xi);var Yi=null!=Ua?Ua:Za;null!=Yi&&(bi['aria-setsize']=Yi);var $i=null!=Ga?Ga:Ja;null!=$i&&(bi['aria-sort']=$i);var ae=null!=Qa?Qa:Wa;null!=ae&&(bi['aria-valuemax']=ae);var ie=null!=Xa?Xa:Ya;null!=ie&&(bi['aria-valuemin']=ie);var ee=null!=$a?$a:ai;null!=ee&&(bi['aria-valuenow']=ee);var le=null!=ii?ii:ei;if(null!=le&&(bi['aria-valuetext']=le),null!=li)for(var re in li)if(b.call(li,re)){var te=x(re),se=li[re];null!=se&&(bi["data-"+te]=se)}0===ui||'0'===ui||-1===ui||'-1'===ui?bi.tabIndex=ui:(!1===ri&&(bi.tabIndex='-1'),'a'===e||'button'===e||'input'===e||'select'===e||'textarea'===e?!1!==ri&&!0!==Z||(bi.tabIndex='-1'):'button'===yi||'checkbox'===yi||'link'===yi||'radio'===yi||'textbox'===yi||'switch'===yi?!1!==ri&&(bi.tabIndex='0'):!0===ri&&(bi.tabIndex='0')),null!=ni&&(0,c.warnOnce)('pointerEvents',"props.pointerEvents is deprecated. Use style.pointerEvents");var ne=(0,n.default)([ci,ni&&f[ni]],(0,l.default)({writingDirection:'ltr'},v)),ce=ne[0],ue=ne[1];ce&&(bi.className=ce),ue&&(bi.style=ue);var oe=null!=ti?ti:si;return null!=oe&&(bi.id=oe),null!=oi&&(bi['data-testid']=oi),null==bi.type&&'button'===e&&(bi.type='button'),bi}},194,[19,43,190,42,87]);
2520__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getLocaleDirection=u,_e.LocaleProvider=function(e){var t=e.direction,o=e.locale,l=e.children;return t||o?n.default.createElement(c.Provider,{children:l,value:{direction:o?u(o):t,locale:o}}):l},_e.useLocaleContext=function(){return(0,t.useContext)(c)};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]),l={direction:'ltr',locale:'en-US'},c=(0,t.createContext)(l);function u(e){return(0,o.isLocaleRTL)(e)?'rtl':'ltr'}},195,[34,196]);
2521__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isLocaleRTL=function(s){var l=c.get(s);if(l)return l;var o=!1;if(Intl.Locale)try{var u=new Intl.Locale(s).maximize().script;o=t.has(u)}catch(t){var h=s.split('-')[0];o=n.has(h)}else{var v=s.split('-')[0];o=n.has(v)}return c.set(s,o),o};var t=new Set(['Arab','Syrc','Samr','Mand','Thaa','Mend','Nkoo','Adlm','Rohg','Hebr']),n=new Set(['ae','ar','arc','bcc','bqi','ckb','dv','fa','far','glk','he','iw','khw','ks','ku','mzn','nqo','pnb','ps','sd','ug','ur','yi']),c=new Map},196,[]);
2522__d(function(g,r,i,a,m,_e,d){"use strict";
2522Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"ImageUriCache",{enumerable:!0,get:function(){return t}});var e=/^data:/;class t{static has(n){var o=t._entries;return e.test(n)||Boolean(o[n])}static add(e){var n=t._entries,o=Date.now();n[e]?(n[e].lastUsedTimestamp=o,n[e].refCount+=1):n[e]={lastUsedTimestamp:o,refCount:1}}static remove(e){var n=t._entries;n[e]&&(n[e].refCount-=1),t._cleanUpIfNeeded()}static _cleanUpIfNeeded(){var e,n,o=t._entries,s=Object.keys(o);s.length+1>t._maximumEntries&&(s.forEach(t=>{var s=o[t];(!n||s.lastUsedTimestamp<n.lastUsedTimestamp)&&0===s.refCount&&(e=t,n=s)}),e&&delete o[e])}}t._maximumEntries=256,t._entries={};var n=0,o={},s={abort(e){var t=o[""+e];t&&(t.onerror=null,t.onload=null,t=null,delete o[""+e])},getSize(e,t,n){var l=!1,u=setInterval(f,16),c=s.load(e,f,function(){'function'==typeof n&&n();s.abort(c),clearInterval(u)});function f(){var e=o[""+c];if(e){var n=e.naturalHeight,f=e.naturalWidth;n&&f&&(t(f,n),l=!0)}l&&(s.abort(c),clearInterval(u))}},has:e=>t.has(e),load(e,t,s){n+=1;var l=new window.Image;return l.onerror=s,l.onload=e=>{var n=()=>t({nativeEvent:e});'function'==typeof l.decode?l.decode().then(n,n):setTimeout(n,0)},l.src=e,o[""+n]=l,n},prefetch:e=>new Promise((n,o)=>{s.load(e,()=>{t.add(e),t.remove(e),n()},o)}),queryCache(e){var n={};return e.forEach(e=>{t.has(e)&&(n[e]='disk/memory')}),Promise.resolve(n)}},l=s},197,[]);
2523__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=(0,r(d[0]).createContext)(!1)},198,[34]);
2524__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var o={};return e&&Object.keys(e).forEach(function(n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}),o.default=e,o}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return M}});var n=e(r(_d[0])),t=o(r(_d[1])),d=e(r(_d[2])),l=o(r(_d[3])),s=e(r(_d[4])),u=e(r(_d[5])),p=e(r(_d[6])),S=e(r(_d[7])),R=e(r(_d[8])),c=e(r(_d[9])),h=e(r(_d[10])),f=r(_d[11]),v=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStart
2524ShouldSetResponder","onStartShouldSetResponderCapture"],C=Object.assign({},l.defaultProps,l.accessibilityProps,l.clickProps,l.focusProps,l.keyboardProps,l.mouseProps,l.touchProps,l.styleProps,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),y=e=>(0,s.default)(e,C),b=t.forwardRef((e,o)=>{var l=e.hrefAttrs,s=e.onLayout,c=e.onMoveShouldSetResponder,C=e.onMoveShouldSetResponderCapture,b=e.onResponderEnd,M=e.onResponderGrant,P=e.onResponderMove,w=e.onResponderReject,_=e.onResponderRelease,j=e.onResponderStart,O=e.onResponderTerminate,k=e.onResponderTerminationRequest,T=e.onScrollShouldSetResponder,D=e.onScrollShouldSetResponderCapture,E=e.onSelectionChangeShouldSetResponder,L=e.onSelectionChangeShouldSetResponderCapture,q=e.onStartShouldSetResponder,A=e.onStartShouldSetResponderCapture,G=(0,n.default)(e,v),z=t.useContext(h.default),I=t.useRef(null),W=(0,f.useLocaleContext)().direction;(0,u.default)(I,s),(0,R.default)(I,{onMoveShouldSetResponder:c,onMoveShouldSetResponderCapture:C,onResponderEnd:b,onResponderGrant:M,onResponderMove:P,onResponderReject:w,onResponderRelease:_,onResponderStart:j,onResponderTerminate:O,onResponderTerminationRequest:k,onScrollShouldSetResponder:T,onScrollShouldSetResponderCapture:D,onSelectionChangeShouldSetResponder:E,onSelectionChangeShouldSetResponderCapture:L,onStartShouldSetResponder:q,onStartShouldSetResponderCapture:A});var $='div',B=null!=e.lang?(0,f.getLocaleDirection)(e.lang):null,H=e.dir||B,N=H||W,V=y(G);if(V.dir=H,V.style=[x.view$raw,z&&x.inline,e.style],null!=e.href&&($='a',null!=l)){var F=l.download,J=l.rel,K=l.target;null!=F&&(V.download=F),null!=J&&(V.rel=J),'string'==typeof K&&(V.target='_'!==K.charAt(0)?'_'+K:K)}var Q=(0,S.default)(V),U=(0,p.default)(I,Q,o);return V.ref=U,(0,d.default)($,V,{writingDirection:N})});b.displayName='View';var x=c.default.create({view$raw:{alignContent:'flex-start',alignItems:'stretch',backgroundColor:'transparent',border:'0 solid black',boxSizing:'border-box',display:'flex',flexBasis:'auto',flexDirection:'column',flexShrink:0,listStyle:'none',margin:0,minHeight:0,minWidth:0,padding:0,position:'relative',textDecoration:'none',zIndex:0},inline:{display:'inline-flex'}}),M=b},199,[43,34,189,200,201,202,204,206,208,42,198,195]);
2525__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"defaultProps",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"accessibilityProps",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"clickProps",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"focusProps",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"keyboardProps",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"mouseProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"touchProps",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"styleProps",{enumerable:!0,get:function(){return b}});var t={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},c={'aria-activedescendant':!0,'aria-atomic':!0,'aria-autocomplete':!0,'aria-busy':!0,'aria-checked':!0,'aria-colcount':!0,'aria-colindex':!0,'aria-colspan':!0,'aria-controls':!0,'aria-current':!0,'aria-describedby':!0,'aria-details':!0,'aria-disabled':!0,'aria-errormessage':!0,'aria-expanded':!0,'aria-flowto':!0,'aria-haspopup':!0,'aria-hidden':!0,'aria-invalid':!0,'aria-keyshortcuts':!0,'aria-label':!0,'aria-labelledby':!0,'aria-level':!0,'aria-live':!0,'aria-modal'
2525:!0,'aria-multiline':!0,'aria-multiselectable':!0,'aria-orientation':!0,'aria-owns':!0,'aria-placeholder':!0,'aria-posinset':!0,'aria-pressed':!0,'aria-readonly':!0,'aria-required':!0,inert:!0,role:!0,'aria-roledescription':!0,'aria-rowcount':!0,'aria-rowindex':!0,'aria-rowspan':!0,'aria-selected':!0,'aria-setsize':!0,'aria-sort':!0,'aria-valuemax':!0,'aria-valuemin':!0,'aria-valuenow':!0,'aria-valuetext':!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},o={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},s={onBlur:!0,onFocus:!0},n={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},l={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},u={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},b={style:!0}},200,[]);
2526__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){var u={};for(var o in t)t.hasOwnProperty(o)&&!0===n[o]&&(u[o]=t[o]);return u}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}})},201,[]);
2527__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var t=e(r(d[0])),n=e(r(d[1])),u=e(r(d[2])),l='__reactLayoutHandler',o=(u.default,null);function f(e,f){var v=(u.default&&void 0!==window.ResizeObserver&&null==o&&(o=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,u=t[l];'function'==typeof u&&n.default.measure(t,(t,n,l,o,f,v)=>{var c={nativeEvent:{layout:{x:t,y:n,width:l,height:o,left:f,top:v}},timeStamp:Date.now()};Object.defineProperty(c.nativeEvent,'target',{enumerable:!0,get:()=>e.target}),u(c)})})})),o);(0,t.default)(()=>{var t=e.current;null!=t&&(t[l]=f)},[e,f]),(0,t.default)(()=>{var t=e.current;return null!=t&&null!=v&&('function'==typeof t[l]?v.observe(t):v.unobserve(t)),()=>{null!=t&&null!=v&&v.unobserve(t)}},[e,v])}},202,[203,152,39]);
2528__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e,t=r(d[0]),u=r(d[1]),f=((e=u)&&e.__esModule?e:{default:e}).default?t.useLayoutEffect:t.useEffect},203,[34,39]);
2529__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}
2529)(r(_d[0])),n=r(_d[1]),u=(e=n)&&e.__esModule?e:{default:e};function o(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.useMemo(()=>(0,u.default)(...n),[...n])}},204,[34,205]);
2530__d(function(g,r,i,a,m,e,d){"use strict";function n(){for(var n=arguments.length,t=new Array(n),o=0;o<n;o++)t[o]=arguments[o];return function(n){t.forEach(t=>{null!=t&&('function'!=typeof t?'object'!=typeof t?console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(t)):t.current=n:t(n))})}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}}),r(d[0])},205,[34]);
2531__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var u=e(r(d[0])),t=e(r(d[1]));function n(e){e.pointerEvents,e.style;return(0,t.default)(()=>e=>{null!=e&&(e.measure=t=>u.default.measure(e,t),e.measureLayout=(t,n,l)=>u.default.measureLayout(e,t,l,n),e.measureInWindow=t=>u.default.measureInWindow(e,t))})}},206,[152,207]);
2532__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t='function'==typeof Symbol&&'symbol'==typeof Symbol()?Symbol():Object.freeze({});function n(n){var u=e.useRef(t);return u.current===t&&(u.current=n()),u.current}},207,[34]);
2533__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,u.get?u:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var n=e(r(_d[0])),t=e(r(_d[1])),u={},o=0;function l(e,l){void 0===l&&(l=u);var d,c,s=(d=()=>o++,null==(c=n.useRef(null)).current&&(c.current=d()),c.current),S=n.useRef(!1);n.useEffect(()=>(t.attachListeners(),()=>{t.removeNode(s)}),[s]),n.useEffect(()=>{var n=l,u=n.onMoveShouldSetResponder,o=n.onMoveShouldSetResponderCapture,d=n.onScrollShouldSetResponder,c=n.onScrollShouldSetResponderCapture,f=n.onSelectionChangeShouldSetResponder,p=n.onSelectionChangeShouldSetResponderCapture,h=n.onStartShouldSetResponder,R=n.onStartShouldSetResponderCapture,v=null!=u||null!=o||null!=d||null!=c||null!=f||null!=p||null!=h||null!=R,b=e.current;v?(t.addNode(s,b,l),S.current=!0):S.current&&(t.removeNode(s),S.current=!1)},[l,e,s]),n.useDebugValue({isResponder:e.current===t.getResponderNode()}),n.useDebugValue(l)}},208,[34,209]);
2534__d(function(g,r,_i2,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.attachListeners=function(){s.default&&null==window.__reactResponderSystemActive&&(window.addEventListener('blur',P),E.forEach(e=>{document.addEventListener(e,P)}),_.forEach(e=>{document.addEventListener(e,P,!0)}),window.__reactResponderSystemActive=!0)},_e.addNode=function(e,n,t){(0,o.setResponderId)(n,e),f.set(e,t)},_e.removeNode=function(e){S.id===e&&M();f.has(e)&&f.delete(e)},_e.terminateResponder=M,_e.getResponderNode=function(){return S.node};var n=e(r(d[0])),t=r(d[1]),o=r(d[2]),i=r(d[3]),s=e(r(d[4])),l={},u=['onStartShouldSetResponderCapture','onStartShouldSetResponder',{bubbles:!0}],c=['onMoveShouldSetResponderCapture','onMoveShouldSetResponder',{bubbles:!0}],p={touchstart:u,mousedown:u,touchmove:c,mousemove:c,scroll:['onScrollShouldSetResponderCapture','onScrollShouldSetResponder',{bubbles:!1}]},h={id:null,idPath:null,node:null},f=new Map,v=!1,R=0,S={id:null,node:null,idPath:null},b=new i.ResponderTouchHistoryStore;function T(e){S=e}function C(e){var n=f.get(e);return null!=n?n:l}function P(e){var i=e.type,s=e.target;if('touchstart'===i&&(v=!0),('touchmove'===i||R>1)&&(v=!1),!('mousedown'===i&&v||'mousemove'===i&&v||'mousemove'===i&&R<1))if(v&&'mouseup'===i)0===R&&(v=!1);else{var l=(0,t.isStartish)(i)&&(0,o.isPrimaryPointerDown)(e),u=(0,t.isMoveish)(i),c=(0,t.isEndish)(i),p=(0,t.isScroll)(i),f=(0,t.isSelectionChange)(i),P=(0,n.default)(e,b);(l||u||c)&&(e.touches?R=e.touches.length:l?R=1:c&&(R=0),b.recordTouchTrack(i,P.nativeEvent));var _,E=(0,o.getResponderPaths)(e),M=!1;if(l||u||p&&R>0){var y=S.idPath,x=E.idPath;
2534if(null!=y&&null!=x){var L=(0,o.getLowestCommonAncestor)(y,x);if(null!=L){var q=x.indexOf(L)+(L===S.id?1:0);E={idPath:x.slice(q),nodePath:E.nodePath.slice(q)}}else E=null}null!=E&&null!=(_=w(E,e,P))&&(N(P,_),M=!0)}if(null!=S.id&&null!=S.node){var j=S,A=j.id,G=j.node,O=C(A),k=O.onResponderStart,D=O.onResponderMove,H=O.onResponderEnd,I=O.onResponderRelease,V=O.onResponderTerminate,z=O.onResponderTerminationRequest;if(P.bubbles=!1,P.cancelable=!1,P.currentTarget=G,l)null!=k&&(P.dispatchConfig.registrationName='onResponderStart',k(P));else if(u)null!=D&&(P.dispatchConfig.registrationName='onResponderMove',D(P));else{var B=(0,t.isCancelish)(i)||'contextmenu'===i||'blur'===i&&s===window||'blur'===i&&s.contains(G)&&e.relatedTarget!==G||p&&0===R||p&&s.contains(G)&&s!==G||f&&(0,o.hasValidSelection)(e),F=c&&!B&&!(0,o.hasTargetTouches)(G,e.touches);if(c&&null!=H&&(P.dispatchConfig.registrationName='onResponderEnd',H(P)),F&&(null!=I&&(P.dispatchConfig.registrationName='onResponderRelease',I(P)),T(h)),B){var J=!0;'contextmenu'!==i&&'scroll'!==i&&'selectionchange'!==i||(M?J=!1:null!=z&&(P.dispatchConfig.registrationName='onResponderTerminationRequest',!1===z(P)&&(J=!1))),J&&(null!=V&&(P.dispatchConfig.registrationName='onResponderTerminate',V(P)),T(h),v=!1,R=0)}}}}}function w(e,n,t){var o=p[n.type];if(null!=o){for(var i=e.idPath,s=e.nodePath,l=o[0],u=o[1],c=o[2].bubbles,h=function(e,n,o){var s=C(e)[o];if(null!=s&&(t.currentTarget=n,!0===s(t)))return{id:e,node:n,idPath:i.slice(i.indexOf(e))}},f=i.length-1;f>=0;f--){var v=h(i[f],s[f],l);if(null!=v)return v;if(!0===t.isPropagationStopped())return}if(c)for(var R=0;R<i.length;R++){var S=h(i[R],s[R],u);if(null!=S)return S;if(!0===t.isPropagationStopped())return}else{var b=i[0],T=s[0];if(n.target===T)return h(b,T,u)}}}function N(e,n){var t=S,o=t.id,i=t.node,s=n.id,l=n.node,u=C(s),c=u.onResponderGrant,p=u.onResponderReject;if(e.bubbles=!1,e.cancelable=!1,e.currentTarget=l,null==o)null!=c&&(e.currentTarget=l,e.dispatchConfig.registrationName='onResponderGrant',c(e)),T(n);else{var h=C(o),f=h.onResponderTerminate,v=h.onResponderTerminationRequest,R=!0;null!=v&&(e.currentTarget=i,e.dispatchConfig.registrationName='onResponderTerminationRequest',!1===v(e)&&(R=!1)),R?(null!=f&&(e.currentTarget=i,e.dispatchConfig.registrationName='onResponderTerminate',f(e)),null!=c&&(e.currentTarget=l,e.dispatchConfig.registrationName='onResponderGrant',c(e)),T(n)):null!=p&&(e.currentTarget=l,e.dispatchConfig.registrationName='onResponderReject',p(e))}}var _=['blur','scroll'],E=['mousedown','mousemove','mouseup','dragstart','touchstart','touchmove','touchend','touchcancel','contextmenu','select','selectionchange'];function M(){var e=S,t=e.id,o=e.node;if(null!=t&&null!=o){var i=C(t).onResponderTerminate;if(null!=i){var s=(0,n.default)({},b);s.currentTarget=o,i(s)}T(h)}v=!1,R=0}},209,[210,211,212,214,39]);
2535__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=()=>{},o={},c=[];function l(e){return e>20?e%20:e}function f(e,t){var f,p,s,v=!1,y=e.changedTouches,h=e.type,X=!0===e.metaKey,Y=!0===e.shiftKey,P=y&&y[0].force||0,b=l(y&&y[0].identifier||0),T=y&&y[0].clientX||e.clientX,K=y&&y[0].clientY||e.clientY,_=y&&y[0].pageX||e.pageX,D=y&&y[0].pageY||e.pageY,S='function'==typeof e.preventDefault?e.preventDefault.bind(e):u,j=e.timeStamp;function H(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:l(e.identifier),get locationX(){return A(e.clientX)},get locationY(){return C(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:j}))}if(null!=y)p=H(y),s=H(e.touches);else{var M=[{force:P,identifier:b,get locationX(){return A(T)},get locationY(){return C(K)},pageX:_,pageY:D,target:e.target,timestamp:j}];p=M,s='mouseup'===h||'dragstart'===h?c:M}var O={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:o,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>v,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:X,shiftKey:Y,changedTouches:p,force:P,identifier:b,get locationX(){return A(T)},get locationY(){return C(K)},pageX:_,pageY:D,target:e.target,timestamp:j,touches:s,type:h},persist:u,preventDefault:S,stopPropagation(){v=!0},target:e.target,timeStamp:j,touchHistory:t.touchHistory};function A(e){if(f=f||(0,n.default)(O.currentTarget))return e-f.left}function C(e){if(f=f||(0,n.default)(O.currentTarget))return e-f.top}return O}},210,[153]);
2536__d(function(g,r,i,a,m,e,d){"use strict";
2536Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"BLUR",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"CONTEXT_MENU",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"FOCUS_OUT",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"MOUSE_DOWN",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"MOUSE_MOVE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"MOUSE_UP",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"MOUSE_CANCEL",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"TOUCH_START",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"TOUCH_MOVE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"TOUCH_END",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"TOUCH_CANCEL",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"SCROLL",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"SELECT",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"SELECTION_CHANGE",{enumerable:!0,get:function(){return P}}),e.isStartish=function(t){return t===b||t===o},e.isMoveish=function(t){return t===l||t===c},e.isEndish=function(t){return t===s||t===f||j(t)},e.isCancelish=j,e.isScroll=function(t){return t===p},e.isSelectionChange=function(t){return t===C||t===P};var t='blur',n='contextmenu',u='focusout',o='mousedown',c='mousemove',f='mouseup',O='dragstart',b='touchstart',l='touchmove',s='touchend',E='touchcancel',p='scroll',C='select',P='selectionchange';function j(t){return t===E||t===O}},211,[]);
2537__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.setResponderId=function(e,t){null!=e&&(e[o]=t)},_e.getResponderPaths=function(e){for(var t=[],n=[],o=u(e),l=0;l<o.length;l++){var i=o[l],s=c(i);null!=s&&(t.push(s),n.push(i))}return{idPath:t,nodePath:n}},_e.getLowestCommonAncestor=function(e,t){var n=e.length,o=t.length;if(0===n||0===o||e[n-1]!==t[o-1])return null;var u=e[0],l=0,c=t[0],i=0;n-o>0&&(u=e[l=n-o],n=o);o-n>0&&(c=t[i=o-n],o=n);var s=n;for(;s--;){if(u===c)return u;u=e[l++],c=t[i++]}return null},_e.hasTargetTouches=function(e,t){if(!t||0===t.length)return!1;for(var n=0;n<t.length;n++){var o=t[n].target;if(null!=o&&e.contains(o))return!0}return!1},_e.hasValidSelection=function(e){if('selectionchange'===e.type)return(0,n.default)();return'select'===e.type},_e.isPrimaryPointerDown=function(e){var t=e.altKey,n=e.button,o=e.buttons,u=e.ctrlKey,l=e.type,c='mousedown'===l&&(0===n||1===o),i='mousemove'===l&&1===o,s=!1===t&&!1===u;if('touchstart'===l||'touchmove'===l||c&&s||i&&s)return!0;return!1};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o='__reactResponderId';function u(e){return'selectionchange'===e.type?l(window.getSelection().anchorNode):null!=e.composedPath?e.composedPath():l(e.target)}function l(e){for(var t=[];null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}function c(e){return null!=e?e[o]:null}},212,[213]);
2538__d(function(g,r,i,a,m,e,d){"use strict";function n(){var n=window.getSelection(),o=n.toString(),t=n.anchorNode,u=n.focusNode,c=t&&t.nodeType===window.Node.TEXT_NODE||u&&u.nodeType===window.Node.TEXT_NODE;return o.length>=1&&'\n'!==o&&c}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},213,[]);
2539__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ResponderTouchHistoryStore",{enumerable:!0,get:function(){return T}});var t=r(d[0]);function n(t){return t.timeStamp||t.timestamp}function i(t){return{touchActive:!0,startPageX:t.pageX,startPageY:t.pageY,startTimeStamp:n(t),currentPageX:t.pageX,currentPageY:t.pageY,currentTimeStamp:n(t),previousPageX:t.pageX,previousPageY:t.pageY,previousTimeStamp:n(t)}}function c(t,i){t.touchActive=!0,t.startPageX=i.pageX,t.startPageY=i.pageY,t.startTimeStamp=n(i),t.currentPageX=i.pageX,t.currentPageY=i.pageY,t.currentTimeStamp=n(i),t.previousPageX=i.pageX,t.previousPageY=i.pageY,t.previousTimeStamp=n(i)}function o(t){var n=t.identifier;return null==n&&console.error('Touch object is missing identifier.'),n}function u(t,u){var s=o(t),h=u.touchBank[s];h?c(h,t):u.touchBank[s]=i(t),u.mostRecentTimeStamp=n(t)}function s(t,i){var c=i.touchBank[o(t)];c?(c.touchActive=!0,c.previousPageX=c.currentPageX,c.previousPageY=c.currentPageY,c.previousTimeStamp=c.currentTimeStamp,c.currentPageX=t.pageX,c.currentPageY=t.pageY,c.currentTimeStamp=n(t),i.mostRecentTimeStamp=n(t)):console.warn('Cannot record touch move without a touch start.\n',"Touch Move: "+p(t)+"\n","Touch Bank: "+v(i))}function h(t,i){var c=i.touchBank[o(t)];c?(c.touchActive=!1,c.previousPageX=c.currentPageX,c.previousPageY=c.currentPageY,c.previousTimeStamp=c.currentTimeStamp,c.currentPageX=t.pageX,c.currentPageY=t.pageY,c.currentTimeStamp=n(t),i.mostRecentTimeStamp=n(t)):console.warn('Cannot record touch end without a touch start.\n',"Touch End: "+p(t)+"\n","Touch Bank: "+v(i))}function p(t){return JSON.stringify({identifier:t.identifier,pageX:t.pageX,pageY:t.pageY,timestamp:n(t)})}function v(t){var n=t.touchBank,i=JSON.stringify(n.slice(0,20));return n.length>20&&(i+=' (original size: '+n.length+')'),i}class T{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(n,i){var c=this._touchHistory;
2539if((0,t.isMoveish)(n))i.changedTouches.forEach(t=>s(t,c));else if((0,t.isStartish)(n))i.changedTouches.forEach(t=>u(t,c)),c.numberActiveTouches=i.touches.length,1===c.numberActiveTouches&&(c.indexOfSingleActiveTouch=i.touches[0].identifier);else if((0,t.isEndish)(n)&&(i.changedTouches.forEach(t=>h(t,c)),c.numberActiveTouches=i.touches.length,1===c.numberActiveTouches))for(var o=c.touchBank,p=0;p<o.length;p++){var v=o[p];if(null!=v&&v.touchActive){c.indexOfSingleActiveTouch=p;break}}}get touchHistory(){return this._touchHistory}}},214,[211]);
2540__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}});var n=e(r(_d[0])),t=e(r(_d[1])),o=r(_d[2]),s=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n})(o),l=e(r(_d[3])),u=e(r(_d[4])),d=e(r(_d[5])),c=e(r(_d[6])),f=e(r(_d[7])),v=["children","delayLongPress","delayPressIn","delayPressOut","disabled","onBlur","onContextMenu","onFocus","onHoverIn","onHoverOut","onKeyDown","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","tabIndex","testOnly_hovered","testOnly_pressed"];function P(e,c){var P=e.children,O=e.delayLongPress,p=e.delayPressIn,_=e.delayPressOut,M=e.disabled,C=e.onBlur,h=e.onContextMenu,I=e.onFocus,x=e.onHoverIn,E=e.onHoverOut,H=e.onKeyDown,w=e.onLongPress,L=e.onPress,j=e.onPressMove,k=e.onPressIn,D=e.onPressOut,K=e.style,S=e.tabIndex,B=e.testOnly_hovered,F=e.testOnly_pressed,R=(0,t.default)(e,v),A=y(!0===B),N=A[0],q=A[1],z=y(!1),G=z[0],J=z[1],Q=y(!0===F),T=Q[0],U=Q[1],V=(0,o.useRef)(null),W=(0,l.default)(c,V),X=(0,o.useMemo)(()=>({delayLongPress:O,delayPressStart:p,delayPressEnd:_,disabled:M,onLongPress:w,onPress:L,onPressChange:U,onPressStart:k,onPressMove:j,onPressEnd:D}),[O,p,_,M,w,L,k,j,D,U]),Y=(0,d.default)(V,X),Z=Y.onContextMenu,$=Y.onKeyDown;(0,u.default)(V,{contain:!0,disabled:M,onHoverChange:q,onHoverStart:x,onHoverEnd:E});var ee,ne={hovered:N,focused:G,pressed:T},te=s.useCallback(e=>{e.nativeEvent.target===V.current&&(J(!1),null!=C&&C(e))},[V,J,C]),oe=s.useCallback(e=>{e.nativeEvent.target===V.current&&(J(!0),null!=I&&I(e))},[V,J,I]),re=s.useCallback(e=>{null!=Z&&Z(e),null!=h&&h(e)},[h,Z]),se=s.useCallback(e=>{null!=$&&$(e),null!=H&&H(e)},[H,$]);return ee=void 0!==S?S:M?-1:0,s.createElement(f.default,(0,n.default)({},R,Y,{"aria-disabled":M,onBlur:te,onContextMenu:re,onFocus:oe,onKeyDown:se,ref:W,style:[M?b.disabled:b.active,'function'==typeof K?K(ne):K],tabIndex:ee}),'function'==typeof P?P(ne):P)}function y(e){var n=(0,o.useState)(!1);return[n[0]||e,n[1]]}var b=c.default.create({active:{cursor:'pointer',touchAction:'manipulation'},disabled:{pointerEvents:'box-none'}}),O=(0,o.memo)((0,o.forwardRef)(P));O.displayName='Pressable';var p=O},215,[27,43,34,204,216,220,42,199]);
2541__d(function(g,r,i,a,m,_e,d){"use strict";function n(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return b}});var e=r(d[0]),t=n(r(d[1])),u=n(r(d[2])),l={},o={passive:!0},c='react-gui:hover:lock',f='react-gui:hover:unlock',v=()=>!('undefined'==typeof window||null==window.PointerEvent);function s(n,e,t){var u=document.createEvent('CustomEvent'),o=t||l,c=o.bubbles,f=void 0===c||c,v=o.cancelable,s=void 0===v||v,p=o.detail;u.initCustomEvent(e,f,s,p),n.dispatchEvent(u)}function p(n){var t=n.pointerType;return null!=t?t:(0,e.getModality)()}function b(n,e){var l=e.contain,b=e.disabled,h=e.onHoverStart,y=e.onHoverChange,E=e.onHoverUpdate,_=e.onHoverEnd,w=v(),H=(0,t.default)(w?'pointermove':'mousemove',o),C=(0,t.default)(w?'pointerenter':'mouseenter',o),M=(0,t.default)(w?'pointerleave':'mouseleave',o),P=(0,t.default)(c,o),j=(0,t.default)(f,o);(0,u.default)(()=>{var e=n.current;if(null!==e){var t=function(n){null!=_&&_(n),null!=y&&y(!1),H(e,null),M(e,null)},u=function(e){var u=n.current;null!=u&&'touch'!==p(e)&&(l&&s(u,f),t(e))},o=function(n){'touch'!==p(n)&&null!=E&&(null==n.x&&(n.x=n.clientX),null==n.y&&(n.y=n.clientY),E(n))},v=function(n){null!=h&&h(n),null!=y&&y(!0),null!=E&&H(e,b?null:o),M(e,b?null:u)};C(e,b?null:function(e){var u=n.current;if(null!=u&&'touch'!==p(e)){l&&s(u,c),v(e);P(u,b?null:function(n){n.target!==u&&t(e)}),j(u,b?null:function(n){n.target!==u&&v(e)})}})}},[C,H,M,P,j,l,b,h,y,E,_,n])}},216,[217,219,203]);
2542__d(function(g,r,i,a,m,_e,d){"use strict";
2542Object.defineProperty(_e,'__esModule',{value:!0}),_e.getActiveModality=function(){return s},_e.getModality=function(){return l},_e.addModalityListener=function(e){return y.add(e),()=>{y.delete(e)}},_e.testOnly_resetActiveModality=function(){v=!1,s=f,l=f};var e,t,n,o=r(d[0]),u=r(d[1]),c=(e=u)&&e.__esModule?e:{default:e},s='keyboard',l='keyboard',v=!1,y=new Set,f='keyboard',p='mouse',E='touch',L='contextmenu',w='mousedown',h='mousemove',b='mouseup',M='pointerdown',_='pointermove',T='scroll',k='selectionchange',K='touchcancel',A='touchmove',O='touchstart',P={passive:!0},S={capture:!0,passive:!0};function j(){null==t&&null==n||(null!=t&&(l=t,t=null),null!=n&&(s=n,n=null),q())}function x(e){var t=e.type;if('undefined'!=typeof window&&null!=window.PointerEvent){if(t===M)return void(s!==e.pointerType&&(l=e.pointerType,s=e.pointerType,q()));if(t===_)return void(l!==e.pointerType&&(l=e.pointerType,q()))}else{if(v||(t===w&&s!==p&&(l=p,s=p,q()),t===h&&l!==p&&(l=p,q())),t===O)return v=!0,e.touches&&e.touches.length>1&&(v=!1),void(s!==E&&(l=E,s=E,q()));t!==L&&t!==b&&t!==k&&t!==T&&t!==K&&t!==A||(v=!1)}}function q(){var e={activeModality:s,modality:l};y.forEach(t=>{t(e)})}c.default&&((0,o.addEventListener)(window,'blur',function(){t=l,n=s,s=f,l=f,q(),v=!1},P),(0,o.addEventListener)(window,'focus',function(){j()},P),(0,o.addEventListener)(document,'keydown',function(e){e.metaKey||e.altKey||e.ctrlKey||l!==f&&(l=f,s=f,q())},S),(0,o.addEventListener)(document,'visibilitychange',function(){'hidden'!==document.visibilityState&&j()},S),(0,o.addEventListener)(document,M,x,S),(0,o.addEventListener)(document,_,x,S),(0,o.addEventListener)(document,L,x,S),(0,o.addEventListener)(document,w,x,S),(0,o.addEventListener)(document,h,x,S),(0,o.addEventListener)(document,b,x,S),(0,o.addEventListener)(document,K,x,S),(0,o.addEventListener)(document,A,x,S),(0,o.addEventListener)(document,O,x,S),(0,o.addEventListener)(document,k,x,S),(0,o.addEventListener)(document,T,x,S))},217,[218,39]);
2543__d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,'__esModule',{value:!0}),_e.addEventListener=function(e,t,n,u){var o=s(u),l=e=>n(c(e));return e.addEventListener(t,l,o),function(){null!=e&&e.removeEventListener(t,l,o)}};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=()=>{};var o=(function(){var e=!1;if(n.default)try{var t={};Object.defineProperty(t,'passive',{get:()=>(e=!0,!1)}),window.addEventListener('test',null,t),window.removeEventListener('test',null,t)}catch(e){}return e})();function s(e){return null!=e&&(o?e:Boolean(e.capture))}function l(){return this.cancelBubble}function v(){return this.defaultPrevented}function c(e){return e.nativeEvent=e,e.persist=u,e.isDefaultPrevented=v,e.isPropagationStopped=l,e}},218,[39]);
2544__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=e(r(d[1])),u=e(r(d[2]));function l(e,l){var f=(0,u.default)(()=>new Map),c=(0,u.default)(()=>(n,u)=>{var c=f.get(n);null!=c&&c(),null==u&&(f.delete(n),u=()=>{});var o=(0,t.addEventListener)(n,e,u,l);return f.set(n,o),o});return(0,n.default)(()=>()=>{f.forEach(e=>{e()}),f.clear()},[f]),c}},219,[218,203,207]);
2545__d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e,u=r(d[0]),t=(e=u)&&e.__esModule?e:{default:e},n=r(d[1]);function f(e,u){var f=(0,n.useRef)(null);null==f.current&&(f.current=new t.default(u));var l=f.current;return(0,n.useEffect)(()=>{l.configure(u)},[u,l]),(0,n.useEffect)(()=>()=>{l.reset()},[l]),(0,n.useDebugValue)(u),l.getEventHandlers()}},220,[221,34]);
2546__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return N}});var t='DELAY',s='ERROR',n='LONG_PRESS_DETECTED',o='NOT_RESPONDER',l='RESPONDER_ACTIVE_LONG_PRESS_START',_='RESPONDER_ACTIVE_PRESS_START',E='RESPONDER_INACTIVE_PRESS_START',u='RESPONDER_RELEASE',h='RESPONDER_TERMINATED',c=Object.freeze({NOT_RESPONDER:{DELAY:s,RESPONDER_GRANT:E,RESPONDER_RELEASE:s,RESPONDER_TERMINATED:s,LONG_PRESS_DETECTED:s},RESPONDER_INACTIVE_PRESS_START:{DELAY:_,RESPONDER_GRANT:s,RESPONDER_RELEASE:o,RESPONDER_TERMINATED:o,LONG_PRESS_DETECTED:s},RESPONDER_ACTIVE_PRESS_START:{DELAY:s,RESPONDER_GRANT:s,RESPONDER_RELEASE:o,RESPONDER_TERMINATED:o,LONG_PRESS_DETECTED:l},RESPONDER_ACTIVE_LONG_PRESS_START:{DELAY:s,RESPONDER_GRANT:s,RESPONDER_RELEASE:o,RESPONDER_TERMINATED:o,LONG_PRESS_DETECTED:l},ERROR:{DELAY:o,RESPONDER_GRANT:E,RESPONDER_RELEASE:o,RESPONDER_TERMINATED:o,LONG_PRESS_DETECTED:o}}),R=t=>t.getAttribute('role'),T=t=>t.tagName.toLowerCase(),P=t=>t===_||t===l,S=t=>'button'===R(t),D=t=>t===E||t===_||t===l,v=t=>t===h||t===u,p=t=>{var s=t.key,n=t.target,o=' '===s||'Spacebar'===s,l='button'===T(n)||S(n);return'Enter'===s||o&&l};class N{constructor(t){this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState=o,this._responderElement=null,this.configure(t)}configure(t){this._config=t}reset(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}getEventHandlers(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}_createEventHandlers(){var s=(s,n)=>{s.persist(),this._cancelPressOutDelayTimeout(),this._longPressDispatched=!1,this._selectionTerminated=!1,this._touchState=o,this._isPointerTouch='touchstart'===s.nativeEvent.type,this._receiveSignal("RESPONDER_GRANT",s);var l=O(this._config.delayPressStart,0,50);!1!==n&&l>0?this._pressDelayTimeout=setTimeout(()=>{this._receiveSignal(t,s)},l):this._receiveSignal(t,s);var _=O(this._config.delayLongPress,10,450);this._longPressDelayTimeout=setTimeout(()=>{this._handleLongPress(s)},_+l)},n=t=>{this._receiveSignal(u,t)},l=t=>{var s=this._config.onPress,_=t.target;if(this._touchState!==o&&p(t)){n(t),document.removeEventListener('keyup',l);var E=_.getAttribute('role'),u=T(_),h='link'===E||'a'===u||'button'===u||'input'===u||'select'===u||'textarea'===u,c=this._responderElement===_;null!=s&&!h&&c&&s(t),this._responderElement=null}};
2546return{onStartShouldSetResponder:t=>{var s=this._config.disabled;return s&&S(t.currentTarget)&&t.stopPropagation(),null==s||!s},onKeyDown:t=>{var n=this._config.disabled,_=t.key,E=t.target;if(!n&&p(t)){this._touchState===o&&(s(t,!1),this._responderElement=E,document.addEventListener('keyup',l));var u=' '===_||'Spacebar'===_,h=R(E);u&&('button'===h||'menuitem'===h)&&'button'!==T(E)&&t.preventDefault(),t.stopPropagation()}},onResponderGrant:t=>s(t),onResponderMove:t=>{null!=this._config.onPressMove&&this._config.onPressMove(t);var s=f(t);if(null!=this._touchActivatePosition){var n=this._touchActivatePosition.pageX-s.pageX,o=this._touchActivatePosition.pageY-s.pageY;Math.hypot(n,o)>10&&this._cancelLongPressDelayTimeout()}},onResponderRelease:t=>n(t),onResponderTerminate:t=>{'selectionchange'===t.nativeEvent.type&&(this._selectionTerminated=!0),this._receiveSignal(h,t)},onResponderTerminationRequest:t=>{var s=this._config,n=s.cancelable,o=s.disabled,l=s.onLongPress;return!(!o&&null!=l&&this._isPointerTouch&&'contextmenu'===t.nativeEvent.type)&&(null==n||n)},onClick:t=>{var s=this._config,n=s.disabled,o=s.onPress;n?S(t.currentTarget)&&t.stopPropagation():(t.stopPropagation(),this._longPressDispatched||this._selectionTerminated?t.preventDefault():null!=o&&!1===t.altKey&&o(t))},onContextMenu:t=>{var s=this._config,n=s.disabled,o=s.onLongPress;n?S(t.currentTarget)&&t.stopPropagation():null!=o&&this._isPointerTouch&&!t.defaultPrevented&&(t.preventDefault(),t.stopPropagation())}}}_receiveSignal(t,n){var l=this._touchState,_=null;null!=c[l]&&(_=c[l][t]),this._touchState===o&&t===u||(null==_||_===s?console.error("PressResponder: Invalid signal "+t+" for state "+l+" on responder"):l!==_&&(this._performTransitionSideEffects(l,_,t,n),this._touchState=_))}_performTransitionSideEffects(t,s,o,_){if(v(o)&&(setTimeout(()=>{this._isPointerTouch=!1},0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),D(t)&&o===n){var E=this._config.onLongPress;null!=E&&null==_.nativeEvent.key&&(E(_),this._longPressDispatched=!0)}var h=P(t),c=P(s);if(!h&&c?this._activate(_):h&&!c&&this._deactivate(_),D(t)&&o===u){var R=this._config,T=R.onLongPress;if(null!=R.onPress)null!=T&&t===l||c||h||(this._activate(_),this._deactivate(_))}this._cancelPressDelayTimeout()}_activate(t){var s=this._config,n=s.onPressChange,o=s.onPressStart,l=f(t);this._touchActivatePosition={pageX:l.pageX,pageY:l.pageY},null!=o&&o(t),null!=n&&n(!0)}_deactivate(t){var s=this._config,n=s.onPressChange,o=s.onPressEnd;function l(){null!=o&&o(t),null!=n&&n(!1)}var _=O(this._config.delayPressEnd);_>0?this._pressOutDelayTimeout=setTimeout(()=>{l()},_):l()}_handleLongPress(t){this._touchState!==_&&this._touchState!==l||this._receiveSignal(n,t)}_cancelLongPressDelayTimeout(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}_cancelPressDelayTimeout(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}_cancelPressOutDelayTimeout(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}}function O(t,s,n){return void 0===s&&(s=0),void 0===n&&(n=0),Math.max(s,null!=t?t:n)}function f(t){var s=t.nativeEvent,n=s.changedTouches,o=s.touches;return null!=o&&o.length>0?o[0]:null!=n&&n.length>0?n[0]:t.nativeEvent}},221,[]);
2547__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return w}});var t=e(r(_d[0])),n=e(r(_d[1])),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),f=e(r(_d[3])),u=e(r(_d[4])),d=e(r(_d[5])),s=["style"],l=d.default&&window.CSS&&window.CSS.supports&&window.CSS.supports('top: constant(safe-area-inset-top)')?'constant':'env',c=o.forwardRef((e,f)=>{var d=e.style,l=(0,n.default)(e,s);return o.createElement(u.default,(0,t.default)({},l,{ref:f,style:[p.root,d]}))});c.displayName='SafeAreaView';var p=f.default.create({root:{paddingTop:l+"(safe-area-inset-top)",paddingRight:l+"(safe-area-inset-right)",paddingBottom:l+"(safe-area-inset-bottom)",paddingLeft:l+"(safe-area-inset-left)"}}),w=c},222,[27,43,34,42,199,39]);
2548__d(function(g,r,_i,a,m,_e,d){"use strict";
2548function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return C}});var o=e(r(d[0])),l=e(r(d[1])),n=e(r(d[2])),t=e(r(d[3])),s=e(r(d[4])),i=e(r(d[5])),c=e(r(d[6]));r(d[7]);var h=e(r(d[8])),p=e(r(d[9])),u=e(r(d[10])),S=e(r(d[11])),R=e(r(d[12])),f=e(r(d[13])),y=e(r(d[14])),T=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],b={};class v extends f.default.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var o=e.nativeEvent;this.isTouching=0!==o.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var o=u.default.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==o||e.target===o||this.observedScrollSinceBecomingResponder||this.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),u.default.blurTextInput(o))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<16||this.lastMomentumScrollEndTime<this.lastMomentumScrollBeginTime,this.scrollResponderScrollTo=(e,o,l)=>{if('number'==typeof e)console.warn('`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.');else{var n=e||b;e=n.x,o=n.y,l=n.animated}var t=this.getScrollableNode(),s=e||0,i=o||0;null!=t&&('function'==typeof t.scroll?t.scroll({top:i,left:s,behavior:l?'smooth':'auto'}):(t.scrollLeft=s,t.scrollTop=i))},this.scrollResponderZoomTo=(e,o)=>{(0,i.default)('zoomToRect is not implemented')},this.scrollResponderScrollNativeHandleToKeyboard=(e,o,l)=>{this.additionalScrollOffset=o||0,this.preventNegativeScrollOffset=!!l,S.default.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,o,l,n)=>{var s=t.default.get('window').height;this.keyboardWillOpenTo&&(s=this.keyboardWillOpenTo.endCoordinates.screenY);var i=o-s+n+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(i=Math.max(0,i)),this.scrollResponderScrollTo({x:0,y:i,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()}
2548,this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,o,l)=>{if('number'==typeof e)console.warn('`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.');else{var n=e||b;o=n.x,e=n.y,l=n.animated}this.scrollResponderScrollTo({x:o||0,y:e||0,animated:!1!==l})},this.scrollToEnd=e=>{var o=!1!==(e&&e.animated),l=this.props.horizontal,n=this.getScrollableNode(),t=l?n.scrollWidth:0,s=l?0:n.scrollHeight;this.scrollResponderScrollTo({x:t,y:s,animated:o})},this._handleContentOnLayout=e=>{var o=e.nativeEvent.layout,l=o.width,n=o.height;this.props.onContentSizeChange(l,n)},this._handleScroll=e=>{'on-drag'===this.props.keyboardDismissMode&&(0,s.default)(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),(0,c.default)(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){(0,y.default)(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error('Error measuring text field: ',e)}render(){var e=this.props,t=e.contentContainerStyle,s=e.horizontal,c=e.onContentSizeChange,p=e.refreshControl,u=e.stickyHeaderIndices,S=e.pagingEnabled,y=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),b=(0,n.default)(e,T),v={};c&&(v={onLayout:this._handleContentOnLayout});var H=!s&&Array.isArray(u),E=H||S?f.default.Children.map(this.props.children,(e,o)=>{var l=H&&u.indexOf(o)>-1;return null!=e&&(l||S)?f.default.createElement(R.default,{style:[l&&w.stickyHeader,S&&w.pagingEnabledChild]},e):e}):this.props.children,C=f.default.createElement(R.default,(0,l.default)({},v,{children:E,collapsable:!1,ref:this._setInnerViewRef,style:[s&&w.contentContainerHorizontal,y&&w.c
2548ontentContainerCenterContent,t]})),M=s?w.baseHorizontal:w.baseVertical,D=s?w.pagingEnabledHorizontal:w.pagingEnabledVertical,I=(0,o.default)((0,o.default)({},b),{},{style:[M,S&&D,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),N=h.default;(0,i.default)(void 0!==N,'ScrollViewClass must not be undefined');var x=f.default.createElement(N,(0,l.default)({},I,{ref:this._setScrollNodeRef}),C);return p?f.default.cloneElement(p,{style:I.style},x):x}}var H={flexGrow:1,flexShrink:1,transform:'translateZ(0)',WebkitOverflowScrolling:'touch'},w=p.default.create({baseVertical:(0,o.default)((0,o.default)({},H),{},{flexDirection:'column',overflowX:'hidden',overflowY:'auto'}),baseHorizontal:(0,o.default)((0,o.default)({},H),{},{flexDirection:'row',overflowX:'auto',overflowY:'hidden'}),contentContainerHorizontal:{flexDirection:'row'},contentContainerCenterContent:{justifyContent:'center',flexGrow:1},stickyHeader:{position:'sticky',top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:'x mandatory'},pagingEnabledVertical:{scrollSnapType:'y mandatory'},pagingEnabledChild:{scrollSnapAlign:'start'}}),E=f.default.forwardRef((e,o)=>f.default.createElement(v,(0,l.default)({},e,{forwardedRef:o})));E.displayName='ScrollView';var C=E},223,[19,27,43,150,224,24,205,95,226,42,225,152,199,34,227]);
2549__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e},l=()=>{u.default.blurTextInput(u.default.currentlyFocusedField())}},224,[225]);
2550__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var e,u=r(d[0]),t=(e=u)&&e.__esModule?e:{default:e},l={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&t.default.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&t.default.blur(e))}}},225,[152]);
2551__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return v}});var t=e(r(_d[0])),o=e(r(_d[1])),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[2])),l=e(r(_d[3])),c=e(r(_d[4])),u=e(r(_d[5])),s=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function f(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}var d=n.forwardRef((e,l)=>{var d=e.onScroll,v=e.onTouchMove,S=e.onWheel,b=e.scrollEnabled,w=void 0===b||b,T=e.scrollEventThrottle,p=void 0===T?0:T,y=e.showsHorizontalScrollIndicator,_=e.showsVerticalScrollIndicator,E=e.style,M=(0,o.default)(e,s),O=n.useRef({isScrolling:!1,scrollLastTick:0}),D=n.useRef(null),W=n.useRef(null);function j(e){return t=>{w&&e&&e(t)}}function P(e){O.current.isScrolling=!0,k(e)}function k(e){O.current.scrollLastTick=Date.now(),d&&d(f(e))}function H(e){O.current.isScrolling=!1,d&&d(f(e))}var I=!1===y||!1===_;return n.createElement(c.default,(0,t.default)({},M,{onScroll:function(e){var t,o,n;e.stopPropagation(),e.target===W.current&&(e.persist(),null!=D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{H(e)},100),O.current.isScrolling?(t=O.current.scrollLastTick,o=p,n=Date.now()-t,o>0&&n>=o&&k(e)):P(e))},onTouchMove:j(v),onWheel:j(S),ref:(0,u.default)(W,l),style:[E,!w&&h.scrollDisabled,I&&h.hideScrollbar]}))}),h=l.default.create({scrollDisabled:{overflowX:'hidden',overflowY:'hidden',touchAction:'none'},hideScrollbar:{scrollbarWidth:'none'}}),v=d},226,[27,43,34,42,199,204]);
2552__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=t},227,[228]);
2553__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return function(){return t}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},m.exports=n},228,[]);
2554__d(function(g,r,i,a,m,_e,_d){"use strict";
2554function e(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var o={};return e&&Object.keys(e).forEach(function(n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}),o.default=e,o}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return k}});var n=e(r(_d[0])),t=e(r(_d[1])),l=o(r(_d[2])),d=e(r(_d[3])),s=o(r(_d[4])),u=e(r(_d[5])),p=e(r(_d[6])),S=e(r(_d[7])),c=e(r(_d[8])),R=e(r(_d[9])),h=e(r(_d[10])),f=e(r(_d[11])),b=r(_d[12]),v=["hrefAttrs","numberOfLines","onClick","onLayout","onPress","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStart
2554ShouldSetResponder","onStartShouldSetResponderCapture","selectable"],C=Object.assign({},s.defaultProps,s.accessibilityProps,s.clickProps,s.focusProps,s.keyboardProps,s.mouseProps,s.touchProps,s.styleProps,{href:!0,lang:!0,pointerEvents:!0}),x=e=>(0,u.default)(e,C),w=l.forwardRef((e,o)=>{var n=e.hrefAttrs,s=e.numberOfLines,u=e.onClick,h=e.onLayout,C=e.onPress,w=e.onMoveShouldSetResponder,y=e.onMoveShouldSetResponderCapture,k=e.onResponderEnd,M=e.onResponderGrant,O=e.onResponderMove,L=e.onResponderReject,_=e.onResponderRelease,j=e.onResponderStart,A=e.onResponderTerminate,T=e.onResponderTerminationRequest,E=e.onScrollShouldSetResponder,W=e.onScrollShouldSetResponderCapture,D=e.onSelectionChangeShouldSetResponder,$=e.onSelectionChangeShouldSetResponderCapture,q=e.onStartShouldSetResponder,G=e.onStartShouldSetResponderCapture,H=e.selectable,z=(0,t.default)(e,v),B=l.useContext(f.default),N=l.useRef(null),F=(0,b.useLocaleContext)().direction;(0,p.default)(N,h),(0,R.default)(N,{onMoveShouldSetResponder:w,onMoveShouldSetResponderCapture:y,onResponderEnd:k,onResponderGrant:M,onResponderMove:O,onResponderReject:L,onResponderRelease:_,onResponderStart:j,onResponderTerminate:A,onResponderTerminationRequest:T,onScrollShouldSetResponder:E,onScrollShouldSetResponderCapture:W,onSelectionChangeShouldSetResponder:D,onSelectionChangeShouldSetResponderCapture:$,onStartShouldSetResponder:q,onStartShouldSetResponderCapture:G});var I=l.useCallback(e=>{null!=u?u(e):null!=C&&(e.stopPropagation(),C(e))},[u,C]),J=B?'span':'div',K=null!=e.lang?(0,b.getLocaleDirection)(e.lang):null,Q=e.dir||K,U=Q||F,V=x(z);if(V.dir=Q,B||(V.dir=null!=Q?Q:'auto'),(u||C)&&(V.onClick=I),V.style=[null!=s&&s>1&&{WebkitLineClamp:s},!0===B?P.textHasAncestor$raw:P.text$raw,1===s&&P.textOneLine,null!=s&&s>1&&P.textMultiLine,e.style,!0===H&&P.selectable,!1===H&&P.notSelectable,C&&P.pressable],null!=e.href&&(J='a',null!=n)){var X=n.download,Y=n.rel,Z=n.target;null!=X&&(V.download=X),null!=Y&&(V.rel=Y),'string'==typeof Z&&(V.target='_'!==Z.charAt(0)?'_'+Z:Z)}var ee=(0,c.default)(V),oe=(0,S.default)(N,ee,o);V.ref=oe;var ne=(0,d.default)(J,V,{writingDirection:U});return B?ne:l.createElement(f.default.Provider,{value:!0},ne)});w.displayName='Text';var y={backgroundColor:'transparent',border:'0 solid black',boxSizing:'border-box',color:'black',display:'inline',font:'14px System',listStyle:'none',margin:0,padding:0,position:'relative',textAlign:'start',textDecoration:'none',whiteSpace:'pre-wrap',wordWrap:'break-word'},P=h.default.create({text$raw:y,textHasAncestor$raw:(0,n.default)((0,n.default)({},y),{},{color:'inherit',font:'inherit',textAlign:'inherit',whiteSpace:'inherit'}),textOneLine:{maxWidth:'100%',overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap',wordWrap:'normal'},textMultiLine:{display:'-webkit-box',maxWidth:'100%',overflow:'clip',textOverflow:'ellipsis',WebkitBoxOrient:'vertical'},notSelectable:{userSelect:'none'},selectable:{userSelect:'text'},pressable:{cursor:'pointer'}}),k=w},229,[19,43,34,189,200,201,202,204,206,208,42,198,195]);
2555__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);function f(){var e=(0,u.useState)(()=>n.default.get('window')),t=e[0],f=e[1];return(0,u.useEffect)(()=>{function e(e){var t=e.window;null!=t&&f(t)}return n.default.addEventListener('change',e),f(n.default.get('window')),()=>{n.default.removeEventListener('change',e)}},[]),t}},230,[150,34]);
2556__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return E}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),f=e(r(d[8])),b=e(r(d[9])),y=e(r(d[10])),p=e(r(d[11])),S=e(r(d[12])),T=e(r(d[13])),w=e(r(d[14])),x=r(d[15]);const C=15e3;function E(){const{width:e}=(0,w.default)(),{top:E,bottom:O}=(0,c.useViewportInsets)(),[R,j]=(0,h.useState)(""),[k,L]=(0,h.useState)(""),[v,_]=(0,h.useState)(""),[z,A]=(0,h.useState)(null),[I,P]=(0,h.useState)(""),[V,Y]=(0,h.useState)(""),[N,F]=(0,h.useState)(""),[W,X]=(0,h.useState)(""),[B,H]=(0,h.useState)(null),[U,M]=(0,h.useState)(!1);(0,h.useEffect)(()=>
2556{if("undefined"==typeof window)return;const e=()=>{if(window.localStorage.getItem(u.RUNTIME_ERROR_VERSION_STORAGE_KEY)!==u.RUNTIME_ERROR_SCHEMA_VERSION)return(0,u.clearRuntimeRecoveryState)(),window.localStorage.setItem(u.RUNTIME_ERROR_VERSION_STORAGE_KEY,u.RUNTIME_ERROR_SCHEMA_VERSION),H(null),void M(!1);const e=window.localStorage.getItem(u.LAST_RUNTIME_ERROR_STORAGE_KEY);if(!e)return H(null),void M(!1);try{const t=JSON.parse(e);if(!t?.message||t.version&&t.version!==u.RUNTIME_ERROR_SCHEMA_VERSION)return window.localStorage.removeItem(u.LAST_RUNTIME_ERROR_STORAGE_KEY),H(null),void M(!1);H(t),M(!0)}catch{H(null),M(!1)}};return e(),window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[]);const D=e=>e.trim().toLowerCase(),q=e=>{const t=D(e);if(!/^[a-z0-9._%+-]+@[a-z0-9-]+(?:\.[a-z0-9-]+)+$/i.test(t))return!1;const[,o=""]=t.split("@"),n=o.split("."),s=n[n.length-1]||"";return s.length>=2&&/^[a-z]+$/i.test(s)},G=e=>e.length>=6,$=e=>{const t=(0,l.sanitizeUsername)(e);return t.length>=3&&t.length<=30},K=()=>{X(""),F("")},J=null!==z,Q=e>=900,Z=Q?28:20;return(0,x.jsx)(y.default,{contentContainerStyle:{flexGrow:1,backgroundColor:o.COLORS.background,justifyContent:"center",paddingHorizontal:16,paddingTop:Math.max(Q?40:20,E),paddingBottom:Math.max(Q?40:20,O)},children:(0,x.jsxs)(T.default,{style:{width:"100%",maxWidth:440,alignSelf:"center",minHeight:Q?720:void 0,justifyContent:"center"},children:[(0,x.jsx)(T.default,{style:{position:"absolute",top:-30,right:-10,width:Q?220:150,height:Q?220:150,borderRadius:999,backgroundColor:"rgba(212,175,55,0.08)"}}),(0,x.jsx)(T.default,{style:{position:"absolute",bottom:-50,left:-20,width:Q?180:130,height:Q?180:130,borderRadius:999,backgroundColor:"rgba(225,6,0,0.09)"}}),(0,x.jsxs)(T.default,{style:{borderRadius:30,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"rgba(8,8,8,0.96)",padding:Z,shadowColor:"#000",shadowOpacity:.24,shadowRadius:24,shadowOffset:{width:0,height:16}},children:[(0,x.jsxs)(T.default,{style:{alignItems:"center",marginBottom:18},children:[(0,x.jsx)(f.default,{source:r(d[16]),style:{width:Q?82:70,height:Q?82:70,marginBottom:16}}),(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.title,{fontSize:Q?42:32,marginBottom:8,textAlign:"center"}),children:"BlackBunny"}),(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{color:"#D9D4CB",textAlign:"center",maxWidth:320,lineHeight:22,fontSize:14}),children:"Forever Electronic."}),(0,x.jsxs)(T.default,{style:{flexDirection:"row",flexWrap:"wrap",gap:8,justifyContent:"center",marginTop:14},children:[(0,x.jsx)(T.default,{style:{borderRadius:999,paddingHorizontal:10,paddingVertical:6,backgroundColor:"#101010",borderWidth:1,borderColor:"rgba(255,255,255,0.08)"},children:(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{fontSize:11,color:o.COLORS.textSecondary}),children:"email login"})}),(0,x.jsx)(T.default,{style:{borderRadius:999,paddingHorizontal:10,paddingVertical:6,backgroundColor:"#101010",borderWidth:1,borderColor:"rgba(255,255,255,0.08)"},children:(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{fontSize:11,color:o.COLORS.textSecondary}),children:"verification required"})}),(0,x.jsx)(T.default,{style:{borderRadius:999,paddingHorizontal:10,paddingVertical:6,backgroundColor:"rgba(212,175,55,0.10)",borderWidth:1,borderColor:"rgba(212,175,55,0.18)"},children:(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{fontSize:11,color:o.COLORS.gold}),children:"password reset ready"})})]})]}),(0,x.jsxs)(T.default,{style:{width:"100%"},children:[B?(0,x.jsxs)(T.default,{style:{marginBottom:14,borderRadius:18,borderWidth:1,borderColor:"rgba(255,107,107,0.28)",backgroundColor:"rgba(90,14,14,0.45)",padding:16},children:[(0,x.jsxs)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{color:"#ff9d9d",fontSize:11,letterSpacing:1.4,marginBottom:8}),children:["LAST CRASH ",B.pathname?`\u2022 ${B.pathname}`:""]}),(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{color:"#ffffff",lineHeight:21}),numberOfLines:U?void 0:5,selectable:!0,children:B.message}),(0,x.jsxs)(T.default,{style:{flexDirection:Q?"row":"column",gap:10,marginTop:12},children:[(0,x.jsx)(b.default,{onPress:()=>M(e=>!e),style:{borderWidth:1,borderColor:"rgba(255,255,255,0.12)",borderRadius:999,paddingHorizontal:12,paddingVertical:8,backgroundColor:"#140b0b",alignItems:"center"},children:(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.button,{fontSize:11}),children:U?"Hide Details":"Show Details"})}),(0,x.jsx)(b.default,{onPress:()=>{"undefined"!=typeof window&&(0,u.clearRuntimeRecoveryState)(),H(null),M(!1)},style:{borderWidth:1,borderColor:"rgba(255,255,255,0.12)",borderRadius:999,paddingHorizontal:12,paddingVertical:8,backgroundColor:"#140b0b",alignItems:"center"},children:(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.button,{fontSize:11}),children:"Clear Crash Log"})})]})]}):null,J?(0,x.jsx)(T.default,{style:{marginBottom:14,borderRadius:22,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#090909"},children:(0,x.jsx)(t.LoadingState,{compact:!0,accentLabel:"signup"===z?"ACCOUNT SETUP":"login"===z?"LOGIN":"reset"===z?"PASSWORD RESET":"VERIFICATION",title:I||"Working on your account",subtitle:V||"Please wait while we finish the current step."})}):null,N?(0,x.jsx)(T.default,{style:{marginBottom:14,borderRadius:18,borderWidth:1,borderColor:"rgba(212,175,55,0.22)",backgroundColor:"rgba(212,175,55,0.08)",padding:16},children:(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{color:o.COLORS.gold,textAlign:"center",lineHeight:22}),children:N})}):null,W?(0,x.jsxs)(T.default,{style:{marginBottom:14,borderRadius:18,borderWidth:1,borderColor:"rgba(225,6,0,0.28)",backgroundColor:"rgba(225,6,0,0.08)",padding:16},children:[(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{color:o.COLORS.accent,textAlign:"center",marginBottom:10,lineHeight:22}),children:W}),W.includes("operation-not-allowed")&&(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{color:o.COLORS.textSecondary,fontSize:12,textAlign:"center"}),children:"Enable Email/Password in Firebase Console \u2192 Authentication \u2192 Sign-in method"})]}):null,(0,x.jsxs)(T.default,{style:{borderRadius:28,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#070707",padding:Z,shadowColor:"#000",shadowOpacity:.22,shadowRadius:18,shadowOffset:{width:0,height:12}},children:[(0,x.jsxs)(T.default,{style:{marginBottom:14,borderRadius:16,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#0d0d0d",paddingHorizontal:14,paddingVertical:12},children:[(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{color:o.COLORS.accent,fontSize:11,letterSpacing:1.5,marginBottom:4}),children:"ACCOUNT ACCESS"}),(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{color:o.COLORS.textSecondary,fontSize:12}),children:"Enter uses your existing account. Make Account creates a new profile and sends verification before login is allowed."})]}),(0,x.jsx)(S.default,{placeholder:"[email protected]",placeholderTextColor:"#6D6A66",value:R,onChangeText:e=>{j(e),W&&X("")},style:{backgroundColor:"#111111",paddingHorizontal:16,paddingVertical:15,borderRadius:14,color:o.COLORS.text,marginBottom:14,fontFamily:o.TEXT_STYLES.body.fontFamily,borderWidth:1,borderColor:"rgba(255,255,255,0.1)"},autoCapitalize:"none",keyboardType:"email-address",autoComplete:"email",inputMode:"email"}),(0,x.jsx)(S.default,{placeholder:"pick a name",placeholderTextColor:"#6D6A66",value:k,onChangeText:e=>{L(e),W&&X("")},style:{backgroundColor:"#111111",paddingHorizontal:16,paddingVertical:15,borderRadius:14,color:o.COLORS.text,marginBottom:8,fontFamily:o.TEXT_STYLES.body.fontFamily,borderWidth:1,borderColor:"rgba(255,255,255,0.1)"},autoCapitalize:"none",autoCorrect:!1}),(0,x.jsx)(S.default,{placeholder:"password",placeholderTextColor:"#6D6A66",secureTextEntry:!0,value:v,onCh
2556angeText:e=>{_(e),W&&X("")},style:{backgroundColor:"#111111",paddingHorizontal:16,paddingVertical:15,borderRadius:14,color:o.COLORS.text,marginBottom:16,fontFamily:o.TEXT_STYLES.body.fontFamily,borderWidth:1,borderColor:"rgba(255,255,255,0.1)"}}),(0,x.jsxs)(T.default,{style:{gap:10,marginBottom:14},children:[(0,x.jsx)(b.default,{onPress:async()=>{const e=D(R);if(q(e))if(G(v)){A("login"),K(),P("Signing you in"),Y("Checking your password and restoring your saved account details.");try{const t=await(0,n.withTimeout)((0,s.signIn)(e,v),C,"Login took too long. Try again.");await(0,n.withTimeout)((0,l.ensureUserProfile)(t.uid,e),C,"Finalizing your account took too long. Try again.")}catch(e){let t="Login failed";"auth/user-not-found"===e.code?t="No account found with this email":"auth/wrong-password"===e.code?t="Incorrect password":"auth/invalid-email"===e.code?t="Invalid email format":"auth/email-not-verified"===e.code?t="Verify your email before logging in. Check inbox, spam, junk, and Promotions, then use Resend Verification Email if needed.":"auth/too-many-requests"===e.code&&(t="Too many failed attempts. Try again later"),X(t)}finally{A(null),P(""),Y("")}}else X("Password must be at least 6 characters");else X("Please enter a valid email address")},disabled:J,style:{backgroundColor:J?o.COLORS.textSecondary:o.COLORS.accent,paddingVertical:16,borderRadius:14,opacity:J?.6:1,shadowColor:o.COLORS.accent,shadowOpacity:.18,shadowRadius:14,shadowOffset:{width:0,height:8}},children:(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.button),children:"login"===z?"Entering...":"Enter"})}),(0,x.jsx)(b.default,{onPress:async()=>{const e=D(R),t=(0,l.sanitizeUsername)(k);if(q(e))if(!k.trim()||$(k))if(G(v)){A("signup"),K(),P("Creating your account"),Y("Saving your login first, then building your profile and verification email.");try{const o=await(0,n.withTimeout)((0,s.signUp)(e,v),C,"Signup took too long. Try again.");P("Saving your profile"),Y("Locking in your username and starter account details so they do not fall back to defaults."),await(0,n.withTimeout)((0,l.ensureUserProfile)(o.uid,e,{username:t}),C,"Creating your profile took too long. Try again."),P("Sending verification email"),Y("Your account exists now. Next we are sending the email you will use to activate it."),await(0,n.withTimeout)((0,s.sendVerificationForUser)(o),C,"Sending your verification email took too long. Try again."),await(0,n.withTimeout)((0,s.signOut)(),C,"Signing out after signup took too long."),_(""),L(""),F(t?`Account created for ${t}. Check your inbox, spam, junk, and Promotions tabs, then verify the email before logging in.`:"Account created. Check your inbox, spam, junk, and Promotions tabs, then verify the email before logging in.")}catch(e){console.log("Firebase signup error:",e),console.log("Error code:",e.code),console.log("Error message:",e.message);let t="Signup failed";t="auth/email-already-in-use"===e.code?"An account with this email already exists":"auth/invalid-email"===e.code?"Invalid email format":"auth/weak-password"===e.code?"Password is too weak":"auth/network-request-failed"===e.code?"Network error. Check your internet connection":"auth/operation-not-allowed"===e.code?"Email/password authentication is not enabled in Firebase":"auth/invalid-api-key"===e.code?"Invalid Firebase API key":"auth/app-deleted"===e.code?"Firebase app has been deleted":"auth/app-not-authorized"===e.code?"Firebase app is not authorized":"auth/unauthorized-domain"===e.code?"This website domain is not authorized in Firebase Auth settings":"auth/unauthorized-continue-uri"===e.code?"Verification email setup points to a domain that is not allowlisted in Firebase":"auth/argument-error"===e.code?"Invalid arguments provided":`Signup failed: ${e.message||"Unknown error"}`,X(t);try{await(0,s.signOut)()}catch(e){console.error("Error resetting auth session after signup failure:",e)}}finally{A(null),P(""),Y("")}}else X("Password must be at least 6 characters");else X("Username must be 3-30 characters and use letters, numbers, dots, underscores, or dashes");else X("Please enter a valid email address")},disabled:J,style:{backgroundColor:J?o.COLORS.textSecondary:o.COLORS.gold,paddingVertical:16,borderRadius:14,o
2556pacity:J?.6:1},children:(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.button,{color:o.COLORS.background}),children:"signup"===z?"Making account...":"Make Account"})})]}),(0,x.jsxs)(T.default,{style:{flexDirection:"column",alignItems:"center",justifyContent:"space-between",gap:2,marginBottom:6},children:[(0,x.jsx)(b.default,{onPress:async()=>{const e=D(R);if(q(e)){A("reset"),K(),P("Sending password reset email"),Y("We are preparing a secure reset link. Check inbox, spam, junk, and Promotions after it sends.");try{await(0,n.withTimeout)((0,s.requestPasswordReset)(e),C,"Password reset took too long. Try again."),F("Password reset email sent. Open your inbox, spam, junk, or Promotions tab and follow the reset link.")}catch(e){let t="Could not send password reset email";"auth/user-not-found"===e.code?t="No account found with this email":"auth/invalid-email"===e.code?t="Invalid email format":"auth/too-many-requests"===e.code?t="Too many reset attempts. Try again later.":"auth/network-request-failed"===e.code?t="Network error while sending the reset email":"auth/unauthorized-domain"===e.code&&(t="This website domain is not authorized in Firebase Auth settings"),X(t)}finally{A(null),P(""),Y("")}}else X("Enter the email for your account first, then tap Forgot Password.")},disabled:J,style:{paddingVertical:8,opacity:J?.6:1},children:(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{color:o.COLORS.gold,fontSize:13,textAlign:"center"}),children:"reset"===z?"Sending reset link...":"Forgot my password"})}),(0,x.jsx)(b.default,{onPress:async()=>{const e=D(R);if(q(e))if(G(v)){A("resend"),K(),P("Sending another verification link"),Y("We are checking your account and preparing a fresh email. If you do not see it, check spam, junk, and Promotions.");try{await(0,n.withTimeout)((0,s.resendVerificationEmail)(e,v),C,"Resending verification took too long. Try again."),F("Verification email sent. Check your inbox, spam, junk, and Promotions tabs for the new link.")}catch(e){let t="Could not resend verification email";"auth/user-not-found"===e.code?t="No account found with this email":"auth/wrong-password"===e.code?t="Incorrect password for this account":"auth/invalid-credential"===e.code?t="The email or password did not match this account":"auth/too-many-requests"===e.code?t="Too many attempts. Try again later":"auth/email-already-verified"===e.code?t="This email is already verified. You can log in now.":"auth/invalid-email"===e.code?t="Invalid email format":"auth/network-request-failed"===e.code?t="Network error while requesting the verification email":"auth/unauthorized-domain"===e.code?t="This website domain is not authorized in Firebase Auth settings":"auth/unauthorized-continue-uri"===e.code?t="Verification email setup points to a domain that is not allowlisted in Firebase":"auth/missing-continue-uri"===e.code?t="Verification email setup is missing a valid return URL":"auth/invalid-continue-uri"===e.code&&(t="Verification email setup has an invalid return URL"),X(t)}finally{A(null),P(""),Y("")}}else X("Enter the same password you used when signing up");else X("Enter the same email you signed up with first")},disabled:J,style:{paddingVertical:8,opacity:J?.6:1},children:(0,x.jsx)(p.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{color:o.COLORS.textSecondary,fontSize:13,textAlign:"center"}),children:"resend"===z?"Please wait...":"Send Another Verification Link"})})]})]})]})]})]})})}},231,[232,233,307,308,318,329,330,34,188,215,223,229,331,199,230,175,306]);
2557__d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.LoadingState=function({title:t,subtitle:h,accentLabel:p="LOADING",fullScreen:O=!1,compact:S=!1}){const b=(0,n.useRef)(new o.default.Value(0)).current;(0,n.useEffect)(()=>{const t=o.default.loop(o.default.sequence([o.default.timing(b,{toValue:1,duration:950,easing:l.default.inOut(l.default.quad),useNativeDriver:!0}),o.default.timing(b,{toValue:0,duration:950,easing:l.default.inOut(l.default.quad),useNativeDriver:!0})]));return t.start(),()=>{t.stop(),b.stopAnimation(),b.setValue(0)}},[b]);const y=b.interpolate({inputRange:[0,1],outputRange:[1,1.06]}),x=b.interpolate({inputRange:[0,1],outputRange:[.78,1]});return(0,f.jsxs)(c.default,{style:{flex:O?1:void 0,width:"100%",justifyContent:"center",alignItems:"center",paddingHorizontal:24,paddingVertical:S?18:28},children:[(0,f.jsx)(o.default.View,{style:{width:S?68:92,height:S?68:92,borderRadius:S?22:28,backgroundColor:"#0f0a0a",borderWidth:1,borderColor:"rgba(225,6,0,0.28)",justifyContent:"center",alignItems:"center",marginBottom:S?16:20,opacity:x,transform:[{scale:y}],shadowColor:e.COLORS.accent,shadowOpacity:.16,shadowRadius:18,shadowOffset:{width:0,height:10}},children:(0,f.jsx)(u.default,{source:r(d[8]),style:{width:S?34:46,height:S?34:46}})}),(0,f.jsx)(s.default,{style:Object.assign({},e.TEXT_STYLES.bodyText,{color:e.COLORS.accent,fontSize:11,letterSpacing:1.8,marginBottom:6}),children:p}),(0,f.jsx)(s.default,{style:Object.assign({},e.TEXT_STYLES.subtitle,{fontSize:S?22:26,textAlign:"center",marginBottom:8}),children:t}),h?(0,f.jsx)(s.default,{style:Object.assign({},e.TEXT_STYLES.bodyText,{color:e.COLORS.textSecondary,textAlign:"center",maxWidth:320,marginBottom:4}),children:h}):null]})};var e=r(d[0]),n=r(d[1]),o=t(r(d[2])),l=t(r(d[3])),u=t(r(d[4])),s=t(r(d[5])),c=t(r(d[6])),f=r(d[7
2557])},232,[233,34,234,303,188,229,199,175,306]);
2558__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FONTS",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"FONT_SIZES",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"COLORS",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TEXT_STYLES",{enumerable:!0,get:function(){return l}});const t={CODEC:'MGSCodec, "Courier New", monospace',HUD:'MGSHUD, Impact, "Arial Black", sans-serif'},o={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":28,"3xl":32,"4xl":40},n={background:"#000",text:"#fff",textSecondary:"#ccc",accent:"#E10600",gold:"#D4AF37",dark:"#111"},l={heading:{fontFamily:t.HUD,color:n.text},body:{fontFamily:t.CODEC,color:n.text},title:{fontFamily:t.HUD,fontSize:o["4xl"],fontWeight:"bold",color:n.text},subtitle:{fontFamily:t.HUD,fontSize:o["2xl"],fontWeight:"bold",color:n.text},bodyText:{fontFamily:t.CODEC,fontSize:o.base,color:n.text},button:{fontFamily:t.CODEC,fontWeight:"600",color:n.text,textAlign:"center"}}},233,[]);
2559__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},234,[235]);
2560__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}});var t=e(r(d[0])),u=e(r(d[1])),l=e(r(d[2])),f=e(r(d[3])),n=e(r(d[4])),o=e(r(d[5])),c=e(r(d[6])),s=e(r(d[7])),_=e(r(d[8])),b=e(r(d[9])),j=u.default.isTesting?_.default:b.default,p=(0,t.default)({FlatList:l.default,Image:f.default,ScrollView:n.default,SectionList:o.default,Text:c.default,View:s.default},j)},235,[19,95,236,279,280,281,285,286,287,288]);
2561__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var t=e(r(_d[0])),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),u=e(r(_d[2])),f=e(r(_d[3])),o=n.forwardRef((e,f)=>n.createElement(u.default,(0,t.default)({scrollEventThrottle:1e-4},e,{ref:f}))),c=(0,f.default)(o)},236,[27,34,237,261]);
2562__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},237,[238]);
2563__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return w}});var t=e(r(_d[0])),s=e(r(_d[1])),n=e(r(_d[2])),l=e(r(_d[3])),o=e(r(_d[4])),u=e(r(_d[5]));r(_d[6]);var h=e(r(_d[7])),p=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(r(_d[8])),f=e(r(_d[9])),d=r(_d[10]),c=e(r(_d[11])),C=["numColumns","columnWrapperStyle","removeClippedSubviews","strictMode"];function b(e){return null!=e?e:1}function v(e){return'number'==typeof Object(e).length}class _ extends p.PureComponent{scrollToEnd(e){this._listRef&&this._listRef.scrollToEnd(e)}scrollToIndex(e){this._listRef&&this._listRef.scrollToIndex(e)}scrollToItem(e){this._listRef&&this._listRef.scrollToItem(e)}scrollToOffset(e){this._listRef&&this._listRef.scrollToOffset(e)}recordInteraction(){this._listRef&&this._listRef.recordInteraction()}flashScrollIndicators(){this._listRef&&this._listRef.flashScrollIndicators()}getScrollResponder(){if(this._listRef)return this._listRef.getScrollResponder()}getNativeScrollRef(){if(this._listRef)return this._listRef.getScrollRef()}getScrollableNode(){if(this._listRef)return this._listRef.getScrollableNode()}constructor(e){super(e),this._virtualizedListPairs=[],this._captureRef=e=>{this._listRef=e},this._getItem=(e,t)=>
2563{var s=b(this.props.numColumns);if(s>1){for(var n=[],l=0;l<s;l++){var o=t*s+l;if(o<e.length){var u=e[o];n.push(u)}}return n}return e[t]},this._getItemCount=e=>{if(null!=e&&v(e)){var t=b(this.props.numColumns);return t>1?Math.ceil(e.length/t):e.length}return 0},this._keyExtractor=(e,t)=>{var s,n=b(this.props.numColumns),l=null!==(s=this.props.keyExtractor)&&void 0!==s?s:d.keyExtractor;return n>1?((0,h.default)(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",n),e.map((e,s)=>l(e,t*n+s)).join(':')):l(e,t)},this._renderer=(e,t,s,n,o)=>{var u=b(n),f=s=>e?p.createElement(e,s):t?t(s):null,d=e=>{if(u>1){var t=e.item,n=e.index;return(0,h.default)(Array.isArray(t),'Expected array of items with numColumns > 1'),p.createElement(l.default,{style:[y.row,s]},t.map((t,s)=>{var l=f({item:t,index:n*u+s,separators:e.separators});return null!=l?p.createElement(p.Fragment,{key:s},l):null}))}return f(e)};return e?{ListItemComponent:d}:{renderItem:d}},this._memoizedRenderer=(0,c.default)(this._renderer),this._checkProps(this.props),this.props.viewabilityConfigCallbackPairs?this._virtualizedListPairs=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(e.onViewableItemsChanged)})):this.props.onViewableItemsChanged&&this._virtualizedListPairs.push({viewabilityConfig:this.props.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(this.props.onViewableItemsChanged)})}componentDidUpdate(e){(0,h.default)(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),(0,h.default)(e.onViewableItemsChanged===this.props.onViewableItemsChanged,'Changing onViewableItemsChanged on the fly is not supported'),(0,h.default)(!(0,u.default)(e.viewabilityConfig,this.props.viewabilityConfig),'Changing viewabilityConfig on the fly is not supported'),(0,h.default)(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,'Changing viewabilityConfigCallbackPairs on the fly is not supported'),this._checkProps(this.props)}_checkProps(e){var t=e.getItem,s=e.getItemCount,n=e.horizontal,l=e.columnWrapperStyle,o=e.onViewableItemsChanged,u=e.viewabilityConfigCallbackPairs,p=b(this.props.numColumns);(0,h.default)(!t&&!s,'FlatList does not support custom data formats.'),p>1?(0,h.default)(!n,'numColumns does not support horizontal.'):(0,h.default)(!l,'columnWrapperStyle not supported for single column lists'),(0,h.default)(!(o&&u),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}_pushMultiColumnViewable(e,t){var s,l=b(this.props.numColumns),o=null!==(s=this.props.keyExtractor)&&void 0!==s?s:d.keyExtractor;t.item.forEach((s,u)=>{(0,h.default)(null!=t.index,'Missing index!');var p=t.index*l+u;e.push((0,n.default)((0,n.default)({},t),{},{item:s,key:o(s,p),index:p}))})}_createOnViewableItemsChanged(e){return t=>{var s=b(this.props.numColumns);if(e)if(s>1){var n=[],l=[];t.viewableItems.forEach(e=>this._pushMultiColumnViewable(l,e)),t.changed.forEach(e=>this._pushMultiColumnViewable(n,e)),e({viewableItems:l,changed:n})}else e(t)}}render(){var e,n=this.props,l=n.numColumns,o=n.columnWrapperStyle,u=n.removeClippedSubviews,h=n.strictMode,d=void 0!==h&&h,c=(0,s.default)(n,C),b=d?this._memoizedRenderer:this._renderer;return p.createElement(f.default,(0,t.default)({},c,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=u,null!=e&&e)},b(this.props.ListItemComponent,this.props.renderItem,o,l,this.props.extraData)))}}var y=o.default.create({row:{flexDirection:'row'}}),w=_},238,[27,43,19,199,42,239,95,24,34,240,258,260]);
2564__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=function t(n,f,u){if(void 0===u&&(u=-1),0===u)return!0;
2564if(n===f)return!1;if('function'==typeof n&&'function'==typeof f)return!1;if('object'!=typeof n||null===n)return n!==f;if('object'!=typeof f||null===f)return!0;if(n.constructor!==f.constructor)return!0;if(Array.isArray(n)){var o=n.length;if(f.length!==o)return!0;for(var c=0;c<o;c++)if(t(n[c],f[c],u-1))return!0}else{for(var l in n)if(t(n[l],f[l],u-1))return!0;for(var v in f)if(void 0===n[v]&&void 0!==f[v])return!0}return!1}},239,[]);
2565__d(function(g,_r,_i3,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return A}});var t=e(_r(_d[0])),s=e(_r(_d[1])),r=e(_r(_d[2])),i=e(_r(_d[3])),o=e(_r(_d[4])),l=e(_r(_d[5])),n=e(_r(_d[6])),h=e(_r(_d[7])),d=e(_r(_d[8])),c=e(_r(_d[9])),u=_r(_d[10]),p=e(_r(_d[11])),f=e(_r(_d[12])),_=e(_r(_d[13])),v=e(_r(_d[14])),y=e(_r(_d[15])),C=_r(_d[16]),L=_r(_d[17]),b=e(_r(_d[18])),S=e(_r(_d[19])),M=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var r=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(_r(_d[20])),I=!1,R='';function w(e){return null!=e&&e}function x(e){return null!=e?e:10}function E(e){return null!=e?e:2}function T(e){return null!=e?e:2}function F(e,t){return e*t/2}function V(e){return null!=e?e:21}function k(e,t){for(var s=e.length-1;s>=0;s--)if(t(e[s]))return e[s];return null}class O extends _.default{scrollToEnd(e){var t=!e||e.animated,s=this.props.getItemCount(this.props.data)-1;if(!(s<0)){var r=this.__getFrameMetricsApprox(s,this.props),i=Math.max(0,r.offset+r.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(w(this.props.horizontal)?{x:i,animated:t}:{y:i,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}}scrollToIndex(e){var t=this.props,s=t.data,r=t.horizontal,i=t.getItemCount,o=t.getItemLayout,l=t.onScrollToIndexFailed,n=e.animated,h=e.index,d=e.viewOffset,c=e.viewPosition;if((0,b.default)(h>=0,"scrollToIndex out of range: requested index "+h+" but minimum is 0"),(0,b.default)(i(s)>=1,"scrollToIndex out of range: item length "+i(s)+" but minimum is 1"),(0,b.default)(h<i(s),"scrollToIndex out of range: requested index "+h+" is out of 0 to "+(i(s)-1)),!o&&h>this._highestMeasuredFrameIndex)return(0,b.default)(!!l,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void l({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:h});var u=this.__getFrameMetricsApprox(Math.floor(h),this.props),p=Math.max(0,this._getOffsetApprox(h,this.props)-(c||0)*(this._scrollMetrics.visibleLength-u.length))-(d||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(r?{x:p,animated:n}:{y:p,animated:n}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}scrollToItem(e){for(var t=e.item,s=this.props,i=s.data,o=s.getItem,l=(0,s.getItemCount)(i),n=0;n<l;n++)if(o(i,n)===t){this.scrollToIndex((0,r.default)((0,r.default)({},e),{},{index:n}));break}}scrollToOffset(e){var t=e.animated,s=e.offset;null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(w(this.props.horizontal)?{x:s,animated:t}:{y:s,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}recordInteraction(){this._nestedChildLists.forEach(e=>{e.recordInteraction()}
2565),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._updateViewableItems(this.props,this.state.cellsAroundViewport)}flashScrollIndicators(){null!=this._scrollRef&&this._scrollRef.flashScrollIndicators()}getScrollResponder(){if(this._scrollRef&&this._scrollRef.getScrollResponder)return this._scrollRef.getScrollResponder()}getScrollableNode(){return this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode():this._scrollRef}getScrollRef(){return this._scrollRef&&this._scrollRef.getScrollRef?this._scrollRef.getScrollRef():this._scrollRef}_getCellKey(){var e;return(null==(e=this.context)?void 0:e.cellKey)||'rootList'}hasMore(){return this._hasMore}constructor(e){var t;if(super(e),this._getScrollMetrics=()=>this._scrollMetrics,this._getOutermostParentListRef=()=>this._isNestedWithSameOrientation()?this.context.getOutermostParentListRef():this,this._registerAsNestedChild=e=>{this._nestedChildLists.add(e.ref,e.cellKey),this._hasInteracted&&e.ref.recordInteraction()},this._unregisterAsNestedChild=e=>{this._nestedChildLists.remove(e.ref)},this._onUpdateSeparators=(e,t)=>{e.forEach(e=>{var s=null!=e&&this._cellRefs[e];s&&s.updateSeparatorProps(t)})},this._getSpacerKey=e=>e?'height':'width',this._averageCellLength=0,this._cellRefs={},this._frames={},this._footerLength=0,this._hasTriggeredInitialScrollToIndex=!1,this._hasInteracted=!1,this._hasMore=!1,this._hasWarned={},this._headerLength=0,this._hiPriInProgress=!1,this._highestMeasuredFrameIndex=0,this._indicesToKeys=new Map,this._lastFocusedCellKey=null,this._nestedChildLists=new p.default,this._offsetFromParentVirtualizedList=0,this._prevParentOffset=0,this._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},this._scrollRef=null,this._sentStartForContentLength=0,this._sentEndForContentLength=0,this._totalCellLength=0,this._totalCellsMeasured=0,this._viewabilityTuples=[],this._captureScrollRef=e=>{this._scrollRef=e},this._defaultRenderScrollComponent=e=>{var t,r=e.onRefresh;return this._isNestedWithSameOrientation()?M.createElement(l.default,e):r?((0,b.default)('boolean'==typeof e.refreshing,'`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `'+JSON.stringify(null!==(t=e.refreshing)&&void 0!==t?t:'undefined')+'`'),M.createElement(o.default,(0,s.default)({},e,{refreshControl:null==e.refreshControl?M.createElement(i.default,{refreshing:e.refreshing,onRefresh:r,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):M.createElement(o.default,e)},this._onCellLayout=(e,t,s)=>{var r=e.nativeEvent.layout,i={offset:this._selectOffset(r),length:this._selectLength(r),index:s,inLayout:!0},o=this._frames[t];o&&i.offset===o.offset&&i.length===o.length&&s===o.index?this._frames[t].inLayout=!0:(this._totalCellLength+=i.length-(o?o.length:0),this._totalCellsMeasured+=o?0:1,this._averageCellLength=this._totalCellLength/this._totalCellsMeasured,this._frames[t]=i,this._highestMeasuredFrameIndex=Math.max(this._highestMeasuredFrameIndex,s),this._scheduleCellsToRenderUpdate()),this._triggerRemeasureForChildListsInCell(t),this._computeBlankness(),this._updateViewableItems(this.props,this.state.cellsAroundViewport)},this._onCellUnmount=e=>{delete this._cellRefs[e];var t=this._frames[e];t&&(this._frames[e]=(0,r.default)((0,r.default)({},t),{},{inLayout:!1}))},this._onLayout=e=>{this._isNestedWithSameOrientation()?this.measureLayoutRelativeToContainingList():this._scrollMetrics.visibleLength=this._selectLength(e.nativeEvent.layout),this.props.onLayout&&this.props.onLayout(e),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._onLayoutEmpty=e=>{this.props.onLayout&&this.props.onLayout(e)},this._onLayoutFooter=e=>{this._triggerRemeasureForChildListsInCell(this._getFooterCellKey()),this._footerLength=this._selectLength(e.nativeEvent.layout)},this._onLayoutHeader=e=>{this._headerLength=this._selectLength(e.nativeEvent.layout)},this._onContentSizeChange=(e,t)=>
2565{e>0&&t>0&&null!=this.props.initialScrollIndex&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(null==this.props.contentOffset&&(this.props.initialScrollIndex<this.props.getItemCount(this.props.data)?this.scrollToIndex({animated:!1,index:(0,S.default)(this.props.initialScrollIndex)}):this.scrollToEnd({animated:!1})),this._hasTriggeredInitialScrollToIndex=!0),this.props.onContentSizeChange&&this.props.onContentSizeChange(e,t),this._scrollMetrics.contentLength=this._selectLength({height:t,width:e}),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._convertParentScrollMetrics=e=>{var t=e.offset-this._offsetFromParentVirtualizedList,s=e.visibleLength,r=t-this._scrollMetrics.offset;return{visibleLength:s,contentLength:this._scrollMetrics.contentLength,offset:t,dOffset:r}},this._onScroll=e=>{this._nestedChildLists.forEach(t=>{t._onScroll(e)}),this.props.onScroll&&this.props.onScroll(e);var t=e.timeStamp,s=this._selectLength(e.nativeEvent.layoutMeasurement),r=this._selectLength(e.nativeEvent.contentSize),i=this._selectOffset(e.nativeEvent.contentOffset),o=i-this._scrollMetrics.offset;if(this._isNestedWithSameOrientation()){if(0===this._scrollMetrics.contentLength)return;var l=this._convertParentScrollMetrics({visibleLength:s,offset:i});s=l.visibleLength,r=l.contentLength,i=l.offset,o=l.dOffset}var n=this._scrollMetrics.timestamp?Math.max(1,t-this._scrollMetrics.timestamp):1,h=o/n;n>500&&this._scrollMetrics.dt>500&&r>5*s&&!this._hasWarned.perf&&((0,c.default)("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:n,prevDt:this._scrollMetrics.dt,contentLength:r}),this._hasWarned.perf=!0);var d=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;this._scrollMetrics={contentLength:r,dt:n,dOffset:o,offset:i,timestamp:t,velocity:h,visibleLength:s,zoomScale:d},this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.props&&(this._maybeCallOnEdgeReached(),0!==h&&this._fillRateHelper.activate(),this._computeBlankness(),this._scheduleCellsToRenderUpdate())},this._onScrollBeginDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollBeginDrag(e)}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._hasInteracted=!0,this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this._onScrollEndDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(this._scrollMetrics.velocity=this._selectOffset(t)),this._computeBlankness(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this._onMomentumScrollBegin=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollBegin(e)}),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this._onMomentumScrollEnd=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollEnd(e)}),this._scrollMetrics.velocity=0,this._computeBlankness(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this._updateCellsToRender=()=>{this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.setState((e,t)=>{var s=this._adjustCellsAroundViewport(t,e.cellsAroundViewport),r=O._createRenderMask(t,s,this._getNonViewportRenderRegions(t));return s.first===e.cellsAroundViewport.first&&s.last===e.cellsAroundViewport.last&&r.equals(e.renderMask)?null:{cellsAroundViewport:s,renderMask:r}})},this._createViewToken=(e,t,s)=>{var r=s.data,i=(0,s.getItem)(r,e);return{index:e,item:i,key:this._keyExtractor(i,e,s),isViewable:t}},this._getOffsetApprox=(e,t)=>{if(Number.isInteger(e))return this.__getFrameMetricsApprox(e,t).offset;var s=this.__getFrameMetricsApprox(Math.floor(e),t),r=e-Math.floor(e);return s.offset+r*s.length},this.__getFrameMetricsApprox=(e,t)=>{var s=this._getFrameMetrics(e,t);if(s&&s.index===e)return s;var r=t.data,i=t.getItemCount,o=t.getItemLayout;return(0,b.default)(e>=0&&e<i(r),'Tried to get frame for out of range index '+e),(0,b.default)(!o,'Should not have to estimate frames when a measurement metrics function is provided'),{length:this._averageCellLength,offset:this._averageCellLength*e}},this._getFrameMetrics=(e,t)=>{var s=t.data,r=t.getItem,i=t.getItemCount,o=t.getItemLayout;(0,b.default)(e>=0&&e<i(s),'Tried to get frame for out of range index '+e);var l=r(s,e),n=this._frames[this._keyExtractor(l,e,t)];return n&&n.index===e||!o?n:o(s,e)},this._getNonViewportRenderRegions=e=>{if(!this._lastFocusedCellKey||!this._cellRefs[this._lastFocusedCellKey])return[];var t=this._cellRefs[this._lastFocusedCellKey].props.index,s=e.getItemCount(e.data);if(t>=s||this._keyExtractor(e.getItem(e.data,t),t,e)!==this._lastFocusedCellKey)return[];for(var r=t,i=0,o=r-1;o>=0&&i<this._scrollMetrics.visibleLength;o--)r--,i+=this.__getFrameMetricsApprox(o,e).length;for(var l=t,n=0,h=l+1;h<s&&n<this._scrollMetrics.visibleLength;h++)l++,n+=this.__getFrameMetricsApprox(h,e).length;return[{first:r,last:l}]},this._checkProps(e),this._fillRateHelper=new f.default(this._getFrameMetrics),this._updateCellsToRenderBatcher=new h.default(this._updateCellsToRender,null!==(t=this.props.updateCellsBatchingPerio
2565d)&&void 0!==t?t:50),this.props.viewabilityConfigCallbackPairs)this._viewabilityTuples=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityHelper:new v.default(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}));else{var n=this.props,d=n.onViewableItemsChanged,u=n.viewabilityConfig;d&&this._viewabilityTuples.push({viewabilityHelper:new v.default(u),onViewableItemsChanged:d})}var _=O._initialRenderRegion(e);this.state={cellsAroundViewport:_,renderMask:O._createRenderMask(e,_)},this.invertedWheelEventHandler=e=>{var t=this.props.horizontal?e.target.scrollLeft:e.target.scrollTop,s=this.props.horizontal?e.target.scrollWidth:e.target.scrollHeight,r=this.props.horizontal?e.target.clientWidth:e.target.clientHeight,i=s>r,o=this.props.horizontal?e.deltaX||e.wheelDeltaX:e.deltaY||e.wheelDeltaY,l=o;i&&(l=o<0?Math.min(o+t,0):Math.max(o-(s-r-t),0));var n=o-l;if(this.props.inverted&&this._scrollRef&&this._scrollRef.getScrollableNode){var h=this._scrollRef.getScrollableNode();if(this.props.horizontal){e.target.scrollLeft+=n;var d=h.scrollLeft-l;h.scrollLeft=this.props.getItemLayout?d:Math.min(d,this._totalCellLength)}else{e.target.scrollTop+=n;var c=h.scrollTop-l;h.scrollTop=this.props.getItemLayout?c:Math.min(c,this._totalCellLength)}e.preventDefault()}}}_checkProps(e){var t=e.onScroll,s=e.windowSize,r=e.getItemCount,i=e.data,o=e.initialScrollIndex;(0,b.default)(!t||!t.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),(0,b.default)(V(s)>0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),(0,b.default)(r,'VirtualizedList: The "getItemCount" prop must be provided');var l=r(i);null==o||this._hasTriggeredInitialScrollToIndex||!(o<0||l>0&&o>=l)||this._hasWarned.initialScrollIndex||(console.warn("initialScrollIndex \""+o+"\" is not valid (list has "+l+" items)"),this._hasWarned.initialScrollIndex=!0)}static _createRenderMask(e,t,s){var r=e.getItemCount(e.data);(0,b.default)(t.first>=0&&t.last>=t.first-1&&t.last<r,"Invalid cells around viewport \"["+t.first+", "+t.last+"]\" was passed to VirtualizedList._createRenderMask");var i=new u.CellRenderMask(r);if(r>0){for(var o=0,l=[t,...null!=s?s:[]];o<l.length;o++){var n=l[o];i.addCells(n)}if(null==e.initialScrollIndex||e.initialScrollIndex<=0){var h=O._initialRenderRegion(e);i.addCells(h)}var d=new Set(e.stickyHeaderIndices);O._ensureClosestStickyHeader(e,d,i,t.first)}return i}static _initialRenderRegion(e){var t,s,r=e.getItemCount(e.data),i=Math.max(0,Math.min(r-1,Math.floor(null!==(t=e.initialScrollIndex)&&void 0!==t?t:0)));return{first:i,last:Math.min(r,i+(null!=(s=e.initialNumToRender)?s:10))-1}}static _ensureClosestStickyHeader(e,t,s,r){for(var i=e.ListHeaderComponent?1:0,o=r-1;o>=0;o--)if(t.has(o+i)){s.addCells({first:o,last:o});break}}_adjustCellsAroundViewport(e,t){var s,r=e.data,i=e.getItemCount,o=T(e.onEndReachedThreshold),l=this._scrollMetrics,n=l.contentLength,h=l.offset,d=l.visibleLength,c=n-d-h;if(d<=0||n<=0)return t.last>=i(r)?O._constrainToItemCount(t,e):t;if(e.disableVirtualization){var u=c<o*d?x(e.maxToRenderPerBatch):0;s={first:0,last:Math.min(t.last+u,i(r)-1)}}else{if(e.initialScrollIndex&&!this._scrollMetrics.offset&&Math.abs(c)>=Number.EPSILON)return t.last>=i(r)?O._constrainToItemCount(t,e):t;s=(0,L.computeWindowedRenderLimits)(e,x(e.maxToRenderPerBatch),V(e.windowSize),t,this.__getFrameMetricsApprox,this._scrollMetrics),(0,b.default)(s.last<i(r),'computeWindowedRenderLimits() should return range in-bounds')}if(this._nestedChildLists.size()>0){var p=this._findFirstChildWithMore(s.first,s.last);s.last=null!=p?p:s.last}return s}_findFirstChildWithMore(e,t){for(var s=e;s<=t;s++){var r=this._indicesToKeys.get(s);if(null!=r&&this._nestedChildLists.anyInCell(r,e=>e.hasMore()))return s}return null}componentDidMount(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey}),this.setupWebWheelHandler()}componentWillUnmount(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}
2565),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.dispose()}),this._fillRateHelper.deactivateAndFlush(),this.teardownWebWheelHandler()}setupWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode().addEventListener('wheel',this.invertedWheelEventHandler):setTimeout(()=>this.setupWebWheelHandler(),50)}teardownWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode&&this._scrollRef.getScrollableNode().removeEventListener('wheel',this.invertedWheelEventHandler)}static getDerivedStateFromProps(e,t){if(e.getItemCount(e.data)===t.renderMask.numCells())return t;var s=O._constrainToItemCount(t.cellsAroundViewport,e);return{cellsAroundViewport:s,renderMask:O._createRenderMask(e,s)}}_pushCells(e,t,r,i,o,l){var n,h=this,d=this.props,c=d.CellRendererComponent,u=d.ItemSeparatorComponent,p=d.ListHeaderComponent,f=d.ListItemComponent,_=d.data,v=d.debug,C=d.getItem,L=d.getItemCount,b=d.getItemLayout,S=d.horizontal,I=d.renderItem,R=p?1:0,w=L(_)-1;o=Math.min(w,o);for(var x=function(){var i=C(_,E),o=h._keyExtractor(i,E,h.props);h._indicesToKeys.set(E,o),r.has(E+R)&&t.push(e.length);var d=null==b||v||h._fillRateHelper.enabled();e.push(M.createElement(y.default,(0,s.default)({CellRendererComponent:c,ItemSeparatorComponent:E<w?u:void 0,ListItemComponent:f,cellKey:o,horizontal:S,index:E,inversionStyle:l,item:i,key:o,prevCellKey:n,onUpdateSeparators:h._onUpdateSeparators,onCellFocusCapture:e=>h._onCellFocusCapture(o),onUnmount:h._onCellUnmount,ref:e=>{h._cellRefs[o]=e},renderItem:I},d&&{onCellLayout:h._onCellLayout}))),n=o},E=i;E<=o;E++)x()}static _constrainToItemCount(e,t){var s=t.getItemCount(t.data),r=Math.min(s-1,e.last),i=x(t.maxToRenderPerBatch);return{first:(0,d.default)(0,s-1-i,e.first),last:r}}_isNestedWithSameOrientation(){var e=this.context;return!(!e||!!e.horizontal!==w(this.props.horizontal))}_keyExtractor(e,t,s){if(null!=s.keyExtractor)return s.keyExtractor(e,t);var r=(0,L.keyExtractor)(e,t);return r===String(t)&&(I=!0,e.type&&e.type.displayName&&(R=e.type.displayName)),r}render(){this._checkProps(this.props);var e=this.props,s=e.ListEmptyComponent,i=e.ListFooterComponent,o=e.ListHeaderComponent,n=this.props,h=n.data,c=n.horizontal,u=this.props.inverted?w(this.props.horizontal)?z.horizontallyInverted:z.verticallyInverted:null,p=[],f=new Set(this.props.stickyHeaderIndices),_=[];if(o){f.has(0)&&_.push(0);var v=M.isValidElement(o)?o:M.createElement(o,null);p.push(M.createElement(C.VirtualizedListCellContextProvider,{cellKey:this._getCellKey()+'-header',key:"$header"},M.createElement(l.default,{onLayout:this._onLayoutHeader,style:[u,this.props.ListHeaderComponentStyle]},v)))}var y=this.props.getItemCount(h);if(0===y&&s){var L=M.isValidElement(s)?s:M.createElement(s,null);p.push(M.createElement(C.VirtualizedListCellContextProvider,{cellKey:this._getCellKey()+'-empty',key:"$empty"},M.cloneElement(L,{onLayout:e=>{this._onLayoutEmpty(e),L.props.onLayout&&L.props.onLayout(e)},style:[u,L.props.style]})))}if(y>0){I=!1,R='';for(var b,S=this._getSpacerKey(!c),x=this.state.renderMask.enumerateRegions(),E=k(x,e=>e.isSpacer),T=(0,t.default)(x);!(b=T()).done;){var F=b.value;if(F.isSpacer){if(this.props.disableVirtualization)continue;var V=F===E&&!this.props.getItemLayout?(0,d.default)(F.first-1,F.last,this._highestMeasuredFrameIndex):F.last,O=this.__getFrameMetricsApprox(F.first,this.props),A=this.__getFrameMetricsApprox(V,this.props),P=A.offset+A.length-O.offset;p.push(M.createElement(l.default,{key:"$spacer-"+F.first,style:{[S]:P}}))}else this._pushCells(p,_,f,F.first,F.last,u)}!this._hasWarned.keys&&I&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",R),this._hasWarned.keys=!0)}if(i){var N=M.isValidElement(i)?i:M.createElement(i,null);p.push(M.createElement(C.VirtualizedListCellContextProvider,{cellKey:this._getFooterCellKey(),key:"$footer"},M.createElement(l.default,{onLayout:this._onLayoutFooter,style:[u,this.props.ListFooterComponentStyle]},N)))}var W,H=(0,r.default)((0,r.default)({},this.props),{},{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:(W=this.props.scrollEventThrottle,null!=W?W:50),invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:_,style:u?[u,this.props.style]:this.props.style});this._hasMore=this.state.cellsAroundViewport.last<y-1;var B=M.createElement(C.VirtualizedListContextProvider,{value:{cellKey:null,getScrollMetrics:this._getScrollMetrics,horizontal:w(this.props.horizontal),getOutermostParentListRef:this._getOutermostParentListRef,registerAsNestedChild:this._registerAsNestedChild,unregisterAsNestedChild:this._unregisterAsNestedChild}}
2565,M.cloneElement((this.props.renderScrollComponent||this._defaultRenderScrollComponent)(H),{ref:this._captureScrollRef},p));return this.props.debug?M.createElement(l.default,{style:z.debug},B,this._renderDebugOverlay()):B}componentDidUpdate(e){var t=this.props,s=t.data,r=t.extraData;s===e.data&&r===e.extraData||this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.resetViewableIndices()});var i=this._hiPriInProgress;this._scheduleCellsToRenderUpdate(),i&&(this._hiPriInProgress=!1)}_computeBlankness(){this._fillRateHelper.computeBlankness(this.props,this.state.cellsAroundViewport,this._scrollMetrics)}_onCellFocusCapture(e){this._lastFocusedCellKey=e,this._updateCellsToRender()}_triggerRemeasureForChildListsInCell(e){this._nestedChildLists.forEachInCell(e,e=>{e.measureLayoutRelativeToContainingList()})}measureLayoutRelativeToContainingList(){try{if(!this._scrollRef)return;this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(),(e,t,s,r)=>{this._offsetFromParentVirtualizedList=this._selectOffset({x:e,y:t}),this._scrollMetrics.contentLength=this._selectLength({width:s,height:r});var i=this._convertParentScrollMetrics(this.context.getScrollMetrics());(this._scrollMetrics.visibleLength!==i.visibleLength||this._scrollMetrics.offset!==i.offset)&&(this._scrollMetrics.visibleLength=i.visibleLength,this._scrollMetrics.offset=i.offset,this._nestedChildLists.forEach(e=>{e.measureLayoutRelativeToContainingList()}))},e=>{console.warn("VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.")})}catch(e){console.warn('measureLayoutRelativeToContainingList threw an error',e.stack)}}_getFooterCellKey(){return this._getCellKey()+'-footer'}_renderDebugOverlay(){for(var e=this._scrollMetrics.visibleLength/(this._scrollMetrics.contentLength||1),t=[],s=this.props.getItemCount(this.props.data),r=0;r<s;r++){var i=this.__getFrameMetricsApprox(r,this.props);i.inLayout&&t.push(i)}var o=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.first,this.props).offset,n=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.last,this.props),h=n.offset+n.length-o,d=this._scrollMetrics.offset,c=this._scrollMetrics.visibleLength;return M.createElement(l.default,{style:[z.debugOverlayBase,z.debugOverlay]},t.map((t,s)=>M.createElement(l.default,{key:'f'+s,style:[z.debugOverlayBase,z.debugOverlayFrame,{top:t.offset*e,height:t.length*e}]})),M.createElement(l.default,{style:[z.debugOverlayBase,z.debugOverlayFrameLast,{top:o*e,height:h*e}]}),M.createElement(l.default,{style:[z.debugOverlayBase,z.debugOverlayFrameVis,{top:d*e,height:c*e}]}))}_selectLength(e){return w(this.props.horizontal)?e.width:e.height}_selectOffset(e){return w(this.props.horizontal)?e.x:e.y}_maybeCallOnEdgeReached(){var e=this.props,t=e.data,s=e.getItemCount,r=e.onStartReached,i=e.onStartReachedThreshold,o=e.onEndReached,l=e.onEndReachedThreshold,n=e.initialScrollIndex,h=this._scrollMetrics,d=h.contentLength,c=h.visibleLength,u=h.offset,p=u,f=d-c-u;p<.001&&(p=0),f<.001&&(f=0);var _=p<=(null!=i?i*c:2),v=f<=(null!=l?l*c:2);o&&this.state.cellsAroundViewport.last===s(t)-1&&v&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,o({distanceFromEnd:f})):null!=r&&0===this.state.cellsAroundViewport.first&&_&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?n&&0===this._scrollMetrics.timestamp||(this._sentStartForContentLength=this._scrollMetrics.contentLength,r({distanceFromStart:p})):(this._sentStartForContentLength=_?this._sentStartForContentLength:0,this._sentEndForContentLength=v?this._sentEndForContentLength:0)}_scheduleCellsToRenderUpdate(){var e=this.state.cellsAroundViewport,t=e.first,s=e.last,r=this._scrollMetrics,i=r.offset,o=r.visibleLength,l=r.velocity,n=this.props.getItemCount(this.props.data),h=!1,d=E(this.props.onStartReachedThreshold),c=T(this.props.onEndReachedThreshold);if(t>0){var u=i-this.__getFrameMetricsApprox(t,this.props).offset;h=u<0||l<-2&&u<F(d,o)}if(!h&&s>=0&&s<n-1){var p=this.__getFrameMetricsApprox(s,this.props).offset-(i+o);h=p<0||l>2&&p<F(c,o)}if(h&&(this._averageCellLength||this.props.getItemLayout)&&!this._hiPriInProgress)return this._hiPriInProgress=!0,this._updateCellsToRenderBatcher.dispose({abort:!0}),void this._updateCellsToRender();this._updateCellsToRenderBatcher.schedule()}
2565_updateViewableItems(e,t){this._viewabilityTuples.forEach(s=>{s.viewabilityHelper.onUpdate(e,this._scrollMetrics.offset,this._scrollMetrics.visibleLength,this._getFrameMetrics,this._createViewToken,s.onViewableItemsChanged,t)})}}O.contextType=C.VirtualizedListContext;var z=n.default.create({verticallyInverted:{transform:'scaleY(-1)'},horizontallyInverted:{transform:'scaleX(-1)'},debug:{flex:1},debugOverlayBase:{position:'absolute',top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:'blue',borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:'orange'},debugOverlayFrameLast:{left:0,borderColor:'green',borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:'red',borderWidth:2}}),A=O},240,[241,27,19,244,223,199,42,245,249,250,251,252,253,254,255,256,257,258,24,259,34]);
2566__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e,t=_r(d[0]),r=(e=t)&&e.__esModule?e:{default:e};function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=(0,r.default)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},241,[242]);
2567__d(function(g,_r,i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e,t=_r(d[0]),r=(e=t)&&e.__esModule?e:{default:e};function n(e,t){if(e){if("string"==typeof e)return(0,r.default)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.default)(e,t):void 0}}},242,[243]);
2568__d(function(g,_r,i,_a,m,_e,d){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}})},243,[]);
2569__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var t=e(r(d[0])),o=e(r(d[1])),n=e(r(d[2])),l=["colors","enabled","onRefresh","progressBackgroundColor","progressViewOffset","refreshing","size","tintColor","title","titleColor"];var s=function(e){e.colors,e.enabled,e.onRefresh,e.progressBackgroundColor,e.progressViewOffset,e.refreshing,e.size,e.tintColor,e.title,e.titleColor;var s=(0,t.default)(e,l);return n.default.createElement(o.default,s)}},244,[43,199,34]);
2570__d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e};var s=class{constructor(e,t){this._delay=t,this._callback=e}dispose(e){void 0===e&&(e={abort:!1}),this._taskHandle&&(this._taskHandle.cancel(),e.abort||this._callback(),this._taskHandle=null)}schedule(){if(!this._taskHandle){var e=setTimeout(()=>{this._taskHandle=l.default.runAfterInteractions(()=>{this._taskHandle=null,this._callback()})},this._delay);this._taskHandle={cancel:()=>clearTimeout(e)}}}}},245,[246]);
2571__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return _}});var t=e(r(d[0])),n=e(r(d[1])),o=e(r(d[2])),s=e(r(d[3])),c=new o.default,u={Events:{interactionStart:'interactionStart',interactionComplete:'interactionComplete'},runAfterInteractions(e){var t=[],n=new Promise(n=>{S(),e&&t.push(e),t.push({run:n,name:'resolve '+(e&&e.name||'?')}),h.enqueueTasks(t)});return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{h.cancelTasks(t)}}},createInteractionHandle(){S();var e=++w;return f.add(e),e},clearInteractionHandle(e){(0,t.default)(!!e,'Must provide a handle to clear.'),S(),f.delete(e),v.add(e)},addListener:c.addListener.bind(c),setDeadline(e){b=e}},l=new Set,f=new Set,v=new Set,h=new n.default({onMoreTasks:S}),p=0,w=0,b=-1;function S(){p||(p=b>0?setTimeout(T):(0,s.default)(T))}function T(){p=0;var e=l.size;
2571f.forEach(e=>l.add(e)),v.forEach(e=>l.delete(e));var t=l.size;if(0!==e&&0===t?c.emit(u.Events.interactionComplete):0===e&&0!==t&&c.emit(u.Events.interactionStart),0===t)for(var n=Date.now();h.hasTasksToProcess();)if(h.processNext(),b>0&&Date.now()-n>=b){S();break}f.clear(),v.clear()}var _=u},246,[24,247,138,248]);
2572__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var t=e(r(d[0])),s=e(r(d[1]));var u=class{constructor(e){var t=e.onMoreTasks;this._onMoreTasks=t,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach(e=>this.enqueue(e))}cancelTasks(e){this._queueStack=this._queueStack.map(s=>(0,t.default)((0,t.default)({},s),{},{tasks:s.tasks.filter(t=>-1===e.indexOf(t))})).filter((e,t)=>e.tasks.length>0||0===t)}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{'object'==typeof t&&t.gen?this._genPromise(t):'object'==typeof t&&t.run?t.run():((0,s.default)('function'==typeof t,'Expected Function, SimpleTask, or PromiseTask, but got:\n'+JSON.stringify(t,null,2)),t())}catch(e){throw e.message='TaskQueue: Error with task '+(t.name||'')+': '+e.message,e}}}_getCurrentQueue(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}_genPromise(e){var t=this._queueStack.push({tasks:[],popable:!1})-1,s=this._queueStack[t];e.gen().then(()=>{s.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()}).catch(t=>{setTimeout(()=>{throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t},0)})}}},247,[19,24]);
2573__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"cancelIdleCallback",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=((e=t)&&e.__esModule?e:{default:e}).default&&void 0!==window.requestIdleCallback,l=n?window.requestIdleCallback:function(e,t){return setTimeout(()=>{var t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},u=n?window.cancelIdleCallback:function(e){clearTimeout(e)},o=l},248,[39]);
2574__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=function(t,n,u){return n<t?t:n>u?u:n}},249,[]);
2575__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=function(){return console.log(...arguments)}},250,[]);
2576__d(function(g,r,_i,a,m,_e,d){"use strict";function s(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"CellRenderMask",{enumerable:!0,get:function(){return i}});var e=s(r(d[0])),t=s(r(d[1]));class i{constructor(s){(0,t.default)(s>=0,'CellRenderMask must contain a non-negative number os cells'),this._numCells=s,this._regions=0===s?[]:[{first:0,last:s-1,isSpacer:!0}]}enumerateRegions(){return this._regions}addCells(s){if((0,t.default)(s.first>=0&&s.first<this._numCells&&s.last>=-1&&s.last<this._numCells&&s.last>=s.first-1,'CellRenderMask.addCells called with invalid cell range'),!(s.last<s.first)){var i=this._findRegion(s.first),l=i[0],n=i[1],f=this._findRegion(s.last),u=f[0],o=f[1];if(n!==o||l.isSpacer){var _=[],c=[],h=(0,e.default)((0,e.default)({},s),{},{isSpacer:!1});l.first<h.first&&(l.isSpacer?_.push({first:l.first,last:h.first-1,isSpacer:!0}):h.first=l.first),u.last>h.last&&(u.isSpacer?c.push({first:h.last+1,last:u.last,isSpacer:!0}):h.last=u.last);var p=[..._,h,...c],C=o-n+1;this._regions.splice(n,C,...p)}}}numCells(){return this._numCells}equals(s){return this._numCells===s._numCells&&this._regions.length===s._regions.length&&this._regions.every((e,t)=>e.first===s._regions[t].first&&e.last===s._regions[t].last&&e.isSpacer===s._regions[t].isSpacer)}_findRegion(s){for(var e=0,i=this._regions.length-1;e<=i;){var l=Math.floor((e+i)/2),n=this._regions[l];if(s>=n.first&&s<=n.last)return[n,l];s<n.first?i=l-1:s>n.last&&(e=l+1)}(0,t.default)(!1,"A region was not found containing cellIdx "+s)}}},251,[19,24]);
2577__d(function(g,r,i,a,m,_e,d){"use strict";
2577function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var l=e(r(d[0])),t=e(r(d[1]));class n{constructor(){this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}add(e,l){var n;(0,t.default)(!this._childrenToCellKey.has(e),'Trying to add already present child list');var o=null!==(n=this._cellKeyToChildren.get(l))&&void 0!==n?n:new Set;o.add(e),this._cellKeyToChildren.set(l,o),this._childrenToCellKey.set(e,l)}remove(e){var l=this._childrenToCellKey.get(e);(0,t.default)(null!=l,'Trying to remove non-present child list'),this._childrenToCellKey.delete(e);var n=this._cellKeyToChildren.get(l);(0,t.default)(n,'_cellKeyToChildren should contain cellKey'),n.delete(e),0===n.size&&this._cellKeyToChildren.delete(l)}forEach(e){for(var t,n=(0,l.default)(this._cellKeyToChildren.values());!(t=n()).done;)for(var o,h=t.value,s=(0,l.default)(h);!(o=s()).done;){e(o.value)}}forEachInCell(e,t){for(var n,o,h=null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[],s=(0,l.default)(h);!(o=s()).done;){t(o.value)}}anyInCell(e,t){for(var n,o,h=null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[],s=(0,l.default)(h);!(o=s()).done;){if(t(o.value))return!0}return!1}size(){return this._childrenToCellKey.size}}},252,[241,24]);
2578__d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var t,e=r(d[0]),s=(t=e)&&t.__esModule?t:{default:t};class n{constructor(){this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0}}var l=[],_=10,h=null;var o=class{static addListener(t){return null===h&&console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'),l.push(t),{remove:()=>{l=l.filter(e=>t!==e)}}}static setSampleRate(t){h=t}static setMinSampleCount(t){_=t}constructor(t){this._anyBlankStartTime=null,this._enabled=!1,this._info=new n,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=t,this._enabled=(h||0)>Math.random(),this._resetData()}activate(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=g.performance.now())}deactivateAndFlush(){if(this._enabled){var t=this._samplesStartTime;if(null!=t)if(this._info.sample_count<_)this._resetData();else{var e=g.performance.now()-t,n=(0,s.default)((0,s.default)({},this._info),{},{total_time_spent:e});l.forEach(t=>t(n)),this._resetData()}}}computeBlankness(t,e,s){if(!this._enabled||0===t.getItemCount(t.data)||e.last<e.first||null==this._samplesStartTime)return 0;var n=s.dOffset,l=s.offset,_=s.velocity,h=s.visibleLength;this._info.sample_count++,this._info.pixels_sampled+=Math.round(h),this._info.pixels_scrolled+=Math.round(Math.abs(n));var o=Math.round(1e3*Math.abs(_)),u=g.performance.now();null!=this._anyBlankStartTime&&(this._info.any_blank_ms+=u-this._anyBlankStartTime),this._anyBlankStartTime=null,null!=this._mostlyBlankStartTime&&(this._info.mostly_blank_ms+=u-this._mostlyBlankStartTime),this._mostlyBlankStartTime=null;for(var f=0,c=e.first,p=this._getFrameMetrics(c,t);c<=e.last&&(!p||!p.inLayout);)p=this._getFrameMetrics(c,t),c++;p&&c>0&&(f=Math.min(h,Math.max(0,p.offset-l)));for(var b=0,y=e.last,k=this._getFrameMetrics(y,t);y>=e.first&&(!k||!k.inLayout);)k=this._getFrameMetrics(y,t),y--;if(k&&y<t.getItemCount(t.data)-1){var S=k.offset+k.length;b=Math.min(h,Math.max(0,l+h-S))}var M=Math.round(f+b),v=M/h;return v>0?(this._anyBlankStartTime=u,this._info.any_blank_speed_sum+=o,this._info.any_blank_count++,this._info.pixels_blank+=M,v>.5&&(this._mostlyBlankStartTime=u,this._info.mostly_blank_count++)):(o<.01||Math.abs(n)<1)&&this.deactivateAndFlush(),v}enabled(){return this._enabled}_resetData(){this._anyBlankStartTime=null,this._info=new n,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}},253,[19]);
2579__d(function(g,r,i,a,m,_e,_d){"use strict";
2579Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var t,e=r(_d[0]),s=(t=e)&&t.__esModule?t:{default:t},n=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(s){var n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:function(){return t[s]}})}),e.default=t,e})(r(_d[1]));class o extends n.PureComponent{constructor(t){super(t),this._inAsyncStateUpdate=!1,this._installSetStateHooks()}setState(t,e){'function'==typeof t?super.setState((e,s)=>{var n;this._inAsyncStateUpdate=!0;try{n=t(e,s)}catch(t){throw t}finally{this._inAsyncStateUpdate=!1}return n},e):super.setState(t,e)}_installSetStateHooks(){var t=this,e=this.props,n=this.state;Object.defineProperty(this,'props',{get:()=>((0,s.default)(!t._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),e),set(t){e=t}}),Object.defineProperty(this,'state',{get:()=>((0,s.default)(!t._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),n),set(t){n=t}})}}},254,[24,34]);
2580__d(function(g,r,i,a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var t=e(r(d[0])),n=e(r(d[1])),s=e(r(d[2]));function l(e,t,n,s,l,u){if(h(n,s,l))return!0;var c=o(n,s,l);return 100*(e?c/l:c/u)>=t}function o(e,t,n){var s=Math.min(t,n)-Math.max(e,0);return Math.max(0,s)}function h(e,t,n){return e>=0&&t<=n&&t>e}var u=class{constructor(e){void 0===e&&(e={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=e}dispose(){this._timers.forEach(clearTimeout)}computeViewableItems(e,t,n,o,h){var u=e.getItemCount(e.data),c=this._config,f=c.itemVisiblePercentThreshold,v=c.viewAreaCoveragePercentThreshold,_=null!=v,w=_?v:f;(0,s.default)(null!=w&&null!=f!=(null!=v),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var b=[];if(0===u)return b;var I=-1,p=h||{first:0,last:u-1},y=p.first,T=p.last;if(T>=u)return console.warn('Invalid render range computing viewability '+JSON.stringify({renderRange:h,itemCount:u})),[];for(var M=y;M<=T;M++){var V=o(M,e);if(V){var C=V.offset-t,P=C+V.length;if(C<n&&P>0)I=M,l(_,w,C,P,n,V.length)&&b.push(M);else if(I>=0)break}}return b}onUpdate(e,t,n,s,l,o,h){var u=e.getItemCount(e.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==u&&s(0,e)){var c=[];if(u&&(c=this.computeViewableItems(e,t,n,s,h)),this._viewableIndices.length!==c.length||!this._viewableIndices.every((e,t)=>e===c[t]))if(this._viewableIndices=c,this._config.minimumViewTime){var f=setTimeout(()=>{this._timers.delete(f),this._onUpdateSync(e,c,o,l)},this._config.minimumViewTime);this._timers.add(f)}else this._onUpdateSync(e,c,o,l)}}resetViewableIndices(){this._viewableIndices=[]}recordInteraction(){this._hasInteracted=!0}_onUpdateSync(e,s,l,o){s=s.filter(e=>this._viewableIndices.includes(e));for(var h,u=this._viewableItems,c=new Map(s.map(t=>{var n=o(t,!0,e);return[n.key,n]})),f=[],v=(0,n.default)(c);!(h=v()).done;){var _=h.value,w=_[0],b=_[1];u.has(w)||f.push(b)}for(var I,p=(0,n.default)(u);!(I=p()).done;){var y=I.value,T=y[0],M=y[1];c.has(T)||f.push((0,t.default)((0,t.default)({},M),{},{isViewable:!1}))}f.length>0&&(this._viewableItems=c,l({viewableItems:Array.from(c.values()),changed:f,viewabilityConfig:this._config}))}}},255,[19,241,24]);
2581__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return d}});var t=e(r(_d[0])),o=e(r(_d[1])),s=e(r(_d[2])),n=e(r(_d[3])),l=r(_d[4]),p=e(r(_d[5])),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[6]));class d extends u.Component{constructor(){super(...arguments),this.state={separatorProps:{highlighted:!1,leadingItem:this.props.item}},this._separators={highlight:()=>{var e=this.props,t=e.cellKey,o=e.prevCellKey;this.props.onUpdateSeparators([t,o],{highlighted:!0})},unhighlight:()=>{var e=this.props,t=e.cellKey,o=e.prevCellKey;this.props.onUpdateSeparators([t,o],{highlighted:!1})},updateProps:(e,t)=>{var o=this.props,s=o.cellKey,n=o.prevCellKey;this.props.onUpdateSeparators(['leading'===e?n:s],t)}},this._onLayout=e=>{this.props.onCellLayout&&this.props.onCellLayout(e,this.props.cellKey,this.props.index)}}static getDerivedStateFromProps(e,t){return{separatorProps:(0,o.default)((0,o.default)({},t.separatorProps),{},{leadingItem:e.item})}}updateSeparatorProps(e){this.setState(t=>({separatorProps:(0,o.default)((0,o.default)({},t.separatorProps),e)}))}componentWillUnmount(){this.props.onUnmount(this.props.cellKey)}_renderElement(e,t,o,s){return e&&t&&console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."),t?u.createElement(t,{item:o,index:s,separators:this._separators}):e?e({item:o,index:s,separators:this._separators}):void(0,p.default)(!1,'VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.')}render(){var e=this.props,o=e.CellRendererComponent,n=e.ItemSeparatorComponent,p=e.ListItemComponent,d=e.cellKey,h=e.horizontal,y=e.item,f=e.index,v=e.inversionStyle,C=e.onCellFocusCapture,_=e.onCellLayout,L=e.renderItem,P=this._renderElement(L,p,y,f),K=u.isValidElement(n)?n:n&&u.createElement(n,this.state.separatorProps),I=v?h?[c.rowReverse,v]:[c.columnReverse,v]:h?[c.row,v]:v,w=o?u.createElement(o,(0,t.default)({cellKey:d,index:f,item:y,style:I,onFocusCapture:C},_&&{onLayout:this._onLayout}),P,K):u.createElement(s.default,(0,t.default)({style:I,onFocusCapture:C},_&&{onLayout:this._onLayout}),P,K);return u.createElement(l.VirtualizedListCellContextProvider,{cellKey:this.props.cellKey},w)}}var c=n.default.create({row:{flexDirection:'row'},rowReverse:{flexDirection:'row-reverse'},columnReverse:{flexDirection:'column-reverse'}})},256,[27,19,199,42,257,24,34]);
2582__d(function(g,r,i,a,m,_e,_d){"use strict";
2582Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"VirtualizedListContext",{enumerable:!0,get:function(){return o}}),_e.VirtualizedListContextResetter=function(e){var t=e.children;return u.createElement(o.Provider,{value:null},t)},_e.VirtualizedListContextProvider=function(e){var t=e.children,l=e.value,s=(0,n.useMemo)(()=>({cellKey:null,getScrollMetrics:l.getScrollMetrics,horizontal:l.horizontal,getOutermostParentListRef:l.getOutermostParentListRef,registerAsNestedChild:l.registerAsNestedChild,unregisterAsNestedChild:l.unregisterAsNestedChild}),[l.getScrollMetrics,l.horizontal,l.getOutermostParentListRef,l.registerAsNestedChild,l.unregisterAsNestedChild]);return u.createElement(o.Provider,{value:s},t)},_e.VirtualizedListCellContextProvider=function(e){var t=e.cellKey,s=e.children,d=(0,n.useContext)(o),c=(0,n.useMemo)(()=>null==d?null:(0,l.default)((0,l.default)({},d),{},{cellKey:t}),[d,t]);return u.createElement(o.Provider,{value:c},s)};var e,t=r(_d[0]),l=(e=t)&&e.__esModule?e:{default:e},n=r(_d[1]),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(l){var n=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,n.get?n:{enumerable:!0,get:function(){return e[l]}})}),t.default=e,t})(n),o=u.createContext(null)},257,[19,34]);
2583__d(function(g,r,i,a,m,e,d){'use strict';function t(t,n,f,o){void 0===o&&(o=1);for(var s=n.getItemCount(n.data),l=[],u=0;u<t.length;u++)for(var v=t[u],c=0,h=s-1;c<=h;){var M=c+(h-c>>>1),b=f(M,n),x=b.offset*o,y=(b.offset+b.length)*o;if(0===M&&v<x||0!==M&&v<=x)h=M-1;else{if(!(v>y)){l[u]=M;break}c=M+1}}return l}function n(t,n){return n.last-n.first+1-Math.max(0,1+Math.min(n.last,t.last)-Math.max(n.first,t.first))}Object.defineProperty(e,'__esModule',{value:!0}),e.elementsThatOverlapOffsets=t,e.newRangeCount=n,e.computeWindowedRenderLimits=function(f,o,s,l,u,v){var c=f.getItemCount(f.data);if(0===c)return{first:0,last:-1};var h=v.offset,M=v.velocity,b=v.visibleLength,x=v.zoomScale,y=void 0===x?1:x,w=Math.max(0,h),k=w+b,p=(s-1)*b,C=M>1?'after':M<-1?'before':'none',O=Math.max(0,w-.5*p),_=Math.max(0,k+.5*p);if(u(c-1,f).offset*y<O)return{first:Math.max(0,c-1-o),last:c-1};var j=t([O,w,k,_],f,u,y),L=j[0],S=j[1],E=j[2],I=j[3];L=null==L?0:L,S=null==S?Math.max(0,L):S,I=null==I?c-1:I,E=null==E?Math.min(I,S+o-1):E;var R={first:S,last:E},z=n(l,R);for(;!(S<=L&&E>=I);){var B=z>=o,F=S<=l.first||S>l.last,J=S>L&&(!B||!F),N=E>=l.last||E<l.first,P=E<I&&(!B||!N);if(B&&!J&&!P)break;!J||'after'===C&&P&&N||(F&&z++,S--),!P||'before'===C&&J&&F||(N&&z++,E++)}if(!(E>=S&&S>=0&&E<c&&S>=L&&E<=I&&S<=R.first&&E>=R.last))throw new Error('Bad window calculation '+JSON.stringify({first:S,last:E,itemCount:c,overscanFirst:L,overscanLast:I,visible:R}));return{first:S,last:E}},e.keyExtractor=function(t,n){if('object'==typeof t&&null!=(null==t?void 0:t.key))return t.key;if('object'==typeof t&&null!=(null==t?void 0:t.id))return t.id;return String(n)}},258,[]);
2584__d(function(g,r,i,a,m,e,d){'use strict';function t(t,o){if(null!=t)return t;var n=new Error(void 0!==o?o:'Got unexpected '+t);throw n.framesToPop=1,n}m.exports=t,m.exports.default=t,Object.defineProperty(m.exports,'__esModule',{value:!0})},259,[]);
2585__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var t=Number.isNaN||function(t){return'number'==typeof t&&t!=t};function n(n,u){return n===u||!(!t(n)||!t(u))}function u(t,u){if(t.length!==u.length)return!1;for(var l=0;l<t.length;l++)if(!n(t[l],u[l]))return!1;return!0}function l(t,n){void 0===n&&(n=u);var l=null;function i(){for(var u=[],i=0;i<arguments.length;i++)u[i]=arguments[i];if(l&&l.lastThis===this&&n(u,l.lastArgs))return l.lastResult;var s=t.apply(this,u);return l={lastResult:s,lastArgs:u,lastThis:this},s}return i.clear=function(){l=null},i}},260,[]);
2586__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var t=e(r(_d[0])),u=e(r(_d[1])),n=e(r(_d[2])),f=e(r(_d[3]));r(_d[4]),r(_d[5]);
2586var l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(u){var n=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(t,u,n.get?n:{enumerable:!0,get:function(){return e[u]}})}),t.default=e,t})(r(_d[6])),o=["style"];function c(e){return l.forwardRef((c,d)=>{var s=(0,n.default)(c),y=s[0],p=s[1],_=(0,f.default)(p,d),b=y.passthroughAnimatedPropExplicitValues,v=y.style,O=null!=b?b:{},j=O.style,P=(0,u.default)(O,o),h=[v,j];return l.createElement(e,(0,t.default)({},y,P,{style:h,ref:_}))})}},261,[27,43,262,278,42,199,34]);
2587__d(function(g,r,i,a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return _}});var t=e(r(d[0])),u=e(r(d[1])),n=r(d[2]),l=e(r(d[3])),c=e(r(d[4])),f=r(d[5]),o=e(r(d[6]));function _(e){var t=(0,f.useReducer)(e=>e+1,0)[1],c=(0,f.useRef)(null),o=(0,f.useMemo)(()=>new u.default(e,()=>null==c.current?void 0:c.current()),[e]);v(o);var _=(0,f.useCallback)(u=>{o.setNativeView(u),c.current=()=>{t()};var l=b(u),f=[];for(var _ in e){var s=e[_];s instanceof n.AnimatedEvent&&s.__isNative&&(s.__attach(l,_),f.push([_,s]))}return()=>{c.current=null;for(var e=0,t=f;e<t.length;e++){var u=t[e],n=u[0];u[1].__detach(l,n)}}},[e,o]),h=(0,l.default)(_);return[s(o),h]}function s(e){return(0,t.default)((0,t.default)({},e.__getValue()),{},{collapsable:!1})}function v(e){var t=(0,f.useRef)(null),u=(0,f.useRef)(!1);(0,f.useEffect)(()=>{c.default.API.flushQueue()}),(0,o.default)(()=>(u.current=!1,()=>{u.current=!0}),[]),(0,o.default)(()=>{if(e.__attach(),null!=t.current){var n=t.current;n.__restoreDefaultValues(),n.__detach(),t.current=null}return()=>{u.current?e.__detach():t.current=e}},[e])}function b(e){return'object'==typeof e&&'function'==typeof(null==e?void 0:e.getScrollableNode)?e.getScrollableNode():e}},262,[19,263,264,277,269,34,203]);
2588__d(function(g,r,i,a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var t=e(r(d[0])),_=r(d[1]),s=e(r(d[2])),n=e(r(d[3])),o=e(r(d[4])),l=e(r(d[5]));class u extends s.default{constructor(e,_){super(),e.style&&(e=(0,t.default)((0,t.default)({},e),{},{style:new n.default(e.style)})),this._props=e,this._callback=_}__getValue(){var e={};for(var t in this._props){var o=this._props[t];o instanceof s.default?(!o.__isNative||o instanceof n.default)&&(e[t]=o.__getValue()):o instanceof _.AnimatedEvent?e[t]=o.__getHandler():e[t]=o}return e}__getAnimatedValue(){var e={};for(var t in this._props){var _=this._props[t];_ instanceof s.default&&(e[t]=_.__getAnimatedValue())}return e}__attach(){for(var e in this._props){var t=this._props[e];t instanceof s.default&&t.__addChild(this)}}__detach(){for(var e in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._animatedView=null,this._props){var t=this._props[e];t instanceof s.default&&t.__removeChild(this)}super.__detach()}update(){this._callback()}__makeNative(){if(!this.__isNative){for(var e in this.__isNative=!0,this._props){var t=this._props[e];t instanceof s.default&&t.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}setNativeView(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}__connectAnimatedView(){(0,l.default)(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;(0,l.default)(null!=e,'Unable to locate attached view in the native tree'),o.default.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}__disconnectAnimatedView(){(0,l.default)(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;(0,l.default)(null!=e,'Unable to locate attached view in the native tree'),o.default.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}__restoreDefaultValues(){this.__isNative&&o.default.API.restoreDefaultValues(this.__getNativeTag())}__getNativeConfig(){var e={};for(var t in this._props){var _=this._props[t];_ instanceof s.default&&(_.__makeNative(),e[t]=_.__getNativeTag())}return{type:'props',props:e}}}var h=u},263,[19,264,268,275,269,24]);
2589__d(function(g,r,i,a,m,_e,d){'use strict';
2589function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.attachNativeEvent=v,Object.defineProperty(_e,"AnimatedEvent",{enumerable:!0,get:function(){return _}});var t=e(r(d[0])),n=r(d[1]),s=e(n),l=e(r(d[2]));function v(e,n,v){var _=[],o=(e,n)=>{if(e instanceof t.default)e.__makeNative(),_.push({nativeEventPath:n,animatedValueTag:e.__getNativeTag()});else if('object'==typeof e)for(var s in e)o(e[s],n.concat(s))};return(0,l.default)(v[0]&&v[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.'),o(v[0].nativeEvent,[]),null!=e&&_.forEach(t=>{s.default.API.addAnimatedEventToView(e,n,t)}),{detach(){null!=e&&_.forEach(t=>{s.default.API.removeAnimatedEventFromView(e,n,t.animatedValueTag)})}}}class _{constructor(e,t){this._listeners=[],this._argMapping=e,null==t&&(console.warn('Animated.event now requires a second argument for options'),t={useNativeDriver:!1}),t.listener&&this.__addListener(t.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=(0,n.shouldUseNativeDriver)(t)}__addListener(e){this._listeners.push(e)}__removeListener(e){this._listeners=this._listeners.filter(t=>t!==e)}__attach(e,t){(0,l.default)(this.__isNative,'Only native driven events need to be attached.'),this._attachedEvent=v(e,t,this._argMapping)}__detach(e,t){(0,l.default)(this.__isNative,'Only native driven events need to be detached.'),this._attachedEvent&&this._attachedEvent.detach()}__getHandler(){var e=this;if(this.__isNative)return this._callListeners;return function(){for(var n=arguments.length,s=new Array(n),l=0;l<n;l++)s[l]=arguments[l];var v=(e,n,s)=>{if(e instanceof t.default)'number'==typeof n&&e.setValue(n);else if('object'==typeof e)for(var l in e)v(e[l],n[l],l)};e._argMapping.forEach((e,t)=>{v(e,s[t],'arg'+t)}),e._callListeners(...s)}}_callListeners(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._listeners.forEach(e=>e(...t))}}},264,[265,269,24]);
2590__d(function(g,r,i,a,m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var e=t(r(d[0])),s=t(r(d[1])),n=t(r(d[2])),_=t(r(d[3])).default.API;class u extends s.default{constructor(t,e){if(super(),'number'!=typeof t)throw new Error('AnimatedValue: Attempting to set value to undefined');this._startingValue=this._value=t,this._offset=0,this._animation=null,e&&e.useNativeDriver&&this.__makeNative()}__detach(){this.__isNative&&_.getValue(this.__getNativeTag(),t=>{this._value=t-this._offset}),this.stopAnimation(),super.__detach()}__getValue(){return this._value+this._offset}setValue(t){var e,s;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(t,!this.__isNative),this.__isNative&&(e=this.__getNativeTag().toString(),s=()=>_.setAnimatedNodeValue(this.__getNativeTag(),t),_.setWaitingForIdentifier(e),s(),_.unsetWaitingForIdentifier(e))}setOffset(t){this._offset=t,this.__isNative&&_.setAnimatedNodeOffset(this.__getNativeTag(),t)}flattenOffset(){this._value+=this._offset,this._offset=0,this.__isNative&&_.flattenAnimatedNodeOffset(this.__getNativeTag())}extractOffset(){this._offset+=this._value,this._value=0,this.__isNative&&_.extractAnimatedNodeOffset(this.__getNativeTag())}stopAnimation(t){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,t&&(this.__isNative?_.getValue(this.__getNativeTag(),t):t(this.__getValue()))}resetAnimation(t){this.stopAnimation(t),this._value=this._startingValue,this.__isNative&&_.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}__onAnimatedValueUpdateReceived(t){this._updateValue(t,!1)}interpolate(t){return new e.default(this,t)}animate(t,e){var s=null;t.__isInteraction&&(s=n.default.createInteractionHandle());var _=this._animation;this._animation&&this._animation.stop(),this._animation=t,t.start(this._value,t=>{this._updateValue(t,!0)},t=>{this._animation=null,null!==s&&n.default.clearInteractionHandle(s),e&&e(t)},_,this)}stopTracking(){this._tracking&&this._tracking.__detach(),this._tracking=null}track(t){this.stopTracking(),this._tracking=t,this._tracking&&this._tracking.update(
2590)}_updateValue(t,e){if(void 0===t)throw new Error('AnimatedValue: Attempting to set value to undefined');var s,n;this._value=t,e&&(s=this,n=new Set,(function t(e){'function'==typeof e.update?n.add(e):e.__getChildren().forEach(t)})(s),n.forEach(t=>t.update())),super.__callListeners(this.__getValue())}__getNativeConfig(){return{type:'value',value:this._value,offset:this._offset}}}var h=u},265,[266,267,246,269]);
2591__d(function(_g,_r,_i,_a,m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return g}});var e=t(_r(d[0])),a=t(_r(d[1])),n=t(_r(d[2])),r=t(_r(d[3])),i=t(_r(d[4])),o=t=>t;function u(t){if(t.outputRange&&'string'==typeof t.outputRange[0])return _(t);var e=t.outputRange,a=t.inputRange,n=t.easing||o,i='extend';void 0!==t.extrapolateLeft?i=t.extrapolateLeft:void 0!==t.extrapolate&&(i=t.extrapolate);var u='extend';return void 0!==t.extrapolateRight?u=t.extrapolateRight:void 0!==t.extrapolate&&(u=t.extrapolate),t=>{(0,r.default)('number'==typeof t,'Cannot interpolation an input which is not a number');var o=s(t,a);return p(t,a[o],a[o+1],e[o],e[o+1],n,i,u)}}function p(t,e,a,n,r,i,o,u){var p=t;if(p<e){if('identity'===o)return p;'clamp'===o&&(p=e)}if(p>a){if('identity'===u)return p;'clamp'===u&&(p=a)}return n===r?n:e===a?t<=e?n:r:(e===-1/0?p=-p:a===1/0?p-=e:p=(p-e)/(a-e),p=i(p),n===-1/0?p=-p:r===1/0?p+=n:p=p*(r-n)+n,p)}function l(t){var e=(0,i.default)(t);return null===e||'number'!=typeof e?t:"rgba("+((4278190080&(e=e||0))>>>24)+", "+((16711680&e)>>>16)+", "+((65280&e)>>>8)+", "+(255&e)/255+")"}var f=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function _(t){var a=t.outputRange;(0,r.default)(a.length>=2,'Bad output range'),h(a=a.map(l));var n=a[0].match(f).map(()=>[]);a.forEach(t=>{t.match(f).forEach((t,e)=>{n[e].push(+t)})});var i,o=a[0].match(f).map((a,r)=>u((0,e.default)((0,e.default)({},t),{},{outputRange:n[r]}))),p='string'==typeof(i=a[0])&&i.startsWith('rgb');return t=>{var e=0;return a[0].replace(f,()=>{var a=+o[e++](t);return p&&(a=e<4?Math.round(a):Math.round(1e3*a)/1e3),String(a)})}}function h(t){for(var e=t[0].replace(f,''),a=1;a<t.length;++a)(0,r.default)(e===t[a].replace(f,''),'invalid pattern '+t[0]+' and '+t[a])}function s(t,e){var a;for(a=1;a<e.length-1&&!(e[a]>=t);++a);return a-1}class c extends a.default{constructor(t,e){super(),this._parent=t,this._config=e,this._interpolation=u(e)}__makeNative(t){this._parent.__makeNative(t),super.__makeNative(t)}__getValue(){var t=this._parent.__getValue();return(0,r.default)('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._interpolation(t)}interpolate(t){return new c(this,t)}__attach(){this._parent.__addChild(this)}__detach(){this._parent.__removeChild(this),super.__detach()}__transformDataType(t){return t.map(n.default.transformDataType)}__getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation'}}}c.__createInterpolation=u;var g=c},266,[19,267,269,24,51]);
2592__d(function(g,r,i,a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var t=e(r(d[0])),_=e(r(d[1])),s=e(r(d[2]));class n extends _.default{constructor(){super(),this._children=[]}__makeNative(e){if(!this.__isNative){this.__isNative=!0;for(var _,n=(0,t.default)(this._children);!(_=n()).done;){var l=_.value;l.__makeNative(e),s.default.API.connectAnimatedNodes(this.__getNativeTag(),l.__getNativeTag())}}super.__makeNative(e)}__addChild(e){0===this._children.length&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(this.__getPlatformConfig()),s.default.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}__removeChild(e){var t=this._children.indexOf(e);-1!==t?(this.__isNative&&e.__isNative&&s.default.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")}__getChildren(){return this._children}__callListeners(e){if(super.__callListeners(e),!this.__isNative)for(var _,s=(0,t.default)(this._children);!(_=s()).done;){var n=_.value;n.__getValue&&n.__callListeners(n.__getValue())}}}var l=n},267,[241,268,269]);
2593__d(function(g,r,i,a,m,_e,d){'use strict';
2593function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var t=e(r(d[0])),s=e(r(d[1])),n=t.default.API,_=1;var o=class{__attach(){}__detach(){this.__isNative&&null!=this.__nativeTag&&(t.default.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}__getValue(){}__getAnimatedValue(){return this.__getValue()}__addChild(e){}__removeChild(e){}__getChildren(){return[]}constructor(){this._listeners={}}__makeNative(e){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this._platformConfig=e,this.hasListeners()&&this._startListeningToNativeValueUpdates()}addListener(e){var t=String(_++);return this._listeners[t]=e,this.__isNative&&this._startListeningToNativeValueUpdates(),t}removeListener(e){delete this._listeners[e],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}removeAllListeners(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}hasListeners(){return!!Object.keys(this._listeners).length}_startListeningToNativeValueUpdates(){this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),n.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=t.default.nativeEventEmitter.addListener('onAnimatedValueUpdate',e=>{e.tag===this.__getNativeTag()&&this.__onAnimatedValueUpdateReceived(e.value)}))}__onAnimatedValueUpdateReceived(e){this.__callListeners(e)}__callListeners(e){for(var t in this._listeners)this._listeners[t]({value:e})}_stopListeningForNativeValueUpdates(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,n.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}__getNativeTag(){var e;t.default.assertNativeAnimatedModule(),(0,s.default)(this.__isNative,'Attempt to get native tag from node not marked as "native"');var n=null!==(e=this.__nativeTag)&&void 0!==e?e:t.default.generateNewNodeTag();if(null==this.__nativeTag){this.__nativeTag=n;var _=this.__getNativeConfig();this._platformConfig&&(_.platformConfig=this._platformConfig),t.default.API.createAnimatedNode(n,_),this.__shouldUpdateListenersForNewNativeTag=!0}return n}__getNativeConfig(){throw new Error('This JS animated node type cannot be used as native animated node')}toJSON(){return this.__getValue()}__getPlatformConfig(){return this._platformConfig}__setPlatformConfig(e){this._platformConfig=e}}},268,[269,24]);
2594__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"API",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"isSupportedColorStyleProp",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"isSupportedStyleProp",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"isSupportedTransformProp",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"isSupportedInterpolationParam",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"addWhitelistedStyleProp",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"addWhitelistedTransformProp",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"addWhitelistedInterpolationParam",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"validateStyles",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"validateTransform",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"validateInterpolation",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"generateNewNodeTag",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"generateNewAnimationId",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"assertNativeAnimatedModule",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"shouldUseNativeDriver",{enumerable:!0,get:function(){return M}}),Object.defineProperty(_e,"transformDataType",{enumerable:!0,get:function(){return _}});var t=e(r(d[0])),n=e(r(d[1])),o=(e(r(d[2])),e(r(d[3])));r(d[4]);var u,l=e(r(d[5])),s=e(r(d[6])),f=(e(r(d[7])),n.default),p=1,c=1,v=new Set,b=!1,N=[],O=null,y=f,A={getValue:function(e,t){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.getValue,e,t)},setWaitingForIdentifier:function(e){v.add(e),b=!0,l.default.animatedShouldDebounceQueueFlush()&&O&&clearTimeout(O)},unsetWaitingForIdentifier:function(e){v.delete(e),0===v.size&&(b=!1,A.disableQueue())},disableQueue:function(){((0,s.default)(y,'Native animated module is not available'),l.default.animatedShouldDebounceQueueFlush())?(clearImmediate(O),O=setImmediate(A.flushQueue)):A.flushQueue()},flushQueue:function(){},queueOperation:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];b||0!==N.length?N.push(()=>e(...n)):e(...n)},createAnimatedNode:function(e,t){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.createAnimatedNode,e,t)},updateAnimatedNodeConfig:function(e,t){(0,s.default)(y,'Native animated module is not available')},startListeningToAnimatedNodeValue:function(e){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.startListeningToAnimatedNodeValue,e)},stopListeningToAnimatedNodeValue:function(e){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.stopListeningToAnimatedNodeValue,e)},connectAnimatedNodes:function(e,t){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.connectAnimatedNodes,e,t)},disconnectAnimatedNodes:function(e,t){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.disconnectAnimatedNodes,e,t)},startAnimatingNode:function(e,t,n,o){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.startAnimatingNode,e,t,n,o)},stopAnimation:function(e){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.stopAnimation,e)},setAnimatedNodeValue:function(e,t){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.setAnimatedNodeValue,e,t)},setAnimatedNodeOffset:function(e,t){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.setAnimatedNodeOffset,e,t)},flattenAnimatedNodeOffset:function(e){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.flattenAnimatedNodeOffset,e)},extractAnimatedNodeOffset:function(e){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.extractAnimatedNodeOffset,e)},connectAnimatedNodeToView:function(e,t){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.connectAnimatedNodeToView,e,t)},disconnectAnimatedNodeFromView:function(e,t){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.disconnectAnimatedNodeFromView,e,t)},restoreDefaultValues:function(e){(0,s.default)(y,'Native animated module is not available'),null!=y.restoreDefaultValues&&A.queueOperation(y.restoreDefaultValues,e)},dropAnimatedNode:function(e){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.dropAnimatedNode,e)},addAnimatedEventToView:function(e,t,n){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.addAnimatedEventToView,e,t,n)}
2594,removeAnimatedEventFromView(e,t,n){(0,s.default)(y,'Native animated module is not available'),A.queueOperation(y.removeAnimatedEventFromView,e,t,n)}},P={backgroundColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderRightColor:!0,borderStartColor:!0,borderTopColor:!0,color:!0,tintColor:!0},h=(0,t.default)((0,t.default)({},P),{},{borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,opacity:!0,transform:!0,zIndex:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0}),w={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,perspective:!0},T={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function S(e){h[e]=!0}function q(e){w[e]=!0}function V(e){T[e]=!0}function j(e){return P.hasOwnProperty(e)}function R(e){return h.hasOwnProperty(e)}function I(e){return w.hasOwnProperty(e)}function D(e){return T.hasOwnProperty(e)}function C(e){e.forEach(e=>{if(!I(e.property))throw new Error("Property '"+e.property+"' is not supported by native animated module")})}function E(e){for(var t in e)if(!R(t))throw new Error("Style property '"+t+"' is not supported by native animated module")}function F(e){for(var t in e)if(!D(t))throw new Error("Interpolation property '"+t+"' is not supported by native animated module")}function x(){return p++}function L(){return c++}function W(){(0,s.default)(f,'Native animated module is not available')}var Q=!1;function M(e){return null==e.useNativeDriver&&console.warn("Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`"),!0!==e.useNativeDriver||f?e.useNativeDriver||!1:(Q||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"),Q=!0),!1)}function _(e){return'string'!=typeof e?e:/deg$/.test(e)?(parseFloat(e)||0)*Math.PI/180:e}var k={API:A,isSupportedColorStyleProp:j,isSupportedStyleProp:R,isSupportedTransformProp:I,isSupportedInterpolationParam:D,addWhitelistedStyleProp:S,addWhitelistedTransformProp:q,addWhitelistedInterpolationParam:V,validateStyles:E,validateTransform:C,validateInterpolation:F,generateNewNodeTag:x,generateNewAnimationId:L,assertNativeAnimatedModule:W,shouldUseNativeDriver:M,transformDataType:_,get nativeEventEmitter(){return u||(u=new o.default(null)),u}}},269,[19,270,272,136,273,274,24,137]);
2595__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).get('NativeAnimatedModule')},270,[271]);
2596__d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,'__esModule',{value:!0}),_e.get=u,_e.getEnforcing=function(e){var n=null;return(0,t.default)(null!=n,"TurboModuleRegistry.getEnforcing(...): '"+e+"' could not be found. Verify that a module by this name is registered in the native binary."),n};var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e};function u(e){return null}},271,[24]);
2597__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).get('NativeAnimatedTurboModule')},272,[271]);
2598__d(function(g,r,i,a,m,_e,d){"use strict";
2598Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},273,[95]);
2599__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t={isLayoutAnimationEnabled:()=>!0,shouldEmitW3CPointerEvents:()=>!1,shouldPressibilityUseW3CPointerEventsForHover:()=>!1,animatedShouldDebounceQueueFlush:()=>!1,animatedShouldUseSingleOp:()=>!1}},274,[]);
2600__d(function(g,r,i,a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return y}});var t=e(r(d[0])),s=e(r(d[1])),l=e(r(d[2])),n=e(r(d[3])),_=e(r(d[4])).default.flatten;function u(e){var l=_(e),n={};for(var f in l){var y=l[f];'transform'===f&&Array.isArray(y)?n[f]=new s.default(y):y instanceof t.default?n[f]=y:y&&!Array.isArray(y)&&'object'==typeof y&&(n[f]=u(y))}return n}class f extends l.default{constructor(e){super(),this._inputStyle=e,this._style=u(e)}_walkStyleAndGetValues(e){var s={};for(var l in e){var n=e[l];n instanceof t.default?n.__isNative||(s[l]=n.__getValue()):n&&!Array.isArray(n)&&'object'==typeof n?s[l]=this._walkStyleAndGetValues(n):s[l]=n}return s}__getValue(){return[this._inputStyle,this._walkStyleAndGetValues(this._style)]}_walkStyleAndGetAnimatedValues(e){var s={};for(var l in e){var n=e[l];n instanceof t.default?s[l]=n.__getAnimatedValue():n&&!Array.isArray(n)&&'object'==typeof n&&(s[l]=this._walkStyleAndGetAnimatedValues(n))}return s}__getAnimatedValue(){return this._walkStyleAndGetAnimatedValues(this._style)}__attach(){for(var e in this._style){var s=this._style[e];s instanceof t.default&&s.__addChild(this)}}__detach(){for(var e in this._style){var s=this._style[e];s instanceof t.default&&s.__removeChild(this)}super.__detach()}__makeNative(){for(var e in this._style){var s=this._style[e];s instanceof t.default&&s.__makeNative()}super.__makeNative()}__getNativeConfig(){var e={};for(var s in this._style)if(this._style[s]instanceof t.default){var l=this._style[s];l.__makeNative(),e[s]=l.__getNativeTag()}return n.default.validateStyles(e),{type:'style',style:e}}}var y=f},275,[268,276,267,269,42]);
2601__d(function(g,r,i,a,m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e=t(r(d[0])),n=t(r(d[1])),s=t(r(d[2]));class f extends n.default{constructor(t){super(),this._transforms=t}
2601__makeNative(){this._transforms.forEach(t=>{for(var n in t){var s=t[n];s instanceof e.default&&s.__makeNative()}}),super.__makeNative()}__getValue(){return this._transforms.map(t=>{var n={};for(var s in t){var f=t[s];f instanceof e.default?n[s]=f.__getValue():n[s]=f}return n})}__getAnimatedValue(){return this._transforms.map(t=>{var n={};for(var s in t){var f=t[s];f instanceof e.default?n[s]=f.__getAnimatedValue():n[s]=f}return n})}__attach(){this._transforms.forEach(t=>{for(var n in t){var s=t[n];s instanceof e.default&&s.__addChild(this)}})}__detach(){this._transforms.forEach(t=>{for(var n in t){var s=t[n];s instanceof e.default&&s.__removeChild(this)}}),super.__detach()}__getNativeConfig(){var t=[];return this._transforms.forEach(n=>{for(var f in n){var o=n[f];o instanceof e.default?t.push({type:'animated',property:f,nodeTag:o.__getNativeTag()}):t.push({type:'static',property:f,value:s.default.transformDataType(o)})}}),s.default.validateTransform(t),{type:'transform',transforms:t}}}var o=f},276,[268,267,269]);
2602__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return u}});var t=r(d[0]);function u(u){var n=(0,t.useRef)(void 0);return(0,t.useCallback)(t=>{n.current&&(n.current(),n.current=void 0),null!=t&&(n.current=u(t))},[u])}},277,[34]);
2603__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(){for(var t=arguments.length,u=new Array(t),f=0;f<t;f++)u[f]=arguments[f];return(0,n.useCallback)(n=>{for(var t=0,f=u;t<f.length;t++){var l=f[t];null!=l&&('function'==typeof l?l(n):l.current=n)}},[...u])}},278,[34]);
2604__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}}),r(d[0]);var t=e(r(d[1])),u=(0,e(r(d[2])).default)(t.default)},279,[34,188,261]);
2605__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var t=e(r(_d[0])),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),u=e(r(_d[2])),f=e(r(_d[3])),o=n.forwardRef((e,f)=>n.createElement(u.default,(0,t.default)({scrollEventThrottle:1e-4},e,{ref:f}))),c=(0,f.default)(o)},280,[27,34,223,261]);
2606__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var t=e(r(_d[0])),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),u=e(r(_d[2])),f=e(r(_d[3])),o=n.forwardRef((e,f)=>n.createElement(u.default,(0,t.default)({scrollEventThrottle:1e-4},e,{ref:f}))),c=(0,f.default)(o)},281,[27,34,282,261]);
2607__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},282,[283]);
2608__d(function(g,r,i,a,m,_e,_d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var t=e(r(_d[0])),s=e(r(_d[1]));r(_d[2]);var n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(r(_d[3])),o=e(r(_d[4])),c=["stickySectionHeadersEnabled"];class l extends n.PureComponent{constructor(){super(...arguments),this._captureRef=e=>{this._wrapperListRef=e}}scrollToLocation(e){null!=this._wrapperListRef&&this._wrapperListRef.scrollToLocation(e)}recordInteraction(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}flashScrollIndicators(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}getScrollResponder(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}getScrollableNode(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}render(){var e=this.props,l=e.stickySectionHeadersEnabled,f=(0,s.default)(e,c),p=null!=l&&l;return n.createElement(o.default,(0,t.default)({},f,{stickySectionHeadersEnabled:p,ref:this._captureRef,getItemCount:e=>e.length,getItem:(e,t)=>
2608e[t]}))}}},283,[27,43,95,34,284]);
2609__d(function(g,r,_i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return S}});var t=e(r(_d[0])),i=e(r(_d[1])),n=e(r(_d[2])),o=e(r(_d[3])),s=e(r(_d[4])),l=e(r(_d[5])),d=r(_d[6]),p=e(r(_d[7])),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),t.default=e,t})(r(_d[8])),c=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];class h extends u.PureComponent{constructor(){super(...arguments),this._keyExtractor=(e,t)=>{var i=this._subExtractor(t);return i&&i.key||String(t)},this._convertViewable=e=>{var t;(0,p.default)(null!=e.index,'Received a broken ViewToken');var i=this._subExtractor(e.index);if(!i)return null;var n=i.section.keyExtractor,s=this.props.keyExtractor||d.keyExtractor,l=null!=n?n(e.item,i.index):s(e.item,null!==(t=i.index)&&void 0!==t?t:0);return(0,o.default)((0,o.default)({},e),{},{index:i.index,key:l,section:i.section})},this._onViewableItemsChanged=e=>{var t=e.viewableItems,i=e.changed,n=this.props.onViewableItemsChanged;null!=n&&n({viewableItems:t.map(this._convertViewable,this).filter(Boolean),changed:i.map(this._convertViewable,this).filter(Boolean)})},this._renderItem=e=>t=>{var i=t.item,n=t.index,o=this._subExtractor(n);if(!o)return null;var s=o.index;if(null==s){var l=o.section;if(!0===o.header){var d=this.props.renderSectionHeader;return d?d({section:l}):null}var c=this.props.renderSectionFooter;return c?c({section:l}):null}var h=o.section.renderItem||this.props.renderItem,S=this._getSeparatorComponent(n,o,e);return(0,p.default)(h,'no renderItem!'),u.createElement(f,{SeparatorComponent:S,LeadingSeparatorComponent:0===s?this.props.SectionSeparatorComponent:void 0,cellKey:o.key,index:s,item:i,leadingItem:o.leadingItem,leadingSection:o.leadingSection,prevCellKey:(this._subExtractor(n-1)||{}).key,setSelfHighlightCallback:this._setUpdateHighlightFor,setSelfUpdatePropsCallback:this._setUpdatePropsFor,updateHighlightFor:this._updateHighlightFor,updatePropsFor:this._updatePropsFor,renderItem:h,section:o.section,trailingItem:o.trailingItem,trailingSection:o.trailingSection,inverted:!!this.props.inverted})},this._updatePropsFor=(e,t)=>{var i=this._updatePropsMap[e];null!=i&&i(t)},this._updateHighlightFor=(e,t)=>{var i=this._updateHighlightMap[e];null!=i&&i(t)},this._setUpdateHighlightFor=(e,t)=>{null!=t?this._updateHighlightMap[e]=t:delete this._updateHighlightFor[e]},this._setUpdatePropsFor=(e,t)=>{null!=t?this._updatePropsMap[e]=t:delete this._updatePropsMap[e]},this._updateHighlightMap={},this._updatePropsMap={},this._captureRef=e=>{this._listRef=e}}scrollToLocation(e){for(var t=e.itemIndex,i=0;i<e.sectionIndex;i++)t+=this.props.getItemCount(this.props.sections[i].data)+2;var n=e.viewOffset||0;if(null!=this._listRef){if(e.itemIndex>0&&this.props.stickySectionHeadersEnabled)n+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length;var s=(0,o.default)((0,o.default)({},e),{},{viewOffset:n,index:t});this._listRef.scrollToIndex(s)}}getListRef(){return this._listRef}render(){for(var e,o=this.props,s=(o.ItemSeparatorComponent,o.SectionSeparatorComponent,o.renderItem,o.renderSectionFooter,o.renderSectionHeader,o.sections,o.stickySectionHeadersEnabled,(0,n.default)(o,c)),d=this.props.ListHeaderComponent?1:0,p=this.props.stickySectionHeadersEnabled?[]:void 0,h=0,f=(0,i.default)(this.props.sections);!(e=f()).done;){var S=e.value;null!=p&&p.push(h+d),h+=2,h+=this.props.getItemCount(S.data)}var _=this._renderItem(h);return u.createElement(l.default,(0,t.default)({},s,{keyExtractor:this._keyExtractor,stickyHeaderIndices:p,renderItem:_,data:this.props.sections,getItem:(e,t)=>this._getItem(this.props,e,t),getItemCount:()=>h,onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}_getItem(e,t,i){if(!t)return null;for(var n=i-1,o=0;o<t.length;o++){var s=t[o],l=s.data,d=e.getItemCount(l);
2609if(-1===n||n===d)return s;if(n<d)return e.getItem(l,n);n-=d+2}return null}_subExtractor(e){for(var t=e,i=this.props,n=i.getItem,o=i.getItemCount,s=i.keyExtractor,l=i.sections,p=0;p<l.length;p++){var u=l[p],c=u.data,h=u.key||String(p);if(!((t-=1)>=o(c)+1))return-1===t?{section:u,key:h+':header',index:null,header:!0,trailingSection:l[p+1]}:t===o(c)?{section:u,key:h+':footer',index:null,header:!1,trailingSection:l[p+1]}:{section:u,key:h+':'+(u.keyExtractor||s||d.keyExtractor)(n(c,t),t),index:t,leadingItem:n(c,t-1),leadingSection:l[p-1],trailingItem:n(c,t+1),trailingSection:l[p+1]};t-=o(c)+1}}_getSeparatorComponent(e,t,i){if(!(t=t||this._subExtractor(e)))return null;var n=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,o=this.props.SectionSeparatorComponent,s=e===i-1,l=t.index===this.props.getItemCount(t.section.data)-1;return o&&l?o:!n||l||s?null:n}}function f(e){var i=e.LeadingSeparatorComponent,n=e.SeparatorComponent,l=e.cellKey,d=e.prevCellKey,p=e.setSelfHighlightCallback,c=e.updateHighlightFor,h=e.setSelfUpdatePropsCallback,f=e.updatePropsFor,S=e.item,_=e.index,I=e.section,v=e.inverted,x=u.useState(!1),C=x[0],b=x[1],y=u.useState(!1),k=y[0],E=y[1],H=u.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),P=H[0],F=H[1],w=u.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),M=w[0],R=w[1];u.useEffect(()=>(p(l,E),h(l,R),()=>{h(l,null),p(l,null)}),[l,p,R,h]);var V={highlight:()=>{b(!0),E(!0),null!=d&&c(d,!0)},unhighlight:()=>{b(!1),E(!1),null!=d&&c(d,!1)},updateProps:(e,t)=>{'leading'===e?null!=i?F((0,o.default)((0,o.default)({},P),t)):null!=d&&f(d,(0,o.default)((0,o.default)({},P),t)):'trailing'===e&&null!=n&&R((0,o.default)((0,o.default)({},M),t))}},O=e.renderItem({item:S,index:_,section:I,separators:V}),U=null!=i&&u.createElement(i,(0,t.default)({highlighted:C},P)),j=null!=n&&u.createElement(n,(0,t.default)({highlighted:k},M));return U||j?u.createElement(s.default,null,!1===v?U:j,O,!1===v?j:U):O}var S=h},284,[27,241,43,19,199,240,258,24,34]);
2610__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}}),r(d[0]);var t=e(r(d[1])),u=(0,e(r(d[2])).default)(t.default)},285,[34,229,261]);
2611__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}}),r(d[0]);var t=e(r(d[1])),u=(0,e(r(d[2])).default)(t.default)},286,[34,199,261]);
2612__d(function(g,r,i,a,m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var e=t(r(d[0])),n=r(d[1]),u=t(r(d[2])),l=t(r(d[3])),f=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),s=t(r(d[7])),v=t(r(d[8])),p=!1;function E(t){return e=>{var n=null==e?e:function(){if(p)console.warn('Ignoring recursive animation callback when running mock animations');else{p=!0;try{e(...arguments)}finally{p=!1}}};t(n)}}var y={start:()=>{},stop:()=>{},reset:()=>{},_startNativeLoop:()=>{},_isUsingNativeDriver:()=>!1},_=t=>(0,e.default)((0,e.default)({},y),{},{start:E(e=>{t.forEach(t=>t.start()),null==e||e({finished:!0})})}),h={Value:o.default,ValueXY:c.default,Color:v.default,Interpolation:l.default,Node:f.default,decay:function(t,e){return y},timing:function(t,n){var u=t;return(0,e.default)((0,e.default)({},y),{},{start:E(t=>{u.setValue(n.toValue),null==t||t({finished:!0})})})},spring:function(t,n){var u=t;return(0,e.default)((0,e.default)({},y),{},{start:E(t=>{u.setValue(n.toValue),null==t||t({finished:!0})})})},add:u.default.add,subtract:u.default.subtract,divide:u.default.divide,multiply:u.default.multiply,modulo:u.default.modulo,diffClamp:u.default.diffClamp,delay:function(t){return y},sequence:function(t){return _(t)},parallel:function(t,e){return _(t)},stagger:function(t,e){return _(e)},loop:function(t,e){(void 0===e?{}:e).iterations;return y},event:u.default.event,createAnimatedComponent:s.default,attachNativeEvent:n.attachNativeEvent,forkEvent:u.default.forkEvent,unforkEvent:u.default.unforkEvent,Event:n.AnimatedEvent}},287,[19,264,288,266,268,265,296,261,301]);
2613__d(function(_g,_r,_i,_a,m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}
2613Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return k}});var n=t(_r(d[0])),e=_r(d[1]),i=t(_r(d[2])),r=t(_r(d[3])),a=t(_r(d[4])),o=t(_r(d[5])),u=t(_r(d[6])),f=t(_r(d[7])),s=t(_r(d[8]));_r(d[9]);var c=t(_r(d[10])),v=t(_r(d[11])),l=t(_r(d[12])),p=t(_r(d[13])),g=t(_r(d[14])),_=t(_r(d[15])),h=t(_r(d[16])),N=t(_r(d[17])),w=t(_r(d[18])),E=function(t,n){return t&&n.onComplete?function(){n.onComplete&&n.onComplete(...arguments),t&&t(...arguments)}:t||n.onComplete},A=function(t,e,i){if(t instanceof p.default){var r=(0,n.default)({},e),a=(0,n.default)({},e);for(var o in e){var u=e[o],f=u.x,s=u.y;void 0!==f&&void 0!==s&&(r[o]=f,a[o]=s)}var c=i(t.x,r),v=i(t.y,a);return y([c,v],{stopTogether:!1})}if(t instanceof w.default){var l=(0,n.default)({},e),g=(0,n.default)({},e),_=(0,n.default)({},e),h=(0,n.default)({},e);for(var N in e){var E=e[N],A=E.r,D=E.g,L=E.b,U=E.a;void 0!==A&&void 0!==D&&void 0!==L&&void 0!==U&&(l[N]=A,g[N]=D,_[N]=L,h[N]=U)}var k=i(t.r,l),C=i(t.g,g),V=i(t.b,_),b=i(t.a,h);return y([k,C,V,b],{stopTogether:!1})}return null},D=function t(e,i){var r=function(t,n,e){e=E(e,n);var i=t,r=n;i.stopTracking(),n.toValue instanceof s.default?i.track(new v.default(i,n.toValue,h.default,r,e)):i.animate(new h.default(r),e)};return A(e,i,t)||{start:function(t){r(e,i,t)},stop:function(){e.stopAnimation()},reset:function(){e.resetAnimation()},_startNativeLoop:function(t){var a=(0,n.default)((0,n.default)({},i),{},{iterations:t});r(e,a)},_isUsingNativeDriver:function(){return i.useNativeDriver||!1}}},L=function(t){var n=0;return{start:function(e){0===t.length?e&&e({finished:!0}):t[n].start(function i(r){if(r.finished){if(++n===t.length)return n=0,void(e&&e(r));t[n].start(i)}else e&&e(r)})},stop:function(){n<t.length&&t[n].stop()},reset:function(){t.forEach((t,e)=>{e<=n&&t.reset()}),n=0},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.sequence animations')},_isUsingNativeDriver:function(){return!1}}},y=function(t,n){var e=0,i={},r=!(n&&!1===n.stopTogether),a={start:function(n){e!==t.length?t.forEach((o,u)=>{var f=function(o){if(i[u]=!0,++e===t.length)return e=0,void(n&&n(o));!o.finished&&r&&a.stop()};o?o.start(f):f({finished:!0})}):n&&n({finished:!0})},stop:function(){t.forEach((t,n)=>{!i[n]&&t.stop(),i[n]=!0})},reset:function(){t.forEach((t,n)=>{t.reset(),i[n]=!1,e=0})},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.parallel animations')},_isUsingNativeDriver:function(){return!1}};return a},U=function(t){return D(new l.default(0),{toValue:0,delay:t,duration:0,useNativeDriver:!1})};var k={Value:l.default,ValueXY:p.default,Color:w.default,Interpolation:o.default,Node:s.default,decay:function t(e,i){var r=function(t,n,e){e=E(e,n);var i=t,r=n;i.stopTracking(),i.animate(new g.default(r),e)};return A(e,i,t)||{start:function(t){r(e,i,t)},stop:function(){e.stopAnimation()},reset:function(){e.resetAnimation()},_startNativeLoop:function(t){var a=(0,n.default)((0,n.default)({},i),{},{iterations:t});r(e,a)},_isUsingNativeDriver:function(){return i.useNativeDriver||!1}}},timing:D,spring:function t(e,i){var r=function(t,n,e){e=E(e,n);var i=t,r=n;i.stopTracking(),n.toValue instanceof s.default?i.track(new v.default(i,n.toValue,_.default,r,e)):i.animate(new _.default(r),e)};return A(e,i,t)||{start:function(t){r(e,i,t)},stop:function(){e.stopAnimation()},reset:function(){e.resetAnimation()},_startNativeLoop:function(t){var a=(0,n.default)((0,n.default)({},i),{},{iterations:t});r(e,a)},_isUsingNativeDriver:function(){return i.useNativeDriver||!1}}},add:function(t,n){return new i.default(t,n)},subtract:function(t,n){return new c.default(t,n)},divide:function(t,n){return new a.default(t,n)},multiply:function(t,n){return new f.default(t,n)},modulo:function(t,n){return new u.default(t,n)},diffClamp:function(t,n,e){return new r.default(t,n,e)},delay:U,sequence:L,parallel:y,stagger:function(t,n){return y(n.map((n,e)=>L([U(t*e),n])))},loop:function(t,n){var e=void 0===n?{}:n,i=e.iterations,r=void 0===i?-1:i,a=e.resetBeforeIteration,o=void 0===a||a,u=!1,f=0;return{start:function(n){t&&0!==r?t._isUsingNativeDriver()?t._startNativeLoop(r):(function e(i){void 0===i&&(i={finished:!0}),u||f===r||!1===i.finished?n&&n(i):(f++,o&&t.reset(),t.start(e))})():n&&n({finished:!0})},stop:function(){u=!0,t.stop()},reset:function(){f=0,u=!1,t.reset()},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.loop animations')},_isUsingNativeDriver:function(){return t._isUsingNativeDriver()}}},event:function(t,n){var i=new e.AnimatedEvent(t,n);return i.__isNative?i:i.__getHandler()},createAnimatedComponent:N.default,attachNativeEvent:e.attachNativeEvent,forkEvent:function(t,n){return t?t instanceof e.AnimatedEvent?(t.__addListener(n),t):function(){'function'==typeof t&&t(...arguments),n(...arguments)}:n},unforkEvent:function(t,n){t&&t instanceof e.AnimatedEvent&&t.__removeListener(n)},Event:e.AnimatedEvent}},288,[19,264,289,290,291,266,292,293,268,263,294,295,265,296,297,299,302,261,301]);
2614__d(function(g,r,i,_a,m,_e,d){'use strict';
2614function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var t=e(r(d[0])),_=e(r(d[1])),a=e(r(d[2]));class u extends a.default{constructor(e,t){super(),this._a='number'==typeof e?new _.default(e):e,this._b='number'==typeof t?new _.default(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()+this._b.__getValue()}interpolate(e){return new t.default(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:'addition',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}var s=u},289,[266,265,267]);
2615__d(function(g,r,i,_a,m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var e=t(r(d[0])),a=t(r(d[1]));class _ extends a.default{constructor(t,e,a){super(),this._a=t,this._min=e,this._max=a,this._value=this._lastValue=this._a.__getValue()}__makeNative(t){this._a.__makeNative(t),super.__makeNative(t)}interpolate(t){return new e.default(this,t)}__getValue(){var t=this._a.__getValue(),e=t-this._lastValue;return this._lastValue=t,this._value=Math.min(Math.max(this._value+e,this._min),this._max),this._value}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:'diffclamp',input:this._a.__getNativeTag(),min:this._min,max:this._max}}}var s=_},290,[266,267]);
2616__d(function(g,r,i,_a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var t=e(r(d[0])),_=e(r(d[1])),a=e(r(d[2])),n=e(r(d[3]));class s extends n.default{constructor(e,t){super(),this._warnedAboutDivideByZero=!1,(0===t||t instanceof _.default&&0===t.__getValue())&&console.error('Detected potential division by zero in AnimatedDivision'),this._a='number'==typeof e?new a.default(e):e,this._b='number'==typeof t?new a.default(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._a.__getValue(),t=this._b.__getValue();return 0===t?(this._warnedAboutDivideByZero||(console.error('Detected division by zero in AnimatedDivision'),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,e/t)}interpolate(e){return new t.default(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:'division',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}var o=s},291,[266,268,265,267]);
2617__d(function(g,r,i,_a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return a}});var t=e(r(d[0])),_=e(r(d[1]));class u extends _.default{constructor(e,t){super(),this._a=e,this._modulus=t}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}__getValue(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}interpolate(e){return new t.default(this,e)}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:'modulus',input:this._a.__getNativeTag(),modulus:this._modulus}}}var a=u},292,[266,267]);
2618__d(function(g,r,i,_a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var t=e(r(d[0])),_=e(r(d[1])),a=e(r(d[2]));class u extends a.default{constructor(e,t){super(),this._a='number'==typeof e?new _.default(e):e,this._b='number'==typeof t?new _.default(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()*this._b.__getValue()}interpolate(e){return new t.default(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:'multiplication',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}var s=u},293,[266,265,267]);
2619__d(function(g,r,i,_a,m,_e,d){'use strict';
2619function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var t=e(r(d[0])),_=e(r(d[1])),a=e(r(d[2]));class u extends a.default{constructor(e,t){super(),this._a='number'==typeof e?new _.default(e):e,this._b='number'==typeof t?new _.default(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()-this._b.__getValue()}interpolate(e){return new t.default(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:'subtraction',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}var s=u},294,[266,265,267]);
2620__d(function(g,r,i,a,m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e=t(r(d[0]));r(d[1]);var _=t(r(d[2])),n=r(d[3]);class s extends _.default{constructor(t,e,_,s,u){super(),this._value=t,this._parent=e,this._animationClass=_,this._animationConfig=s,this._useNativeDriver=(0,n.shouldUseNativeDriver)(s),this._callback=u,this.__attach()}__makeNative(){this.__isNative=!0,this._parent.__makeNative(),super.__makeNative(),this._value.__makeNative()}__getValue(){return this._parent.__getValue()}__attach(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}__detach(){this._parent.__removeChild(this),super.__detach()}update(){this._value.animate(new this._animationClass((0,e.default)((0,e.default)({},this._animationConfig),{},{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}__getNativeConfig(){var t=new this._animationClass((0,e.default)((0,e.default)({},this._animationConfig),{},{toValue:void 0})).__getNativeAnimationConfig();return{type:'tracking',animationId:(0,n.generateNewAnimationId)(),animationConfig:t,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}}var u=s},295,[19,265,268,269]);
2621__d(function(g,r,i,a,m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e=t(r(d[0])),s=t(r(d[1])),n=t(r(d[2])),l=1;class f extends s.default{constructor(t){super();var s=t||{x:0,y:0};'number'==typeof s.x&&'number'==typeof s.y?(this.x=new e.default(s.x),this.y=new e.default(s.y)):((0,n.default)(s.x instanceof e.default&&s.y instanceof e.default,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),this.x=s.x,this.y=s.y),this._listeners={}}setValue(t){this.x.setValue(t.x),this.y.setValue(t.y)}setOffset(t){this.x.setOffset(t.x),this.y.setOffset(t.y)}flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()}extractOffset(){this.x.extractOffset(),this.y.extractOffset()}__getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}}resetAnimation(t){this.x.resetAnimation(),this.y.resetAnimation(),t&&t(this.__getValue())}stopAnimation(t){this.x.stopAnimation(),this.y.stopAnimation(),t&&t(this.__getValue())}addListener(t){var e=String(l++),s=e=>{e.value;t(this.__getValue())};return this._listeners[e]={x:this.x.addListener(s),y:this.y.addListener(s)},e}removeListener(t){this.x.removeListener(this._listeners[t].x),this.y.removeListener(this._listeners[t].y),delete this._listeners[t]}removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}getLayout(){return{left:this.x,top:this.y}}getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]}}var u=f},296,[265,267,24]);
2622__d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return _}});var t,e=r(d[0]),s=(t=e)&&t.__esModule?t:{default:t},n=r(d[1]);class o extends s.default{constructor(t){var e,s,o;super(),this._deceleration=null!==(e=t.deceleration)&&void 0!==e?e:.998,this._velocity=t.velocity,this._useNativeDriver=(0,n.shouldUseNativeDriver)(t),this.__isInteraction=null!==(s=t.isInteraction)&&void 0!==s?s:!this._useNativeDriver,this.__iterations=null!==(o=t.iterations)&&void 0!==o?o:1}__getNativeAnimationConfig(){return{type:'decay',deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}start(t,e,s,n,o){this.__active=!0,this._lastValue=t,this._fromValue=t,this._onUpdate=e,this.__onEnd=s,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(o):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}onUpdate(){var t=Date.now(),e=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(t-this._startTime)));this._onUpdate(e),Math.abs(this._lastValue-e)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=e,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}stop(){super.stop(),this.__active=!1,g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}var _=o},297,[298,269]);
2623__d(function(g,r,i,a,m,_e,d){'use strict';
2623Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return _}});var t,e=r(d[0]),n=(t=e)&&t.__esModule?t:{default:t},o=1;var _=class{start(t,e,n,o,_){}stop(){this.__nativeId&&n.default.API.stopAnimation(this.__nativeId)}__getNativeAnimationConfig(){throw new Error('This animation type cannot be offloaded to native')}__debouncedOnEnd(t){var e=this.__onEnd;this.__onEnd=null,e&&e(t)}__startNativeAnimation(t){var e=o+":startAnimation";o+=1,n.default.API.setWaitingForIdentifier(e);try{var _=this.__getNativeAnimationConfig();t.__makeNative(_.platformConfig),this.__nativeId=n.default.generateNewAnimationId(),n.default.API.startAnimatingNode(this.__nativeId,t.__getNativeTag(),_,this.__debouncedOnEnd.bind(this))}catch(t){throw t}finally{n.default.API.unsetWaitingForIdentifier(e)}}}},298,[269]);
2624__d(function(g,r,i,a,_m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var s=t(r(d[0])),e=t(r(d[1])),n=t(r(d[2])),o=r(d[3]);r(d[4]);class h extends s.default{constructor(t){var s,h,l,_,f,u,m,v,c,p,V;if(super(),this._overshootClamping=null!==(s=t.overshootClamping)&&void 0!==s&&s,this._restDisplacementThreshold=null!==(h=t.restDisplacementThreshold)&&void 0!==h?h:.001,this._restSpeedThreshold=null!==(l=t.restSpeedThreshold)&&void 0!==l?l:.001,this._initialVelocity=null!==(_=t.velocity)&&void 0!==_?_:0,this._lastVelocity=null!==(f=t.velocity)&&void 0!==f?f:0,this._toValue=t.toValue,this._delay=null!==(u=t.delay)&&void 0!==u?u:0,this._useNativeDriver=(0,o.shouldUseNativeDriver)(t),this._platformConfig=t.platformConfig,this.__isInteraction=null!==(m=t.isInteraction)&&void 0!==m?m:!this._useNativeDriver,this.__iterations=null!==(v=t.iterations)&&void 0!==v?v:1,void 0!==t.stiffness||void 0!==t.damping||void 0!==t.mass)(0,n.default)(void 0===t.bounciness&&void 0===t.speed&&void 0===t.tension&&void 0===t.friction,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'),this._stiffness=null!==(c=t.stiffness)&&void 0!==c?c:100,this._damping=null!==(p=t.damping)&&void 0!==p?p:10,this._mass=null!==(V=t.mass)&&void 0!==V?V:1;else if(void 0!==t.bounciness||void 0!==t.speed){var T,y;(0,n.default)(void 0===t.tension&&void 0===t.friction&&void 0===t.stiffness&&void 0===t.damping&&void 0===t.mass,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one');var b=e.default.fromBouncinessAndSpeed(null!==(T=t.bounciness)&&void 0!==T?T:8,null!==(y=t.speed)&&void 0!==y?y:12);this._stiffness=b.stiffness,this._damping=b.damping,this._mass=1}else{var M,P,D=e.default.fromOrigamiTensionAndFriction(null!==(M=t.tension)&&void 0!==M?M:40,null!==(P=t.friction)&&void 0!==P?P:7);this._stiffness=D.stiffness,this._damping=D.damping,this._mass=1}(0,n.default)(this._stiffness>0,'Stiffness value must be greater than 0'),(0,n.default)(this._damping>0,'Damping value must be greater than 0'),(0,n.default)(this._mass>0,'Mass value must be greater than 0')}__getNativeAnimationConfig(){var t;return{type:'spring',overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!==(t=this._initialVelocity)&&void 0!==t?t:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(t,s,e,n,o){if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=s,this.__onEnd=e,this._lastTime=Date.now(),this._frameTime=0,n instanceof h){var l=n.getInternalState();this._lastPosition=l.lastPosition,this._lastVelocity=l.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=l.lastTime}var _=()=>{this._useNativeDriver?this.__startNativeAnimation(o):this.onUpdate()};this._delay?this._timeout=setTimeout(_,this._delay):_()}getInternalState(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}
2624onUpdate(){var t=Date.now();t>this._lastTime+64&&(t=this._lastTime+64);var s=(t-this._lastTime)/1e3;this._frameTime+=s;var e=this._damping,n=this._mass,o=this._stiffness,h=-this._initialVelocity,l=e/(2*Math.sqrt(o*n)),_=Math.sqrt(o/n),f=_*Math.sqrt(1-l*l),u=this._toValue-this._startPosition,m=0,v=0,c=this._frameTime;if(l<1){var p=Math.exp(-l*_*c);m=this._toValue-p*((h+l*_*u)/f*Math.sin(f*c)+u*Math.cos(f*c)),v=l*_*p*(Math.sin(f*c)*(h+l*_*u)/f+u*Math.cos(f*c))-p*(Math.cos(f*c)*(h+l*_*u)-f*u*Math.sin(f*c))}else{var V=Math.exp(-_*c);m=this._toValue-V*(u+(h+_*u)*c),v=V*(h*(c*_-1)+c*u*(_*_))}if(this._lastTime=t,this._lastPosition=m,this._lastVelocity=v,this._onUpdate(m),this.__active){var T=!1;this._overshootClamping&&0!==this._stiffness&&(T=this._startPosition<this._toValue?m>this._toValue:m<this._toValue);var y=Math.abs(v)<=this._restSpeedThreshold,b=!0;if(0!==this._stiffness&&(b=Math.abs(this._toValue-m)<=this._restDisplacementThreshold),T||y&&b)return 0!==this._stiffness&&(this._lastPosition=this._toValue,this._lastVelocity=0,this._onUpdate(this._toValue)),void this.__debouncedOnEnd({finished:!0});this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}var l=h},299,[298,300,24,269,301]);
2625__d(function(g,r,i,a,m,e,d){'use strict';function n(n){return 3.62*(n-30)+194}function t(n){return 3*(n-8)+25}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return u}});var u={fromOrigamiTensionAndFriction:function(u,o){return{stiffness:n(u),damping:t(o)}},fromBouncinessAndSpeed:function(u,o){function f(n,t,u){return(n-t)/(u-t)}function c(n,t,u){return t+n*(u-t)}function s(n,t,u){return n*u+(1-n)*t}function p(n){return 44e-6*Math.pow(n,3)-.006*Math.pow(n,2)+.36*n+2}function M(n){return 45e-8*Math.pow(n,3)-332e-6*Math.pow(n,2)+.1078*n+5.84}var h=f(u/1.7,0,20);h=c(h,0,.8);var w,l,v,_,b=c(f(o/1.7,0,20),.5,200),O=(w=h,l=(v=b)<=18?(_=v,7e-4*Math.pow(_,3)-.031
2625*Math.pow(_,2)+.64*_+1.28):v>18&&v<=44?p(v):M(v),s(2*w-w*w,l,.01));return{stiffness:n(b),damping:t(O)}}}},300,[]);
2626__d(function(_g,_r,i,_a,m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e=t(_r(d[0])),s=t(_r(d[1])),a=t(_r(d[2])),r=t(_r(d[3])).default.API,n={r:0,g:0,b:0,a:1},h=1;function l(t){if(null==t)return null;if(_(t))return t;var e=(0,a.default)(t);if(null==e)return null;if('object'==typeof e){if(null!=e)return e}else if('number'==typeof e){return{r:(4278190080&e)>>>24,g:(16711680&e)>>>16,b:(65280&e)>>>8,a:(255&e)/255}}return null}function _(t){return t&&'number'==typeof t.r&&'number'==typeof t.g&&'number'==typeof t.b&&'number'==typeof t.a}function o(t){return t&&t.r instanceof e.default&&t.g instanceof e.default&&t.b instanceof e.default&&t.a instanceof e.default}class f extends s.default{constructor(t,s){super(),this._listeners={};var a=null!=t?t:n;if(o(a)){var r=a;this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a}else{var h,f=null!==(h=l(a))&&void 0!==h?h:n,u=n;_(f)?u=f:this.nativeColor=f,this.r=new e.default(u.r),this.g=new e.default(u.g),this.b=new e.default(u.b),this.a=new e.default(u.a)}(this.nativeColor||s&&s.useNativeDriver)&&this.__makeNative()}setValue(t){var e,s=!1;if(this.__isNative){var a=this.__getNativeTag();r.setWaitingForIdentifier(a.toString())}var h=null!==(e=l(t))&&void 0!==e?e:n;if(_(h)){var o=h;this.r.setValue(o.r),this.g.setValue(o.g),this.b.setValue(o.b),this.a.setValue(o.a),null!=this.nativeColor&&(this.nativeColor=null,s=!0)}else{var f=h;this.nativeColor!==f&&(this.nativeColor=f,s=!0)}if(this.__isNative){var u=this.__getNativeTag();s&&r.updateAnimatedNodeConfig(u,this.__getNativeConfig()),r.unsetWaitingForIdentifier(u.toString())}}setOffset(t){this.r.setOffset(t.r),this.g.setOffset(t.g),this.b.setOffset(t.b),this.a.setOffset(t.a)}flattenOffset(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}extractOffset(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}addListener(t){var e=String(h++),s=e=>{e.value;t(this.__getValue())};return this._listeners[e]={r:this.r.addListener(s),g:this.g.addListener(s),b:this.b.addListener(s),a:this.a.addListener(s)},e}removeListener(t){this.r.removeListener(this._listeners[t].r),this.g.removeListener(this._listeners[t].g),this.b.removeListener(this._listeners[t].b),this.a.removeListener(this._listeners[t].a),delete this._listeners[t]}removeAllListeners(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}stopAnimation(t){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),t&&t(this.__getValue())}resetAnimation(t){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),t&&t(this.__getValue())}__getValue(){return null!=this.nativeColor?this.nativeColor:"rgba("+this.r.__getValue()+", "+this.g.__getValue()+", "+this.b.__getValue()+", "+this.a.__getValue()+")"}__attach(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),super.__attach()}__detach(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),super.__detach()}__makeNative(t){this.r.__makeNative(t),this.g.__makeNative(t),this.b.__makeNative(t),this.a.__makeNative(t),super.__makeNative(t)}__getNativeConfig(){return{type:'color',r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}},301,[265,267,51,269]);
2627__d(function(g,r,i,a,m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}}),r(d[0]),r(d[1]),r(d[2]);var e,s=t(r(d[3])),n=t(r(d[4])),o=r(d[5]);r(d[6]);class _ extends n.default{constructor(t){var n,_,h,u,l;super(),this._toValue=t.toValue,this._easing=null!==(n=t.easing)&&void 0!==n?n:(e||(e=s.default.inOut(s.default.ease)),e),this._duration=null!==(_=t.duration)&&void 0!==_?_:500,this._delay=null!==(h=t.delay)&&void 0!==h?h:0,this.__iterations=null!==(u=t.iterations)&&void 0!==u?u:1,this._useNativeDriver=(0,o.shouldUseNativeDriver)(t),this._platformConfig=t.platformConfig,this.__isInteraction=null!==(l=t.isInteraction)&&void 0!==l?l:!this._useNativeDriver}__getNativeAnimationConfig(){for(var t=[],e=Math.round(this._duration/16.666666666666668),s=0;s<e;s++)t.push(this._easing(s/e));return t.push(this._easing(1)),{type:'frames',frames:t,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(t,e,s,n,o){this.__active=!0,this._fromValue=t,this._onUpdate=e,this.__onEnd=s;var _=()=>{0!==this._duration||this._useNativeDriver?(this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(o):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))):(this._onUpdate(this._toValue),this.__debouncedOnEnd({finished:!0}))};this._delay?this._timeout=setTimeout(_,this._delay):_()}onUpdate(){var t=Date.now();if(t>=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((t-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}var h=_},302,[265,296,266,303,298,269,301]);
2628__d(function(g,r,i,a,m,_e,d){"use strict";
2628Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},303,[304]);
2629__d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var t,e,u=r(d[0]),c=(t=u)&&t.__esModule?t:{default:t};class n{static step0(t){return t>0?1:0}static step1(t){return t>=1?1:0}static linear(t){return t}static ease(t){return e||(e=n.bezier(.42,0,1,1)),e(t)}static quad(t){return t*t}static cubic(t){return t*t*t}static poly(t){return e=>Math.pow(e,t)}static sin(t){return 1-Math.cos(t*Math.PI/2)}static circle(t){return 1-Math.sqrt(1-t*t)}static exp(t){return Math.pow(2,10*(t-1))}static elastic(t){void 0===t&&(t=1);var e=t*Math.PI;return t=>1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*e)}static back(t){return void 0===t&&(t=1.70158),e=>e*e*((t+1)*e-t)}static bounce(t){if(t<.36363636363636365)return 7.5625*t*t;if(t<.7272727272727273){var e=t-.5454545454545454;return 7.5625*e*e+.75}if(t<.9090909090909091){var u=t-.8181818181818182;return 7.5625*u*u+.9375}var c=t-.9545454545454546;return 7.5625*c*c+.984375}static bezier(t,e,u,n){return(0,c.default)(t,e,u,n)}static in(t){return t}static out(t){return e=>1-t(1-e)}static inOut(t){return e=>e<.5?t(2*e)/2:1-t(2*(1-e))/2}}var s=n},304,[305]);
2630__d(function(g,r,_i,a,m,e,d){
2631/**
2632   * BezierEasing - use bezier curve for transition easing function
2633   * https://github.com/gre/bezier-easing
2634   * @copyright 2014-2015 Gaëtan Renaudeau. MIT License.
2635   */
2636'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return h}});var n=4,t=.001,u=1e-7,o=10,f=11,i=.1,c='function'==typeof Float32Array;function v(n,t){return 1-3*t+3*n}function l(n,t){return 3*t-6*n}function b(n){return 3*n}
2636function s(n,t,u){return((v(t,u)*n+l(t,u))*n+b(t))*n}function y(n,t,u){return 3*v(t,u)*n*n+2*l(t,u)*n+b(t)}function w(n,t,f,i,c){var v,l,b=0,y=t,w=f;do{(v=s(l=y+(w-y)/2,i,c)-n)>0?w=l:y=l}while(Math.abs(v)>u&&++b<o);return l}function _(t,u,o,f){for(var i=u,c=0;c<n;++c){var v=y(i,o,f);if(0===v)return i;i-=(s(i,o,f)-t)/v}return i}function h(n,u,o,v){if(!(n>=0&&n<=1&&o>=0&&o<=1))throw new Error('bezier x values must be in [0, 1] range');var l=c?new Float32Array(f):new Array(f);if(n!==u||o!==v)for(var b=0;b<f;++b)l[b]=s(b*i,n,o);function h(u){for(var f=0,c=1;10!==c&&l[c]<=u;++c)f+=i;--c;var v=f+(u-l[c])/(l[c+1]-l[c])*i,b=y(v,n,o);return b>=t?_(u,v,n,o):0===b?v:w(u,f,f+i,n,o)}return function(t){return n===u&&o===v?t:0===t?0:1===t?1:s(h(t),u,v)}}},305,[]);
2637__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/assets/images/logo.5c0247b31594ce0f65ee20f1b6c2434c.png",width:256,height:256}},306,[]);
2638__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"runObserverTask",{enumerable:!0,get:function(){return n}});const t=async(t,n,o="Request timed out. Check your connection and try again.")=>{let u;try{return await Promise.race([t,new Promise((t,c)=>{u=setTimeout(()=>{c(new Error(o))},n)})])}finally{u&&clearTimeout(u)}},n=(t,n)=>{t().catch(n)}},307,[]);
2639__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildAuthActionSettings",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"signUp",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"sendVerificationForUser",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"signIn",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"resendVerificationEmail",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"requestPasswordReset",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"signOut",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"getCurrentUser",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"onAuthStateChange",{enumerable:!0,get:function(){return P}});var t=r(d[0]),n=r(d[1]);const u="https://blackbunny-3c936.web.app",s=new Set([u,"https://blackbunny-3c936.firebaseapp.com","https://blackbunny.app","https://www.blackbunny.app"]),o=()=>{if("undefined"==typeof window)return u;const t=window.location.origin,n=window.location.hostname||"";return"localhost"===n||"127.0.0.1"===n||s.has(t)?t:u},c=()=>({url:new URL("/auth",o()).toString(),handleCodeInApp:!1}),h=async(u,s)=>{await n.authPersistenceReady;return(await(0,t.createUserWithEmailAndPassword)(n.auth,u,s)).user},l=async n=>{if(!n)throw new Error("No authenticated user is available for email verification.");await(0,t.sendEmailVerification)(n,c())},w=async(u,s)=>{await n.authPersistenceReady;const o=await(0,t.signInWithEmailAndPassword)(n.auth,u,s);if(await(0,t.reload)(o.user),!o.user.emailVerified){await(0,t.signOut)(n.auth);const u=new Error("Email address is not verified.");throw u.code="auth/email-not-verified",u}return o.user}
2639,f=async(u,s)=>{let o;await n.authPersistenceReady;try{o=await(0,t.signInWithEmailAndPassword)(n.auth,u,s)}catch(t){throw"auth/invalid-credential"===t?.code&&(t.code="auth/wrong-password"),t}try{if(await(0,t.reload)(o.user),o.user.emailVerified){const t=new Error("Email is already verified.");throw t.code="auth/email-already-verified",t}await l(o.user)}finally{await(0,t.signOut)(n.auth)}},b=async u=>{await n.authPersistenceReady,await(0,t.sendPasswordResetEmail)(n.auth,u,c())},y=async()=>{await n.authPersistenceReady,await(0,t.signOut)(n.auth)},p=()=>n.auth.currentUser,P=u=>{let s=()=>{};return n.authPersistenceReady.then(()=>{s=(0,t.onAuthStateChanged)(n.auth,u)}).catch(o=>{console.error("Error waiting for auth persistence before subscribing:",o),s=(0,t.onAuthStateChanged)(n.auth,u)}),()=>{s()}}},308,[178,309]);
2640__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"auth",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"authPersistenceReady",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"db",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"storage",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);const c=(0,t.initializeApp)({apiKey:"AIzaSyD1LYJhpPEg4HJKWOnQdWbmm36aTxfO67E",authDomain:"blackbunny-3c936.firebaseapp.com",projectId:"blackbunny-3c936",storageBucket:"blackbunny-3c936.firebasestorage.app",messagingSenderId:"622884962120",appId:"1:622884962120:web:010bb63b937b919ce3fd7d"}),u=(0,n.getAuth)(c),b="undefined"!=typeof window?new Promise(t=>{const o=window.setTimeout(()=>{console.warn("Auth persistence setup exceeded 4000ms; continuing bootstrap."),t()},4e3);(0,n.setPersistence)(u,n.browserLocalPersistence).catch(t=>{console.error("Error enabling persistent auth session:",t)}).finally(()=>{window.clearTimeout(o),t()})}):Promise.resolve(),p=(0,o.getFirestore)(c),l=(0,s.getStorage)(c)},309,[310,178,311,316]);
2641__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});
2642/**
2643   * @license
2644   * Copyright 2020 Google LLC
2645   *
2646   * Licensed under the Apache License, Version 2.0 (the "License");
2647   * you may not use this file except in compliance with the License.
2648   * You may obtain a copy of the License at
2649   *
2650   *   http://www.apache.org/licenses/LICENSE-2.0
2651   *
2652   * Unless required by applicable law or agreed to in writing, software
2653   * distributed under the License is distributed on an "AS IS" BASIS,
2654   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2655   * See the License for the specific language governing permissions and
2656   * limitations under the License.
2657   */
2658/**
2659   * @license
2660   * Copyright 2020 Google LLC
2661   *
2662   * Licensed under the Apache License, Version 2.0 (the "License");
2663   * you may not use this file except in compliance with the License.
2664   * You may obtain a copy of the License at
2665   *
2666   *   http://www.apache.org/licenses/LICENSE-2.0
2667   *
2668   * Unless required by applicable law or agreed to in writing, software
2669   * distributed under the License is distributed on an "AS IS" BASIS,
2670   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2671   * See the License for the specific language governing permissions and
2672   * limitations under the License.
2673   */
2674(0,t.registerVersion)("firebase","12.12.0",'app')},310,[181]);
2675__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})},311,[312]);
2676__d(function(g,_r,_i,_a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"AbstractUserDataWriter",{enumerable:!0,get:function(){return n.A}}),Object.defineProperty(_e,"Bytes",{enumerable:!0,get:function(){return n.B}}),Object.defineProperty(_e,"CACHE_SIZE_UNLIMITED",{enumerable:!0,get:function(){return n.au}}),Object.defineProperty(_e,"CollectionReference",{enumerable:!0,get:function(){return n.av}}),Object.defineProperty(_e,"DocumentReference",{enumerable:!0,get:function(){return n.D}}),Object.defineProperty(_e,"FieldPath",{enumerable:!0,get:function(){return n.Y}}),Object.defineProperty(_e,"FieldValue",{enumerable:!0,get:function(){return n.aw}}),Object.defineProperty(_e,"Firestore",{enumerable:!0,get:function(){return n.F}}),Object.defineProperty(_e,"FirestoreError",{enumerable:!0,get:function(){return n.d}}),Object.defineProperty(_e,"GeoPoint",{enumerable:!0,get:function(){return n.ax}}),Object.defineProperty(_e,"LoadBundleTask",{enumerable:!0,get:function(){return n.ay}}),Object.defineProperty(_e,"Query",{enumerable:!0,get:function(){return n.Q}}),Object.defineProperty(_e,"Timestamp",{enumerable:!0,get:function(){return n.az}}),Object.defineProperty(_e,"VectorValue",{enumerable:!0,get:function(){return n.aA}}),Object.defineProperty(_e,"_AutoId",{enumerable:!0,get:function(){return n.N}}),Object.defineProperty(_e,"_ByteString",{enumerable:!0,get:function(){return n.aB}}),Object.defineProperty(_e,"_DatabaseId",{enumerable:!0,get:function(){return n.aC}}),Object.defineProperty(_e,"_DocumentKey",{enumerable:!0,get:function(){return n.v}}),Object.defineProperty(_e,"_EmptyAppCheckTokenProvider",{enumerable:!0,get:function(){return n.aD}}),Object.defineProperty(_e,"_EmptyAuthCredentialsProvider",{enumerable:!0,get:function(){return n.aE}}),Object.defineProperty(_e,"_FieldPath",{enumerable:!0,get:function(){return n.aF}}),Object.defineProperty(_e,"_cast",{enumerable:!0,get:function(){return n.y}}),Object.defineProperty(_e,"_debugAssert",{enumerable:!0,get:function(){return n.aG}}
2676),Object.defineProperty(_e,"_internalAggregationQueryToProtoRunAggregationQueryRequest",{enumerable:!0,get:function(){return n.aH}}),Object.defineProperty(_e,"_internalQueryToProtoQueryTarget",{enumerable:!0,get:function(){return n.aI}}),Object.defineProperty(_e,"_isBase64Available",{enumerable:!0,get:function(){return n.aJ}}),Object.defineProperty(_e,"_logWarn",{enumerable:!0,get:function(){return n.ad}}),Object.defineProperty(_e,"_validateIsNotUsedTogether",{enumerable:!0,get:function(){return n.aK}}),Object.defineProperty(_e,"arrayRemove",{enumerable:!0,get:function(){return n.aL}}),Object.defineProperty(_e,"arrayUnion",{enumerable:!0,get:function(){return n.aM}}),Object.defineProperty(_e,"clearIndexedDbPersistence",{enumerable:!0,get:function(){return n.aN}}),Object.defineProperty(_e,"collection",{enumerable:!0,get:function(){return n.aO}}),Object.defineProperty(_e,"collectionGroup",{enumerable:!0,get:function(){return n.aP}}),Object.defineProperty(_e,"connectFirestoreEmulator",{enumerable:!0,get:function(){return n.aQ}}),Object.defineProperty(_e,"deleteField",{enumerable:!0,get:function(){return n.aR}}),Object.defineProperty(_e,"disableNetwork",{enumerable:!0,get:function(){return n.aS}}),Object.defineProperty(_e,"doc",{enumerable:!0,get:function(){return n.a6}}),Object.defineProperty(_e,"documentId",{enumerable:!0,get:function(){return n.aT}}),Object.defineProperty(_e,"enableIndexedDbPersistence",{enumerable:!0,get:function(){return n.aU}}),Object.defineProperty(_e,"enableMultiTabIndexedDbPersistence",{enumerable:!0,get:function(){return n.aV}}),Object.defineProperty(_e,"enableNetwork",{enumerable:!0,get:function(){return n.aW}}),Object.defineProperty(_e,"ensureFirestoreConfigured",{enumerable:!0,get:function(){return n.z}}),Object.defineProperty(_e,"getFirestore",{enumerable:!0,get:function(){return n.aX}}),Object.defineProperty(_e,"increment",{enumerable:!0,get:function(){return n.aY}}),Object.defineProperty(_e,"initializeFirestore",{enumerable:!0,get:function(){return n.aZ}}),Object.defineProperty(_e,"loadBundle",{enumerable:!0,get:function(){return n.a9}}),Object.defineProperty(_e,"namedQuery",{enumerable:!0,get:function(){return n.aa}}),Object.defineProperty(_e,"queryEqual",{enumerable:!0,get:function(){return n.x}}),Object.defineProperty(_e,"refEqual",{enumerable:!0,get:function(){return n.a_}}),Object.defineProperty(_e,"serverTimestamp",{enumerable:!0,get:function(){return n.a$}}),Object.defineProperty(_e,"setLogLevel",{enumerable:!0,get:function(){return n.b0}}),Object.defineProperty(_e,"terminate",{enumerable:!0,get:function(){return n.b1}}),Object.defineProperty(_e,"vector",{enumerable:!0,get:function(){return n.b2}}),Object.defineProperty(_e,"waitForPendingWrites",{enumerable:!0,get:function(){return n.b3}}),Object.defineProperty(_e,"AggregateField",{enumerable:!0,get:function(){return a}}),Object.defineProperty(_e,"AggregateQuerySnapshot",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"DocumentSnapshot",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(_e,"PersistentCacheIndexManager",{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(_e,"QueryCompositeFilterConstraint",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"QueryConstraint",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"QueryDocumentSnapshot",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(_e,"QueryEndAtConstraint",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"QueryFieldFilterConstraint",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"QueryLimitConstraint",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"QueryOrderByConstraint",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"QuerySnapshot",{enumerable:!0,get:function(){return de}}),Object.defineProperty(_e,"QueryStartAtConstraint",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"SnapshotMetadata",{enumerable:!0,get:function(){return se}}),Object.defineProperty(_e,"Transaction",{enumerable:!0,get:function(){return ge}}),Object.defineProperty(_e,"WriteBatch",{enumerable:!0,get:function(){return me}}),Object.defineProperty(_e,"_TestingHooks",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(_e,"addDoc",{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(_e,"aggregateFieldEqual",{enumerable:!0,get:function(){return Q}}
2676),Object.defineProperty(_e,"aggregateQuerySnapshotEqual",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e,"and",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"average",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"count",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"deleteAllPersistentCacheIndexes",{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(_e,"deleteDoc",{enumerable:!0,get:function(){return Se}}),Object.defineProperty(_e,"disablePersistentCacheIndexAutoCreation",{enumerable:!0,get:function(){return Ue}}),Object.defineProperty(_e,"documentSnapshotFromJSON",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(_e,"enablePersistentCacheIndexAutoCreation",{enumerable:!0,get:function(){return We}}),Object.defineProperty(_e,"endAt",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"endBefore",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"executeWrite",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(_e,"getAggregateFromServer",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"getCountFromServer",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_e,"getDoc",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(_e,"getDocFromCache",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(_e,"getDocFromServer",{enumerable:!0,get:function(){return ve}}),Object.defineProperty(_e,"getDocs",{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(_e,"getDocsFromCache",{enumerable:!0,get:function(){return je}}),Object.defineProperty(_e,"getDocsFromServer",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(_e,"getPersistentCacheIndexManager",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(_e,"limit",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"limitToLast",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"memoryEagerGarbageCollector",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(_e,"memoryLocalCache",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(_e,"memoryLruGarbageCollector",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"onSnapshot",{enumerable:!0,get:function(){return qe}}),Object.defineProperty(_e,"onSnapshotResume",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(_e,"onSnapshotsInSync",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(_e,"or",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"orderBy",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"persistentLocalCache",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(_e,"persistentMultipleTabManager",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(_e,"persistentSingleTabManager",{enumerable:!0,get:function(){return re}}),Object.defineProperty(_e,"query",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"querySnapshotFromJSON",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(_e,"runTransaction",{enumerable:!0,get:function(){return we}}),Object.defineProperty(_e,"setDoc",{enumerable:!0,get:function(){return De}}),Object.defineProperty(_e,"setIndexConfiguration",{enumerable:!0,get:function(){return xe}}),Object.defineProperty(_e,"snapshotEqual",{enumerable:!0,get:function(){return he}}),Object.defineProperty(_e,"startAfter",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"startAt",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"sum",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"updateDoc",{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(_e,"where",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"writeBatch",{enumerable:!0,get:function(){return Te}});var e=_r(_d[0]),t=_r(_d[1]),n=_r(_d[2]),r=_r(_d[3]);_r(_d[4]),_r(_d[5]),_r(_d[6]);const o="@firebase/firestore",i="4.14.0";
2677/**
2678   * @license
2679   * Copyright 2017 Google LLC
2680   *
2681   * Licensed under the Apache License, Version 2.0 (the "License");
2682   * you may not use this file except in compliance with the License.
2683   * You may obtain a copy of the License at
2684   *
2685   *   http://www.apache.org/licenses/LICENSE-2.0
2686   *
2687   * Unless required by applicable law or agreed to in writing, software
2688   * distributed under the License is distributed on an "AS IS" BASIS,
2689   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2690   * See the License for the specific language governing permissions and
2691   * limitations under the License.
2692   */function s(e){return(function(e,t){if("object"!=typeof e||null===e)return!1;const n=e;for(const e of t)if(e in n&&"function"==typeof n[e])return!0;return!1}
2693/**
2694    * @license
2695    * Copyright 2020 Google LLC
2696    *
2697    * Licensed under the Apache License, Version 2.0 (the "License");
2698    * you may not use this file except in compliance with the License.
2699    * You may obtain a copy of the License at
2700    *
2701    *   http://www.apache.org/licenses/LICENSE-2.0
2702    *
2703    * Unless required by applicable law or agreed to in writing, software
2704    * distributed under the License is distributed on an "AS IS" BASIS,
2705    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2706    * See the License for the specific language governing permissions and
2707    * limitations under the License.
2708    */)(e,["next","error","complete"])}
2709/**
2710   * @license
2711   * Copyright 2022 Google LLC
2712   *
2713   * Licensed under the Apache License, Version 2.0 (the "License");
2714   * you may not use this file except in compliance with the License.
2715   * You may obtain a copy of the License at
2716   *
2717   *   http://www.apache.org/licenses/LICENSE-2.0
2718   *
2719   * Unless required by applicable law or agreed to in writing, software
2720   * distributed under the License is distributed on an "AS IS" BASIS,
2721   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2722   * See the License for the specific language governing permissions and
2723   * limitations under the License.
2724   */class a{constructor(e="count",t){this._internalFieldPath=t,this.type="AggregateField",this.aggregateType=e}}class u{constructor(e,t,n){this._userDataWriter=t,this._data=n,this.type="AggregateQuerySnapshot",this.query=e}data(){return this._userDataWriter.convertObjectMap(this._data)}_fieldsProto(){return new n.O({mapValue:{fields:this._data}}).clone().value.mapValue.fields}}
2725/**
2726   * @license
2727   * Copyright 2020 Google LLC
2728   *
2729   * Licensed under the Apache License, Version 2.0 (the "License");
2730   * you may not use this file except in compliance with the License.
2731   * You may obtain a copy of the License at
2732   *
2733   *   http://www.apache.org/licenses/LICENSE-2.0
2734   *
2735   * Unless required by applicable law or agreed to in writing, software
2736   * distributed under the License is distributed on an "AS IS" BASIS,
2737   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2738   * See the License for the specific language governing permissions and
2739   * limitations under the License.
2740   */class c{constructor(e,t,n,r,o){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=o}get id(){return this._key.path.lastSegment()}get ref(){return new n.D(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new d(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}_fieldsProto(){return this._document?.data.clone().value.mapValue.fields??void 0}get(e){if(this._document){const t=this._document.data.field((0,n.j)("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class d extends c{data(){return super.data()}}
2741/**
2742   * @license
2743   * Copyright 2020 Google LLC
2744   *
2745   * Licensed under the Apache License, Version 2.0 (the "License");
2746   * you may not use this file except in compliance with the License.
2747   * You may obtain a copy of the License at
2748   *
2749   *   http://www.apache.org/licenses/LICENSE-2.0
2750   *
2751   * Unless required by applicable law or agreed to in writing, softw
2751are
2752   * distributed under the License is distributed on an "AS IS" BASIS,
2753   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2754   * See the License for the specific language governing permissions and
2755   * limitations under the License.
2756   */function f(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new n.d(n.e.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class l{}class h extends l{}function p(e,t,...r){let o=[];t instanceof l&&o.push(t),o=o.concat(r),(function(e){const t=e.filter(e=>e instanceof _).length,r=e.filter(e=>e instanceof y).length;if(t>1||t>0&&r>0)throw new n.d(n.e.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}
2757/**
2758    * @license
2759    * Copyright 2020 Google LLC
2760    *
2761    * Licensed under the Apache License, Version 2.0 (the "License");
2762    * you may not use this file except in compliance with the License.
2763    * You may obtain a copy of the License at
2764    *
2765    *   http://www.apache.org/licenses/LICENSE-2.0
2766    *
2767    * Unless required by applicable law or agreed to in writing, software
2768    * distributed under the License is distributed on an "AS IS" BASIS,
2769    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2770    * See the License for the specific language governing permissions and
2771    * limitations under the License.
2772    */)(o);for(const t of o)e=t._apply(e);return e}class y extends h{constructor(e,t,n){super(),this._field=e,this._op=t,this._value=n,this.type="where"}static _create(e,t,n){return new y(e,t,n)}_apply(e){const t=this._parse(e);return T(e._query,t),new n.Q(e.firestore,e.converter,(0,n.f)(e._query,t))}_parse(e){const t=(0,n.g)(e.firestore),r=(function(e,t,r,o,i,s,a){let u;if(i.isKeyField()){if("array-contains"===s||"array-contains-any"===s)throw new n.d(n.e.INVALID_ARGUMENT,`Invalid Query. You can't perform '${s}' queries on documentId().`);if("in"===s||"not-in"===s){M(a,s);const t=[];for(const n of a)t.push(E(o,e,n));u={arrayValue:{values:t}}}else u=E(o,e,a)}else"in"!==s&&"not-in"!==s&&"array-contains-any"!==s||M(a,s),u=(0,n.h)(r,t,a,"in"===s||"not-in"===s);return n.i.create(i,s,u)})(e._query,"where",t,e.firestore._databaseId,this._field,this._op,this._value);return r}}function b(e,t,r){const o=t,i=(0,n.j)("where",e);return y._create(i,o,r)}class _ extends l{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new _(e,t)}_parse(e){const t=this._queryConstraints.map(t=>t._parse(e)).filter(e=>e.getFilters().length>0);return 1===t.length?t[0]:n.C.create(t,this._getOperator())}_apply(e){const t=this._parse(e);return 0===t.getFilters().length?e:((function(e,t){let r=e;const o=t.getFlattenedFilters();for(const e of o)T(r,e),r=(0,n.f)(r,e)})(e._query,t),new n.Q(e.firestore,e.converter,(0,n.f)(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}function w(...e){return e.forEach(e=>x("or",e)),_._create("or",e)}function P(...e){return e.forEach(e=>x("and",e)),_._create("and",e)}class O extends h{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new O(e,t)}_apply(e){const t=(function(e,t,r){if(null!==e.startAt)throw new n.d(n.e.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new n.d(n.e.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new n.an(t,r)})(e._query,this._field,this._direction);return new n.Q(e.firestore,e.converter,(0,n.k)(e._query,t))}}function v(e,t="asc"){const r=t,o=(0,n.j)("orderBy",e);return O._create(o,r)}class I extends h{constructor(e,t,n){super(),this.type=e,this._limit=t,this._limitType=n}static _create(e,t,n){return new I(e,t,n)}_apply(e){return new n.Q(e.firestore,e.converter,(0,n.l)(e._query,this._limit,this._limitType))}}function j(e){return(0,n.m)("limit",e),I._create("limit",e,"F")}function N(e){return(0,n.m)("limitToLast",e),I._create("limitToLast",e,"L")}class D extends h{constructor(e,t,n){super(),this.type=e,this._docOrFields=t,this._inclusive=n}static _create(e,t,n){return new D(e,t,n)}_apply(e){const t=F(e,this.type,this._docOrFields,this._inclusive);return new n.Q(e.firestore,e.converter,(0,n.n)(e._query,t))}}function A(...e){return D._create("startAt",e,!0)}function S(...e){return D._create("startAfter",e,!1)}class C extends h{constructor(e,t,n){super(),this.type=e,this._docOrFields=t,this._inclusive=n}
2772static _create(e,t,n){return new C(e,t,n)}_apply(e){const t=F(e,this.type,this._docOrFields,this._inclusive);return new n.Q(e.firestore,e.converter,(0,n.o)(e._query,t))}}function q(...e){return C._create("endBefore",e,!1)}function k(...e){return C._create("endAt",e,!0)}function F(e,t,o,i){if(o[0]=(0,r.getModularInstance)(o[0]),o[0]instanceof c)return(function(e,t,r,o,i){if(!o)throw new n.d(n.e.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${r}().`);const s=[];for(const r of(0,n.q)(e))if(r.field.isKeyField())s.push((0,n.r)(t,o.key));else{const e=o.data.field(r.field);if((0,n.s)(e))throw new n.d(n.e.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+r.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===e){const e=r.field.canonicalString();throw new n.d(n.e.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${e}' (used as the orderBy) does not exist.`)}s.push(e)}return new n.t(s,i)})(e._query,e.firestore._databaseId,t,o[0]._document,i);{const r=(0,n.g)(e.firestore);return(function(e,t,r,o,i,s){const a=e.explicitOrderBy;if(i.length>a.length)throw new n.d(n.e.INVALID_ARGUMENT,`Too many arguments provided to ${o}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);const u=[];for(let s=0;s<i.length;s++){const c=i[s];if(a[s].field.isKeyField()){if("string"!=typeof c)throw new n.d(n.e.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${o}(), but got a ${typeof c}`);if(!(0,n.u)(e)&&-1!==c.indexOf("/"))throw new n.d(n.e.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${o}() must be a plain document ID, but '${c}' contains a slash.`);const r=e.path.child(n.R.fromString(c));if(!n.v.isDocumentKey(r))throw new n.d(n.e.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${o}() must result in a valid document path, but '${r}' is not because it contains an odd number of segments.`);const i=new n.v(r);u.push((0,n.r)(t,i))}else{const e=(0,n.h)(r,o,c);u.push(e)}}return new n.t(u,s)})(e._query,e.firestore._databaseId,r,t,o,i)}}function E(e,t,o){if("string"==typeof(o=(0,r.getModularInstance)(o))){if(""===o)throw new n.d(n.e.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!(0,n.u)(t)&&-1!==o.indexOf("/"))throw new n.d(n.e.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${o}' contains a '/' character.`);const r=t.path.child(n.R.fromString(o));if(!n.v.isDocumentKey(r))throw new n.d(n.e.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);return(0,n.r)(e,new n.v(r))}if(o instanceof n.D)return(0,n.r)(e,o._key);throw new n.d(n.e.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${(0,n.w)(o)}.`)}function M(e,t){if(!Array.isArray(e)||0===e.length)throw new n.d(n.e.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${t.toString()}' filters.`)}function T(e,t){const r=(function(e,t){for(const n of e)for(const e of n.getFlattenedFilters())if(t.indexOf(e.op)>=0)return e.op;return null})(e.filters,(function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}})(t.op));if(null!==r)throw r===t.op?new n.d(n.e.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${t.op.toString()}' filter.`):new n.d(n.e.INVALID_ARGUMENT,`Invalid query. You cannot use '${t.op.toString()}' filters with '${r.toString()}' filters.`)}function x(e,t){if(!(t instanceof y||t instanceof _))throw new n.d(n.e.INVALID_ARGUMENT,`Function ${e}() requires AppliableConstraints created with a call to 'where(...)', 'or(...)', or 'and(...)'.`)}function R(e,t,n){let r;return r=e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t,r}class V extends n.A{constructor(e){super(),this.firestore=e}convertBytes(e){return new n.B(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);
2772return new n.D(this.firestore,null,t)}}
2773/**
2774   * @license
2775   * Copyright 2022 Google LLC
2776   *
2777   * Licensed under the Apache License, Version 2.0 (the "License");
2778   * you may not use this file except in compliance with the License.
2779   * You may obtain a copy of the License at
2780   *
2781   *   http://www.apache.org/licenses/LICENSE-2.0
2782   *
2783   * Unless required by applicable law or agreed to in writing, software
2784   * distributed under the License is distributed on an "AS IS" BASIS,
2785   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2786   * See the License for the specific language governing permissions and
2787   * limitations under the License.
2788   */function L(e){return new a("sum",(0,n.j)("sum",e))}function W(e){return new a("avg",(0,n.j)("average",e))}function U(){return new a("count")}function Q(e,t){return e instanceof a&&t instanceof a&&e.aggregateType===t.aggregateType&&e._internalFieldPath?.canonicalString()===t._internalFieldPath?.canonicalString()}function G(e,t){return(0,n.x)(e.query,t.query)&&(0,r.deepEqual)(e.data(),t.data())}
2789/**
2790   * @license
2791   * Copyright 2022 Google LLC
2792   *
2793   * Licensed under the Apache License, Version 2.0 (the "License");
2794   * you may not use this file except in compliance with the License.
2795   * You may obtain a copy of the License at
2796   *
2797   *   http://www.apache.org/licenses/LICENSE-2.0
2798   *
2799   * Unless required by applicable law or agreed to in writing, software
2800   * distributed under the License is distributed on an "AS IS" BASIS,
2801   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2802   * See the License for the specific language governing permissions and
2803   * limitations under the License.
2804   */function z(e){return B(e,{count:U()})}function B(e,t){const r=(0,n.y)(e.firestore,n.F),o=(0,n.z)(r),i=(0,n.E)(t,(e,t)=>new n.ao(t,e.aggregateType,e._internalFieldPath));return(0,n.G)(o,e._query,i).then(t=>(function(e,t,r){const o=new n.H(e);return new u(t,o,r)}
2805/**
2806    * @license
2807    * Copyright 2023 Google LLC
2808    *
2809    * Licensed under the Apache License, Version 2.0 (the "License");
2810    * you may not use this file except in compliance with the License.
2811    * You may obtain a copy of the License at
2812    *
2813    *   http://www.apache.org/licenses/LICENSE-2.0
2814    *
2815    * Unless required by applicable law or agreed to in writing, software
2816    * distributed under the License is distributed on an "AS IS" BASIS,
2817    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2818    * See the License for the specific language governing permissions and
2819    * limitations under the License.
2820    */)(r,e,t))}class ${constructor(e){this.kind="memory",this._onlineComponentProvider=n.ap.provider,this._offlineComponentProvider=e?.garbageCollector?e.garbageCollector._offlineComponentProvider:{build:()=>new n.aq(void 0)}}toJSON(){return{kind:this.kind}}}class J{constructor(e){let t;this.kind="persistent",e?.tabManager?(e.tabManager._initialize(e),t=e.tabManager):(t=re(void 0),t._initialize(e)),this._onlineComponentProvider=t._onlineComponentProvider,this._offlineComponentProvider=t._offlineComponentProvider}toJSON(){return{kind:this.kind}}}class K{constructor(){this.kind="memoryEager",this._offlineComponentProvider=n.ar.provider}toJSON(){return{kind:this.kind}}}class H{constructor(e){this.kind="memoryLru",this._offlineComponentProvider={build:()=>new n.aq(e)}}toJSON(){return{kind:this.kind}}}function Y(){return new K}function X(e){return new H(e?.cacheSizeBytes)}function Z(e){return new $(e)}function ee(e){return new J(e)}class te{constructor(e){this.forceOwnership=e,this.kind="persistentSingleTab"}toJSON(){return{kind:this.kind}}_initialize(e){this._onlineComponentProvider=n.ap.provider,this._offlineComponentProvider={build:t=>new n.as(t,e?.cacheSizeBytes,this.forceOwnership)}}}class ne{constructor(){this.kind="PersistentMultipleTab"}toJSON(){return{kind:this.kind}}_initialize(e){this._onlineComponentProvider=n.ap.provider,this._offlineComponentProvider={build:t=>new n.at(t,e?.cacheSizeBytes)}}}function re(e){return new te(e?.forceOwnership)}function oe(){return new ne}
2821/**
2822   * @license
2823   * Copyright 2025 Google LLC
2824   *
2825   * Licensed under the Apache License, Version 2.0 (the "License");
2826   * you may not use this file except in compliance with the License.
2827   * You may obtain a copy of the License at
2828   *
2829   *   http://www.apache.org/licenses/LICENSE-2.0
2830   *
2831   * Unless required by applicable law or agreed to in writing, software
2832   * distributed under the License is distributed on an "AS IS" BASIS,
2833   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2834   * See the License for the specific language governing permissions and
2835   * limitations under the License.
2836   */
2837/**
2838   * @license
2839   * Copyright 2020 Google LLC
2840   *
2841   * Licensed under the Apache License, Version 2.0 (the "License");
2842   * you may not use this file except in compliance with the License.
2843   * You may obtain a copy of the License at
2844   *
2845   *   http://www.apache.org/licenses/LICENSE-2.0
2846   *
2847   * Unless required by applicable law or agreed to in writing, software
2848   * distributed under the License is distributed on an "AS IS" BASIS,
2849   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2850   * See the License for the specific language governing permissions and
2851   * limitations under the License.
2852   */const ie="NOT SUPPORTED";class se{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class ae extends c{constructor(e,t,n,r,o,i){super(e,t,n,r,i),this._firestore=e,this._firestoreImpl=e,this.metadata=o}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const t=new ce(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){const r=this._document.data.field((0,n.j)("DocumentSnapshot.get",e));if(null!==r)return this._userDataWriter.convertValue(r,t.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new n.d(n.e.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e=this._document,t={};return t.type=ae._jsonSchemaVersion,t.bundle="",t.bundleSource="DocumentSnapshot",t.bundleName=this._key.toString(),e&&e.isValidDocument()&&e.isFoundDocument()?(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),t.bundle=(this._firestore,this.ref.path,"NOT SUPPORTED"),t):t}}function ue(e,t,r){if((0,n.I)(t,ae._jsonSchema)){if(t.bundle===ie)throw new n.d(n.e.INVALID_ARGUMENT,"The provided JSON object was created in a client environment, which is not supported.");const o=(0,n.J)(e._databaseId),i=(0,n.K)(t.bundle,o),s=i.Qu(),a=new n.L(i.getMetadata(),o);for(const e of s)a.Ga(e);const u=a.documents;if(1!==u.length)throw new n.d(n.e.INVALID_ARGUMENT,`Expected bundle data to contain 1 document, but it contains ${u.length} documents.`);const c=(0,n.M)(o,u[0].document),d=new n.v(n.R.fromString(t.bundleName));return new ae(e,new V(e),d,c,new se(!1,!1),r||null)}}ae._jsonSchemaVersion="firestore/documentSnapshot/1.0",ae._jsonSchema={type:(0,n.p)("string",ae._jsonSchemaVersion),bundleSource:(0,n.p)("string","DocumentSnapshot"),bundleName:(0,n.p)("string"),bundle:(0,n.p)("string")};class ce extends ae{data(e={}){return super.data(e)}}class de{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new se(r.hasPendingWrites,r.fromCache),this.query=n}get docs(){const e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(n=>{e.call(t,new ce(this._firestore,this._userDataWriter,n.key,n,new se(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new n.d(n.e.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=(function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map(n=>{const r=new ce(e._firestore,e._userDataWriter,n.doc.key,n.doc,new se(e._snapshot.mutatedKeys.has(n.doc.key),e._snapshot.fromCache),e.query.converter);return n.doc,{type:"added",doc:r,oldIndex:-1,newIndex:t++}})}{let n=e._snapshot.oldDocs;return e._snapshot.docChanges.filter(e=>t||3!==e.type).map(t=>{const r=new ce(e._firestore,e._userDataWriter,t.doc.key,t.doc,new se(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);let o=-1,i=-1;return 0!==t.type&&(o=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),1!==t.type&&(n=n.add(t.doc),i=n.indexOf(t.doc.key)),{type:le(t.type),doc:r,oldIndex:o,newIndex:i}})}})(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new n.d(n.e.FAILED_PRECONDITION,"QuerySnapsh
2852ot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e={};e.type=de._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=n.N.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;const t=[],r=[],o=[];return this.docs.forEach(e=>{null!==e._document&&(t.push(e._document),r.push(this._userDataWriter.convertObjectMap(e._document.data.value.mapValue.fields,"previous")),o.push(e.ref.path))}),e.bundle=(this._firestore,this.query._query,e.bundleName,"NOT SUPPORTED"),e}}function fe(e,t,r){if((0,n.I)(t,de._jsonSchema)){if(t.bundle===ie)throw new n.d(n.e.INVALID_ARGUMENT,"The provided JSON object was created in a client environment, which is not supported.");const o=(0,n.J)(e._databaseId),i=(0,n.K)(t.bundle,o),s=i.Qu(),a=new n.L(i.getMetadata(),o);for(const e of s)a.Ga(e);if(1!==a.queries.length)throw new n.d(n.e.INVALID_ARGUMENT,`Snapshot data expected 1 query but found ${a.queries.length} queries.`);const u=(0,n.P)(a.queries[0].bundledQuery),c=a.documents;let d=new n.S;c.map(e=>{const t=(0,n.M)(o,e.document);d=d.add(t)});const f=n.V.fromInitialDocuments(u,d,(0,n.T)(),!1,!1),l=new n.Q(e,r||null,u);return new de(e,new V(e),l,f)}}function le(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return(0,n.U)(61501,{type:e})}}function he(e,t){return e instanceof ae&&t instanceof ae?e._firestore===t._firestore&&e._key.isEqual(t._key)&&(null===e._document?null===t._document:e._document.isEqual(t._document))&&e._converter===t._converter:e instanceof de&&t instanceof de&&e._firestore===t._firestore&&(0,n.x)(e.query,t.query)&&e.metadata.isEqual(t.metadata)&&e._snapshot.isEqual(t._snapshot)}
2853/**
2854   * @license
2855   * Copyright 2022 Google LLC
2856   *
2857   * Licensed under the Apache License, Version 2.0 (the "License");
2858   * you may not use this file except in compliance with the License.
2859   * You may obtain a copy of the License at
2860   *
2861   *   http://www.apache.org/licenses/LICENSE-2.0
2862   *
2863   * Unless required by applicable law or agreed to in writing, software
2864   * distributed under the License is distributed on an "AS IS" BASIS,
2865   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2866   * See the License for the specific language governing permissions and
2867   * limitations under the License.
2868   */de._jsonSchemaVersion="firestore/querySnapshot/1.0",de._jsonSchema={type:(0,n.p)("string",de._jsonSchemaVersion),bundleSource:(0,n.p)("string","QuerySnapshot"),bundleName:(0,n.p)("string"),bundle:(0,n.p)("string")};const pe={maxAttempts:5};
2869/**
2870   * @license
2871   * Copyright 2020 Google LLC
2872   *
2873   * Licensed under the Apache License, Version 2.0 (the "License");
2874   * you may not use this file except in compliance with the License.
2875   * You may obtain a copy of the License at
2876   *
2877   *   http://www.apache.org/licenses/LICENSE-2.0
2878   *
2879   * Unless required by applicable law or agreed to in writing, software
2880   * distributed under the License is distributed on an "AS IS" BASIS,
2881   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2882   * See the License for the specific language governing permissions and
2883   * limitations under the License.
2884   */class me{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=(0,n.g)(e)}set(e,t,r){this._verifyNotCommitted();const o=ye(e,this._firestore),i=R(o.converter,t,r),s=(0,n.W)(this._dataReader,"WriteBatch.set",o._key,i,null!==o.converter,r);return this._mutations.push(s.toMutation(o._key,n.X.none())),this}update(e,t,o,...i){this._verifyNotCommitted();const s=ye(e,this._firestore);let a;return a="string"==typeof(t=(0,r.getModularInstance)(t))||t instanceof n.Y?(0,n.Z)(this._dataReader,"WriteBatch.update",s._key,t,o,i):(0,n.$)(this._dataReader,"WriteBatch.update",s._key,t),this._mutations.push(a.toMutation(s._key,n.X.exists(!0))),this}delete(e){this._verifyNotCommitted();const t=ye(e,this._firestore);return this._mutations=this._mutations.concat(new n.a0(t._key,n.X.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new n.d(n.e.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function ye(e,t){if((e=(0,r.getModularInstance)(e)).firestore!==t)throw new n.d(n.e.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}
2885/**
2886   * @license
2887   * Copyright 2020 Google LLC
2888   *
2889   * Licensed under the Apache License, Version 2.0 (the "License");
2890   * you may not use this file except in compliance with the License.
2891   * You may obtain a copy of the License at
2892   *
2893   *   http://www.apache.org/licenses/LICENSE-2.0
2894   *
2895   * Unless required by applicable law or agreed to in writing, software
2896   * distributed under the License is distributed on an "AS IS" BASIS,
2897   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2898   * See the License for the specific language governing permissions and
2899   * limitations under the License.
2900   */class be{constructor(e,t){this._firestore=e,this._transaction=t,this._dataReader=(0,n.g)(e)}get(e){const t=ye(e,this._firestore),r=new V(this._firestore);return this._transaction.lookup([t._key]).then(e=>{if(!e||1!==e.length)return(0,n.U)(24041);const o=e[0];if(o.isFoundDocument())return new c(this._firestore,r,o.key,o,t.converter);if(o.isNoDocument())return new c(this._firestore,r,t._key,null,t.converter);throw(0,n.U)(18433,{doc:o})})}set(e,t,r){const o=ye(e,this._firestore),i=R(o.converter,t,r),s=(0,n.W)(this._dataReader,"Transaction.set",o._key,i,null!==o.converter,r);return this._transaction.set(o._key,s),this}update(e,t,o,...i){const s=ye(e,this._firestore);let a;return a="string"==typeof(t=(0,r.getModularInstance)(t))||t instanceof n.Y?(0,n.Z)(this._dataReader,"Transaction.update",s._key,t,o,i):(0,n.$)(this._dataReader,"Transaction.update",s._key,t),this._transaction.update(s._key,a),this}delete(e){const t=ye(e,this._firestore);return this._transaction.delete(t._key),this}}
2901/**
2902   * @license
2903   * Copyright 2020 Google LLC
2904   *
2905   * Licensed under the Apache License, Version 2.0 (the "License");
2906   * you may not use this file except in compliance with the License.
2907   * You may obtain a copy of the License at
2908   *
2909   *   http://www.apache.org/licenses/LICENSE-2.0
2910   *
2911   * Unless required by applicable law or agreed to in writing, software
2912   * distributed under the License is distributed on an "AS IS" BASIS,
2913   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2914   * See the License for the specific language governing permissions and
2915   * limitations under the License.
2916   */class ge extends be{constructor(e,t){super(e,t),this._firestore=e}get(e){const t=ye(e,this._firestore),r=new n.H(this._firestore);return super.get(e).then(e=>new ae(this._firestore,r,t._key,e._document,new se(!1,!1),t.converter))}}function we(e,t,r){e=(0,n.y)(e,n.F);const o=Object.assign({},pe,r);!(function(e){if(e.maxAttempts<1)throw new n.d(n.e.INVALID_ARGUMENT,"Max attempts must be at least 1")})(o);const i=(0,n.z)(e);return(0,n.a1)(i,n=>t(new ge(e,n)),o)}
2917/**
2918   * @license
2919   * Copyright 2020 Google LLC
2920   *
2921   * Licensed under the Apache License, Version 2.0 (the "License");
2922   * you may not use this file except in compliance with the License.
2923   * You may obtain a copy of the License at
2924   *
2925   *   http://www.apache.org/licenses/LICENSE-2.0
2926   *
2927   * Unless required by applicable law or agreed to in writing, software
2928   * distributed under the License is distributed on an "AS IS" BASIS,
2929   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2930   * See the License for the specific language governing permissions and
2931   * limitations under the License.
2932   */function Pe(e){e=(0,n.y)(e,n.D);const t=(0,n.y)(e.firestore,n.F),r=(0,n.z)(t);return(0,n.a2)(r,e._key).then(n=>Me(t,e,n))}function Oe(e){e=(0,n.y)(e,n.D);const t=(0,n.y)(e.firestore,n.F),r=(0,n.z)(t),o=new n.H(t);return(0,n.a3)(r,e._key).then(n=>new ae(t,o,e._key,n,new se(null!==n&&n.hasLocalMutations,!0),e.converter))}function ve(e){e=(0,n.y)(e,n.D);const t=(0,n.y)(e.firestore,n.F),r=(0,n.z)(t);return(0,n.a2)(r,e._key,{source:"server"}).then(n=>Me(t,e,n))}function Ie(e){e=(0,n.y)(e,n.Q);const t=(0,n.y)(e.firestore,n.F),r=(0,n.z)(t),o=new n.H(t);return f(e._query),(0,n.a4)(r,e._query).then(n=>new de(t,o,e,n))}function je(e){e=(0,n.y)(e,n.Q);const t=(0,n.y)(e.firestore,n.F),r=(0,n.z)(t),o=new n.H(t);return(0,n.a5)(r,e._query).then(n=>new de(t,o,e,n))}function Ne(e){e=(0,n.y)(e,n.Q);const t=(0,n.y)(e.firestore,n.F),r=(0,n.z)(t),o=new n.H(t);return(0,n.a4)(r,e._query,{source:"server"}).then(n=>new de(t,o,e,n))}function De(e,t,r){e=(0,n.y)(e,n.D);
2932const o=(0,n.y)(e.firestore,n.F),i=R(e.converter,t,r),s=(0,n.g)(o);return Ee(o,[(0,n.W)(s,"setDoc",e._key,i,null!==e.converter,r).toMutation(e._key,n.X.none())])}function Ae(e,t,o,...i){e=(0,n.y)(e,n.D);const s=(0,n.y)(e.firestore,n.F),a=(0,n.g)(s);let u;return u="string"==typeof(t=(0,r.getModularInstance)(t))||t instanceof n.Y?(0,n.Z)(a,"updateDoc",e._key,t,o,i):(0,n.$)(a,"updateDoc",e._key,t),Ee(s,[u.toMutation(e._key,n.X.exists(!0))])}function Se(e){return Ee((0,n.y)(e.firestore,n.F),[new n.a0(e._key,n.X.none())])}function Ce(e,t){const r=(0,n.y)(e.firestore,n.F),o=(0,n.a6)(e),i=R(e.converter,t),s=(0,n.g)(e.firestore);return Ee(r,[(0,n.W)(s,"addDoc",o._key,i,null!==e.converter,{}).toMutation(o._key,n.X.exists(!1))]).then(()=>o)}function qe(e,...t){e=(0,r.getModularInstance)(e);let o={includeMetadataChanges:!1,source:"default"},i=0;"object"!=typeof t[i]||s(t[i])||(o=t[i++]);const a={includeMetadataChanges:o.includeMetadataChanges,source:o.source};if(s(t[i])){const e=t[i];t[i]=e.next?.bind(e),t[i+1]=e.error?.bind(e),t[i+2]=e.complete?.bind(e)}let u,c,d;if(e instanceof n.D)c=(0,n.y)(e.firestore,n.F),d=(0,n.a7)(e._key.path),u={next:n=>{t[i]&&t[i](Me(c,e,n))},error:t[i+1],complete:t[i+2]};else{const r=(0,n.y)(e,n.Q);c=(0,n.y)(r.firestore,n.F),d=r._query;const o=new n.H(c);u={next:e=>{t[i]&&t[i](new de(c,o,r,e))},error:t[i+1],complete:t[i+2]},f(e._query)}const l=(0,n.z)(c);return(0,n.a8)(l,d,a,u)}function ke(e,t,...o){const i=(0,r.getModularInstance)(e),a=(function(e){const t={bundle:"",bundleName:"",bundleSource:""},n=["bundle","bundleName","bundleSource"];for(const r of n){if(!(r in e)){t.error=`snapshotJson missing required field: ${r}`;break}const n=e[r];if("string"!=typeof n){t.error=`snapshotJson field '${r}' must be a string.`;break}if(0===n.length){t.error=`snapshotJson field '${r}' cannot be an empty string.`;break}"bundle"===r?t.bundle=n:"bundleName"===r?t.bundleName=n:"bundleSource"===r&&(t.bundleSource=n)}return t})(t);if(a.error)throw new n.d(n.e.INVALID_ARGUMENT,a.error);let u,c=0;if("object"!=typeof o[c]||s(o[c])||(u=o[c++]),"QuerySnapshot"===a.bundleSource){let e=null;if("object"==typeof o[c]&&s(o[c])){const t=o[c++];e={next:t.next,error:t.error,complete:t.complete}}else e={next:o[c++],error:o[c++],complete:o[c++]};return(function(e,t,r,o,i){let s,a=!1;return(0,n.a9)(e,t.bundle).then(()=>(0,n.aa)(e,t.bundleName)).then(e=>{e&&!a&&(i&&e.withConverter(i),s=qe(e,r||{},o))}).catch(e=>(o.error&&o.error(e),()=>{})),()=>{a||(a=!0,s&&s())}
2933/**
2934      * @license
2935      * Copyright 2020 Google LLC
2936      *
2937      * Licensed under the Apache License, Version 2.0 (the "License");
2938      * you may not use this file except in compliance with the License.
2939      * You may obtain a copy of the License at
2940      *
2941      *   http://www.apache.org/licenses/LICENSE-2.0
2942      *
2943      * Unless required by applicable law or agreed to in writing, software
2944      * distributed under the License is distributed on an "AS IS" BASIS,
2945      * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2946      * See the License for the specific language governing permissions and
2947      * limitations under the License.
2948      */})(i,a,u,e,o[c])}if("DocumentSnapshot"===a.bundleSource){let e=null;if("object"==typeof o[c]&&s(o[c])){const t=o[c++];e={next:t.next,error:t.error,complete:t.complete}}else e={next:o[c++],error:o[c++],complete:o[c++]};return(function(e,t,r,o,i){let s,a=!1;return(0,n.a9)(e,t.bundle).then(()=>{if(!a){const a=new n.D(e,i||null,n.v.fromPath(t.bundleName));s=qe(a,r||{},o)}}).catch(e=>(o.error&&o.error(e),()=>{})),()=>{a||(a=!0,s&&s())}})(i,a,u,e,o[c])}throw new n.d(n.e.INVALID_ARGUMENT,`unsupported bundle source: ${a.bundleSource}`)}function Fe(e,t){e=(0,n.y)(e,n.F);const r=(0,n.z)(e),o=s(t)?t:{next:t};return(0,n.ab)(r,o)}function Ee(e,t){const r=(0,n.z)(e);return(0,n.ac)(r,t)}function Me(e,t,r){const o=r.docs.get(t._key),i=new n.H(e);return new ae(e,i,t._key,o,new se(r.hasPendingWrites,r.fromCache),t.converter)}function Te(e){return e=(0,n.y)(e,n.F),(0,n.z)(e),new me(e,t=>Ee(e,t))
2949/**
2950   * @license
2951   * Copyright 2021 Google LLC
2952   *
2953   * Licensed under the Apache License, Version 2.0 (the "License");
2954   * you may not use this file except in compliance with the License.
2955   * You may obtain a copy of the License at
2956   *
2957   *   http://www.apache.org/licenses/LICENSE-2.0
2958   *
2959   * Unless required by applicable law or agreed to in writing, software
2960   * distributed under the License is distributed on an "AS IS" BASIS,
2961   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2962   * See the License for the specific language governing permissions and
2963   * limitations under the License.
2964   */}function xe(e,t){e=(0,n.y)(e,n.F);const r=(0,n.z)(e);if(!r._uninitializedComponentsProvider||"memory"===r._uninitializedComponentsProvider._offline.kind)return(0,n.ad)("Cannot enable indexes when persistence is disabled"),Promise.resolve();const o=(function(e){const t="string"==typeof e?(function(e){try{return JSON.parse(e)}catch(e){throw new n.d(n.e.INVALID_ARGUMENT,"Failed to parse JSON: "+e?.message)}})(e):e,r=[];if(Array.isArray(t.indexes))for(const e of t.indexes){const t=Re(e,"collectionGroup"),o=[];if(Array.isArray(e.fields))for(const t of e.fields){const e=Re(t,"fieldPath"),r=(0,n.ae)("setIndexConfiguration",e);"CONTAINS"===t.arrayConfig?o.push(new n.af(r,2)):"ASCENDING"===t.order?o.push(new n.af(r,0)):"DESCENDING"===t.order&&o.push(new n.af(r,1))}r.push(new n.ag(n.ag.UNKNOWN_ID,t,o,n.ah.empty()))}return r})(t);return(0,n.ai)(r,o)}function Re(e,t){if("string"!=typeof e[t])throw new n.d(n.e.INVALID_ARGUMENT,"Missing string value for: "+t);return e[t]}
2965/**
2966   * @license
2967   * Copyright 2023 Google LLC
2968   *
2969   * Licensed under the Apache License, Version 2.0 (the "License");
2970   * you may not use this file except in compliance with the License.
2971   * You may obtain a copy of the License at
2972   *
2973   *   http://www.apache.org/licenses/LICENSE-2.0
2974   *
2975   * Unless required by applicable law or agreed to in writing, software
2976   * distributed under the License is distributed on an "AS IS" BASIS,
2977   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2978   * See the License for the specific language governing permissions and
2979   * limitations under the License.
2980   */class Ve{constructor(e){this._firestore=e,this.type="PersistentCacheIndexManager"}}function Le(e){e=(0,n.y)(e,n.F);const t=ze.get(e);if(t)return t;const r=(0,n.z)(e);if("persistent"!==r._uninitializedComponentsProvider?._offline.kind)return null;const o=new Ve(e);return ze.set(e,o),o}function We(e){Ge(e,!0)}function Ue(e){Ge(e,!1)}function Qe(e){const t=(0,n.z)(e._firestore);(0,n.aj)(t).then(e=>(0,n.ak)("deleting all persistent cache indexes succeeded")).catch(e=>(0,n.ad)("deleting all persistent cache indexes failed",e))}function Ge(e,t){const r=(0,n.z)(e._firestore);(0,n.al)(r,t).then(e=>(0,n.ak)(`setting persistent cache index auto creation isEnabled=${t} succeeded`)).catch(e=>(0,n.ad)(`setting persistent cache index auto creation isEnabled=${t} failed`,e))}const ze=new WeakMap;
2981/**
2982   * @license
2983   * Copyright 2023 Google LLC
2984   *
2985   * Licensed under the Apache License, Version 2.0 (the "License");
2986   * you may not use this file except in compliance with the License.
2987   * You may obtain a copy of the License at
2988   *
2989   *   http://www.apache.org/licenses/LICENSE-2.0
2990   *
2991   * Unless required by applicable law or agreed to in writing, software
2992   * distributed under the License is distributed on an "AS IS" BASIS,
2993   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2994   * See the License for the specific language governing permissions and
2995   * limitations under the License.
2996   */class Be{constructor(){throw new Error("instances of this class should not be created")}static onExistenceFilterMismatch(e){return $e.instance.onExistenceFilterMismatch(e)}}class $e{constructor(){this.t=new Map}static get instance(){return Je||(Je=new $e,(0,n.am)(Je)),Je}o(e){this.t.forEach(t=>t(e))}onExistenceFilterMismatch(e){const t=Symbol(),n=this.t;return n.set(t,e),()=>n.delete(t)}}let Je=null;!(function(r,s=!0){(0,n._)(e.SDK_VERSION),(0,e._registerComponent)(new t.Component("firestore",(e,{instanceIdentifier:t,options:r})=>{const o=e.getProvider("app").getImmediate(),i=new n.F(new n.a(e.getProvider("auth-internal")),new n.b(o,e.getProvider("app-check-internal")),(0,n.c)(o,t),o);return r=Object.assign({useFetchStreams:s},r),i._setSettings(r),i},"PUBLIC").setMultipleInstances(!0)),(0,e.registerVersion)(o,i,r),(0,e.registerVersion)(o,i,"esm2020")})()},312,[181,182,313,183,314,185,315]);
2997__d(function(e,t,n,r,s,i,o){"use strict";Object.defineProperty(i,'__esModule',{value:!0}),Object.defineProperty(i,"$",{enumerable:!0,get:function(){return gf}}),Object.defineProperty(i,"A",{enumerable:!0,get:function(){return Nf}}),Object.defineProperty(i,"B",{enumerable:!0,get:function(){return Hd}}),Object.defineProperty(i,"C",{enumerable:!0,get:function(){return _r}}),Object.defineProperty(i,"D",{enumerable:!0,get:function(){return vd}}),Object.defineProperty(i,"E",{enumerable:!0,get:function(){return fn}}),Object.defineProperty(i,"F",{enumerable:!0,get:function(){return Pd}}),Object.defineProperty(i,"G",{enumerable:!0,get:function(){return Zh}}),Object.defineProperty(i,"H",{enumerable:!0,get:function(){return Df}}),Object.defineProperty(i,"I",{enumerable:!0,get:function(){return le}}),Object.defineProperty(i,"J",{enumerable:!0,get:function(){return Nc}}),Object.defineProperty(i,"K",{enumerable:!0,get:function(){return od}}),Object.defineProperty(i,"L",{enumerable:!0,get:function(){return Pl}}),Object.defineProperty(i,"M",{enumerable:!0,get:function(){return ro}}),Object.defineProperty(i,"N",{enumerable:!0,get:function(){return j}}),Object.defineProperty(i,"O",{enumerable:!0,get:function(){return gr}}),Object.defineProperty(i,"P",{enumerable:!0,get:function(){return Lo}}),Object.defineProperty(i,"Q",{enumerable:!0,get:function(){return bd}}),Object.defineProperty(i,"R",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(i,"S",{enumerable:!0,get:function(){return yl}}),Object.defineProperty(i,"T",{enumerable:!0,get:function(){return Ds}}),Object.defineProperty(i,"U",{enumerable:!0,get:function(){return T}}),Object.defineProperty(i,"V",{enumerable:!0,get:function(){return bl}}),Object.defineProperty(i,"W",{enumerable:!0,get:function(){return uf}}),Object.defineProperty(i,"X",{enumerable:!0,get:function(){return Js}}),Object.defineProperty(i,"Y",{enumerable:!0,get:function(){return Wd}}),Object.defineProperty(i,"Z",{enumerable:!0,get:function(){return pf}}),Object.defineProperty(i,"_",{enumerable:!0,get:function(){return m}}),Object.defineProperty(i,"a",{enumerable:!0,get:function(){return P}}),Object.defineProperty(i,"a$",{enumerable:!0,get:function(){return kf}}),Object.defineProperty(i,"a0",{enumerable:!0,get:function(){return ci}}),Object.defineProperty(i,"a1",{enumerable:!0,get:function(){return rd}}),Object.defineProperty(i,"a2",{enumerable:!0,get:function(){return Jh}}),Object.defineProperty(i,"a3",{enumerable:!0,get:function(){return Wh}}),Object.defineProperty(i,"a4",{enumerable:!0,get:function(){return Xh}}),Object.defineProperty(i,"a5",{enumerable:!0,get:function(){return Yh}}),Object.defineProperty(i,"a6",{enumerable:!0,get:function(){return _d}}),Object.defineProperty(i,"a7",{enumerable:!0,get:function(){return Xr}}),Object.defineProperty(i,"a8",{enumerable:!0,get:function(){return Hh}}),Object.defineProperty(i,"a9",{enumerable:!0,get:function(){return Gd}}),Object.defineProperty(i,"aA",{enumerable:!0,get:function(){return Zd}}),Object.defineProperty(i,"aB",{enumerable:!0,get:function(){return Sn}}),Object.defineProperty(i,"aC",{enumerable:!0,get:function(){return Ln}}),Object.defineProperty(i,"aD",{enumerable:!0,get:function(){return L}}),Object.defineProperty(i,"aE",{enumerable:!0,get:function(){return k}}),Object.defineProperty(i,"aF",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(i,"aG",{enumerable:!0,get:function(){return _}}),Object.defineProperty(i,"aH",{enumerable:!0,get:function(){return jf}}),Object.defineProperty(i,"aI",{enumerable:!0,get:function(){return Uf}}),Object.defineProperty(i,"aJ",{enumerable:!0,get:function(){return En}}),Object.defineProperty(i,"aK",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(i,"aL",{enumerable:!0,get:function(){return Pf}}),Object.defineProperty(i,"aM",{enumerable:!0,get:function(){return Of}}),Object.defineProperty(i,"aN",{enumerable:!0,get:function(){return qd}}),Object.defineProperty(i,"aO",{enumerable:!0,get:function(){return Ed}}),Object.defineProperty(i,"aP",{enumerable:!0,get:function(){return Sd}}),Object.defineProperty(i,"aQ",{enumerable:!0,get:function(){return wd}}),Object.defineProperty(i,"aR",{enumerable:!0,get:function(){return Af}}),Object.defineProperty(i,"aS",{enumerable:!0,get:function(){return Kd}}),Object.defineProperty(i,"aT",{enumerable:!0,get:function(){return Jd}
2997}),Object.defineProperty(i,"aU",{enumerable:!0,get:function(){return Ld}}),Object.defineProperty(i,"aV",{enumerable:!0,get:function(){return Ud}}),Object.defineProperty(i,"aW",{enumerable:!0,get:function(){return zd}}),Object.defineProperty(i,"aX",{enumerable:!0,get:function(){return Vd}}),Object.defineProperty(i,"aY",{enumerable:!0,get:function(){return Rf}}),Object.defineProperty(i,"aZ",{enumerable:!0,get:function(){return Rd}}),Object.defineProperty(i,"a_",{enumerable:!0,get:function(){return xd}}),Object.defineProperty(i,"aa",{enumerable:!0,get:function(){return Qd}}),Object.defineProperty(i,"ab",{enumerable:!0,get:function(){return nd}}),Object.defineProperty(i,"ac",{enumerable:!0,get:function(){return td}}),Object.defineProperty(i,"ad",{enumerable:!0,get:function(){return v}}),Object.defineProperty(i,"ae",{enumerable:!0,get:function(){return Sf}}),Object.defineProperty(i,"af",{enumerable:!0,get:function(){return ve}}),Object.defineProperty(i,"ag",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(i,"ah",{enumerable:!0,get:function(){return Te}}),Object.defineProperty(i,"ai",{enumerable:!0,get:function(){return ad}}),Object.defineProperty(i,"aj",{enumerable:!0,get:function(){return cd}}),Object.defineProperty(i,"ak",{enumerable:!0,get:function(){return w}}),Object.defineProperty(i,"al",{enumerable:!0,get:function(){return ud}}),Object.defineProperty(i,"am",{enumerable:!0,get:function(){return Ii}}),Object.defineProperty(i,"an",{enumerable:!0,get:function(){return Ir}}),Object.defineProperty(i,"ao",{enumerable:!0,get:function(){return mi}}),Object.defineProperty(i,"ap",{enumerable:!0,get:function(){return Ch}}),Object.defineProperty(i,"aq",{enumerable:!0,get:function(){return Sh}}),Object.defineProperty(i,"ar",{enumerable:!0,get:function(){return Eh}}),Object.defineProperty(i,"as",{enumerable:!0,get:function(){return _h}}),Object.defineProperty(i,"at",{enumerable:!0,get:function(){return xh}}),Object.defineProperty(i,"au",{enumerable:!0,get:function(){return Od}}),Object.defineProperty(i,"av",{enumerable:!0,get:function(){return Id}}),Object.defineProperty(i,"aw",{enumerable:!0,get:function(){return Yd}}),Object.defineProperty(i,"ax",{enumerable:!0,get:function(){return Xd}}),Object.defineProperty(i,"ay",{enumerable:!0,get:function(){return kd}}),Object.defineProperty(i,"az",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(i,"b",{enumerable:!0,get:function(){return M}}),Object.defineProperty(i,"b0",{enumerable:!0,get:function(){return y}}),Object.defineProperty(i,"b1",{enumerable:!0,get:function(){return $d}}),Object.defineProperty(i,"b2",{enumerable:!0,get:function(){return Vf}}),Object.defineProperty(i,"b3",{enumerable:!0,get:function(){return Bd}}),Object.defineProperty(i,"b4",{enumerable:!0,get:function(){return W}}),Object.defineProperty(i,"b5",{enumerable:!0,get:function(){return S}}),Object.defineProperty(i,"b6",{enumerable:!0,get:function(){return wf}}),Object.defineProperty(i,"b7",{enumerable:!0,get:function(){return Ff}}),Object.defineProperty(i,"b8",{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(i,"b9",{enumerable:!0,get:function(){return xo}}),Object.defineProperty(i,"ba",{enumerable:!0,get:function(){return Td}}),Object.defineProperty(i,"bb",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(i,"bc",{enumerable:!0,get:function(){return ed}}),Object.defineProperty(i,"bd",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(i,"be",{enumerable:!0,get:function(){return es}}),Object.defineProperty(i,"bf",{enumerable:!0,get:function(){return We}}),Object.defineProperty(i,"bg",{enumerable:!0,get:function(){return Mf}}),Object.defineProperty(i,"bh",{enumerable:!0,get:function(){return _o}}),Object.defineProperty(i,"bi",{enumerable:!0,get:function(){return Rs}}),Object.defineProperty(i,"bj",{enumerable:!0,get:function(){return Co}}),Object.defineProperty(i,"bk",{enumerable:!0,get:function(){return Cf}}),Object.defineProperty(i,"bl",{enumerable:!0,get:function(){return Lf}}),Object.defineProperty(i,"bm",{enumerable:!0,get:function(){return qf}}),Object.defineProperty(i,"c",{enumerable:!0,get:function(){return Un}}),Object.defineProperty(i,"d",{enumerable:!0,get:function(){return N}}),Object.defineProperty(i,"e",{enumerable:!0,get:function(){return C}}),Object.defineProperty(i,"f",{enumerable:!0,get:function(){return os}}),Object.defineProperty(i,"g",{enumerable:!0,get:function(){return af}}),Object.defineProperty(i,"h",{enumerable:!0,get:function(){return yf}}),Object.defineProperty(i,"i",{enumerable:!0,get:function(){return Sr}}),Object.defineProperty(i,"j",{enumerable:!0,get:function(){return Tf}}),Object.defineProperty(i,"k",{enumerable:!0,get:function(){return as}}),Object.defineProperty(i,"l",{enumerable:!0,get:function(){return us}}),Object.defineProperty(i,"m",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(i,"n",{enumerable:!0,get:function(){return cs}}),Object.defineProperty(i,"o",{enumerable:!0,get:function(){return ls}}),Object.defineProperty(i,"p",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(i,"q",{enumerable:!0,get:function(){return ns}}),Object.defineProperty(i,"r",{enumerable:!0,get:function(){return tr}}),Object.defineProperty(i,"s",{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(i,"t",{enumerable:!0,get:function(){return wr}}),Object.defineProperty(i,"u",{enumerable:!0,get:function(){return ts}}),Object.defineProperty(i,"v",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(i,"w",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(i,"x",{enumerable:!0,get:function(){return Cd}}),Object.defineProperty(i,"y",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(i,"z",{enumerable:!0,get:function(){return Fd}});var a=t(o[0]),u=t(o[1]),c=t(o[2]),l=t(o[3]),h=t(o[4]);
2998/**
2999   * @license
3000   * Copyright 2017 Google LLC
3001   *
3002   * Licensed under the Apache License, Version 2.0 (the "License");
3003   * you may not use this file except in compliance with the License.
3004   * You may obtain a copy of the License at
3005   *
3006   *   http://www.apache.org/licenses/LICENSE-2.0
3007   *
3008   * Unless required by applicable law or agreed to in writing, software
3009   * distributed under the License is distributed on an "AS IS" BASIS,
3010   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3011   * See the License for the specific language governing permissions and
3012   * limitations under the License.
3013   */
3014class d{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.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");
3015/**
3016   * @license
3017   * Copyright 2017 Google LLC
3018   *
3019   * Licensed under the Apache License, Version 2.0 (the "License");
3020   * you may not use this file except in compliance with the License.
3021   * You may obtain a copy of the License at
3022   *
3023   *   http://www.apache.org/licenses/LICENSE-2.0
3024   *
3025   * Unless required by applicable law or agreed to in writing, software
3026   * distributed under the License is distributed on an "AS IS" BASIS,
3027   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3028   * See the License for the specific language governing permissions and
3029   * limitations under the License.
3030   */
3031let f="12.12.0";function m(e){f=e}
3032/**
3033   * @license
3034   * Copyright 2020 Google LLC
3035   *
3036   * Licensed under the Apache License, Version 2.0 (the "License");
3037   * you may not use this file except in compliance with the License.
3038   * You may obtain a copy of the License at
3039   *
3040   *   http://www.apache.org/licenses/LICENSE-2.0
3041   *
3042   * Unless required by applicable law or agreed to in writing, software
3043   * distributed under the License is distributed on an "AS IS" BASIS,
3044   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3045   * See the License for the specific language governing permissions and
3046   * limitations under the License.
3047   */
3048/**
3049   * @license
3050   * Copyright 2017 Google LLC
3051   *
3052   * Licensed under the Apache License, Version 2.0 (the "License");
3053   * you may not use this file except in compliance with the License.
3054   * You may obtain a copy of the License at
3055   *
3056   *   http://www.apache.org/licenses/LICENSE-2.0
3057   *
3058   * Unless required by applicable law or agreed to in writing, software
3059   * distributed under the License is distributed on an "AS IS" BASIS,
3060   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3061   * See the License for the specific language governing permissions and
3062   * limitations under the License.
3063   */const g=new l.Logger("@firebase/firestore");function p(){return g.logLevel}function y(e){g.setLogLevel(e)}function w(e,...t){if(g.logLevel<=l.LogLevel.DEBUG){const n=t.map(I);g.debug(`Firestore (${f}): ${e}`,...n)}}function b(e,...t){if(g.logLevel<=l.LogLevel.ERROR){const n=t.map(I);g.error(`Firestore (${f}): ${e}`,...n)}}function v(e,...t){if(g.logLevel<=l.LogLevel.WARN){const n=t.map(I);g.warn(`Firestore (${f}): ${e}`,...n)}}function I(e){if("string"==typeof e)return e;try{return(function(e){return JSON.stringify(e)})(e)}catch(t){return e}}
3064/**
3065   * @license
3066   * Copyright 2017 Google LLC
3067   *
3068   * Licensed under the Apache License, Version 2.0 (the "License");
3069   * you may not use this file except in compliance with the License.
3070   * You may obtain a copy of the License at
3071   *
3072   *   http://www.apache.org/licenses/LICENSE-2.0
3073   *
3074   * Unless required by applicable law or agreed to in writing, software
3075   * distributed under the License is distributed on an "AS IS" BASIS,
3076   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3077   * See the License for the specific language governing permissions and
3078   * limitations under the License.
3079   */function T(e,t,n){let r="Unexpected state";"string"==typeof t?r=t:n=t,E(e,r,n)}function E(e,t,n){let r=`FIRESTORE (${f}) INTERNAL ASSERTION FAILED: ${t} (ID: ${e.toString(16)})`;if(void 0!==n)try{r+=" CONTEXT: "+JSON.stringify(n)}catch(e){r+=" CONTEXT: "+n}throw b(r),new Error(r)}function S(e,t,n,r){let s="Unexpected state";"string"==typeof n?s=n:r=n,e||E(t,s,r)}function _(e,t){e||T(57014,t)}function x(e,t){return e}
3080/**
3081   * @license
3082   * Copyright 2017 Google LLC
3083   *
3084   * Licensed under the Apache License, Version 2.0 (the "License");
3085   * you may not use this file except in compliance with the License.
3086   * You may obtain a copy of the License at
3087   *
3088   *   http://www.apache.org/licenses/LICENSE-2.0
3089   *
3090   * Unless required by applicable law or agreed to in writing, software
3091   * distributed under the License is distributed on an "AS IS" BASIS,
3092   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3093   * See the License for the specific language governing permissions and
3094   * limitations under the License.
3095   */const C={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class N extends u.FirebaseError{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}
3096/**
3097   * @license
3098   * Copyright 2017 Google LLC
3099   *
3100   * Licensed under the Apache License, Version 2.0 (the "License");
3101   * you may not use this file except in compliance with the License.
3102   * You may obtain a copy of the License at
3103   *
3104   *   http://www.apache.org/licenses/LICENSE-2.0
3105   *
3106   * Unless required by applicable law or agreed to in writing, software
3107   * distributed under the License is distributed on an "AS IS" BASIS,
3108   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3109   * See the License for the specific language governing permissions and
3110   * limitations under the License.
3111   */class D{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}
3112/**
3113   * @license
3114   * Copyright 2017 Google LLC
3115   *
3116   * Licensed under the Apache License, Version 2.0 (the "License");
3117   * you may not use this file except in compliance with the License.
3118   * You may obtain a copy of the License at
3119   *
3120   *   http://www.apache.org/licenses/LICENSE-2.0
3121   *
3122   * Unless required by applicable law or agreed to in writing, software
3123   * distributed under the License is distributed on an "AS IS" BASIS,
3124   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3125   * See the License for the specific language governing permissions and
3126   * limitations under the License.
3127   */class A{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class k{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(d.UNAUTHENTICATED))}shutdown(){}}class O{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable(()=>t(this.token.user))}shutdown(){this.changeListener=null}}class P{constructor(e){this.t=e,this.currentUser=d.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){S(void 0===this.o,42304);let n=this.i;const r=e=>this.i!==n?(n=this.i,t(e)):Promise.resolve();let s=new D;this.o=()=>{this.i++,this.currentUser=this.u(),s.resolve(),s=new D,e.enqueueRetryable(()=>r(this.currentUser))};const i=()=>{const t=s;e.enqueueRetryable(async()=>{await t.promise,await r(this.currentUser)})},o=e=>{w("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.o&&(this.auth.addAuthTokenListener(this.o),i())};this.t.onInit(e=>o(e)),setTimeout(()=>{if(!this.auth){const e=this.t.getImmediate({optional:!0});e?o(e):(w("FirebaseAuthCredentialsProvider","Auth not yet detected"),s.resolve(),s=new D)}},0),i()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(t=>this.i!==e?(w("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?(S("string"==typeof t.accessToken,31837,{l:t}),new A(t.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const e=this.auth&&this.auth.getUid();return S(null===e||"string"==typeof e,2055,{h:e}),new d(e)}}class R{constructor(e,t,n){this.P=e,this.T=t,this.I=n,this.type="FirstParty",this.user=d.FIRST_PARTY,this.R=new Map}A(){return this.I?this.I():null}get headers(){this.R.set("X-Goog-AuthUser",this.P);const e=this.A();return e&&this.R.set("Authorization",e),this.T&&this.R.set("X-Goog-Iam-Authorization-Token",this.T),this.R}}class V{constructor(e,t,n){this.P=e,this.T=t,this.I=n}getToken(){return Promise.resolve(new R(this.P,this.T,this.I))}start(e,t){e.enqueueRetryable(()=>t(d.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class F{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class M{constructor(e,t){this.V=t,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,(0,a._isFirebaseServerApp)(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,t){S(void 0===this.o,3512);const n=e=>{null!=e.error&&w("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${e.error.message}`);const n=e.token!==this.m;return this.m=e.token,w("FirebaseAppCheckTokenProvider",`Received ${n?"new":"existing"} token.`),n?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable(()=>n(t))};const r=e=>{w("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit(e=>r(e)),setTimeout(()=>{if(!this.appCheck){const e=this.V.getImmediate({optional:!0});e?r(e):w("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.p)return Promise.resolve(new F(this.p));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(e=>e?(S("string"==typeof e.token,44558,{tokenResult:e}),this.m=e.token,new F(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}class L{getToken(){return Promise.resolve(new F(""))}invalidateToken(){}start(e,t){}shutdown(){}}
3128/**
3129   * @license
3130   * Copyright 2020 Google LLC
3131   *
3132   * Licensed under the Apache License, Version 2.0 (the "License");
3133   * you may not use this file except in compliance with the License.
3134   * You may obtain a copy of the License at
3135   *
3136   *   http://www.apache.org/licenses/LICENSE-2.0
3137   *
3138   * Unless required by applicable law or agreed to in writing, software
3139   * distributed under the License is distributed on an "AS IS" BASIS,
3140   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3141   * See the License for the specific language governing permissions and
3142   * limitations under the License.
3143   */function U(e){const t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(let t=0;t<e;t++)n[t]=Math.floor(256*Math.random());return n}
3144/**
3145   * @license
3146   * Copyright 2017 Google LLC
3147   *
3148   * Licensed under the Apache License, Version 2.0 (the "License");
3149   * you may not use this file except in compliance with the License.
3150   * You may obtain a copy of the License at
3151   *
3152   *   http://www.apache.org/licenses/LICENSE-2.0
3153   *
3154   * Unless required by applicable law or agreed to in writing, software
3155   * distributed under the License is distributed on an "AS IS" BASIS,
3156   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3157   * See the License for the specific language governing permissions and
3158   * limitations under the License.
3159   */class j{static newId(){const e=62*Math.floor(4.129032258064516);let t="";for(;t.length<20;){const n=U(40);for(let r=0;r<n.length;++r)t.length<20&&n[r]<e&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(n[r]%62))}return t}}function q(e,t){return e<t?-1:e>t?1:0}function B(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e.charAt(r),s=t.charAt(r);if(n!==s)return $(n)===$(s)?q(n,s):$(n)?1:-1}return q(e.length,t.length)}const z=55296,K=57343;function $(e){const t=e.charCodeAt(0);return t>=z&&t<=K}function G(e,t,n){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}function Q(e,t,n){return void 0===e&&void 0===t||void 0!==e&&void 0!==t&&n(e,t)}function H(e){return e+"\0"}
3160/**
3161   * @license
3162   * Copyright 2017 Google LLC
3163   *
3164   * Licensed under the Apache License, Version 2.0 (the "License");
3165   * you may not use this file except in compliance with the License.
3166   * You may obtain a copy of the License at
3167   *
3168   *   http://www.apache.org/licenses/LICENSE-2.0
3169   *
3170   * Unless required by applicable law or agreed to in writing, software
3171   * distributed under the License is distributed on an "AS IS" BASIS,
3172   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3173   * See the License for the specific language governing permissions and
3174   * limitations under the License.
3175   */const W="__name__";class J{constructor(e,t,n){void 0===t?t=0:t>e.length&&T(637,{offset:t,range:e.length}),void 0===n?n=e.length-t:n>e.length-t&&T(1746,{length:n,range:e.length-t}),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(e){return 0===J.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof J?e.forEach(e=>{t.push(e)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}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(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=J.compareSegments(e.get(r),t.get(r));if(0!==n)return n}return q(e.length,t.length)}static compareSegments(e,t){const n=J.isNumericId(e),r=J.isNumericId(t);return n&&!r?-1:!n&&r?1:n&&r?J.extractNumericId(e).compare(J.extractNumericId(t)):B(e,t)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return c.Integer.fromString(e.substring(4,e.length-2))}}class Y extends J{construct(e,t,n){return new Y(e,t,n)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}
vendor: 5,182 bytes, lines 3175-3212
3175toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const t=[];for(const n of e){if(n.indexOf("//")>=0)throw new N(C.INVALID_ARGUMENT,`Invalid segment (${n}). Paths must not contain // in them.`);t.push(...n.split("/").filter(e=>e.length>0))}return new Y(t)}static emptyPath(){return new Y([])}}const X=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Z extends J{construct(e,t,n){return new Z(e,t,n)}static isValidIdentifier(e){return X.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Z.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&this.get(0)===W}static keyField(){return new Z([W])}static fromServerFormat(e){const t=[];let n="",r=0;const s=()=>{if(0===n.length)throw new N(C.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(n),n=""};let i=!1;for(;r<e.length;){const t=e[r];if("\\"===t){if(r+1===e.length)throw new N(C.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const t=e[r+1];if("\\"!==t&&"."!==t&&"`"!==t)throw new N(C.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);n+=t,r+=2}else"`"===t?(i=!i,r++):"."!==t||i?(n+=t,r++):(s(),r++)}if(s(),i)throw new N(C.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new Z(t)}static emptyPath(){return new Z([])}}
3176/**
3177   * @license
3178   * Copyright 2017 Google LLC
3179   *
3180   * Licensed under the Apache License, Version 2.0 (the "License");
3181   * you may not use this file except in compliance with the License.
3182   * You may obtain a copy of the License at
3183   *
3184   *   http://www.apache.org/licenses/LICENSE-2.0
3185   *
3186   * Unless required by applicable law or agreed to in writing, software
3187   * distributed under the License is distributed on an "AS IS" BASIS,
3188   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3189   * See the License for the specific language governing permissions and
3190   * limitations under the License.
3191   */class ee{constructor(e){this.path=e}static fromPath(e){return new ee(Y.fromString(e))}static fromName(e){return new ee(Y.fromString(e).popFirst(5))}static empty(){return new ee(Y.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===Y.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return Y.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new ee(new Y(e.slice()))}}
3192/**
3193   * @license
3194   * Copyright 2017 Google LLC
3195   *
3196   * Licensed under the Apache License, Version 2.0 (the "License");
3197   * you may not use this file except in compliance with the License.
3198   * You may obtain a copy of the License at
3199   *
3200   *   http://www.apache.org/licenses/LICENSE-2.0
3201   *
3202   * Unless required by applicable law or agreed to in writing, software
3203   * distributed under the License is distributed on an "AS IS" BASIS,
3204   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3205   * See the License for the specific language governing permissions and
3206   * limitations under the License.
3207   */function te(e,t,n){if(!n)throw new N(C.INVALID_ARGUMENT,`Function ${e}() cannot be called with an empty ${t}.`)}function ne(e,t,n,r){if(!0===t&&!0===r)throw new N(C.INVALID_ARGUMENT,`${e} and ${n} cannot be used together.`)}function re(e){if(!ee.isDocumentKey(e))throw new N(C.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${e} has ${e.length}.`)}function se(e){if(ee.isDocumentKey(e))throw new N(C.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${e} has ${e.length}.`)}function ie(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function oe(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=`${e.substring(0,20)}...`),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";{const t=(function(e){return e.constructor?e.constructor.name:null})(e);return t?`a custom ${t} object`:"an object"}}return"function"==typeof e?"a function":T(12329,{type:typeof e})}function ae(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new N(C.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=oe(e);throw new N(C.INVALID_ARGUMENT,`Expected type '${t.name}', but it was: ${n}`)}}return e}function ue(e,t){if(t<=0)throw new N(C.INVALID_ARGUMENT,`Function ${e}() requires a positive number, but it was: ${t}.`)}
3208/**
3209   * @license
3210   * Copyright 2025 Google LLC
3211   *
3212   * Licensed under the Apache License, Version 2.0 (the "License");
3213   * you may not use this file except in compliance with the License.
3214   * You may obtain a copy of the License at
3215   *
3216   *   http://www.apache.org/licenses/LICENSE-2.0
3217   *
3218   * Unless required by applicable law or agreed to in writing, software
3219   * distributed under the License is distributed on an "AS IS" BASIS,
3220   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3221   * See the License for the specific language governing permissions and
3222   * limitations under the License.
3223   */function ce(e,t){const n={typeString:e};return t&&(n.value=t),n}function le(e,t){if(!ie(e))throw new N(C.INVALID_ARGUMENT,"JSON must be an object");let n;for(const r in t)if(t[r]){const s=t[r].typeString,i="value"in t[r]?{value:t[r].value}:void 0;if(!(r in e)){n=`JSON missing required field: '${r}'`;break}const o=e[r];if(s&&typeof o!==s){n=`JSON field '${r}' must be a ${s}.`;break}if(void 0!==i&&o!==i.value){n=`Expected '${r}' field to equal '${i.value}'`;break}}if(n)throw new N(C.INVALID_ARGUMENT,n);return!0}
3224/**
3225   * @license
3226   * Copyright 2017 Google LLC
3227   *
3228   * Licensed under the Apache License, Version 2.0 (the "License");
3229   * you may not use this file except in compliance with the License.
3230   * You may obtain a copy of the License at
3231   *
3232   *   http://www.apache.org/licenses/LICENSE-2.0
3233   *
3234   * Unless required by applicable law or agreed to in writing, software
3235   * distributed under the License is distributed on an "AS IS" BASIS,
3236   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3237   * See the License for the specific language governing permissions and
3238   * limitations under the License.
3239   */const he=-62135596800,de=1e6;class fe{static now(){return fe.fromMillis(Date.now())}static fromDate(e){return fe.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),n=Math.floor((e-1e3*t)*de);return new fe(t,n)}constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new N(C.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new N(C.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<he)throw new N(C.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new N(C.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/de}_compareTo(e){return this.seconds===e.seconds?q(this.nanoseconds,e.nanoseconds):q(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{type:fe._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(e){if(le(e,fe._jsonSchema))return new fe(e.seconds,e.nanoseconds)}valueOf(){const e=this.seconds-he;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}fe._jsonSchemaVersion="firestore/timestamp/1.0",fe._jsonSchema={type:ce("string",fe._jsonSchemaVersion),seconds:ce("number"),nanoseconds:ce("number")};
3240/**
3241   * @license
3242   * Copyright 2017 Google LLC
3243   *
3244   * Licensed under the Apache License, Version 2.0 (the "License");
3245   * you may not use this file except in compliance with the License.
3246   * You may obtain a copy of the License at
3247   *
3248   *   http://www.apache.org/licenses/LICENSE-2.0
3249   *
3250   * Unless required by applicable law or agreed to in writing, software
3251   * distributed under the License is distributed on an "AS IS" BASIS,
3252   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3253   * See the License for the specific language governing permissions and
3254   * limitations under the License.
3255   */
3256class me{static fromTimestamp(e){return new me(e)}static min(){return new me(new fe(0,0))}static max(){return new me(new fe(253402300799,999999999))}constructor(e){this.timestamp=e}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}
3257/**
3258   * @license
3259   * Copyright 2021 Google LLC
3260   *
3261   * Licensed under the Apache License, Version 2.0 (the "License");
3262   * you may not use this file except in compliance with the License.
3263   * You may obtain a copy of the License at
3264   *
3265   *   http://www.apache.org/licenses/LICENSE-2.0
3266   *
3267   * Unless required by applicable law or agreed to in writing, software
3268   * distributed under the License is distributed on an "AS IS" BASIS,
3269   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3270   * See the License for the specific language governing permissions and
3271   * limitations under the License.
3272   */const ge=-1;class pe{constructor(e,t,n,r){this.indexId=e,this.collectionGroup=t,this.fields=n,this.indexState=r}}function ye(e){return e.fields.find(e=>2===e.kind)}function we(e){return e.fields.filter(e=>2!==e.kind)}function be(e,t){let n=q(e.collectionGroup,t.collectionGroup);if(0!==n)return n;for(let r=0;r<Math.min(e.fields.length,t.fields.length);++r)if(n=Ie(e.fields[r],t.fields[r]),0!==n)return n;return q(e.fields.length,t.fields.length)}pe.UNKNOWN_ID=-1;class ve{constructor(e,t){this.fieldPath=e,this.kind=t}}function Ie(e,t){const n=Z.comparator(e.fieldPath,t.fieldPath);return 0!==n?n:q(e.kind,t.kind)}class Te{constructor(e,t){this.sequenceNumber=e,this.offset=t}static empty(){return new Te(0,_e.min())}}function Ee(e,t){const n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1,s=me.fromTimestamp(1e9===r?new fe(n+1,0):new fe(n,r));return new _e(s,ee.empty(),t)}function Se(e){return new _e(e.readTime,e.key,ge)}class _e{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new _e(me.min(),ee.empty(),ge)}static max(){return new _e(me.max(),ee.empty(),ge)}}function xe(e,t){let n=e.readTime.compareTo(t.readTime);return 0!==n?n:(n=ee.comparator(e.documentKey,t.documentKey),0!==n?n:q(e.largestBatchId,t.largestBatchId)
3273/**
3274   * @license
3275   * Copyright 2020 Google LLC
3276   *
3277   * Licensed under the Apache License, Version 2.0 (the "License");
3278   * you may not use this file except in compliance with the License.
3279   * You may obtain a copy of the License at
3280   *
3281   *   http://www.apache.org/licenses/LICENSE-2.0
3282   *
3283   * Unless required by applicable law or agreed to in writing, software
3284   * distributed under the License is distributed on an "AS IS" BASIS,
3285   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3286   * See the License for the specific language governing permissions and
3287   * limitations under the License.
3288   */)}const Ce="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Ne{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}
3289/**
3290   * @license
3291   * Copyright 2017 Google LLC
3292   *
3293   * Licensed under the Apache License, Version 2.0 (the "License");
3294   * you may not use this file except in compliance with the License.
3295   * You may obtain a copy of the License at
3296   *
3297   *   http://www.apache.org/licenses/LICENSE-2.0
3298   *
3299   * Unless required by applicable law or agreed to in writing, software
3300   * distributed under the License is distributed on an "AS IS" BASIS,
3301   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3302   * See the License for the specific language governing permissions and
3303   * limitations under the License.
3304   */async function De(e){if(e.code!==C.FAILED_PRECONDITION||e.message!==Ce)throw e;w("LocalStore","Unexpectedly lost primary lease")}
3305/**
3306   * @license
3307   * Copyright 2017 Google LLC
3308   *
3309   * Licensed under the Apache License, Version 2.0 (the "License");
3310   * you may not use this file except in compliance with the License.
3311   * You may obtain a copy of the License at
3312   *
3313   *   http://www.apache.org/licenses/LICENSE-2.0
3314   *
3315   * Unless required by applicable law or agreed to in writing, software
3316   * distributed under the License is distributed on an "AS IS" BASIS,
3317   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3318   * See the License for the specific language governing permissions and
3319   * limitations under the License.
3320   */class Ae{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)},e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)})}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&T(59440),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new Ae((n,r)=>{this.nextCallback=t=>{this.wrapSuccess(e,t).next(n,r)},this.catchCallback=e=>{this.wrapFailure(t,e).next(n,r)}})}toPromise(){return new Promise((e,t)=>
3320{this.next(e,t)})}wrapUserFunction(e){try{const t=e();return t instanceof Ae?t:Ae.resolve(t)}catch(e){return Ae.reject(e)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):Ae.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):Ae.reject(t)}static resolve(e){return new Ae((t,n)=>{t(e)})}static reject(e){return new Ae((t,n)=>{n(e)})}static waitFor(e){return new Ae((t,n)=>{let r=0,s=0,i=!1;e.forEach(e=>{++r,e.next(()=>{++s,i&&s===r&&t()},e=>n(e))}),i=!0,s===r&&t()})}static or(e){let t=Ae.resolve(!1);for(const n of e)t=t.next(e=>e?Ae.resolve(e):n());return t}static forEach(e,t){const n=[];return e.forEach((e,r)=>{n.push(t.call(this,e,r))}),this.waitFor(n)}static mapArray(e,t){return new Ae((n,r)=>{const s=e.length,i=new Array(s);let o=0;for(let a=0;a<s;a++){const u=a;t(e[u]).next(e=>{i[u]=e,++o,o===s&&n(i)},e=>r(e))}})}static doWhile(e,t){return new Ae((n,r)=>{const s=()=>{!0===e()?t().next(()=>{s()},r):n()};s()})}}
3321/**
3322   * @license
3323   * Copyright 2017 Google LLC
3324   *
3325   * Licensed under the Apache License, Version 2.0 (the "License");
3326   * you may not use this file except in compliance with the License.
3327   * You may obtain a copy of the License at
3328   *
3329   *   http://www.apache.org/licenses/LICENSE-2.0
3330   *
3331   * Unless required by applicable law or agreed to in writing, software
3332   * distributed under the License is distributed on an "AS IS" BASIS,
3333   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3334   * See the License for the specific language governing permissions and
3335   * limitations under the License.
3336   */const ke="SimpleDb";class Oe{static open(e,t,n,r){try{return new Oe(t,e.transaction(r,n))}catch(e){throw new Fe(t,e)}}constructor(e,t){this.action=e,this.transaction=t,this.aborted=!1,this.S=new D,this.transaction.oncomplete=()=>{this.S.resolve()},this.transaction.onabort=()=>{t.error?this.S.reject(new Fe(e,t.error)):this.S.resolve()},this.transaction.onerror=t=>{const n=qe(t.target.error);this.S.reject(new Fe(e,n))}}get D(){return this.S.promise}abort(e){e&&this.S.reject(e),this.aborted||(w(ke,"Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}C(){const e=this.transaction;this.aborted||"function"!=typeof e.commit||e.commit()}store(e){const t=this.transaction.objectStore(e);return new Le(t)}}class Pe{static delete(e){return w(ke,"Removing database:",e),Ue((0,u.getGlobal)().indexedDB.deleteDatabase(e)).toPromise()}static v(){if(!(0,u.isIndexedDBAvailable)())return!1;if(Pe.F())return!0;const e=(0,u.getUA)(),t=Pe.M(e),n=0<t&&t<10,r=Re(e),s=0<r&&r<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||n||s)}static F(){return"undefined"!=typeof process&&"YES"===process.__PRIVATE_env?.__PRIVATE_USE_MOCK_PERSISTENCE}static O(e,t){return e.store(t)}static M(e){const t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)}constructor(e,t,n){this.name=e,this.version=t,this.N=n,this.B=null,12.2===Pe.M((0,u.getUA)())&&b("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}async L(e){return this.db||(w(ke,"Opening database:",this.name),this.db=await new Promise((t,n)=>{const r=indexedDB.open(this.name,this.version);r.onsuccess=e=>{const n=e.target.result;t(n)},r.onblocked=()=>{n(new Fe(e,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},r.onerror=t=>{const r=t.target.error;"VersionError"===r.name?n(new N(C.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):"InvalidStateError"===r.name?n(new N(C.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: "+r)):n(new Fe(e,r))},r.onupgradeneeded=e=>{w(ke,'Database "'+this.name+'" requires upgrade from version:',e.oldVersion);const t=e.target.result;this.N.k(t,r.transaction,e.oldVersion,this.version).next(()=>{w(ke,"Database upgrade to version "+this.version+" complete")}
3336)}})),this.q&&(this.db.onversionchange=e=>this.q(e)),this.db}K(e){this.q=e,this.db&&(this.db.onversionchange=t=>e(t))}async runTransaction(e,t,n,r){const s="readonly"===t;let i=0;for(;;){++i;try{this.db=await this.L(e);const t=Oe.open(this.db,e,s?"readonly":"readwrite",n),i=r(t).next(e=>(t.C(),e)).catch(e=>(t.abort(e),Ae.reject(e))).toPromise();return i.catch(()=>{}),await t.D,i}catch(e){const t=e,n="FirebaseError"!==t.name&&i<3;if(w(ke,"Transaction failed with error:",t.message,"Retrying:",n),this.close(),!n)return Promise.reject(t)}}}close(){this.db&&this.db.close(),this.db=void 0}}function Re(e){const t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)}class Ve{constructor(e){this.U=e,this.$=!1,this.W=null}get isDone(){return this.$}get G(){return this.W}set cursor(e){this.U=e}done(){this.$=!0}j(e){this.W=e}delete(){return Ue(this.U.delete())}}class Fe extends N{constructor(e,t){super(C.UNAVAILABLE,`IndexedDB transaction '${e}' failed: ${t}`),this.name="IndexedDbTransactionError"}}function Me(e){return"IndexedDbTransactionError"===e.name}class Le{constructor(e){this.store=e}put(e,t){let n;return void 0!==t?(w(ke,"PUT",this.store.name,e,t),n=this.store.put(t,e)):(w(ke,"PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),Ue(n)}
3336add(e){return w(ke,"ADD",this.store.name,e,e),Ue(this.store.add(e))}get(e){return Ue(this.store.get(e)).next(t=>(void 0===t&&(t=null),w(ke,"GET",this.store.name,e,t),t))}delete(e){return w(ke,"DELETE",this.store.name,e),Ue(this.store.delete(e))}count(){return w(ke,"COUNT",this.store.name),Ue(this.store.count())}J(e,t){const n=this.options(e,t),r=n.index?this.store.index(n.index):this.store;if("function"==typeof r.getAll){const e=r.getAll(n.range);return new Ae((t,n)=>{e.onerror=e=>{n(e.target.error)},e.onsuccess=e=>{t(e.target.result)}})}{const e=this.cursor(n),t=[];return this.H(e,(e,n)=>{t.push(n)}).next(()=>t)}}Z(e,t){const n=this.store.getAll(e,null===t?void 0:t);return new Ae((e,t)=>{n.onerror=e=>{t(e.target.error)},n.onsuccess=t=>{e(t.target.result)}})}X(e,t){w(ke,"DELETE ALL",this.store.name);const n=this.options(e,t);n.Y=!1;const r=this.cursor(n);return this.H(r,(e,t,n)=>n.delete())}ee(e,t){let n;t?n=e:(n={},t=e);const r=this.cursor(n);return this.H(r,t)}te(e){const t=this.cursor({});return new Ae((n,r)=>{t.onerror=e=>{const t=qe(e.target.error);r(t)},t.onsuccess=t=>{const r=t.target.result;r?e(r.primaryKey,r.value).next(e=>{e?r.continue():n()}):n()}})}H(e,t){const n=[];return new Ae((r,s)=>{e.onerror=e=>{s(e.target.error)},e.onsuccess=e=>{const s=e.target.result;if(!s)return void r();const i=new Ve(s),o=t(s.primaryKey,s.value,i);if(o instanceof Ae){const e=o.catch(e=>(i.done(),Ae.reject(e)));n.push(e)}i.isDone?r():null===i.G?s.continue():s.continue(i.G)}}).next(()=>Ae.waitFor(n))}options(e,t){let n;return void 0!==e&&("string"==typeof e?n=e:t=e),{index:n,range:t}}cursor(e){let t="next";if(e.reverse&&(t="prev"),e.index){const n=this.store.index(e.index);return e.Y?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)}}function Ue(e){return new Ae((t,n)=>{e.onsuccess=e=>{const n=e.target.result;t(n)},e.onerror=e=>{const t=qe(e.target.error);n(t)}})}let je=!1;function qe(e){const t=Pe.M((0,u.getUA)());if(t>=12.2&&t<13){const t="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(t)>=0){const e=new N("internal",`IOS_INDEXEDDB_BUG1: IndexedDb has thrown '${t}'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.`);return je||(je=!0,setTimeout(()=>{throw e},0)),e}}return e}const Be="IndexBackfiller";class ze{constructor(e,t){this.asyncQueue=e,this.ne=t,this.task=null}start(){this.re(15e3)}stop(){this.task&&(this.task.cancel(),this.task=null)}get started(){return null!==this.task}re(e){w(Be,`Scheduled in ${e}ms`),this.task=this.asyncQueue.enqueueAfterDelay("index_backfill",e,async()=>{this.task=null;try{const e=await this.ne.ie();w(Be,`Documents written: ${e}`)}catch(e){Me(e)?w(Be,"Ignoring IndexedDB error during index backfill: ",e):await De(e)}await this.re(6e4)})}}class Ke{constructor(e,t){this.localStore=e,this.persistence=t}async ie(e=50){return this.persistence.runTransaction("Backfill Indexes","readwrite-primary",t=>this.se(t,e))}se(e,t){const n=new Set;let r=t,s=!0;return Ae.doWhile(()=>!0===s&&r>0,()=>this.localStore.indexManager.getNextCollectionGroupToUpdate(e).next(t=>{if(null!==t&&!n.has(t))return w(Be,`Processing collection: ${t}`),this.oe(e,t,r).next(e=>{r-=e,n.add(t)});s=!1})).next(()=>t-r)}oe(e,t,n){return this.localStore.indexManager.getMinOffsetFromCollectionGroup(e,t).next(r=>this.localStore.localDocuments.getNextDocuments(e,t,r,n).next(n=>{const s=n.changes;return this.localStore.indexManager.updateIndexEntries(e,s).next(()=>this._e(r,n)).next(n=>(w(Be,`Updating offset: ${n}`),this.localStore.indexManager.updateCollectionGroup(e,t,n))).next(()=>s.size)}))}_e(e,t){let n=e;
vendor: 8,416 bytes, lines 3336-3460
3336return t.changes.forEach((e,t)=>{const r=Se(t);xe(r,n)>0&&(n=r)}),new _e(n.readTime,n.documentKey,Math.max(t.batchId,e.largestBatchId))}}
3337/**
3338   * @license
3339   * Copyright 2018 Google LLC
3340   *
3341   * Licensed under the Apache License, Version 2.0 (the "License");
3342   * you may not use this file except in compliance with the License.
3343   * You may obtain a copy of the License at
3344   *
3345   *   http://www.apache.org/licenses/LICENSE-2.0
3346   *
3347   * Unless required by applicable law or agreed to in writing, software
3348   * distributed under the License is distributed on an "AS IS" BASIS,
3349   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3350   * See the License for the specific language governing permissions and
3351   * limitations under the License.
3352   */class $e{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.ae(e),this.ue=e=>t.writeSequenceNumber(e))}ae(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.ue&&this.ue(e),e}}$e.ce=-1;
3353/**
3354   * @license
3355   * Copyright 2017 Google LLC
3356   *
3357   * Licensed under the Apache License, Version 2.0 (the "License");
3358   * you may not use this file except in compliance with the License.
3359   * You may obtain a copy of the License at
3360   *
3361   *   http://www.apache.org/licenses/LICENSE-2.0
3362   *
3363   * Unless required by applicable law or agreed to in writing, software
3364   * distributed under the License is distributed on an "AS IS" BASIS,
3365   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3366   * See the License for the specific language governing permissions and
3367   * limitations under the License.
3368   */
3369const Ge=-1;function Qe(e){return null==e}function He(e){return 0===e&&1/e==-1/0}function We(e){return"number"==typeof e}function Je(e){return"number"==typeof e&&Number.isInteger(e)&&!He(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}function Ye(e){return"string"==typeof e}
3370/**
3371   * @license
3372   * Copyright 2017 Google LLC
3373   *
3374   * Licensed under the Apache License, Version 2.0 (the "License");
3375   * you may not use this file except in compliance with the License.
3376   * You may obtain a copy of the License at
3377   *
3378   *   http://www.apache.org/licenses/LICENSE-2.0
3379   *
3380   * Unless required by applicable law or agreed to in writing, software
3381   * distributed under the License is distributed on an "AS IS" BASIS,
3382   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3383   * See the License for the specific language governing permissions and
3384   * limitations under the License.
3385   */const Xe="\x01";function Ze(e){let t="";for(let n=0;n<e.length;n++)t.length>0&&(t=tt(t)),t=et(e.get(n),t);return tt(t)}function et(e,t){let n=t;const r=e.length;for(let t=0;t<r;t++){const r=e.charAt(t);switch(r){case"\0":n+="\x01\x10";break;case Xe:n+="\x01\x11";break;default:n+=r}}return n}function tt(e){return e+Xe+"\x01"}function nt(e){const t=e.length;if(S(t>=2,64408,{path:e}),2===t)return S(e.charAt(0)===Xe&&"\x01"===e.charAt(1),56145,{path:e}),Y.emptyPath();const n=t-2,r=[];let s="";for(let i=0;i<t;){const t=e.indexOf(Xe,i);switch((t<0||t>n)&&T(50515,{path:e}),e.charAt(t+1)){case"\x01":const n=e.substring(i,t);let o;0===s.length?o=n:(s+=n,o=s,s=""),r.push(o);break;case"\x10":s+=e.substring(i,t),s+="\0";break;case"\x11":s+=e.substring(i,t+1);break;default:T(61167,{path:e})}i=t+2}return new Y(r)}
3386/**
3387   * @license
3388   * Copyright 2022 Google LLC
3389   *
3390   * Licensed under the Apache License, Version 2.0 (the "License");
3391   * you may not use this file except in compliance with the License.
3392   * You may obtain a copy of the License at
3393   *
3394   *   http://www.apache.org/licenses/LICENSE-2.0
3395   *
3396   * Unless required by applicable law or agreed to in writing, software
3397   * distributed under the License is distributed on an "AS IS" BASIS,
3398   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3399   * See the License for the specific language governing permissions and
3400   * limitations under the License.
3401   */const rt="remoteDocuments",st="owner",it="owner",ot="mutationQueues",at="mutations",ut="batchId",ct="userMutationsIndex",lt=["userId","batchId"];
3402/**
3403   * @license
3404   * Copyright 2022 Google LLC
3405   *
3406   * Licensed under the Apache License, Version 2.0 (the "License");
3407   * you may not use this file except in compliance with the License.
3408   * You may obtain a copy of the License at
3409   *
3410   *   http://www.apache.org/licenses/LICENSE-2.0
3411   *
3412   * Unless required by applicable law or agreed to in writing, software
3413   * distributed under the License is distributed on an "AS IS" BASIS,
3414   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3415   * See the License for the specific language governing permissions and
3416   * limitations under the License.
3417   */function ht(e,t){return[e,Ze(t)]}function dt(e,t,n){return[e,Ze(t),n]}const ft={},mt="documentMutations",gt="remoteDocumentsV14",pt=["prefixPath","collectionGroup","readTime","documentId"],yt="documentKeyIndex",wt=["prefixPath","collectionGroup","documentId"],bt="collectionGroupIndex",vt=["collectionGroup","readTime","prefixPath","documentId"],It="remoteDocumentGlobal",Tt="remoteDocumentGlobalKey",Et="targets",St="queryTargetsIndex",_t=["canonicalId","targetId"],xt="targetDocuments",Ct=["targetId","path"],Nt="documentTargetsIndex",Dt=["path","targetId"],At="targetGlobalKey",kt="targetGlobal",Ot="collectionParents",Pt=["collectionId","parent"],Rt="clientMetadata",Vt="bundles",Ft="namedQueries",Mt="indexConfiguration",Lt="collectionGroupIndex",Ut="indexState",jt=["indexId","uid"],qt="sequenceNumberIndex",Bt=["uid","sequenceNumber"],zt="indexEntries",Kt=["indexId","uid","arrayValue","directionalValue","orderedDocumentKey","documentKey"],$t="documentKeyIndex",Gt=["indexId","uid","orderedDocumentKey"],Qt="documentOverlays",Ht=["userId","collectionPath","documentId"],Wt="collectionPathOverlayIndex",Jt=["userId","collectionPath","largestBatchId"],Yt="collectionGroupOverlayIndex",Xt=["userId","collectionGroup","largestBatchId"],Zt="globals",en=[ot,at,mt,rt,Et,st,kt,xt,Rt,It,Ot,Vt,Ft],tn=[...en,Qt],nn=[ot,at,mt,gt,Et,st,kt,xt,Rt,It,Ot,Vt,Ft,Qt],rn=nn,sn=[...rn,Mt,Ut,zt],on=sn,an=[...sn,Zt],un=an;
3418/**
3419   * @license
3420   * Copyright 2020 Google LLC
3421   *
3422   * Licensed under the Apache License, Version 2.0 (the "License");
3423   * you may not use this file except in compliance with the License.
3424   * You may obtain a copy of the License at
3425   *
3426   *   http://www.apache.org/licenses/LICENSE-2.0
3427   *
3428   * Unless required by applicable law or agreed to in writing, software
3429   * distributed under the License is distributed on an "AS IS" BASIS,
3430   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3431   * See the License for the specific language governing permissions and
3432   * limitations under the License.
3433   */class cn extends Ne{constructor(e,t){super(),this.le=e,this.currentSequenceNumber=t}}function ln(e,t){const n=x(e);return Pe.O(n.le,t)}
3434/**
3435   * @license
3436   * Copyright 2017 Google LLC
3437   *
3438   * Licensed under the Apache License, Version 2.0 (the "License");
3439   * you may not use this file except in compliance with the License.
3440   * You may obtain a copy of the License at
3441   *
3442   *   http://www.apache.org/licenses/LICENSE-2.0
3443   *
3444   * Unless required by applicable law or agreed to in writing, software
3445   * distributed under the License is distributed on an "AS IS" BASIS,
3446   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3447   * See the License for the specific language governing permissions and
3448   * limitations under the License.
3449   */function hn(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function dn(e,t){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function fn(e,t){const n=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.push(t(e[r],r,e));return n}function mn(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}
3450/**
3451   * @license
3452   * Copyright 2017 Google LLC
3453   *
3454   * Licensed under the Apache License, Version 2.0 (the "License");
3455   * you may not use this file except in compliance with the License.
3456   * You may obtain a copy of the License at
3457   *
3458   *   http://www.apache.org/licenses/LICENSE-2.0
3459   *
3460   * Unless required by applicable law or agreed to in writing, softw
vendor: 5,003 bytes, lines 3460-3465
3460are
3461   * distributed under the License is distributed on an "AS IS" BASIS,
3462   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3463   * See the License for the specific language governing permissions and
3464   * limitations under the License.
3465   */class gn{constructor(e,t){this.comparator=e,this.root=t||yn.EMPTY}insert(e,t){return new gn(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,yn.BLACK,null,null))}remove(e){return new gn(this.comparator,this.root.remove(e,this.comparator).copy(null,null,yn.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}indexOf(e){let t=0,n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,n)=>(e(t,n),!1))}toString(){const e=[];return this.inorderTraversal((t,n)=>(e.push(`${t}:${n}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new pn(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new pn(this.root,e,this.comparator,!1)}getReverseIterator(){return new pn(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new pn(this.root,e,this.comparator,!0)}}class pn{constructor(e,t,n,r){this.isReverse=r,this.nodeStack=[];let s=1;for(;!e.isEmpty();)if(s=t?n(e.key,t):1,t&&r&&(s*=-1),s<0)e=this.isReverse?e.left:e.right;else{if(0===s){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class yn{constructor(e,t,n,r,s){this.key=e,this.value=t,this.color=null!=n?n:yn.RED,this.left=null!=r?r:yn.EMPTY,this.right=null!=s?s:yn.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,n,r,s){return new yn(null!=e?e:this.key,null!=t?t:this.value,null!=n?n:this.color,null!=r?r:this.left,null!=s?s:this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}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(e,t,n){let r=this;const s=n(e,r.key);return r=s<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===s?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp()}removeMin(){if(this.left.isEmpty())return yn.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let n,r=this;if(t(e,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(e,t),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===t(e,r.key)){if(r.right.isEmpty())return yn.EMPTY;n=r.right.min(),r=r.copy(n.key,n.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(e,t))}return r.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,yn.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,yn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw T(43730,{key:this.key,value:this.value});if(this.right.isRed())throw T(14113,{key:this.key,value:this.value});const e=this.left.check();if(e!==this.right.check())throw T(27949);return e+(this.isRed()?0:1)}}
3465yn.EMPTY=null,yn.RED=!0,yn.BLACK=!1,yn.EMPTY=new class{constructor(){this.size=0}get key(){throw T(57766)}get value(){throw T(16141)}get color(){throw T(16727)}get left(){throw T(29726)}get right(){throw T(36894)}copy(e,t,n,r,s){return this}insert(e,t,n){return new yn(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};
3466/**
3467   * @license
3468   * Copyright 2017 Google LLC
3469   *
3470   * Licensed under the Apache License, Version 2.0 (the "License");
3471   * you may not use this file except in compliance with the License.
3472   * You may obtain a copy of the License at
3473   *
3474   *   http://www.apache.org/licenses/LICENSE-2.0
3475   *
3476   * Unless required by applicable law or agreed to in writing, software
3477   * distributed under the License is distributed on an "AS IS" BASIS,
3478   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3479   * See the License for the specific language governing permissions and
3480   * limitations under the License.
3481   */
3482class wn{constructor(e){this.comparator=e,this.data=new gn(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,n)=>(e(t),!1))}forEachInRange(e,t){const n=this.data.getIteratorFrom(e[0]);for(;n.hasNext();){const r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}forEachWhile(e,t){let n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new bn(this.data.getIterator())}getIteratorFrom(e){return new bn(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach(e=>{t=t.add(e)}),t}isEqual(e){if(!(e instanceof wn))return!1;if(this.size!==e.size)return!1;const t=this.data.getIterator(),n=e.data.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(0!==this.comparator(e,r))return!1}return!0}toArray(){const e=[];return this.forEach(t=>{e.push(t)}),e}toString(){const e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){const t=new wn(this.comparator);return t.data=e,t}}class bn{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}function vn(e){return e.hasNext()?e.getNext():void 0}
3483/**
3484   * @license
3485   * Copyright 2020 Google LLC
3486   *
3487   * Licensed under the Apache License, Version 2.0 (the "License");
3488   * you may not use this file except in compliance with the License.
3489   * You may obtain a copy of the License at
3490   *
3491   *   http://www.apache.org/licenses/LICENSE-2.0
3492   *
3493   * Unless required by applicable law or agreed to in writing, software
3494   * distributed under the License is distributed on an "AS IS" BASIS,
3495   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3496   * See the License for the specific language governing permissions and
3497   * limitations under the License.
3498   */class In{constructor(e){this.fields=e,e.sort(Z.comparator)}static empty(){return new In([])}unionWith(e){let t=new wn(Z.comparator);for(const e of this.fields)t=t.add(e);for(const n of e)t=t.add(n);return new In(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return G(this.fields,e.fields,(e,t)=>e.isEqual(t))}}
3499/**
3500   * @license
3501   * Copyright 2023 Google LLC
3502   *
3503   * Licensed under the Apache License, Version 2.0 (the "License");
3504   * you may not use this file except in compliance with the License.
3505   * You may obtain a copy of the License at
3506   *
3507   *   http://www.apache.org/licenses/LICENSE-2.0
3508   *
3509   * Unless required by applicable law or agreed to in writing, softw
3509are
3510   * distributed under the License is distributed on an "AS IS" BASIS,
3511   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3512   * See the License for the specific language governing permissions and
3513   * limitations under the License.
3514   */class Tn extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}
3515/**
3516   * @license
3517   * Copyright 2020 Google LLC
3518   *
3519   * Licensed under the Apache License, Version 2.0 (the "License");
3520   * you may not use this file except in compliance with the License.
3521   * You may obtain a copy of the License at
3522   *
3523   *   http://www.apache.org/licenses/LICENSE-2.0
3524   *
3525   * Unless required by applicable law or agreed to in writing, software
3526   * distributed under the License is distributed on an "AS IS" BASIS,
3527   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3528   * See the License for the specific language governing permissions and
3529   * limitations under the License.
3530   */function En(){return"undefined"!=typeof atob}
3531/**
3532   * @license
3533   * Copyright 2020 Google LLC
3534   *
3535   * Licensed under the Apache License, Version 2.0 (the "License");
3536   * you may not use this file except in compliance with the License.
3537   * You may obtain a copy of the License at
3538   *
3539   *   http://www.apache.org/licenses/LICENSE-2.0
3540   *
3541   * Unless required by applicable law or agreed to in writing, software
3542   * distributed under the License is distributed on an "AS IS" BASIS,
3543   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3544   * See the License for the specific language governing permissions and
3545   * limitations under the License.
3546   */class Sn{constructor(e){this.binaryString=e}static fromBase64String(e){const t=(function(e){try{return atob(e)}catch(e){throw"undefined"!=typeof DOMException&&e instanceof DOMException?new Tn("Invalid base64 string: "+e):e}})(e);return new Sn(t)}static fromUint8Array(e){const t=(function(e){let t="";for(let n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t})(e);return new Sn(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return e=this.binaryString,btoa(e);var e}toUint8Array(){return(function(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}
3547/**
3548      * @license
3549      * Copyright 2020 Google LLC
3550      *
3551      * Licensed under the Apache License, Version 2.0 (the "License");
3552      * you may not use this file except in compliance with the License.
3553      * You may obtain a copy of the License at
3554      *
3555      *   http://www.apache.org/licenses/LICENSE-2.0
3556      *
3557      * Unless required by applicable law or agreed to in writing, software
3558      * distributed under the License is distributed on an "AS IS" BASIS,
3559      * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3560      * See the License for the specific language governing permissions and
3561      * limitations under the License.
3562      */)(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return q(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Sn.EMPTY_BYTE_STRING=new Sn("");const _n=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function xn(e){if(S(!!e,39018),"string"==typeof e){let t=0;const n=_n.exec(e);if(S(!!n,46558,{timestamp:e}),n[1]){let e=n[1];e=(e+"000000000").substr(0,9),t=Number(e)}const r=new Date(e);return{seconds:Math.floor(r.getTime()/1e3),nanos:t}}return{seconds:Cn(e.seconds),nanos:Cn(e.nanos)}}function Cn(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function Nn(e){return"string"==typeof e?Sn.fromBase64String(e):Sn.fromUint8Array(e)}
3563/**
3564   * @license
3565   * Copyright 2020 Google LLC
3566   *
3567   * Licensed under the Apache License, Version 2.0 (the "License");
3568   * you may not use this file except in compliance with the License.
3569   * You may obtain a copy of the License at
3570   *
3571   *   http://www.apache.org/licenses/LICENSE-2.0
3572   *
3573   * Unless required by applicable law or agreed to in writing, softw
3573are
3574   * distributed under the License is distributed on an "AS IS" BASIS,
3575   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3576   * See the License for the specific language governing permissions and
3577   * limitations under the License.
3578   */const Dn="server_timestamp",An="__type__",kn="__previous_value__",On="__local_write_time__";function Pn(e){const t=(e?.mapValue?.fields||{})[An]?.stringValue;return t===Dn}function Rn(e){const t=e.mapValue.fields[kn];return Pn(t)?Rn(t):t}function Vn(e){const t=xn(e.mapValue.fields[On].timestampValue);return new fe(t.seconds,t.nanos)}
3579/**
3580   * @license
3581   * Copyright 2017 Google LLC
3582   *
3583   * Licensed under the Apache License, Version 2.0 (the "License");
3584   * you may not use this file except in compliance with the License.
3585   * You may obtain a copy of the License at
3586   *
3587   *   http://www.apache.org/licenses/LICENSE-2.0
3588   *
3589   * Unless required by applicable law or agreed to in writing, software
3590   * distributed under the License is distributed on an "AS IS" BASIS,
3591   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3592   * See the License for the specific language governing permissions and
3593   * limitations under the License.
3594   */class Fn{constructor(e,t,n,r,s,i,o,a,u,c,l){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=s,this.forceLongPolling=i,this.autoDetectLongPolling=o,this.longPollingOptions=a,this.useFetchStreams=u,this.isUsingEmulator=c,this.apiKey=l}}const Mn="(default)";class Ln{constructor(e,t){this.projectId=e,this.database=t||Mn}static empty(){return new Ln("","")}get isDefaultDatabase(){return this.database===Mn}isEqual(e){return e instanceof Ln&&e.projectId===this.projectId&&e.database===this.database}}function Un(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new N(C.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Ln(e.options.projectId,t)}
3595/**
3596   * @license
3597   * Copyright 2020 Google LLC
3598   *
3599   * Licensed under the Apache License, Version 2.0 (the "License");
3600   * you may not use this file except in compliance with the License.
3601   * You may obtain a copy of the License at
3602   *
3603   *   http://www.apache.org/licenses/LICENSE-2.0
3604   *
3605   * Unless required by applicable law or agreed to in writing, software
3606   * distributed under the License is distributed on an "AS IS" BASIS,
3607   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3608   * See the License for the specific language governing permissions and
3609   * limitations under the License.
3610   */const jn="__type__",qn="__max__",Bn={mapValue:{fields:{__type__:{stringValue:qn}}}},zn="__vector__",Kn="value",$n={nullValue:"NULL_VALUE"};function Gn(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?Pn(e)?4:cr(e)?9007199254740991:ar(e)?10:11:T(28295,{value:e})}function Qn(e,t){if(e===t)return!0;const n=Gn(e);if(n!==Gn(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return Vn(e).isEqual(Vn(t));case 3:return(function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;const n=xn(e.timestampValue),r=xn(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos})(e,t);case 5:return e.stringValue===t.stringValue;case 6:return(function(e,t){return Nn(e.bytesValue).isEqual(Nn(t.bytesValue))})(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return(function(e,t){return Cn(e.geoPointValue.latitude)===Cn(t.geoPointValue.latitude)&&Cn(e.geoPointValue.longitude)===Cn(t.geoPointValue.longitude)})(e,t);case 2:return(function(e,t){if("integerValue"in e&&"integerValue"in t)return Cn(e.integerValue)===Cn(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){const n=Cn(e.doubleValue),r=Cn(t.doubleValue);return n===r?He(n)===He(r):isNaN(n)&&isNaN(r)}return!1})(e,t);case 9:return G(e.arrayValue.values||[],t.arrayValue.values||[],Qn);case 10:case 11:return(function(e,t){const n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(hn(n)!==hn(r))return!1;for(const e in n)if(n.hasOwnProperty(e)&&(void 0===r[e]||!Qn(n[e],r[e])))return!1;return!0})(e,t);default:return T(52216,{left:e})}}function Hn(e,t){return void 0!==(e.values||[]).find(e=>Qn(e,t))}function Wn(e,t){if(e===t)return 0;const n=Gn(e),r=Gn(t);if(n!==r)return q(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return q(e.booleanValue,t.booleanValue);case 2:return(function(e,t){const n=Cn(e.integerValue||e.doubleValue),r=Cn(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1})(e,t);case 3:return Jn(e.timestampValue,t.timestampValue);case 4:return Jn(Vn(e),Vn(t));case 5:return B(e.stringValue,t.stringValue);case 6:return(function(e,t){const n=Nn(e),r=Nn(t);return n.compareTo(r)})(e.bytesValue,t.bytesValue);case 7:return(function(e,t){const n=e.split("/"),r=t.split("/");for(let e=0;e<n.length&&e<r.length;e++){const t=q(n[e],r[e]);if(0!==t)return t}return q(n.length,r.length)})(e.referenceValue,t.referenceValue);case 8:return(function(e,t){const n=q(Cn(e.latitude),Cn(t.latitude));return 0!==n?n:q(Cn(e.longitude),Cn(t.longitude))})(e.geoPointValue,t.geoPointValue);case 9:return Yn(e.arrayValue,t.arrayValue);case 10:return(function(e,t){const n=e.fields||{},r=t.fields||{},s=n[Kn]?.arrayValue,i=r[Kn]?.arrayValue,o=q(s?.values?.length||0,i?.values?.length||0);return 0!==o?o:Yn(s,i)})(e.mapValue,t.mapValue);case 11:return(function(e,t){if(e===Bn.mapValue&&t===Bn.mapValue)return 0;if(e===Bn.mapValue)return 1;if(t===Bn.mapValue)return-1;const n=e.fields||{},r=Object.keys(n),s=t.fields||{},i=Object.keys(s);r.sort(),i.sort();for(let e=0;e<r.length&&e<i.length;++e){const t=B(r[e],i[e]);if(0!==t)return t;const o=Wn(n[r[e]],s[i[e]]);if(0!==o)return o}return q(r.length,i.length)})(e.mapValue,t.mapValue);default:throw T(23264,{he:n})}}function Jn(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return q(e,t);const n=xn(e),r=xn(t),s=q(n.seconds,r.seconds);return 0!==s?s:q(n.nanos,r.nanos)}function Yn(e,t){const n=e.values||[],r=t.values||[];for(let e=0;e<n.length&&e<r.length;++e){const t=Wn(n[e],r[e]);if(t)return t}return q(n.length,r.length)}function Xn(e){return Zn(e)}function Zn(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?(function(e){const t=xn(e);return`time(${t.seconds},${t.nanos})`})(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?(function(e){return Nn(e).toBase64()})(e.bytesValue):"referenceValue"in e?(function(e){return ee.fromName(e).toString()})(e.referenceValue):"geoPointValue"in e?(function(e){return`geo(${e.latitude},${e.longitude})`})(e.geoPointValue):"arrayValue"in e?(function(e){let t="[",n=!0;for(const r of e.values||[])n?n=!1:t+=",",t+=Zn(r);return t+"]"})(e.arrayValue):"mapValue"in e?(function(e){const t=Object.keys(e.fields||{}).sort();let n="{",r=!0;for(const s of t)r?r=!1:n+=",",n+=`${s}:${Zn(e.fields[s])}`;return n+"}"})(e.mapValue):T(61005,{value:e})}function er(e){switch(Gn(e)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const t=Rn(e);return t?16+er(t):16;case 5:return 2*e.stringValue.length;case 6:return Nn(e.bytesValue).approximateByteSize();case 7:return e.referenceValue.length;case 9:return(function(e){return(e.values||[]).reduce((e,t)=>
3610e+er(t),0)})(e.arrayValue);case 10:case 11:return(function(e){let t=0;return dn(e.fields,(e,n)=>{t+=e.length+er(n)}),t})(e.mapValue);default:throw T(13486,{value:e})}}function tr(e,t){return{referenceValue:`projects/${e.projectId}/databases/${e.database}/documents/${t.path.canonicalString()}`}}function nr(e){return!!e&&"integerValue"in e}function rr(e){return!!e&&"arrayValue"in e}function sr(e){return!!e&&"nullValue"in e}function ir(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function or(e){return!!e&&"mapValue"in e}function ar(e){const t=(e?.mapValue?.fields||{})[jn]?.stringValue;return t===zn}function ur(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){const t={mapValue:{fields:{}}};return dn(e.mapValue.fields,(e,n)=>t.mapValue.fields[e]=ur(n)),t}if(e.arrayValue){const t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=ur(e.arrayValue.values[n]);return t}return Object.assign({},e)}function cr(e){return(((e.mapValue||{}).fields||{}).__type__||{}).stringValue===qn}const lr={mapValue:{fields:{[jn]:{stringValue:zn},[Kn]:{arrayValue:{}}}}};function hr(e){return"nullValue"in e?$n:"booleanValue"in e?{booleanValue:!1}:"integerValue"in e||"doubleValue"in e?{doubleValue:NaN}:"timestampValue"in e?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"stringValue"in e?{stringValue:""}:"bytesValue"in e?{bytesValue:""}:"referenceValue"in e?tr(Ln.empty(),ee.empty()):"geoPointValue"in e?{geoPointValue:{latitude:-90,longitude:-180}}:"arrayValue"in e?{arrayValue:{}}:"mapValue"in e?ar(e)?lr:{mapValue:{}}:T(35942,{value:e})}function dr(e){return"nullValue"in e?{booleanValue:!1}:"booleanValue"in e?{doubleValue:NaN}:"integerValue"in e||"doubleValue"in e?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"timestampValue"in e?{stringValue:""}:"stringValue"in e?{bytesValue:""}:"bytesValue"in e?tr(Ln.empty(),ee.empty()):"referenceValue"in e?{geoPointValue:{latitude:-90,longitude:-180}}:"geoPointValue"in e?{arrayValue:{}}:"arrayValue"in e?lr:"mapValue"in e?ar(e)?{mapValue:{}}:Bn:T(61959,{value:e})}function fr(e,t){const n=Wn(e.value,t.value);return 0!==n?n:e.inclusive&&!t.inclusive?-1:!e.inclusive&&t.inclusive?1:0}function mr(e,t){const n=Wn(e.value,t.value);return 0!==n?n:e.inclusive&&!t.inclusive?1:!e.inclusive&&t.inclusive?-1:0}
3611/**
3612   * @license
3613   * Copyright 2017 Google LLC
3614   *
3615   * Licensed under the Apache License, Version 2.0 (the "License");
3616   * you may not use this file except in compliance with the License.
3617   * You may obtain a copy of the License at
3618   *
3619   *   http://www.apache.org/licenses/LICENSE-2.0
3620   *
3621   * Unless required by applicable law or agreed to in writing, software
3622   * distributed under the License is distributed on an "AS IS" BASIS,
3623   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3624   * See the License for the specific language governing permissions and
3625   * limitations under the License.
3626   */class gr{constructor(e){this.value=e}static empty(){return new gr({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let n=0;n<e.length-1;++n)if(t=(t.mapValue.fields||{})[e.get(n)],!or(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=ur(t)}setAll(e){let t=Z.emptyPath(),n={},r=[];e.forEach((e,s)=>{if(!t.isImmediateParentOf(s)){const e=this.getFieldsMap(t);this.applyChanges(e,n,r),n={},r=[],t=s.popLast()}e?n[s.lastSegment()]=ur(e):r.push(s.lastSegment())});const s=this.getFieldsMap(t);this.applyChanges(s,n,r)}delete(e){const t=this.field(e.popLast());or(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return Qn(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let n=0;n<e.length;++n){let r=t.mapValue.fields[e.get(n)];or(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}
vendor: 4,248 bytes, lines 3626-3663
3626applyChanges(e,t,n){dn(t,(t,n)=>e[t]=n);for(const t of n)delete e[t]}clone(){return new gr(ur(this.value))}}function pr(e){const t=[];return dn(e.fields,(e,n)=>{const r=new Z([e]);if(or(n)){const e=pr(n.mapValue).fields;if(0===e.length)t.push(r);else for(const n of e)t.push(r.child(n))}else t.push(r)}),new In(t)
3627/**
3628   * @license
3629   * Copyright 2017 Google LLC
3630   *
3631   * Licensed under the Apache License, Version 2.0 (the "License");
3632   * you may not use this file except in compliance with the License.
3633   * You may obtain a copy of the License at
3634   *
3635   *   http://www.apache.org/licenses/LICENSE-2.0
3636   *
3637   * Unless required by applicable law or agreed to in writing, software
3638   * distributed under the License is distributed on an "AS IS" BASIS,
3639   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3640   * See the License for the specific language governing permissions and
3641   * limitations under the License.
3642   */}class yr{constructor(e,t,n,r,s,i,o){this.key=e,this.documentType=t,this.version=n,this.readTime=r,this.createTime=s,this.data=i,this.documentState=o}static newInvalidDocument(e){return new yr(e,0,me.min(),me.min(),me.min(),gr.empty(),0)}static newFoundDocument(e,t,n,r){return new yr(e,1,t,me.min(),n,r,0)}static newNoDocument(e,t){return new yr(e,2,t,me.min(),me.min(),gr.empty(),0)}static newUnknownDocument(e,t){return new yr(e,3,t,me.min(),me.min(),gr.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(me.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=gr.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=gr.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=me.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof yr&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new yr(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}
3643/**
3644   * @license
3645   * Copyright 2022 Google LLC
3646   *
3647   * Licensed under the Apache License, Version 2.0 (the "License");
3648   * you may not use this file except in compliance with the License.
3649   * You may obtain a copy of the License at
3650   *
3651   *   http://www.apache.org/licenses/LICENSE-2.0
3652   *
3653   * Unless required by applicable law or agreed to in writing, software
3654   * distributed under the License is distributed on an "AS IS" BASIS,
3655   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3656   * See the License for the specific language governing permissions and
3657   * limitations under the License.
3658   */class wr{constructor(e,t){this.position=e,this.inclusive=t}}function br(e,t,n){let r=0;for(let s=0;s<e.position.length;s++){const i=t[s],o=e.position[s];if(r=i.field.isKeyField()?ee.comparator(ee.fromName(o.referenceValue),n.key):Wn(o,n.data.field(i.field)),"desc"===i.dir&&(r*=-1),0!==r)break}return r}function vr(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(let n=0;n<e.position.length;n++)if(!Qn(e.position[n],t.position[n]))return!1;return!0}
3659/**
3660   * @license
3661   * Copyright 2022 Google LLC
3662   *
3663   * Licensed under the Apache License, Version 2.0 (the "License");
3664   * you may not use this file except in compliance with the License.
3665   * You may obtain a copy of the License at
3666   *
3667   *   http://www.apache.org/licenses/LICENSE-2.0
3668   *
3669   * Unless required by applicable law or agreed to in writing, software
3670   * distributed under the License is distributed on an "AS IS" BASIS,
3671   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3672   * See the License for the specific language governing permissions and
3673   * limitations under the License.
3674   */class Ir{constructor(e,t="asc"){this.field=e,this.dir=t}}function Tr(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}
3675/**
3676   * @license
3677   * Copyright 2022 Google LLC
3678   *
3679   * Licensed under the Apache License, Version 2.0 (the "License");
3680   * you may not use this file except in compliance with the License.
3681   * You may obtain a copy of the License at
3682   *
3683   *   http://www.apache.org/licenses/LICENSE-2.0
3684   *
3685   * Unless required by applicable law or agreed to in writing, software
3686   * distributed under the License is distributed on an "AS IS" BASIS,
3687   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3688   * See the License for the specific language governing permissions and
3689   * limitations under the License.
3690   */class Er{}class Sr extends Er{constructor(e,t,n){super(),this.field=e,this.op=t,this.value=n}static create(e,t,n){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,n):new Rr(e,t,n):"array-contains"===t?new Lr(e,n):"in"===t?new Ur(e,n):"not-in"===t?new jr(e,n):"array-contains-any"===t?new qr(e,n):new Sr(e,t,n)}static createKeyFieldInFilter(e,t,n){return"in"===t?new Vr(e,n):new Fr(e,n)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&void 0===t.nullValue&&this.matchesComparison(Wn(t,this.value)):null!==t&&Gn(this.value)===Gn(t)&&this.matchesComparison(Wn(t,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return T(47266,{operator:this.op})}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class _r extends Er{constructor(e,t){super(),this.filters=e,this.op=t,this.Pe=null}static create(e,t){return new _r(e,t)}matches(e){return xr(this)?void 0===this.filters.find(t=>!t.matches(e)):void 0!==this.filters.find(t=>t.matches(e))}getFlattenedFilters(){return null!==this.Pe||(this.Pe=this.filters.reduce((e,t)=>e.concat(t.getFlattenedFilters()),[])),this.Pe}getFilters(){return Object.assign([],this.filters)}}function xr(e){return"and"===e.op}function Cr(e){return"or"===e.op}function Nr(e){return Dr(e)&&xr(e)}function Dr(e){for(const t of e.filters)if(t instanceof _r)return!1;return!0}function Ar(e){if(e instanceof Sr)return e.field.canonicalString()+e.op.toString()+Xn(e.value);if(Nr(e))return e.filters.map(e=>Ar(e)).join(",");{const t=e.filters.map(e=>Ar(e)).join(",");return`${e.op}(${t})`}}function kr(e,t){return e instanceof Sr?(function(e,t){return t instanceof Sr&&e.op===t.op&&e.field.isEqual(t.field)&&Qn(e.value,t.value)})(e,t):e instanceof _r?(function(e,t){return t instanceof _r&&e.op===t.op&&e.filters.length===t.filters.length&&e.filters.reduce((e,n,r)=>e&&kr(n,t.filters[r]),!0)})(e,t):void T(19439)}function Or(e,t){const n=e.filters.concat(t);return _r.create(n,e.op)}function Pr(e){return e instanceof Sr?(function(e){return`${e.field.canonicalString()} ${e.op} ${Xn(e.value)}`})(e):e instanceof _r?(function(e){return e.op.toString()+" {"+e.getFilters().map(Pr).join(" ,")+"}"})(e):"Filter"}class Rr extends Sr{constructor(e,t,n){super(e,t,n),this.key=ee.fromName(n.referenceValue)}matches(e){const t=ee.comparator(e.key,this.key);return this.matchesComparison(t)}}class Vr extends Sr{constructor(e,t){super(e,"in",t),this.keys=Mr("in",t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class Fr extends Sr{constructor(e,t){super(e,"not-in",t),this.keys=Mr("not-in",t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function Mr(e,t){return(t.arrayValue?.values||[]).map(e=>ee.fromName(e.referenceValue))}class Lr extends Sr{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return rr(t)&&Hn(t.arrayValue,this.value)}}class Ur extends Sr{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&Hn(this.value.arrayValue,t)}}class jr extends Sr{constructor(e,t){super(e,"not-in",t)}matches(e){if(Hn(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&void 0===t.nullValue&&!Hn(this.value.arrayValue,t)}}class qr extends Sr{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!rr(t)||!t.arrayValue.values)&&t.arrayValue.values.some(e=>Hn(this.value.arrayValue,e))}}
3691/**
3692   * @license
3693   * Copyright 2019 Google LLC
3694   *
3695   * Licensed under the Apache License, Version 2.0 (the "License");
3696   * you may not use this file except in compliance with the License.
3697   * You may obtain a copy of the License at
3698   *
3699   *   http://www.apache.org/licenses/LICENSE-2.0
3700   *
3701   * Unless required by applicable law or agreed to in writing, software
3702   * distributed under the License is distributed on an "AS IS" BASIS,
3703   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3704   * See the License for the specific language governing permissions and
3705   * limitations under the License.
3706   */class Br{constructor(e,t=null,n=[],r=[],s=null,i=null,o=null){this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=s,this.startAt=i,this.endAt=o,this.Te=null}}function zr(e,t=null,n=[],r=[],s=null,i=null,o=null){return new Br(e,t,n,r,s,i,o)}function Kr(e){const t=x(e);if(null===t.Te){let e=t.path.canonicalString();null!==t.collectionGroup&&(e+="|cg:"+t.collectionGroup),e+="|f:",e+=t.filters.map(e=>Ar(e)).join(","),e+="|ob:",e+=t.orderBy.map(e=>(function(e){return e.field.canonicalString()+e.dir})(e)).join(","),Qe(t.limit)||(e+="|l:",e+=t.limit),t.startAt&&(e+="|lb:",e+=t.startAt.inclusive?"b:":"a:",e+=t.startAt.position.map(e=>Xn(e)).join(",")),t.endAt&&(e+="|ub:",e+=t.endAt.inclusive?"a:":"b:",e+=t.endAt.position.map(e=>Xn(e)).join(",")),t.Te=e}return t.Te}function $r(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(let n=0;n<e.orderBy.length;n++)if(!Tr(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(let n=0;n<e.filters.length;n++)if(!kr(e.filters[n],t.filters[n]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!vr(e.startAt,t.startAt)&&vr(e.endAt,t.endAt)}function Gr(e){return ee.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}function Qr(e,t){return e.filters.filter(e=>e instanceof Sr&&e.field.isEqual(t))}function Hr(e,t,n){let r=$n,s=!0;for(const n of Qr(e,t)){let e=$n,t=!0;switch(n.op){case"<":case"<=":e=hr(n.value);break;case"==":case"in":case">=":e=n.value;break;case">":e=n.value,t=!1;break;case"!=":case"not-in":e=$n}fr({value:r,inclusive:s},{value:e,inclusive:t})<0&&(r=e,s=t)}if(null!==n)for(let i=0;i<e.orderBy.length;++i)if(e.orderBy[i].field.isEqual(t)){const e=n.position[i];fr({value:r,inclusive:s},{value:e,inclusive:n.inclusive})<0&&(r=e,s=n.inclusive);break}return{value:r,inclusive:s}}function Wr(e,t,n){let r=Bn,s=!0;for(const n of Qr(e,t)){let e=Bn,t=!0;switch(n.op){case">=":case">":e=dr(n.value),t=!1;break;case"==":case"in":case"<=":e=n.value;break;case"<":e=n.value,t=!1;break;case"!=":case"not-in":e=Bn}mr({value:r,inclusive:s},{value:e,inclusive:t})>0&&(r=e,s=t)}if(null!==n)for(let i=0;i<e.orderBy.length;++i)if(e.orderBy[i].field.isEqual(t)){const e=n.position[i];mr({value:r,inclusive:s},{value:e,inclusive:n.inclusive})>0&&(r=e,s=n.inclusive);break}return{value:r,inclusive:s}}
3707/**
3708   * @license
3709   * Copyright 2017 Google LLC
3710   *
3711   * Licensed under the Apache License, Version 2.0 (the "License");
3712   * you may not use this file except in compliance with the License.
3713   * You may obtain a copy of the License at
3714   *
3715   *   http://www.apache.org/licenses/LICENSE-2.0
3716   *
3717   * Unless required by applicable law or agreed to in writing, software
3718   * distributed under the License is distributed on an "AS IS" BASIS,
3719   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3720   * See the License for the specific language governing permissions and
3721   * limitations under the License.
3722   */class Jr{constructor(e,t=null,n=[],r=[],s=null,i="F",o=null,a=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=s,this.limitType=i,this.startAt=o,this.endAt=a,this.Ee=null,this.Ie=null,this.Re=null,this.startAt,this.endAt}}function Yr(e,t,n,r,s,i,o,a){return new Jr(e,t,n,r,s,i,o,a)}function Xr(e){return new Jr(e)}function Zr(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}function es(e){return ee.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}function ts(e){return null!==e.collectionGroup}function ns(e){const t=x(e);if(null===t.Ee){t.Ee=[];const e=new Set;for(const n of t.explicitOrderBy)t.Ee.push(n),e.add(n.field.canonicalString());const n=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc",r=(function(e){let t=new wn(Z.comparator);
3722return e.filters.forEach(e=>{e.getFlattenedFilters().forEach(e=>{e.isInequality()&&(t=t.add(e.field))})}),t})(t);r.forEach(r=>{e.has(r.canonicalString())||r.isKeyField()||t.Ee.push(new Ir(r,n))}),e.has(Z.keyField().canonicalString())||t.Ee.push(new Ir(Z.keyField(),n))}return t.Ee}function rs(e){const t=x(e);return t.Ie||(t.Ie=is(t,ns(e))),t.Ie}function ss(e){const t=x(e);return t.Re||(t.Re=is(t,e.explicitOrderBy)),t.Re}function is(e,t){if("F"===e.limitType)return zr(e.path,e.collectionGroup,t,e.filters,e.limit,e.startAt,e.endAt);{t=t.map(e=>{const t="desc"===e.dir?"asc":"desc";return new Ir(e.field,t)});const n=e.endAt?new wr(e.endAt.position,e.endAt.inclusive):null,r=e.startAt?new wr(e.startAt.position,e.startAt.inclusive):null;return zr(e.path,e.collectionGroup,t,e.filters,e.limit,n,r)}}function os(e,t){const n=e.filters.concat([t]);return new Jr(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}function as(e,t){const n=e.explicitOrderBy.concat([t]);return new Jr(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}function us(e,t,n){return new Jr(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function cs(e,t){return new Jr(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,t,e.endAt)}function ls(e,t){return new Jr(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,t)}function hs(e,t){return $r(rs(e),rs(t))&&e.limitType===t.limitType}function ds(e){return`${Kr(rs(e))}|lt:${e.limitType}`}function fs(e){return`Query(target=${(function(e){let t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=`, filters: [${e.filters.map(e=>Pr(e)).join(", ")}]`),Qe(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=`, orderBy: [${e.orderBy.map(e=>(function(e){return`${e.field.canonicalString()} (${e.dir})`})(e)).join(", ")}]`),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(e=>Xn(e)).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(e=>Xn(e)).join(",")),`Target(${t})`})(rs(e))}; limitType=${e.limitType})`}function ms(e,t){return t.isFoundDocument()&&(function(e,t){const n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):ee.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)})(e,t)&&(function(e,t){for(const n of ns(e))if(!n.field.isKeyField()&&null===t.data.field(n.field))return!1;return!0})(e,t)&&(function(e,t){for(const n of e.filters)if(!n.matches(t))return!1;return!0})(e,t)&&(function(e,t){return!(e.startAt&&!(function(e,t,n){const r=br(e,t,n);return e.inclusive?r<=0:r<0})(e.startAt,ns(e),t))&&!(e.endAt&&!(function(e,t,n){const r=br(e,t,n);return e.inclusive?r>=0:r>0})(e.endAt,ns(e),t))})(e,t)}function gs(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}function ps(e){return(t,n)=>{let r=!1;for(const s of ns(e)){const e=ys(s,t,n);if(0!==e)return e;r=r||s.field.isKeyField()}return 0}}function ys(e,t,n){const r=e.field.isKeyField()?ee.comparator(t.key,n.key):(function(e,t,n){const r=t.data.field(e),s=n.data.field(e);return null!==r&&null!==s?Wn(r,s):T(42886)})(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return T(19790,{direction:e.dir})}}
3723/**
3724   * @license
3725   * Copyright 2017 Google LLC
3726   *
3727   * Licensed under the Apache License, Version 2.0 (the "License");
3728   * you may not use this file except in compliance with the License.
3729   * You may obtain a copy of the License at
3730   *
3731   *   http://www.apache.org/licenses/LICENSE-2.0
3732   *
3733   * Unless required by applicable law or agreed to in writing, software
3734   * distributed under the License is distributed on an "AS IS" BASIS,
3735   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3736   * See the License for the specific language governing permissions and
3737   * limitations under the License.
3738   */class ws{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(const[t,r]of n)if(this.equalsFn(t,e))return r}has(e){return void 0!==this.get(e)}set(e,t){const n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return this.inner[n]=[[e,t]],void this.innerSize++;for(let n=0;n<r.length;n++)if(this.equalsFn(r[n][0],e))return void(r[n]=[e,t]);
3738r.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(let r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),this.innerSize--,!0;return!1}forEach(e){dn(this.inner,(t,n)=>{for(const[t,r]of n)e(t,r)})}isEmpty(){return mn(this.inner)}size(){return this.innerSize}}
3739/**
3740   * @license
3741   * Copyright 2017 Google LLC
3742   *
3743   * Licensed under the Apache License, Version 2.0 (the "License");
3744   * you may not use this file except in compliance with the License.
3745   * You may obtain a copy of the License at
3746   *
3747   *   http://www.apache.org/licenses/LICENSE-2.0
3748   *
3749   * Unless required by applicable law or agreed to in writing, software
3750   * distributed under the License is distributed on an "AS IS" BASIS,
3751   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3752   * See the License for the specific language governing permissions and
3753   * limitations under the License.
3754   */const bs=new gn(ee.comparator);function vs(){return bs}const Is=new gn(ee.comparator);function Ts(...e){let t=Is;for(const n of e)t=t.insert(n.key,n);return t}function Es(e){let t=Is;return e.forEach((e,n)=>t=t.insert(e,n.overlayedDocument)),t}function Ss(){return xs()}function _s(){return xs()}function xs(){return new ws(e=>e.toString(),(e,t)=>e.isEqual(t))}const Cs=new gn(ee.comparator),Ns=new wn(ee.comparator);function Ds(...e){let t=Ns;for(const n of e)t=t.add(n);return t}const As=new wn(q);function ks(){return As}
3755/**
3756   * @license
3757   * Copyright 2020 Google LLC
3758   *
3759   * Licensed under the Apache License, Version 2.0 (the "License");
3760   * you may not use this file except in compliance with the License.
3761   * You may obtain a copy of the License at
3762   *
3763   *   http://www.apache.org/licenses/LICENSE-2.0
3764   *
3765   * Unless required by applicable law or agreed to in writing, software
3766   * distributed under the License is distributed on an "AS IS" BASIS,
3767   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3768   * See the License for the specific language governing permissions and
3769   * limitations under the License.
3770   */function Os(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:He(t)?"-0":t}}function Ps(e){return{integerValue:""+e}}function Rs(e,t){return Je(t)?Ps(t):Os(e,t)}
3771/**
3772   * @license
3773   * Copyright 2018 Google LLC
3774   *
3775   * Licensed under the Apache License, Version 2.0 (the "License");
3776   * you may not use this file except in compliance with the License.
3777   * You may obtain a copy of the License at
3778   *
3779   *   http://www.apache.org/licenses/LICENSE-2.0
3780   *
3781   * Unless required by applicable law or agreed to in writing, software
3782   * distributed under the License is distributed on an "AS IS" BASIS,
3783   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3784   * See the License for the specific language governing permissions and
3785   * limitations under the License.
3786   */class Vs{constructor(){this._=void 0}}function Fs(e,t,n){return e instanceof Us?(function(e,t){const n={fields:{[An]:{stringValue:Dn},[On]:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&Pn(t)&&(t=Rn(t)),t&&(n.fields[kn]=t),{mapValue:n}})(n,t):e instanceof js?qs(e,t):e instanceof Bs?zs(e,t):(function(e,t){const n=Ls(e,t),r=$s(n)+$s(e.Ae);return nr(n)&&nr(e.Ae)?Ps(r):Os(e.serializer,r)})(e,t)}function Ms(e,t,n){return e instanceof js?qs(e,t):e instanceof Bs?zs(e,t):n}function Ls(e,t){return e instanceof Ks?(function(e){return nr(e)||(function(e){return!!e&&"doubleValue"in e})(e)})(t)?t:{integerValue:0}:null}class Us extends Vs{}class js extends Vs{constructor(e){super(),this.elements=e}}function qs(e,t){const n=Gs(t);for(const t of e.elements)n.some(e=>Qn(e,t))||n.push(t);return{arrayValue:{values:n}}}class Bs extends Vs{constructor(e){super(),this.elements=e}}function zs(e,t){let n=Gs(t);for(const t of e.elements)n=n.filter(e=>!Qn(e,t));return{arrayValue:{values:n}}}
3786class Ks extends Vs{constructor(e,t){super(),this.serializer=e,this.Ae=t}}function $s(e){return Cn(e.integerValue||e.doubleValue)}function Gs(e){return rr(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}
3787/**
3788   * @license
3789   * Copyright 2017 Google LLC
3790   *
3791   * Licensed under the Apache License, Version 2.0 (the "License");
3792   * you may not use this file except in compliance with the License.
3793   * You may obtain a copy of the License at
3794   *
3795   *   http://www.apache.org/licenses/LICENSE-2.0
3796   *
3797   * Unless required by applicable law or agreed to in writing, software
3798   * distributed under the License is distributed on an "AS IS" BASIS,
3799   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3800   * See the License for the specific language governing permissions and
3801   * limitations under the License.
3802   */class Qs{constructor(e,t){this.field=e,this.transform=t}}function Hs(e,t){return e.field.isEqual(t.field)&&(function(e,t){return e instanceof js&&t instanceof js||e instanceof Bs&&t instanceof Bs?G(e.elements,t.elements,Qn):e instanceof Ks&&t instanceof Ks?Qn(e.Ae,t.Ae):e instanceof Us&&t instanceof Us})(e.transform,t.transform)}class Ws{constructor(e,t){this.version=e,this.transformResults=t}}class Js{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new Js}static exists(e){return new Js(void 0,e)}static updateTime(e){return new Js(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function Ys(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}class Xs{}function Zs(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new ci(e.key,Js.none()):new si(e.key,e.data,Js.none());{const n=e.data,r=gr.empty();let s=new wn(Z.comparator);for(let e of t.fields)if(!s.has(e)){let t=n.field(e);null===t&&e.length>1&&(e=e.popLast(),t=n.field(e)),null===t?r.delete(e):r.set(e,t),s=s.add(e)}return new ii(e.key,r,new In(s.toArray()),Js.none())}}function ei(e,t,n){e instanceof si?(function(e,t,n){const r=e.value.clone(),s=ai(e.fieldTransforms,t,n.transformResults);r.setAll(s),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()})(e,t,n):e instanceof ii?(function(e,t,n){if(!Ys(e.precondition,t))return void t.convertToUnknownDocument(n.version);const r=ai(e.fieldTransforms,t,n.transformResults),s=t.data;s.setAll(oi(e)),s.setAll(r),t.convertToFoundDocument(n.version,s).setHasCommittedMutations()})(e,t,n):(function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()})(0,t,n)}function ti(e,t,n,r){return e instanceof si?(function(e,t,n,r){if(!Ys(e.precondition,t))return n;const s=e.value.clone(),i=ui(e.fieldTransforms,r,t);return s.setAll(i),t.convertToFoundDocument(t.version,s).setHasLocalMutations(),null})(e,t,n,r):e instanceof ii?(function(e,t,n,r){if(!Ys(e.precondition,t))return n;const s=ui(e.fieldTransforms,r,t),i=t.data;return i.setAll(oi(e)),i.setAll(s),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null===n?null:n.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map(e=>e.field))})(e,t,n,r):(function(e,t,n){return Ys(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n})(e,t,n)}function ni(e,t){let n=null;for(const r of e.fieldTransforms){const e=t.data.field(r.field),s=Ls(r.transform,e||null);null!=s&&(null===n&&(n=gr.empty()),n.set(r.field,s))}return n||null}function ri(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&!!(function(e,t){return void 0===e&&void 0===t||!(!e||!t)&&G(e,t,(e,t)=>Hs(e,t))})(e.fieldTransforms,t.fieldTransforms)&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}class si extends Xs{constructor(e,t,n,r=[]){super(),this.key=e,this.value=t,this.precondition=n,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class ii extends Xs{constructor(e,t,n,r,s=[]){super(),this.key=e,this.data=t,this.fieldMask=n,this.prec
3802ondition=r,this.fieldTransforms=s,this.type=1}getFieldMask(){return this.fieldMask}}function oi(e){const t=new Map;return e.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const r=e.data.field(n);t.set(n,r)}}),t}function ai(e,t,n){const r=new Map;S(e.length===n.length,32656,{Ve:n.length,de:e.length});for(let s=0;s<n.length;s++){const i=e[s],o=i.transform,a=t.data.field(i.field);r.set(i.field,Ms(o,a,n[s]))}return r}function ui(e,t,n){const r=new Map;for(const s of e){const e=s.transform,i=n.data.field(s.field);r.set(s.field,Fs(e,i,t))}return r}class ci extends Xs{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class li extends Xs{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}
3803/**
3804   * @license
3805   * Copyright 2017 Google LLC
3806   *
3807   * Licensed under the Apache License, Version 2.0 (the "License");
3808   * you may not use this file except in compliance with the License.
3809   * You may obtain a copy of the License at
3810   *
3811   *   http://www.apache.org/licenses/LICENSE-2.0
3812   *
3813   * Unless required by applicable law or agreed to in writing, software
3814   * distributed under the License is distributed on an "AS IS" BASIS,
3815   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3816   * See the License for the specific language governing permissions and
3817   * limitations under the License.
3818   */class hi{constructor(e,t,n,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=r}applyToRemoteDocument(e,t){const n=t.mutationResults;for(let t=0;t<this.mutations.length;t++){const r=this.mutations[t];r.key.isEqual(e.key)&&ei(r,e,n[t])}}applyToLocalView(e,t){for(const n of this.baseMutations)n.key.isEqual(e.key)&&(t=ti(n,e,t,this.localWriteTime));for(const n of this.mutations)n.key.isEqual(e.key)&&(t=ti(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const n=_s();return this.mutations.forEach(r=>{const s=e.get(r.key),i=s.overlayedDocument;let o=this.applyToLocalView(i,s.mutatedFields);o=t.has(r.key)?null:o;const a=Zs(i,o);null!==a&&n.set(r.key,a),i.isValidDocument()||i.convertToNoDocument(me.min())}),n}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),Ds())}isEqual(e){return this.batchId===e.batchId&&G(this.mutations,e.mutations,(e,t)=>ri(e,t))&&G(this.baseMutations,e.baseMutations,(e,t)=>ri(e,t))}}class di{constructor(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}static from(e,t,n){S(e.mutations.length===n.length,58842,{me:e.mutations.length,fe:n.length});let r=Cs;const s=e.mutations;for(let e=0;e<s.length;e++)r=r.insert(s[e].key,n[e].version);return new di(e,t,n,r)}}
3819/**
3820   * @license
3821   * Copyright 2022 Google LLC
3822   *
3823   * Licensed under the Apache License, Version 2.0 (the "License");
3824   * you may not use this file except in compliance with the License.
3825   * You may obtain a copy of the License at
3826   *
3827   *   http://www.apache.org/licenses/LICENSE-2.0
3828   *
3829   * Unless required by applicable law or agreed to in writing, software
3830   * distributed under the License is distributed on an "AS IS" BASIS,
3831   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3832   * See the License for the specific language governing permissions and
3833   * limitations under the License.
3834   */class fi{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return`Overlay{\n      largestBatchId: ${this.largestBatchId},\n      mutation: ${this.mutation.toString()}\n    }`}}
3835/**
3836   * @license
3837   * Copyright 2023 Google LLC
3838   *
3839   * Licensed under the Apache License, Version 2.0 (the "License");
3840   * you may not use this file except in compliance with the License.
3841   * You may obtain a copy of the License at
3842   *
3843   *   http://www.apache.org/licenses/LICENSE-2.0
3844   *
3845   * Unless required by applicable law or agreed to in writing, software
3846   * distributed under the License is distributed on an "AS IS" BASIS,
3847   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3848   * See the License for the specific language governing permissions and
3849   * limitations under the License.
3850   */class mi{constructor(e,t,n){this.alias=e,this.aggregateType=t,this.fieldPath=n}}
3851/**
3852   * @license
3853   * Copyright 2017 Google LLC
3854   *
3855   * Licensed under the Apache License, Version 2.0 (the "License");
3856   * you may not use this file except in compliance with the License.
3857   * You may obtain a copy of the License at
3858   *
3859   *   http://www.apache.org/licenses/LICENSE-2.0
3860   *
3861   * Unless required by applicable law or agreed to in writing, software
3862   * distributed under the License is distributed on an "AS IS" BASIS,
3863   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3864   * See the License for the specific language governing permissions and
3865   * limitations under the License.
3866   */class gi{constructor(e,t){this.count=e,this.unchangedNames=t}}
3867/**
3868   * @license
3869   * Copyright 2017 Google LLC
3870   *
3871   * Licensed under the Apache License, Version 2.0 (the "License");
3872   * you may not use this file except in compliance with the License.
3873   * You may obtain a copy of the License at
3874   *
3875   *   http://www.apache.org/licenses/LICENSE-2.0
3876   *
3877   * Unless required by applicable law or agreed to in writing, software
3878   * distributed under the License is distributed on an "AS IS" BASIS,
3879   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3880   * See the License for the specific language governing permissions and
3881   * limitations under the License.
3882   */var pi,yi;function wi(e){switch(e){case C.OK:return T(64938);case C.CANCELLED:case C.UNKNOWN:case C.DEADLINE_EXCEEDED:case C.RESOURCE_EXHAUSTED:case C.INTERNAL:case C.UNAVAILABLE:case C.UNAUTHENTICATED:return!1;case C.INVALID_ARGUMENT:case C.NOT_FOUND:case C.ALREADY_EXISTS:case C.PERMISSION_DENIED:case C.FAILED_PRECONDITION:case C.ABORTED:case C.OUT_OF_RANGE:case C.UNIMPLEMENTED:case C.DATA_LOSS:return!0;default:return T(15467,{code:e})}}function bi(e){if(void 0===e)return b("GRPC error has no .code"),C.UNKNOWN;switch(e){case pi.OK:return C.OK;case pi.CANCELLED:return C.CANCELLED;case pi.UNKNOWN:return C.UNKNOWN;case pi.DEADLINE_EXCEEDED:return C.DEADLINE_EXCEEDED;case pi.RESOURCE_EXHAUSTED:return C.RESOURCE_EXHAUSTED;case pi.INTERNAL:return C.INTERNAL;case pi.UNAVAILABLE:return C.UNAVAILABLE;case pi.UNAUTHENTICATED:return C.UNAUTHENTICATED;case pi.INVALID_ARGUMENT:return C.INVALID_ARGUMENT;case pi.NOT_FOUND:return C.NOT_FOUND;case pi.ALREADY_EXISTS:return C.ALREADY_EXISTS;case pi.PERMISSION_DENIED:return C.PERMISSION_DENIED;case pi.FAILED_PRECONDITION:return C.FAILED_PRECONDITION;case pi.ABORTED:return C.ABORTED;case pi.OUT_OF_RANGE:return C.OUT_OF_RANGE;case pi.UNIMPLEMENTED:return C.UNIMPLEMENTED;case pi.DATA_LOSS:return C.DATA_LOSS;default:return T(39323,{code:e})}}(yi=pi||(pi={}))[yi.OK=0]="OK",yi[yi.CANCELLED=1]="CANCELLED",yi[yi.UNKNOWN=2]="UNKNOWN",yi[yi.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",yi[yi.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",yi[yi.NOT_FOUND=5]="NOT_FOUND",yi[yi.ALREADY_EXISTS=6]="ALREADY_EXISTS",yi[yi.PERMISSION_DENIED=7]="PERMISSION_DENIED",yi[yi.UNAUTHENTICATED=16]="UNAUTHENTICATED",yi[yi.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",yi[yi.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",yi[yi.ABORTED=10]="ABORTED",yi[yi.OUT_OF_RANGE=11]="OUT_OF_RANGE",yi[yi.UNIMPLEMENTED=12]="UNIMPLEMENTED",yi[yi.INTERNAL=13]="INTERNAL",yi[yi.UNAVAILABLE=14]="UNAVAILABLE",yi[yi.DATA_LOSS=15]="DATA_LOSS";
3883/**
3884   * @license
3885   * Copyright 2023 Google LLC
3886   *
3887   * Licensed under the Apache License, Version 2.0 (the "License");
3888   * you may not use this file except in compliance with the License.
3889   * You may obtain a copy of the License at
3890   *
3891   *   http://www.apache.org/licenses/LICENSE-2.0
3892   *
3893   * Unless required by applicable law or agreed to in writing, software
3894   * distributed under the License is distributed on an "AS IS" BASIS,
3895   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3896   * See the License for the specific language governing permissions and
3897   * limitations under the License.
3898   */
3899let vi=null;function Ii(e){if(vi)throw new Error("a TestingHooksSpi instance is already set");vi=e}
3900/**
3901   * @license
3902   * Copyright 2023 Google LLC
3903   *
3904   * Licensed under the Apache License, Version 2.0 (the "License");
3905   * you may not use this file except in compliance with the License.
3906   * You may obtain a copy of the License at
3907   *
3908   *   http://www.apache.org/licenses/LICENSE-2.0
3909   *
3910   * Unless required by applicable law or agreed to in writing, softw
3910are
3911   * distributed under the License is distributed on an "AS IS" BASIS,
3912   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3913   * See the License for the specific language governing permissions and
3914   * limitations under the License.
3915   */function Ti(){return new TextEncoder}
3916/**
3917   * @license
3918   * Copyright 2022 Google LLC
3919   *
3920   * Licensed under the Apache License, Version 2.0 (the "License");
3921   * you may not use this file except in compliance with the License.
3922   * You may obtain a copy of the License at
3923   *
3924   *   http://www.apache.org/licenses/LICENSE-2.0
3925   *
3926   * Unless required by applicable law or agreed to in writing, software
3927   * distributed under the License is distributed on an "AS IS" BASIS,
3928   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3929   * See the License for the specific language governing permissions and
3930   * limitations under the License.
3931   */const Ei=new c.Integer([4294967295,4294967295],0);function Si(e){const t=Ti().encode(e),n=new c.Md5;return n.update(t),new Uint8Array(n.digest())}function _i(e){const t=new DataView(e.buffer),n=t.getUint32(0,!0),r=t.getUint32(4,!0),s=t.getUint32(8,!0),i=t.getUint32(12,!0);return[new c.Integer([n,r],0),new c.Integer([s,i],0)]}class xi{constructor(e,t,n){if(this.bitmap=e,this.padding=t,this.hashCount=n,t<0||t>=8)throw new Ci(`Invalid padding: ${t}`);if(n<0)throw new Ci(`Invalid hash count: ${n}`);if(e.length>0&&0===this.hashCount)throw new Ci(`Invalid hash count: ${n}`);if(0===e.length&&0!==t)throw new Ci(`Invalid padding when bitmap length is 0: ${t}`);this.ge=8*e.length-t,this.pe=c.Integer.fromNumber(this.ge)}ye(e,t,n){let r=e.add(t.multiply(c.Integer.fromNumber(n)));return 1===r.compare(Ei)&&(r=new c.Integer([r.getBits(0),r.getBits(1)],0)),r.modulo(this.pe).toNumber()}we(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.ge)return!1;const t=Si(e),[n,r]=_i(t);for(let e=0;e<this.hashCount;e++){const t=this.ye(n,r,e);if(!this.we(t))return!1}return!0}static create(e,t,n){const r=e%8==0?0:8-e%8,s=new Uint8Array(Math.ceil(e/8)),i=new xi(s,r,t);return n.forEach(e=>i.insert(e)),i}insert(e){if(0===this.ge)return;const t=Si(e),[n,r]=_i(t);for(let e=0;e<this.hashCount;e++){const t=this.ye(n,r,e);this.Se(t)}}Se(e){const t=Math.floor(e/8),n=e%8;this.bitmap[t]|=1<<n}}class Ci extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}
3932/**
3933   * @license
3934   * Copyright 2017 Google LLC
3935   *
3936   * Licensed under the Apache License, Version 2.0 (the "License");
3937   * you may not use this file except in compliance with the License.
3938   * You may obtain a copy of the License at
3939   *
3940   *   http://www.apache.org/licenses/LICENSE-2.0
3941   *
3942   * Unless required by applicable law or agreed to in writing, software
3943   * distributed under the License is distributed on an "AS IS" BASIS,
3944   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3945   * See the License for the specific language governing permissions and
3946   * limitations under the License.
3947   */class Ni{constructor(e,t,n,r,s){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=s}static createSynthesizedRemoteEventForCurrentChange(e,t,n){const r=new Map;return r.set(e,Di.createSynthesizedTargetChangeForCurrentChange(e,t,n)),new Ni(me.min(),r,new gn(q),vs(),Ds())}}class Di{constructor(e,t,n,r,s){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=s}static createSynthesizedTargetChangeForCurrentChange(e,t,n){return new Di(n,t,Ds(),Ds(),Ds())}}
3948/**
3949   * @license
3950   * Copyright 2017 Google LLC
3951   *
3952   * Licensed under the Apache License, Version 2.0 (the "License");
3953   * you may not use this file except in compliance with the License.
3954   * You may obtain a copy of the License at
3955   *
3956   *   http://www.apache.org/licenses/LICENSE-2.0
3957   *
3958   * Unless required by applicable law or agreed to in writing, software
3959   * distributed under the License is distributed on an "AS IS" BASIS,
3960   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3961   * See the License for the specific language governing permissions and
3962   * limitations under the License.
3963   */class Ai{constructor(e,t,n,r){this.be=e,this.removedTargetIds=t,this.key=n,this.De=r}}class ki{constructor(e,t){this.targetId=e,this.Ce=t}}class Oi{constructor(e,t,n=Sn.EMPTY_BYTE_STRING,r=null){this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r}}class Pi{constructor(){this.ve=0,this.Fe=Fi(),this.Me=Sn.EMPTY_BYTE_STRING,this.xe=!1,this.Oe=!0}get current(){return this.xe}get resumeToken(){return this.Me}get Ne(){return 0!==this.ve}get Be(){return this.Oe}Le(e){e.approximateByteSize()>0&&(this.Oe=!0,this.Me=e)}ke(){let e=Ds(),t=Ds(),n=Ds();return this.Fe.forEach((r,s)=>{switch(s){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:T(38017,{changeType:s})}}),new Di(this.Me,this.xe,e,t,n)}qe(){this.Oe=!1,this.Fe=Fi()}Ke(e,t){this.Oe=!0,this.Fe=this.Fe.insert(e,t)}Ue(e){this.Oe=!0,this.Fe=this.Fe.remove(e)}$e(){this.ve+=1}We(){this.ve-=1,S(this.ve>=0,3241,{ve:this.ve})}Qe(){this.Oe=!0,this.xe=!0}}class Ri{constructor(e){this.Ge=e,this.ze=new Map,this.je=vs(),this.Je=Vi(),this.He=Vi(),this.Ze=new gn(q)}Xe(e){for(const t of e.be)e.De&&e.De.isFoundDocument()?this.Ye(t,e.De):this.et(t,e.key,e.De);for(const t of e.removedTargetIds)this.et(t,e.key,e.De)}tt(e){this.forEachTarget(e,t=>{const n=this.nt(t);switch(e.state){case 0:this.rt(t)&&n.Le(e.resumeToken);break;case 1:n.We(),n.Ne||n.qe(),n.Le(e.resumeToken);break;case 2:n.We(),n.Ne||this.removeTarget(t);break;case 3:this.rt(t)&&(n.Qe(),n.Le(e.resumeToken));break;case 4:this.rt(t)&&(this.it(t),n.Le(e.resumeToken));break;default:T(56790,{state:e.state})}})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.ze.forEach((e,n)=>{this.rt(n)&&t(n)})}st(e){const t=e.targetId,n=e.Ce.count,r=this.ot(t);if(r){const s=r.target;if(Gr(s))if(0===n){const e=new ee(s.path);this.et(t,e,yr.newNoDocument(e,me.min()))}else S(1===n,20013,{expectedCount:n});else{const r=this._t(t);if(r!==n){const n=this.ut(e),s=n?this.ct(n,e,r):1;if(0!==s){this.it(t);const e=2===s?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ze=this.Ze.insert(t,e)}
3963vi?.o((function(e,t,n,r,s){const i={localCacheCount:e,existenceFilterCount:t.count,databaseId:n.database,projectId:n.projectId},o=t.unchangedNames;return o&&(i.bloomFilter={applied:0===s,hashCount:o?.hashCount??0,bitmapLength:o?.bits?.bitmap?.length??0,padding:o?.bits?.padding??0,mightContain:e=>r?.mightContain(e)??!1}),i}
3964/**
3965            * @license
3966            * Copyright 2017 Google LLC
3967            *
3968            * Licensed under the Apache License, Version 2.0 (the "License");
3969            * you may not use this file except in compliance with the License.
3970            * You may obtain a copy of the License at
3971            *
3972            *   http://www.apache.org/licenses/LICENSE-2.0
3973            *
3974            * Unless required by applicable law or agreed to in writing, software
3975            * distributed under the License is distributed on an "AS IS" BASIS,
3976            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3977            * See the License for the specific language governing permissions and
3978            * limitations under the License.
3979            */)(r,e.Ce,this.Ge.ht(),n,s))}}}}ut(e){const t=e.Ce.unchangedNames;if(!t||!t.bits)return null;const{bits:{bitmap:n="",padding:r=0},hashCount:s=0}=t;let i,o;try{i=Nn(n).toUint8Array()}catch(e){if(e instanceof Tn)return v("Decoding the base64 bloom filter in existence filter failed ("+e.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw e}try{o=new xi(i,r,s)}catch(e){return v(e instanceof Ci?"BloomFilter error: ":"Applying bloom filter failed: ",e),null}return 0===o.ge?null:o}ct(e,t,n){return t.Ce.count===n-this.Pt(e,t.targetId)?0:2}Pt(e,t){const n=this.Ge.getRemoteKeysForTarget(t);let r=0;return n.forEach(n=>{const s=this.Ge.ht(),i=`projects/${s.projectId}/databases/${s.database}/documents/${n.path.canonicalString()}`;e.mightContain(i)||(this.et(t,n,null),r++)}),r}Tt(e){const t=new Map;this.ze.forEach((n,r)=>{const s=this.ot(r);if(s){if(n.current&&Gr(s.target)){const t=new ee(s.target.path);this.Et(t).has(r)||this.It(r,t)||this.et(r,t,yr.newNoDocument(t,e))}n.Be&&(t.set(r,n.ke()),n.qe())}});let n=Ds();this.He.forEach((e,t)=>{let r=!0;t.forEachWhile(e=>{const t=this.ot(e);return!t||"TargetPurposeLimboResolution"===t.purpose||(r=!1,!1)}),r&&(n=n.add(e))}),this.je.forEach((t,n)=>n.setReadTime(e));const r=new Ni(e,t,this.Ze,this.je,n);return this.je=vs(),this.Je=Vi(),this.He=Vi(),this.Ze=new gn(q),r}Ye(e,t){if(!this.rt(e))return;const n=this.It(e,t.key)?2:0;this.nt(e).Ke(t.key,n),this.je=this.je.insert(t.key,t),this.Je=this.Je.insert(t.key,this.Et(t.key).add(e)),this.He=this.He.insert(t.key,this.Rt(t.key).add(e))}et(e,t,n){if(!this.rt(e))return;const r=this.nt(e);this.It(e,t)?r.Ke(t,1):r.Ue(t),this.He=this.He.insert(t,this.Rt(t).delete(e)),this.He=this.He.insert(t,this.Rt(t).add(e)),n&&(this.je=this.je.insert(t,n))}removeTarget(e){this.ze.delete(e)}_t(e){const t=this.nt(e).ke();return this.Ge.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}$e(e){this.nt(e).$e()}nt(e){let t=this.ze.get(e);return t||(t=new Pi,this.ze.set(e,t)),t}Rt(e){let t=this.He.get(e);return t||(t=new wn(q),this.He=this.He.insert(e,t)),t}Et(e){let t=this.Je.get(e);return t||(t=new wn(q),this.Je=this.Je.insert(e,t)),t}rt(e){const t=null!==this.ot(e);return t||w("WatchChangeAggregator","Detected inactive target",e),t}ot(e){const t=this.ze.get(e);return t&&t.Ne?null:this.Ge.At(e)}it(e){this.ze.set(e,new Pi),this.Ge.getRemoteKeysForTarget(e).forEach(t=>{this.et(e,t,null)})}It(e,t){return this.Ge.getRemoteKeysForTarget(e).has(t)}}function Vi(){return new gn(ee.comparator)}function Fi(){return new gn(ee.comparator)}const Mi={asc:"ASCENDING",desc:"DESCENDING"},Li={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Ui={and:"AND",or:"OR"};class ji{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function qi(e,t){return e.useProto3Json||Qe(t)?t:{value:t}}function Bi(e,t){return e.useProto3Json?`${new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+t.nanoseconds).slice(-9)}Z`:{seconds:""+t.seconds,nanos:t.nanoseconds}}function zi(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function Ki(e,t){return Bi(e,t.toTimestamp())}function $i(e){return S(!!e,49232),me.fromTimestamp((function(e){const t=xn(e);return new fe(t.seconds,t.nanos)})(e))}function Gi(e,t){return Qi(e,t).canonicalString()}function Qi(e,t){const n=(function(e){return new Y(["projects",e.projectId,"databases",e.database])})(e).child("documents");return void 0===t?n:n.child(t)}function Hi(e){const t=Y.fromString(e);return S(Eo(t),10190,{key:t.toString()}),t}function Wi(e,t){return Gi(e.databaseId,t.path)}function Ji(e,t){const n=Hi(t);if(n.get(1)!==e.databaseId.projectId)throw new N(C.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new N(C.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new ee(eo(n))}function Yi(e,t){return Gi(e.databaseId,t)}function Xi(e){const t=Hi(e);return 4===t.length?Y.emptyPath():eo(t)}function Zi(e){return new Y(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function eo(e){return S(e.length>4&&"documents"===e.get(4),29091,{key:e.toString()}),e.popFirst(5)}function to(e,t,n){return{name:Wi(e,t),fields:n.value.mapValue.fields}}function no(e,t,n){const r={};t.transaction?.length&&(r.transaction=t.transaction);const s=t.executionTime?$i(t.executionTime):void 0;return r.executionTime=s,n&&(r.key=n.name?Ji(e,n.name):void 0,r.fields=new gr({mapValue:{fields:n.fields}}),r.createTime=n.createTime?$i(n.createTime):void 0,r.updateTime=n.updateTime?$i(n.updateTime):void 0),r}function ro(e,t,n){const r=Ji(e,t.name),s=$i(t.updateTime),i=t.createTime?$i(t.createTime):me.min(),o=new gr({mapValue:{fields:t.fields}}),a=yr.newFoundDocument(r,s,i,o);return n&&a.setHasCommittedMutations(),n?a.setHasCommittedMutations():a}function so(e,t){return"found"in t?(function(e,t){S(!!t.found,43571),t.found.name,t.found.updateTime;const n=Ji(e,t.found.name),r=$i(t.found.updateTime),s=t.found.createTime?$i(t.found.createTime):me.min(),i=new gr({mapValue:{fields:t.found.fields}});return yr.newFoundDocument(n,r,s,i)})(e,t):"missing"in t?(function(e,t){S(!!t.missing,3894),S(!!t.readTime,22933);const n=Ji(e,t.missing),r=$i(t.readTime);return yr.newNoDocument(n,r)})(e,t):T(7234,{result:t})}function io(e,t){let n;if("targetChange"in t){t.targetChange;const r=(function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:T(39313,{state:e})})(t.targetChange.targetChangeType||"NO_CHANGE"),s=t.targetChange.targetIds||[],i=(function(e,t){return e.useProto3Json?(S(void 0===t||"string"==typeof t,58123),Sn.fromBase64String(t||"")):(S(void 0===t||t instanceof Buffer||t instanceof Uint8Array,16193),Sn.fromUint8Array(t||new Uint8Array))})(e,t.targetChange.resumeToken),o=t.targetChange.cause,a=o&&(function(e){const t=void 0===e.code?C.UNKNOWN:bi(e.code);return new N(t,e.message||"")})(o);n=new Oi(r,s,i,a||null)}else if("documentChange"in t){t.documentChange;const r=t.documentChange;r.document,r.document.name,r.document.updateTime;const s=Ji(e,r.document.name),i=$i(r.document.updateTime),o=r.document.createTime?$i(r.document.createTime):me.min(),a=new gr({mapValue:{fields:r.document.fields}}),u=yr.newFoundDocument(s,i,o,a),c=r.targetIds||[],l=r.removedTargetIds||[];n=new Ai(c,l,u.key,u)}else if("documentDelete"in t){t.documentDelete;const r=t.documentDelete;r.document;const s=Ji(e,r.document),i=r.readTime?$i(r.readTime):me.min(),o=yr.
3979newNoDocument(s,i),a=r.removedTargetIds||[];n=new Ai([],a,o.key,o)}else if("documentRemove"in t){t.documentRemove;const r=t.documentRemove;r.document;const s=Ji(e,r.document),i=r.removedTargetIds||[];n=new Ai([],i,s,null)}else{if(!("filter"in t))return T(11601,{Vt:t});{t.filter;const e=t.filter;e.targetId;const{count:r=0,unchangedNames:s}=e,i=new gi(r,s),o=e.targetId;n=new ki(o,i)}}return n}function oo(e,t){let n;if(t instanceof si)n={update:to(e,t.key,t.value)};else if(t instanceof ci)n={delete:Wi(e,t.key)};else if(t instanceof ii)n={update:to(e,t.key,t.data),updateMask:To(t.fieldMask)};else{if(!(t instanceof li))return T(16599,{dt:t.type});n={verify:Wi(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map(e=>(function(e,t){const n=t.transform;if(n instanceof Us)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof js)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof Bs)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof Ks)return{fieldPath:t.field.canonicalString(),increment:n.Ae};throw T(20930,{transform:t.transform})})(0,e))),t.precondition.isNone||(n.currentDocument=(function(e,t){return void 0!==t.updateTime?{updateTime:Ki(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:T(27497)})(e,t.precondition)),n}function ao(e,t){const n=t.currentDocument?(function(e){return void 0!==e.updateTime?Js.updateTime($i(e.updateTime)):void 0!==e.exists?Js.exists(e.exists):Js.none()})(t.currentDocument):Js.none(),r=t.updateTransforms?t.updateTransforms.map(t=>(function(e,t){let n=null;if("setToServerValue"in t)S("REQUEST_TIME"===t.setToServerValue,16630,{proto:t}),n=new Us;else if("appendMissingElements"in t){const e=t.appendMissingElements.values||[];n=new js(e)}else if("removeAllFromArray"in t){const e=t.removeAllFromArray.values||[];n=new Bs(e)}else"increment"in t?n=new Ks(e,t.increment):T(16584,{proto:t});const r=Z.fromServerFormat(t.fieldPath);return new Qs(r,n)})(e,t)):[];if(t.update){t.update.name;const s=Ji(e,t.update.name),i=new gr({mapValue:{fields:t.update.fields}});if(t.updateMask){const e=(function(e){const t=e.fieldPaths||[];return new In(t.map(e=>Z.fromServerFormat(e)))})(t.updateMask);return new ii(s,i,e,n,r)}return new si(s,i,n,r)}if(t.delete){const r=Ji(e,t.delete);return new ci(r,n)}if(t.verify){const r=Ji(e,t.verify);return new li(r,n)}return T(1463,{proto:t})}function uo(e,t){return e&&e.length>0?(S(void 0!==t,14353),e.map(e=>(function(e,t){let n=e.updateTime?$i(e.updateTime):$i(t);return n.isEqual(me.min())&&(n=$i(t)),new Ws(n,e.transformResults||[])})(e,t))):[]}function co(e,t){return{documents:[Yi(e,t.path)]}}function lo(e,t){const n={structuredQuery:{}},r=t.path;let s;null!==t.collectionGroup?(s=r,n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(s=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=Yi(e,s);const i=(function(e){if(0!==e.length)return Io(_r.create(e,"and"))})(t.filters);i&&(n.structuredQuery.where=i);const o=(function(e){if(0!==e.length)return e.map(e=>(function(e){return{field:bo(e.field),direction:po(e.dir)}})(e))})(t.orderBy);o&&(n.structuredQuery.orderBy=o);const a=qi(e,t.limit);return null!==a&&(n.structuredQuery.limit=a),t.startAt&&(n.structuredQuery.startAt=(function(e){return{before:e.inclusive,values:e.position}})(t.startAt)),t.endAt&&(n.structuredQuery.endAt=(function(e){return{before:!e.inclusive,values:e.position}})(t.endAt)),{ft:n,parent:s}}function ho(e,t,n,r){const{ft:s,parent:i}=lo(e,t),o={},a=[];let u=0;return n.forEach(e=>{const t=r?e.alias:"aggregate_"+u++;o[t]=e.alias,"count"===e.aggregateType?a.push({alias:t,count:{}}):"avg"===e.aggregateType?a.push({alias:t,avg:{field:bo(e.fieldPath)}}):"sum"===e.aggregateType&&a.push({alias:t,sum:{field:bo(e.fieldPath)}})}),{request:{structuredAggregationQuery:{aggregations:a,structuredQuery:s.structuredQuery},parent:s.parent},gt:o,parent:i}}function fo(e){let t=Xi(e.parent);const n=e.structuredQuery,r=n.from?n.from.length:0;let s=null;if(r>0){S(1===r,65062);const e=n.from[0];e.allDescendants?s=e.collectionId:t=t.child(e.collectionId)}let i=[];n.where&&(i=(function(e){const t=go(e);return t instanceof _r&&Nr(t)?t.getFilters():[t]})(n.where));let o=[];n.orderBy&&(o=(function(e){return e.map(e=>(function(e){return new Ir(vo(e.field),(function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}})(e.direction))})(e))})(n.orderBy));let a=null;n.limit&&(a=(function(e){let t;return t="object"==typeof e?e.value:e,Qe(t)?null:t})(n.limit));let u=null;n.startAt&&(u=(function(e){const t=!!e.before,n=e.values||[];return new wr(n,t)})(n.startAt));let c=null;return n.endAt&&(c=(function(e){const t=!e.before,n=e.values||[];return new wr(n,t)})(n.endAt)),Yr(t,s,o,i,a,"F",u,c)}function mo(e,t){const n=(function(e){switch(e){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return T(28987,{purpose:e})}})(t.purpose);return null==n?null:{"goog-listen-tags":n}}function go(e){return void 0!==e.unaryFilter?(function(e){switch(e.unaryFilter.op){case"IS_NAN":const t=vo(e.unaryFilter.field);return Sr.create(t,"==",{doubleValue:NaN});case"IS_NULL":const n=vo(e.unaryFilter.field);return Sr.create(n,"==",{nullValue:"NULL_VALUE"});
3979case"IS_NOT_NAN":const r=vo(e.unaryFilter.field);return Sr.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const s=vo(e.unaryFilter.field);return Sr.create(s,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":return T(61313);default:return T(60726)}})(e):void 0!==e.fieldFilter?(function(e){return Sr.create(vo(e.fieldFilter.field),(function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":return T(58110);default:return T(50506)}})(e.fieldFilter.op),e.fieldFilter.value)})(e):void 0!==e.compositeFilter?(function(e){return _r.create(e.compositeFilter.filters.map(e=>go(e)),(function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return T(1026)}})(e.compositeFilter.op))})(e):T(30097,{filter:e})}function po(e){return Mi[e]}function yo(e){return Li[e]}function wo(e){return Ui[e]}function bo(e){return{fieldPath:e.canonicalString()}}function vo(e){return Z.fromServerFormat(e.fieldPath)}function Io(e){return e instanceof Sr?(function(e){if("=="===e.op){if(ir(e.value))return{unaryFilter:{field:bo(e.field),op:"IS_NAN"}};if(sr(e.value))return{unaryFilter:{field:bo(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(ir(e.value))return{unaryFilter:{field:bo(e.field),op:"IS_NOT_NAN"}};if(sr(e.value))return{unaryFilter:{field:bo(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:bo(e.field),op:yo(e.op),value:e.value}}})(e):e instanceof _r?(function(e){const t=e.getFilters().map(e=>Io(e));return 1===t.length?t[0]:{compositeFilter:{op:wo(e.op),filters:t}}})(e):T(54877,{filter:e})}function To(e){const t=[];return e.fields.forEach(e=>t.push(e.canonicalString())),{fieldPaths:t}}function Eo(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}function So(e){return!!e&&"function"==typeof e._toProto&&"ProtoValue"===e._protoValueType}function _o(e,t){const n={fields:{}};return t.forEach((t,r)=>{if("string"!=typeof r)throw new Error(`Cannot encode map with non-string key: ${r}`);n.fields[r]=t._toProto(e)}),{mapValue:n}}function xo(e){return{stringValue:e}}function Co(e){return{pipelineValue:e}}
3980/**
3981   * @license
3982   * Copyright 2017 Google LLC
3983   *
3984   * Licensed under the Apache License, Version 2.0 (the "License");
3985   * you may not use this file except in compliance with the License.
3986   * You may obtain a copy of the License at
3987   *
3988   *   http://www.apache.org/licenses/LICENSE-2.0
3989   *
3990   * Unless required by applicable law or agreed to in writing, software
3991   * distributed under the License is distributed on an "AS IS" BASIS,
3992   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3993   * See the License for the specific language governing permissions and
3994   * limitations under the License.
3995   */class No{constructor(e,t,n,r,s=me.min(),i=me.min(),o=Sn.EMPTY_BYTE_STRING,a=null){this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=s,this.lastLimboFreeSnapshotVersion=i,this.resumeToken=o,this.expectedCount=a}withSequenceNumber(e){return new No(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new No(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new No(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new No(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}
3996/**
3997   * @license
3998   * Copyright 2017 Google LLC
3999   *
4000   * Licensed under the Apache License, Version 2.0 (the "License");
4001   * you may not use this file except in compliance with the License.
4002   * You may obtain a copy of the License at
4003   *
4004   *   http://www.apache.org/licenses/LICENSE-2.0
4005   *
4006   * Unless required by applicable law or agreed to in writing, softw
4006are
4007   * distributed under the License is distributed on an "AS IS" BASIS,
4008   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4009   * See the License for the specific language governing permissions and
4010   * limitations under the License.
4011   */class Do{constructor(e){this.yt=e}}function Ao(e,t){let n;if(t.document)n=ro(e.yt,t.document,!!t.hasCommittedMutations);else if(t.noDocument){const e=ee.fromSegments(t.noDocument.path),r=Ro(t.noDocument.readTime);n=yr.newNoDocument(e,r),t.hasCommittedMutations&&n.setHasCommittedMutations()}else{if(!t.unknownDocument)return T(56709);{const e=ee.fromSegments(t.unknownDocument.path),r=Ro(t.unknownDocument.version);n=yr.newUnknownDocument(e,r)}}return t.readTime&&n.setReadTime((function(e){const t=new fe(e[0],e[1]);return me.fromTimestamp(t)})(t.readTime)),n}function ko(e,t){const n=t.key,r={prefixPath:n.getCollectionPath().popLast().toArray(),collectionGroup:n.collectionGroup,documentId:n.path.lastSegment(),readTime:Oo(t.readTime),hasCommittedMutations:t.hasCommittedMutations};if(t.isFoundDocument())r.document=(function(e,t){return{name:Wi(e,t.key),fields:t.data.value.mapValue.fields,updateTime:Bi(e,t.version.toTimestamp()),createTime:Bi(e,t.createTime.toTimestamp())}})(e.yt,t);else if(t.isNoDocument())r.noDocument={path:n.path.toArray(),readTime:Po(t.version)};else{if(!t.isUnknownDocument())return T(57904,{document:t});r.unknownDocument={path:n.path.toArray(),version:Po(t.version)}}return r}function Oo(e){const t=e.toTimestamp();return[t.seconds,t.nanoseconds]}function Po(e){const t=e.toTimestamp();return{seconds:t.seconds,nanoseconds:t.nanoseconds}}function Ro(e){const t=new fe(e.seconds,e.nanoseconds);return me.fromTimestamp(t)}function Vo(e,t){const n=(t.baseMutations||[]).map(t=>ao(e.yt,t));for(let e=0;e<t.mutations.length-1;++e){const n=t.mutations[e];if(e+1<t.mutations.length&&void 0!==t.mutations[e+1].transform){const r=t.mutations[e+1];n.updateTransforms=r.transform.fieldTransforms,t.mutations.splice(e+1,1),++e}}const r=t.mutations.map(t=>ao(e.yt,t)),s=fe.fromMillis(t.localWriteTimeMs);return new hi(t.batchId,s,n,r)}function Fo(e){const t=Ro(e.readTime),n=void 0!==e.lastLimboFreeSnapshotVersion?Ro(e.lastLimboFreeSnapshotVersion):me.min();let r;return r=(function(e){return void 0!==e.documents})(e.query)?(function(e){const t=e.documents.length;return S(1===t,1966,{count:t}),rs(Xr(Xi(e.documents[0])))})(e.query):(function(e){return rs(fo(e))})(e.query),new No(r,e.targetId,"TargetPurposeListen",e.lastListenSequenceNumber,t,n,Sn.fromBase64String(e.resumeToken))}function Mo(e,t){const n=Po(t.snapshotVersion),r=Po(t.lastLimboFreeSnapshotVersion);let s;s=Gr(t.target)?co(e.yt,t.target):lo(e.yt,t.target).ft;const i=t.resumeToken.toBase64();return{targetId:t.targetId,canonicalId:Kr(t.target),readTime:n,resumeToken:i,lastListenSequenceNumber:t.sequenceNumber,lastLimboFreeSnapshotVersion:r,query:s}}function Lo(e){const t=fo({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?us(t,t.limit,"L"):t}function Uo(e,t){return new fi(t.largestBatchId,ao(e.yt,t.overlayMutation))}function jo(e,t){const n=t.path.lastSegment();return[e,Ze(t.path.popLast()),n]}function qo(e,t,n,r){return{indexId:e,uid:t,sequenceNumber:n,readTime:Po(r.readTime),documentKey:Ze(r.documentKey.path),largestBatchId:r.largestBatchId}}
4012/**
4013   * @license
4014   * Copyright 2020 Google LLC
4015   *
4016   * Licensed under the Apache License, Version 2.0 (the "License");
4017   * you may not use this file except in compliance with the License.
4018   * You may obtain a copy of the License at
4019   *
4020   *   http://www.apache.org/licenses/LICENSE-2.0
4021   *
4022   * Unless required by applicable law or agreed to in writing, software
4023   * distributed under the License is distributed on an "AS IS" BASIS,
4024   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4025   * See the License for the specific language governing permissions and
4026   * limitations under the License.
4027   */class Bo{getBundleMetadata(e,t){return zo(e).get(t).next(e=>{if(e)return(function(e){return{id:e.bundleId,createTime:Ro(e.createTime),version:e.version}})(e)})}saveBundleMetadata(e,t){return zo(e).put((function(e){return{bundleId:e.id,createTime:Po($i(e.createTime)),version:e.version}})(t))}getNamedQuery(e,t){return Ko(e).get(t).next(e=>{if(e)return(function(e){return{name:e.name,query:Lo(e.bundledQuery),readTime:Ro(e.readTime)}})(e)})}saveNamedQuery(e,t){return Ko(e).put((function(e){return{name:e.name,readTime:Po($i(e.readTime)),bundledQuery:e.bundledQuery}})(t))}}function zo(e){return ln(e,Vt)}function Ko(e){return ln(e,Ft)}
4028/**
4029   * @license
4030   * Copyright 2022 Google LLC
4031   *
4032   * Licensed under the Apache License, Version 2.0 (the "License");
4033   * you may not use this file except in compliance with the License.
4034   * You may obtain a copy of the License at
4035   *
4036   *   http://www.apache.org/licenses/LICENSE-2.0
4037   *
4038   * Unless required by applicable law or agreed to in writing, software
4039   * distributed under the License is distributed on an "AS IS" BASIS,
4040   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4041   * See the License for the specific language governing permissions and
4042   * limitations under the License.
4043   */class $o{constructor(e,t){this.serializer=e,this.userId=t}static wt(e,t){const n=t.uid||"";return new $o(e,n)}getOverlay(e,t){return Go(e).get(jo(this.userId,t)).next(e=>e?Uo(this.serializer,e):null)}getOverlays(e,t){const n=Ss();return Ae.forEach(t,t=>this.getOverlay(e,t).next(e=>{null!==e&&n.set(t,e)})).next(()=>n)}saveOverlays(e,t,n){const r=[];return n.forEach((n,s)=>{const i=new fi(t,s);r.push(this.St(e,i))}),Ae.waitFor(r)}removeOverlaysForBatchId(e,t,n){const r=new Set;t.forEach(e=>r.add(Ze(e.getCollectionPath())));const s=[];return r.forEach(t=>{const r=IDBKeyRange.bound([this.userId,t,n],[this.userId,t,n+1],!1,!0);s.push(Go(e).X(Wt,r))}),Ae.waitFor(s)}getOverlaysForCollection(e,t,n){const r=Ss(),s=Ze(t),i=IDBKeyRange.bound([this.userId,s,n],[this.userId,s,Number.POSITIVE_INFINITY],!0);return Go(e).J(Wt,i).next(e=>{for(const t of e){const e=Uo(this.serializer,t);r.set(e.getKey(),e)}return r})}getOverlaysForCollectionGroup(e,t,n,r){const s=Ss();let i;const o=IDBKeyRange.bound([this.userId,t,n],[this.userId,t,Number.POSITIVE_INFINITY],!0);return Go(e).ee({index:Yt,range:o},(e,t,n)=>{const o=Uo(this.serializer,t);s.size()<r||o.largestBatchId===i?(s.set(o.getKey(),o),i=o.largestBatchId):n.done()}).next(()=>s)}St(e,t){return Go(e).put((function(e,t,n){const[r,s,i]=jo(t,n.mutation.key);return{userId:t,collectionPath:s,documentId:i,collectionGroup:n.mutation.key.getCollectionGroup(),largestBatchId:n.largestBatchId,overlayMutation:oo(e.yt,n.mutation)}})(this.serializer,this.userId,t))}}function Go(e){return ln(e,Qt)}
4044/**
4045   * @license
4046   * Copyright 2024 Google LLC
4047   *
4048   * Licensed under the Apache License, Version 2.0 (the "License");
4049   * you may not use this file except in compliance with the License.
4050   * You may obtain a copy of the License at
4051   *
4052   *   http://www.apache.org/licenses/LICENSE-2.0
4053   *
4054   * Unless required by applicable law or agreed to in writing, software
4055   * distributed under the License is distributed on an "AS IS" BASIS,
4056   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4057   * See the License for the specific language governing permissions and
4058   * limitations under the License.
4059   */class Qo{bt(e){return ln(e,Zt)}getSessionToken(e){return this.bt(e).get("sessionToken").next(e=>{const t=e?.value;return t?Sn.fromUint8Array(t):Sn.EMPTY_BYTE_STRING})}setSessionToken(e,t){return this.bt(e).put({name:"sessionToken",value:t.toUint8Array()})}}
4060/**
4061   * @license
4062   * Copyright 2021 Google LLC
4063   *
4064   * Licensed under the Apache License, Version 2.0 (the "License");
4065   * you may not use this file except in compliance with the License.
4066   * You may obtain a copy of the License at
4067   *
4068   *   http://www.apache.org/licenses/LICENSE-2.0
4069   *
4070   * Unless required by applicable law or agreed to in writing, software
4071   * distributed under the License is distributed on an "AS IS" BASIS,
4072   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4073   * See the License for the specific language governing permissions and
4074   * limitations under the License.
4075   */class Ho{constructor(){}Dt(e,t){this.Ct(e,t),t.vt()}Ct(e,t){if("nullValue"in e)this.Ft(t,5);else if("booleanValue"in e)this.Ft(t,10),t.Mt(e.booleanValue?1:0);else if("integerValue"in e)this.Ft(t,15),t.Mt(Cn(e.integerValue));else if("doubleValue"in e){const n=Cn(e.doubleValue);isNaN(n)?this.Ft(t,13):(this.Ft(t,15),He(n)?t.Mt(0):t.Mt(n))}else if("timestampValue"in e){let n=e.timestampValue;this.Ft(t,20),"string"==typeof n&&(n=xn(n)),t.xt(`${n.seconds||""}`),t.Mt(n.nanos||0)}else if("stringValue"in e)this.Ot(e.stringValue,t),this.Nt(t);else if("bytesValue"in e)this.Ft(t,30),t.Bt(Nn(e.bytesValue)),this.Nt(t);else if("referenceValue"in e)this.Lt(e.referenceValue,t);else if("geoPointValue"in e){const n=e.geoPointValue;this.Ft(t,45),t.Mt(n.latitude||0),t.Mt(n.longitude||0)}else"mapValue"in e?cr(e)?this.Ft(t,Number.MAX_SAFE_INTEGER):ar(e)?this.kt(e.mapValue,t):(this.qt(e.mapValue,t),this.Nt(t)):"arrayValue"in e?(this.Kt(e.arrayValue,t),this.Nt(t)):T(19022,{Ut:e})}Ot(e,t){this.Ft(t,25),this.$t(e,t)}$t(e,t){t.xt(e)}qt(e,t){const n=e.fields||{};this.Ft(t,55);for(const e of Object.keys(n))this.Ot(e,t),this.Ct(n[e],t)}kt(e,t){const n=e.fields||{};this.Ft(t,53);const r=Kn,s=n[r].arrayValue?.values?.length||0;this.Ft(t,15),t.Mt(Cn(s)),this.Ot(r,t),this.Ct(n[r],t)}Kt(e,t){const n=e.values||[];this.Ft(t,50);for(const e of n)this.Ct(e,t)}
vendor: 5,474 bytes, lines 4075-4113
4075Lt(e,t){this.Ft(t,37),ee.fromName(e).path.forEach(e=>{this.Ft(t,60),this.$t(e,t)})}Ft(e,t){e.Mt(t)}Nt(e){e.Mt(2)}}Ho.Wt=new Ho;
4076/**
4077   * @license
4078   * Copyright 2021 Google LLC
4079   *
4080   * Licensed under the Apache License, Version 2.0 (the "License");
4081   * you may not use this file except in compliance with the License.
4082   * You may obtain a copy of the License at
4083   *
4084   *   http://www.apache.org/licenses/LICENSE-2.0
4085   *
4086   * Unless required by applicable law | agreed to in writing, software
4087   * distributed under the License is distributed on an "AS IS" BASIS,
4088   * WITHOUT WARRANTIES | CONDITIONS OF ANY KIND, either express | implied.
4089   * See the License for the specific language governing permissions and
4090   * limitations under the License.
4091   */
4092const Wo=255;function Jo(e){if(0===e)return 8;let t=0;return e>>4||(t+=4,e<<=4),e>>6||(t+=2,e<<=2),e>>7||(t+=1),t}function Yo(e){const t=64-(function(e){let t=0;for(let n=0;n<8;++n){const r=Jo(255&e[n]);if(t+=r,8!==r)break}return t})(e);return Math.ceil(t/8)}class Xo{constructor(){this.buffer=new Uint8Array(1024),this.position=0}Qt(e){const t=e[Symbol.iterator]();let n=t.next();for(;!n.done;)this.Gt(n.value),n=t.next();this.zt()}jt(e){const t=e[Symbol.iterator]();let n=t.next();for(;!n.done;)this.Jt(n.value),n=t.next();this.Ht()}Zt(e){for(const t of e){const e=t.charCodeAt(0);if(e<128)this.Gt(e);else if(e<2048)this.Gt(960|e>>>6),this.Gt(128|63&e);else if(t<"\ud800"||"\udbff"<t)this.Gt(480|e>>>12),this.Gt(128|63&e>>>6),this.Gt(128|63&e);else{const e=t.codePointAt(0);this.Gt(240|e>>>18),this.Gt(128|63&e>>>12),this.Gt(128|63&e>>>6),this.Gt(128|63&e)}}this.zt()}Xt(e){for(const t of e){const e=t.charCodeAt(0);if(e<128)this.Jt(e);else if(e<2048)this.Jt(960|e>>>6),this.Jt(128|63&e);else if(t<"\ud800"||"\udbff"<t)this.Jt(480|e>>>12),this.Jt(128|63&e>>>6),this.Jt(128|63&e);else{const e=t.codePointAt(0);this.Jt(240|e>>>18),this.Jt(128|63&e>>>12),this.Jt(128|63&e>>>6),this.Jt(128|63&e)}}this.Ht()}Yt(e){const t=this.en(e),n=Yo(t);this.tn(1+n),this.buffer[this.position++]=255&n;for(let e=t.length-n;e<t.length;++e)this.buffer[this.position++]=255&t[e]}nn(e){const t=this.en(e),n=Yo(t);this.tn(1+n),this.buffer[this.position++]=~(255&n);for(let e=t.length-n;e<t.length;++e)this.buffer[this.position++]=~(255&t[e])}rn(){this.sn(Wo),this.sn(255)}_n(){this.an(Wo),this.an(255)}reset(){this.position=0}seed(e){this.tn(e.length),this.buffer.set(e,this.position),this.position+=e.length}un(){return this.buffer.slice(0,this.position)}en(e){const t=(function(e){const t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,e,!1),new Uint8Array(t.buffer)})(e),n=!!(128&t[0]);t[0]^=n?255:128;for(let e=1;e<t.length;++e)t[e]^=n?255:0;return t}Gt(e){const t=255&e;0===t?(this.sn(0),this.sn(255)):t===Wo?(this.sn(Wo),this.sn(0)):this.sn(t)}Jt(e){const t=255&e;0===t?(this.an(0),this.an(255)):t===Wo?(this.an(Wo),this.an(0)):this.an(e)}zt(){this.sn(0),this.sn(1)}Ht(){this.an(0),this.an(1)}sn(e){this.tn(1),this.buffer[this.position++]=e}an(e){this.tn(1),this.buffer[this.position++]=~e}tn(e){const t=e+this.position;if(t<=this.buffer.length)return;let n=2*this.buffer.length;n<t&&(n=t);const r=new Uint8Array(n);r.set(this.buffer),this.buffer=r}}class Zo{constructor(e){this.cn=e}Bt(e){this.cn.Qt(e)}xt(e){this.cn.Zt(e)}Mt(e){this.cn.Yt(e)}vt(){this.cn.rn()}}class ea{constructor(e){this.cn=e}Bt(e){this.cn.jt(e)}xt(e){this.cn.Xt(e)}Mt(e){this.cn.nn(e)}vt(){this.cn._n()}}class ta{constructor(){this.cn=new Xo,this.ascending=new Zo(this.cn),this.descending=new ea(this.cn)}seed(e){this.cn.seed(e)}ln(e){return 0===e?this.ascending:this.descending}un(){return this.cn.un()}reset(){this.cn.reset()}}
4093/**
4094   * @license
4095   * Copyright 2022 Google LLC
4096   *
4097   * Licensed under the Apache License, Version 2.0 (the "License");
4098   * you may not use this file except in compliance with the License.
4099   * You may obtain a copy of the License at
4100   *
4101   *   http://www.apache.org/licenses/LICENSE-2.0
4102   *
4103   * Unless required by applicable law or agreed to in writing, software
4104   * distributed under the License is distributed on an "AS IS" BASIS,
4105   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4106   * See the License for the specific language governing permissions and
4107   * limitations under the License.
4108   */class na{constructor(e,t,n,r){this.hn=e,this.Pn=t,this.Tn=n,this.En=r}In(){const e=this.En.length,t=0===e||255===this.En[e-1]?e+1:e,n=new Uint8Array(t);return n.set(this.En,0),t!==e?n.set([0],this.En.length):++n[n.length-1],new na(this.hn,this.Pn,this.Tn,n)}Rn(e,t,n){return{indexId:this.hn,uid:e,arrayValue:ia(this.Tn),directionalValue:ia(this.En),orderedDocumentKey:ia(t),documentKey:n.path.toArray()}}An(e,t,n){const r=this.Rn(e,t,n);return[r.indexId,r.uid,r.arrayValue,r.directionalValue,r.orderedDocumentKey,r.documentKey]}}function ra(e,t){let n=e.hn-t.hn;return 0!==n?n:(n=sa(e.Tn,t.Tn),0!==n?n:(n=sa(e.En,t.En),0!==n?n:ee.comparator(e.Pn,t.Pn)))}function sa(e,t){for(let n=0;n<e.length&&n<t.length;++n){const r=e[n]-t[n];if(0!==r)return r}return e.length-t.length}function ia(e){return(0,u.isSafariOrWebkit)()?(function(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t})(e):e}function oa(e){return"string"!=typeof e?e:(function(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}
4109/**
4110    * @license
4111    * Copyright 2022 Google LLC
4112    *
4113    * Licensed under the Apache License, Version 2.0 (the "License");
4114    * you may not use this file except in compliance with the License.
4115    * You may obtain a copy of the License at
4116    *
4117    *   http://www.apache.org/licenses/LICENSE-2.0
4118    *
4119    * Unless required by applicable law or agreed to in writing, software
4120    * distributed under the License is distributed on an "AS IS" BASIS,
4121    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4122    * See the License for the specific language governing permissions and
4123    * limitations under the License.
4124    */)(e)}class aa{constructor(e){this.Vn=new wn((e,t)=>Z.comparator(e.field,t.field)),this.collectionId=null!=e.collectionGroup?e.collectionGroup:e.path.lastSegment(),this.dn=e.orderBy,this.mn=[];for(const t of e.filters){const e=t;e.isInequality()?this.Vn=this.Vn.add(e):this.mn.push(e)}}get fn(){return this.Vn.size>1}gn(e){if(S(e.collectionGroup===this.collectionId,49279),this.fn)return!1;const t=ye(e);if(void 0!==t&&!this.pn(t))return!1;const n=we(e);let r=new Set,s=0,i=0;for(;s<n.length&&this.pn(n[s]);++s)r=r.add(n[s].fieldPath.canonicalString());if(s===n.length)return!0;if(this.Vn.size>0){const e=this.Vn.getIterator().getNext();if(!r.has(e.field.canonicalString())){const t=n[s];if(!this.yn(e,t)||!this.wn(this.dn[i++],t))return!1}++s}for(;s<n.length;++s){const e=n[s];if(i>=this.dn.length||!this.wn(this.dn[i++],e))return!1}return!0}Sn(){if(this.fn)return null;let e=new wn(Z.comparator);const t=[];for(const n of this.mn)if(!n.field.isKeyField())if("array-contains"===n.op||"array-contains-any"===n.op)t.push(new ve(n.field,2));else{if(e.has(n.field))continue;e=e.add(n.field),t.push(new ve(n.field,0))}for(const n of this.dn)n.field.isKeyField()||e.has(n.field)||(e=e.add(n.field),t.push(new ve(n.field,"asc"===n.dir?0:1)));return new pe(pe.UNKNOWN_ID,this.collectionId,t,Te.empty())}pn(e){for(const t of this.mn)if(this.yn(t,e))return!0;return!1}yn(e,t){if(void 0===e||!e.field.isEqual(t.fieldPath))return!1;const n="array-contains"===e.op||"array-contains-any"===e.op;return 2===t.kind===n}wn(e,t){return!!e.field.isEqual(t.fieldPath)&&(0===t.kind&&"asc"===e.dir||1===t.kind&&"desc"===e.dir)}}
4125/**
4126   * @license
4127   * Copyright 2022 Google LLC
4128   *
4129   * Licensed under the Apache License, Version 2.0 (the "License");
4130   * you may not use this file except in compliance with the License.
4131   * You may obtain a copy of the License at
4132   *
4133   *   http://www.apache.org/licenses/LICENSE-2.0
4134   *
4135   * Unless required by applicable law or agreed to in writing, software
4136   * distributed under the License is distributed on an "AS IS" BASIS,
4137   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4138   * See the License for the specific language governing permissions and
4139   * limitations under the License.
4140   */function ua(e){if(S(e instanceof Sr||e instanceof _r,20012),e instanceof Sr){if(e instanceof Ur){const t=e.value.arrayValue?.values?.map(t=>Sr.create(e.field,"==",t))||[];return _r.create(t,"or")}return e}const t=e.filters.map(e=>ua(e));return _r.create(t,e.op)}function ca(e){if(0===e.getFilters().length)return[];const t=fa(ua(e));return S(da(t),7391),la(t)||ha(t)?[t]:t.getFilters()}function la(e){return e instanceof Sr}function ha(e){return e instanceof _r&&Nr(e)}function da(e){return la(e)||ha(e)||(function(e){if(e instanceof _r&&Cr(e)){for(const t of e.getFilters())if(!la(t)&&!ha(t))return!1;return!0}return!1})(e)}function fa(e){if(S(e instanceof Sr||e instanceof _r,34018),e instanceof Sr)return e;if(1===e.filters.length)return fa(e.filters[0]);const t=e.filters.map(e=>fa(e));let n=_r.create(t,e.op);return n=pa(n),da(n)?n:(S(n instanceof _r,64498),S(xr(n),40251),S(n.filters.length>1,57927),n.filters.reduce((e,t)=>ma(e,t)))}function ma(e,t){let n;return S(e instanceof Sr||e instanceof _r,38388),S(t instanceof Sr||t instanceof _r,25473),n=e instanceof Sr?t instanceof Sr?(function(e,t){return _r.create([e,t],"and")})(e,t):ga(e,t):t instanceof Sr?ga(t,e):(function(e,t){if(S(e.filters.length>0&&t.filters.length>0,48005),xr(e)&&xr(t))return Or(e,t.getFilters());const n=Cr(e)?e:t,r=Cr(e)?t:e,s=n.filters.map(e=>ma(e,r));return _r.create(s,"or")})(e,t),pa(n)}function ga(e,t){if(xr(t))return Or(t,e.getFilters());{const n=t.filters.map(t=>ma(e,t));return _r.create(n,"or")}}function pa(e){if(S(e instanceof Sr||e instanceof _r,11850),e instanceof Sr)return e;const t=e.getFilters();if(1===t.length)return pa(t[0]);if(Dr(e))return e;const n=t.map(e=>pa(e)),r=[];
4140return n.forEach(t=>{t instanceof Sr?r.push(t):t instanceof _r&&(t.op===e.op?r.push(...t.filters):r.push(t))}),1===r.length?r[0]:_r.create(r,e.op)
4141/**
4142   * @license
4143   * Copyright 2019 Google LLC
4144   *
4145   * Licensed under the Apache License, Version 2.0 (the "License");
4146   * you may not use this file except in compliance with the License.
4147   * You may obtain a copy of the License at
4148   *
4149   *   http://www.apache.org/licenses/LICENSE-2.0
4150   *
4151   * Unless required by applicable law or agreed to in writing, software
4152   * distributed under the License is distributed on an "AS IS" BASIS,
4153   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4154   * See the License for the specific language governing permissions and
4155   * limitations under the License.
4156   */}class ya{constructor(){this.bn=new wa}addToCollectionParentIndex(e,t){return this.bn.add(t),Ae.resolve()}getCollectionParents(e,t){return Ae.resolve(this.bn.getEntries(t))}addFieldIndex(e,t){return Ae.resolve()}deleteFieldIndex(e,t){return Ae.resolve()}deleteAllFieldIndexes(e){return Ae.resolve()}createTargetIndexes(e,t){return Ae.resolve()}getDocumentsMatchingTarget(e,t){return Ae.resolve(null)}getIndexType(e,t){return Ae.resolve(0)}getFieldIndexes(e,t){return Ae.resolve([])}getNextCollectionGroupToUpdate(e){return Ae.resolve(null)}getMinOffset(e,t){return Ae.resolve(_e.min())}getMinOffsetFromCollectionGroup(e,t){return Ae.resolve(_e.min())}updateCollectionGroup(e,t,n){return Ae.resolve()}updateIndexEntries(e,t){return Ae.resolve()}}class wa{constructor(){this.index={}}add(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new wn(Y.comparator),s=!r.has(n);return this.index[t]=r.add(n),s}has(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)}getEntries(e){return(this.index[e]||new wn(Y.comparator)).toArray()}}
4157/**
4158   * @license
4159   * Copyright 2019 Google LLC
4160   *
4161   * Licensed under the Apache License, Version 2.0 (the "License");
4162   * you may not use this file except in compliance with the License.
4163   * You may obtain a copy of the License at
4164   *
4165   *   http://www.apache.org/licenses/LICENSE-2.0
4166   *
4167   * Unless required by applicable law or agreed to in writing, software
4168   * distributed under the License is distributed on an "AS IS" BASIS,
4169   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4170   * See the License for the specific language governing permissions and
4171   * limitations under the License.
4172   */const ba="IndexedDbIndexManager",va=new Uint8Array(0);class Ia{constructor(e,t){this.databaseId=t,this.Dn=new wa,this.Cn=new ws(e=>Kr(e),(e,t)=>$r(e,t)),this.uid=e.uid||""}addToCollectionParentIndex(e,t){if(!this.Dn.has(t)){const n=t.lastSegment(),r=t.popLast();e.addOnCommittedListener(()=>{this.Dn.add(t)});const s={collectionId:n,parent:Ze(r)};return Ta(e).put(s)}return Ae.resolve()}getCollectionParents(e,t){const n=[],r=IDBKeyRange.bound([t,""],[H(t),""],!1,!0);return Ta(e).J(r).next(e=>{for(const r of e){if(r.collectionId!==t)break;n.push(nt(r.parent))}return n})}addFieldIndex(e,t){const n=Sa(e),r=(function(e){return{indexId:e.indexId,collectionGroup:e.collectionGroup,fields:e.fields.map(e=>[e.fieldPath.canonicalString(),e.kind])}})(t);delete r.indexId;const s=n.add(r);if(t.indexState){const n=_a(e);return s.next(e=>{n.put(qo(e,this.uid,t.indexState.sequenceNumber,t.indexState.offset))})}return s.next()}deleteFieldIndex(e,t){const n=Sa(e),r=_a(e),s=Ea(e);return n.delete(t.indexId).next(()=>r.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0))).next(()=>s.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0)))}deleteAllFieldIndexes(e){const t=Sa(e),n=Ea(e),r=_a(e);return t.X().next(()=>n.X()).next(()=>r.X())}createTargetIndexes(e,t){return Ae.forEach(this.vn(t),t=>this.getIndexType(e,t).next(n=>{if(0===n||1===n){const n=new aa(t).Sn();if(null!=n)return this.addFieldIndex(e,n)}}))}getDocumentsMatchingTarget(e,t){const n=Ea(e);let r=!0;const s=new Map;return Ae.forEach(this.vn(t),t=>this.Fn(e,t).next(e=>{r&&(r=!!e),s.set(t,e)})).next(()=>{if(r){let e=Ds();const r=[];return Ae.forEach(s,(s,i)=>{w(ba,`Using index ${(function(e){return`id=${e.indexId}|cg=${e.collectionGroup}|f=${e.fields.map(e=>`${e.fieldPath}:${e.kind}`).join(",")}`})(s)} to execute ${Kr(t)}`);const o=(function(e,t){const n=ye(t);if(void 0===n)return null;for(const t of Qr(e,n.fieldPath))switch(t.op){case"array-contains-any":return t.value.arrayValue.values||[];case"array-contains":return[t.value]}return null})(i,s),a=(function(e,t){const n=new Map;for(const r of we(t))for(const t of Qr(e,r.fieldPath))switch(t.op){case"==":case"in":n.set(r.fieldPath.canonicalString(),t.value);break;case"not-in":case"!=":return n.set(r.fieldPath.canonicalString(),t.value),Array.from(n.values())}return null})(i,s),u=(function(e,t){const n=[];let r=!0;for(const s of we(t)){const t=0===s.kind?Hr(e,s.fieldPath,e.startAt):Wr(e,s.fieldPath,e.startAt);n.push(t.value),r&&(r=t.inclusive)}return new wr(n,r)})(i,s),c=(function(e,t){const n=[];let r=!0;for(const s of we(t)){const t=0===s.kind?Wr(e,s.fieldPath,e.endAt):Hr(e,s.fieldPath,e.endAt);n.push(t.value),r&&(r=t.inclusive)}return new wr(n,r)})(i,s),l=this.Mn(s,i,u),h=this.Mn(s,i,c),d=this.xn(s,i,a),f=this.On(s.indexId,o,l,u.inclusive,h,c.inclusive,d);return Ae.forEach(f,s=>n.Z(s,t.limit).next(t=>{t.forEach(t=>{const n=ee.fromSegments(t.documentKey);e.has(n)||(e=e.add(n),r.push(n))})}))}).next(()=>r)}return Ae.resolve(null)})}vn(e){let t=this.Cn.get(e);return t||(t=0===e.filters.length?[e]:ca(_r.create(e.filters,"and")).map(t=>zr(e.path,e.collectionGroup,e.orderBy,t.getFilters(),e.limit,e.startAt,e.endAt)),this.Cn.set(e,t),t)}On(e,t,n,r,s,i,o){const a=(null!=t?t.length:1)*Math.max(n.length,s.length),u=a/(null!=t?t.length:1),c=[];for(let l=0;l<a;++l){const a=t?this.Nn(t[l/u]):va,h=this.Bn(e,a,n[l%u],r),d=this.Ln(e,a,s[l%u],i),f=o.map(t=>this.Bn(e,a,t,!0));c.push(...this.createRange(h,d,f))}return c}Bn(e,t,n,r){const s=new na(e,ee.empty(),t,n);return r?s:s.In()}Ln(e,t,n,r){const s=new na(e,ee.empty(),t,n);return r?s.In():s}Fn(e,t){const n=new aa(t),r=null!=t.collectionGroup?t.collectionGroup:t.path.lastSegment();return this.getFieldIndexes(e,r).next(e=>{let t=null;for(const r of e)n.gn(r)&&(!t||r.fields.length>t.fields.length)&&(t=r);return t})}getIndexType(e,t){let n=2;const r=this.vn(t);return Ae.forEach(r,t=>this.Fn(e,t).next(e=>{e?0!==n&&e.fields.length<(function(e){let t=new wn(Z.comparator),n=!1;for(const r of e.filters)for(const e of r.getFlattenedFilters())e.field.isKeyField()||("array-contains"===e.op||"array-contains-any"===e.op?n=!0:t=t.add(e.field));for(const n of e.orderBy)n.field.isKeyField()||(t=t.add(n.field));return t.size+(n?1:0)})(t)&&(n=1):n=0})).next(()=>(function(e){return null!==e.limit})(t)&&r.length>1&&2===n?1:n)}kn(e,t){const n=new ta;for(const r of we(e)){const e=t.data.field(r.fieldPath);if(null==e)return null;const s=n.ln(r.kind);Ho.Wt.Dt(e,s)}return n.un()}Nn(e){const t=new ta;return Ho.Wt.Dt(e,t.ln(0)),t.un()}qn(e,t){const n=new ta;return Ho.Wt.Dt(tr(this.databaseId,t),n.ln((function(e){const t=we(e);return 0===t.length?0:t[t.length-1].kind})(e))),n.un()}xn(e,t,n){if(null===n)return[];let r=[];r.push(new ta);let s=0;for(const i of we(e)){const e=n[s++];for(const n of r)if(this.Kn(t,i.fieldPath)&&rr(e))r=this.Un(r,i,e);else{const t=n.ln(i.kind);Ho.Wt.Dt(e,t)}}return this.$n(r)}Mn(e,t,n){return this.xn(e,t,n.position)}$n(e){const t=[];for(let n=0;n<e.length;++n)t[n]=e[n].un();return t}Un(e,t,n){const r=[...e],s=[];for(const e of n.arrayValue.values||[])for(const n of r){const r=new ta;r.seed(n.un()),Ho.Wt.Dt(e,r.ln(t.kind)),s.push(r)}return s}Kn(e,t){return!!e.filters.find(e=>e instanceof Sr&&e.field.isEqual(t)&&("in"===e.op||"not-in"===e.op))}getFieldIndexes(e,t){const n=Sa(e),r=_a(e);return(t?n.J(Lt,IDBKeyRange.bound(t,t)):n.J()).next(e=>{const t=[];return Ae.forEach(e,e=>r.get([e.indexId,this.uid]).next(n=>{t.push((function(e,t){const n=t?new Te(t.sequenceNumber,new _e(Ro(t.readTime),new ee(nt(t.documentKey)),t.largestBatchId)):Te.empty(),r=e.fields.map(([e,t])=>new ve(Z.fromServerFormat(e),t));return new pe(e.indexId,e.collectionGroup,r,n)})(e,n))})).next(()=>t)})}getNextCollectionGroupToUpdate(e){return this.getFieldIndexes(e).next(e=>0===e.length?null:(e.sort((e,t)=>
4172{const n=e.indexState.sequenceNumber-t.indexState.sequenceNumber;return 0!==n?n:q(e.collectionGroup,t.collectionGroup)}),e[0].collectionGroup))}updateCollectionGroup(e,t,n){const r=Sa(e),s=_a(e);return this.Wn(e).next(e=>r.J(Lt,IDBKeyRange.bound(t,t)).next(t=>Ae.forEach(t,t=>s.put(qo(t.indexId,this.uid,e,n)))))}updateIndexEntries(e,t){const n=new Map;return Ae.forEach(t,(t,r)=>{const s=n.get(t.collectionGroup);return(s?Ae.resolve(s):this.getFieldIndexes(e,t.collectionGroup)).next(s=>(n.set(t.collectionGroup,s),Ae.forEach(s,n=>this.Qn(e,t,n).next(t=>{const s=this.Gn(r,n);return t.isEqual(s)?Ae.resolve():this.zn(e,r,n,t,s)}))))})}jn(e,t,n,r){return Ea(e).put(r.Rn(this.uid,this.qn(n,t.key),t.key))}Jn(e,t,n,r){return Ea(e).delete(r.An(this.uid,this.qn(n,t.key),t.key))}Qn(e,t,n){const r=Ea(e);let s=new wn(ra);return r.ee({index:$t,range:IDBKeyRange.only([n.indexId,this.uid,ia(this.qn(n,t))])},(e,r)=>{s=s.add(new na(n.indexId,t,oa(r.arrayValue),oa(r.directionalValue)))}).next(()=>s)}Gn(e,t){let n=new wn(ra);const r=this.kn(t,e);if(null==r)return n;const s=ye(t);if(null!=s){const i=e.data.field(s.fieldPath);if(rr(i))for(const s of i.arrayValue.values||[])n=n.add(new na(t.indexId,e.key,this.Nn(s),r))}else n=n.add(new na(t.indexId,e.key,va,r));return n}zn(e,t,n,r,s){w(ba,"Updating index entries for document '%s'",t.key);const i=[];return(function(e,t,n,r,s){const i=e.getIterator(),o=t.getIterator();let a=vn(i),u=vn(o);for(;a||u;){let e=!1,t=!1;if(a&&u){const r=n(a,u);r<0?t=!0:r>0&&(e=!0)}else null!=a?t=!0:e=!0;e?(r(u),u=vn(o)):t?(s(a),a=vn(i)):(a=vn(i),u=vn(o))}})(r,s,ra,r=>{i.push(this.jn(e,t,n,r))},r=>{i.push(this.Jn(e,t,n,r))}),Ae.waitFor(i)}Wn(e){let t=1;return _a(e).ee({index:qt,reverse:!0,range:IDBKeyRange.upperBound([this.uid,Number.MAX_SAFE_INTEGER])},(e,n,r)=>{r.done(),t=n.sequenceNumber+1}).next(()=>t)}createRange(e,t,n){n=n.sort((e,t)=>ra(e,t)).filter((e,t,n)=>!t||0!==ra(e,n[t-1]));const r=[];r.push(e);for(const s of n){const n=ra(s,e),i=ra(s,t);if(0===n)r[0]=e.In();else if(n>0&&i<0)r.push(s),r.push(s.In());else if(i>0)break}r.push(t);const s=[];for(let e=0;e<r.length;e+=2){if(this.Hn(r[e],r[e+1]))return[];const t=r[e].An(this.uid,va,ee.empty()),n=r[e+1].An(this.uid,va,ee.empty());s.push(IDBKeyRange.bound(t,n))}return s}Hn(e,t){return ra(e,t)>0}getMinOffsetFromCollectionGroup(e,t){return this.getFieldIndexes(e,t).next(xa)}getMinOffset(e,t){return Ae.mapArray(this.vn(t),t=>this.Fn(e,t).next(e=>e||T(44426))).next(xa)}}function Ta(e){return ln(e,Ot)}function Ea(e){return ln(e,zt)}function Sa(e){return ln(e,Mt)}function _a(e){return ln(e,Ut)}function xa(e){S(0!==e.length,28825);let t=e[0].indexState.offset,n=t.largestBatchId;for(let r=1;r<e.length;r++){const s=e[r].indexState.offset;xe(s,t)<0&&(t=s),n<s.largestBatchId&&(n=s.largestBatchId)}return new _e(t.readTime,t.documentKey,n)}
4173/**
4174   * @license
4175   * Copyright 2018 Google LLC
4176   *
4177   * Licensed under the Apache License, Version 2.0 (the "License");
4178   * you may not use this file except in compliance with the License.
4179   * You may obtain a copy of the License at
4180   *
4181   *   http://www.apache.org/licenses/LICENSE-2.0
4182   *
4183   * Unless required by applicable law or agreed to in writing, software
4184   * distributed under the License is distributed on an "AS IS" BASIS,
4185   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4186   * See the License for the specific language governing permissions and
4187   * limitations under the License.
4188   */const Ca={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},Na=41943040;class Da{static withCacheSize(e){return new Da(e,Da.DEFAULT_COLLECTION_PERCENTILE,Da.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}}
4189/**
4190   * @license
4191   * Copyright 2020 Google LLC
4192   *
4193   * Licensed under the Apache License, Version 2.0 (the "License");
4194   * you may not use this file except in compliance with the License.
4195   * You may obtain a copy of the License at
4196   *
4197   *   http://www.apache.org/licenses/LICENSE-2.0
4198   *
4199   * Unless required by applicable law or agreed to in writing, softw
4199are
4200   * distributed under the License is distributed on an "AS IS" BASIS,
4201   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4202   * See the License for the specific language governing permissions and
4203   * limitations under the License.
4204   */function Aa(e,t,n){const r=e.store(at),s=e.store(mt),i=[],o=IDBKeyRange.only(n.batchId);let a=0;const u=r.ee({range:o},(e,t,n)=>(a++,n.delete()));i.push(u.next(()=>{S(1===a,47070,{batchId:n.batchId})}));const c=[];for(const e of n.mutations){const r=dt(t,e.key.path,n.batchId);i.push(s.delete(r)),c.push(e.key)}return Ae.waitFor(i).next(()=>c)}function ka(e){if(!e)return 0;let t;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw T(14731);t=e.noDocument}return JSON.stringify(t).length}
4205/**
4206   * @license
4207   * Copyright 2017 Google LLC
4208   *
4209   * Licensed under the Apache License, Version 2.0 (the "License");
4210   * you may not use this file except in compliance with the License.
4211   * You may obtain a copy of the License at
4212   *
4213   *   http://www.apache.org/licenses/LICENSE-2.0
4214   *
4215   * Unless required by applicable law or agreed to in writing, software
4216   * distributed under the License is distributed on an "AS IS" BASIS,
4217   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4218   * See the License for the specific language governing permissions and
4219   * limitations under the License.
4220   */Da.DEFAULT_COLLECTION_PERCENTILE=10,Da.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Da.DEFAULT=new Da(Na,Da.DEFAULT_COLLECTION_PERCENTILE,Da.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Da.DISABLED=new Da(-1,0,0);class Oa{constructor(e,t,n,r){this.userId=e,this.serializer=t,this.indexManager=n,this.referenceDelegate=r,this.Zn={}}static wt(e,t,n,r){S(""!==e.uid,64387);const s=e.isAuthenticated()?e.uid:"";return new Oa(s,t,n,r)}checkEmpty(e){let t=!0;const n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Ra(e).ee({index:ct,range:n},(e,n,r)=>{t=!1,r.done()}).next(()=>t)}addMutationBatch(e,t,n,r){const s=Va(e),i=Ra(e);return i.add({}).next(o=>{S("number"==typeof o,49019);const a=new hi(o,t,n,r),u=(function(e,t,n){const r=n.baseMutations.map(t=>oo(e.yt,t)),s=n.mutations.map(t=>oo(e.yt,t));return{userId:t,batchId:n.batchId,localWriteTimeMs:n.localWriteTime.toMillis(),baseMutations:r,mutations:s}})(this.serializer,this.userId,a),c=[];let l=new wn((e,t)=>q(e.canonicalString(),t.canonicalString()));for(const e of r){const t=dt(this.userId,e.key.path,o);l=l.add(e.key.path.popLast()),c.push(i.put(u)),c.push(s.put(t,ft))}return l.forEach(t=>{c.push(this.indexManager.addToCollectionParentIndex(e,t))}),e.addOnCommittedListener(()=>{this.Zn[o]=a.keys()}),Ae.waitFor(c).next(()=>a)})}lookupMutationBatch(e,t){return Ra(e).get(t).next(e=>e?(S(e.userId===this.userId,48,"Unexpected user for mutation batch",{userId:e.userId,batchId:t}),Vo(this.serializer,e)):null)}Xn(e,t){return this.Zn[t]?Ae.resolve(this.Zn[t]):this.lookupMutationBatch(e,t).next(e=>{if(e){const n=e.keys();return this.Zn[t]=n,n}return null})}getNextMutationBatchAfterBatchId(e,t){const n=t+1,r=IDBKeyRange.lowerBound([this.userId,n]);let s=null;return Ra(e).ee({index:ct,range:r},(e,t,r)=>{t.userId===this.userId&&(S(t.batchId>=n,47524,{Yn:n}),s=Vo(this.serializer,t)),r.done()}).next(()=>s)}getHighestUnacknowledgedBatchId(e){const t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]);let n=Ge;return Ra(e).ee({index:ct,range:t,reverse:!0},(e,t,r)=>{n=t.batchId,r.done()}).next(()=>n)}getAllMutationBatches(e){const t=IDBKeyRange.bound([this.userId,Ge],[this.userId,Number.POSITIVE_INFINITY]);return Ra(e).J(ct,t).next(e=>e.map(e=>Vo(this.serializer,e)))}getAllMutationBatchesAffectingDocumentKey(e,t){const n=ht(this.userId,t.path),r=IDBKeyRange.lowerBound(n),s=[];return Va(e).ee({range:r},(n,r,i)=>{const[o,a,u]=n,c=nt(a);if(o===this.userId&&t.path.isEqual(c))return Ra(e).get(u).next(e=>{if(!e)throw T(61480,{er:n,batchId:u});S(e.userId===this.userId,10503,"Unexpected user for mutation batch",{userId:e.userId,batchId:u}),s.push(Vo(this.serializer,e))});i.done()}).next(()=>s)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new wn(q);const r=[];return t.forEach(t=>{const s=ht(this.userId,t.path),i=IDBKeyRange.lowerBound(s),o=Va(e).ee({range:i},(e,r,s)=>{const[i,o,a]=e,u=nt(o);i===this.userId&&t.path.isEqual(u)?n=n.add(a):s.done()});r.push(o)}),Ae.waitFor(r).next(()=>this.tr(e,n))}getAllMutationBatchesAffectingQuery(e,t){const n=t.path,r=n.length+1,s=ht(this.userId,n),i=IDBKeyRange.lowerBound(s);let o=new wn(q);return Va(e).ee({range:i}
4220,(e,t,s)=>{const[i,a,u]=e,c=nt(a);i===this.userId&&n.isPrefixOf(c)?c.length===r&&(o=o.add(u)):s.done()}).next(()=>this.tr(e,o))}tr(e,t){const n=[],r=[];return t.forEach(t=>{r.push(Ra(e).get(t).next(e=>{if(null===e)throw T(35274,{batchId:t});S(e.userId===this.userId,9748,"Unexpected user for mutation batch",{userId:e.userId,batchId:t}),n.push(Vo(this.serializer,e))}))}),Ae.waitFor(r).next(()=>n)}removeMutationBatch(e,t){return Aa(e.le,this.userId,t).next(n=>(e.addOnCommittedListener(()=>{this.nr(t.batchId)}),Ae.forEach(n,t=>this.referenceDelegate.markPotentiallyOrphaned(e,t))))}nr(e){delete this.Zn[e]}performConsistencyCheck(e){return this.checkEmpty(e).next(t=>{if(!t)return Ae.resolve();const n=IDBKeyRange.lowerBound((function(e){return[e]})(this.userId)),r=[];return Va(e).ee({range:n},(e,t,n)=>{if(e[0]===this.userId){const t=nt(e[1]);r.push(t)}else n.done()}).next(()=>{S(0===r.length,56720,{rr:r.map(e=>e.canonicalString())})})})}containsKey(e,t){return Pa(e,this.userId,t)}ir(e){return Fa(e).get(this.userId).next(e=>e||{userId:this.userId,lastAcknowledgedBatchId:Ge,lastStreamToken:""})}}function Pa(e,t,n){const r=ht(t,n.path),s=r[1],i=IDBKeyRange.lowerBound(r);let o=!1;return Va(e).ee({range:i,Y:!0},(e,n,r)=>{const[i,a,u]=e;i===t&&a===s&&(o=!0),r.done()}).next(()=>o)}function Ra(e){return ln(e,at)}function Va(e){return ln(e,mt)}function Fa(e){return ln(e,ot)}
4221/**
4222   * @license
4223   * Copyright 2017 Google LLC
4224   *
4225   * Licensed under the Apache License, Version 2.0 (the "License");
4226   * you may not use this file except in compliance with the License.
4227   * You may obtain a copy of the License at
4228   *
4229   *   http://www.apache.org/licenses/LICENSE-2.0
4230   *
4231   * Unless required by applicable law or agreed to in writing, software
4232   * distributed under the License is distributed on an "AS IS" BASIS,
4233   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4234   * See the License for the specific language governing permissions and
4235   * limitations under the License.
4236   */class Ma{constructor(e){this.sr=e}next(){return this.sr+=2,this.sr}static _r(){return new Ma(0)}static ar(){return new Ma(-1)}}
4237/**
4238   * @license
4239   * Copyright 2017 Google LLC
4240   *
4241   * Licensed under the Apache License, Version 2.0 (the "License");
4242   * you may not use this file except in compliance with the License.
4243   * You may obtain a copy of the License at
4244   *
4245   *   http://www.apache.org/licenses/LICENSE-2.0
4246   *
4247   * Unless required by applicable law or agreed to in writing, software
4248   * distributed under the License is distributed on an "AS IS" BASIS,
4249   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4250   * See the License for the specific language governing permissions and
4251   * limitations under the License.
4252   */class La{constructor(e,t){this.referenceDelegate=e,this.serializer=t}allocateTargetId(e){return this.ur(e).next(t=>{const n=new Ma(t.highestTargetId);return t.highestTargetId=n.next(),this.cr(e,t).next(()=>t.highestTargetId)})}getLastRemoteSnapshotVersion(e){return this.ur(e).next(e=>me.fromTimestamp(new fe(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds)))}getHighestSequenceNumber(e){return this.ur(e).next(e=>e.highestListenSequenceNumber)}setTargetsMetadata(e,t,n){return this.ur(e).next(r=>(r.highestListenSequenceNumber=t,n&&(r.lastRemoteSnapshotVersion=n.toTimestamp()),t>r.highestListenSequenceNumber&&(r.highestListenSequenceNumber=t),this.cr(e,r)))}addTargetData(e,t){return this.lr(e,t).next(()=>this.ur(e).next(n=>(n.targetCount+=1,this.hr(t,n),this.cr(e,n))))}updateTargetData(e,t){return this.lr(e,t)}removeTargetData(e,t){return this.removeMatchingKeysForTargetId(e,t.targetId).next(()=>Ua(e).delete(t.targetId)).next(()=>this.ur(e)).next(t=>(S(t.targetCount>0,8065),t.targetCount-=1,this.cr(e,t)))}removeTargets(e,t,n){let r=0;const s=[];return Ua(e).ee((i,o)=>{const a=Fo(o);a.sequenceNumber<=t&&null===n.get(a.targetId)&&(r++,s.push(this.removeTargetData(e,a)))}).next(()=>Ae.waitFor(s)).next(()=>r)}forEachTarget(e,t){return Ua(e).ee((e,n)=>{const r=Fo(n);t(r)})}ur(e){return ja(e).get(At).next(e=>(S(null!==e,2888),e))}cr(e,t){return ja(e).put(At,t)}lr(e,t){return Ua(e).put(Mo(this.serializer,t))}hr(e,t){let n=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,n=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,n=!0),n}getTargetCount(e){return this.ur(e).next(e=>e.targetCount)}getTargetData(e,t){const n=Kr(t),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]);let s=null;return Ua(e).ee({range:r,index:St}
4252,(e,n,r)=>{const i=Fo(n);$r(t,i.target)&&(s=i,r.done())}).next(()=>s)}addMatchingKeys(e,t,n){const r=[],s=qa(e);return t.forEach(t=>{const i=Ze(t.path);r.push(s.put({targetId:n,path:i})),r.push(this.referenceDelegate.addReference(e,n,t))}),Ae.waitFor(r)}removeMatchingKeys(e,t,n){const r=qa(e);return Ae.forEach(t,t=>{const s=Ze(t.path);return Ae.waitFor([r.delete([n,s]),this.referenceDelegate.removeReference(e,n,t)])})}removeMatchingKeysForTargetId(e,t){const n=qa(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(r)}getMatchingKeysForTargetId(e,t){const n=IDBKeyRange.bound([t],[t+1],!1,!0),r=qa(e);let s=Ds();return r.ee({range:n,Y:!0},(e,t,n)=>{const r=nt(e[1]),i=new ee(r);s=s.add(i)}).next(()=>s)}containsKey(e,t){const n=Ze(t.path),r=IDBKeyRange.bound([n],[H(n)],!1,!0);let s=0;return qa(e).ee({index:Nt,Y:!0,range:r},([e,t],n,r)=>{0!==e&&(s++,r.done())}).next(()=>s>0)}At(e,t){return Ua(e).get(t).next(e=>e?Fo(e):null)}}function Ua(e){return ln(e,Et)}function ja(e){return ln(e,kt)}function qa(e){return ln(e,xt)}
4253/**
4254   * @license
4255   * Copyright 2020 Google LLC
4256   *
4257   * Licensed under the Apache License, Version 2.0 (the "License");
4258   * you may not use this file except in compliance with the License.
4259   * You may obtain a copy of the License at
4260   *
4261   *   http://www.apache.org/licenses/LICENSE-2.0
4262   *
4263   * Unless required by applicable law or agreed to in writing, software
4264   * distributed under the License is distributed on an "AS IS" BASIS,
4265   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4266   * See the License for the specific language governing permissions and
4267   * limitations under the License.
4268   */const Ba="LruGarbageCollector",za=1048576;function Ka([e,t],[n,r]){const s=q(e,n);return 0===s?q(t,r):s}class $a{constructor(e){this.Pr=e,this.buffer=new wn(Ka),this.Tr=0}Er(){return++this.Tr}Ir(e){const t=[e,this.Er()];if(this.buffer.size<this.Pr)this.buffer=this.buffer.add(t);else{const e=this.buffer.last();Ka(t,e)<0&&(this.buffer=this.buffer.delete(e).add(t))}}get maxValue(){return this.buffer.last()[0]}}class Ga{constructor(e,t,n){this.garbageCollector=e,this.asyncQueue=t,this.localStore=n,this.Rr=null}start(){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.Ar(6e4)}stop(){this.Rr&&(this.Rr.cancel(),this.Rr=null)}get started(){return null!==this.Rr}Ar(e){w(Ba,`Garbage collection scheduled in ${e}ms`),this.Rr=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,async()=>{this.Rr=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(e){Me(e)?w(Ba,"Ignoring IndexedDB error during garbage collection: ",e):await De(e)}await this.Ar(3e5)})}}class Qa{constructor(e,t){this.Vr=e,this.params=t}calculateTargetCount(e,t){return this.Vr.dr(e).next(e=>Math.floor(t/100*e))}nthSequenceNumber(e,t){if(0===t)return Ae.resolve($e.ce);const n=new $a(t);return this.Vr.forEachTarget(e,e=>n.Ir(e.sequenceNumber)).next(()=>this.Vr.mr(e,e=>n.Ir(e))).next(()=>n.maxValue)}removeTargets(e,t,n){return this.Vr.removeTargets(e,t,n)}removeOrphanedDocuments(e,t){return this.Vr.removeOrphanedDocuments(e,t)}collect(e,t){return-1===this.params.cacheSizeCollectionThreshold?(w("LruGarbageCollector","Garbage collection skipped; disabled"),Ae.resolve(Ca)):this.getCacheSize(e).next(n=>n<this.params.cacheSizeCollectionThreshold?(w("LruGarbageCollector",`Garbage collection skipped; Cache size ${n} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),Ca):this.gr(e,t))}getCacheSize(e){return this.Vr.getCacheSize(e)}gr(e,t){let n,r,s,i,o,a,u;const c=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(t=>(t>this.params.maximumSequenceNumbersToCollect?(w("LruGarbageCollector",`Capping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${t}`),r=this.params.maximumSequenceNumbersToCollect):r=t,i=Date.now(),this.nthSequenceNumber(e,r))).next(r=>(n=r,o=Date.now(),this.removeTargets(e,n,t))).next(t=>(s=t,a=Date.now(),this.removeOrphanedDocuments(e,n))).next(e=>(u=Date.now(),p()<=l.LogLevel.DEBUG&&w("LruGarbageCollector",`LRU Garbage Collection\n\tCounted targets in ${i-c}ms\n\tDetermined least recently used ${r} in `+(o-i)+"ms\n"+`\tRemoved ${s} targets in `+(a-o)+"ms\n"+`\tRemoved ${e} documents in `+(u-a)+"ms\n"+`Total Duration: ${u-c}ms`),Ae.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:s,documentsRemoved:e})))}}function Ha(e,t){return new Qa(e,t)}
4269/**
4270   * @license
4271   * Copyright 2020 Google LLC
4272   *
4273   * Licensed under the Apache License, Version 2.0 (the "License");
4274   * you may not use this file except in compliance with the License.
4275   * You may obtain a copy of the License at
4276   *
4277   *   http://www.apache.org/licenses/LICENSE-2.0
4278   *
4279   * Unless required by applicable law or agreed to in writing, software
4280   * distributed under the License is distributed on an "AS IS" BASIS,
4281   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4282   * See the License for the specific language governing permissions and
4283   * limitations under the License.
4284   */class Wa{constructor(e,t){this.db=e,this.garbageCollector=Ha(this,t)}dr(e){const t=this.pr(e);return this.db.getTargetCache().getTargetCount(e).next(e=>t.next(t=>e+t))}pr(e){let t=0;return this.mr(e,e=>{t++}).next(()=>t)}forEachTarget(e,t){return this.db.getTargetCache().forEachTarget(e,t)}mr(e,t){return this.yr(e,(e,n)=>t(n))}addReference(e,t,n){return Ja(e,n)}removeReference(e,t,n){return Ja(e,n)}removeTargets(e,t,n){return this.db.getTargetCache().removeTargets(e,t,n)}markPotentiallyOrphaned(e,t){return Ja(e,t)}wr(e,t){return(function(e,t){let n=!1;return Fa(e).te(r=>Pa(e,r,t).next(e=>(e&&(n=!0),Ae.resolve(!e)))).next(()=>n)})(e,t)}removeOrphanedDocuments(e,t){const n=this.db.getRemoteDocumentCache().newChangeBuffer(),r=[];let s=0;return this.yr(e,(i,o)=>{if(o<=t){const t=this.wr(e,i).next(t=>{if(!t)return s++,n.getEntry(e,i).next(()=>(n.removeEntry(i,me.min()),qa(e).delete((function(e){return[0,Ze(e.path)]})(i))))});r.push(t)}}).next(()=>Ae.waitFor(r)).next(()=>n.apply(e)).next(()=>s)}removeTarget(e,t){const n=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,n)}updateLimboDocument(e,t){return Ja(e,t)}yr(e,t){const n=qa(e);let r,s=$e.ce;return n.ee({index:Nt},([e,n],{path:i,sequenceNumber:o})=>{0===e?(s!==$e.ce&&t(new ee(nt(r)),s),s=o,r=i):s=$e.ce}).next(()=>{s!==$e.ce&&t(new ee(nt(r)),s)})}getCacheSize(e){return this.db.getRemoteDocumentCache().getSize(e)}}function Ja(e,t){return qa(e).put((function(e,t){return{targetId:0,path:Ze(e.path),sequenceNumber:t}})(t,e.currentSequenceNumber))}
4285/**
4286   * @license
4287   * Copyright 2017 Google LLC
4288   *
4289   * Licensed under the Apache License, Version 2.0 (the "License");
4290   * you may not use this file except in compliance with the License.
4291   * You may obtain a copy of the License at
4292   *
4293   *   http://www.apache.org/licenses/LICENSE-2.0
4294   *
4295   * Unless required by applicable law or agreed to in writing, software
4296   * distributed under the License is distributed on an "AS IS" BASIS,
4297   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4298   * See the License for the specific language governing permissions and
4299   * limitations under the License.
4300   */class Ya{constructor(){this.changes=new ws(e=>e.toString(),(e,t)=>e.isEqual(t)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,yr.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const n=this.changes.get(t);return void 0!==n?Ae.resolve(n):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}
4301/**
4302   * @license
4303   * Copyright 2017 Google LLC
4304   *
4305   * Licensed under the Apache License, Version 2.0 (the "License");
4306   * you may not use this file except in compliance with the License.
4307   * You may obtain a copy of the License at
4308   *
4309   *   http://www.apache.org/licenses/LICENSE-2.0
4310   *
4311   * Unless required by applicable law or agreed to in writing, software
4312   * distributed under the License is distributed on an "AS IS" BASIS,
4313   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4314   * See the License for the specific language governing permissions and
4315   * limitations under the License.
4316   */class Xa{constructor(e){this.serializer=e}setIndexManager(e){this.indexManager=e}addEntry(e,t,n){return nu(e).put(n)}removeEntry(e,t,n){return nu(e).delete((function(e,t){const n=e.path.toArray();return[n.slice(0,n.length-2),n[n.length-2],Oo(t),n[n.length-1]]})(t,n))}updateMetadata(e,t){return this.getMetadata(e).next(n=>(n.byteSize+=t,this.Sr(e,n)))}getEntry(e,t){let n=yr.newInvalidDocument(t);return nu(e).ee({index:yt,range:IDBKeyRange.only(ru(t))},(e,r)=>{n=this.br(t,r)}).next(()=>n)}Dr(e,t){let n={size:0,document:yr.newInvalidDocument(t)};return nu(e).ee({index:yt,range:IDBKeyRange.only(ru(t))},(e,r)=>{n={document:this.br(t,r),size:ka(r)}}).next(()=>n)}getEntries(e,t){let n=vs();return this.Cr(e,t,(e,t)=>{const r=this.br(e,t);n=n.insert(e,r)}).next(()=>n)}vr(e,t){let n=vs(),r=new gn(ee.comparator);return this.Cr(e,t,(e,t)=>{const s=this.br(e,t);n=n.insert(e,s),r=r.insert(e,ka(t))}).next(()=>({documents:n,Fr:r}))}Cr(e,t,n){if(t.isEmpty())return Ae.resolve();let r=new wn(iu);
vendor: 1,266 bytes, line 4316
4316t.forEach(e=>r=r.add(e));const s=IDBKeyRange.bound(ru(r.first()),ru(r.last())),i=r.getIterator();let o=i.getNext();return nu(e).ee({index:yt,range:s},(e,t,r)=>{const s=ee.fromSegments([...t.prefixPath,t.collectionGroup,t.documentId]);for(;o&&iu(o,s)<0;)n(o,null),o=i.getNext();o&&o.isEqual(s)&&(n(o,t),o=i.hasNext()?i.getNext():null),o?r.j(ru(o)):r.done()}).next(()=>{for(;o;)n(o,null),o=i.hasNext()?i.getNext():null})}getDocumentsMatchingQuery(e,t,n,r,s){const i=t.path,o=[i.popLast().toArray(),i.lastSegment(),Oo(n.readTime),n.documentKey.path.isEmpty()?"":n.documentKey.path.lastSegment()],a=[i.popLast().toArray(),i.lastSegment(),[Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],""];return nu(e).J(IDBKeyRange.bound(o,a,!0)).next(e=>{s?.incrementDocumentReadCount(e.length);let n=vs();for(const s of e){const e=this.br(ee.fromSegments(s.prefixPath.concat(s.collectionGroup,s.documentId)),s);e.isFoundDocument()&&(ms(t,e)||r.has(e.key))&&(n=n.insert(e.key,e))}return n})}getAllFromCollectionGroup(e,t,n,r){let s=vs();const i=su(t,n),o=su(t,_e.max());return nu(e).ee({index:bt,range:IDBKeyRange.bound(i,o,!0)},(e,t,n)=>{const i=this.br(ee.fromSegments(t.prefixPath.concat(t.collectionGroup,t.documentId)),t);s=s.insert(i.key,i),s.size===r&&n.done()}).next(()=>s)}
4316newChangeBuffer(e){return new eu(this,!!e&&e.trackRemovals)}getSize(e){return this.getMetadata(e).next(e=>e.byteSize)}getMetadata(e){return tu(e).get(Tt).next(e=>(S(!!e,20021),e))}Sr(e,t){return tu(e).put(Tt,t)}br(e,t){if(t){const e=Ao(this.serializer,t);if(!e.isNoDocument()||!e.version.isEqual(me.min()))return e}return yr.newInvalidDocument(e)}}function Za(e){return new Xa(e)}class eu extends Ya{constructor(e,t){super(),this.Mr=e,this.trackRemovals=t,this.Or=new ws(e=>e.toString(),(e,t)=>e.isEqual(t))}applyChanges(e){const t=[];let n=0,r=new wn((e,t)=>q(e.canonicalString(),t.canonicalString()));return this.changes.forEach((s,i)=>{const o=this.Or.get(s);if(t.push(this.Mr.removeEntry(e,s,o.readTime)),i.isValidDocument()){const a=ko(this.Mr.serializer,i);r=r.add(s.path.popLast());const u=ka(a);n+=u-o.size,t.push(this.Mr.addEntry(e,s,a))}else if(n-=o.size,this.trackRemovals){const n=ko(this.Mr.serializer,i.convertToNoDocument(me.min()));t.push(this.Mr.addEntry(e,s,n))}}),r.forEach(n=>{t.push(this.Mr.indexManager.addToCollectionParentIndex(e,n))}),t.push(this.Mr.updateMetadata(e,n)),Ae.waitFor(t)}getFromCache(e,t){return this.Mr.Dr(e,t).next(e=>(this.Or.set(t,{size:e.size,readTime:e.document.readTime}),e.document))}getAllFromCache(e,t){return this.Mr.vr(e,t).next(({documents:e,Fr:t})=>(t.forEach((t,n)=>{this.Or.set(t,{size:n,readTime:e.get(t).readTime})}),e))}}function tu(e){return ln(e,It)}function nu(e){return ln(e,gt)}function ru(e){const t=e.path.toArray();return[t.slice(0,t.length-2),t[t.length-2],t[t.length-1]]}function su(e,t){const n=t.documentKey.path.toArray();return[e,Oo(t.readTime),n.slice(0,n.length-2),n.length>0?n[n.length-1]:""]}function iu(e,t){const n=e.path.toArray(),r=t.path.toArray();let s=0;for(let e=0;e<n.length-2&&e<r.length-2;++e)if(s=q(n[e],r[e]),s)return s;return s=q(n.length,r.length),s||(s=q(n[n.length-2],r[r.length-2]),s||q(n[n.length-1],r[r.length-1])
4317/**
4318   * @license
4319   * Copyright 2017 Google LLC
4320   *
4321   * Licensed under the Apache License, Version 2.0 (the "License");
4322   * you may not use this file except in compliance with the License.
4323   * You may obtain a copy of the License at
4324   *
4325   *   http://www.apache.org/licenses/LICENSE-2.0
4326   *
4327   * Unless required by applicable law or agreed to in writing, software
4328   * distributed under the License is distributed on an "AS IS" BASIS,
4329   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4330   * See the License for the specific language governing permissions and
4331   * limitations under the License.
4332   */
4333/**
4334   * @license
4335   * Copyright 2022 Google LLC
4336   *
4337   * Licensed under the Apache License, Version 2.0 (the "License");
4338   * you may not use this file except in compliance with the License.
4339   * You may obtain a copy of the License at
4340   *
4341   *   http://www.apache.org/licenses/LICENSE-2.0
4342   *
4343   * Unless required by applicable law or agreed to in writing, software
4344   * distributed under the License is distributed on an "AS IS" BASIS,
4345   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4346   * See the License for the specific language governing permissions and
4347   * limitations under the License.
4348   */)}class ou{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}
4349/**
4350   * @license
4351   * Copyright 2017 Google LLC
4352   *
4353   * Licensed under the Apache License, Version 2.0 (the "License");
4354   * you may not use this file except in compliance with the License.
4355   * You may obtain a copy of the License at
4356   *
4357   *   http://www.apache.org/licenses/LICENSE-2.0
4358   *
4359   * Unless required by applicable law or agreed to in writing, software
4360   * distributed under the License is distributed on an "AS IS" BASIS,
4361   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4362   * See the License for the specific language governing permissions and
4363   * limitations under the License.
4364   */class au{constructor(e,t,n,r){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=n,this.indexManager=r}getDocument(e,t){let n=null;return this.documentOverlayCache.getOverlay(e,t).next(r=>(n=r,this.remoteDocumentCache.getEntry(e,t))).next(e=>(null!==n&&ti(n.mutation,e,In.empty(),fe.now()),e))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.getLocalViewOfDocuments(e,t,Ds()).next(()=>t))}getLocalViewOfDocuments(e,t,n=Ds()){const r=Ss();return this.populateOverlays(e,r,t).next(()=>this.computeViews(e,t,r,n).next(e=>{let t=Ts();return e.forEach((e,n)=>{t=t.insert(e,n.overlayedDocument)}),t}))}getOverlayedDocuments(e,t){const n=Ss();return this.populateOverlays(e,n,t).next(()=>this.computeViews(e,t,n,Ds()))}populateOverlays(e,t,n){const r=[];
4364return n.forEach(e=>{t.has(e)||r.push(e)}),this.documentOverlayCache.getOverlays(e,r).next(e=>{e.forEach((e,n)=>{t.set(e,n)})})}computeViews(e,t,n,r){let s=vs();const i=xs(),o=xs();return t.forEach((e,t)=>{const o=n.get(t.key);r.has(t.key)&&(void 0===o||o.mutation instanceof ii)?s=s.insert(t.key,t):void 0!==o?(i.set(t.key,o.mutation.getFieldMask()),ti(o.mutation,t,o.mutation.getFieldMask(),fe.now())):i.set(t.key,In.empty())}),this.recalculateAndSaveOverlays(e,s).next(e=>(e.forEach((e,t)=>i.set(e,t)),t.forEach((e,t)=>o.set(e,new ou(t,i.get(e)??null))),o))}recalculateAndSaveOverlays(e,t){const n=xs();let r=new gn((e,t)=>e-t),s=Ds();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(e=>{for(const s of e)s.keys().forEach(e=>{const i=t.get(e);if(null===i)return;let o=n.get(e)||In.empty();o=s.applyToLocalView(i,o),n.set(e,o);const a=(r.get(s.batchId)||Ds()).add(e);r=r.insert(s.batchId,a)})}).next(()=>{const i=[],o=r.getReverseIterator();for(;o.hasNext();){const r=o.getNext(),a=r.key,u=r.value,c=_s();u.forEach(e=>{if(!s.has(e)){const r=Zs(t.get(e),n.get(e));null!==r&&c.set(e,r),s=s.add(e)}}),i.push(this.documentOverlayCache.saveOverlays(e,a,c))}return Ae.waitFor(i)}).next(()=>n)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.recalculateAndSaveOverlays(e,t))}getDocumentsMatchingQuery(e,t,n,r){return es(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):ts(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n,r):this.getDocumentsMatchingCollectionQuery(e,t,n,r)}getNextDocuments(e,t,n,r){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,r).next(s=>{const i=r-s.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,r-s.size):Ae.resolve(Ss());let o=ge,a=s;return i.next(t=>Ae.forEach(t,(t,n)=>(o<n.largestBatchId&&(o=n.largestBatchId),s.get(t)?Ae.resolve():this.remoteDocumentCache.getEntry(e,t).next(e=>{a=a.insert(t,e)}))).next(()=>this.populateOverlays(e,t,s)).next(()=>this.computeViews(e,a,t,Ds())).next(e=>({batchId:o,changes:Es(e)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new ee(t)).next(e=>{let t=Ts();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t})}getDocumentsMatchingCollectionGroupQuery(e,t,n,r){const s=t.collectionGroup;let i=Ts();return this.indexManager.getCollectionParents(e,s).next(o=>Ae.forEach(o,o=>{const a=(function(e,t){return new Jr(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)})(t,o.child(s));return this.getDocumentsMatchingCollectionQuery(e,a,n,r).next(e=>{e.forEach((e,t)=>{i=i.insert(e,t)})})}).next(()=>i))}getDocumentsMatchingCollectionQuery(e,t,n,r){let s;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId).next(i=>(s=i,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,s,r))).next(e=>{s.forEach((t,n)=>{const r=n.getKey();null===e.get(r)&&(e=e.insert(r,yr.newInvalidDocument(r)))});let n=Ts();return e.forEach((e,r)=>{const i=s.get(e);void 0!==i&&ti(i.mutation,r,In.empty(),fe.now()),ms(t,r)&&(n=n.insert(e,r))}),n})}}
4365/**
4366   * @license
4367   * Copyright 2020 Google LLC
4368   *
4369   * Licensed under the Apache License, Version 2.0 (the "License");
4370   * you may not use this file except in compliance with the License.
4371   * You may obtain a copy of the License at
4372   *
4373   *   http://www.apache.org/licenses/LICENSE-2.0
4374   *
4375   * Unless required by applicable law or agreed to in writing, software
4376   * distributed under the License is distributed on an "AS IS" BASIS,
4377   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4378   * See the License for the specific language governing permissions and
4379   * limitations under the License.
4380   */class uu{constructor(e){this.serializer=e,this.Nr=new Map,this.Br=new Map}getBundleMetadata(e,t){return Ae.resolve(this.Nr.get(t))}saveBundleMetadata(e,t){return this.Nr.set(t.id,(function(e){return{id:e.id,version:e.version,createTime:$i(e.createTime)}})(t)),Ae.resolve()}getNamedQuery(e,t){return Ae.resolve(this.Br.get(t))}saveNamedQuery(e,t){return this.Br.set(t.name,(function(e){return{name:e.name,query:Lo(e.bundledQuery),readTime:$i(e.readTime)}})(t)),Ae.resolve()}}
4381/**
4382   * @license
4383   * Copyright 2022 Google LLC
4384   *
4385   * Licensed under the Apache License, Version 2.0 (the "License");
4386   * you may not use this file except in compliance with the License.
4387   * You may obtain a copy of the License at
4388   *
4389   *   http://www.apache.org/licenses/LICENSE-2.0
4390   *
4391   * Unless required by applicable law or agreed to in writing, software
4392   * distributed under the License is distributed on an "AS IS" BASIS,
4393   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4394   * See the License for the specific language governing permissions and
4395   * limitations under the License.
4396   */class cu{constructor(){this.overlays=new gn(ee.comparator),this.Lr=new Map}getOverlay(e,t){return Ae.resolve(this.overlays.get(t))}getOverlays(e,t){const n=Ss();return Ae.forEach(t,t=>this.getOverlay(e,t).next(e=>{null!==e&&n.set(t,e)})).next(()=>n)}saveOverlays(e,t,n){return n.forEach((n,r)=>{this.St(e,t,r)}),Ae.resolve()}removeOverlaysForBatchId(e,t,n){const r=this.Lr.get(n);return void 0!==r&&(r.forEach(e=>this.overlays=this.overlays.remove(e)),this.Lr.delete(n)),Ae.resolve()}getOverlaysForCollection(e,t,n){const r=Ss(),s=t.length+1,i=new ee(t.child("")),o=this.overlays.getIteratorFrom(i);for(;o.hasNext();){const e=o.getNext().value,i=e.getKey();if(!t.isPrefixOf(i.path))break;i.path.length===s&&e.largestBatchId>n&&r.set(e.getKey(),e)}return Ae.resolve(r)}getOverlaysForCollectionGroup(e,t,n,r){let s=new gn((e,t)=>e-t);const i=this.overlays.getIterator();for(;i.hasNext();){const e=i.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>n){let t=s.get(e.largestBatchId);null===t&&(t=Ss(),s=s.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}const o=Ss(),a=s.getIterator();for(;a.hasNext()&&(a.getNext().value.forEach((e,t)=>o.set(e,t)),!(o.size()>=r)););return Ae.resolve(o)}St(e,t,n){const r=this.overlays.get(n.key);if(null!==r){const e=this.Lr.get(r.largestBatchId).delete(n.key);this.Lr.set(r.largestBatchId,e)}this.overlays=this.overlays.insert(n.key,new fi(t,n));let s=this.Lr.get(t);void 0===s&&(s=Ds(),this.Lr.set(t,s)),this.Lr.set(t,s.add(n.key))}}
4397/**
4398   * @license
4399   * Copyright 2024 Google LLC
4400   *
4401   * Licensed under the Apache License, Version 2.0 (the "License");
4402   * you may not use this file except in compliance with the License.
4403   * You may obtain a copy of the License at
4404   *
4405   *   http://www.apache.org/licenses/LICENSE-2.0
4406   *
4407   * Unless required by applicable law or agreed to in writing, software
4408   * distributed under the License is distributed on an "AS IS" BASIS,
4409   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4410   * See the License for the specific language governing permissions and
4411   * limitations under the License.
4412   */class lu{constructor(){this.sessionToken=Sn.EMPTY_BYTE_STRING}getSessionToken(e){return Ae.resolve(this.sessionToken)}setSessionToken(e,t){return this.sessionToken=t,Ae.resolve()}}
4413/**
4414   * @license
4415   * Copyright 2017 Google LLC
4416   *
4417   * Licensed under the Apache License, Version 2.0 (the "License");
4418   * you may not use this file except in compliance with the License.
4419   * You may obtain a copy of the License at
4420   *
4421   *   http://www.apache.org/licenses/LICENSE-2.0
4422   *
4423   * Unless required by applicable law or agreed to in writing, software
4424   * distributed under the License is distributed on an "AS IS" BASIS,
4425   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4426   * See the License for the specific language governing permissions and
4427   * limitations under the License.
4428   */class hu{constructor(){this.kr=new wn(du.qr),this.Kr=new wn(du.Ur)}isEmpty(){return this.kr.isEmpty()}addReference(e,t){const n=new du(e,t);this.kr=this.kr.add(n),this.Kr=this.Kr.add(n)}$r(e,t){e.forEach(e=>this.addReference(e,t))}removeReference(e,t){this.Wr(new du(e,t))}Qr(e,t){e.forEach(e=>this.removeReference(e,t))}Gr(e){const t=new ee(new Y([])),n=new du(t,e),r=new du(t,e+1),s=[];return this.Kr.forEachInRange([n,r],e=>{this.Wr(e),s.push(e.key)}),s}zr(){this.kr.forEach(e=>this.Wr(e))}Wr(e){this.kr=this.kr.delete(e),this.Kr=this.Kr.delete(e)}jr(e){const t=new ee(new Y([])),n=new du(t,e),r=new du(t,e+1);let s=Ds();return this.Kr.forEachInRange([n,r],e=>{s=s.add(e.key)}),s}containsKey(e){const t=new du(e,0),n=this.kr.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}class du{constructor(e,t){this.key=e,this.Jr=t}
4428static qr(e,t){return ee.comparator(e.key,t.key)||q(e.Jr,t.Jr)}static Ur(e,t){return q(e.Jr,t.Jr)||ee.comparator(e.key,t.key)}}
4429/**
4430   * @license
4431   * Copyright 2017 Google LLC
4432   *
4433   * Licensed under the Apache License, Version 2.0 (the "License");
4434   * you may not use this file except in compliance with the License.
4435   * You may obtain a copy of the License at
4436   *
4437   *   http://www.apache.org/licenses/LICENSE-2.0
4438   *
4439   * Unless required by applicable law or agreed to in writing, software
4440   * distributed under the License is distributed on an "AS IS" BASIS,
4441   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4442   * See the License for the specific language governing permissions and
4443   * limitations under the License.
4444   */class fu{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.Yn=1,this.Hr=new wn(du.qr)}checkEmpty(e){return Ae.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,n,r){const s=this.Yn;this.Yn++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const i=new hi(s,t,n,r);this.mutationQueue.push(i);for(const t of r)this.Hr=this.Hr.add(new du(t.key,s)),this.indexManager.addToCollectionParentIndex(e,t.key.path.popLast());return Ae.resolve(i)}lookupMutationBatch(e,t){return Ae.resolve(this.Zr(t))}getNextMutationBatchAfterBatchId(e,t){const n=t+1,r=this.Xr(n),s=r<0?0:r;return Ae.resolve(this.mutationQueue.length>s?this.mutationQueue[s]:null)}getHighestUnacknowledgedBatchId(){return Ae.resolve(0===this.mutationQueue.length?Ge:this.Yn-1)}getAllMutationBatches(e){return Ae.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const n=new du(t,0),r=new du(t,Number.POSITIVE_INFINITY),s=[];return this.Hr.forEachInRange([n,r],e=>{const t=this.Zr(e.Jr);s.push(t)}),Ae.resolve(s)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new wn(q);return t.forEach(e=>{const t=new du(e,0),r=new du(e,Number.POSITIVE_INFINITY);this.Hr.forEachInRange([t,r],e=>{n=n.add(e.Jr)})}),Ae.resolve(this.Yr(n))}getAllMutationBatchesAffectingQuery(e,t){const n=t.path,r=n.length+1;let s=n;ee.isDocumentKey(s)||(s=s.child(""));const i=new du(new ee(s),0);let o=new wn(q);return this.Hr.forEachWhile(e=>{const t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(o=o.add(e.Jr)),!0)},i),Ae.resolve(this.Yr(o))}Yr(e){const t=[];return e.forEach(e=>{const n=this.Zr(e);null!==n&&t.push(n)}),t}removeMutationBatch(e,t){S(0===this.ei(t.batchId,"removed"),55003),this.mutationQueue.shift();let n=this.Hr;return Ae.forEach(t.mutations,r=>{const s=new du(r.key,t.batchId);return n=n.delete(s),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)}).next(()=>{this.Hr=n})}nr(e){}containsKey(e,t){const n=new du(t,0),r=this.Hr.firstAfterOrEqual(n);return Ae.resolve(t.isEqual(r&&r.key))}performConsistencyCheck(e){return this.mutationQueue.length,Ae.resolve()}ei(e,t){return this.Xr(e)}Xr(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}Zr(e){const t=this.Xr(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}
4445/**
4446   * @license
4447   * Copyright 2017 Google LLC
4448   *
4449   * Licensed under the Apache License, Version 2.0 (the "License");
4450   * you may not use this file except in compliance with the License.
4451   * You may obtain a copy of the License at
4452   *
4453   *   http://www.apache.org/licenses/LICENSE-2.0
4454   *
4455   * Unless required by applicable law or agreed to in writing, software
4456   * distributed under the License is distributed on an "AS IS" BASIS,
4457   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4458   * See the License for the specific language governing permissions and
4459   * limitations under the License.
4460   */class mu{constructor(e){this.ti=e,this.docs=new gn(ee.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const n=t.key,r=this.docs.get(n),s=r?r.size:0,i=this.ti(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:i}),this.size+=i-s,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}removeEntry(e){const t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){const n=this.docs.get(t);return Ae.resolve(n?n.document.mutableCopy():yr.newInvalidDocument(t))}getEntries(e,t){let n=vs();
4460return t.forEach(e=>{const t=this.docs.get(e);n=n.insert(e,t?t.document.mutableCopy():yr.newInvalidDocument(e))}),Ae.resolve(n)}getDocumentsMatchingQuery(e,t,n,r){let s=vs();const i=t.path,o=new ee(i.child("__id-9223372036854775808__")),a=this.docs.getIteratorFrom(o);for(;a.hasNext();){const{key:e,value:{document:o}}=a.getNext();if(!i.isPrefixOf(e.path))break;e.path.length>i.length+1||xe(Se(o),n)<=0||(r.has(o.key)||ms(t,o))&&(s=s.insert(o.key,o.mutableCopy()))}return Ae.resolve(s)}getAllFromCollectionGroup(e,t,n,r){T(9500)}ni(e,t){return Ae.forEach(this.docs,e=>t(e))}newChangeBuffer(e){return new gu(this)}getSize(e){return Ae.resolve(this.size)}}class gu extends Ya{constructor(e){super(),this.Mr=e}applyChanges(e){const t=[];return this.changes.forEach((n,r)=>{r.isValidDocument()?t.push(this.Mr.addEntry(e,r)):this.Mr.removeEntry(n)}),Ae.waitFor(t)}getFromCache(e,t){return this.Mr.getEntry(e,t)}getAllFromCache(e,t){return this.Mr.getEntries(e,t)}}
4461/**
4462   * @license
4463   * Copyright 2017 Google LLC
4464   *
4465   * Licensed under the Apache License, Version 2.0 (the "License");
4466   * you may not use this file except in compliance with the License.
4467   * You may obtain a copy of the License at
4468   *
4469   *   http://www.apache.org/licenses/LICENSE-2.0
4470   *
4471   * Unless required by applicable law or agreed to in writing, software
4472   * distributed under the License is distributed on an "AS IS" BASIS,
4473   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4474   * See the License for the specific language governing permissions and
4475   * limitations under the License.
4476   */class pu{constructor(e){this.persistence=e,this.ri=new ws(e=>Kr(e),$r),this.lastRemoteSnapshotVersion=me.min(),this.highestTargetId=0,this.ii=0,this.si=new hu,this.targetCount=0,this.oi=Ma._r()}forEachTarget(e,t){return this.ri.forEach((e,n)=>t(n)),Ae.resolve()}getLastRemoteSnapshotVersion(e){return Ae.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return Ae.resolve(this.ii)}allocateTargetId(e){return this.highestTargetId=this.oi.next(),Ae.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.ii&&(this.ii=t),Ae.resolve()}lr(e){this.ri.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this.oi=new Ma(t),this.highestTargetId=t),e.sequenceNumber>this.ii&&(this.ii=e.sequenceNumber)}addTargetData(e,t){return this.lr(t),this.targetCount+=1,Ae.resolve()}updateTargetData(e,t){return this.lr(t),Ae.resolve()}removeTargetData(e,t){return this.ri.delete(t.target),this.si.Gr(t.targetId),this.targetCount-=1,Ae.resolve()}removeTargets(e,t,n){let r=0;const s=[];return this.ri.forEach((i,o)=>{o.sequenceNumber<=t&&null===n.get(o.targetId)&&(this.ri.delete(i),s.push(this.removeMatchingKeysForTargetId(e,o.targetId)),r++)}),Ae.waitFor(s).next(()=>r)}getTargetCount(e){return Ae.resolve(this.targetCount)}getTargetData(e,t){const n=this.ri.get(t)||null;return Ae.resolve(n)}addMatchingKeys(e,t,n){return this.si.$r(t,n),Ae.resolve()}removeMatchingKeys(e,t,n){this.si.Qr(t,n);const r=this.persistence.referenceDelegate,s=[];return r&&t.forEach(t=>{s.push(r.markPotentiallyOrphaned(e,t))}),Ae.waitFor(s)}removeMatchingKeysForTargetId(e,t){return this.si.Gr(t),Ae.resolve()}getMatchingKeysForTargetId(e,t){const n=this.si.jr(t);return Ae.resolve(n)}containsKey(e,t){return Ae.resolve(this.si.containsKey(t))}}
4477/**
4478   * @license
4479   * Copyright 2017 Google LLC
4480   *
4481   * Licensed under the Apache License, Version 2.0 (the "License");
4482   * you may not use this file except in compliance with the License.
4483   * You may obtain a copy of the License at
4484   *
4485   *   http://www.apache.org/licenses/LICENSE-2.0
4486   *
4487   * Unless required by applicable law or agreed to in writing, software
4488   * distributed under the License is distributed on an "AS IS" BASIS,
4489   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4490   * See the License for the specific language governing permissions and
4491   * limitations under the License.
4492   */class yu{constructor(e,t){this._i={},this.overlays={},this.ai=new $e(0),this.ui=!1,this.ui=!0,this.ci=new lu,this.referenceDelegate=e(this),this.li=new pu(this),this.indexManager=new ya,this.remoteDocumentCache=(function(e){return new mu(e)}
vendor: 4,265 bytes, lines 4492-4503
4492)(e=>this.referenceDelegate.hi(e)),this.serializer=new Do(t),this.Pi=new uu(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.ui=!1,Promise.resolve()}get started(){return this.ui}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new cu,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this._i[e.toKey()];return n||(n=new fu(t,this.referenceDelegate),this._i[e.toKey()]=n),n}getGlobalsCache(){return this.ci}getTargetCache(){return this.li}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Pi}runTransaction(e,t,n){w("MemoryPersistence","Starting transaction:",e);const r=new wu(this.ai.next());return this.referenceDelegate.Ti(),n(r).next(e=>this.referenceDelegate.Ei(r).next(()=>e)).toPromise().then(e=>(r.raiseOnCommittedEvent(),e))}Ii(e,t){return Ae.or(Object.values(this._i).map(n=>()=>n.containsKey(e,t)))}}class wu extends Ne{constructor(e){super(),this.currentSequenceNumber=e}}class bu{constructor(e){this.persistence=e,this.Ri=new hu,this.Ai=null}static Vi(e){return new bu(e)}get di(){if(this.Ai)return this.Ai;throw T(60996)}addReference(e,t,n){return this.Ri.addReference(n,t),this.di.delete(n.toString()),Ae.resolve()}removeReference(e,t,n){return this.Ri.removeReference(n,t),this.di.add(n.toString()),Ae.resolve()}markPotentiallyOrphaned(e,t){return this.di.add(t.toString()),Ae.resolve()}removeTarget(e,t){this.Ri.Gr(t.targetId).forEach(e=>this.di.add(e.toString()));const n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next(e=>{e.forEach(e=>this.di.add(e.toString()))}).next(()=>n.removeTargetData(e,t))}Ti(){this.Ai=new Set}Ei(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Ae.forEach(this.di,n=>{const r=ee.fromPath(n);return this.mi(e,r).next(e=>{e||t.removeEntry(r,me.min())})}).next(()=>(this.Ai=null,t.apply(e)))}updateLimboDocument(e,t){return this.mi(e,t).next(e=>{e?this.di.delete(t.toString()):this.di.add(t.toString())})}hi(e){return 0}mi(e,t){return Ae.or([()=>Ae.resolve(this.Ri.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Ii(e,t)])}}class vu{constructor(e,t){this.persistence=e,this.fi=new ws(e=>Ze(e.path),(e,t)=>e.isEqual(t)),this.garbageCollector=Ha(this,t)}static Vi(e,t){return new vu(e,t)}Ti(){}Ei(e){return Ae.resolve()}forEachTarget(e,t){return this.persistence.getTargetCache().forEachTarget(e,t)}dr(e){const t=this.pr(e);return this.persistence.getTargetCache().getTargetCount(e).next(e=>t.next(t=>e+t))}pr(e){let t=0;return this.mr(e,e=>{t++}).next(()=>t)}mr(e,t){return Ae.forEach(this.fi,(n,r)=>this.wr(e,n,r).next(e=>e?Ae.resolve():t(r)))}removeTargets(e,t,n){return this.persistence.getTargetCache().removeTargets(e,t,n)}removeOrphanedDocuments(e,t){let n=0;const r=this.persistence.getRemoteDocumentCache(),s=r.newChangeBuffer();return r.ni(e,r=>this.wr(e,r,t).next(e=>{e||(n++,s.removeEntry(r,me.min()))})).next(()=>s.apply(e)).next(()=>n)}markPotentiallyOrphaned(e,t){return this.fi.set(t,e.currentSequenceNumber),Ae.resolve()}removeTarget(e,t){const n=t.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,n)}addReference(e,t,n){return this.fi.set(n,e.currentSequenceNumber),Ae.resolve()}removeReference(e,t,n){return this.fi.set(n,e.currentSequenceNumber),Ae.resolve()}updateLimboDocument(e,t){return this.fi.set(t,e.currentSequenceNumber),Ae.resolve()}hi(e){let t=e.key.toString().length;return e.isFoundDocument()&&(t+=er(e.data.value)),t}wr(e,t,n){return Ae.or([()=>this.persistence.Ii(e,t),()=>this.persistence.getTargetCache().containsKey(e,t),()=>{const e=this.fi.get(t);return Ae.resolve(void 0!==e&&e>n)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}
4493/**
4494   * @license
4495   * Copyright 2020 Google LLC
4496   *
4497   * Licensed under the Apache License, Version 2.0 (the "License");
4498   * you may not use this file except in compliance with the License.
4499   * You may obtain a copy of the License at
4500   *
4501   *   http://www.apache.org/licenses/LICENSE-2.0
4502   *
4503   * Unless required by applicable law or agreed to in writing, softw
4503are
4504   * distributed under the License is distributed on an "AS IS" BASIS,
4505   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4506   * See the License for the specific language governing permissions and
4507   * limitations under the License.
4508   */class Iu{constructor(e){this.serializer=e}k(e,t,n,r){const s=new Oe("createOrUpgrade",t);n<1&&r>=1&&((function(e){e.createObjectStore(st)})(e),(function(e){e.createObjectStore(ot,{keyPath:"userId"});e.createObjectStore(at,{keyPath:ut,autoIncrement:!0}).createIndex(ct,lt,{unique:!0}),e.createObjectStore(mt)})(e),Tu(e),(function(e){e.createObjectStore(rt)})(e));let i=Ae.resolve();return n<3&&r>=3&&(0!==n&&((function(e){e.deleteObjectStore(xt),e.deleteObjectStore(Et),e.deleteObjectStore(kt)})(e),Tu(e)),i=i.next(()=>(function(e){const t=e.store(kt),n={highestTargetId:0,highestListenSequenceNumber:0,lastRemoteSnapshotVersion:me.min().toTimestamp(),targetCount:0};return t.put(At,n)})(s))),n<4&&r>=4&&(0!==n&&(i=i.next(()=>(function(e,t){return t.store(at).J().next(n=>{e.deleteObjectStore(at),e.createObjectStore(at,{keyPath:ut,autoIncrement:!0}).createIndex(ct,lt,{unique:!0});const r=t.store(at),s=n.map(e=>r.put(e));return Ae.waitFor(s)})})(e,s))),i=i.next(()=>{!(function(e){e.createObjectStore(Rt,{keyPath:"clientId"})})(e)})),n<5&&r>=5&&(i=i.next(()=>this.gi(s))),n<6&&r>=6&&(i=i.next(()=>((function(e){e.createObjectStore(It)})(e),this.pi(s)))),n<7&&r>=7&&(i=i.next(()=>this.yi(s))),n<8&&r>=8&&(i=i.next(()=>this.wi(e,s))),n<9&&r>=9&&(i=i.next(()=>{!(function(e){e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")})(e)})),n<10&&r>=10&&(i=i.next(()=>this.Si(s))),n<11&&r>=11&&(i=i.next(()=>{!(function(e){e.createObjectStore(Vt,{keyPath:"bundleId"})})(e),(function(e){e.createObjectStore(Ft,{keyPath:"name"})})(e)})),n<12&&r>=12&&(i=i.next(()=>{!(function(e){const t=e.createObjectStore(Qt,{keyPath:Ht});t.createIndex(Wt,Jt,{unique:!1}),t.createIndex(Yt,Xt,{unique:!1})})(e)})),n<13&&r>=13&&(i=i.next(()=>(function(e){const t=e.createObjectStore(gt,{keyPath:pt});t.createIndex(yt,wt),t.createIndex(bt,vt)})(e)).next(()=>this.bi(e,s)).next(()=>e.deleteObjectStore(rt))),n<14&&r>=14&&(i=i.next(()=>this.Di(e,s))),n<15&&r>=15&&(i=i.next(()=>(function(e){e.createObjectStore(Mt,{keyPath:"indexId",autoIncrement:!0}).createIndex(Lt,"collectionGroup",{unique:!1});e.createObjectStore(Ut,{keyPath:jt}).createIndex(qt,Bt,{unique:!1});e.createObjectStore(zt,{keyPath:Kt}).createIndex($t,Gt,{unique:!1})})(e))),n<16&&r>=16&&(i=i.next(()=>{t.objectStore(Ut).clear()}).next(()=>{t.objectStore(zt).clear()}
4508)),n<17&&r>=17&&(i=i.next(()=>{!(function(e){e.createObjectStore(Zt,{keyPath:"name"})})(e)})),n<18&&r>=18&&(0,u.isSafariOrWebkit)()&&(i=i.next(()=>{t.objectStore(Ut).clear()}).next(()=>{t.objectStore(zt).clear()})),i}pi(e){let t=0;return e.store(rt).ee((e,n)=>{t+=ka(n)}).next(()=>{const n={byteSize:t};return e.store(It).put(Tt,n)})}gi(e){const t=e.store(ot),n=e.store(at);return t.J().next(t=>Ae.forEach(t,t=>{const r=IDBKeyRange.bound([t.userId,Ge],[t.userId,t.lastAcknowledgedBatchId]);return n.J(ct,r).next(n=>Ae.forEach(n,n=>{S(n.userId===t.userId,18650,"Cannot process batch from unexpected user",{batchId:n.batchId});const r=Vo(this.serializer,n);return Aa(e,t.userId,r).next(()=>{})}))}))}yi(e){const t=e.store(xt),n=e.store(rt);return e.store(kt).get(At).next(e=>{const r=[];return n.ee((n,s)=>{const i=new Y(n),o=(function(e){return[0,Ze(e)]})(i);r.push(t.get(o).next(n=>n?Ae.resolve():(n=>t.put({targetId:0,path:Ze(n),sequenceNumber:e.highestListenSequenceNumber}))(i)))}).next(()=>Ae.waitFor(r))})}wi(e,t){e.createObjectStore(Ot,{keyPath:Pt});const n=t.store(Ot),r=new wa,s=e=>{if(r.add(e)){const t=e.lastSegment(),r=e.popLast();return n.put({collectionId:t,parent:Ze(r)})}};return t.store(rt).ee({Y:!0},(e,t)=>{const n=new Y(e);return s(n.popLast())}).next(()=>t.store(mt).ee({Y:!0},([e,t,n],r)=>{const i=nt(t);return s(i.popLast())}))}Si(e){const t=e.store(Et);return t.ee((e,n)=>{const r=Fo(n),s=Mo(this.serializer,r);return t.put(s)})}bi(e,t){const n=t.store(rt),r=[];return n.ee((e,n)=>{const s=t.store(gt),i=(function(e){return e.document?new ee(Y.fromString(e.document.name).popFirst(5)):e.noDocument?ee.fromSegments(e.noDocument.path):e.unknownDocument?ee.fromSegments(e.unknownDocument.path):T(36783)}
4509/**
4510          * @license
4511          * Copyright 2017 Google LLC
4512          *
4513          * Licensed under the Apache License, Version 2.0 (the "License");
4514          * you may not use this file except in compliance with the License.
4515          * You may obtain a copy of the License at
4516          *
4517          *   http://www.apache.org/licenses/LICENSE-2.0
4518          *
4519          * Unless required by applicable law or agreed to in writing, software
4520          * distributed under the License is distributed on an "AS IS" BASIS,
4521          * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4522          * See the License for the specific language governing permissions and
4523          * limitations under the License.
4524          */)(n).path.toArray(),o={prefixPath:i.slice(0,i.length-2),collectionGroup:i[i.length-2],documentId:i[i.length-1],readTime:n.readTime||[0,0],unknownDocument:n.unknownDocument,noDocument:n.noDocument,document:n.document,hasCommittedMutations:!!n.hasCommittedMutations};r.push(s.put(o))}).next(()=>Ae.waitFor(r))}Di(e,t){const n=t.store(at),r=Za(this.serializer),s=new yu(bu.Vi,this.serializer.yt);return n.J().next(e=>{const n=new Map;return e.forEach(e=>{let t=n.get(e.userId)??Ds();Vo(this.serializer,e).keys().forEach(e=>t=t.add(e)),n.set(e.userId,t)}),Ae.forEach(n,(e,n)=>{const i=new d(n),o=$o.wt(this.serializer,i),a=s.getIndexManager(i),u=Oa.wt(i,this.serializer,a,s.referenceDelegate);return new au(r,u,o,a).recalculateAndSaveOverlaysForDocumentKeys(new cn(t,$e.ce),e).next()})})}}function Tu(e){e.createObjectStore(xt,{keyPath:Ct}).createIndex(Nt,Dt,{unique:!0}),e.createObjectStore(Et,{keyPath:"targetId"}).createIndex(St,_t,{unique:!0}),e.createObjectStore(kt)}const Eu="IndexedDbPersistence",Su=18e5,_u=5e3,xu="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",Cu="main";class Nu{constructor(e,t,n,r,s,i,o,a,u,c,l=18){if(this.allowTabSynchronization=e,this.persistenceKey=t,this.clientId=n,this.Ci=s,this.window=i,this.document=o,this.Fi=u,this.Mi=c,this.xi=l,this.ai=null,this.ui=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Oi=null,this.inForeground=!1,this.Ni=null,this.Bi=null,this.Li=Number.NEGATIVE_INFINITY,this.ki=e=>
4524Promise.resolve(),!Nu.v())throw new N(C.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new Wa(this,r),this.qi=t+Cu,this.serializer=new Do(a),this.Ki=new Pe(this.qi,this.xi,new Iu(this.serializer)),this.ci=new Qo,this.li=new La(this.referenceDelegate,this.serializer),this.remoteDocumentCache=Za(this.serializer),this.Pi=new Bo,this.window&&this.window.localStorage?this.Ui=this.window.localStorage:(this.Ui=null,!1===c&&b(Eu,"LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}start(){return this.$i().then(()=>{if(!this.isPrimary&&!this.allowTabSynchronization)throw new N(C.FAILED_PRECONDITION,xu);return this.Wi(),this.Qi(),this.Gi(),this.runTransaction("getHighestListenSequenceNumber","readonly",e=>this.li.getHighestSequenceNumber(e))}).then(e=>{this.ai=new $e(e,this.Fi)}).then(()=>{this.ui=!0}).catch(e=>(this.Ki&&this.Ki.close(),Promise.reject(e)))}zi(e){return this.ki=async t=>{if(this.started)return e(t)},e(this.isPrimary)}setDatabaseDeletedListener(e){this.Ki.K(async t=>{null===t.newVersion&&await e()})}setNetworkEnabled(e){this.networkEnabled!==e&&(this.networkEnabled=e,this.Ci.enqueueAndForget(async()=>{this.started&&await this.$i()}))}$i(){return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",e=>Au(e).put({clientId:this.clientId,updateTimeMs:Date.now(),networkEnabled:this.networkEnabled,inForeground:this.inForeground}).next(()=>{if(this.isPrimary)return this.ji(e).next(e=>{e||(this.isPrimary=!1,this.Ci.enqueueRetryable(()=>this.ki(!1)))})}).next(()=>this.Ji(e)).next(t=>this.isPrimary&&!t?this.Hi(e).next(()=>!1):!!t&&this.Zi(e).next(()=>!0))).catch(e=>{if(Me(e))return w(Eu,"Failed to extend owner lease: ",e),this.isPrimary;if(!this.allowTabSynchronization)throw e;return w(Eu,"Releasing owner lease after error during lease refresh",e),!1}).then(e=>{this.isPrimary!==e&&this.Ci.enqueueRetryable(()=>this.ki(e)),this.isPrimary=e})}ji(e){return Du(e).get(it).next(e=>Ae.resolve(this.Xi(e)))}Yi(e){return Au(e).delete(this.clientId)}async es(){if(this.isPrimary&&!this.ts(this.Li,Su)){this.Li=Date.now();const e=await this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",e=>{const t=ln(e,Rt);return t.J().next(e=>{const n=this.ns(e,Su),r=e.filter(e=>-1===n.indexOf(e));return Ae.forEach(r,e=>t.delete(e.clientId)).next(()=>r)})}).catch(()=>[]);if(this.Ui)for(const t of e)this.Ui.removeItem(this.rs(t.clientId))}}Gi(){this.Bi=this.Ci.enqueueAfterDelay("client_metadata_refresh",4e3,()=>this.$i().then(()=>this.es()).then(()=>this.Gi()))}Xi(e){return!!e&&e.ownerId===this.clientId}Ji(e){return this.Mi?Ae.resolve(!0):Du(e).get(it).next(t=>{if(null!==t&&this.ts(t.leaseTimestampMs,_u)&&!this.ss(t.ownerId)){if(this.Xi(t)&&this.networkEnabled)return!0;if(!this.Xi(t)){if(!t.allowTabSynchronization)throw new N(C.FAILED_PRECONDITION,xu);return!1}}return!(!this.networkEnabled||!this.inForeground)||Au(e).J().next(e=>void 0===this.ns(e,_u).find(e=>{if(this.clientId!==e.clientId){const t=!this.networkEnabled&&e.networkEnabled,n=!this.inForeground&&e.inForeground,r=this.networkEnabled===e.networkEnabled;if(t||n&&r)return!0}return!1}))}).next(e=>(this.isPrimary!==e&&w(Eu,`Client ${e?"is":"is not"} eligible for a primary lease.`),e))}async shutdown(){this.ui=!1,this._s(),this.Bi&&(this.Bi.cancel(),this.Bi=null),this.us(),this.cs(),await this.Ki.runTransaction("shutdown","readwrite",[st,Rt],e=>{const t=new cn(e,$e.ce);return this.Hi(t).next(()=>this.Yi(t))}),this.Ki.close(),this.ls()}ns(e,t){return e.filter(e=>this.ts(e.updateTimeMs,t)&&!this.ss(e.clientId))}hs(){return this.runTransaction("getActiveClients","readonly",e=>Au(e).J().next(e=>this.ns(e,Su).map(e=>e.clientId)))}get started(){return this.ui}getGlobalsCache(){return this.ci}getMutationQueue(e,t){return Oa.wt(e,this.serializer,t,this.referenceDelegate)}getTargetCache(){return this.li}getRemoteDocumentCache(){return this.remoteDocumentCache}getIndexManager(e){return new Ia(e,this.serializer.yt.databaseId)}getDocumentOverlayCache(e){return $o.wt(this.serializer,e)}getBundleCache(){return this.Pi}runTransaction(e,t,n){w(Eu,"Starting transaction:",e);const r="readonly"===t?"readonly":"readwrite",s=(function(e){return 18===e?un:17===e?an:16===e?on:15===e?sn:14===e?rn:13===e?nn:12===e?tn:11===e?en:void T(60245)})(this.xi);let i;
4524return this.Ki.runTransaction(e,r,s,r=>(i=new cn(r,this.ai?this.ai.next():$e.ce),"readwrite-primary"===t?this.ji(i).next(e=>!!e||this.Ji(i)).next(t=>{if(!t)throw b(`Failed to obtain primary lease for action '${e}'.`),this.isPrimary=!1,this.Ci.enqueueRetryable(()=>this.ki(!1)),new N(C.FAILED_PRECONDITION,Ce);return n(i)}).next(e=>this.Zi(i).next(()=>e)):this.Ps(i).next(()=>n(i)))).then(e=>(i.raiseOnCommittedEvent(),e))}Ps(e){return Du(e).get(it).next(e=>{if(null!==e&&this.ts(e.leaseTimestampMs,_u)&&!this.ss(e.ownerId)&&!this.Xi(e)&&!(this.Mi||this.allowTabSynchronization&&e.allowTabSynchronization))throw new N(C.FAILED_PRECONDITION,xu)})}Zi(e){const t={ownerId:this.clientId,allowTabSynchronization:this.allowTabSynchronization,leaseTimestampMs:Date.now()};return Du(e).put(it,t)}static v(){return Pe.v()}Hi(e){const t=Du(e);return t.get(it).next(e=>this.Xi(e)?(w(Eu,"Releasing primary lease."),t.delete(it)):Ae.resolve())}ts(e,t){const n=Date.now();return!(e<n-t||e>n&&(b(`Detected an update time that is in the future: ${e} > ${n}`),1))}Wi(){null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Ni=()=>{this.Ci.enqueueAndForget(()=>(this.inForeground="visible"===this.document.visibilityState,this.$i()))},this.document.addEventListener("visibilitychange",this.Ni),this.inForeground="visible"===this.document.visibilityState)}us(){this.Ni&&(this.document.removeEventListener("visibilitychange",this.Ni),this.Ni=null)}Qi(){"function"==typeof this.window?.addEventListener&&(this.Oi=()=>{this._s();const e=/(?:Version|Mobile)\/1[456]/;(0,u.isSafari)()&&(navigator.appVersion.match(e)||navigator.userAgent.match(e))&&this.Ci.enterRestrictedMode(!0),this.Ci.enqueueAndForget(()=>this.shutdown())},this.window.addEventListener("pagehide",this.Oi))}cs(){this.Oi&&(this.window.removeEventListener("pagehide",this.Oi),this.Oi=null)}ss(e){try{const t=null!==this.Ui?.getItem(this.rs(e));return w(Eu,`Client '${e}' ${t?"is":"is not"} zombied in LocalStorage`),t}catch(e){return b(Eu,"Failed to get zombied client id.",e),!1}}_s(){if(this.Ui)try{this.Ui.setItem(this.rs(this.clientId),String(Date.now()))}catch(e){b("Failed to set zombie client id.",e)}}ls(){if(this.Ui)try{this.Ui.removeItem(this.rs(this.clientId))}catch(e){}}rs(e){return`firestore_zombie_${this.persistenceKey}_${e}`}}function Du(e){return ln(e,st)}function Au(e){return ln(e,Rt)}function ku(e,t){let n=e.projectId;return e.isDefaultDatabase||(n+="."+e.database),"firestore/"+t+"/"+n+"/"
4525/**
4526   * @license
4527   * Copyright 2017 Google LLC
4528   *
4529   * Licensed under the Apache License, Version 2.0 (the "License");
4530   * you may not use this file except in compliance with the License.
4531   * You may obtain a copy of the License at
4532   *
4533   *   http://www.apache.org/licenses/LICENSE-2.0
4534   *
4535   * Unless required by applicable law or agreed to in writing, software
4536   * distributed under the License is distributed on an "AS IS" BASIS,
4537   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4538   * See the License for the specific language governing permissions and
4539   * limitations under the License.
4540   */}class Ou{constructor(e,t,n,r){this.targetId=e,this.fromCache=t,this.Ts=n,this.Es=r}static Is(e,t){let n=Ds(),r=Ds();for(const e of t.docChanges)switch(e.type){case 0:n=n.add(e.doc.key);break;case 1:r=r.add(e.doc.key)}return new Ou(e,t.fromCache,n,r)}}
4541/**
4542   * @license
4543   * Copyright 2023 Google LLC
4544   *
4545   * Licensed under the Apache License, Version 2.0 (the "License");
4546   * you may not use this file except in compliance with the License.
4547   * You may obtain a copy of the License at
4548   *
4549   *   http://www.apache.org/licenses/LICENSE-2.0
4550   *
4551   * Unless required by applicable law or agreed to in writing, software
4552   * distributed under the License is distributed on an "AS IS" BASIS,
4553   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4554   * See the License for the specific language governing permissions and
4555   * limitations under the License.
4556   */class Pu{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}
4557/**
4558   * @license
4559   * Copyright 2019 Google LLC
4560   *
4561   * Licensed under the Apache License, Version 2.0 (the "License");
4562   * you may not use this file except in compliance with the License.
4563   * You may obtain a copy of the License at
4564   *
4565   *   http://www.apache.org/licenses/LICENSE-2.0
4566   *
4567   * Unless required by applicable law or agreed to in writing, software
4568   * distributed under the License is distributed on an "AS IS" BASIS,
4569   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4570   * See the License for the specific language governing permissions and
4571   * limitations under the License.
4572   */class Ru{constructor(){this.Rs=!1,this.As=!1,this.Vs=100,this.ds=(0,u.isSafari)()?8:Re((0,u.getUA)())>0?6:4}initialize(e,t){this.fs=e,this.indexManager=t,this.Rs=!0}getDocumentsMatchingQuery(e,t,n,r){const s={result:null};return this.gs(e,t).next(e=>{s.result=e}).next(()=>{if(!s.result)return this.ps(e,t,r,n).next(e=>{s.result=e})}).next(()=>{if(s.result)return;const n=new Pu;return this.ys(e,t,n).next(r=>{if(s.result=r,this.As)return this.ws(e,t,n,r.size)})}).next(()=>s.result)}ws(e,t,n,r){return n.documentReadCount<this.Vs?(p()<=l.LogLevel.DEBUG&&w("QueryEngine","SDK will not create cache indexes for query:",fs(t),"since it only creates cache indexes for collection contains","more than or equal to",this.Vs,"documents"),Ae.resolve()):(p()<=l.LogLevel.DEBUG&&w("QueryEngine","Query:",fs(t),"scans",n.documentReadCount,"local documents and returns",r,"documents as results."),n.documentReadCount>this.ds*r?(p()<=l.LogLevel.DEBUG&&w("QueryEngine","The SDK decides to create cache indexes for query:",fs(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,rs(t))):Ae.resolve())}gs(e,t){if(Zr(t))return Ae.resolve(null);let n=rs(t);return this.indexManager.getIndexType(e,n).next(r=>0===r?null:(null!==t.limit&&1===r&&(t=us(t,null,"F"),n=rs(t)),this.indexManager.getDocumentsMatchingTarget(e,n).next(r=>{const s=Ds(...r);return this.fs.getDocuments(e,s).next(r=>this.indexManager.getMinOffset(e,n).next(n=>{const i=this.Ss(t,r);return this.bs(t,i,s,n.readTime)?this.gs(e,us(t,null,"F")):this.Ds(e,i,t,n)}))})))}ps(e,t,n,r){return Zr(t)||r.isEqual(me.min())?Ae.resolve(null):this.fs.getDocuments(e,n).next(s=>{const i=this.Ss(t,s);return this.bs(t,i,n,r)?Ae.resolve(null):(p()<=l.LogLevel.DEBUG&&w("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),fs(t)),this.Ds(e,i,t,Ee(r,ge)).next(e=>e))})}Ss(e,t){let n=new wn(ps(e));return t.forEach((t,r)=>{ms(e,r)&&(n=n.add(r))}),n}bs(e,t,n,r){if(null===e.limit)return!1;if(n.size!==t.size)return!0;const s="F"===e.limitType?t.last():t.first();return!!s&&(s.hasPendingWrites||s.version.compareTo(r)>0)}ys(e,t,n){return p()<=l.LogLevel.DEBUG&&w("QueryEngine","Using full collection scan to execute query:",fs(t)),this.fs.getDocumentsMatchingQuery(e,t,_e.min(),n)}Ds(e,t,n,r){return this.fs.getDocumentsMatchingQuery(e,n,r).next(e=>(t.forEach(t=>{e=e.insert(t.key,t)}),e))}}
4573/**
4574   * @license
4575   * Copyright 2020 Google LLC
4576   *
4577   * Licensed under the Apache License, Version 2.0 (the "License");
4578   * you may not use this file except in compliance with the License.
4579   * You may obtain a copy of the License at
4580   *
4581   *   http://www.apache.org/licenses/LICENSE-2.0
4582   *
4583   * Unless required by applicable law or agreed to in writing, software
4584   * distributed under the License is distributed on an "AS IS" BASIS,
4585   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4586   * See the License for the specific language governing permissions and
4587   * limitations under the License.
4588   */const Vu="LocalStore",Fu=3e8;class Mu{constructor(e,t,n,r){this.persistence=e,this.Cs=t,this.serializer=r,this.vs=new gn(q),this.Fs=new ws(e=>Kr(e),$r),this.Ms=new Map,this.xs=e.getRemoteDocumentCache(),this.li=e.getTargetCache(),this.Pi=e.getBundleCache(),this.Os(n)}Os(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new au(this.xs,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.xs.setIndexManager(this.indexManager),this.Cs.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.vs))}}function Lu(e,t,n,r){return new Mu(e,t,n,r)}async function Uu(e,t){const n=x(e);return await n.persistence.runTransaction("Handle user change","readonly",e=>{let r;
4588return n.mutationQueue.getAllMutationBatches(e).next(s=>(r=s,n.Os(t),n.mutationQueue.getAllMutationBatches(e))).next(t=>{const s=[],i=[];let o=Ds();for(const e of r){s.push(e.batchId);for(const t of e.mutations)o=o.add(t.key)}for(const e of t){i.push(e.batchId);for(const t of e.mutations)o=o.add(t.key)}return n.localDocuments.getDocuments(e,o).next(e=>({Ns:e,removedBatchIds:s,addedBatchIds:i}))})})}function ju(e,t){const n=x(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",e=>{const r=t.batch.keys(),s=n.xs.newChangeBuffer({trackRemovals:!0});return(function(e,t,n,r){const s=n.batch,i=s.keys();let o=Ae.resolve();return i.forEach(e=>{o=o.next(()=>r.getEntry(t,e)).next(t=>{const i=n.docVersions.get(e);S(null!==i,48541),t.version.compareTo(i)<0&&(s.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))})}),o.next(()=>e.mutationQueue.removeMutationBatch(t,s))})(n,e,t,s).next(()=>s.apply(e)).next(()=>n.mutationQueue.performConsistencyCheck(e)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,(function(e){let t=Ds();for(let n=0;n<e.mutationResults.length;++n)e.mutationResults[n].transformResults.length>0&&(t=t.add(e.batch.mutations[n].key));return t})(t))).next(()=>n.localDocuments.getDocuments(e,r))})}function qu(e){const t=x(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",e=>t.li.getLastRemoteSnapshotVersion(e))}function Bu(e,t){const n=x(e),r=t.snapshotVersion;let s=n.vs;return n.persistence.runTransaction("Apply remote event","readwrite-primary",e=>{const i=n.xs.newChangeBuffer({trackRemovals:!0});s=n.vs;const o=[];
4588t.targetChanges.forEach((i,a)=>{const u=s.get(a);if(!u)return;o.push(n.li.removeMatchingKeys(e,i.removedDocuments,a).next(()=>n.li.addMatchingKeys(e,i.addedDocuments,a)));let c=u.withSequenceNumber(e.currentSequenceNumber);null!==t.targetMismatches.get(a)?c=c.withResumeToken(Sn.EMPTY_BYTE_STRING,me.min()).withLastLimboFreeSnapshotVersion(me.min()):i.resumeToken.approximateByteSize()>0&&(c=c.withResumeToken(i.resumeToken,r)),s=s.insert(a,c),(function(e,t,n){if(0===e.resumeToken.approximateByteSize())return!0;if(t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=Fu)return!0;return n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0})(u,c,i)&&o.push(n.li.updateTargetData(e,c))});let a=vs(),u=Ds();if(t.documentUpdates.forEach(r=>{t.resolvedLimboDocuments.has(r)&&o.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))}),o.push(zu(e,i,t.documentUpdates).next(e=>{a=e.Bs,u=e.Ls})),!r.isEqual(me.min())){const t=n.li.getLastRemoteSnapshotVersion(e).next(t=>n.li.setTargetsMetadata(e,e.currentSequenceNumber,r));o.push(t)}return Ae.waitFor(o).next(()=>i.apply(e)).next(()=>n.localDocuments.getLocalViewOfDocuments(e,a,u)).next(()=>a)}).then(e=>(n.vs=s,e))}function zu(e,t,n){let r=Ds(),s=Ds();return n.forEach(e=>r=r.add(e)),t.getEntries(e,r).next(e=>{let r=vs();return n.forEach((n,i)=>{const o=e.get(n);i.isFoundDocument()!==o.isFoundDocument()&&(s=s.add(n)),i.isNoDocument()&&i.version.isEqual(me.min())?(t.removeEntry(n,i.readTime),r=r.insert(n,i)):!o.isValidDocument()||i.version.compareTo(o.version)>0||0===i.version.compareTo(o.version)&&o.hasPendingWrites?(t.addEntry(i),r=r.insert(n,i)):w(Vu,"Ignoring outdated watch update for ",n,". Current version:",o.version," Watch version:",i.version)}),{Bs:r,Ls:s}})}function Ku(e,t){const n=x(e);return n.persistence.runTransaction("Get next mutation batch","readonly",e=>(void 0===t&&(t=Ge),n.mutationQueue.getNextMutationBatchAfterBatchId(e,t)))}function $u(e,t){const n=x(e);return n.persistence.runTransaction("Allocate target","readwrite",e=>{let r;return n.li.getTargetData(e,t).next(s=>s?(r=s,Ae.resolve(r)):n.li.allocateTargetId(e).next(s=>(r=new No(t,s,"TargetPurposeListen",e.currentSequenceNumber),n.li.addTargetData(e,r).next(()=>r))))}).then(e=>{const r=n.vs.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.vs=n.vs.insert(e.targetId,e),n.Fs.set(t,e.targetId)),e})}async function Gu(e,t,n){const r=x(e),s=r.vs.get(t),i=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",i,e=>r.persistence.referenceDelegate.removeTarget(e,s))}catch(e){if(!Me(e))throw e;w(Vu,`Failed to update sequence numbers for target ${t}: ${e}`)}r.vs=r.vs.remove(t),r.Fs.delete(s.target)}function Qu(e,t,n){const r=x(e);let s=me.min(),i=Ds();return r.persistence.runTransaction("Execute query","readwrite",e=>(function(e,t,n){const r=x(e),s=r.Fs.get(n);return void 0!==s?Ae.resolve(r.vs.get(s)):r.li.getTargetData(t,n)})(r,e,rs(t)).next(t=>{if(t)return s=t.lastLimboFreeSnapshotVersion,r.li.getMatchingKeysForTargetId(e,t.targetId).next(e=>{i=e})}).next(()=>r.Cs.getDocumentsMatchingQuery(e,t,n?s:me.min(),n?i:Ds())).next(e=>
4588(Ju(r,gs(t),e),{documents:e,ks:i})))}function Hu(e,t){const n=x(e),r=x(n.li),s=n.vs.get(t);return s?Promise.resolve(s.target):n.persistence.runTransaction("Get target data","readonly",e=>r.At(e,t).next(e=>e?e.target:null))}function Wu(e,t){const n=x(e),r=n.Ms.get(t)||me.min();return n.persistence.runTransaction("Get new document changes","readonly",e=>n.xs.getAllFromCollectionGroup(e,t,Ee(r,ge),Number.MAX_SAFE_INTEGER)).then(e=>(Ju(n,t,e),e))}function Ju(e,t,n){let r=e.Ms.get(t)||me.min();n.forEach((e,t)=>{t.readTime.compareTo(r)>0&&(r=t.readTime)}),e.Ms.set(t,r)}async function Yu(e,t,n,r){const s=x(e);let i=Ds(),o=vs();for(const e of n){const n=t.qs(e.metadata.name);e.document&&(i=i.add(n));const r=t.Ks(e);r.setReadTime(t.Us(e.metadata.readTime)),o=o.insert(n,r)}const a=s.xs.newChangeBuffer({trackRemovals:!0}),u=await $u(s,(function(e){return rs(Xr(Y.fromString(`__bundle__/docs/${e}`)))})(r));return s.persistence.runTransaction("Apply bundle documents","readwrite",e=>zu(e,a,o).next(t=>(a.apply(e),t)).next(t=>s.li.removeMatchingKeysForTargetId(e,u.targetId).next(()=>s.li.addMatchingKeys(e,i,u.targetId)).next(()=>s.localDocuments.getLocalViewOfDocuments(e,t.Bs,t.Ls)).next(()=>t.Bs)))}async function Xu(e,t,n=Ds()){const r=await $u(e,rs(Lo(t.bundledQuery))),s=x(e);return s.persistence.runTransaction("Save named query","readwrite",e=>{const i=$i(t.readTime);if(r.snapshotVersion.compareTo(i)>=0)return s.Pi.saveNamedQuery(e,t);const o=r.withResumeToken(Sn.EMPTY_BYTE_STRING,i);return s.vs=s.vs.insert(o.targetId,o),s.li.updateTargetData(e,o).next(()=>s.li.removeMatchingKeysForTargetId(e,r.targetId)).next(()=>s.li.addMatchingKeys(e,n,r.targetId)).next(()=>s.Pi.saveNamedQuery(e,t))})}
4589/**
4590   * @license
4591   * Copyright 2019 Google LLC
4592   *
4593   * Licensed under the Apache License, Version 2.0 (the "License");
4594   * you may not use this file except in compliance with the License.
4595   * You may obtain a copy of the License at
4596   *
4597   *   http://www.apache.org/licenses/LICENSE-2.0
4598   *
4599   * Unless required by applicable law or agreed to in writing, software
4600   * distributed under the License is distributed on an "AS IS" BASIS,
4601   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4602   * See the License for the specific language governing permissions and
4603   * limitations under the License.
4604   */const Zu="firestore_clients";function ec(e,t){return`${Zu}_${e}_${t}`}const tc="firestore_mutations";function nc(e,t,n){let r=`${tc}_${e}_${n}`;return t.isAuthenticated()&&(r+=`_${t.uid}`),r}const rc="firestore_targets";function sc(e,t){return`${rc}_${e}_${t}`}
4605/**
4606   * @license
4607   * Copyright 2018 Google LLC
4608   *
4609   * Licensed under the Apache License, Version 2.0 (the "License");
4610   * you may not use this file except in compliance with the License.
4611   * You may obtain a copy of the License at
4612   *
4613   *   http://www.apache.org/licenses/LICENSE-2.0
4614   *
4615   * Unless required by applicable law or agreed to in writing, software
4616   * distributed under the License is distributed on an "AS IS" BASIS,
4617   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4618   * See the License for the specific language governing permissions and
4619   * limitations under the License.
4620   */const ic="SharedClientState";class oc{constructor(e,t,n,r){this.user=e,this.batchId=t,this.state=n,this.error=r}static $s(e,t,n){const r=JSON.parse(n);let s,i="object"==typeof r&&-1!==["pending","acknowledged","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error);return i&&r.error&&(i="string"==typeof r.error.message&&"string"==typeof r.error.code,i&&(s=new N(r.error.code,r.error.message))),i?new oc(e,t,r.state,s):(b(ic,`Failed to parse mutation state for ID '${t}': ${n}`),null)}Ws(){const e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class ac{constructor(e,t,n){this.targetId=e,this.state=t,this.error=n}static $s(e,t){const n=JSON.parse(t);let r,s="object"==typeof n&&-1!==["not-current","current","rejected"].indexOf(n.state)&&(void 0===n.error||"object"==typeof n.error);return s&&n.error&&(s="string"==typeof n.error.message&&"string"==typeof n.error.code,s&&(r=new N(n.error.code,n.error.message))),s?new ac(e,n.state,r):(b(ic,`Failed to parse target state for ID '${e}': ${t}`),null)}Ws(){const e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class uc{constructor(e,t){this.clientId=e,this.activeTargetIds=t}static $s(e,t){const n=JSON.parse(t);let r="object"==typeof n&&n.activeTargetIds instanceof Array,s=ks();for(let e=0;r&&e<n.activeTargetIds.length;++e)r=Je(n.activeTargetIds[e]),s=s.add(n.activeTargetIds[e]);
4620return r?new uc(e,s):(b(ic,`Failed to parse client data for instance '${e}': ${t}`),null)}}class cc{constructor(e,t){this.clientId=e,this.onlineState=t}static $s(e){const t=JSON.parse(e);return"object"==typeof t&&-1!==["Unknown","Online","Offline"].indexOf(t.onlineState)&&"string"==typeof t.clientId?new cc(t.clientId,t.onlineState):(b(ic,`Failed to parse online state: ${e}`),null)}}class lc{constructor(){this.activeTargetIds=ks()}Qs(e){this.activeTargetIds=this.activeTargetIds.add(e)}Gs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Ws(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class hc{constructor(e,t,n,r,s){this.window=e,this.Ci=t,this.persistenceKey=n,this.zs=r,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.js=this.Js.bind(this),this.Hs=new gn(q),this.started=!1,this.Zs=[];const i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=s,this.Xs=ec(this.persistenceKey,this.zs),this.Ys=(function(e){return`firestore_sequence_number_${e}`})(this.persistenceKey),this.Hs=this.Hs.insert(this.zs,new lc),this.eo=new RegExp(`^${Zu}_${i}_([^_]*)$`),this.no=new RegExp(`^${tc}_${i}_(\\d+)(?:_(.*))?$`),this.ro=new RegExp(`^${rc}_${i}_(\\d+)$`),this.io=(function(e){return`firestore_online_state_${e}`})(this.persistenceKey),this.so=(function(e){return`firestore_bundle_loaded_v2_${e}`})(this.persistenceKey),this.window.addEventListener("storage",this.js)}static v(e){return!(!e||!e.localStorage)}async start(){const e=await this.syncEngine.hs();for(const t of e){if(t===this.zs)continue;const e=this.getItem(ec(this.persistenceKey,t));if(e){const n=uc.$s(t,e);n&&(this.Hs=this.Hs.insert(n.clientId,n))}}this.oo();const t=this.storage.getItem(this.io);if(t){const e=this._o(t);e&&this.ao(e)}for(const e of this.Zs)this.Js(e);this.Zs=[],this.window.addEventListener("pagehide",()=>this.shutdown()),this.started=!0}writeSequenceNumber(e){this.setItem(this.Ys,JSON.stringify(e))}getAllActiveQueryTargets(){return this.uo(this.Hs)}isActiveQueryTarget(e){let t=!1;return this.Hs.forEach((n,r)=>{r.activeTargetIds.has(e)&&(t=!0)}),t}addPendingMutation(e){this.co(e,"pending")}updateMutationState(e,t,n){this.co(e,t,n),this.lo(e)}addLocalQueryTarget(e,t=!0){let n="not-current";if(this.isActiveQueryTarget(e)){const t=this.storage.getItem(sc(this.persistenceKey,e));if(t){const r=ac.$s(e,t);r&&(n=r.state)}}return t&&this.ho.Qs(e),this.oo(),n}removeLocalQueryTarget(e){this.ho.Gs(e),this.oo()}isLocalQueryTarget(e){return this.ho.activeTargetIds.has(e)}clearQueryState(e){this.removeItem(sc(this.persistenceKey,e))}updateQueryState(e,t,n){this.Po(e,t,n)}handleUserChange(e,t,n){t.forEach(e=>{this.lo(e)}),this.currentUser=e,n.forEach(e=>{this.addPendingMutation(e)})}setOnlineState(e){this.To(e)}notifyBundleLoaded(e){this.Eo(e)}shutdown(){this.started&&(this.window.removeEventListener("storage",this.js),this.removeItem(this.Xs),this.started=!1)}getItem(e){const t=this.storage.getItem(e);return w(ic,"READ",e,t),t}setItem(e,t){w(ic,"SET",e,t),this.storage.setItem(e,t)}removeItem(e){w(ic,"REMOVE",e),this.storage.removeItem(e)}Js(e){const t=e;if(t.storageArea===this.storage){if(w(ic,"EVENT",t.key,t.newValue),t.key===this.Xs)return void b("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Ci.enqueueRetryable(async()=>{if(this.started){if(null!==t.key)if(this.eo.test(t.key)){if(null==t.newValue){const e=this.Io(t.key);return this.Ro(e,null)}{const e=this.Ao(t.key,t.newValue);if(e)return this.Ro(e.clientId,e)}}else if(this.no.test(t.key)){if(null!==t.newValue){const e=this.Vo(t.key,t.newValue);if(e)return this.mo(e)}}else if(this.ro.test(t.key)){if(null!==t.newValue){const e=this.fo(t.key,t.newValue);if(e)return this.po(e)}}else if(t.key===this.io){if(null!==t.newValue){const e=this._o(t.newValue);if(e)return this.ao(e)}}else if(t.key===this.Ys){const e=(function(e){let t=$e.ce;if(null!=e)try{const n=JSON.parse(e);S("number"==typeof n,30636,{yo:e}),t=n}catch(e){b(ic,"Failed to read sequence number from WebStorage",e)}return t})(t.newValue);e!==$e.ce&&this.sequenceNumberHandler(e)}else if(t.key===this.so){const e=this.wo(t.newValue);await Promise.all(e.map(e=>this.syncEngine.So(e)))}}else this.Zs.push(t)})}}get ho(){return this.Hs.get(this.zs)}oo(){this.setItem(this.Xs,this.ho.Ws())}
vendor: 4,306 bytes, lines 4620-4663
4620co(e,t,n){const r=new oc(this.currentUser,e,t,n),s=nc(this.persistenceKey,this.currentUser,e);this.setItem(s,r.Ws())}lo(e){const t=nc(this.persistenceKey,this.currentUser,e);this.removeItem(t)}To(e){const t={clientId:this.zs,onlineState:e};this.storage.setItem(this.io,JSON.stringify(t))}Po(e,t,n){const r=sc(this.persistenceKey,e),s=new ac(e,t,n);this.setItem(r,s.Ws())}Eo(e){const t=JSON.stringify(Array.from(e));this.setItem(this.so,t)}Io(e){const t=this.eo.exec(e);return t?t[1]:null}Ao(e,t){const n=this.Io(e);return uc.$s(n,t)}Vo(e,t){const n=this.no.exec(e),r=Number(n[1]),s=void 0!==n[2]?n[2]:null;return oc.$s(new d(s),r,t)}fo(e,t){const n=this.ro.exec(e),r=Number(n[1]);return ac.$s(r,t)}_o(e){return cc.$s(e)}wo(e){return JSON.parse(e)}async mo(e){if(e.user.uid===this.currentUser.uid)return this.syncEngine.bo(e.batchId,e.state,e.error);w(ic,`Ignoring mutation for non-active user ${e.user.uid}`)}po(e){return this.syncEngine.Do(e.targetId,e.state,e.error)}Ro(e,t){const n=t?this.Hs.insert(e,t):this.Hs.remove(e),r=this.uo(this.Hs),s=this.uo(n),i=[],o=[];return s.forEach(e=>{r.has(e)||i.push(e)}),r.forEach(e=>{s.has(e)||o.push(e)}),this.syncEngine.Co(i,o).then(()=>{this.Hs=n})}ao(e){this.Hs.get(e.clientId)&&this.onlineStateHandler(e.onlineState)}uo(e){let t=ks();return e.forEach((e,n)=>{t=t.unionWith(n.activeTargetIds)}),t}}class dc{constructor(){this.vo=new lc,this.Fo={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e,t=!0){return t&&this.vo.Qs(e),this.Fo[e]||"not-current"}updateQueryState(e,t,n){this.Fo[e]=t}removeLocalQueryTarget(e){this.vo.Gs(e)}isLocalQueryTarget(e){return this.vo.activeTargetIds.has(e)}clearQueryState(e){delete this.Fo[e]}getAllActiveQueryTargets(){return this.vo.activeTargetIds}isActiveQueryTarget(e){return this.vo.activeTargetIds.has(e)}start(){return this.vo=new lc,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}
4621/**
4622   * @license
4623   * Copyright 2019 Google LLC
4624   *
4625   * Licensed under the Apache License, Version 2.0 (the "License");
4626   * you may not use this file except in compliance with the License.
4627   * You may obtain a copy of the License at
4628   *
4629   *   http://www.apache.org/licenses/LICENSE-2.0
4630   *
4631   * Unless required by applicable law or agreed to in writing, software
4632   * distributed under the License is distributed on an "AS IS" BASIS,
4633   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4634   * See the License for the specific language governing permissions and
4635   * limitations under the License.
4636   */class fc{Mo(e){}shutdown(){}}
4637/**
4638   * @license
4639   * Copyright 2019 Google LLC
4640   *
4641   * Licensed under the Apache License, Version 2.0 (the "License");
4642   * you may not use this file except in compliance with the License.
4643   * You may obtain a copy of the License at
4644   *
4645   *   http://www.apache.org/licenses/LICENSE-2.0
4646   *
4647   * Unless required by applicable law or agreed to in writing, software
4648   * distributed under the License is distributed on an "AS IS" BASIS,
4649   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4650   * See the License for the specific language governing permissions and
4651   * limitations under the License.
4652   */const mc="ConnectivityMonitor";class gc{constructor(){this.xo=()=>this.Oo(),this.No=()=>this.Bo(),this.Lo=[],this.ko()}Mo(e){this.Lo.push(e)}shutdown(){window.removeEventListener("online",this.xo),window.removeEventListener("offline",this.No)}ko(){window.addEventListener("online",this.xo),window.addEventListener("offline",this.No)}Oo(){w(mc,"Network connectivity changed: AVAILABLE");for(const e of this.Lo)e(0)}Bo(){w(mc,"Network connectivity changed: UNAVAILABLE");for(const e of this.Lo)e(1)}static v(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}
4653/**
4654   * @license
4655   * Copyright 2023 Google LLC
4656   *
4657   * Licensed under the Apache License, Version 2.0 (the "License");
4658   * you may not use this file except in compliance with the License.
4659   * You may obtain a copy of the License at
4660   *
4661   *   http://www.apache.org/licenses/LICENSE-2.0
4662   *
4663   * Unless required by applicable law or agreed to in writing, softw
4663are
4664   * distributed under the License is distributed on an "AS IS" BASIS,
4665   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4666   * See the License for the specific language governing permissions and
4667   * limitations under the License.
4668   */let pc=null;function yc(){return null===pc?pc=268435456+Math.round(2147483648*Math.random()):pc++,"0x"+pc.toString(16)
4669/**
4670   * @license
4671   * Copyright 2020 Google LLC
4672   *
4673   * Licensed under the Apache License, Version 2.0 (the "License");
4674   * you may not use this file except in compliance with the License.
4675   * You may obtain a copy of the License at
4676   *
4677   *   http://www.apache.org/licenses/LICENSE-2.0
4678   *
4679   * Unless required by applicable law or agreed to in writing, software
4680   * distributed under the License is distributed on an "AS IS" BASIS,
4681   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4682   * See the License for the specific language governing permissions and
4683   * limitations under the License.
4684   */}const wc="RestConnection",bc={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery",ExecutePipeline:"executePipeline"};class vc{get qo(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const t=e.ssl?"https":"http",n=encodeURIComponent(this.databaseId.projectId),r=encodeURIComponent(this.databaseId.database);this.Ko=t+"://"+e.host,this.Uo=`projects/${n}/databases/${r}`,this.$o=this.databaseId.database===Mn?`project_id=${n}`:`project_id=${n}&database_id=${r}`}Wo(e,t,n,r,s){const i=yc(),o=this.Qo(e,t.toUriEncodedString());w(wc,`Sending RPC '${e}' ${i}:`,o,n);const a={"google-cloud-resource-prefix":this.Uo,"x-goog-request-params":this.$o};this.Go(a,r,s);const{host:c}=new URL(o),l=(0,u.isCloudWorkstation)(c);return this.zo(e,o,a,n,l).then(t=>(w(wc,`Received RPC '${e}' ${i}: `,t),t),t=>{throw v(wc,`RPC '${e}' ${i} failed with error: `,t,"url: ",o,"request:",n),t})}jo(e,t,n,r,s,i){return this.Wo(e,t,n,r,s)}Go(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+f,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((t,n)=>e[n]=t),n&&n.headers.forEach((t,n)=>e[n]=t)}Qo(e,t){const n=bc[e];let r=`${this.Ko}/v1/${t}:${n}`;return this.databaseInfo.apiKey&&(r=`${r}?key=${encodeURIComponent(this.databaseInfo.apiKey)}`),r}terminate(){}}
4685/**
4686   * @license
4687   * Copyright 2017 Google LLC
4688   *
4689   * Licensed under the Apache License, Version 2.0 (the "License");
4690   * you may not use this file except in compliance with the License.
4691   * You may obtain a copy of the License at
4692   *
4693   *   http://www.apache.org/licenses/LICENSE-2.0
4694   *
4695   * Unless required by applicable law or agreed to in writing, software
4696   * distributed under the License is distributed on an "AS IS" BASIS,
4697   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4698   * See the License for the specific language governing permissions and
4699   * limitations under the License.
4700   */class Ic{constructor(e){this.Jo=e.Jo,this.Ho=e.Ho}Zo(e){this.Xo=e}Yo(e){this.e_=e}t_(e){this.n_=e}onMessage(e){this.r_=e}close(){this.Ho()}send(e){this.Jo(e)}i_(){this.Xo()}s_(){this.e_()}o_(e){this.n_(e)}__(e){this.r_(e)}}
4701/**
4702   * @license
4703   * Copyright 2017 Google LLC
4704   *
4705   * Licensed under the Apache License, Version 2.0 (the "License");
4706   * you may not use this file except in compliance with the License.
4707   * You may obtain a copy of the License at
4708   *
4709   *   http://www.apache.org/licenses/LICENSE-2.0
4710   *
4711   * Unless required by applicable law or agreed to in writing, software
4712   * distributed under the License is distributed on an "AS IS" BASIS,
4713   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4714   * See the License for the specific language governing permissions and
4715   * limitations under the License.
4716   */const Tc="WebChannelConnection",Ec=(e,t,n)=>{e.listen(t,e=>{try{n(e)}catch(e){setTimeout(()=>{throw e},0)}})};class Sc extends vc{constructor(e){super(e),this.a_=[],this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}static u_(){if(!Sc.c_){const e=(0,h.getStatEventTarget)();Ec(e,h.Event.STAT_EVENT,e=>{e.stat===h.Stat.PROXY?w(Tc,"STAT_EVENT: detected buffering proxy"):e.stat===h.Stat.NOPROXY&&w(Tc,"STAT_EVENT: detected no buffering proxy")}),Sc.c_=!0}}
4716zo(e,t,n,r,s){const i=yc();return new Promise((s,o)=>{const a=new h.XhrIo;a.setWithCredentials(!0),a.listenOnce(h.EventType.COMPLETE,()=>{try{switch(a.getLastErrorCode()){case h.ErrorCode.NO_ERROR:const t=a.getResponseJson();w(Tc,`XHR for RPC '${e}' ${i} received:`,JSON.stringify(t)),s(t);break;case h.ErrorCode.TIMEOUT:w(Tc,`RPC '${e}' ${i} timed out`),o(new N(C.DEADLINE_EXCEEDED,"Request time out"));break;case h.ErrorCode.HTTP_ERROR:const n=a.getStatus();if(w(Tc,`RPC '${e}' ${i} failed with status:`,n,"response text:",a.getResponseText()),n>0){let e=a.getResponseJson();Array.isArray(e)&&(e=e[0]);const t=e?.error;if(t&&t.status&&t.message){const e=(function(e){const t=e.toLowerCase().replace(/_/g,"-");return Object.values(C).indexOf(t)>=0?t:C.UNKNOWN})(t.status);o(new N(e,t.message))}else o(new N(C.UNKNOWN,"Server responded with status "+a.getStatus()))}else o(new N(C.UNAVAILABLE,"Connection failed."));break;default:T(9055,{l_:e,streamId:i,h_:a.getLastErrorCode(),P_:a.getLastError()})}}finally{w(Tc,`RPC '${e}' ${i} completed.`)}});const u=JSON.stringify(r);w(Tc,`RPC '${e}' ${i} sending request:`,r),a.send(t,"POST",u,n,15)})}T_(e,t,n){const r=yc(),s=[this.Ko,"/","google.firestore.v1.Firestore","/",e,"/channel"],i=this.createWebChannelTransport(),o={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},a=this.longPollingOptions.timeoutSeconds;void 0!==a&&(o.longPollingTimeout=Math.round(1e3*a)),this.useFetchStreams&&(o.useFetchStreams=!0),this.Go(o.initMessageHeaders,t,n),o.encodeInitMessageHeaders=!0;const u=s.join("");w(Tc,`Creating RPC '${e}' stream ${r}: ${u}`,o);const c=i.createWebChannel(u,o);this.E_(c);let l=!1,d=!1;const f=new Ic({Jo:t=>{d?w(Tc,`Not sending because RPC '${e}' stream ${r} is closed:`,t):(l||(w(Tc,`Opening RPC '${e}' stream ${r} transport.`),c.open(),l=!0),w(Tc,`RPC '${e}' stream ${r} sending:`,t),c.send(t))},Ho:()=>c.close()});return Ec(c,h.WebChannel.EventType.OPEN,()=>{d||(w(Tc,`RPC '${e}' stream ${r} transport opened.`),f.i_())}),Ec(c,h.WebChannel.EventType.CLOSE,()=>{d||(d=!0,w(Tc,`RPC '${e}' stream ${r} transport closed`),f.o_(),this.I_(c))}),Ec(c,h.WebChannel.EventType.ERROR,t=>{d||(d=!0,v(Tc,`RPC '${e}' stream ${r} transport errored. Name:`,t.name,"Message:",t.message),f.o_(new N(C.UNAVAILABLE,"The operation could not be completed")))}),Ec(c,h.WebChannel.EventType.MESSAGE,t=>{if(!d){const n=t.data[0];S(!!n,16349);const s=n,i=s?.error||s[0]?.error;if(i){w(Tc,`RPC '${e}' stream ${r} received error:`,i);const t=i.status;let n=(function(e){const t=pi[e];if(void 0!==t)return bi(t)})(t),s=i.message;"NOT_FOUND"===t&&s.includes("database")&&s.includes("does not exist")&&s.includes(this.databaseId.database)&&v(`Database '${this.databaseId.database}' not found. Please check your project configuration.`),void 0===n&&(n=C.INTERNAL,s="Unknown error status: "+t+" with message "+i.message),d=!0,f.o_(new N(n,s)),c.close()}else w(Tc,`RPC '${e}' stream ${r} received:`,n),f.__(n)}}),Sc.u_(),setTimeout(()=>{f.s_()},0),f}terminate(){this.a_.forEach(e=>e.close()),this.a_=[]}E_(e){this.a_.push(e)}I_(e){this.a_=this.a_.filter(t=>t===e)}Go(e,t,n){super.Go(e,t,n),this.databaseInfo.apiKey&&(e["x-goog-api-key"]=this.databaseInfo.apiKey)}createWebChannelTransport(){return(0,h.createWebChannelTransport)()}}
4717/**
4718   * @license
4719   * Copyright 2020 Google LLC
4720   *
4721   * Licensed under the Apache License, Version 2.0 (the "License");
4722   * you may not use this file except in compliance with the License.
4723   * You may obtain a copy of the License at
4724   *
4725   *   http://www.apache.org/licenses/LICENSE-2.0
4726   *
4727   * Unless required by applicable law or agreed to in writing, software
4728   * distributed under the License is distributed on an "AS IS" BASIS,
4729   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4730   * See the License for the specific language governing permissions and
4731   * limitations under the License.
4732   */function _c(e){return new Sc(e)}
4733/**
4734   * @license
4735   * Copyright 2020 Google LLC
4736   *
4737   * Licensed under the Apache License, Version 2.0 (the "License");
4738   * you may not use this file except in compliance with the License.
4739   * You may obtain a copy of the License at
4740   *
4741   *   http://www.apache.org/licenses/LICENSE-2.0
4742   *
4743   * Unless required by applicable law or agreed to in writing, software
4744   * distributed under the License is distributed on an "AS IS" BASIS,
4745   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4746   * See the License for the specific language governing permissions and
4747   * limitations under the License.
4748   */function xc(){return"undefined"!=typeof window?window:null}function Cc(){return"undefined"!=typeof document?document:null}
4749/**
4750   * @license
4751   * Copyright 2020 Google LLC
4752   *
4753   * Licensed under the Apache License, Version 2.0 (the "License");
4754   * you may not use this file except in compliance with the License.
4755   * You may obtain a copy of the License at
4756   *
4757   *   http://www.apache.org/licenses/LICENSE-2.0
4758   *
4759   * Unless required by applicable law or agreed to in writing, software
4760   * distributed under the License is distributed on an "AS IS" BASIS,
4761   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4762   * See the License for the specific language governing permissions and
4763   * limitations under the License.
4764   */function Nc(e){return new ji(e,!0)}
4765/**
4766   * @license
4767   * Copyright 2017 Google LLC
4768   *
4769   * Licensed under the Apache License, Version 2.0 (the "License");
4770   * you may not use this file except in compliance with the License.
4771   * You may obtain a copy of the License at
4772   *
4773   *   http://www.apache.org/licenses/LICENSE-2.0
4774   *
4775   * Unless required by applicable law or agreed to in writing, software
4776   * distributed under the License is distributed on an "AS IS" BASIS,
4777   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4778   * See the License for the specific language governing permissions and
4779   * limitations under the License.
4780   */Sc.c_=!1;class Dc{constructor(e,t,n=1e3,r=1.5,s=6e4){this.Ci=e,this.timerId=t,this.R_=n,this.A_=r,this.V_=s,this.d_=0,this.m_=null,this.f_=Date.now(),this.reset()}reset(){this.d_=0}g_(){this.d_=this.V_}p_(e){this.cancel();const t=Math.floor(this.d_+this.y_()),n=Math.max(0,Date.now()-this.f_),r=Math.max(0,t-n);r>0&&w("ExponentialBackoff",`Backing off for ${r} ms (base delay: ${this.d_} ms, delay with jitter: ${t} ms, last attempt: ${n} ms ago)`),this.m_=this.Ci.enqueueAfterDelay(this.timerId,r,()=>(this.f_=Date.now(),e())),this.d_*=this.A_,this.d_<this.R_&&(this.d_=this.R_),this.d_>this.V_&&(this.d_=this.V_)}w_(){null!==this.m_&&(this.m_.skipDelay(),this.m_=null)}cancel(){null!==this.m_&&(this.m_.cancel(),this.m_=null)}y_(){return(Math.random()-.5)*this.d_}}
4781/**
4782   * @license
4783   * Copyright 2017 Google LLC
4784   *
4785   * Licensed under the Apache License, Version 2.0 (the "License");
4786   * you may not use this file except in compliance with the License.
4787   * You may obtain a copy of the License at
4788   *
4789   *   http://www.apache.org/licenses/LICENSE-2.0
4790   *
4791   * Unless required by applicable law or agreed to in writing, software
4792   * distributed under the License is distributed on an "AS IS" BASIS,
4793   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4794   * See the License for the specific language governing permissions and
4795   * limitations under the License.
4796   */const Ac="PersistentStream";class kc{constructor(e,t,n,r,s,i,o,a){this.Ci=e,this.S_=n,this.b_=r,this.connection=s,this.authCredentialsProvider=i,this.appCheckCredentialsProvider=o,this.listener=a,this.state=0,this.D_=0,this.C_=null,this.v_=null,this.stream=null,this.F_=0,this.M_=new Dc(e,t)}x_(){return 1===this.state||5===this.state||this.O_()}O_(){return 2===this.state||3===this.state}start(){this.F_=0,4!==this.state?this.auth():this.N_()}async stop(){this.x_()&&await this.close(0)}B_(){this.state=0,this.M_.reset()}L_(){this.O_()&&null===this.C_&&(this.C_=this.Ci.enqueueAfterDelay(this.S_,6e4,()=>this.k_()))}q_(e){this.K_(),this.stream.send(e)}async k_(){if(this.O_())return this.close(0)}K_(){this.C_&&(this.C_.cancel(),this.C_=null)}U_(){this.v_&&(this.v_.cancel(),this.v_=null)}async close(e,t){this.K_(),this.U_(),this.M_.cancel(),this.D_++,4!==e?this.M_.reset():t&&t.code===C.RESOURCE_EXHAUSTED?(b(t.toString()),b("Using maximum backoff delay to prevent overloading the backend."),this.M_.g_()):t&&t.code===C.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.W_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.t_(t)}W_(){}auth(){this.state=1;const e=this.Q_(this.D_),t=this.D_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([e,n])=>{this.D_===t&&this.G_(e,n)},t=>{e(()=>{const e=new N(C.UNKNOWN,"Fetching auth token failed: "+t.message);return this.z_(e)})})}G_(e,t){const n=this.Q_(this.D_);this.stream=this.j_(e,t),this.stream.Zo(()=>{n(()=>this.listener.Zo())}),this.stream.Yo(()=>{n(()=>(this.state=2,this.v_=this.Ci.enqueueAfterDelay(this.b_,1e4,()=>(this.O_()&&(this.state=3),Promise.resolve())),this.listener.Yo()))}
4796),this.stream.t_(e=>{n(()=>this.z_(e))}),this.stream.onMessage(e=>{n(()=>1==++this.F_?this.J_(e):this.onNext(e))})}N_(){this.state=5,this.M_.p_(async()=>{this.state=0,this.start()})}z_(e){return w(Ac,`close with error: ${e}`),this.stream=null,this.close(4,e)}Q_(e){return t=>{this.Ci.enqueueAndForget(()=>this.D_===e?t():(w(Ac,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class Oc extends kc{constructor(e,t,n,r,s,i){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,n,r,i),this.serializer=s}j_(e,t){return this.connection.T_("Listen",e,t)}J_(e){return this.onNext(e)}onNext(e){this.M_.reset();const t=io(this.serializer,e),n=(function(e){if(!("targetChange"in e))return me.min();const t=e.targetChange;return t.targetIds&&t.targetIds.length?me.min():t.readTime?$i(t.readTime):me.min()})(e);return this.listener.H_(t,n)}Z_(e){const t={};t.database=Zi(this.serializer),t.addTarget=(function(e,t){let n;const r=t.target;if(n=Gr(r)?{documents:co(e,r)}:{query:lo(e,r).ft},n.targetId=t.targetId,t.resumeToken.approximateByteSize()>0){n.resumeToken=zi(e,t.resumeToken);const r=qi(e,t.expectedCount);null!==r&&(n.expectedCount=r)}else if(t.snapshotVersion.compareTo(me.min())>0){n.readTime=Bi(e,t.snapshotVersion.toTimestamp());const r=qi(e,t.expectedCount);null!==r&&(n.expectedCount=r)}return n})(this.serializer,e);const n=mo(this.serializer,e);n&&(t.labels=n),this.q_(t)}X_(e){const t={};t.database=Zi(this.serializer),t.removeTarget=e,this.q_(t)}}class Pc extends kc{constructor(e,t,n,r,s,i){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,n,r,i),this.serializer=s}get Y_(){return this.F_>0}start(){this.lastStreamToken=void 0,super.start()}W_(){this.Y_&&this.ea([])}j_(e,t){return this.connection.T_("Write",e,t)}J_(e){return S(!!e.streamToken,31322),this.lastStreamToken=e.streamToken,S(!e.writeResults||0===e.writeResults.length,55816),this.listener.ta()}onNext(e){S(!!e.streamToken,12678),this.lastStreamToken=e.streamToken,this.M_.reset();const t=uo(e.writeResults,e.commitTime),n=$i(e.commitTime);return this.listener.na(n,t)}ra(){const e={};e.database=Zi(this.serializer),this.q_(e)}ea(e){const t={streamToken:this.lastStreamToken,writes:e.map(e=>oo(this.serializer,e))};this.q_(t)}}
4797/**
4798   * @license
4799   * Copyright 2017 Google LLC
4800   *
4801   * Licensed under the Apache License, Version 2.0 (the "License");
4802   * you may not use this file except in compliance with the License.
4803   * You may obtain a copy of the License at
4804   *
4805   *   http://www.apache.org/licenses/LICENSE-2.0
4806   *
4807   * Unless required by applicable law or agreed to in writing, software
4808   * distributed under the License is distributed on an "AS IS" BASIS,
4809   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4810   * See the License for the specific language governing permissions and
4811   * limitations under the License.
4812   */class Rc{}class Vc extends Rc{constructor(e,t,n,r){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=n,this.serializer=r,this.ia=!1}sa(){if(this.ia)throw new N(C.FAILED_PRECONDITION,"The client has already been terminated.")}Wo(e,t,n,r){return this.sa(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,i])=>this.connection.Wo(e,Qi(t,n),r,s,i)).catch(e=>{throw"FirebaseError"===e.name?(e.code===C.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new N(C.UNKNOWN,e.toString())})}jo(e,t,n,r,s){return this.sa(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([i,o])=>this.connection.jo(e,Qi(t,n),r,i,o,s)).catch(e=>{throw"FirebaseError"===e.name?(e.code===C.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new N(C.UNKNOWN,e.toString())})}terminate(){this.ia=!0,this.connection.terminate()}}function Fc(e,t,n,r){return new Vc(e,t,n,r)}class Mc{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.oa=0,this._a=null,this.aa=!0}ua(){0===this.oa&&(this.ca("Unknown"),this._a=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this._a=null,this.la("Backend didn't respond within 10 seconds."),this.ca("Offline"),Promise.resolve())))}ha(e){"Online"===this.state?this.ca("Unknown"):(this.oa++,this.oa>=1&&(this.Pa(),this.la(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.ca("Offline")))}set(e){this.Pa(),this.oa=0,"Online"===e&&(this.aa=!1),this.ca(e)}ca(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}la(e){const t=`Could not reach Cloud Firestore backend. ${e}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.aa?(b(t),this.aa=!1):w("OnlineStateTracker",t)}Pa(){null!==this._a&&(this._a.cancel(),this._a=null)}}
4813/**
4814   * @license
4815   * Copyright 2017 Google LLC
4816   *
4817   * Licensed under the Apache License, Version 2.0 (the "License");
4818   * you may not use this file except in compliance with the License.
4819   * You may obtain a copy of the License at
4820   *
4821   *   http://www.apache.org/licenses/LICENSE-2.0
4822   *
4823   * Unless required by applicable law or agreed to in writing, software
4824   * distributed under the License is distributed on an "AS IS" BASIS,
4825   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4826   * See the License for the specific language governing permissions and
4827   * limitations under the License.
4828   */const Lc="RemoteStore";class Uc{constructor(e,t,n,r,s){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.Ta=[],this.Ea=new Map,this.Ia=new Set,this.Ra=[],this.Aa=s,this.Aa.Mo(e=>{n.enqueueAndForget(async()=>{Hc(this)&&(w(Lc,"Restarting streams for network reachability change."),await(async function(e){const t=x(e);t.Ia.add(4),await qc(t),t.Va.set("Unknown"),t.Ia.delete(4),await jc(t)})(this))})}),this.Va=new Mc(n,r)}}async function jc(e){if(Hc(e))for(const t of e.Ra)await t(!0)}async function qc(e){for(const t of e.Ra)await t(!1)}function Bc(e,t){const n=x(e);n.Ea.has(t.targetId)||(n.Ea.set(t.targetId,t),Qc(n)?Gc(n):fl(n).O_()&&Kc(n,t))}function zc(e,t){const n=x(e),r=fl(n);n.Ea.delete(t),r.O_()&&$c(n,t),0===n.Ea.size&&(r.O_()?r.L_():Hc(n)&&n.Va.set("Unknown"))}function Kc(e,t){if(e.da.$e(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(me.min())>0){const n=e.remoteSyncer.getRemoteKeysForTarget(t.targetId).size;t=t.withExpectedCount(n)}fl(e).Z_(t)}function $c(e,t){e.da.$e(t),fl(e).X_(t)}function Gc(e){e.da=new Ri({getRemoteKeysForTarget:t=>e.remoteSyncer.getRemoteKeysForTarget(t),At:t=>e.Ea.get(t)||null,ht:()=>e.datastore.serializer.databaseId}),fl(e).start(),e.Va.ua()}function Qc(e){return Hc(e)&&!fl(e).x_()&&e.Ea.size>0}function Hc(e){return 0===x(e).Ia.size}function Wc(e){e.da=void 0}async function Jc(e){e.Va.set("Online")}async function Yc(e){e.Ea.forEach((t,n)=>{Kc(e,t)})}async function Xc(e,t){Wc(e),Qc(e)?(e.Va.ha(t),Gc(e)):e.Va.set("Unknown")}async function Zc(e,t,n){if(e.Va.set("Online"),t instanceof Oi&&2===t.state&&t.cause)try{await(async function(e,t){const n=t.cause;for(const r of t.targetIds)e.Ea.has(r)&&(await e.remoteSyncer.rejectListen(r,n),e.Ea.delete(r),e.da.removeTarget(r))})(e,t)}catch(n){w(Lc,"Failed to remove targets %s: %s ",t.targetIds.join(","),n),await el(e,n)}else if(t instanceof Ai?e.da.Xe(t):t instanceof ki?e.da.st(t):e.da.tt(t),!n.isEqual(me.min()))try{const t=await qu(e.localStore);n.compareTo(t)>=0&&await(function(e,t){const n=e.da.Tt(t);
4828return n.targetChanges.forEach((n,r)=>{if(n.resumeToken.approximateByteSize()>0){const s=e.Ea.get(r);s&&e.Ea.set(r,s.withResumeToken(n.resumeToken,t))}}),n.targetMismatches.forEach((t,n)=>{const r=e.Ea.get(t);if(!r)return;e.Ea.set(t,r.withResumeToken(Sn.EMPTY_BYTE_STRING,r.snapshotVersion)),$c(e,t);const s=new No(r.target,t,n,r.sequenceNumber);Kc(e,s)}),e.remoteSyncer.applyRemoteEvent(n)})(e,n)}catch(t){w(Lc,"Failed to raise snapshot:",t),await el(e,t)}}async function el(e,t,n){if(!Me(t))throw t;e.Ia.add(1),await qc(e),e.Va.set("Offline"),n||(n=()=>qu(e.localStore)),e.asyncQueue.enqueueRetryable(async()=>{w(Lc,"Retrying IndexedDB access"),await n(),e.Ia.delete(1),await jc(e)})}function tl(e,t){return t().catch(n=>el(e,n,t))}async function nl(e){const t=x(e),n=ml(t);let r=t.Ta.length>0?t.Ta[t.Ta.length-1].batchId:Ge;for(;rl(t);)try{const e=await Ku(t.localStore,r);if(null===e){0===t.Ta.length&&n.L_();break}r=e.batchId,sl(t,e)}catch(e){await el(t,e)}il(t)&&ol(t)}function rl(e){return Hc(e)&&e.Ta.length<10}function sl(e,t){e.Ta.push(t);const n=ml(e);n.O_()&&n.Y_&&n.ea(t.mutations)}function il(e){return Hc(e)&&!ml(e).x_()&&e.Ta.length>0}function ol(e){ml(e).start()}async function al(e){ml(e).ra()}async function ul(e){const t=ml(e);for(const n of e.Ta)t.ea(n.mutations)}async function cl(e,t,n){const r=e.Ta.shift(),s=di.from(r,t,n);await tl(e,()=>e.remoteSyncer.applySuccessfulWrite(s)),await nl(e)}async function ll(e,t){t&&ml(e).Y_&&await(async function(e,t){if((function(e){return wi(e)&&e!==C.ABORTED})(t.code)){const n=e.Ta.shift();ml(e).B_(),await tl(e,()=>e.remoteSyncer.rejectFailedWrite(n.batchId,t)),await nl(e)}})(e,t),il(e)&&ol(e)}async function hl(e,t){const n=x(e);n.asyncQueue.verifyOperationInProgress(),w(Lc,"RemoteStore received new credentials");const r=Hc(n);n.Ia.add(3),await qc(n),r&&n.Va.set("Unknown"),await n.remoteSyncer.handleCredentialChange(t),n.Ia.delete(3),await jc(n)}async function dl(e,t){const n=x(e);t?(n.Ia.delete(2),await jc(n)):t||(n.Ia.add(2),await qc(n),n.Va.set("Unknown"))}function fl(e){return e.ma||(e.ma=(function(e,t,n){const r=x(e);
4828return r.sa(),new Oc(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)
4829/**
4830    * @license
4831    * Copyright 2018 Google LLC
4832    *
4833    * Licensed under the Apache License, Version 2.0 (the "License");
4834    * you may not use this file except in compliance with the License.
4835    * You may obtain a copy of the License at
4836    *
4837    *   http://www.apache.org/licenses/LICENSE-2.0
4838    *
4839    * Unless required by applicable law or agreed to in writing, software
4840    * distributed under the License is distributed on an "AS IS" BASIS,
4841    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4842    * See the License for the specific language governing permissions and
4843    * limitations under the License.
4844    */})(e.datastore,e.asyncQueue,{Zo:Jc.bind(null,e),Yo:Yc.bind(null,e),t_:Xc.bind(null,e),H_:Zc.bind(null,e)}),e.Ra.push(async t=>{t?(e.ma.B_(),Qc(e)?Gc(e):e.Va.set("Unknown")):(await e.ma.stop(),Wc(e))})),e.ma}function ml(e){return e.fa||(e.fa=(function(e,t,n){const r=x(e);return r.sa(),new Pc(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)})(e.datastore,e.asyncQueue,{Zo:()=>Promise.resolve(),Yo:al.bind(null,e),t_:ll.bind(null,e),ta:ul.bind(null,e),na:cl.bind(null,e)}),e.Ra.push(async t=>{t?(e.fa.B_(),await nl(e)):(await e.fa.stop(),e.Ta.length>0&&(w(Lc,`Stopping write stream with ${e.Ta.length} pending writes`),e.Ta=[]))})),e.fa
4845/**
4846   * @license
4847   * Copyright 2017 Google LLC
4848   *
4849   * Licensed under the Apache License, Version 2.0 (the "License");
4850   * you may not use this file except in compliance with the License.
4851   * You may obtain a copy of the License at
4852   *
4853   *   http://www.apache.org/licenses/LICENSE-2.0
4854   *
4855   * Unless required by applicable law or agreed to in writing, software
4856   * distributed under the License is distributed on an "AS IS" BASIS,
4857   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4858   * See the License for the specific language governing permissions and
4859   * limitations under the License.
4860   */}class gl{constructor(e,t,n,r,s){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=s,this.deferred=new D,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(e=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,t,n,r,s){const i=Date.now()+n,o=new gl(e,t,i,r,s);return o.start(n),o}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new N(C.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function pl(e,t){if(b("AsyncQueue",`${t}: ${e}`),Me(e))return new N(C.UNAVAILABLE,`${t}: ${e}`);throw e}
4861/**
4862   * @license
4863   * Copyright 2017 Google LLC
4864   *
4865   * Licensed under the Apache License, Version 2.0 (the "License");
4866   * you may not use this file except in compliance with the License.
4867   * You may obtain a copy of the License at
4868   *
4869   *   http://www.apache.org/licenses/LICENSE-2.0
4870   *
4871   * Unless required by applicable law or agreed to in writing, software
4872   * distributed under the License is distributed on an "AS IS" BASIS,
4873   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4874   * See the License for the specific language governing permissions and
4875   * limitations under the License.
4876   */class yl{static emptySet(e){return new yl(e.comparator)}constructor(e){this.comparator=e?(t,n)=>e(t,n)||ee.comparator(t.key,n.key):(e,t)=>ee.comparator(e.key,t.key),this.keyedMap=Ts(),this.sortedSet=new gn(this.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((t,n)=>(e(t),!1))}add(e){const t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){const t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof yl))return!1;if(this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),n=e.sortedSet.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(!e.isEqual(r))return!1}return!0}toString(){const e=[];return this.forEach(t=>{e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}copy(e,t){const n=new yl;return n.comparator=this.comparator,n.keyedMap=e,n.sortedSet=t,n}}
4877/**
4878   * @license
4879   * Copyright 2017 Google LLC
4880   *
4881   * Licensed under the Apache License, Version 2.0 (the "License");
4882   * you may not use this file except in compliance with the License.
4883   * You may obtain a copy of the License at
4884   *
4885   *   http://www.apache.org/licenses/LICENSE-2.0
4886   *
4887   * Unless required by applicable law or agreed to in writing, software
4888   * distributed under the License is distributed on an "AS IS" BASIS,
4889   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4890   * See the License for the specific language governing permissions and
4891   * limitations under the License.
4892   */class wl{constructor(){this.ga=new gn(ee.comparator)}track(e){const t=e.doc.key,n=this.ga.get(t);n?0!==e.type&&3===n.type?this.ga=this.ga.insert(t,e):3===e.type&&1!==n.type?this.ga=this.ga.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.ga=this.ga.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.ga=this.ga.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.ga=this.ga.remove(t):1===e.type&&2===n.type?this.ga=this.ga.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.ga=this.ga.insert(t,{type:2,doc:e.doc}):T(63341,{Vt:e,pa:n}):this.ga=this.ga.insert(t,e)}ya(){const e=[];return this.ga.inorderTraversal((t,n)=>{e.push(n)}),e}}class bl{constructor(e,t,n,r,s,i,o,a,u){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=s,this.fromCache=i,this.syncStateChanged=o,this.excludesMetadataChanges=a,this.hasCachedResults=u}static fromInitialDocuments(e,t,n,r,s){const i=[];return t.forEach(e=>{i.push({type:0,doc:e})}),new bl(e,t,yl.emptySet(t),i,n,r,!0,!1,s)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&hs(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e].type!==n[e].type||!t[e].doc.isEqual(n[e].doc))return!1;return!0}}
4893/**
4894   * @license
4895   * Copyright 2017 Google LLC
4896   *
4897   * Licensed under the Apache License, Version 2.0 (the "License");
4898   * you may not use this file except in compliance with the License.
4899   * You may obtain a copy of the License at
4900   *
4901   *   http://www.apache.org/licenses/LICENSE-2.0
4902   *
4903   * Unless required by applicable law or agreed to in writing, software
4904   * distributed under the License is distributed on an "AS IS" BASIS,
4905   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4906   * See the License for the specific language governing permissions and
4907   * limitations under the License.
4908   */class vl{constructor(){this.wa=void 0,this.Sa=[]}ba(){return this.Sa.some(e=>e.Da())}}class Il{constructor(){this.queries=Tl(),this.onlineState="Unknown",this.Ca=new Set}terminate(){!(function(e,t){const n=x(e),r=n.queries;n.queries=Tl(),r.forEach((e,n)=>{for(const e of n.Sa)e.onError(t)})})(this,new N(C.ABORTED,"Firestore shutting down"))}}function Tl(){return new ws(e=>ds(e),hs)}async function El(e,t){const n=x(e);let r=3;const s=t.query;let i=n.queries.get(s);i?!i.ba()&&t.Da()&&(r=2):(i=new vl,r=t.Da()?0:1);try{switch(r){case 0:i.wa=await n.onListen(s,!0);break;case 1:i.wa=await n.onListen(s,!1);break;case 2:await n.onFirstRemoteStoreListen(s)}}catch(e){const n=pl(e,`Initialization of query '${fs(t.query)}' failed`);return void t.onError(n)}n.queries.set(s,i),i.Sa.push(t),t.va(n.onlineState),i.wa&&t.Fa(i.wa)&&Cl(n)}async function Sl(e,t){const n=x(e),r=t.query;let s=3;const i=n.queries.get(r);if(i){const e=i.Sa.indexOf(t);e>=0&&(i.Sa.splice(e,1),0===i.Sa.length?s=t.Da()?0:1:!i.ba()&&t.Da()&&(s=2))}switch(s){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function _l(e,t){const n=x(e);let r=!1;for(const e of t){const t=e.query,s=n.queries.get(t);if(s){for(const t of s.Sa)t.Fa(e)&&(r=!0);s.wa=e}}r&&Cl(n)}function xl(e,t,n){const r=x(e),s=r.queries.get(t);if(s)for(const e of s.Sa)e.onError(n);r.queries.delete(t)}
4908function Cl(e){e.Ca.forEach(e=>{e.next()})}var Nl,Dl;(Dl=Nl||(Nl={})).Ma="default",Dl.Cache="cache";class Al{constructor(e,t,n){this.query=e,this.xa=t,this.Oa=!1,this.Na=null,this.onlineState="Unknown",this.options=n||{}}Fa(e){if(!this.options.includeMetadataChanges){const t=[];for(const n of e.docChanges)3!==n.type&&t.push(n);e=new bl(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.Oa?this.Ba(e)&&(this.xa.next(e),t=!0):this.La(e,this.onlineState)&&(this.ka(e),t=!0),this.Na=e,t}onError(e){this.xa.error(e)}va(e){this.onlineState=e;let t=!1;return this.Na&&!this.Oa&&this.La(this.Na,e)&&(this.ka(this.Na),t=!0),t}La(e,t){if(!e.fromCache)return!0;if(!this.Da())return!0;const n="Offline"!==t;return(!this.options.qa||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}Ba(e){if(e.docChanges.length>0)return!0;const t=this.Na&&this.Na.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}ka(e){e=bl.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Oa=!0,this.xa.next(e)}Da(){return this.options.source!==Nl.Cache}}
4909/**
4910   * @license
4911   * Copyright 2020 Google LLC
4912   *
4913   * Licensed under the Apache License, Version 2.0 (the "License");
4914   * you may not use this file except in compliance with the License.
4915   * You may obtain a copy of the License at
4916   *
4917   *   http://www.apache.org/licenses/LICENSE-2.0
4918   *
4919   * Unless required by applicable law or agreed to in writing, software
4920   * distributed under the License is distributed on an "AS IS" BASIS,
4921   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4922   * See the License for the specific language governing permissions and
4923   * limitations under the License.
4924   */class kl{constructor(e,t){this.Ka=e,this.byteLength=t}Ua(){return"metadata"in this.Ka}}
4925/**
4926   * @license
4927   * Copyright 2020 Google LLC
4928   *
4929   * Licensed under the Apache License, Version 2.0 (the "License");
4930   * you may not use this file except in compliance with the License.
4931   * You may obtain a copy of the License at
4932   *
4933   *   http://www.apache.org/licenses/LICENSE-2.0
4934   *
4935   * Unless required by applicable law or agreed to in writing, software
4936   * distributed under the License is distributed on an "AS IS" BASIS,
4937   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4938   * See the License for the specific language governing permissions and
4939   * limitations under the License.
4940   */class Ol{constructor(e){this.serializer=e}qs(e){return Ji(this.serializer,e)}Ks(e){return e.metadata.exists?ro(this.serializer,e.document,!1):yr.newNoDocument(this.qs(e.metadata.name),this.Us(e.metadata.readTime))}Us(e){return $i(e)}}class Pl{constructor(e,t){this.$a=e,this.serializer=t,this.Wa=[],this.Qa=[],this.collectionGroups=new Set,this.progress=Rl(e)}get queries(){return this.Wa}get documents(){return this.Qa}Ga(e){this.progress.bytesLoaded+=e.byteLength;let t=this.progress.documentsLoaded;if(e.Ka.namedQuery)this.Wa.push(e.Ka.namedQuery);else if(e.Ka.documentMetadata){this.Qa.push({metadata:e.Ka.documentMetadata}),e.Ka.documentMetadata.exists||++t;const n=Y.fromString(e.Ka.documentMetadata.name);this.collectionGroups.add(n.get(n.length-2))}else e.Ka.document&&(this.Qa[this.Qa.length-1].document=e.Ka.document,++t);return t!==this.progress.documentsLoaded?(this.progress.documentsLoaded=t,Object.assign({},this.progress)):null}za(e){const t=new Map,n=new Ol(this.serializer);for(const r of e)if(r.metadata.queries){const e=n.qs(r.metadata.name);for(const n of r.metadata.queries){const r=(t.get(n)||Ds()).add(e);t.set(n,r)}}return t}async ja(e){const t=await Yu(e,new Ol(this.serializer),this.Qa,this.$a.id),n=this.za(this.documents);for(const t of this.Wa)await Xu(e,t,n.get(t.name));return this.progress.taskState="Success",{progress:this.progress,Ja:this.collectionGroups,Ha:t}}}function Rl(e){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:e.totalDocuments,totalBytes:e.totalBytes}}
4941/**
4942   * @license
4943   * Copyright 2017 Google LLC
4944   *
4945   * Licensed under the Apache License, Version 2.0 (the "License");
4946   * you may not use this file except in compliance with the License.
4947   * You may obtain a copy of the License at
4948   *
4949   *   http://www.apache.org/licenses/LICENSE-2.0
4950   *
4951   * Unless required by applicable law or agreed to in writing, software
4952   * distributed under the License is distributed on an "AS IS" BASIS,
4953   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4954   * See the License for the specific language governing permissions and
4955   * limitations under the License.
4956   */class Vl{constructor(e){this.key=e}}class Fl{constructor(e){this.key=e}}class Ml{constructor(e,t){this.query=e,this.Za=t,this.Xa=null,this.hasCachedResults=!1,this.current=!1,this.Ya=Ds(),this.mutatedKeys=Ds(),this.eu=ps(e),this.tu=new yl(this.eu)}get nu(){return this.Za}ru(e,t){const n=t?t.iu:new wl,r=t?t.tu:this.tu;let s=t?t.mutatedKeys:this.mutatedKeys,i=r,o=!1;const a="F"===this.query.limitType&&r.size===this.query.limit?r.last():null,u="L"===this.query.limitType&&r.size===this.query.limit?r.first():null;if(e.inorderTraversal((e,t)=>{const c=r.get(e),l=ms(this.query,t)?t:null,h=!!c&&this.mutatedKeys.has(c.key),d=!!l&&(l.hasLocalMutations||this.mutatedKeys.has(l.key)&&l.hasCommittedMutations);let f=!1;c&&l?c.data.isEqual(l.data)?h!==d&&(n.track({type:3,doc:l}),f=!0):this.su(c,l)||(n.track({type:2,doc:l}),f=!0,(a&&this.eu(l,a)>0||u&&this.eu(l,u)<0)&&(o=!0)):!c&&l?(n.track({type:0,doc:l}),f=!0):c&&!l&&(n.track({type:1,doc:c}),f=!0,(a||u)&&(o=!0)),f&&(l?(i=i.add(l),s=d?s.add(e):s.delete(e)):(i=i.delete(e),s=s.delete(e)))}),null!==this.query.limit)for(;i.size>this.query.limit;){const e="F"===this.query.limitType?i.last():i.first();i=i.delete(e.key),s=s.delete(e.key),n.track({type:1,doc:e})}return{tu:i,iu:n,bs:o,mutatedKeys:s}}su(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,n,r){const s=this.tu;this.tu=e.tu,this.mutatedKeys=e.mutatedKeys;const i=e.iu.ya();i.sort((e,t)=>(function(e,t){const n=e=>{switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return T(20277,{Vt:e})}};return n(e)-n(t)}
4957/**
4958      * @license
4959      * Copyright 2020 Google LLC
4960      *
4961      * Licensed under the Apache License, Version 2.0 (the "License");
4962      * you may not use this file except in compliance with the License.
4963      * You may obtain a copy of the License at
4964      *
4965      *   http://www.apache.org/licenses/LICENSE-2.0
4966      *
4967      * Unless required by applicable law or agreed to in writing, software
4968      * distributed under the License is distributed on an "AS IS" BASIS,
4969      * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4970      * See the License for the specific language governing permissions and
4971      * limitations under the License.
4972      */)(e.type,t.type)||this.eu(e.doc,t.doc)),this.ou(n),r=r??!1;const o=t&&!r?this._u():[],a=0===this.Ya.size&&this.current&&!r?1:0,u=a!==this.Xa;return this.Xa=a,0!==i.length||u?{snapshot:new bl(this.query,e.tu,s,i,e.mutatedKeys,0===a,u,!1,!!n&&n.resumeToken.approximateByteSize()>0),au:o}:{au:o}}va(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({tu:this.tu,iu:new wl,mutatedKeys:this.mutatedKeys,bs:!1},!1)):{au:[]}}uu(e){return!this.Za.has(e)&&!!this.tu.has(e)&&!this.tu.get(e).hasLocalMutations}ou(e){e&&(e.addedDocuments.forEach(e=>this.Za=this.Za.add(e)),e.modifiedDocuments.forEach(e=>{}),e.removedDocuments.forEach(e=>this.Za=this.Za.delete(e)),this.current=e.current)}_u(){if(!this.current)return[];const e=this.Ya;this.Ya=Ds(),this.tu.forEach(e=>{this.uu(e.key)&&(this.Ya=this.Ya.add(e.key))});const t=[];return e.forEach(e=>{this.Ya.has(e)||t.push(new Fl(e))}),this.Ya.forEach(n=>{e.has(n)||t.push(new Vl(n))}),t}cu(e){this.Za=e.ks,this.Ya=Ds();const t=this.ru(e.documents);return this.applyChanges(t,!0)}lu(){return bl.fromInitialDocuments(this.query,this.tu,this.mutatedKeys,0===this.Xa,this.hasCachedResults)}}const Ll="SyncEngine";class Ul{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}}class jl{constructor(e){this.key=e,this.hu=!1}}class ql{constructor(e,t,n,r,s,i){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedCl
4972ientState=r,this.currentUser=s,this.maxConcurrentLimboResolutions=i,this.Pu={},this.Tu=new ws(e=>ds(e),hs),this.Eu=new Map,this.Iu=new Set,this.Ru=new gn(ee.comparator),this.Au=new Map,this.Vu=new hu,this.du={},this.mu=new Map,this.fu=Ma.ar(),this.onlineState="Unknown",this.gu=void 0}get isPrimaryClient(){return!0===this.gu}}async function Bl(e,t,n=!0){const r=vh(e);let s;const i=r.Tu.get(t);return i?(r.sharedClientState.addLocalQueryTarget(i.targetId),s=i.view.lu()):s=await Kl(r,t,n,!0),s}async function zl(e,t){const n=vh(e);await Kl(n,t,!0,!1)}async function Kl(e,t,n,r){const s=await $u(e.localStore,rs(t)),i=s.targetId,o=e.sharedClientState.addLocalQueryTarget(i,n);let a;return r&&(a=await $l(e,t,i,"current"===o,s.resumeToken)),e.isPrimaryClient&&n&&Bc(e.remoteStore,s),a}async function $l(e,t,n,r,s){e.pu=(t,n,r)=>(async function(e,t,n,r){let s=t.view.ru(n);s.bs&&(s=await Qu(e.localStore,t.query,!1).then(({documents:e})=>t.view.ru(e,s)));const i=r&&r.targetChanges.get(t.targetId),o=r&&null!=r.targetMismatches.get(t.targetId),a=t.view.applyChanges(s,e.isPrimaryClient,i,o);return ih(e,t.targetId,a.au),a.snapshot})(e,t,n,r);const i=await Qu(e.localStore,t,!0),o=new Ml(t,i.ks),a=o.ru(i.documents),u=Di.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==e.onlineState,s),c=o.applyChanges(a,e.isPrimaryClient,u);ih(e,n,c.au);const l=new Ul(t,n,o);return e.Tu.set(t,l),e.Eu.has(n)?e.Eu.get(n).push(t):e.Eu.set(n,[t]),c.snapshot}async function Gl(e,t,n){const r=x(e),s=r.Tu.get(t),i=r.Eu.get(s.targetId);if(i.length>1)return r.Eu.set(s.targetId,i.filter(e=>!hs(e,t))),void r.Tu.delete(t);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(s.targetId),r.sharedCl
4972ientState.isActiveQueryTarget(s.targetId)||await Gu(r.localStore,s.targetId,!1).then(()=>{r.sharedClientState.clearQueryState(s.targetId),n&&zc(r.remoteStore,s.targetId),rh(r,s.targetId)}).catch(De)):(rh(r,s.targetId),await Gu(r.localStore,s.targetId,!0))}async function Ql(e,t){const n=x(e),r=n.Tu.get(t),s=n.Eu.get(r.targetId);n.isPrimaryClient&&1===s.length&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),zc(n.remoteStore,r.targetId))}async function Hl(e,t,n){const r=Ih(e);try{const e=await(function(e,t){const n=x(e),r=fe.now(),s=t.reduce((e,t)=>e.add(t.key),Ds());let i,o;return n.persistence.runTransaction("Locally write mutations","readwrite",e=>{let a=vs(),u=Ds();return n.xs.getEntries(e,s).next(e=>{a=e,a.forEach((e,t)=>{t.isValidDocument()||(u=u.add(e))})}).next(()=>n.localDocuments.getOverlayedDocuments(e,a)).next(s=>{i=s;const o=[];for(const e of t){const t=ni(e,i.get(e.key).overlayedDocument);null!=t&&o.push(new ii(e.key,t,pr(t.value.mapValue),Js.exists(!0)))}return n.mutationQueue.addMutationBatch(e,r,o,t)}).next(t=>{o=t;const r=t.applyToLocalDocumentSet(i,u);return n.documentOverlayCache.saveOverlays(e,t.batchId,r)})}).then(()=>({batchId:o.batchId,changes:Es(i)}))})(r.localStore,t);r.sharedClientState.addPendingMutation(e.batchId),(function(e,t,n){let r=e.du[e.currentUser.toKey()];r||(r=new gn(q)),r=r.insert(t,n),e.du[e.currentUser.toKey()]=r})(r,e.batchId,n),await uh(r,e.changes),await nl(r.remoteStore)}catch(e){const t=pl(e,"Failed to persist write");n.reject(t)}}async function Wl(e,t){const n=x(e);try{const e=await Bu(n.localStore,t);
4972t.targetChanges.forEach((e,t)=>{const r=n.Au.get(t);r&&(S(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1,22616),e.addedDocuments.size>0?r.hu=!0:e.modifiedDocuments.size>0?S(r.hu,14607):e.removedDocuments.size>0&&(S(r.hu,42227),r.hu=!1))}),await uh(n,e,t)}catch(e){await De(e)}}function Jl(e,t,n){const r=x(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){const e=[];r.Tu.forEach((n,r)=>{const s=r.view.va(t);s.snapshot&&e.push(s.snapshot)}),(function(e,t){const n=x(e);n.onlineState=t;let r=!1;n.queries.forEach((e,n)=>{for(const e of n.Sa)e.va(t)&&(r=!0)}),r&&Cl(n)})(r.eventManager,t),e.length&&r.Pu.H_(e),r.onlineState=t,r.isPrimaryClient&&r.sharedClientState.setOnlineState(t)}}async function Yl(e,t,n){const r=x(e);r.sharedClientState.updateQueryState(t,"rejected",n);const s=r.Au.get(t),i=s&&s.key;if(i){let e=new gn(ee.comparator);e=e.insert(i,yr.newNoDocument(i,me.min()));const n=Ds().add(i),s=new Ni(me.min(),new Map,new gn(q),e,n);await Wl(r,s),r.Ru=r.Ru.remove(i),r.Au.delete(t),ah(r)}else await Gu(r.localStore,t,!1).then(()=>rh(r,t,n)).catch(De)}async function Xl(e,t){const n=x(e),r=t.batch.batchId;try{const e=await ju(n.localStore,t);nh(n,r,null),th(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await uh(n,e)}catch(e){await De(e)}}async function Zl(e,t,n){const r=x(e);try{const e=await(function(e,t){const n=x(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",e=>{let r;
4972return n.mutationQueue.lookupMutationBatch(e,t).next(t=>(S(null!==t,37113),r=t.keys(),n.mutationQueue.removeMutationBatch(e,t))).next(()=>n.mutationQueue.performConsistencyCheck(e)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,r)).next(()=>n.localDocuments.getDocuments(e,r))})})(r.localStore,t);nh(r,t,n),th(r,t),r.sharedClientState.updateMutationState(t,"rejected",n),await uh(r,e)}catch(n){await De(n)}}async function eh(e,t){const n=x(e);Hc(n.remoteStore)||w(Ll,"The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled.");try{const e=await(function(e){const t=x(e);return t.persistence.runTransaction("Get highest unacknowledged batch id","readonly",e=>t.mutationQueue.getHighestUnacknowledgedBatchId(e))})(n.localStore);if(e===Ge)return void t.resolve();const r=n.mu.get(e)||[];r.push(t),n.mu.set(e,r)}catch(e){const n=pl(e,"Initialization of waitForPendingWrites() operation failed");t.reject(n)}}function th(e,t){(e.mu.get(t)||[]).forEach(e=>{e.resolve()}),e.mu.delete(t)}function nh(e,t,n){const r=x(e);let s=r.du[r.currentUser.toKey()];if(s){const e=s.get(t);e&&(n?e.reject(n):e.resolve(),s=s.remove(t)),r.du[r.currentUser.toKey()]=s}}function rh(e,t,n=null){e.sharedClientState.removeLocalQueryTarget(t);for(const r of e.Eu.get(t))e.Tu.delete(r),n&&e.Pu.yu(r,n);e.Eu.delete(t),e.isPrimaryClient&&e.Vu.Gr(t).forEach(t=>{e.Vu.containsKey(t)||sh(e,t)})}function sh(e,t){e.Iu.delete(t.path.canonicalString());const n=e.Ru.get(t);null!==n&&(zc(e.remoteStore,n),e.Ru=e.Ru.remove(t),e.Au.delete(n),ah(e))}function ih(e,t,n){for(const r of n)r instanceof Vl?(e.Vu.addReference(r.key,t),oh(e,r)):r instanceof Fl?(w(Ll,"Document no longer in limbo: "+r.key),e.Vu.removeReference(r.key,t),e.Vu.containsKey(r.key)||sh(e,r.key)):T(19791,{wu:r})}function oh(e,t){const n=t.key,r=n.path.canonicalString();e.Ru.get(n)||e.Iu.has(r)||(w(Ll,"New document in limbo: "+n),e.Iu.add(r),ah(e))}function ah(e){for(;e.Iu.size>0&&e.Ru.size<e.maxConcurrentLimboResolutions;){const t=e.Iu.values().next().value;e.Iu.delete(t);const n=new ee(Y.fromString(t)),r=e.fu.next();e.Au.set(r,new jl(n)),e.Ru=e.Ru.insert(n,r),Bc(e.remoteStore,new No(rs(Xr(n.path)),r,"TargetPurposeLimboResolution",$e.ce))}}async function uh(e,t,n){const r=x(e),s=[],i=[],o=[];r.Tu.isEmpty()||(r.Tu.forEach((e,a)=>{o.push(r.pu(a,t,n).then(e=>{if((e||n)&&r.isPrimaryClient){const t=e?!e.fromCache:n?.targetChanges.get(a.targetId)?.current;
4972r.sharedClientState.updateQueryState(a.targetId,t?"current":"not-current")}if(e){s.push(e);const t=Ou.Is(a.targetId,e);i.push(t)}}))}),await Promise.all(o),r.Pu.H_(s),await(async function(e,t){const n=x(e);try{await n.persistence.runTransaction("notifyLocalViewChanges","readwrite",e=>Ae.forEach(t,t=>Ae.forEach(t.Ts,r=>n.persistence.referenceDelegate.addReference(e,t.targetId,r)).next(()=>Ae.forEach(t.Es,r=>n.persistence.referenceDelegate.removeReference(e,t.targetId,r)))))}catch(e){if(!Me(e))throw e;w(Vu,"Failed to update sequence numbers: "+e)}for(const e of t){const t=e.targetId;if(!e.fromCache){const e=n.vs.get(t),r=e.snapshotVersion,s=e.withLastLimboFreeSnapshotVersion(r);n.vs=n.vs.insert(t,s)}}})(r.localStore,i))}async function ch(e,t){const n=x(e);if(!n.currentUser.isEqual(t)){w(Ll,"User change. New user:",t.toKey());const e=await Uu(n.localStore,t);n.currentUser=t,(function(e,t){e.mu.forEach(e=>{e.forEach(e=>{e.reject(new N(C.CANCELLED,t))})}),e.mu.clear()})(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(t,e.removedBatchIds,e.addedBatchIds),await uh(n,e.Ns)}}function lh(e,t){const n=x(e),r=n.Au.get(t);if(r&&r.hu)return Ds().add(r.key);{let e=Ds();const r=n.Eu.get(t);if(!r)return e;for(const t of r){const r=n.Tu.get(t);e=e.unionWith(r.view.nu)}return e}}async function hh(e,t){const n=x(e),r=await Qu(n.localStore,t.query,!0),s=t.view.cu(r);return n.isPrimaryClient&&ih(n,t.targetId,s.au),s}async function dh(e,t){const n=x(e);return Wu(n.localStore,t).then(e=>uh(n,e))}async function fh(e,t,n,r){const s=x(e),i=await(function(e,t){const n=x(e),r=x(n.mutationQueue);return n.persistence.runTransaction("Lookup mutation documents","readonly",e=>r.Xn(e,t).next(t=>t?n.localDocuments.getDocuments(e,t):Ae.resolve(null)))})(s.localStore,t);null!==i?("pending"===n?await nl(s.remoteStore):"acknowledged"===n||"rejected"===n?(nh(s,t,r||null),th(s,t),(function(e,t){x(x(e).mutationQueue).nr(t)})(s.localStore,t)):T(6720,"Unknown batchState",{Su:n}),await uh(s,i)):w(Ll,"Cannot apply mutation batch with id: "+t)}async function mh(e,t){const n=x(e);if(vh(n),Ih(n),!0===t&&!0!==n.gu){const e=n.sharedClientState.getAllActiveQueryTargets(),t=await gh(n,e.toArray());n.gu=!0,await dl(n.remoteStore,!0);for(const e of t)Bc(n.remoteStore,e)}else if(!1===t&&!1!==n.gu){const e=[];let t=Promise.resolve();n.Eu.forEach((r,s)=>{n.sharedClientState.isLocalQueryTarget(s)?e.push(s):t=t.then(()=>(rh(n,s),Gu(n.localStore,s,!0))),zc(n.remoteStore,s)}),await t,await gh(n,e),(function(e){const t=x(e);t.Au.forEach((e,n)=>{zc(t.remoteStore,n)}),t.Vu.zr(),t.Au=new Map,t.Ru=new gn(ee.comparator)})(n),n.gu=!1,await dl(n.remoteStore,!1)}}async function gh(e,t,n){const r=x(e),s=[],i=[];for(const e of t){let t;const n=r.Eu.get(e);if(n&&0!==n.length){t=await $u(r.localStore,rs(n[0]));for(const e of n){const t=r.Tu.get(e),n=await hh(r,t);n.snapshot&&i.push(n.snapshot)}}else{const n=await Hu(r.localStore,e);t=await $u(r.localStore,n),await $l(r,ph(n),e,!1,t.resumeToken)}s.push(t)}return r.Pu.H_(i),s}function ph(e){return Yr(e.path,e.collectionGroup,e.orderBy,e.filters,e.limit,"F",e.startAt,e.endAt)}function yh(e){return(function(e){return x(x(e).persistence).hs()})(x(e).localStore)}async function wh(e,t,n,r){const s=x(e);if(s.gu)return void w(Ll,"Ignoring unexpected query state notification.");const i=s.Eu.get(t);if(i&&i.length>0)switch(n){case"current":case"not-current":{const e=await Wu(s.localStore,gs(i[0])),r=Ni.createSynthesizedRemoteEventForCurrentChange(t,"current"===n,Sn.EMPTY_BYTE_STRING);await uh(s,e,r);break}case"rejected":await Gu(s.localStore,t,!0),rh(s,t,r);break;default:T(64155,n)}}async function bh(e,t,n){const r=vh(e);if(r.gu){for(const e of t){if(r.Eu.has(e)&&r.sharedClientState.isActiveQueryTarget(e)){w(Ll,"Adding an already active target "+e);continue}const t=await Hu(r.localStore,e),n=await $u(r.localStore,t);await $l(r,ph(t),n.targetId,!1,n.resumeToken),Bc(r.remoteStore,n)}for(const e of n)r.Eu.has(e)&&await Gu(r.localStore,e,!1).then(()=>{zc(r.remoteStore,e),rh(r,e)}).catch(De)}}function vh(e){const t=x(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=Wl.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=lh.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=Yl.bind(null,t),t.Pu.H_=_l.bind(null,t.eventManager),t.Pu.yu=xl.bind(null,t.eventManager),t}function Ih(e){const t=x(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=Xl.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=Zl.bind(null,t),t}function Th(e,t,n){const r=x(e);(async function(e,t,n){try{const r=await t.getMetadata();if(await(function(e,t){const n=x(e),r=$i(t.createTime);return n.persistence.runTransaction("hasNewerBundle","readonly",e=>n.Pi.getBundleMetadata(e,t.id)).then(e=>!!e&&e.createTime.compareTo(r)>=0)})(e.localStore,r))return await t.close(),n._completeWith((function(e){return{taskState:"Success",documentsLoaded:e.totalDocuments,bytesLoaded:e.totalBytes,totalDocuments:e.totalDocuments,totalBytes:e.totalBytes}})(r)),Promise.resolve(new Set);n._updateProgress(Rl(r));const s=new Pl(r,t.serializer);let i=await t.bu();for(;i;){const e=await s.Ga(i);e&&n._updateProgress(e),i=await t.bu()}const o=await s.ja(e.localStore);return await uh(e,o.Ha,void 0),await(function(e,t){const n=x(e);return n.persistence.runTransaction("Save bundle","readwrite",e=>n.Pi.saveBundleMetadata(e,t))})(e.localStore,r),n._completeWith(o.progress),Promise.resolve(o.Ja)}catch(e){return v(Ll,`Loading bundle failed with ${e}`),n._failWith(e),Promise.resolve(new Set)}}
4973/**
4974    * @license
4975    * Copyright 2020 Google LLC
4976    *
4977    * Licensed under the Apache License, Version 2.0 (the "License");
4978    * you may not use this file except in compliance with the License.
4979    * You may obtain a copy of the License at
4980    *
4981    *   http://www.apache.org/licenses/LICENSE-2.0
4982    *
4983    * Unless required by applicable law or agreed to in writing, software
4984    * distributed under the License is distributed on an "AS IS" BASIS,
4985    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4986    * See the License for the specific language governing permissions and
4987    * limitations under the License.
4988    */)(r,t,n).then(e=>{r.sharedClientState.notifyBundleLoaded(e)})}class Eh{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=Nc(e.databaseInfo.databaseId),this.sharedClientState=this.Du(e),this.persistence=this.Cu(e),await this.persistence.start(),this.localStore=this.vu(e),this.gcScheduler=this.Fu(e,this.localStore),this.indexBackfillerScheduler=this.Mu(e,this.localStore)}Fu(e,t){return null}Mu(e,t){return null}vu(e){return Lu(this.persistence,new Ru,e.initialUser,this.serializer)}Cu(e){return new yu(bu.Vi,this.serializer)}Du(e){return new dc}async terminate(){this.gcScheduler?.stop(),this.indexBackfillerScheduler?.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}Eh.provider={build:()=>new Eh};class Sh extends Eh{constructor(e){super(),this.cacheSizeBytes=e}Fu(e,t){S(this.persistence.referenceDelegate instanceof vu,46915);const n=this.persistence.referenceDelegate.garbageCollector;return new Ga(n,e.asyncQueue,t)}Cu(e){const t=void 0!==this.cacheSizeBytes?Da.withCacheSize(this.cacheSizeBytes):Da.DEFAULT;return new yu(e=>vu.Vi(e,t),this.serializer)}}class _h extends Eh{constructor(e,t,n){super(),this.xu=e,this.cacheSizeBytes=t,this.forceOwnership=n,this.kind="persistent",this.synchronizeTabs=!1}async initialize(e){await super.initialize(e),await this.xu.initialize(this,e),await Ih(this.xu.syncEngine),await nl(this.xu.remoteStore),await this.persistence.zi(()=>(this.gcScheduler&&!this.gcScheduler.started&&this.gcScheduler.start(),this.indexBackfillerScheduler&&!this.indexBackfillerScheduler.started&&this.indexBackfillerScheduler.start(),Promise.resolve()))}vu(e){return Lu(this.persistence,new Ru,e.initialUser,this.serializer)}Fu(e,t){const n=this.persistence.referenceDelegate.garbageCollector;return new Ga(n,e.asyncQueue,t)}Mu(e,t){const n=new Ke(t,this.persistence);return new ze(e.asyncQueue,n)}Cu(e){const t=ku(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?Da.withCacheSize(this.cacheSizeBytes):Da.DEFAULT;return new Nu(this.synchronizeTabs,t,e.clientId,n,e.asyncQueue,xc(),Cc(),this.serializer,this.sharedClientState,!!this.forceOwnership)}Du(e){return new dc}}class xh extends _h{constructor(e,t){super(e,t,!1),this.xu=e,this.cacheSizeBytes=t,this.synchronizeTabs=!0}async initialize(e){await super.initialize(e);const t=this.xu.syncEngine;this.sharedClientState instanceof hc&&(this.sharedClientState.syncEngine={bo:fh.bind(null,t),Do:wh.bind(null,t),Co:bh.bind(null,t),hs:yh.bind(null,t),So:dh.bind(null,t)},await this.sharedClientState.start()),await this.persistence.zi(async e=>{await mh(this.xu.syncEngine,e),this.gcScheduler&&(e&&!this.gcScheduler.started?this.gcScheduler.start():e||this.gcScheduler.stop()),this.indexBackfillerScheduler&&(e&&!this.indexBackfillerScheduler.started?this.indexBackfillerScheduler.start():e||this.indexBackfillerScheduler.stop())})}Du(e){const t=xc();if(!hc.v(t))throw new N(C.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");const n=ku(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey);return new hc(t,e.asyncQueue,n,e.clientId,e.initialUser)}}class Ch{async initialize(e,t){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=e=>Jl(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=ch.bind(null,this.syncEngine),await dl(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return new Il}createDatastore(e){const t=Nc(e.databaseInfo.databaseId),n=_c(e.databaseInfo);return Fc(e.authCredentials,e.appCheckCredentials,n,t)}
4988createRemoteStore(e){return(function(e,t,n,r,s){return new Uc(e,t,n,r,s)})(this.localStore,this.datastore,e.asyncQueue,e=>Jl(this.syncEngine,e,0),gc.v()?new gc:new fc)}createSyncEngine(e,t){return(function(e,t,n,r,s,i,o){const a=new ql(e,t,n,r,s,i);return o&&(a.gu=!0),a})(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}async terminate(){await(async function(e){const t=x(e);w(Lc,"RemoteStore shutting down."),t.Ia.add(5),await qc(t),t.Aa.shutdown(),t.Va.set("Unknown")})(this.remoteStore),this.datastore?.terminate(),this.eventManager?.terminate()}}function Nh(e,t=10240){let n=0;return{async read(){if(n<e.byteLength){const r={value:e.slice(n,n+t),done:!1};return n+=t,r}return{done:!0}},async cancel(){},releaseLock(){},closed:Promise.resolve()}}
4989/**
4990   * @license
4991   * Copyright 2020 Google LLC
4992   *
4993   * Licensed under the Apache License, Version 2.0 (the "License");
4994   * you may not use this file except in compliance with the License.
4995   * You may obtain a copy of the License at
4996   *
4997   *   http://www.apache.org/licenses/LICENSE-2.0
4998   *
4999   * Unless required by applicable law or agreed to in writing, software
5000   * distributed under the License is distributed on an "AS IS" BASIS,
5001   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5002   * See the License for the specific language governing permissions and
5003   * limitations under the License.
5004   */
5005/**
5006   * @license
5007   * Copyright 2017 Google LLC
5008   *
5009   * Licensed under the Apache License, Version 2.0 (the "License");
5010   * you may not use this file except in compliance with the License.
5011   * You may obtain a copy of the License at
5012   *
5013   *   http://www.apache.org/licenses/LICENSE-2.0
5014   *
5015   * Unless required by applicable law or agreed to in writing, software
5016   * distributed under the License is distributed on an "AS IS" BASIS,
5017   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5018   * See the License for the specific language governing permissions and
5019   * limitations under the License.
5020   */Ch.provider={build:()=>new Ch};class Dh{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.Ou(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.Ou(this.observer.error,e):b("Uncaught Error in snapshot listener:",e.toString()))}Nu(){this.muted=!0}Ou(e,t){setTimeout(()=>{this.muted||e(t)},0)}}
5021/**
5022   * @license
5023   * Copyright 2020 Google LLC
5024   *
5025   * Licensed under the Apache License, Version 2.0 (the "License");
5026   * you may not use this file except in compliance with the License.
5027   * You may obtain a copy of the License at
5028   *
5029   *   http://www.apache.org/licenses/LICENSE-2.0
5030   *
5031   * Unless required by applicable law or agreed to in writing, software
5032   * distributed under the License is distributed on an "AS IS" BASIS,
5033   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5034   * See the License for the specific language governing permissions and
5035   * limitations under the License.
5036   */class Ah{constructor(e,t){this.Bu=e,this.serializer=t,this.metadata=new D,this.buffer=new Uint8Array,this.Lu=new TextDecoder("utf-8"),this.ku().then(e=>{e&&e.Ua()?this.metadata.resolve(e.Ka.metadata):this.metadata.reject(new Error(`The first element of the bundle is not a metadata, it is\n             ${JSON.stringify(e?.Ka)}`))},e=>this.metadata.reject(e))}close(){return this.Bu.cancel()}async getMetadata(){return this.metadata.promise}async bu(){return await this.getMetadata(),this.ku()}async ku(){const e=await this.qu();if(null===e)return null;const t=this.Lu.decode(e),n=Number(t);isNaN(n)&&this.Ku(`length string (${t}) is not valid number`);const r=await this.Uu(n);return new kl(JSON.parse(r),e.length+n)}$u(){return this.buffer.findIndex(e=>e==="{".charCodeAt(0))}async qu(){for(;this.$u()<0&&!await this.Wu(););if(0===this.buffer.length)return null;const e=this.$u();e<0&&this.Ku("Reached the end of bundle when a length string is expected.");const t=this.buffer.slice(0,e);return this.buffer=this.buffer.slice(e),t}async Uu(e){for(;this.buffer.length<e;)await this.Wu()&&this.Ku("Reached the end of bundle when more is expected.");const t=this.Lu.decode(this.buffer.slice(0,e));return this.buffer=this.buffer.slice(e),t}Ku(e){throw this.Bu.cancel(),new Error(`Invalid bundle format: ${e}`)}async Wu(){const e=await this.Bu.read();if(!e.done){const t=new Uint8Array(this.buffer.length+e.value.length);t.set(this.buffer),t.set(e.value,this.buffer.length),this.buffer=t}return e.done}}
5037/**
5038   * @license
5039   * Copyright 2025 Google LLC
5040   *
5041   * Licensed under the Apache License, Version 2.0 (the "License");
5042   * you may not use this file except in compliance with the License.
5043   * You may obtain a copy of the License at
5044   *
5045   *   http://www.apache.org/licenses/LICENSE-2.0
5046   *
5047   * Unless required by applicable law or agreed to in writing, software
5048   * distributed under the License is distributed on an "AS IS" BASIS,
5049   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5050   * See the License for the specific language governing permissions and
5051   * limitations under the License.
5052   */class kh{constructor(e,t){this.bundleData=e,this.serializer=t,this.cursor=0,this.elements=[];let n=this.bu();if(!n||!n.Ua())throw new Error(`The first element of the bundle is not a metadata object, it is\n         ${JSON.stringify(n?.Ka)}`);this.metadata=n;do{n=this.bu(),null!==n&&this.elements.push(n)}while(null!==n)}getMetadata(){return this.metadata}Qu(){return this.elements}bu(){if(this.cursor===this.bundleData.length)return null;const e=this.qu(),t=this.Uu(e);return new kl(JSON.parse(t),e)}Uu(e){if(this.cursor+e>this.bundleData.length)throw new N(C.INTERNAL,"Reached the end of bundle when more is expected.");return this.bundleData.slice(this.cursor,this.cursor+=e)}qu(){const e=this.cursor;let t=this.cursor;for(;t<this.bundleData.length;){if("{"===this.bundleData[t]){if(t===e)throw new Error("First character is a bracket and not a number");return this.cursor=t,Number(this.bundleData.slice(e,t))}t++}throw new Error("Reached the end of bundle when more is expected.")}}
5053/**
5054   * @license
5055   * Copyright 2017 Google LLC
5056   *
5057   * Licensed under the Apache License, Version 2.0 (the "License");
5058   * you may not use this file except in compliance with the License.
5059   * You may obtain a copy of the License at
5060   *
5061   *   http://www.apache.org/licenses/LICENSE-2.0
5062   *
5063   * Unless required by applicable law or agreed to in writing, software
5064   * distributed under the License is distributed on an "AS IS" BASIS,
5065   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5066   * See the License for the specific language governing permissions and
5067   * limitations under the License.
5068   */class Oh{constructor(e){this.datastore=e,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastTransactionError=null,this.writtenDocs=new Set}async lookup(e){if(this.ensureCommitNotCalled(),this.mutations.length>0)throw this.lastTransactionError=new N(C.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes."),this.lastTransactionError;const t=await(async function(e,t){const n=x(e),r={documents:t.map(e=>Wi(n.serializer,e))},s=await n.jo("BatchGetDocuments",n.serializer.databaseId,Y.emptyPath(),r,t.length),i=new Map;s.forEach(e=>{const t=so(n.serializer,e);i.set(t.key.toString(),t)});const o=[];return t.forEach(e=>{const t=i.get(e.toString());S(!!t,55234,{key:e}),o.push(t)}),o})(this.datastore,e);return t.forEach(e=>this.recordVersion(e)),t}set(e,t){this.write(t.toMutation(e,this.precondition(e))),this.writtenDocs.add(e.toString())}update(e,t){try{this.write(t.toMutation(e,this.preconditionForUpdate(e)))}catch(e){this.lastTransactionError=e}this.writtenDocs.add(e.toString())}delete(e){this.write(new ci(e,this.precondition(e))),this.writtenDocs.add(e.toString())}async commit(){if(this.ensureCommitNotCalled(),this.lastTransactionError)throw this.lastTransactionError;const e=this.readVersions;this.mutations.forEach(t=>{e.delete(t.key.toString())}),e.forEach((e,t)=>{const n=ee.fromPath(t);this.mutations.push(new li(n,this.precondition(n)))}),await(async function(e,t){const n=x(e),r={writes:t.map(e=>oo(n.serializer,e))};await n.Wo("Commit",n.serializer.databaseId,Y.emptyPath(),r)})(this.datastore,this.mutations),this.committed=!0}recordVersion(e){let t;if(e.isFoundDocument())t=e.version;else{if(!e.isNoDocument())throw T(50498,{Gu:e.constructor.name});t=me.min()}const n=this.readVersions.get(e.key.toString());if(n){if(!t.isEqual(n))throw new N(C.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(e.key.toString(),t)}precondition(e){const t=this.readVersions.get(e.toString());return!this.writtenDocs.has(e.toString())&&t?t.isEqual(me.min())?Js.exists(!1):Js.updateTime(t):Js.none()}preconditionForUpdate(e){const t=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&t){if(t.isEqual(me.min()))throw new N(C.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Js.updateTime(t)}return Js.exists(!0)}write(e){this.ensureCommitNotCalled(),this.mutations.push(e)}ensureCommitNotCalled(){}}
5069/**
5070   * @license
5071   * Copyright 2019 Google LLC
5072   *
5073   * Licensed under the Apache License, Version 2.0 (the "License");
5074   * you may not use this file except in compliance with the License.
5075   * You may obtain a copy of the License at
5076   *
5077   *   http://www.apache.org/licenses/LICENSE-2.0
5078   *
5079   * Unless required by applicable law or agreed to in writing, software
5080   * distributed under the License is distributed on an "AS IS" BASIS,
5081   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5082   * See the License for the specific language governing permissions and
5083   * limitations under the License.
5084   */class Ph{constructor(e,t,n,r,s){this.asyncQueue=e,this.datastore=t,this.options=n,this.updateFunction=r,this.deferred=s,this.zu=n.maxAttempts,this.M_=new Dc(this.asyncQueue,"transaction_retry")}ju(){this.zu-=1,this.Ju()}Ju(){this.M_.p_(async()=>{const e=new Oh(this.datastore),t=this.Hu(e);t&&t.then(t=>{this.asyncQueue.enqueueAndForget(()=>e.commit().then(()=>{this.deferred.resolve(t)}).catch(e=>{this.Zu(e)}))}).catch(e=>{this.Zu(e)})})}Hu(e){try{const t=this.updateFunction(e);return!Qe(t)&&t.catch&&t.then?t:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(e){return this.deferred.reject(e),null}}Zu(e){this.zu>0&&this.Xu(e)?(this.zu-=1,this.asyncQueue.enqueueAndForget(()=>(this.Ju(),Promise.resolve()))):this.deferred.reject(e)}Xu(e){if("FirebaseError"===e?.name){const t=e.code;return"aborted"===t||"failed-precondition"===t||"already-exists"===t||!wi(t)}return!1}}
5085/**
5086   * @license
5087   * Copyright 2017 Google LLC
5088   *
5089   * Licensed under the Apache License, Version 2.0 (the "License");
5090   * you may not use this file except in compliance with the License.
5091   * You may obtain a copy of the License at
5092   *
5093   *   http://www.apache.org/licenses/LICENSE-2.0
5094   *
5095   * Unless required by applicable law or agreed to in writing, software
5096   * distributed under the License is distributed on an "AS IS" BASIS,
5097   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5098   * See the License for the specific language governing permissions and
5099   * limitations under the License.
5100   */const Rh="FirestoreClient";class Vh{constructor(e,t,n,r,s){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this._databaseInfo=r,this.user=d.UNAUTHENTICATED,this.clientId=j.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=s,this.authCredentials.start(n,async e=>{w(Rh,"Received user=",e.uid),await this.authCredentialListener(e),this.user=e}),this.appCheckCredentials.start(n,e=>(w(Rh,"Received new app check token=",e),this.appCheckCredentialListener(e,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this._databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();const e=new D;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(t){const n=pl(t,"Failed to shutdown persistence");e.reject(n)}}),e.promise}}async function Fh(e,t){e.asyncQueue.verifyOperationInProgress(),w(Rh,"Initializing OfflineComponentProvider");const n=e.configuration;await t.initialize(n);let r=n.initialUser;e.setCredentialChangeListener(async e=>{r.isEqual(e)||(await Uu(t.localStore,e),r=e)}),t.persistence.setDatabaseDeletedListener(()=>e.terminate()),e._offlineComponents=t}async function Mh(e,t){e.asyncQueue.verifyOperationInProgress();const n=await Lh(e);w(Rh,"Initializing OnlineComponentProvider"),await t.initialize(n,e.configuration),e.setCredentialChangeListener(e=>hl(t.remoteStore,e)),e.setAppCheckTokenChangeListener((e,n)=>hl(t.remoteStore,n)),e._onlineComponents=t}async function Lh(e){if(!e._offlineComponents)if(e._uninitializedComponentsProvider){w(Rh,"Using user provided OfflineComponentProvider");try{await Fh(e,e._uninitializedComponentsProvider._offline)}catch(t){const n=t;if(!(function(e){return"FirebaseError"===e.name?e.code===C.FAILED_PRECONDITION||e.code===C.UNIMPLEMENT
5100ED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code})(n))throw n;v("Error using user provided cache. Falling back to memory cache: "+n),await Fh(e,new Eh)}}else w(Rh,"Using default OfflineComponentProvider"),await Fh(e,new Sh(void 0));return e._offlineComponents}async function Uh(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(w(Rh,"Using user provided OnlineComponentProvider"),await Mh(e,e._uninitializedComponentsProvider._online)):(w(Rh,"Using default OnlineComponentProvider"),await Mh(e,new Ch))),e._onlineComponents}function jh(e){return Lh(e).then(e=>e.persistence)}function qh(e){return Lh(e).then(e=>e.localStore)}function Bh(e){return Uh(e).then(e=>e.remoteStore)}function zh(e){return Uh(e).then(e=>e.syncEngine)}function Kh(e){return Uh(e).then(e=>e.datastore)}async function $h(e){const t=await Uh(e),n=t.eventManager;return n.onListen=Bl.bind(null,t.syncEngine),n.onUnlisten=Gl.bind(null,t.syncEngine),n.onFirstRemoteStoreListen=zl.bind(null,t.syncEngine),n.onLastRemoteStoreUnlisten=Ql.bind(null,t.syncEngine),n}function Gh(e){return e.asyncQueue.enqueue(async()=>{const t=await jh(e),n=await Bh(e);return t.setNetworkEnabled(!0),(function(e){const t=x(e);return t.Ia.delete(0),jc(t)})(n)})}function Qh(e){return e.asyncQueue.enqueue(async()=>{const t=await jh(e),n=await Bh(e);return t.setNetworkEnabled(!1),(async function(e){const t=x(e);t.Ia.add(0),await qc(t),t.Va.set("Offline")})(n)})}function Hh(e,t,n,r){const s=new Dh(r),i=new Al(t,s,n);return e.asyncQueue.enqueueAndForget(async()=>El(await $h(e),i)),()=>{s.Nu(),e.asyncQueue.enqueueAndForget(async()=>Sl(await $h(e),i))}}function Wh(e,t){const n=new D;return e.asyncQueue.enqueueAndForget(async()=>(async function(e,t,n){try{const r=await(function(e,t){const n=x(e);return n.persistence.runTransaction("read document","readonly",e=>n.localDocuments.getDocument(e,t))})(e,t);r.isFoundDocument()?n.resolve(r):r.isNoDocument()?n.resolve(null):n.reject(new N(C.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)"))}catch(e){const r=pl(e,`Failed to get document '${t} from cache`);n.reject(r)}})(await qh(e),t,n)),n.promise}function Jh(e,t,n={}){const r=new D;return e.asyncQueue.enqueueAndForget(async()=>(function(e,t,n,r,s){const i=new Dh({next:a=>{i.Nu(),t.enqueueAndForget(()=>Sl(e,o));const u=a.docs.has(n);!u&&a.fromCache?s.reject(new N(C.UNAVAILABLE,"Failed to get document because the client is offline.")):u&&a.fromCache&&r&&"server"===r.source?s.reject(new N(C.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):s.resolve(a)},error:e=>s.reject(e)}),o=new Al(Xr(n.path),i,{includeMetadataChanges:!0,qa:!0});return El(e,o)})(await $h(e),e.asyncQueue,t,n,r)),r.promise}function Yh(e,t){const n=new D;return e.asyncQueue.enqueueAndForget(async()=>(async function(e,t,n){try{const r=await Qu(e,t,!0),s=new Ml(t,r.ks),i=s.ru(r.documents),o=s.applyChanges(i,!1);n.resolve(o.snapshot)}catch(e){const r=pl(e,`Failed to execute query '${t} against cache`);n.reject(r)}})(await qh(e),t,n)),n.promise}function Xh(e,t,n={}){const r=new D;return e.asyncQueue.enqueueAndForget(async()=>(function(e,t,n,r,s){const i=new Dh({next:n=>{i.Nu(),t.enqueueAndForget(()=>Sl(e,o)),n.fromCache&&"server"===r.source?s.reject(new N(C.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):s.resolve(n)},error:e=>s.reject(e)}),o=new Al(n,i,{includeMetadataChanges:!0,qa:!0});return El(e,o)})(await $h(e),e.asyncQueue,t,n,r)),r.promise}function Zh(e,t,n){const r=new D;return e.asyncQueue.enqueueAndForget(async()=>{try{const s=await Kh(e);r.resolve((async function(e,t,n){const r=x(e),{request:s,gt:i,parent:o}=ho(r.serializer,ss(t),n);r.connection.qo||delete s.parent;
5100const a=(await r.jo("RunAggregationQuery",r.serializer.databaseId,o,s,1)).filter(e=>!!e.result);S(1===a.length,64727);const u=a[0].result?.aggregateFields;return Object.keys(u).reduce((e,t)=>(e[i[t]]=u[t],e),{})})(s,t,n))}catch(e){r.reject(e)}}),r.promise}function ed(e,t){const n=new D;return e.asyncQueue.enqueueAndForget(async()=>{try{const r=await Kh(e);n.resolve((async function(e,t){const n=x(e),r={database:Zi(n.serializer),structuredPipeline:t._toProto(n.serializer)},s=await n.jo("ExecutePipeline",n.serializer.databaseId,Y.emptyPath(),r),i=[];return s.forEach(e=>{if(e.results&&0!==e.results.length)return e.results.forEach(t=>i.push(no(n.serializer,e,t)));i.push(no(n.serializer,e))}),i})(r,t))}catch(e){n.reject(e)}}),n.promise}function td(e,t){const n=new D;return e.asyncQueue.enqueueAndForget(async()=>Hl(await zh(e),t,n)),n.promise}function nd(e,t){const n=new Dh(t);return e.asyncQueue.enqueueAndForget(async()=>(function(e,t){x(e).Ca.add(t),t.next()})(await $h(e),n)),()=>{n.Nu(),e.asyncQueue.enqueueAndForget(async()=>(function(e,t){x(e).Ca.delete(t)})(await $h(e),n))}}function rd(e,t,n){const r=new D;return e.asyncQueue.enqueueAndForget(async()=>{const s=await Kh(e);new Ph(e.asyncQueue,s,n,t,r).ju()}),r.promise}function sd(e,t,n,r){const s=(function(e,t){let n;return n="string"==typeof e?Ti().encode(e):e,(function(e,t){return new Ah(e,t)})((function(e,t){if(e instanceof Uint8Array)return Nh(e,t);if(e instanceof ArrayBuffer)return Nh(new Uint8Array(e),t);if(e instanceof ReadableStream)return e.getReader();throw new Error("Source of `toByteStreamReader` has to be a ArrayBuffer or ReadableStream")})(n),t)})(n,Nc(t));e.asyncQueue.enqueueAndForget(async()=>{Th(await zh(e),s,r)})}function id(e,t){return e.asyncQueue.enqueue(async()=>(function(e,t){const n=x(e);return n.persistence.runTransaction("Get named query","readonly",e=>n.Pi.getNamedQuery(e,t))})(await qh(e),t))}function od(e,t){return(function(e,t){return new kh(e,t)})(e,t)}function ad(e,t){return e.asyncQueue.enqueue(async()=>(async function(e,t){const n=x(e),r=n.indexManager,s=[];return n.persistence.runTransaction("Configure indexes","readwrite",e=>r.getFieldIndexes(e).next(n=>
5101/**
5102      * @license
5103      * Copyright 2017 Google LLC
5104      *
5105      * Licensed under the Apache License, Version 2.0 (the "License");
5106      * you may not use this file except in compliance with the License.
5107      * You may obtain a copy of the License at
5108      *
5109      *   http://www.apache.org/licenses/LICENSE-2.0
5110      *
5111      * Unless required by applicable law or agreed to in writing, software
5112      * distributed under the License is distributed on an "AS IS" BASIS,
5113      * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5114      * See the License for the specific language governing permissions and
5115      * limitations under the License.
5116      */
5117(function(e,t,n,r,s){e=[...e],t=[...t],e.sort(n),t.sort(n);const i=e.length,o=t.length;let a=0,u=0;for(;a<o&&u<i;){const i=n(e[u],t[a]);i<0?s(e[u++]):i>0?r(t[a++]):(a++,u++)}for(;a<o;)r(t[a++]);for(;u<i;)s(e[u++])})(n,t,be,t=>{s.push(r.addFieldIndex(e,t))},t=>{s.push(r.deleteFieldIndex(e,t))})).next(()=>Ae.waitFor(s)))})(await qh(e),t))}function ud(e,t){return e.asyncQueue.enqueue(async()=>(function(e,t){x(e).Cs.As=t})(await qh(e),t))}function cd(e){return e.asyncQueue.enqueue(async()=>(function(e){const t=x(e),n=t.indexManager;return t.persistence.runTransaction("Delete All Indexes","readwrite",e=>n.deleteAllFieldIndexes(e))})(await qh(e)))}
5118/**
5119   * @license
5120   * Copyright 2023 Google LLC
5121   *
5122   * Licensed under the Apache License, Version 2.0 (the "License");
5123   * you may not use this file except in compliance with the License.
5124   * You may obtain a copy of the License at
5125   *
5126   *   http://www.apache.org/licenses/LICENSE-2.0
5127   *
5128   * Unless required by applicable law or agreed to in writing, software
5129   * distributed under the License is distributed on an "AS IS" BASIS,
5130   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5131   * See the License for the specific language governing permissions and
5132   * limitations under the License.
5133   */function ld(e){const t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t
5134/**
5135   * @license
5136   * Copyright 2020 Google LLC
5137   *
5138   * Licensed under the Apache License, Version 2.0 (the "License");
5139   * you may not use this file except in compliance with the License.
5140   * You may obtain a copy of the License at
5141   *
5142   *   http://www.apache.org/licenses/LICENSE-2.0
5143   *
5144   * Unless required by applicable law or agreed to in writing, software
5145   * distributed under the License is distributed on an "AS IS" BASIS,
5146   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5147   * See the License for the specific language governing permissions and
5148   * limitations under the License.
5149   */}const hd="ComponentProvider",dd=new Map;function fd(e,t,n,r,s){return new Fn(e,t,n,s.host,s.ssl,s.experimentalForceLongPolling,s.experimentalAutoDetectLongPolling,ld(s.experimentalLongPollingOptions),s.useFetchStreams,s.isUsingEmulator,r)}
5150/**
5151   * @license
5152   * Copyright 2020 Google LLC
5153   *
5154   * Licensed under the Apache License, Version 2.0 (the "License");
5155   * you may not use this file except in compliance with the License.
5156   * You may obtain a copy of the License at
5157   *
5158   *   http://www.apache.org/licenses/LICENSE-2.0
5159   *
5160   * Unless required by applicable law or agreed to in writing, software
5161   * distributed under the License is distributed on an "AS IS" BASIS,
5162   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5163   * See the License for the specific language governing permissions and
5164   * limitations under the License.
5165   */const md="firestore.googleapis.com",gd=!0;class pd{constructor(e){if(void 0===e.host){if(void 0!==e.ssl)throw new N(C.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=md,this.ssl=gd}else this.host=e.host,this.ssl=e.ssl??gd;if(this.isUsingEmulator=void 0!==e.emulatorOptions,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=Na;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<za)throw new N(C.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}ne("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===e.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=ld(e.experimentalLongPollingOptions??{}),(function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new N(C.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (must not be NaN)`);if(e.timeoutSeconds<5)throw new N(C.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (minimum allowed value is 5)`);if(e.timeoutSeconds>30)throw new N(C.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (maximum allowed value is 30)`)}}
5166/**
5167      * @license
5168      * Copyright 2020 Google LLC
5169      *
5170      * Licensed under the Apache License, Version 2.0 (the "License");
5171      * you may not use this file except in compliance with the License.
5172      * You may obtain a copy of the License at
5173      *
5174      *   http://www.apache.org/licenses/LICENSE-2.0
5175      *
5176      * Unless required by applicable law or agreed to in writing, software
5177      * distributed under the License is distributed on an "AS IS" BASIS,
5178      * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5179      * See the License for the specific language governing permissions and
5180      * limitations under the License.
5181      */)(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&(function(e,t){return e.timeoutSeconds===t.timeoutSeconds})(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class yd{constructor(e,t,n,r){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=n,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new pd({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new N(C.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return"notTerminated"!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new N(C.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new pd(e),this._emulatorOptions=e.emulatorOptions||{},void 0!==e.credentials&&(this._authCredentials=(function(e){if(!e)return new k;switch(e.type){case"firstParty":return new V(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new N(C.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invali
5181d credential type")}})(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return"notTerminated"===this._terminateTask&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){"notTerminated"===this._terminateTask?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return(function(e){const t=dd.get(e);t&&(w(hd,"Removing Datastore"),dd.delete(e),t.terminate())})(this),Promise.resolve()}}function wd(e,t,n,r={}){e=ae(e,yd);const s=(0,u.isCloudWorkstation)(t),i=e._getSettings(),o=Object.assign({},i,{emulatorOptions:e._getEmulatorOptions()}),a=`${t}:${n}`;s&&(0,u.pingServer)(`https://${a}`),i.host!==md&&i.host!==a&&v("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");const c=Object.assign({},i,{host:a,ssl:s,emulatorOptions:r});if(!(0,u.deepEqual)(c,o)&&(e._setSettings(c),r.mockUserToken)){let t,n;if("string"==typeof r.mockUserToken)t=r.mockUserToken,n=d.MOCK_USER;else{t=(0,u.createMockUserToken)(r.mockUserToken,e._app?.options.projectId);const s=r.mockUserToken.sub||r.mockUserToken.user_id;if(!s)throw new N(C.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");n=new d(s)}e._authCredentials=new O(new A(t,n))}}
5182/**
5183   * @license
5184   * Copyright 2020 Google LLC
5185   *
5186   * Licensed under the Apache License, Version 2.0 (the "License");
5187   * you may not use this file except in compliance with the License.
5188   * You may obtain a copy of the License at
5189   *
5190   *   http://www.apache.org/licenses/LICENSE-2.0
5191   *
5192   * Unless required by applicable law or agreed to in writing, software
5193   * distributed under the License is distributed on an "AS IS" BASIS,
5194   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5195   * See the License for the specific language governing permissions and
5196   * limitations under the License.
5197   */class bd{constructor(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}withConverter(e){return new bd(this.firestore,e,this._query)}}class vd{constructor(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Id(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new vd(this.firestore,e,this._key)}toJSON(){return{type:vd._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(e,t,n){if(le(t,vd._jsonSchema))return new vd(e,n||null,new ee(Y.fromString(t.referencePath)))}}vd._jsonSchemaVersion="firestore/documentReference/1.0",vd._jsonSchema={type:ce("string",vd._jsonSchemaVersion),referencePath:ce("string")};class Id extends bd{constructor(e,t,n){super(e,t,Xr(n)),this._path=n,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new vd(this.firestore,null,new ee(e))}withConverter(e){return new Id(this.firestore,e,this._path)}}function Td(e){return e instanceof Id}function Ed(e,t,...n){if(e=(0,u.getModularInstance)(e),te("collection","path",t),e instanceof yd){const r=Y.fromString(t,...n);return se(r),new Id(e,null,r)}{if(!(e instanceof vd||e instanceof Id))throw new N(C.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=e._path.child(Y.fromString(t,...n));return se(r),new Id(e.firestore,null,r)}}function Sd(e,t){if(e=ae(e,yd),te("collectionGroup","collection id",t),t.indexOf("/")>=0)throw new N(C.INVALID_ARGUMENT,`Invalid collection ID '${t}' passed to function collectionGroup(). Collection IDs must not contain '/'.`);return new bd(e,null,(function(e){return new Jr(Y.emptyPath(),e)})(t))}function _d(e,t,...n){if(e=(0,u.getModularInstance)(e),1===arguments.length&&(t=j.newId()),te("doc","path",t),e instanceof yd){const r=Y.fromString(t,...n);return re(r),new vd(e,null,new ee(r))}{if(!(e instanceof vd||e instanceof Id))throw new N(C.INVALID_ARGUMENT,"Expected first argument to doc() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=e._path.child(Y.fromString(t,...n));return re(r),new vd(e.firestore,e instanceof Id?e.converter:null,new ee(r))}}function xd(e,t){return e=(0,u.getModularInstance)(e),t=(0,u.getModularInstance)(t),(e instanceof vd||e instanceof Id)&&(t instanceof vd||t instanceof Id)&&e.firestore===t.firestore&&e.path===t.path&&e.converter===t.converter}function Cd(e,t){return e=(0,u.getModularInstance)(e),t=(0,u.getModularInstance)(t),e instanceof bd&&t instanceof bd&&e.firestore===t.firestore&&hs(e._query,t._query)&&e.converter===t.converter
5198/**
5199   * @license
5200   * Copyright 2020 Google LLC
5201   *
5202   * Licensed under the Apache License, Version 2.0 (the "License");
5203   * you may not use this file except in compliance with the License.
5204   * You may obtain a copy of the License at
5205   *
5206   *   http://www.apache.org/licenses/LICENSE-2.0
5207   *
5208   * Unless required by applicable law or agreed to in writing, software
5209   * distributed under the License is distributed on an "AS IS" BASIS,
5210   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5211   * See the License for the specific language governing permissions and
5212   * limitations under the License.
5213   */}const Nd="AsyncQueue";class Dd{constructor(e=Promise.resolve()){this.Yu=[],this.ec=!1,this.tc=[],this.nc=null,this.rc=!1,this.sc=!1,this.oc=[],this.M_=new Dc(this,"async_queue_retry"),this._c=()=>{const e=Cc();e&&w(Nd,"Visibility state changed to "+e.visibilityState),this.M_.w_()},this.ac=e;const t=Cc();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this._c)}get isShuttingDown(){return this.ec}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.uc(),this.cc(e)}enterRestrictedMode(e){if(!this.ec){this.ec=!0,this.sc=e||!1;const t=Cc();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this._c)}}enqueue(e){if(this.uc(),this.ec)return new Promise(()=>{});const t=new D;return this.cc(()=>this.ec&&this.sc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Yu.push(e),this.lc()))}async lc(){if(0!==this.Yu.length){try{await this.Yu[0](),this.Yu.shift(),this.M_.reset()}catch(e){if(!Me(e))throw e;w(Nd,"Operation failed with retryable error: "+e)}this.Yu.length>0&&this.M_.p_(()=>this.lc())}}cc(e){const t=this.ac.then(()=>(this.rc=!0,e().catch(e=>{throw this.nc=e,this.rc=!1,b("INTERNAL UNHANDLED ERROR: ",Ad(e)),e}).then(e=>(this.rc=!1,e))));return this.ac=t,t}enqueueAfterDelay(e,t,n){this.uc(),this.oc.indexOf(e)>-1&&(t=0);const r=gl.createAndSchedule(this,e,t,n,e=>this.hc(e));return this.tc.push(r),r}uc(){this.nc&&T(47125,{Pc:Ad(this.nc)})}verifyOperationInProgress(){}async Tc(){let e;do{e=this.ac,await e}while(e!==this.ac)}Ec(e){for(const t of this.tc)if(t.timerId===e)return!0;return!1}Ic(e){return this.Tc().then(()=>{this.tc.sort((e,t)=>e.targetTimeMs-t.targetTimeMs);for(const t of this.tc)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.Tc()})}Rc(e){this.oc.push(e)}hc(e){const t=this.tc.indexOf(e);this.tc.splice(t,1)}}function Ad(e){let t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t
5214/**
5215   * @license
5216   * Copyright 2020 Google LLC
5217   *
5218   * Licensed under the Apache License, Version 2.0 (the "License");
5219   * you may not use this file except in compliance with the License.
5220   * You may obtain a copy of the License at
5221   *
5222   *   http://www.apache.org/licenses/LICENSE-2.0
5223   *
5224   * Unless required by applicable law or agreed to in writing, software
5225   * distributed under the License is distributed on an "AS IS" BASIS,
5226   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5227   * See the License for the specific language governing permissions and
5228   * limitations under the License.
5229   */}class kd{constructor(){this._progressObserver={},this._taskCompletionResolver=new D,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}onProgress(e,t,n){this._progressObserver={next:e,error:t,complete:n}}catch(e){return this._taskCompletionResolver.promise.catch(e)}then(e,t){return this._taskCompletionResolver.promise.then(e,t)}_completeWith(e){this._updateProgress(e),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(e)}_failWith(e){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(e),this._taskCompletionResolver.reject(e)}_updateProgress(e){this._lastProgress=e,this._progressObserver.next&&this._progressObserver.next(e)}}
5230/**
5231   * @license
5232   * Copyright 2020 Google LLC
5233   *
5234   * Licensed under the Apache License, Version 2.0 (the "License");
5235   * you may not use this file except in compliance with the License.
5236   * You may obtain a copy of the License at
5237   *
5238   *   http://www.apache.org/licenses/LICENSE-2.0
5239   *
5240   * Unless required by applicable law or agreed to in writing, software
5241   * distributed under the License is distributed on an "AS IS" BASIS,
5242   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5243   * See the License for the specific language governing permissions and
5244   * limitations under the License.
5245   */const Od=-1;class Pd extends yd{constructor(e,t,n,r){super(e,t,n,r),this.type="firestore",this._queue=new Dd,this._persistenceKey=r?.name||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new Dd(e),this._firestoreClient=void 0,await e}}}function Rd(e,t,n){n||(n=Mn);const r=(0,a._getProvider)(e,"firestore");if(r.isInitialized(n)){const e=r.getImmediate({identifier:n}),s=r.getOptions(n);if((0,u.deepEqual)(s,t))return e;throw new N(C.FAILED_PRECONDITION,"initializeFirestore() has already been called with different options. To avoid this error, call initializeFirestore() with the same options as when it was originally called, or call getFirestore() to return the already initialized instance.")}if(void 0!==t.cacheSizeBytes&&void 0!==t.localCache)throw new N(C.INVALID_ARGUMENT,"cache and cacheSizeBytes cannot be specified at the same time as cacheSizeBytes willbe deprecated. Instead, specify the cache size in the cache object");if(void 0!==t.cacheSizeBytes&&-1!==t.cacheSizeBytes&&t.cacheSizeBytes<za)throw new N(C.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");return t.host&&(0,u.isCloudWorkstation)(t.host)&&(0,u.pingServer)(t.host),r.initialize({options:t,instanceIdentifier:n})}function Vd(e,t){const n="object"==typeof e?e:(0,a.getApp)(),r="string"==typeof e?e:t||Mn,s=(0,a._getProvider)(n,"firestore").getImmediate({identifier:r});if(!s._initialized){const e=(0,u.getDefaultEmulatorHostnameAndPort)("firestore");e&&wd(s,...e)}return s}function Fd(e){if(e._terminated)throw new N(C.FAILED_PRECONDITION,"The client has already been terminated.");return e._firestoreClient||Md(e),e._firestoreClient}function Md(e){const t=e._freezeSettings(),n=fd(e._databaseId,e._app?.options.appId||"",e._persistenceKey,e._app?.options.apiKey,t);e._componentsProvider||t.localCache?._offlineComponentProvider&&t.localCache?._onlineComponentProvider&&(e._componentsProvider={_offline:t.localCache._offlineComponentProvider,_online:t.localCache._onlineComponentProvider}),e._firestoreClient=new Vh(e._authCredentials,e._appCheckCredentials,e._queue,n,e._componentsProvider&&(function(e){const t=e?._online.build();return{_offline:e?._offline.build(t),_online:t}})(e._componentsProvider))}function Ld(e,t){v("enableIndexedDbPersistence() will be deprecated 
5245in the future, you can use `FirestoreSettings.cache` instead.");const n=e._freezeSettings();return jd(e,Ch.provider,{build:e=>new _h(e,n.cacheSizeBytes,t?.forceOwnership)}),Promise.resolve()}async function Ud(e){v("enableMultiTabIndexedDbPersistence() will be deprecated in the future, you can use `FirestoreSettings.cache` instead.");const t=e._freezeSettings();jd(e,Ch.provider,{build:e=>new xh(e,t.cacheSizeBytes)})}function jd(e,t,n){if((e=ae(e,Pd))._firestoreClient||e._terminated)throw new N(C.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.");if(e._componentsProvider||e._getSettings().localCache)throw new N(C.FAILED_PRECONDITION,"SDK cache is already specified.");e._componentsProvider={_online:t,_offline:n},Md(e)}function qd(e){if(e._initialized&&!e._terminated)throw new N(C.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");const t=new D;return e._queue.enqueueAndForgetEvenWhileRestricted(async()=>{try{await(async function(e){if(!Pe.v())return Promise.resolve();const t=e+Cu;await Pe.delete(t)})(ku(e._databaseId,e._persistenceKey)),t.resolve()}catch(e){t.reject(e)}}),t.promise}function Bd(e){return(function(e){const t=new D;return e.asyncQueue.enqueueAndForget(async()=>eh(await zh(e),t)),t.promise})(Fd(e=ae(e,Pd)))}function zd(e){return Gh(Fd(e=ae(e,Pd)))}function Kd(e){return Qh(Fd(e=ae(e,Pd)))}function $d(e){return(0,a._removeServiceInstance)(e.app,"firestore",e._databaseId.database),e._delete()}function Gd(e,t){const n=Fd(e=ae(e,Pd)),r=new kd;return sd(n,e._databaseId,t,r),r}function Qd(e,t){return id(Fd(e=ae(e,Pd)),t).then(t=>t?new bd(e,null,t.query):null)}
5246/**
5247   * @license
5248   * Copyright 2020 Google LLC
5249   *
5250   * Licensed under the Apache License, Version 2.0 (the "License");
5251   * you may not use this file except in compliance with the License.
5252   * You may obtain a copy of the License at
5253   *
5254   *   http://www.apache.org/licenses/LICENSE-2.0
5255   *
5256   * Unless required by applicable law or agreed to in writing, software
5257   * distributed under the License is distributed on an "AS IS" BASIS,
5258   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5259   * See the License for the specific language governing permissions and
5260   * limitations under the License.
5261   */class Hd{constructor(e){this._byteString=e}static fromBase64String(e){try{return new Hd(Sn.fromBase64String(e))}catch(e){throw new N(C.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(e){return new Hd(Sn.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}toJSON(){return{type:Hd._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(e){if(le(e,Hd._jsonSchema))return Hd.fromBase64String(e.bytes)}}Hd._jsonSchemaVersion="firestore/bytes/1.0",Hd._jsonSchema={type:ce("string",Hd._jsonSchemaVersion),bytes:ce("string")};
5262/**
5263   * @license
5264   * Copyright 2020 Google LLC
5265   *
5266   * Licensed under the Apache License, Version 2.0 (the "License");
5267   * you may not use this file except in compliance with the License.
5268   * You may obtain a copy of the License at
5269   *
5270   *   http://www.apache.org/licenses/LICENSE-2.0
5271   *
5272   * Unless required by applicable law or agreed to in writing, software
5273   * distributed under the License is distributed on an "AS IS" BASIS,
5274   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5275   * See the License for the specific language governing permissions and
5276   * limitations under the License.
5277   */
5278class Wd{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new N(C.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Z(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}function Jd(){return new Wd(W)}
5279/**
5280   * @license
5281   * Copyright 2020 Google LLC
5282   *
5283   * Licensed under the Apache License, Version 2.0 (the "License");
5284   * you may not use this file except in compliance with the License.
5285   * You may obtain a copy of the License at
5286   *
5287   *   http://www.apache.org/licenses/LICENSE-2.0
5288   *
5289   * Unless required by applicable law or agreed to in writing, software
5290   * distributed under the License is distributed on an "AS IS" BASIS,
5291   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5292   * See the License for the specific language governing permissions and
5293   * limitations under the License.
5294   */class Yd{constructor(e){this._methodName=e}}
5295/**
5296   * @license
5297   * Copyright 2017 Google LLC
5298   *
5299   * Licensed under the Apache License, Version 2.0 (the "License");
5300   * you may not use this file except in compliance with the License.
5301   * You may obtain a copy of the License at
5302   *
5303   *   http://www.apache.org/licenses/LICENSE-2.0
5304   *
5305   * Unless required by applicable law or agreed to in writing, software
5306   * distributed under the License is distributed on an "AS IS" BASIS,
5307   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5308   * See the License for the specific language governing permissions and
5309   * limitations under the License.
5310   */class Xd{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new N(C.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new N(C.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}_compareTo(e){return q(this._lat,e._lat)||q(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:Xd._jsonSchemaVersion}}static fromJSON(e){if(le(e,Xd._jsonSchema))return new Xd(e.latitude,e.longitude)}}Xd._jsonSchemaVersion="firestore/geoPoint/1.0",Xd._jsonSchema={type:ce("string",Xd._jsonSchemaVersion),latitude:ce("number"),longitude:ce("number")};
5311/**
5312   * @license
5313   * Copyright 2024 Google LLC
5314   *
5315   * Licensed under the Apache License, Version 2.0 (the "License");
5316   * you may not use this file except in compliance with the License.
5317   * You may obtain a copy of the License at
5318   *
5319   *   http://www.apache.org/licenses/LICENSE-2.0
5320   *
5321   * Unless required by applicable law or agreed to in writing, software
5322   * distributed under the License is distributed on an "AS IS" BASIS,
5323   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5324   * See the License for the specific language governing permissions and
5325   * limitations under the License.
5326   */
5327class Zd{constructor(e){this._values=(e||[]).map(e=>e)}toArray(){return this._values.map(e=>e)}isEqual(e){return(function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0})(this._values,e._values)}toJSON(){return{type:Zd._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(e){if(le(e,Zd._jsonSchema)){if(Array.isArray(e.vectorValues)&&e.vectorValues.every(e=>"number"==typeof e))return new Zd(e.vectorValues);throw new N(C.INVALID_ARGUMENT,"Expected 'vectorValues' field to be a number array")}}}Zd._jsonSchemaVersion="firestore/vectorValue/1.0",Zd._jsonSchema={type:ce("string",Zd._jsonSchemaVersion),vectorValues:ce("object")};
5328/**
5329   * @license
5330   * Copyright 2017 Google LLC
5331   *
5332   * Licensed under the Apache License, Version 2.0 (the "License");
5333   * you may not use this file except in compliance with the License.
5334   * You may obtain a copy of the License at
5335   *
5336   *   http://www.apache.org/licenses/LICENSE-2.0
5337   *
5338   * Unless required by applicable law or agreed to in writing, software
5339   * distributed under the License is distributed on an "AS IS" BASIS,
5340   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5341   * See the License for the specific language governing permissions and
5342   * limitations under the License.
5343   */
5344const ef=/^__.*__$/;class tf{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return null!==this.fieldMask?new ii(e,this.data,this.fieldMask,t,this.fieldTransforms):new si(e,this.data,t,this.fieldTransforms)}}class nf{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return new ii(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function rf(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw T(40011,{dataSource:e})}}class sf{constructor(e,t,n,r,s,i){this.settings=e,this.databaseId=t,this.serializer
5344=n,this.ignoreUndefinedProperties=r,void 0===s&&this.Ac(),this.fieldTransforms=s||[],this.fieldMask=i||[]}get path(){return this.settings.path}get dataSource(){return this.settings.dataSource}i(e){return new sf(Object.assign({},this.settings,e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}dc(e){const t=this.path?.child(e),n=this.i({path:t,arrayElement:!1});return n.mc(e),n}fc(e){const t=this.path?.child(e),n=this.i({path:t,arrayElement:!1});return n.Ac(),n}gc(e){return this.i({path:void 0,arrayElement:!0})}yc(e){return _f(e,this.settings.methodName,this.settings.hasConverter||!1,this.path,this.settings.targetDoc)}contains(e){return void 0!==this.fieldMask.find(t=>e.isPrefixOf(t))||void 0!==this.fieldTransforms.find(t=>e.isPrefixOf(t.field))}Ac(){if(this.path)for(let e=0;e<this.path.length;e++)this.mc(this.path.get(e))}mc(e){if(0===e.length)throw this.yc("Document fields must not be empty");if(rf(this.dataSource)&&ef.test(e))throw this.yc('Document fields cannot begin and end with "__"')}}class of{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=n||Nc(e)}I(e,t,n,r=!1){return new sf({dataSource:e,methodName:t,targetDoc:n,path:Z.emptyPath(),arrayElement:!1,hasConverter:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function af(e){const t=e._freezeSettings(),n=Nc(e._databaseId);return new of(e._databaseId,!!t.ignoreUndefinedProperties,n)}function uf(e,t,n,r,s,i={}){const o=e.I(i.merge||i.mergeFields?2:0,t,n,s);If("Data must be an object, but it was:",o,r);const a=bf(r,o);let u,c;if(i.merge)u=new In(o.fieldMask),c=o.fieldTransforms;else if(i.mergeFields){const e=[];for(const r of i.mergeFields){const s=Tf(t,r,n);if(!o.contains(s))throw new N(C.INVALID_ARGUMENT,`Field '${s}' is specified in your field mask but missing from your input data.`);xf(e,s)||e.push(s)}u=new In(e),c=o.fieldTransforms.filter(e=>u.covers(e.field))}else u=null,c=o.fieldTransforms;return new tf(new gr(a),u,c)}class cf extends Yd{_toFieldTransform(e){if(2!==e.dataSource)throw 1===e.dataSource?e.yc(`${this._methodName}() can only appear at the top level of your update data`):e.yc(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof cf}}function lf(e,t,n){return new sf({dataSource:3,targetDoc:t.settings.targetDoc,methodName:e._methodName,arrayElement:n},t.databaseId,t.serializer,t.ignoreUndefinedProperties)}class hf extends Yd{_toFieldTransform(e){return new Qs(e.path,new Us)}isEqual(e){return e instanceof hf}}class df extends Yd{constructor(e,t){super(e),this.Sc=t}_toFieldTransform(e){const t=lf(this,e,!0),n=this.Sc.map(e=>wf(e,t)),r=new js(n);return new Qs(e.path,r)}isEqual(e){return e instanceof df&&(0,u.deepEqual)(this.Sc,e.Sc)}}class ff extends Yd{constructor(e,t){super(e),this.Sc=t}_toFieldTransform(e){const t=lf(this,e,!0),n=this.Sc.map(e=>wf(e,t)),r=new Bs(n);return new Qs(e.path,r)}isEqual(e){return e instanceof ff&&(0,u.deepEqual)(this.Sc,e.Sc)}}class mf extends Yd{constructor(e,t){super(e),this.bc=t}_toFieldTransform(e){const t=new Ks(e.serializer,Rs(e.serializer,this.bc));return new Qs(e.path,t)}isEqual(e){return e instanceof mf&&this.bc===e.bc}}function gf(e,t,n,r){const s=e.I(1,t,n);If("Data must be an object, but it was:",s,r);const i=[],o=gr.empty();dn(r,(e,r)=>{const a=Sf(t,e,n);r=(0,u.getModularInstance)(r);const c=s.fc(a);if(r instanceof cf)i.push(a);else{const e=wf(r,c);null!=e&&(i.push(a),o.set(a,e))}});const a=new In(i);return new nf(o,a,s.fieldTransforms)}function pf(e,t,n,r,s,i){const o=e.I(1,t,n),a=[Tf(t,r,n)],c=[s];if(i.length%2!=0)throw new N(C.INVALID_ARGUMENT,`Function ${t}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let e=0;e<i.length;e+=2)a.push(Tf(t,i[e])),c.push(i[e+1]);const l=[],h=gr.empty();for(let e=a.length-1;e>=0;--e)if(!xf(l,a[e])){const t=a[e];let n=c[e];n=(0,u.getModularInstance)(n);const r=o.fc(t);if(n instanceof cf)l.push(t);else{const e=wf(n,r);null!=e&&(l.push(t),h.set(t,e))}}const d=new In(l);return new nf(h,d,o.fieldTransforms)}function yf(e,t,n,r=!1){return wf(n,e.I(r?4:3,t))}function wf(e,t){if(vf(e=(0,u.getModularInstance)(e)))return If("Unsupported field value:",t,e),bf(e,t);if(e instanceof Yd)return(function(e,t){if(!rf(t.dataSource))throw t.yc(`${e._methodName}
5344() can only be used with update() and set()`);if(!t.path)throw t.yc(`${e._methodName}() is not currently supported inside arrays`);const n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)})(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.arrayElement&&4!==t.dataSource)throw t.yc("Nested arrays are not supported");return(function(e,t){const n=[];let r=0;for(const s of e){let e=wf(s,t.gc(r));null==e&&(e={nullValue:"NULL_VALUE"}),n.push(e),r++}return{arrayValue:{values:n}}})(e,t)}return(function(e,t){if(null===(e=(0,u.getModularInstance)(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return Rs(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){const n=fe.fromDate(e);return{timestampValue:Bi(t.serializer,n)}}if(e instanceof fe){const n=new fe(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:Bi(t.serializer,n)}}if(e instanceof Xd)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof Hd)return{bytesValue:zi(t.serializer,e._byteString)};if(e instanceof vd){const n=t.databaseId,r=e.firestore._databaseId;if(!r.isEqual(n))throw t.yc(`Document reference is for database ${r.projectId}/${r.database} but should be for database ${n.projectId}/${n.database}`);return{referenceValue:Gi(e.firestore._databaseId||t.databaseId,e._key.path)}}if(e instanceof Zd)return(function(e,t){const n=e instanceof Zd?e.toArray():e,r={fields:{[jn]:{stringValue:zn},[Kn]:{arrayValue:{values:n.map(e=>{if("number"!=typeof e)throw t.yc("VectorValues must only contain numeric values.");return Os(t.serializer,e)})}}}};return{mapValue:r}})(e,t);if(So(e))return e._toProto(t.serializer);throw t.yc(`Unsupported field value: ${oe(e)}`)})(e,t)}function bf(e,t){const n={};return mn(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):dn(e,(e,r)=>{const s=wf(r,t.dc(e));null!=s&&(n[e]=s)}),{mapValue:{fields:n}}}function vf(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof fe||e instanceof Xd||e instanceof Hd||e instanceof vd||e instanceof Yd||e instanceof Zd||So(e))}function If(e,t,n){if(!vf(n)||!ie(n)){const r=oe(n);throw"an object"===r?t.yc(e+" a custom object"):t.yc(e+" "+r)}}function Tf(e,t,n){if((t=(0,u.getModularInstance)(t))instanceof Wd)return t._internalPath;if("string"==typeof t)return Sf(e,t);throw _f("Field path arguments must be of type string or ",e,!1,void 0,n)}const Ef=new RegExp("[~\\*/\\[\\]]");function Sf(e,t,n){if(t.search(Ef)>=0)throw _f(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`,e,!1,void 0,n);try{return new Wd(...t.split("."))._internalPath}catch(r){throw _f(`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,e,!1,void 0,n)}}function _f(e,t,n,r,s){const i=r&&!r.isEmpty(),o=void 0!==s;let a=`Function ${t}() called with invalid data`;n&&(a+=" (via `toFirestore()`)"),a+=". ";let u="";return(i||o)&&(u+=" (found",i&&(u+=` in field ${r}`),o&&(u+=` in document ${s}`),u+=")"),new N(C.INVALID_ARGUMENT,a+e+u)}function xf(e,t){return e.some(e=>e.isEqual(t))}function Cf(e){return"function"==typeof e._readUserData}
5345/**
5346   * @license
5347   * Copyright 2020 Google LLC
5348   *
5349   * Licensed under the Apache License, Version 2.0 (the "License");
5350   * you may not use this file except in compliance with the License.
5351   * You may obtain a copy of the License at
5352   *
5353   *   http://www.apache.org/licenses/LICENSE-2.0
5354   *
5355   * Unless required by applicable law or agreed to in writing, software
5356   * distributed under the License is distributed on an "AS IS" BASIS,
5357   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5358   * See the License for the specific language governing permissions and
5359   * limitations under the License.
5360   */class Nf{convertValue(e,t="none"){switch(Gn(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Cn(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(Nn(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 11:return this.convertObject(e.mapValue,t);case 10:return this.convertVectorValue(e.mapValue);default:throw T(62114,{value:e})}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e,t="none"){const n={};return dn(e,(e,r)=>{n[e]=this.convertValue(r,t)}),n}convertVectorValue(e){const t=e.fields?.[Kn].arrayValue?.values?.map(e=>Cn(e.doubleValue));return new Zd(t)}convertGeoPoint(e){return new Xd(Cn(e.latitude),Cn(e.longitude))}convertArray(e,t){return(e.values||[]).map(e=>this.convertValue(e,t))}convertServerTimestamp(e,t){switch(t){case"previous":const n=Rn(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(Vn(e));default:return null}}convertTimestamp(e){const t=xn(e);return new fe(t.seconds,t.nanos)}convertDocumentKey(e,t){const n=Y.fromString(e);S(Eo(n),9688,{name:e});const r=new Ln(n.get(1),n.get(3)),s=new ee(n.popFirst(5));return r.isEqual(t)||b(`Document ${s} contains a document reference within a different database (${r.projectId}/${r.database}) which is not supported. It will be treated as a reference in the current database (${t.projectId}/${t.database}) instead.`),s}}
5361/**
5362   * @license
5363   * Copyright 2024 Google LLC
5364   *
5365   * Licensed under the Apache License, Version 2.0 (the "License");
5366   * you may not use this file except in compliance with the License.
5367   * You may obtain a copy of the License at
5368   *
5369   *   http://www.apache.org/licenses/LICENSE-2.0
5370   *
5371   * Unless required by applicable law or agreed to in writing, software
5372   * distributed under the License is distributed on an "AS IS" BASIS,
5373   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5374   * See the License for the specific language governing permissions and
5375   * limitations under the License.
5376   */class Df extends Nf{constructor(e){super(),this.firestore=e}convertBytes(e){return new Hd(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new vd(this.firestore,null,t)}}
5377/**
5378   * @license
5379   * Copyright 2020 Google LLC
5380   *
5381   * Licensed under the Apache License, Version 2.0 (the "License");
5382   * you may not use this file except in compliance with the License.
5383   * You may obtain a copy of the License at
5384   *
5385   *   http://www.apache.org/licenses/LICENSE-2.0
5386   *
5387   * Unless required by applicable law or agreed to in writing, software
5388   * distributed under the License is distributed on an "AS IS" BASIS,
5389   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5390   * See the License for the specific language governing permissions and
5391   * limitations under the License.
5392   */function Af(){return new cf("deleteField")}function kf(){return new hf("serverTimestamp")}function Of(...e){return new df("arrayUnion",e)}function Pf(...e){return new ff("arrayRemove",e)}function Rf(e){return new mf("increment",e)}function Vf(e){return new Zd(e)}
5393/**
5394   * @license
5395   * Copyright 2025 Google LLC
5396   *
5397   * Licensed under the Apache License, Version 2.0 (the "License");
5398   * you may not use this file except in compliance with the License.
5399   * You may obtain a copy of the License at
5400   *
5401   *   http://www.apache.org/licenses/LICENSE-2.0
5402   *
5403   * Unless required by applicable law or agreed to in writing, software
5404   * distributed under the License is distributed on an "AS IS" BASIS,
5405   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5406   * See the License for the specific language governing permissions and
5407   * limitations under the License.
5408   */class Ff{constructor(e){this.optionDefinitions=e}_getKnownOptions(e,t){const n=gr.empty();for(const r in this.optionDefinitions)if(this.optionDefinitions.hasOwnProperty(r)){const s=this.optionDefinitions[r];if(r in e){const i=e[r];let o;s.nestedOptions&&ie(i)?o={mapValue:{fields:new Ff(s.nestedOptions).getOptionsProto(t,i)}}:i&&(o=wf(i,t)??void 0),o&&n.set(Z.fromServerFormat(s.serverName),o)}}return n}getOptionsProto(e,t,n){const r=this._getKnownOptions(t,e);if(n){const t=new Map(fn(n,(t,n)=>[Z.fromServerFormat(n),void 0!==t?wf(t,e):null]));r.setAll(t)}return r.value.mapValue.fields??{}}}
5409/**
5410   * @license
5411   * Copyright 2025 Google LLC
5412   *
5413   * Licensed under the Apache License, Version 2.0 (the "License");
5414   * you may not use this file except in compliance with the License.
5415   * You may obtain a copy of the License at
5416   *
5417   *   http://www.apache.org/licenses/LICENSE-2.0
5418   *
5419   * Unless required by applicable law or agreed to in writing, software
5420   * distributed under the License is distributed on an "AS IS" BASIS,
5421   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5422   * See the License for the specific language governing permissions and
5423   * limitations under the License.
5424   */class Mf{constructor(e={},t={}){this.Dc=e,this.Cc=t,this.vc=new Ff({indexMode:{serverName:"index_mode"}})}_readUserData(e){this.proto=this.vc.getOptionsProto(e,this.Dc,this.Cc)}}class Lf{constructor(e,t){this.pipeline=e,this.options=t}_toProto(e){return{pipeline:this.pipeline._toProto(e),options:this.options.proto}}}
5425/**
5426   * @license
5427   * Copyright 2017 Google LLC
5428   *
5429   * Licensed under the Apache License, Version 2.0 (the "License");
5430   * you may not use this file except in compliance with the License.
5431   * You may obtain a copy of the License at
5432   *
5433   *   http://www.apache.org/licenses/LICENSE-2.0
5434   *
5435   * Unless required by applicable law or agreed to in writing, softw
5435are
5436   * distributed under the License is distributed on an "AS IS" BASIS,
5437   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5438   * See the License for the specific language governing permissions and
5439   * limitations under the License.
5440   */function Uf(e){const t=Fd(ae(e.firestore,Pd)),n=t._onlineComponents?.datastore.serializer;return void 0===n?null:lo(n,rs(e._query)).ft}function jf(e,t){const n=fn(t,(e,t)=>new mi(t,e.aggregateType,e._internalFieldPath)),r=Fd(ae(e.firestore,Pd)),s=r._onlineComponents?.datastore.serializer;return void 0===s?null:ho(s,ss(e._query),n,!0).request}function qf(e){if(!e._db)throw new N(C.FAILED_PRECONDITION,"This pipeline was created without a database and cannot be serialized for execution.");const t=ae(e._db,Pd),n=af(t).I(3,"_internalPipelineToExecutePipelineRequestProto");e._readUserData(n);const r=(function(e){if(e._terminated)throw new N(C.FAILED_PRECONDITION,"The client has already been terminated.");if(!dd.has(e)){w(hd,"Initializing Datastore");const t=_c(fd(e._databaseId,e.app.options.appId||"",e._persistenceKey,e.app.options.apiKey,e._freezeSettings())),n=Nc(e._databaseId),r=Fc(e._authCredentials,e._appCheckCredentials,t,n);dd.set(e,r)}return dd.get(e)})(t),s=r.serializer;if(void 0===s)return null;const i=new Lf(e,new Mf);return{database:Zi(s),structuredPipeline:i._toProto(s)}}},313,[181,183,314,185,315]);
5441__d(function(_g,_r,i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Integer",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e,"Md5",{enumerable:!0,get:function(){return r}}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var t,r,e='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:void 0!==_g?_g:'undefined'!=typeof self?self:{},o={};(function(){var e;
5442/** @license
5443           Copyright The Closure Library Authors.
5444           SPDX-License-Identifier: Apache-2.0
5445           */function n(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}function h(t,r,e){e||(e=0);const o=Array(16);if("string"==typeof r)for(var n=0;n<16;++n)o[n]=r.charCodeAt(e++)|r.charCodeAt(e++)<<8|r.charCodeAt(e++)<<16|r.charCodeAt(e++)<<24;else for(n=0;n<16;++n)o[n]=r[e++]|r[e++]<<8|r[e++]<<16|r[e++]<<24;r=t.g[0],e=t.g[1],n=t.g[2];let h,f=t.g[3];h=r+(f^e&(n^f))+o[0]+3614090360&4294967295,h=f+(n^(r=e+(h<<7&4294967295|h>>>25))&(e^n))+o[1]+3905402710&4294967295,f=r+(h<<12&4294967295|h>>>20),h=n+(e^f&(r^e))+o[2]+606105819&4294967295,h=e+(r^(n=f+(h<<17&4294967295|h>>>15))&(f^r))+o[3]+3250441966&4294967295,h=r+(f^(e=n+(h<<22&4294967295|h>>>10))&(n^f))+o[4]+4118548399&4294967295,h=f+(n^(r=e+(h<<7&4294967295|h>>>25))&(e^n))+o[5]+1200080426&4294967295,f=r+(h<<12&4294967295|h>>>20),h=n+(e^f&(r^e))+o[6]+2821735955&4294967295,h=e+(r^(n=f+(h<<17&4294967295|h>>>15))&(f^r))+o[7]+4249261313&4294967295,h=r+(f^(e=n+(h<<22&4294967295|h>>>10))&(n^f))+o[8]+1770035416&4294967295,h=f+(n^(r=e+(h<<7&4294967295|h>>>25))&(e^n))+o[9]+2336552879&4294967295,f=r+(h<<12&4294967295|h>>>20),h=n+(e^f&(r^e))+o[10]+4294925233&4294967295,h=e+(r^(n=f+(h<<17&4294967295|h>>>15))&(f^r))+o[11]+2304563134&4294967295,h=r+(f^(e=n+(h<<22&4294967295|h>>>10))&(n^f))+o[12]+1804603682&4294967295,h=f+(n^(r=e+(h<<7&4294967295|h>>>25))&(e^n))+o[13]+4254626195&4294967295,f=r+(h<<12&4294967295|h>>>20),h=n+(e^f&(r^e))+o[14]+2792965006&4294967295,h=e+(r^(n=f+(h<<17&4294967295|h>>>15))&(f^r))+o[15]+1236535329&4294967295,h=r+(n^f&((e=n+(h<<22&4294967295|h>>>10))^n))+o[1]+4129170786&4294967295,h=f+(e^n&((r=e+(h<<5&4294967295|h>>>27))^e))+o[6]+3225465664&4294967295,f=r+(h<<9&4294967295|h>>>23),h=n+(r^e&(f^r))+o[11]+643717713&4294967295,h=e+(f^r&((n=f+(h<<14&4294967295|h>>>18))^f))+o[0]+3921069994&4294967295,h=r+(n^f&((e=n+(h<<20&4294967295|h>>>12))^n))+o[5]+3593408605&4294967295,h=f+(e^n&((r=e+(h<<5&4294967295|h>>>27))^e))+o[10]+38016083&4294967295,f=r+(h<<9&4294967295|h>>>23),h=n+(r^e&(f^r))+o[15]+3634488961&4294967295,h=e+(f^r&((n=f+(h<<14&4294967295|h>>>18))^f))+o[4]+3889429448&4294967295,h=r+(n^f&((e=n+(h<<20&4294967295|h>>>12))^n))+o[9]+568446438&4294967295,h=f+(e^n&((r=e+(h<<5&4294967295|h>>>27))^e))+o[14]+3275163606&4294967295,f=r+(h<<9&4294967295|h>>>
vendor: 2,978 bytes, line 5445
544523),h=n+(r^e&(f^r))+o[3]+4107603335&4294967295,h=e+(f^r&((n=f+(h<<14&4294967295|h>>>18))^f))+o[8]+1163531501&4294967295,h=r+(n^f&((e=n+(h<<20&4294967295|h>>>12))^n))+o[13]+2850285829&4294967295,h=f+(e^n&((r=e+(h<<5&4294967295|h>>>27))^e))+o[2]+4243563512&4294967295,f=r+(h<<9&4294967295|h>>>23),h=n+(r^e&(f^r))+o[7]+1735328473&4294967295,h=e+(f^r&((n=f+(h<<14&4294967295|h>>>18))^f))+o[12]+2368359562&4294967295,h=r+((e=n+(h<<20&4294967295|h>>>12))^n^f)+o[5]+4294588738&4294967295,h=f+((r=e+(h<<4&4294967295|h>>>28))^e^n)+o[8]+2272392833&4294967295,f=r+(h<<11&4294967295|h>>>21),h=n+(f^r^e)+o[11]+1839030562&4294967295,h=e+((n=f+(h<<16&4294967295|h>>>16))^f^r)+o[14]+4259657740&4294967295,h=r+((e=n+(h<<23&4294967295|h>>>9))^n^f)+o[1]+2763975236&4294967295,h=f+((r=e+(h<<4&4294967295|h>>>28))^e^n)+o[4]+1272893353&4294967295,f=r+(h<<11&4294967295|h>>>21),h=n+(f^r^e)+o[7]+4139469664&4294967295,h=e+((n=f+(h<<16&4294967295|h>>>16))^f^r)+o[10]+3200236656&4294967295,h=r+((e=n+(h<<23&4294967295|h>>>9))^n^f)+o[13]+681279174&4294967295,h=f+((r=e+(h<<4&4294967295|h>>>28))^e^n)+o[0]+3936430074&4294967295,f=r+(h<<11&4294967295|h>>>21),h=n+(f^r^e)+o[3]+3572445317&4294967295,h=e+((n=f+(h<<16&4294967295|h>>>16))^f^r)+o[6]+76029189&4294967295,h=r+((e=n+(h<<23&4294967295|h>>>9))^n^f)+o[9]+3654602809&4294967295,h=f+((r=e+(h<<4&4294967295|h>>>28))^e^n)+o[12]+3873151461&4294967295,f=r+(h<<11&4294967295|h>>>21),h=n+(f^r^e)+o[15]+530742520&4294967295,h=e+((n=f+(h<<16&4294967295|h>>>16))^f^r)+o[2]+3299628645&4294967295,h=r+(n^((e=n+(h<<23&4294967295|h>>>9))|~f))+o[0]+4096336452&4294967295,h=f+(e^((r=e+(h<<6&4294967295|h>>>26))|~n))+o[7]+1126891415&4294967295,f=r+(h<<10&4294967295|h>>>22),h=n+(r^(f|~e))+o[14]+2878612391&4294967295,h=e+(f^((n=f+(h<<15&4294967295|h>>>17))|~r))+o[5]+4237533241&4294967295,h=r+(n^((e=n+(h<<21&4294967295|h>>>11))|~f))+o[12]+1700485571&4294967295,h=f+(e^((r=e+(h<<6&4294967295|h>>>26))|~n))+o[3]+2399980690&4294967295,f=r+(h<<10&4294967295|h>>>22),h=n+(r^(f|~e))+o[10]+4293915773&4294967295,h=e+(f^((n=f+(h<<15&4294967295|h>>>17))|~r))+o[1]+2240044497&4294967295,h=r+(n^((e=n+(h<<21&4294967295|h>>>11))|~f))+o[8]+1873313359&4294967295,h=f+(e^((r=e+(h<<6&4294967295|h>>>26))|~n))+o[15]+4264355552&4294967295,f=r+(h<<10&4294967295|h>>>22),h=n+(r^(f|~e))+o[6]+2734768916&4294967295,h=e+(f^((n=f+(h<<15&4294967295|h>>>17))|~r))+o[13]+1309151649&4294967295,h=r+(n^((e=n+(h<<21&4294967295|h>>>11))|~f))+o[4]+4149444226&4294967295,h=f+(e^((r=e+(h<<6&4294967295|h>>>26))|~n))+o[11]+3174756917&4294967295,f=r+(h<<10&4294967295|h>>>22),h=n+(r^(f|~e))+o[2]+718787259&4294967295,h=e+(f^((n=f+(h<<15&4294967295|h>>>17))|~r))+o[9]+3951481745&4294967295,t.g[0]=t.g[0]+r&4294967295,t.g[1]=t.g[1]+(n+(h<<21&4294967295|h>>>11))&4294967295,t.g[2]=t.g[2]+n&4294967295,t.g[3]=t.g[3]+f&4294967295}function f(t,r){var e=u;return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e[t]=r(t)}function s(t,r){this.h=r;const e=[];let o=!0;for(let n=t.length-1;n>=0;n--){const h=0|t[n];
vendor: 5,121 bytes, line 5445
5445o&&h==r||(e[n]=h,o=!1)}this.g=e}!(function(t,r){function e(){}e.prototype=r.prototype,t.F=r.prototype,t.prototype=new e,t.prototype.constructor=t,t.D=function(t,e,o){for(var n=Array(arguments.length-2),h=2;h<arguments.length;h++)n[h-2]=arguments[h];return r.prototype[e].apply(t,n)}})(n,function(){this.blockSize=-1}),n.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},n.prototype.v=function(t,r){void 0===r&&(r=t.length);const e=r-this.blockSize,o=this.C;let n=this.h,f=0;for(;f<r;){if(0==n)for(;f<=e;)h(this,t,f),f+=this.blockSize;if("string"==typeof t){for(;f<r;)if(o[n++]=t.charCodeAt(f++),n==this.blockSize){h(this,o),n=0;break}}else for(;f<r;)if(o[n++]=t[f++],n==this.blockSize){h(this,o),n=0;break}}this.h=n,this.o+=r},n.prototype.A=function(){var t=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);t[0]=128;for(var r=1;r<t.length-8;++r)t[r]=0;r=8*this.o;for(var e=t.length-8;e<t.length;++e)t[e]=255&r,r/=256;for(this.v(t),t=Array(16),r=0,e=0;e<4;++e)for(let o=0;o<32;o+=8)t[r++]=this.g[e]>>>o&255;return t};var u={};function g(t){return-128<=t&&t<128?f(t,function(t){return new s([0|t],t<0?-1:0)}):new s([0|t],t<0?-1:0)}function l(t){if(isNaN(t)||!isFinite(t))return c;if(t<0)return w(l(-t));const r=[];let e=1;for(let o=0;t>=e;o++)r[o]=t/e|0,e*=4294967296;return new s(r,0)}var c=g(0),p=g(1),a=g(16777216);function d(t){if(0!=t.h)return!1;for(let r=0;r<t.g.length;r++)if(0!=t.g[r])return!1;return!0}function y(t){return-1==t.h}function w(t){const r=t.g.length,e=[];for(let o=0;o<r;o++)e[o]=~t.g[o];return new s(e,~t.h).add(p)}function b(t,r){return t.add(w(r))}function m(t,r){for(;(65535&t[r])!=t[r];)t[r+1]+=t[r]>>>16,t[r]&=65535,r++}function v(t,r){this.g=t,this.h=r}function M(t,r){if(d(r))throw Error("division by zero");if(d(t))return new v(c,c);if(y(t))return r=M(w(t),r),new v(w(r.g),w(r.h));if(y(r))return r=M(t,w(r)),new v(w(r.g),r.h);if(t.g.length>30){if(y(t)||y(r))throw Error("slowDivide_ only works with positive integers.");for(var e=p,o=r;o.l(t)<=0;)e=j(e),o=j(o);var n=S(e,1),h=S(o,1);for(o=S(o,2),e=S(e,2);!d(o);){var f=h.add(o);f.l(t)<=0&&(n=n.add(e),h=f),o=S(o,1),e=S(e,1)}return r=b(t,n.j(r)),new v(n,r)}for(n=c;t.l(r)>=0;){for(e=Math.max(1,Math.floor(t.m()/r.m())),o=(o=Math.ceil(Math.log(e)/Math.LN2))<=48?1:Math.pow(2,o-48),f=(h=l(e)).j(r);y(f)||f.l(t)>0;)f=(h=l(e-=o)).j(r);d(h)&&(h=p),n=n.add(h),t=b(t,f)}return new v(n,t)}function j(t){const r=t.g.length+1,e=[];for(let o=0;o<r;o++)e[o]=t.i(o)<<1|t.i(o-1)>>>31;return new s(e,t.h)}function S(t,r){const e=r>>5;r%=32;const o=t.g.length-e,n=[];for(let h=0;h<o;h++)n[h]=r>0?t.i(h+e)>>>r|t.i(h+e+1)<<32-r:t.i(h+e);return new s(n,t.h)}(e=s.prototype).m=function(){if(y(this))return-w(this).m();let t=0,r=1;for(let e=0;e<this.g.length;e++){const o=this.i(e);t+=(o>=0?o:4294967296+o)*r,r*=4294967296}return t},e.toString=function(t){if((t=t||10)<2||36<t)throw Error("radix out of range: "+t);if(d(this))return"0";if(y(this))return"-"+w(this).toString(t);const r=l(Math.pow(t,6));var e=this;let o="";for(;;){const n=M(e,r).g;let h=(((e=b(e,n.j(r))).g.length>0?e.g[0]:e.h)>>>0).toString(t);if(d(e=n))return h+o;for(;h.length<6;)h="0"+h;o=h+o}},e.i=function(t){return t<0?0:t<this.g.length?this.g[t]:this.h},e.l=function(t){return y(t=b(this,t))?-1:d(t)?0:1},e.abs=function(){return y(this)?w(this):this},e.add=function(t){const r=Math.max(this.g.length,t.g.length),e=[];let o=0;for(let n=0;n<=r;n++){let r=o+(65535&this.i(n))+(65535&t.i(n)),h=(r>>>16)+(this.i(n)>>>16)+(t.i(n)>>>16);o=h>>>16,r&=65535,h&=65535,e[n]=h<<16|r}return new s(e,-2147483648&e[e.length-1]?-1:0)},e.j=function(t){if(d(this)||d(t))return c;if(y(this))return y(t)?w(this).j(w(t)):w(w(this).j(t));if(y(t))return w(this.j(w(t)));if(this.l(a)<0&&t.l(a)<0)return l(this.m()*t.m());const r=this.g.length+t.g.length,e=[];for(var o=0;o<2*r;o++)e[o]=0;for(o=0;o<this.g.length;o++)for(let r=0;r<t.g.length;r++){const n=this.i(o)>>>16,h=65535&this.i(o),f=t.i(r)>>>16,s=65535&t.i(r);e[2*o+2*r]+=h*s,m(e,2*o+2*r),e[2*o+2*r+1]+=n*s,m(e,2*o+2*r+1),e[2*o+2*r+1]+=h*f,m(e,2*o+2*r+1),e[2*o+2*r+2]+=n*f,m(e,2*o+2*r+2)}for(t=0;t<r;t++)e[t]=e[2*t+1]<<16|e[2*t];for(t=r;t<2*r;t++)e[t]=0;return new s(e,0)},e.B=function(t){return M(this,t).h},e.and=function(t){const r=Math.max(this.g.length,t.g.length),e=[];for(let o=0;o<r;o++)e[o]=this.i(o)&t.i(o);return new s(e,this.h&t.h)},e.or=function(t){const r=Math.max(this.g.length,t.g.length),e=[];for(let o=0;o<r;o++)e[o]=this.i(o)|t.i(o);return new s(e,this.h|t.h)},e.xor=function(t){const r=Math.max(this.g.length,t.g.length),e=[];for(let o=0;o<r;o++)e[o]=this.i(o)^t.i(o);return new s(e,this.h^t.h)},n.prototype.digest=n.prototype.A,n.prototype.reset=n.prototype.u,n.prototype.update=n.prototype.v,r=o.Md5=n,s.prototype.add=s.prototype.add,s.prototype.multiply=s.prototype.j,s.prototype.modulo=s.prototype.B,s.prototype.compare=s.prototype.l,s.prototype.toNumber=s.prototype.m,s.prototype.toString=s.prototype.toString,s.prototype.getBits=s.prototype.i,s.fromNumber=l,s.fromString=function t(r,e){if(0==r.length)throw Error("number format error: empty string");
5445if((e=e||10)<2||36<e)throw Error("radix out of range: "+e);if("-"==r.charAt(0))return w(t(r.substring(1),e));if(r.indexOf("-")>=0)throw Error('number format error: interior "-" character');const o=l(Math.pow(e,8));let n=c;for(let t=0;t<r.length;t+=8){var h=Math.min(8,r.length-t);const f=parseInt(r.substring(t,t+h),e);h<8?(h=l(Math.pow(e,h)),n=n.j(h).add(l(f))):(n=n.j(o),n=n.add(l(f)))}return n},t=o.Integer=s}).apply(void 0!==e?e:'undefined'!=typeof self?self:'undefined'!=typeof window?window:{})},314,[]);
5446__d(function(_g,_r,i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ErrorCode",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"Event",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"EventType",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"FetchXmlHttpFactory",{enumerable:!0,get:function(){return e}}),Object.defineProperty(_e,"Stat",{enumerable:!0,get:function(){return r}}),Object.defineProperty(_e,"WebChannel",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"XhrIo",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e,"createWebChannelTransport",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"getStatEventTarget",{enumerable:!0,get:function(){return a}});var t,e,n,s,o,r,h,a,l,u='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:void 0!==_g?_g:'undefined'!=typeof self?self:{},c={};(function(){var f,g=Object.defineProperty;var p=(function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof u&&u];for(var e=0;e<t.length;++e){var n=t[e];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")})(this);function d(t,e){if(e)t:{var n=p;t=t.split(".");for(var s=0;s<t.length-1;s++){var o=t[s];if(!(o in n))break t;n=n[o]}(e=e(s=n[t=t[t.length-1]]))!=s&&null!=e&&g(n,t,{configurable:!0,writable:!0,value:e})}}d("Symbol.dispose",function(t){return t||Symbol("Symbol.dispose")}),d("Array.prototype.values",function(t){return t||function(){return this[Symbol.iterator]()}}),d("Object.entries",function(t){return t||function(t){var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push([e,t[e]]);return n}});
5447/** @license
5448        Copyright The Closure Library Authors.
5449        SPDX-License-Identifier: Apache-2.0
5450        */
5451var y=y||{},v=this||self;function m(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function b(t,e,n){return t.call.apply(t.bind,arguments)}function w(t,e,n){return(w=b).apply(null,arguments)}function T(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function j(t,e){function n(){}n.prototype=e.prototype,t.Z=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.Ob=function(t,n,s){for(var o=Array(arguments.length-2),r=2;r<arguments.length;r++)o[r-2]=arguments[r];return e.prototype[n].apply(t,o)}}var S="undefined"!=typeof AsyncContext&&"function"==typeof AsyncContext.Snapshot?t=>t&&AsyncContext.Snapshot.wrap(t):t=>t;function E(t){const e=t.length;if(e>0){const n=Array(e);for(let s=0;s<e;s++)n[s]=t[s];return n}return[]}function C(t,e){for(let e=1;e<arguments.length;e++){const s=arguments[e];var n=typeof s;if("array"==(n="object"!=n?n:s?Array.isArray(s)?"array":n:"null")||"object"==n&&"number"==typeof s.length){n=t.length||0;const e=s.length||0;t.length=n+e;for(let o=0;o<e;o++)t[n+o]=s[o]}else t.push(s)}}function A(t){v.setTimeout(()=>{throw t},0)}function O(){var t=_;let e=null;return t.g&&(e=t.g,t.g=t.g.next,t.g||(t.h=null),e.next=null),e}var P=new class{constructor(t,e){this.i=t,this.j=e,this.h=0,this.g=null}get(){let t;return this.h>0?(this.h--,t=this.g,this.g=t.next,t.next=null):t=this.i(),t}}(()=>new R,t=>t.reset());class R{constructor(){this.next=this.g=this.h=null}set(t,e){this.h=t,this.g=e,this.next=null}reset(){this.next=this.g=this.h=null}}let I,x=!1,_=new class{constructor(){this.h=this.g=null}add(t,e){const n=P.get();n.set(t,e),this.h?this.h.next=n:this.g=n,this.h=n}},D=()=>{const t=Promise.resolve(void 0);I=()=>{t.then(M)}};function M(){for(var t;
vendor: 17,724 bytes, line 5451
5451t=O();){try{t.h.call(t.g)}catch(t){A(t)}var e=P;e.j(t),e.h<100&&(e.h++,t.next=e.g,e.g=t)}x=!1}function L(){this.u=this.u,this.C=this.C}function H(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}L.prototype.u=!1,L.prototype.dispose=function(){this.u||(this.u=!0,this.N())},L.prototype[Symbol.dispose]=function(){this.dispose()},L.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},H.prototype.h=function(){this.defaultPrevented=!0};var X=(function(){if(!v.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{const t=()=>{};v.addEventListener("test",t,e),v.removeEventListener("test",t,e)}catch(t){}return t})();function k(t){return/^[\s\xa0]*$/.test(t)}function B(t,e){H.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,t&&this.init(t,e)}j(B,H),B.prototype.init=function(t,e){const n=this.type=t.type,s=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;this.target=t.target||t.srcElement,this.g=e,(e=t.relatedTarget)||("mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement)),this.relatedTarget=e,s?(this.clientX=void 0!==s.clientX?s.clientX:s.pageX,this.clientY=void 0!==s.clientY?s.clientY:s.pageY,this.screenX=s.screenX||0,this.screenY=s.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=t.pointerType,this.state=t.state,this.i=t,t.defaultPrevented&&B.Z.h.call(this)},B.prototype.h=function(){B.Z.h.call(this);const t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var F="closure_listenable_"+(1e6*Math.random()|0),N=0;function K(t,e,n,s,o){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!s,this.ha=o,this.key=++N,this.da=this.fa=!1}function U(t){t.da=!0,t.listener=null,t.proxy=null,t.src=null,t.ha=null}function Y(t,e,n){for(const s in t)e.call(n,t[s],s,t)}function G(t,e){for(const n in t)e.call(void 0,t[n],n,t)}function J(t){const e={};for(const n in t)e[n]=t[n];return e}const W="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function q(t,e){let n,s;for(let e=1;e<arguments.length;e++){for(n in s=arguments[e],s)t[n]=s[n];for(let e=0;e<W.length;e++)n=W[e],Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n])}}function V(t){this.src=t,this.g={},this.h=0}function z(t,e){const n=e.type;if(n in t.g){var s,o=t.g[n],r=Array.prototype.indexOf.call(o,e,void 0);(s=r>=0)&&Array.prototype.splice.call(o,r,1),s&&(U(e),0==t.g[n].length&&(delete t.g[n],t.h--))}}function Z(t,e,n,s){for(let o=0;o<t.length;++o){const r=t[o];if(!r.da&&r.listener==e&&r.capture==!!n&&r.ha==s)return o}return-1}V.prototype.add=function(t,e,n,s,o){const r=t.toString();(t=this.g[r])||(t=this.g[r]=[],this.h++);const h=Z(t,e,s,o);return h>-1?(e=t[h],n||(e.fa=!1)):((e=new K(e,this.src,r,!!s,o)).fa=n,t.push(e)),e};var $="closure_lm_"+(1e6*Math.random()|0),Q={};function tt(t,e,n,s,o){if(s&&s.once)return it(t,e,n,s,o);if(Array.isArray(e)){for(let r=0;r<e.length;r++)tt(t,e[r],n,s,o);return null}return n=ut(n),t&&t[F]?t.J(e,n,m(s)?!!s.capture:!!s,o):et(t,e,n,!1,s,o)}function et(t,e,n,s,o,r){if(!e)throw Error("Invalid event type");const h=m(o)?!!o.capture:!!o;let a=at(t);if(a||(t[$]=a=new V(t)),(n=a.add(e,n,s,h,r)).proxy)return n;if(s=nt(),n.proxy=s,s.src=t,s.listener=n,t.addEventListener)X||(o=h),void 0===o&&(o=!1),t.addEventListener(e.toString(),s,o);else if(t.attachEvent)t.attachEvent(rt(e.toString()),s);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(s)}return n}function nt(){const t=ht;return function e(n){return t.call(e.src,e.listener,n)}}function it(t,e,n,s,o){if(Array.isArray(e)){for(let r=0;r<e.length;r++)it(t,e[r],n,s,o);return null}return n=ut(n),t&&t[F]?t.K(e,n,m(s)?!!s.capture:!!s,o):et(t,e,n,!0,s,o)}function st(t,e,n,s,o){if(Array.isArray(e))for(var r=0;r<e.length;r++)st(t,e[r],n,s,o);else s=m(s)?!!s.capture:!!s,n=ut(n),t&&t[F]?(t=t.i,(r=String(e).toString())in t.g&&((n=Z(e=t.g[r],n,s,o))>-1&&(U(e[n]),Array.prototype.splice.call(e,n,1),0==e.length&&(delete t.g[r],t.h--)))):t&&(t=at(t))&&(e=t.g[e.toString()],t=-1,e&&(t=Z(e,n,s,o)),(n=t>-1?e[t]:null)&&ot(n))}function ot(t){if("number"!=typeof t&&t&&!t.da){var e=t.src;if(e&&e[F])z(e.i,t);else{var n=t.type,s=t.proxy;e.removeEventListener?e.removeEventListener(n,s,t.capture):e.detachEvent?e.detachEvent(rt(n),s):e.addListener&&e.removeListener&&e.removeListener(s),(n=at(e))?(z(n,t),0==n.h&&(n.src=null,e[$]=null)):U(t)}}}function rt(t){return t in Q?Q[t]:Q[t]="on"+t}function ht(t,e){if(t.da)t=!0;else{e=new B(e,this);const n=t.listener,s=t.ha||t.src;t.fa&&ot(t),t=n.call(s,e)}return t}function at(t){return(t=t[$])instanceof V?t:null}var lt="__closure_events_fn_"+(1e9*Math.random()>>>0);function ut(t){return"function"==typeof t?t:(t[lt]||(t[lt]=function(e){return t.handleEvent(e)}),t[lt])}function ct(){L.call(this),this.i=new V(this),this.M=this,this.G=null}function ft(t,e){var n,s=t.G;if(s)for(n=[];s;s=s.G)n.push(s);if(t=t.M,s=e.type||e,"string"==typeof e)e=new H(e,t);else if(e instanceof H)e.target=e.target||t;else{var o=e;q(e=new H(s,t),o)}let r,h;if(o=!0,n)for(h=n.length-1;h>=0;h--)r=e.g=n[h],o=gt(r,s,!0,e)&&o;if(r=e.g=t,o=gt(r,s,!0,e)&&o,o=gt(r,s,!1,e)&&o,n)for(h=0;h<n.length;h++)r=e.g=n[h],o=gt(r,s,!1,e)&&o}function gt(t,e,n,s){if(!(e=t.i.g[String(e)]))return!0;e=e.concat();let o=!0;for(let r=0;r<e.length;++r){const h=e[r];if(h&&!h.da&&h.capture==n){const e=h.listener,n=h.ha||h.src;h.fa&&z(t.i,h),o=!1!==e.call(n,s)&&o}}return o&&!s.defaultPrevented}function pt(t,e){if("function"!=typeof t){if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=w(t.handleEvent,t)}return Number(e)>2147483647?-1:v.setTimeout(t,e||0)}function dt(t){t.g=pt(()=>{t.g=null,t.i&&(t.i=!1,dt(t))},t.l);const e=t.h;t.h=null,t.m.apply(null,e)}j(ct,L),ct.prototype[F]=!0,ct.prototype.removeEventListener=function(t,e,n,s){st(this,t,e,n,s)},ct.prototype.N=function(){if(ct.Z.N.call(this),this.i){var t=this.i;for(const e in t.g){const n=t.g[e];for(let t=0;t<n.length;t++)U(n[t]);delete t.g[e],t.h--}}this.G=null},ct.prototype.J=function(t,e,n,s){return this.i.add(String(t),e,!1,n,s)},ct.prototype.K=function(t,e,n,s){return this.i.add(String(t),e,!0,n,s)};class yt extends L{constructor(t,e){super(),this.m=t,this.l=e,this.h=null,this.i=!1,this.g=null}j(t){this.h=arguments,this.g?this.i=!0:dt(this)}N(){super.N(),this.g&&(v.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function vt(t){L.call(this),this.h=t,this.g={}}j(vt,L);var mt=[];function bt(t){Y(t.g,function(t,e){this.g.hasOwnProperty(e)&&ot(t)},t),t.g={}}vt.prototype.N=function(){vt.Z.N.call(this),bt(this)},vt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var wt=v.JSON.stringify,Tt=v.JSON.parse,jt=class{stringify(t){return v.JSON.stringify(t,void 0)}parse(t){return v.JSON.parse(t,void 0)}};function St(){}function Et(){}var Ct={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function At(){H.call(this,"d")}function Ot(){H.call(this,"c")}j(At,H),j(Ot,H);var Pt={},Rt=null;function It(){return Rt=Rt||new ct}function xt(t){H.call(this,Pt.Ia,t)}function _t(t){const e=It();ft(e,new xt(e))}function Dt(t,e){H.call(this,Pt.STAT_EVENT,t),this.stat=e}function Mt(t){const e=It();ft(e,new Dt(e,t))}function Lt(t,e){H.call(this,Pt.Ja,t),this.size=e}function Ht(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return v.setTimeout(function(){t()},e)}function Xt(){this.g=!0}function kt(t,e,n,s,o,r){t.info(function(){if(t.g)if(r){var h="",a=r.split("&");for(let t=0;t<a.length;t++){var l=a[t].split("=");if(l.length>1){const t=l[0];l=l[1];const e=t.split("_");h=e.length>=2&&"type"==e[1]?h+(t+"=")+l+"&":h+(t+"=redacted&")}}}else h=null;else h=r;return"XMLHTTP REQ ("+s+") [attempt "+o+"]: "+e+"\n"+n+"\n"+h})}function Bt(t,e,n,s,o,r,h){t.info(function(){return"XMLHTTP RESP ("+s+") [ attempt "+o+"]: "+e+"\n"+n+"\n"+r+" "+h})}function Ft(t,e,n,s){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+Kt(t,n)+(s?" "+s:"")})}function Nt(t,e){t.info(function(){return"TIMEOUT: "+e})}function Kt(t,e){if(!t.g)return e;if(!e)return null;try{const r=JSON.parse(e);if(r)for(t=0;t<r.length;t++)if(Array.isArray(r[t])){var n=r[t];if(!(n.length<2)){var s=n[1];if(Array.isArray(s)&&!(s.length<1)){var o=s[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(let t=1;t<s.length;t++)s[t]=""}}}return wt(r)}catch(t){return e}}Pt.Ia="serverreachability",j(xt,H),Pt.STAT_EVENT="statevent",j(Dt,H),Pt.Ja="timingevent",j(Lt,H),Xt.prototype.ua=function(){this.g=!1},Xt.prototype.info=function(){};var Ut,Yt={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},Gt={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"};function Jt(){}function Wt(t){return encodeURIComponent(String(t))}function qt(t){var e=1;t=t.split(":");const n=[];for(;e>0&&t.length;)n.push(t.shift()),e--;return t.length&&n.push(t.join(":")),n}function Vt(t,e,n,s){this.j=t,this.i=e,this.l=n,this.S=s||1,this.V=new vt(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new zt}function zt(){this.i=null,this.g="",this.h=!1}j(Jt,St),Jt.prototype.g=function(){return new XMLHttpRequest},Ut=new Jt;var Zt={},$t={};function Qt(t,e,n){t.M=1,t.A=Ae(Te(e)),t.u=n,t.R=!0,te(t,null)}function te(t,e){t.F=Date.now(),se(t),t.B=Te(t.A);var n=t.B,s=t.S;Array.isArray(s)||(s=[String(s)]),Ne(n.i,"t",s),t.C=0,n=t.j.L,t.h=new zt,t.g=Dn(t.j,n?e:null,!t.u),t.P>0&&(t.O=new yt(w(t.Y,t,t.g),t.P)),e=t.V,n=t.g,s=t.ba;var o="readystatechange";Array.isArray(o)||(o&&(mt[0]=o.toString()),o=mt);for(let t=0;t<o.length;t++){const r=tt(n,o[t],s||e.handleEvent,!1,e.h||e);if(!r)break;e.g[r.key]=r}e=t.J?J(t.J):{},t.u?(t.v||(t.v="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.g.ea(t.B,t.v,t.u,e)):(t.v="GET",t.g.ea(t.B,t.v,null,e)),_t(),kt(t.i,t.v,t.B,t.l,t.S,t.u)}function ee(t){if(!ne(t))return t.g.la();const e=cn(t.g);if(""===e)return"";let n="";const s=e.length,o=4==un(t.g);if(!t.h.i){if("undefined"==typeof TextDecoder)return ae(t),he(t),"";t.h.i=new v.TextDecoder}for(let r=0;r<s;r++)t.h.h=!0,n+=t.h.i.decode(e[r],{stream:!(o&&r==s-1)});return e.length=0,t.h.g+=n,t.C=0,t.h.g}function ne(t){return!!t.g&&("GET"==t.v&&2!=t.M&&t.j.Aa)}function ie(t,e){var n=t.C,s=e.indexOf("\n",n);return-1==s?$t:(n=Number(e.substring(n,s)),isNaN(n)?Zt:(s+=1)+n>e.length?$t:(e=e.slice(s,s+n),t.C=s+n,e))}function se(t){t.T=Date.now()+t.H,oe(t,t.H)}function oe(t,e){if(null!=t.D)throw Error("WatchDog timer not null");t.D=Ht(w(t.aa,t),e)}function re(t){t.D&&(v.clearTimeout(t.D),t.D=null)}function he(t){0==t.j.I||t.K||Pn(t.j,t)}function ae(t){re(t);var e=t.O;e&&"function"==typeof e.dispose&&e.dispose(),t.O=null,bt(t.V),t.g&&(e=t.g,t.g=null,e.abort(),e.dispose())}function le(t,e){try{var n=t.j;if(0!=n.I&&(n.g==t||pe(n.h,t)))if(!t.L&&pe(n.h,t)&&3==n.I){try{var s=n.Ba.g.parse(e)}catch(t){s=null}if(Array.isArray(s)&&3==s.length){var o=s;if(0==o[0]){t:if(!n.v){if(n.g){if(!(n.g.F+3e3<t.F))break t;On(n),yn(n)}En(n),Mt(18)}}else n.xa=o[1],0<n.xa-n.K&&o[2]<37500&&n.F&&0==n.A&&!n.C&&(n.C=Ht(w(n.Va,n),6e3));ge(n.h)<=1&&n.ta&&(n.ta=void 0)}else In(n,11)}else if((t.L||n.g==t)&&On(n),!k(e))for(o=n.Ba.g.parse(e),e=0;e<o.length;e++){let u=o[e];const c=u[0];if(!(c<=n.K))if(n.K=c,u=u[1],2==n.I)if("c"==u[0]){n.M=u[1],n.ba=u[2];const e=u[3];null!=e&&(n.ka=e,n.j.info("VER="+n.ka));const o=u[4];null!=o&&(n.za=o,n.j.info("SVER="+n.za));const c=u[5];null!=c&&"number"==typeof c&&c>0&&(s=1.5*c,n.O=s,n.j.info("backChannelRequestTimeoutMs_="+s)),s=n;const f=t.g;if(f){const t=f.g?f.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(t){var r=s.h;r.g||-1==t.indexOf("spdy")&&-1==t.indexOf("quic")&&-1==t.indexOf("h2")||(r.j=r.l,r.g=new Set,r.h&&(de(r,r.h),r.h=null))}if(s.G){const t=f.g?f.g.getResponseHeader("X-HTTP-Session-Id"):null;t&&(s.wa=t,Ce(s.J,s.G,t))}}n.I=3,n.l&&n.l.ra(),n.aa&&(n.T=Date.now()-t.F,n.j.info("Handshake RTT: "+n.T+"ms"));var h=t;if((s=n).na=_n(s,s.L?s.ba:null,s.W),h.L){ye(s.h,h);var a=h,l=s.O;l&&(a.H=l),a.D&&(re(a),se(a)),s.g=h}else Sn(s);n.i.length>0&&mn(n)}else"stop"!=u[0]&&"close"!=u[0]||In(n,7);else 3==n.I&&("stop"==u[0]||"close"==u[0]?"stop"==u[0]?In(n,7):dn(n):"noop"!=u[0]&&n.l&&n.l.qa(u),n.A=0)}_t()}catch(t){}}Vt.prototype.ba=function(t){t=t.target;const e=this.O;e&&3==un(t)?e.j():this.Y(t)},Vt.prototype.Y=function(t){try{if(t==this.g)t:{const a=un(this.g),l=this.g.ya();this.g.ca();if(!(a<3)&&(3!=a||this.g&&(this.h.h||this.g.la()||cn(this.g)))){this.K||4!=a||7==l||_t(),re(this);var e=this.g.ca();this.X=e;var n=ee(this);if(this.o=200==e,Bt(this.i,this.v,this.B,this.l,this.S,a,e),this.o){if(this.U&&!this.L){e:{if(this.g){var s,o=this.g;if((s=o.g?o.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!k(s)){var r=s;break e}}r=null}if(!(t=r)){this.o=!1,this.m=3,Mt(12),ae(this),he(this);break t}Ft(this.i,this.l,t,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,le(this,t)}if(this.R){let e;for(t=!0;!this.K&&this.C<n.length;){if(e=ie(this,n),e==$t){4==a&&(this.m=4,Mt(14),t=!1),Ft(this.i,this.l,null,"[Incomplete Response]");break}if(e==Zt){this.m=4,Mt(15),Ft(this.i,this.l,n,"[Invalid Chunk]"),t=!1;break}Ft(this.i,this.l,e,null),le(this,e)}if(ne(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=a||0!=n.length||this.h.h||(this.m=1,Mt(16),t=!1),this.o=this.o&&t,t){if(n.length>0&&!this.W){this.W=!0;var h=this.j;h.g==this&&h.aa&&!h.P&&(h.j.info("Great, no buffering proxy detected. Bytes received: "+n.length),Cn(h),h.P=!0,Mt(11))}}else Ft(this.i,this.l,n,"[Invalid Chunked Response]"),ae(this),he(this)}else Ft(this.i,this.l,n,null),le(this,n);4==a&&ae(this),this.o&&!this.K&&(4==a?Pn(this.j,this):(this.o=!1,se(this)))}else fn(this.g),400==e&&n.indexOf("Unknown SID")>0?(this.m=3,Mt(12)):(this.m=0,Mt(13)),ae(this),he(this)}}}catch(t){}},Vt.prototype.cancel=function(){this.K=!0,ae(this)},Vt.prototype.aa=function(){this.D=null;const t=Date.now();t-this.T>=0?(Nt(this.i,this.B),2!=this.M&&(_t(),Mt(17)),ae(this),this.m=2,he(this)):oe(this,this.T-t)};var ue=class{constructor(t,e){this.g=t,this.map=e}};function ce(t){this.l=t||10,v.PerformanceNavigationTiming?t=(t=v.performance.getEntriesByType("navigation")).length>0&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):t=!!(v.chrome&&v.chrome.loadTimes&&v.chrome.loadTimes()&&v.chrome.loadTimes().wasFetchedViaSpdy),this.j=t?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function fe(t){return!!t.h||!!t.g&&t.g.size>=t.j}function ge(t){return t.h?1:t.g?t.g.size:0}function pe(t,e){return t.h?t.h==e:!!t.g&&t.g.has(e)}function de(t,e){t.g?t.g.add(e):t.h=e}function ye(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}function ve(t){if(null!=t.h)return t.i.concat(t.h.G);if(null!=t.g&&0!==t.g.size){let e=t.i;for(const n of t.g.values())e=e.concat(n.G);return e}return E(t.i)}ce.prototype.cancel=function(){if(this.i=ve(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const t of this.g.values())t.cancel();this.g.clear()}};var me=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function be(t,e){if(t){t=t.split("&");for(let n=0;n<t.length;n++){const s=t[n].indexOf("=");let o,r=null;s>=0?(o=t[n].substring(0,s),r=t[n].substring(s+1)):o=t[n],e(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}function we(t){let e;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,t instanceof we?(this.l=t.l,je(this,t.j),this.o=t.o,this.g=t.g,Se(this,t.u),this.h=t.h,Ee(this,Ke(t.i)),this.m=t.m):t&&(e=String(t).match(me))?(this.l=!1,je(this,e[1]||"",!0),this.o=Oe(e[2]||""),this.g=Oe(e[3]||"",!0),Se(this,e[4]),this.h=Oe(e[5]||"",!0),Ee(this,e[6]||"",!0),this.m=Oe(e[7]||"")):(this.l=!1,this.i=new He(null,this.l))}function Te(t){return new we(t)}function je(t,e,n){t.j=n?Oe(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function Se(t,e){if(e){if(e=Number(e),isNaN(e)||e<0)throw Error("Bad port number "+e);t.u=e}else t.u=null}function Ee(t,e,n){e instanceof He?(t.i=e,Ye(t.i,t.l)):(n||(e=Pe(e,Me)),t.i=new He(e,t.l))}function Ce(t,e,n){t.i.set(e,n)}function Ae(t){return Ce(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function Oe(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Pe(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Re),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Re(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}we.prototype.toString=function(){const t=[];var e=this.j;e&&t.push(Pe(e,Ie,!0),":");var n=this.g;return(n||"file"==e)&&(t.push("//"),(e=this.o)&&t.push(Pe(e,Ie,!0),"@"),t.push(Wt(n).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.u)&&t.push(":",String(n))),(n=this.h)&&(this.g&&"/"!=n.charAt(0)&&t.push("/"),t.push(Pe(n,"/"==n.charAt(0)?De:xe,!0))),(n=this.i.toString())&&t.pu
5451sh("?",n),(n=this.m)&&t.push("#",Pe(n,Le)),t.join("")},we.prototype.resolve=function(t){const e=Te(this);let n=!!t.j;n?je(e,t.j):n=!!t.o,n?e.o=t.o:n=!!t.g,n?e.g=t.g:n=null!=t.u;var s=t.h;if(n)Se(e,t.u);else if(n=!!t.h){if("/"!=s.charAt(0))if(this.g&&!this.h)s="/"+s;else{var o=e.h.lastIndexOf("/");-1!=o&&(s=e.h.slice(0,o+1)+s)}if(".."==(o=s)||"."==o)s="";else if(-1!=o.indexOf("./")||-1!=o.indexOf("/.")){s=0==o.lastIndexOf("/",0),o=o.split("/");const t=[];for(let e=0;e<o.length;){const n=o[e++];"."==n?s&&e==o.length&&t.push(""):".."==n?((t.length>1||1==t.length&&""!=t[0])&&t.pop(),s&&e==o.length&&t.push("")):(t.push(n),s=!0)}s=t.join("/")}else s=o}return n?e.h=s:n=""!==t.i.toString(),n?Ee(e,Ke(t.i)):n=!!t.m,n&&(e.m=t.m),e};var Ie=/[#\/\?@]/g,xe=/[#\?:]/g,De=/[#\?]/g,Me=/[#\?@]/g,Le=/#/g;function He(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function Xe(t){t.g||(t.g=new Map,t.h=0,t.i&&be(t.i,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function ke(t,e){Xe(t),e=Ue(t,e),t.g.has(e)&&(t.i=null,t.h-=t.g.get(e).length,t.g.delete(e))}function Be(t,e){return Xe(t),e=Ue(t,e),t.g.has(e)}function Fe(t,e){Xe(t);let n=[];if("string"==typeof e)Be(t,e)&&(n=n.concat(t.g.get(Ue(t,e))));else for(t=Array.from(t.g.values()),e=0;e<t.length;e++)n=n.concat(t[e]);return n}function Ne(t,e,n){ke(t,e),n.length>0&&(t.i=null,t.g.set(Ue(t,e),E(n)),t.h+=n.length)}function Ke(t){const e=new He;return e.i=t.i,t.g&&(e.g=new Map(t.g),e.h=t.h),e}function Ue(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}function Ye(t,e){e&&!t.j&&(Xe(t),t.i=null,t.g.forEach(function(t,e){const n=e.toLowerCase();e!=n&&(ke(this,e),Ne(this,n,t))},t)),t.j=e}function Ge(t,e){const n=new Xt;if(v.Image){const s=new Image;s.onload=T(We,n,"TestLoadImage: loaded",!0,e,s),s.onerror=T(We,n,"TestLoadImage: error",!1,e,s),s.onabort=T(We,n,"TestLoadImage: abort",!1,e,s),s.ontimeout=T(We,n,"TestLoadImage: timeout",!1,e,s),v.setTimeout(function(){s.ontimeout&&s.ontimeout()},1e4),s.src=t}else e(!1)}function Je(t,e){const n=new Xt,s=new AbortController,o=setTimeout(()=>{s.abort(),We(n,"TestPingServer: timeout",!1,e)},1e4);fetch(t,{signal:s.signal}).then(t=>{clearTimeout(o),t.ok?We(n,"TestPingServer: ok",!0,e):We(n,"TestPingServer: server error",!1,e)}).catch(()=>{clearTimeout(o),We(n,"TestPingServer: error",!1,e)})}function We(t,e,n,s,o){try{o&&(o.onload=null,o.onerror=null,o.onabort=null,o.ontimeout=null),s(n)}catch(t){}}function qe(){this.g=new jt}function Ve(t){this.i=t.Sb||null,this.h=t.ab||!1}function ze(t,e){ct.call(this),this.H=t,this.o=e,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function Ze(t){t.j.read().then(t.Ma.bind(t)).catch(t.ga.bind(t))}function $e(t){t.readyState=4,t.l=null,t.j=null,t.B=null,Qe(t)}function Qe(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function tn(t){let e="";return Y(t,function(t,n){e+=n,e+=":",e+=t,e+="\r\n"}),e}function en(t,e,n){t:{for(s in n){var s=!1;break t}s=!0}s||(n=tn(n),"string"==typeof t?null!=n&&Wt(n):Ce(t,e,n))}function nn(t){ct.call(this),this.headers=new Map,this.L=t||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(f=He.prototype).add=function(t,e){Xe(this),this.i=null,t=Ue(this,t);let n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this},f.forEach=function(t,e){Xe(this),this.g.forEach(function(n,s){n.forEach(function(n){t.call(e,n,s,this)},this)},this)},f.set=function(t,e){return Xe(this),this.i=null,Be(this,t=Ue(this,t))&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this},f.get=function(t,e){return t&&(t=Fe(this,t)).length>0?String(t[0]):e},f.toString=function(){if(this.i)return this.i;if(!this.g)return"";const t=[],e=Array.from(this.g.keys());for(let s=0;s<e.length;s++){var n=e[s];const o=Wt(n);n=Fe(this,n);for(let e=0;e<n.length;e++){let s=o;""!==n[e]&&(s+="="+Wt(n[e])),t.push(s)}}return this.i=t.join("&")},j(Ve,St),Ve.prototype.g=function(){return new ze(this.i,this.h)},j(ze,ct),(f=ze.prototype).open=function(t,e){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=t,this.D=e,this.readyState=1,Qe(this)},f.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");
vendor: 12,542 bytes, line 5451
5451if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const e={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};t&&(e.body=t),(this.H||v).fetch(new Request(this.D,e)).then(this.Pa.bind(this),this.ga.bind(this))},f.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,$e(this)),this.readyState=0},f.Pa=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,Qe(this)),this.g&&(this.readyState=3,Qe(this),this.g)))if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(void 0!==v.ReadableStream&&"body"in t){if(this.j=t.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;Ze(this)}else t.text().then(this.Oa.bind(this),this.ga.bind(this))},f.Ma=function(t){if(this.g){if(this.o&&t.value)this.response.push(t.value);else if(!this.o){var e=t.value?t.value:new Uint8Array(0);(e=this.B.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?$e(this):Qe(this),3==this.readyState&&Ze(this)}},f.Oa=function(t){this.g&&(this.response=this.responseText=t,$e(this))},f.Na=function(t){this.g&&(this.response=t,$e(this))},f.ga=function(){this.g&&$e(this)},f.setRequestHeader=function(t,e){this.A.append(t,e)},f.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},f.getAllResponseHeaders=function(){if(!this.h)return"";const t=[],e=this.h.entries();for(var n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(ze.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}}),j(nn,ct);var sn=/^https?$/i,on=["POST","PUT"];function rn(t,e){t.h=!1,t.g&&(t.j=!0,t.g.abort(),t.j=!1),t.l=e,t.o=5,hn(t),ln(t)}function hn(t){t.A||(t.A=!0,ft(t,"complete"),ft(t,"error"))}function an(t){if(t.h&&void 0!==y)if(t.v&&4==un(t))setTimeout(t.Ca.bind(t),0);else if(ft(t,"readystatechange"),4==un(t)){t.h=!1;try{const r=t.ca();t:switch(r){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var e=!0;break t;default:e=!1}var n;if(!(n=e)){var s;if(s=0===r){let e=String(t.D).match(me)[1]||null;!e&&v.self&&v.self.location&&(e=v.self.location.protocol.slice(0,-1)),s=!sn.test(e?e.toLowerCase():"")}n=s}if(n)ft(t,"complete"),ft(t,"success");else{t.o=6;try{var o=un(t)>2?t.g.statusText:""}catch(t){o=""}t.l=o+" ["+t.ca()+"]",hn(t)}}finally{ln(t)}}}function ln(t,e){if(t.g){t.m&&(clearTimeout(t.m),t.m=null);const n=t.g;t.g=null,e||ft(t,"ready");try{n.onreadystatechange=null}catch(t){}}}function un(t){return t.g?t.g.readyState:0}function cn(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.F){case"":case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch(t){return null}}function fn(t){const e={};t=(t.g&&un(t)>=2&&t.g.getAllResponseHeaders()||"").split("\r\n");for(let s=0;s<t.length;s++){if(k(t[s]))continue;var n=qt(t[s]);const o=n[0];if("string"!=typeof(n=n[1]))continue;n=n.trim();const r=e[o]||[];e[o]=r,r.push(n)}G(e,function(t){return t.join(", ")})}function gn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function pn(t){this.za=0,this.i=[],this.j=new Xt,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=gn("failFast",!1,t),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=gn("baseRetryDelayMs",5e3,t),this.Za=gn("retryDelaySeedMs",1e4,t),this.Ta=gn("forwardChannelMaxRetries",2,t),this.va=gn("forwardChannelRequestTimeoutMs",2e4,t),this.ma=t&&t.xmlHttpFactory||void 0,this.Ua=t&&t.Rb||void 0,this.Aa=t&&t.useFetchStreams||!1,this.O=void 0,this.L=t&&t.supportsCrossDomainXhr||!1,this.M="",this.h=new ce(t&&t.concurrentRequestLimit),this.Ba=new qe,this.S=t&&t.fastHandshake||!1,this.R=t&&t.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=t&&t.Pb||!1,t&&t.ua&&this.j.ua(),t&&t.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&t&&t.detectBufferingProxy||!1,this.ia=void 0,t&&t.longPollingTimeout&&t.longPollingTimeout>0&&(this.ia=t.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function dn(t){if(vn(t),3==t.I){var e=t.V++,n=Te(t.J);if(Ce(n,"SID",t.M),Ce(n,"RID",e),Ce(n,"TYPE","terminate"),Tn(t,n),(e=new Vt(t,t.j,e)).M=2,e.A=Ae(Te(n)),n=!1,v.navigator&&v.navigator.sendBeacon)try{n=v.navigator.sendBeacon(e.A.toString(),"")}catch(t){}!n&&v.Image&&((new Image).src=e.A,n=!0),n||(e.g=Dn(e.j,null),e.g.ea(e.A)),e.F=Date.now(),se(e)}xn(t)}function yn(t){t.g&&(Cn(t),t.g.cancel(),t.g=null)}function vn(t){yn(t),t.v&&(v.clearTimeout(t.v),t.v=null),On(t),t.h.cancel(),t.m&&("number"==typeof t.m&&v.clearTimeout(t.m),t.m=null)}function mn(t){if(!fe(t.h)&&!t.m){t.m=!0;var e=t.Ea;I||D(),x||(I(),x=!0),_.add(e,t),t.D=0}}function bn(t,e){return!(ge(t.h)>=t.h.j-(t.m?1:0))&&(t.m?(t.i=e.G.concat(t.i),!0):!(1==t.I||2==t.I||t.D>=(t.Sa?0:t.Ta))&&(t.m=Ht(w(t.Ea,t,e),Rn(t,t.D)),t.D++,!0))}function wn(t,e){var n;n=e?e.l:t.V++;const s=Te(t.J);Ce(s,"SID",t.M),Ce(s,"RID",n),Ce(s,"AID",t.K),Tn(t,s),t.u&&t.o&&en(s,t.u,t.o),n=new Vt(t,t.j,n,t.D+1),null===t.u&&(n.J=t.o),e&&(t.i=e.G.concat(t.i)),e=jn(t,n,1e3),n.H=Math.round(.5*t.va)+Math.round(.5*t.va*Math.random()),de(t.h,n),Qt(n,s,e)}function Tn(t,e){t.H&&Y(t.H,function(t,n){Ce(e,n,t)}),t.l&&Y({},function(t,n){Ce(e,n,t)})}function jn(t,e,n){n=Math.min(t.i.length,n);const s=t.l?w(t.l.Ka,t.l,t):null;t:{var o=t.i;let e=-1;for(;;){const t=["count="+n];-1==e?n>0?(e=o[0].g,t.push("ofs="+e)):e=0:t.push("ofs="+e);let a=!0;for(let l=0;l<n;l++){var r=o[l].g;const n=o[l].map;if((r-=e)<0)e=Math.max(0,o[l].g-100),a=!1;else try{r="req"+r+"_"||"";try{var h=n instanceof Map?n:Object.entries(n);for(const[e,n]of h){let s=n;m(n)&&(s=wt(n)),t.push(r+e+"="+encodeURIComponent(s))}}catch(e){throw t.push(r+"type="+encodeURIComponent("_badmap")),e}}catch(t){s&&s(n)}}if(a){h=t.join("&");break t}}h=void 0}return t=t.i.splice(0,n),e.G=t,h}function Sn(t){if(!t.g&&!t.v){t.Y=1;var e=t.Da;I||D(),x||(I(),x=!0),_.add(e,t),t.A=0}}function En(t){return!(t.g||t.v||t.A>=3)&&(t.Y++,t.v=Ht(w(t.Da,t),Rn(t,t.A)),t.A++,!0)}function Cn(t){null!=t.B&&(v.clearTimeout(t.B),t.B=null)}function An(t){t.g=new Vt(t,t.j,"rpc",t.Y),null===t.u&&(t.g.J=t.o),t.g.P=0;var e=Te(t.na);Ce(e,"RID","rpc"),Ce(e,"SID",t.M),Ce(e,"AID",t.K),Ce(e,"CI",t.F?"0":"1"),!t.F&&t.ia&&Ce(e,"TO",t.ia),Ce(e,"TYPE","xmlhttp"),Tn(t,e),t.u&&t.o&&en(e,t.u,t.o),t.O&&(t.g.H=t.O);var n=t.g;t=t.ba,n.M=1,n.A=Ae(Te(e)),n.u=null,n.R=!0,te(n,t)}function On(t){null!=t.C&&(v.clearTimeout(t.C),t.C=null)}function Pn(t,e){var n=null;if(t.g==e){On(t),Cn(t),t.g=null;var s=2}else{if(!pe(t.h,e))return;n=e.G,ye(t.h,e),s=1}if(0!=t.I)if(e.o)if(1==s){n=e.u?e.u.length:0,e=Date.now()-e.F;var o=t.D;ft(s=It(),new Lt(s,n)),mn(t)}else Sn(t);else if(3==(o=e.m)||0==o&&e.X>0||!(1==s&&bn(t,e)||2==s&&En(t)))switch(n&&n.length>0&&(e=t.h,e.i=e.i.concat(n)),o){case 1:In(t,5);break;case 4:In(t,10);break;case 3:In(t,6);break;default:In(t,2)}}function Rn(t,e){let n=t.Qa+Math.floor(Math.random()*t.Za);return t.isActive()||(n*=2),n*e}function In(t,e){if(t.j.info("Error code "+e),2==e){var n=w(t.bb,t),s=t.Ua;const e=!s;s=new we(s||"//www.google.com/images/cleardot.gif"),v.location&&"http"==v.location.protocol||je(s,"https"),Ae(s),e?Ge(s.toString(),n):Je(s.toString(),n)}else Mt(2);t.I=0,t.l&&t.l.pa(e),xn(t),vn(t)}function xn(t){if(t.I=0,t.ja=[],t.l){const e=ve(t.h);0==e.length&&0==t.i.length||(C(t.ja,e),C(t.ja,t.i),t.h.i.length=0,E(t.i),t.i.length=0),t.l.oa()}}function _n(t,e,n){var s=n instanceof we?Te(n):new we(n);if(""!=s.g)e&&(s.g=e+"."+s.g),Se(s,s.u);else{var o=v.location;s=o.protocol,e=e?e+"."+o.hostname:o.hostname,o=+o.port;const t=new we(null);s&&je(t,s),e&&(t.g=e),o&&Se(t,o),n&&(t.h=n),s=t}return n=t.G,e=t.wa,n&&e&&Ce(s,n,e),Ce(s,"VER",t.ka),Tn(t,s),s}function Dn(t,e,n){if(e&&!t.L)throw Error("Can't create secondary domain capable XhrIo object.");return(e=t.Aa&&!t.ma?new nn(new Ve({ab:n})):new nn(t.ma)).Fa(t.L),e}function Mn(){}function Ln(){}function Hn(t,e){ct.call(this),this.g=new pn(e),this.l=t,this.h=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.g.o=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.sa&&(t?t["X-WebChannel-Client-Profile"]=e.sa:t={"X-WebChannel-Client-Profile":e.sa}),this.g.U=t,(t=e&&e.Qb)&&!k(t)&&(this.g.u=t),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!k(e)&&(this.g.G=e,null!==(t=this.h)&&e in t&&(e in(t=this.h)&&delete t[e])),this.j=new Bn(this)}function Xn(t){At.call(this),t.__headers__&&(this.headers=t.__headers__,this.statusCode=t.__status__,delete t.__headers__,delete t.__status__);var e=t.__sm__;if(e){t:{for(const n in e){t=n;break t}t=void 0}(this.i=t)&&(t=this.i,e=null!==e&&t in e?e[t]:void 0),this.data=e}else this.data=t}function kn(){Ot.call(this),this.status=1}function Bn(t){this.g=t}(f=nn.prototype).Fa=function(t){this.H=t},f.ea=function(t,e,n,s){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+t);e=e?e.toUpperCase():"GET",this.D=t,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():Ut.g(),this.g.onreadystatechange=S(w(this.Ca,this));try{this.B=!0,this.g.open(e,String(t),!0),this.B=!1}catch(t){return void rn(this,t)}if(t=n||"",n=new Map(this.headers),s)if(Object.getPrototypeOf(s)===Object.prototype)for(var o in s)n.set(o,s[o]);else{if("function"!=typeof s.keys||"function"!=typeof s.get)throw Error("Unknown input type for opt_headers: "+String(s));for(const t of s.keys())n.set(t,s.get(t))}s=Array.from(n.keys()).find(t=>"content-type"==t.toLowerCase()),o=v.FormData&&t instanceof v.FormData,!(Array.prototype.indexOf.call(on,e,void 0)>=0)||s||o||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[t,e]of n)this.g.setRequestHeader(t,e);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(t),this.v=!1}catch(t){rn(this,t)}},f.abort=function(t){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=t||7,ft(this,"complete"),ft(this,"abort"),ln(this))},f.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),ln(this,!0)),nn.Z.N.call(this)},f.Ca=function(){this.u||(this.B||this.v||this.j?an(this):this.Xa())},f.Xa=function(){an(this)},f.isActive=function(){return!!this.g},f.ca=function(){try{return un(this)>2?this.g.status:-1}catch(t){return-1}},f.la=function(){try{return this.g?this.g.responseText:""}catch(t){return""}},f.La=function(t){if(this.g){var e=this.g.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),Tt(e)}},f.ya=function(){return this.o},f.Ha=function(){return"string"==typeof this.l?this.l:String(this.l)},(f=pn.prototype).ka=8,f.I=1,f.connect=function(t,e,n,s){Mt(0),this.W=t,this.H=e||{},n&&void 0!==s&&(this.H.OSID=n,this.H.OAID=s),this.F=this.X,this.J=_n(this,null,this.W),mn(this)},f.Ea=function(t){if(this.m)if(this.m=null,1==this.I){if(!t){this.V=Math.floor(1e5*Math.random()),t=this.V++;const o=new Vt(this,this.j,t);let r=this.o;if(this.U&&(r?(r=J(r),q(r,this.U)):r=this.U),null!==this.u||this.R||(o.J=r,r=null),this.S)t:{for(var e=0,n=0;n<this.i.length;n++){var s=this.i[n];if(void 0===(s="__data__"in s.map&&"string"==typeof(s=s.map.__data__)?s.length:void 0))break;if((e+=s)>4096){e=n;break t}if(4096===e||n===this.i.length-1){e=n+1;break t}}e=1e3}else e=1e3;e=jn(this,o,e),Ce(n=Te(this.J),"RID",t),Ce(n,"CVER",22),this.G&&Ce(n,"X-HTTP-Session-Id",this.G),Tn(this,n),r&&(this.R?e="headers="+Wt(tn(r))+"&"+e:this.u&&en(n,this.u,r)),de(this.h,o),this.Ra&&Ce(n,"TYPE","init"),this.S?(Ce(n,"$req",e),Ce(n,"SID","null"),o.U=!0,Qt(o,n,null)):Qt(o,n,e),this.I=2}}else 3==this.I&&(t?wn(this,t):0==this.i.length||fe(this.h)||wn(this))}
5451,f.Da=function(){if(this.v=null,An(this),this.aa&&!(this.P||null==this.g||this.T<=0)){var t=4*this.T;this.j.info("BP detection timer enabled: "+t),this.B=Ht(w(this.Wa,this),t)}},f.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,Mt(10),yn(this),An(this))},f.Va=function(){null!=this.C&&(this.C=null,yn(this),En(this),Mt(19))},f.bb=function(t){t?(this.j.info("Successfully pinged google.com"),Mt(2)):(this.j.info("Failed to ping google.com"),Mt(1))},f.isActive=function(){return!!this.l&&this.l.isActive(this)},(f=Mn.prototype).ra=function(){},f.qa=function(){},f.pa=function(){},f.oa=function(){},f.isActive=function(){return!0},f.Ka=function(){},Ln.prototype.g=function(t,e){return new Hn(t,e)},j(Hn,ct),Hn.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},Hn.prototype.close=function(){dn(this.g)},Hn.prototype.o=function(t){var e=this.g;if("string"==typeof t){var n={};n.__data__=t,t=n}else this.v&&((n={}).__data__=wt(t),t=n);e.i.push(new ue(e.Ya++,t)),3==e.I&&mn(e)},Hn.prototype.N=function(){this.g.l=null,delete this.j,dn(this.g),delete this.g,Hn.Z.N.call(this)},j(Xn,At),j(kn,Ot),j(Bn,Mn),Bn.prototype.ra=function(){ft(this.g,"a")},Bn.prototype.qa=function(t){ft(this.g,new Xn(t))},Bn.prototype.pa=function(t){ft(this.g,new kn)},Bn.prototype.oa=function(){ft(this.g,"b")},Ln.prototype.createWebChannel=Ln.prototype.g,Hn.prototype.send=Hn.prototype.o,Hn.prototype.open=Hn.prototype.m,Hn.prototype.close=Hn.prototype.close,l=c.createWebChannelTransport=function(){return new Ln},a=c.getStatEventTarget=function(){return It()},h=c.Event=Pt,r=c.Stat={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},Yt.NO_ERROR=0,Yt.TIMEOUT=8,Yt.HTTP_ERROR=6,o=c.ErrorCode=Yt,Gt.COMPLETE="complete",s=c.EventType=Gt,Et.EventType=Ct,Ct.OPEN="a",Ct.CLOSE="b",Ct.ERROR="c",Ct.MESSAGE="d",ct.prototype.listen=ct.prototype.J,n=c.WebChannel=Et,e=c.FetchXmlHttpFactory=Ve,nn.prototype.listenOnce=nn.prototype.K,nn.prototype.getLastError=nn.prototype.Ha,nn.prototype.getLastErrorCode=nn.prototype.ya,nn.prototype.getStatus=nn.prototype.ca,nn.prototype.getResponseJson=nn.prototype.La,nn.prototype.getResponseText=nn.prototype.la,nn.prototype.send=nn.prototype.ea,nn.prototype.setWithCredentials=nn.prototype.Fa,t=c.XhrIo=nn}).apply(void 0!==u?u:'undefined'!=typeof self?self:'undefined'!=typeof window?window:{})},315,[]);
5452__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})},316,[317]);
5453__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"StorageError",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"StorageErrorCode",{enumerable:!0,get:function(){return i}}),Object.defineProperty(_e,"StringFormat",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"_FbsBlob",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(_e,"_Location",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"_TaskEvent",{enumerable:!0,get:function(){return He}}),Object.defineProperty(_e,"_TaskState",{enumerable:!0,get:function(){return ze}}),Object.defineProperty(_e,"_UploadTask",{enumerable:!0,get:function(){return et}}),Object.defineProperty(_e,"_dataFromString",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e,"_getChild",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(_e,"_invalidArgument",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"_invalidRootOperation",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"connectStorageEmulator",{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(_e,"deleteObject",{enumerable:!0,get:function(){return St}}),Object.defineProperty(_e,"getBlob",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(_e,"getBytes",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(_e,"getDownloadURL",{enumerable:!0,get:function(){return It}}),Object.defineProperty(_e,"getMetadata",{enumerable:!0,get:function(){return Ut}}),Object.defineProperty(_e,"getStorage",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(_e,"getStream",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(_e,"list",{enumerable:!0,get:function(){return At}}),Object.defineProperty(_e,"listAll",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(_e,"ref",{enumerable:!0,get:function(){return xt}}),Object.defineProperty(_e,"updateMetadata",{enumerable:!0,get:function(){return Ct}}),Object.defineProperty(_e,"uploadBytes",{enumerable:!0,get:function(){return Et}}),Object.defineProperty(_e,"uploadBytesResumable",{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(_e,"uploadString",{enumerable:!0,get:function(){return vt}});var e=r(d[0]),t=r(d[1]),n=r(d[2]);
5454/**
5455   * @license
5456   * Copyright 2017 Google LLC
5457   *
5458   * Licensed under the Apache License, Version 2.0 (the "License");
5459   * you may not use this file except in compliance with the License.
5460   * You may obtain a copy of the License at
5461   *
5462   *   http://www.apache.org/licenses/LICENSE-2.0
5463   *
5464   * Unless required by applicable law or agreed to in writing, software
5465   * distributed under the License is distributed on an "AS IS" BASIS,
5466   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5467   * See the License for the specific language governing permissions and
5468   * limitations under the License.
5469   */
5470const s='firebasestorage.googleapis.com';
5471/**
5472   * @license
5473   * Copyright 2017 Google LLC
5474   *
5475   * Licensed under the Apache License, Version 2.0 (the "License");
5476   * you may not use this file except in compliance with the License.
5477   * You may obtain a copy of the License at
5478   *
5479   *   http://www.apache.org/licenses/LICENSE-2.0
5480   *
5481   * Unless required by applicable law or agreed to in writing, software
5482   * distributed under the License is distributed on an "AS IS" BASIS,
5483   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5484   * See the License for the specific language governing permissions and
5485   * limitations under the License.
5486   */
5487class o extends t.FirebaseError{constructor(e,t,n=0){super(c(e),`Firebase Storage: ${t} (${c(e)})`),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,o.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return c(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage}\n${this.customData.serverResponse}`:this.message=this._baseMessage}}var i,u;function c(e){return'storage/'+e}function l(){return new o(i.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function h(){return new o(i.RETRY_LIMIT_EXCEEDED,'Max retry time for operation exceeded, please try again.')}function _(){return new o(i.CANCELED,'User canceled the upload/download.')}function p(e){return new o(i.INVALID_URL,"Invalid URL '"+e+"'.")}function f(){return new o(i.CANNOT_SLICE_BLOB,'Cannot slice blob for upload. Please retry the upload.')}function b(e){return new o(i.INVALID_ARGUMENT,e)}function T(){return new o(i.APP_DELETED,'The Firebase app was deleted.')}function R(e){return new o(i.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function w(e,t){return new o(i.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function y(e){throw new o(i.INTERNAL_ERROR,'Internal error: '+e)}
5488/**
5489   * @license
5490   * Copyright 2017 Google LLC
5491   *
5492   * Licensed under the Apache License, Version 2.0 (the "License");
5493   * you may not use this file except in compliance with the License.
5494   * You may obtain a copy of the License at
5495   *
5496   *   http://www.apache.org/licenses/LICENSE-2.0
5497   *
5498   * Unless required by applicable law or agreed to in writing, software
5499   * distributed under the License is distributed on an "AS IS" BASIS,
5500   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5501   * See the License for the specific language governing permissions and
5502   * limitations under the License.
5503   */!(function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CANNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"})(i||(i={}));class k{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const e=encodeURIComponent;return'/b/'+e(this.bucket)+'/o/'+e(this.path)}bucketOnlyServerUrl(){return'/b/'+encodeURIComponent(this.bucket)+'/o'}static makeFromBucketSpec(e,t){let n;try{n=k.makeFromUrl(e,t)}catch(t){return new k(e,'')}if(''===n.path)return n;throw s=e,new o(i.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+s+"'.");var s}static makeFromUrl(e,t){let n=null;const o='([A-Za-z0-9.\\-_]+)';const i=new RegExp("^gs://([A-Za-z0-9.\\-_]+)(/(.*))?$",'i');function u(e){e.path_=decodeURIComponent(e.path)}const c=t.replace(/[.]/g,'\\.'),l=[{regex:i,indices:{bucket:1,path:3},postModify:function(e){'/'===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${c}/v[A-Za-z0-9_]+/b/${o}
5503/o(/([^?#]*).*)?$`,'i'),indices:{bucket:1,path:3},postModify:u},{regex:new RegExp(`^https?://${t===s?'(?:storage.googleapis.com|storage.cloud.google.com)':t}/${o}/([^?#]*)`,'i'),indices:{bucket:1,path:2},postModify:u}];for(let t=0;t<l.length;t++){const s=l[t],o=s.regex.exec(e);if(o){const e=o[s.indices.bucket];let t=o[s.indices.path];t||(t=''),n=new k(e,t),s.postModify(n);break}}if(null==n)throw p(e);return n}}class E{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}
5504/**
5505   * @license
5506   * Copyright 2017 Google LLC
5507   *
5508   * Licensed under the Apache License, Version 2.0 (the "License");
5509   * you may not use this file except in compliance with the License.
5510   * You may obtain a copy of the License at
5511   *
5512   *   http://www.apache.org/licenses/LICENSE-2.0
5513   *
5514   * Unless required by applicable law or agreed to in writing, software
5515   * distributed under the License is distributed on an "AS IS" BASIS,
5516   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5517   * See the License for the specific language governing permissions and
5518   * limitations under the License.
5519   */function v(e,t,n){let s=1,o=null,i=null,u=!1,c=0;function l(){return 2===c}let h=!1;function _(...e){h||(h=!0,t.apply(null,e))}function p(t){o=setTimeout(()=>{o=null,e(b,l())},t)}function f(){i&&clearTimeout(i)}function b(e,...t){if(h)return void f();if(e)return f(),void _.call(null,e,...t);if(l()||u)return f(),void _.call(null,e,...t);let n;s<64&&(s*=2),1===c?(c=2,n=0):n=1e3*(s+Math.random()),p(n)}let T=!1;function R(e){T||(T=!0,f(),h||(null!==o?(e||(c=2),clearTimeout(o),p(0)):e||(c=1)))}return p(0),i=setTimeout(()=>{u=!0,R(!0)},n),R}function O(e){return'string'==typeof e||e instanceof String}function U(e){return C()&&e instanceof Blob}function C(){return'undefined'!=typeof Blob}function A(e,t,n,s){if(s<t)throw b(`Invalid value for '${e}'. Expected ${t} or greater.`);if(s>n)throw b(`Invalid value for '${e}'. Expected ${n} or less.`)}
5520/**
5521   * @license
5522   * Copyright 2017 Google LLC
5523   *
5524   * Licensed under the Apache License, Version 2.0 (the "License");
5525   * you may not use this file except in compliance with the License.
5526   * You may obtain a copy of the License at
5527   *
5528   *   http://www.apache.org/licenses/LICENSE-2.0
5529   *
5530   * Unless required by applicable law or agreed to in writing, software
5531   * distributed under the License is distributed on an "AS IS" BASIS,
5532   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5533   * See the License for the specific language governing permissions and
5534   * limitations under the License.
5535   */function P(e,t,n){let s=t;return null==n&&(s=`https://${t}`),`${n}://${s}/v0${e}`}function I(e){const t=encodeURIComponent;let n='?';for(const s in e)if(e.hasOwnProperty(s)){n=n+(t(s)+'='+t(e[s]))+'&'}return n=n.slice(0,-1),n}
5536/**
5537   * @license
5538   * Copyright 2022 Google LLC
5539   *
5540   * Licensed under the Apache License, Version 2.0 (the "License");
5541   * you may not use this file except in compliance with the License.
5542   * You may obtain a copy of the License at
5543   *
5544   *   http://www.apache.org/licenses/LICENSE-2.0
5545   *
5546   * Unless required by applicable law or agreed to in writing, software
5547   * distributed under the License is distributed on an "AS IS" BASIS,
5548   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5549   * See the License for the specific language governing permissions and
5550   * limitations under the License.
5551   */
5552function S(e,t){const n=e>=500&&e<600,s=-1!==[408,429].indexOf(e),o=-1!==t.indexOf(e);return n||s||o}
5553/**
5554   * @license
5555   * Copyright 2017 Google LLC
5556   *
5557   * Licensed under the Apache License, Version 2.0 (the "License");
5558   * you may not use this file except in compliance with the License.
5559   * You may obtain a copy of the License at
5560   *
5561   *   http://www.apache.org/licenses/LICENSE-2.0
5562   *
5563   * Unless required by applicable law or agreed to in writing, software
5564   * distributed under the License is distributed on an "AS IS" BASIS,
5565   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5566   * See the License for the specific language governing permissions and
5567   * limitations under the License.
5568   */!(function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"})(u||(u={}));class x{constructor(e,t,n,s,o,i,u,c,l,h,_,p=!0,f=!1){this.url_=e,this.method_=t,this.headers_=n,this.body_=s,this.successCodes_=o,this.additionalRetryCodes_=i,this.callback_=u,this.errorCallback_=c,this.timeout_=l,this.progressCallback_=h,this.connectionFactory_=_,this.retry=p,this.isUsingEmulator=f,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()})}start_(){const e=(e,t)=>{if(t)return void e(!1,new N(!1,null,!0));const n=this.connectionFactory_();this.pendingConnection_=n;const s=e=>{const t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(s),n.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(s),this.pendingConnection_=null;const t=n.getErrorCode()===u.NO_ERROR,o=n.getStatus();if(!t||S(o,this.additionalRetryCodes_)&&this.retry){const t=n.getErrorCode()===u.ABORT;return void e(!1,new N(!1,null,t))}const i=-1!==this.successCodes_.indexOf(o);e(!0,new N(i,n))})},t=(e,t)=>{const n=this.resolve_,s=this.reject_,o=t.connection;if(t.wasSuccessCode)try{const e=this.callback_(o,o.getResponse());void 0!==e?n(e):n()}catch(e){s(e)}else if(null!==o){const e=l();e.serverResponse=o.getErrorText(),this.errorCallback_?s(this.errorCallback_(o,e)):s(e)}else if(t.canceled){s(this.appDelete_?T():_())}else{s(h())}};this.canceled_?t(0,new N(!1,null,!0)):this.backoffId_=v(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class N{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function D(e,t){null!==t&&t.length>0&&(e.Authorization='Firebase '+t)}function L(e,t){e['X-Firebase-Storage-Version']='webjs/'+(t??'AppManager')}function M(e,t){t&&(e['X-Firebase-GMPID']=t)}function B(e,t){null!==t&&(e['X-Firebase-AppCheck']=t)}function j(e,t,n,s,o,i,u=!0,c=!1){const l=I(e.urlParams),h=e.url+l,_=Object.assign({},e.headers);return M(_,t),D(_,n),L(_,i),B(_,s),new x(h,e.method,_,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,o,u,c)}
5569/**
5570   * @license
5571   * Copyright 2017 Google LLC
5572   *
5573   * Licensed under the Apache License, Version 2.0 (the "License");
5574   * you may not use this file except in compliance with the License.
5575   * You may obtain a copy of the License at
5576   *
5577   *   http://www.apache.org/licenses/LICENSE-2.0
5578   *
5579   * Unless required by applicable law or agreed to in writing, software
5580   * distributed under the License is distributed on an "AS IS" BASIS,
5581   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5582   * See the License for the specific language governing permissions and
5583   * limitations under the License.
5584   */function q(){return'undefined'!=typeof BlobBuilder?BlobBuilder:'undefined'!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function F(...e){const t=q();if(void 0!==t){const n=new t;for(let t=0;t<e.length;t++)n.append(e[t]);return n.getBlob()}if(C())return new Blob(e);throw new o(i.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}function H(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}
5585/**
5586   * @license
5587   * Copyright 2021 Google LLC
5588   *
5589   * Licensed under the Apache License, Version 2.0 (the "License");
5590   * you may not use this file except in compliance with the License.
5591   * You may obtain a copy of the License at
5592   *
5593   *   http://www.apache.org/licenses/LICENSE-2.0
5594   *
5595   * Unless required by applicable law or agreed to in writing, software
5596   * distributed under the License is distributed on an "AS IS" BASIS,
5597   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5598   * See the License for the specific language governing permissions and
5599   * limitations under the License.
5600   */function z(e){if('undefined'==typeof atob)throw t='base-64',new o(i.UNSUPPORTED_ENVIRONMENT,`${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);var t;return atob(e)}
5601/**
5602   * @license
5603   * Copyright 2017 Google LLC
5604   *
5605   * Licensed under the Apache License, Version 2.0 (the "License");
5606   * you may not use this file except in compliance with the License.
5607   * You may obtain a copy of the License at
5608   *
5609   *   http://www.apache.org/licenses/LICENSE-2.0
5610   *
5611   * Unless required by applicable law or agreed to in writing, software
5612   * distributed under the License is distributed on an "AS IS" BASIS,
5613   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5614   * See the License for the specific language governing permissions and
5615   * limitations under the License.
5616   */const V={RAW:'raw',BASE64:'base64',BASE64URL:'base64url',DATA_URL:'data_url'};class W{constructor(e,t){this.data=e,this.contentType=t||null}}function $(e,t){switch(e){case V.RAW:return new W(G(t));case V.BASE64:case V.BASE64URL:return new W(K(e,t));case V.DATA_URL:return new W(J(t),Y(t))}throw l()}function G(e){const t=[];for(let n=0;n<e.length;n++){let s=e.charCodeAt(n);if(s<=127)t.push(s);else if(s<=2047)t.push(192|s>>6,128|63&s);else if(55296==(64512&s)){if(n<e.length-1&&56320==(64512&e.charCodeAt(n+1))){s=65536|(1023&s)<<10|1023&e.charCodeAt(++n),t.push(240|s>>18,128|s>>12&63,128|s>>6&63,128|63&s)}else t.push(239,191,189)}else 56320==(64512&s)?t.push(239,191,189):t.push(224|s>>12,128|s>>6&63,128|63&s)}return new Uint8Array(t)}function X(e){let t;try{t=decodeURIComponent(e)}catch(e){throw w(V.DATA_URL,'Malformed data URL.')}return G(t)}function K(e,t){switch(e){case V.BASE64:{const n=-1!==t.indexOf('-'),s=-1!==t.indexOf('_');if(n||s){throw w(e,"Invalid character '"+(n?'-':'_')+"' found: is it base64url encoded?")}break}case V.BASE64URL:{const n=-1!==t.indexOf('+'),s=-1!==t.indexOf('/');if(n||s){throw w(e,"Invalid character '"+(n?'+':'/')+"' found: is it base64 encoded?")}t=t.replace(/-/g,'+').replace(/_/g,'/');break}}let n;try{n=z(t)}catch(t){if(t.message.includes('polyfill'))throw t;throw w(e,'Invalid character found')}const s=new Uint8Array(n.length);for(let e=0;e<n.length;e++)s[e]=n.charCodeAt(e);return s}class Z{constructor(e){this.base64=!1,this.contentType=null;const t=e.match(/^data:([^,]+)?,/);if(null===t)throw w(V.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const n=t[1]||null;null!=n&&(this.base64=Q(n,';base64'),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(',')+1)}}function J(e){const t=new Z(e);return t.base64?K(V.BASE64,t.rest):X(t.rest)}function Y(e){return new Z(e).contentType}function Q(e,t){return!!(e.length>=t.length)&&e.substring(e.length-t.length)===t}
5617/**
5618   * @license
5619   * Copyright 2017 Google LLC
5620   *
5621   * Licensed under the Apache License, Version 2.0 (the "License");
5622   * you may not use this file except in compliance with the License.
5623   * You may obtain a copy of the License at
5624   *
5625   *   http://www.apache.org/licenses/LICENSE-2.0
5626   *
5627   * Unless required by applicable law or agreed to in writing, software
5628   * distributed under the License is distributed on an "AS IS" BASIS,
5629   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5630   * See the License for the specific language governing permissions and
5631   * limitations under the License.
5632   */class ee{constructor(e,t){let n=0,s='';U(e)?(this.data_=e,n=e.size,s=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=s}size(){return this.size_}type(){return this.type_}slice(e,t){if(U(this.data_)){const n=H(this.data_,e,t);return null===n?null:new ee(n)}{const n=new Uint8Array(this.data_.buffer,e,t-e);return new ee(n,!0)}}static getBlob(...e){if(C()){const t=e.map(e=>e instanceof ee?e.data_:e);return new ee(F.apply(null,t))}{const t=e.map(e=>O(e)?$(V.RAW,e).data:e.data_);let n=0;t.forEach(e=>{n+=e.byteLength});const s=new Uint8Array(n);let o=0;return t.forEach(e=>{for(let t=0;t<e.length;t++)s[o++]=e[t]}),new ee(s,!0)}}uploadData(){return this.data_}}
5633/**
5634   * @license
5635   * Copyright 2017 Google LLC
5636   *
5637   * Licensed under the Apache License, Version 2.0 (the "License");
5638   * you may not use this file except in compliance with the License.
5639   * You may obtain a copy of the License at
5640   *
5641   *   http://www.apache.org/licenses/LICENSE-2.0
5642   *
5643   * Unless required by applicable law or agreed to in writing, software
5644   * distributed under the License is distributed on an "AS IS" BASIS,
5645   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5646   * See the License for the specific language governing permissions and
5647   * limitations under the License.
5648   */function te(e){let t;try{t=JSON.parse(e)}catch(e){return null}return'object'!=typeof(n=t)||Array.isArray(n)?null:t;var n}
5649/**
5650   * @license
5651   * Copyright 2017 Google LLC
5652   *
5653   * Licensed under the Apache License, Version 2.0 (the "License");
5654   * you may not use this file except in compliance with the License.
5655   * You may obtain a copy of the License at
5656   *
5657   *   http://www.apache.org/licenses/LICENSE-2.0
5658   *
5659   * Unless required by applicable law or agreed to in writing, software
5660   * distributed under the License is distributed on an "AS IS" BASIS,
5661   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5662   * See the License for the specific language governing permissions and
5663   * limitations under the License.
5664   */function ne(e){if(0===e.length)return null;const t=e.lastIndexOf('/');if(-1===t)return'';return e.slice(0,t)}function re(e,t){const n=t.split('/').filter(e=>e.length>0).join('/');return 0===e.length?n:e+'/'+n}function se(e){const t=e.lastIndexOf('/',e.length-2);return-1===t?e:e.slice(t+1)}
5665/**
5666   * @license
5667   * Copyright 2017 Google LLC
5668   *
5669   * Licensed under the Apache License, Version 2.0 (the "License");
5670   * you may not use this file except in compliance with the License.
5671   * You may obtain a copy of the License at
5672   *
5673   *   http://www.apache.org/licenses/LICENSE-2.0
5674   *
5675   * Unless required by applicable law or agreed to in writing, software
5676   * distributed under the License is distributed on an "AS IS" BASIS,
5677   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5678   * See the License for the specific language governing permissions and
5679   * limitations under the License.
5680   */function oe(e,t){return t}class ie{constructor(e,t,n,s){this.server=e,this.local=t||e,this.writable=!!n,this.xform=s||oe}}let ae=null;function ue(e){return!O(e)||e.length<2?e:se(e)}function ce(){if(ae)return ae;const e=[];e.push(new ie('bucket')),e.push(new ie('generation')),e.push(new ie('metageneration')),e.push(new ie('name','fullPath',!0));const t=new ie('name');t.xform=function(e,t){return ue(t)},e.push(t);const n=new ie('size');return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new ie('timeCreated')),e.push(new ie('updated')),e.push(new ie('md5Hash',null,!0)),e.push(new ie('cacheControl',null,!0)),e.push(new ie('contentDisposition',null,!0)),e.push(new ie('contentEncoding',null,!0)),e.push(new ie('contentLanguage',null,!0)),e.push(new ie('contentType',null,!0)),e.push(new ie('metadata','customMetadata',!0)),ae=e,ae}function le(e,t){Object.defineProperty(e,'ref',{get:function(){const n=e.bucket,s=e.fullPath,o=new k(n,s);return t._makeStorageReference(o)}})}function he(e,t,n){const s={type:'file'},o=n.length;for(let e=0;e<o;e++){const o=n[e];s[o.local]=o.xform(s,t[o.server])}return le(s,e),s}function de(e,t,n){const s=te(t);if(null===s)return null;return he(e,s,n)}function pe(e,t,n,s){const o=te(t);if(null===o)return null;if(!O(o.downloadTokens))return null;const i=o.downloadTokens;if(0===i.length)return null;const u=encodeURIComponent;return i.split(',').map(t=>{const o=e.bucket,i=e.fullPath;return P('/b/'+u(o)+'/o/'+u(i),n,s)+I({alt:'media',token:t})})[0]}function fe(e,t){const n={},s=t.length;for(let o=0;o<s;o++){const s=t[o];s.writable&&(n[s.server]=e[s.local])}return JSON.stringify(n)}
5681/**
5682   * @license
5683   * Copyright 2019 Google LLC
5684   *
5685   * Licensed under the Apache License, Version 2.0 (the "License");
5686   * you may not use this file except in compliance with the License.
5687   * You may obtain a copy of the License at
5688   *
5689   *   http://www.apache.org/licenses/LICENSE-2.0
5690   *
5691   * Unless required by applicable law or agreed to in writing, softw
5691are
5692   * distributed under the License is distributed on an "AS IS" BASIS,
5693   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5694   * See the License for the specific language governing permissions and
5695   * limitations under the License.
5696   */const ge='prefixes',me='items';function be(e,t,n){const s={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n[ge])for(const o of n[ge]){const n=o.replace(/\/$/,''),i=e._makeStorageReference(new k(t,n));s.prefixes.push(i)}if(n[me])for(const o of n[me]){const n=e._makeStorageReference(new k(t,o.name));s.items.push(n)}return s}function Te(e,t,n){const s=te(n);if(null===s)return null;return be(e,t,s)}class Re{constructor(e,t,n,s){this.url=e,this.method=t,this.handler=n,this.timeout=s,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}
5697/**
5698   * @license
5699   * Copyright 2017 Google LLC
5700   *
5701   * Licensed under the Apache License, Version 2.0 (the "License");
5702   * you may not use this file except in compliance with the License.
5703   * You may obtain a copy of the License at
5704   *
5705   *   http://www.apache.org/licenses/LICENSE-2.0
5706   *
5707   * Unless required by applicable law or agreed to in writing, software
5708   * distributed under the License is distributed on an "AS IS" BASIS,
5709   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5710   * See the License for the specific language governing permissions and
5711   * limitations under the License.
5712   */function we(e){if(!e)throw l()}function ye(e,t){return function(n,s){const o=de(e,s,t);return we(null!==o),o}}function ke(e,t){return function(n,s){const o=Te(e,t,s);return we(null!==o),o}}function Ee(e,t){return function(n,s){const o=de(e,s,t);return we(null!==o),pe(o,s,e.host,e._protocol)}}function ve(e){return function(t,n){let s;var u,c;return 401===t.getStatus()?s=t.getErrorText().includes('Firebase App Check token is invalid')?new o(i.UNAUTHORIZED_APP,'This app does not have permission to access Firebase Storage on this project.'):new o(i.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(c=e.bucket,s=new o(i.QUOTA_EXCEEDED,"Quota for bucket '"+c+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(u=e.path,s=new o(i.UNAUTHORIZED,"User does not have permission to access '"+u+"'.")):s=n,s.status=t.getStatus(),s.serverResponse=n.serverResponse,s}}function Oe(e){const t=ve(e);return function(n,s){let u=t(n,s);var c;return 404===n.getStatus()&&(c=e.path,u=new o(i.OBJECT_NOT_FOUND,"Object '"+c+"' does not exist.")),u.serverResponse=s.serverResponse,u}}function Ue(e,t,n){const s=P(t.fullServerUrl(),e.host,e._protocol),o=e.maxOperationRetryTime,i=new Re(s,'GET',ye(e,n),o);return i.errorHandler=Oe(t),i}function Ce(e,t,n,s,o){const i={};t.isRoot?i.prefix='':i.prefix=t.path+'/',n&&n.length>0&&(i.delimiter=n),s&&(i.pageToken=s),o&&(i.maxResults=o);const u=P(t.bucketOnlyServerUrl(),e.host,e._protocol),c=e.maxOperationRetryTime,l=ne
5712w Re(u,'GET',ke(e,t.bucket),c);return l.urlParams=i,l.errorHandler=ve(t),l}function Ae(e,t,n){const s=P(t.fullServerUrl(),e.host,e._protocol)+'?alt=media',o=e.maxOperationRetryTime,i=new Re(s,'GET',(e,t)=>t,o);return i.errorHandler=Oe(t),void 0!==n&&(i.headers.Range=`bytes=0-${n}`,i.successCodes=[200,206]),i}function Pe(e,t,n){const s=P(t.fullServerUrl(),e.host,e._protocol),o=e.maxOperationRetryTime,i=new Re(s,'GET',Ee(e,n),o);return i.errorHandler=Oe(t),i}function Ie(e,t,n,s){const o=P(t.fullServerUrl(),e.host,e._protocol),i=fe(n,s),u=e.maxOperationRetryTime,c=new Re(o,'PATCH',ye(e,s),u);return c.headers={'Content-Type':'application/json; charset=utf-8'},c.body=i,c.errorHandler=Oe(t),c}function Se(e,t){const n=P(t.fullServerUrl(),e.host,e._protocol),s=e.maxOperationRetryTime;const o=new Re(n,'DELETE',function(e,t){},s);return o.successCodes=[200,204],o.errorHandler=Oe(t),o}function xe(e,t){return e&&e.contentType||t&&t.type()||'application/octet-stream'}function Ne(e,t,n){const s=Object.assign({},n);return s.fullPath=e.path,s.size=t.size(),s.contentType||(s.contentType=xe(null,t)),s}function De(e,t,n,s,o){const i=t.bucketOnlyServerUrl(),u={'X-Goog-Upload-Protocol':'multipart'};const c=(function(){let e='';for(let t=0;t<2;t++)e+=Math.random().toString().slice(2);return e})();u['Content-Type']='multipart/related; boundary='+c;const l=Ne(t,s,o),h='--'+c+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+fe(l,n)+'\r\n--'+c+"\r\nContent-Type: "+l.contentType+'\r\n\r\n',_='\r\n--'+c+'--',p=ee.getBlob(h,s,_);if(null===p)throw f();const b={name:l.fullPath},T=P(i,e.host,e._protocol),R=e.maxUploadRetryTime,w=new Re(T,'POST',ye(e,n),R);return w.urlParams=b,w.headers=u,w.body=p.uploadData(),w.errorHandler=ve(t),w}class Le{constructor(e,t,n,s){this.current=e,this.total=t,this.finalized=!!n,this.metadata=s||null}}function Me(e,t){let n=null;try{n=e.getResponseHeader('X-Goog-Upload-Status')}catch(e){we(!1)}return we(!!n&&-1!==(t||['active']).indexOf(n)),n}function Be(e,t,n,s,o){const i=t.bucketOnlyServerUrl(),u=Ne(t,s,o),c={name:u.fullPath},l=P(i,e.host,e._protocol),h={'X-Goog-Upload-Protocol':'resumable','X-Goog-Upload-Command':'start','X-Goog-Upload-Header-Content-Length':`${s.size()}`,'X-Goog-Upload-Header-Content-Type':u.contentType,'Content-Type':'application/json; charset=utf-8'},_=fe(u,n),p=e.maxUploadRetryTime;const f=new Re(l,'POST',function(e){let t;Me(e);try{t=e.getResponseHeader('X-Goog-Upload-URL')}catch(e){we(!1)}return we(O(t)),t},p);return f.urlParams=c,f.headers=h,f.body=_,f.errorHandler=ve(t),f}function je(e,t,n,s){const o=e.maxUploadRetryTime,i=new Re(n,'POST',function(e){const t=Me(e,['active','final']);let n=null;try{n=e.getResponseHeader('X-Goog-Upload-Size-Received')}catch(e){we(!1)}n||we(!1);const o=Number(n);return we(!isNaN(o)),new Le(o,s.size(),'final'===t)},o);return i.headers={'X-Goog-Upload-Command':'query'},i.errorHandler=ve(t),i}const qe=262144;function Fe(e,t,n,s,u,c,l,h){const _=new Le(0,0);if(l?(_.current=l.current,_.total=l.total):(_.current=0,_.total=s.size()),s.size()!==_.total)throw new o(i.SERVER_FILE_WRONG_SIZE,'Server recorded incorrect upload file size, please retry the upload.');const p=_.total-_.current;let b=p;u>0&&(b=Math.min(b,u));const T=_.current,R=T+b;let w='';w=0===b?'finalize':p===b?'upload, finalize':'upload';const y={'X-Goog-Upload-Command':w,'X-Goog-Upload-Offset':`${_.current}`},k=s.slice(T,R);if(null===k)throw f();const E=t.maxUploadRetryTime,v=new Re(n,'POST',function(e,n){const o=Me(e,['active','final']),i=_.current+b,u=s.size();let l;return l='final'===o?ye(t,c)(e,n):null,new Le(i,u,'final'===o,l)},E);return v.headers=y,v.body=k.uploadData(),v.progressCallback=h||null,v.errorHandler=ve(e),v}
5713/**
5714   * @license
5715   * Copyright 2017 Google LLC
5716   *
5717   * Licensed under the Apache License, Version 2.0 (the "License");
5718   * you may not use this file except in compliance with the License.
5719   * You may obtain a copy of the License at
5720   *
5721   *   http://www.apache.org/licenses/LICENSE-2.0
5722   *
5723   * Unless required by applicable law or agreed to in writing, software
5724   * distributed under the License is distributed on an "AS IS" BASIS,
5725   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5726   * See the License for the specific language governing permissions and
5727   * limitations under the License.
5728   */const He={STATE_CHANGED:'state_changed'},ze={RUNNING:'running',PAUSED:'paused',SUCCESS:'success',CANCELED:'canceled',ERROR:'error'};function Ve(e){switch(e){case"running":case"pausing":case"canceling":return ze.RUNNING;case"paused":return ze.PAUSED;case"success":return ze.SUCCESS;case"canceled":return ze.CANCELED;default:return ze.ERROR}}
5729/**
5730   * @license
5731   * Copyright 2017 Google LLC
5732   *
5733   * Licensed under the Apache License, Version 2.0 (the "License");
5734   * you may not use this file except in compliance with the License.
5735   * You may obtain a copy of the License at
5736   *
5737   *   http://www.apache.org/licenses/LICENSE-2.0
5738   *
5739   * Unless required by applicable law or agreed to in writing, software
5740   * distributed under the License is distributed on an "AS IS" BASIS,
5741   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5742   * See the License for the specific language governing permissions and
5743   * limitations under the License.
5744   */class We{constructor(e,t,n){if('function'==typeof e||null!=t||null!=n)this.next=e,this.error=t??void 0,this.complete=n??void 0;else{const t=e;this.next=t.next,this.error=t.error,this.complete=t.complete}}}
5745/**
5746   * @license
5747   * Copyright 2017 Google LLC
5748   *
5749   * Licensed under the Apache License, Version 2.0 (the "License");
5750   * you may not use this file except in compliance with the License.
5751   * You may obtain a copy of the License at
5752   *
5753   *   http://www.apache.org/licenses/LICENSE-2.0
5754   *
5755   * Unless required by applicable law or agreed to in writing, software
5756   * distributed under the License is distributed on an "AS IS" BASIS,
5757   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5758   * See the License for the specific language governing permissions and
5759   * limitations under the License.
5760   */function $e(e){return(...t)=>{Promise.resolve().then(()=>e(...t))}}
5761/**
5762   * @license
5763   * Copyright 2017 Google LLC
5764   *
5765   * Licensed under the Apache License, Version 2.0 (the "License");
5766   * you may not use this file except in compliance with the License.
5767   * You may obtain a copy of the License at
5768   *
5769   *   http://www.apache.org/licenses/LICENSE-2.0
5770   *
5771   * Unless required by applicable law or agreed to in writing, software
5772   * distributed under the License is distributed on an "AS IS" BASIS,
5773   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5774   * See the License for the specific language governing permissions and
5775   * limitations under the License.
5776   */class Ge{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=u.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener('abort',()=>{this.errorCode_=u.ABORT,e()}),this.xhr_.addEventListener('error',()=>{this.errorCode_=u.NETWORK_ERROR,e()}),this.xhr_.addEventListener('load',()=>{e()})})}send(e,n,s,o,i){if(this.sent_)throw y('cannot .send() more than once');if((0,t.isCloudWorkstation)(e)&&s&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(n,e,!0),void 0!==i)for(const e in i)i.hasOwnProperty(e)&&this.xhr_.setRequestHeader(e,i[e].toString());return void 0!==o?this.xhr_.send(o):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw y('cannot .getErrorCode() before sending');return this.errorCode_}getStatus(){if(!this.sent_)throw y('cannot .getStatus() before sending');try{return this.xhr_.status}catch(e){return-1}}getResponse(){if(!this.sent_)throw y('cannot .getResponse() before sending');return this.xhr_.response}getErrorText(){if(!this.sent_)throw y('cannot .getErrorText() before sending');return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener('progress',e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener('progress',e)}}class Xe extends Ge{initXhr(){this.xhr_.responseType='text'}}function Ke(){return new Xe}class Ze extends Ge{initXhr(){this.xhr_.responseType='arraybuffer'}}function Je(){return new Ze}class Ye extends Ge{initXhr(){this.xhr_.responseType='blob'}}function Qe(){return new Ye}
5777/**
5778   * @license
5779   * Copyright 2017 Google LLC
5780   *
5781   * Licensed under the Apache License, Version 2.0 (the "License");
5782   * you may not use this file except in compliance with the License.
5783   * You may obtain a copy of the License at
5784   *
5785   *   http://www.apache.org/licenses/LICENSE-2.0
5786   *
5787   * Unless required by applicable law or agreed to in writing, softw
5787are
5788   * distributed under the License is distributed on an "AS IS" BASIS,
5789   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5790   * See the License for the specific language governing permissions and
5791   * limitations under the License.
5792   */class et{isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}constructor(e,t,n=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=e,this._blob=t,this._metadata=n,this._mappings=ce(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=e=>{if(this._request=void 0,this._chunkMultiplier=1,e._codeEquals(i.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{const t=this.isExponentialBackoffExpired();if(S(e.status,[])){if(!t)return this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,void this.completeTransitions_();e=h()}this._error=e,this._transition("error")}},this._metadataErrorHandler=e=>{this._request=void 0,e._codeEquals(i.CANCELED)?this.completeTransitions_():(this._error=e,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t,this._start()}),this._promise.then(null,()=>{})}_makeProgressCallback(){const e=this._transferred;return t=>this._updateProgress(e+t)}_shouldDoResumable(e){return e.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(e){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([t,n])=>{switch(this._state){case"running":e(t,n);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((e,t)=>{const n=Be(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),s=this._ref.storage._makeRequest(n,Ke,e,t);this._request=s,s.getPromise().then(e=>{this._request=void 0,this._uploadUrl=e,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){const e=this._uploadUrl;this._resolveToken((t,n)=>{const s=je(this._ref.storage,this._ref._location,e,this._blob),o=this._ref.storage._makeRequest(s,Ke,t,n);this._request=o,o.getPromise().then(e=>{this._request=void 0,this._updateProgress(e.current),this._needToFetchStatus=!1,e.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){const e=qe*this._chunkMultiplier,t=new Le(this._transferred,this._blob.size()),n=this._uploadUrl;this._resolveToken((s,o)=>{let i;try{i=Fe(this._ref._location,this._ref.storage,n,this._blob,e,this._mappings,t,this._makeProgressCallback())}catch(e){return this._error=e,void this._transition("error")}const u=this._ref.storage._makeRequest(i,Ke,s,o,!1);this._request=u,u.getPromise().then(e=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(e.current),e.finalized?(this._metadata=e.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){2*(qe*this._chunkMultiplier)<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((e,t)=>{const n=Ue(this._ref.storage,this._ref._location,this._mappings),s=this._ref.storage._makeRequest(n,Ke,e,t);this._request=s,s.getPromise().then(e=>{this._request=void 0,this._metadata=e,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((e,t)=>{const n=De(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),s=this._ref.storage._makeRequest(n,Ke,e,t);this._request=s,s.getPromise().then(e=>{this._request=void 0,this._metadata=e,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(e){const t=this._transferred;this._transferred=e,this._transferred!==t&&this._notifyObservers()}_transition(e){if(this._state!==e)switch(e){case"canceling":case"pausing":this._state=e,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":const t="paused"===this._state;this._state=e,t&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=e,this._notifyObservers();break;case"canceled":this._error=_(),this._state=e,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){const e=Ve(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:e,metadata:this._metadata,task:this,ref:this._ref}}on(e,t,n,s){const o=new We(t||void 0,n||void 0,s||void 0);return this._addObserver(o),()=>{this._removeObserver(o)}}then(e,t){return this._promise.then(e,t)}catch(e){return this.then(null,e)}_addObserver(e){this._observers.push(e),this._notifyObserver(e)}_removeObserver(e){const t=this._observers.indexOf(e);-1!==t&&this._observers.splice(t,1)}_notifyObservers(){this._finishPromise();
5792this._observers.slice().forEach(e=>{this._notifyObserver(e)})}_finishPromise(){if(void 0!==this._resolve){let e=!0;switch(Ve(this._state)){case ze.SUCCESS:$e(this._resolve.bind(null,this.snapshot))();break;case ze.CANCELED:case ze.ERROR:$e(this._reject.bind(null,this._error))();break;default:e=!1}e&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(e){switch(Ve(this._state)){case ze.RUNNING:case ze.PAUSED:e.next&&$e(e.next.bind(e,this.snapshot))();break;case ze.SUCCESS:e.complete&&$e(e.complete.bind(e))();break;case ze.CANCELED:case ze.ERROR:default:e.error&&$e(e.error.bind(e,this._error))()}}resume(){const e="paused"===this._state||"pausing"===this._state;return e&&this._transition("running"),e}pause(){const e="running"===this._state;return e&&this._transition("pausing"),e}cancel(){const e="running"===this._state||"pausing"===this._state;return e&&this._transition("canceling"),e}}
5793/**
5794   * @license
5795   * Copyright 2019 Google LLC
5796   *
5797   * Licensed under the Apache License, Version 2.0 (the "License");
5798   * you may not use this file except in compliance with the License.
5799   * You may obtain a copy of the License at
5800   *
5801   *   http://www.apache.org/licenses/LICENSE-2.0
5802   *
5803   * Unless required by applicable law or agreed to in writing, software
5804   * distributed under the License is distributed on an "AS IS" BASIS,
5805   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5806   * See the License for the specific language governing permissions and
5807   * limitations under the License.
5808   */class tt{constructor(e,t){this._service=e,this._location=t instanceof k?t:k.makeFromUrl(t,e.host)}toString(){return'gs://'+this._location.bucket+'/'+this._location.path}_newRef(e,t){return new tt(e,t)}get root(){const e=new k(this._location.bucket,'');return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return se(this._location.path)}get storage(){return this._service}get parent(){const e=ne(this._location.path);if(null===e)return null;const t=new k(this._location.bucket,e);return new tt(this._service,t)}_throwIfRoot(e){if(''===this._location.path)throw R(e)}}function nt(e,t){e._throwIfRoot('getBytes');const n=Ae(e.storage,e._location,t);return e.storage.makeRequestWithTokens(n,Je).then(e=>void 0!==t?e.slice(0,t):e)}function rt(e,t){e._throwIfRoot('getBlob');const n=Ae(e.storage,e._location,t);return e.storage.makeRequestWithTokens(n,Qe).then(e=>void 0!==t?e.slice(0,t):e)}function st(e,t,n){e._throwIfRoot('uploadBytes');const s=De(e.storage,e._location,ce(),new ee(t,!0),n);return e.storage.makeRequestWithTokens(s,Ke).then(t=>({metadata:t,ref:e}))}function ot(e,t,n){return e._throwIfRoot('uploadBytesResumable'),new et(e,new ee(t),n)}function it(e,t,n=V.RAW,s){e._throwIfRoot('uploadString');const o=$(n,t),i=Object.assign({},s);return null==i.contentType&&null!=o.contentType&&(i.contentType=o.contentType),st(e,o.data,i)}function at(e){const t={prefixes:[],items:[]};return ut(e,t).then(()=>t)}async function ut(e,t,n){const s={pageToken:n},o=await ct(e,s);t.prefixes.push(...o.prefixes),t.items.push(...o.items),null!=o.nextPageToken&&await ut(e,t,o.nextPageToken)}function ct(e,t){null!=t&&'number'==typeof t.maxResults&&A('options.maxResults',1,1e3,t.maxResults);const n=t||{},s=Ce(e.storage,e._location,'/',n.pageToken,n.maxResults);return e.storage.makeRequestWithTokens(s,Ke)}function lt(e){e._throwIfRoot('getMetadata');const t=Ue(e.storage,e._location,ce());return e.storage.makeRequestWithTokens(t,Ke)}function ht(e,t){e._throwIfRoot('updateMetadata');const n=Ie(e.storage,e._location,t,ce());return e.storage.makeRequestWithTokens(n,Ke)}function dt(e){e._throwIfRoot('getDownloadURL');const t=Pe(e.storage,e._location,ce());return e.storage.makeRequestWithTokens(t,Ke).then(e=>{if(null===e)throw new o(i.NO_DOWNLOAD_URL,'The given file does not have any download URLs.');return e})}function _t(e){e._throwIfRoot('deleteObject');const t=Se(e.storage,e._location);return e.storage.makeRequestWithTokens(t,Ke)}function pt(e,t){const n=re(e._location.path,t),s=new k(e._location.bucket,n);return new tt(e.storage,s)}
5809/**
5810   * @license
5811   * Copyright 2017 Google LLC
5812   *
5813   * Licensed under the Apache License, Version 2.0 (the "License");
5814   * you may not use this file except in compliance with the License.
5815   * You may obtain a copy of the License at
5816   *
5817   *   http://www.apache.org/licenses/LICENSE-2.0
5818   *
5819   * Unless required by applicable law or agreed to in writing, software
5820   * distributed under the License is distributed on an "AS IS" BASIS,
5821   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5822   * See the License for the specific language governing permissions and
5823   * limitations under the License.
5824   */function ft(e,t){if(e instanceof Tt){const n=e;if(null==n._bucket)throw new o(i.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the 'storageBucket' property when initializing the app?");const s=new tt(n,n._bucket);return null!=t?ft(s,t):s}return void 0!==t?pt(e,t):e}function gt(e,t){if(t&&/^[A-Za-z]+:\/\//.test(t)){if(e instanceof Tt)return new tt(e,t);throw b('To use ref(service, url), the first argument must be a Storage instance.')}return ft(e,t)}function mt(e,t){const n=t?.storageBucket;return null==n?null:k.makeFromBucketSpec(n,e)}function bt(e,n,s,o={}){e.host=`${n}:${s}`;const i=(0,t.isCloudWorkstation)(n);i&&(0,t.pingServer)(`https://${e.host}/b`),e._isUsingEmulator=!0,e._protocol=i?'https':'http';const{mockUserToken:u}=o;
5824u&&(e._overrideAuthToken='string'==typeof u?u:(0,t.createMockUserToken)(u,e.app.options.projectId))}class Tt{constructor(e,t,n,o,i,u=!1){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=o,this._firebaseVersion=i,this._isUsingEmulator=u,this._bucket=null,this._host=s,this._protocol='https',this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=o?k.makeFromBucketSpec(o,this._host):mt(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=k.makeFromBucketSpec(this._url,e):this._bucket=mt(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){A('time',0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){A('time',0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){if((0,e._isFirebaseServerApp)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const t=this._appCheckProvider.getImmediate({optional:!0});if(t){return(await t.getToken()).token}return null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new tt(this,e)}_makeRequest(e,t,n,s,o=!0){if(this._deleted)return new E(T());{const i=j(e,this._appId,n,s,t,this._firebaseVersion,o,this._isUsingEmulator);return this._requests.add(i),i.getPromise().then(()=>this._requests.delete(i),()=>this._requests.delete(i)),i}}async makeRequestWithTokens(e,t){const[n,s]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,s).getPromise()}}const Rt="@firebase/storage",wt="0.14.2",yt='storage';
5825/**
5826   * @license
5827   * Copyright 2020 Google LLC
5828   *
5829   * Licensed under the Apache License, Version 2.0 (the "License");
5830   * you may not use this file except in compliance with the License.
5831   * You may obtain a copy of the License at
5832   *
5833   *   http://www.apache.org/licenses/LICENSE-2.0
5834   *
5835   * Unless required by applicable law or agreed to in writing, software
5836   * distributed under the License is distributed on an "AS IS" BASIS,
5837   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5838   * See the License for the specific language governing permissions and
5839   * limitations under the License.
5840   */
5841function kt(e,n){return nt(e=(0,t.getModularInstance)(e),n)}function Et(e,n,s){return st(e=(0,t.getModularInstance)(e),n,s)}function vt(e,n,s,o){return it(e=(0,t.getModularInstance)(e),n,s,o)}function Ot(e,n,s){return ot(e=(0,t.getModularInstance)(e),n,s)}function Ut(e){return lt(e=(0,t.getModularInstance)(e))}function Ct(e,n){return ht(e=(0,t.getModularInstance)(e),n)}function At(e,n){return ct(e=(0,t.getModularInstance)(e),n)}function Pt(e){return at(e=(0,t.getModularInstance)(e))}function It(e){return dt(e=(0,t.getModularInstance)(e))}function St(e){return _t(e=(0,t.getModularInstance)(e))}function xt(e,n){return gt(e=(0,t.getModularInstance)(e),n)}function Nt(e,t){return pt(e,t)}function Dt(n=(0,e.getApp)(),s){n=(0,t.getModularInstance)(n);const o=(0,e._getProvider)(n,yt).getImmediate({identifier:s}),i=(0,t.getDefaultEmulatorHostnameAndPort)('storage');return i&&Lt(o,...i),o}function Lt(e,t,n,s={}){bt(e,t,n,s)}
5842/**
5843   * @license
5844   * Copyright 2021 Google LLC
5845   *
5846   * Licensed under the Apache License, Version 2.0 (the "License");
5847   * you may not use this file except in compliance with the License.
5848   * You may obtain a copy of the License at
5849   *
5850   *   http://www.apache.org/licenses/LICENSE-2.0
5851   *
5852   * Unless required by applicable law or agreed to in writing, software
5853   * distributed under the License is distributed on an "AS IS" BASIS,
5854   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5855   * See the License for the specific language governing permissions and
5856   * limitations under the License.
5857   */function Mt(e,n){return rt(e=(0,t.getModularInstance)(e),n)}function Bt(e,t){throw new Error('getStream() is only supported by NodeJS builds')}function jt(t,{instanceIdentifier:n}){const s=t.getProvider('app').getImmediate(),o=t.getProvider('auth-internal'),i=t.getProvider('app-check-internal');return new Tt(s,o,i,n,e.SDK_VERSION)}(0,e._registerComponent)(new n.Component(yt,jt,"PUBLIC").setMultipleInstances(!0)),(0,e.registerVersion)(Rt,wt,''),(0,e.registerVersion)(Rt,wt,'esm2020')},317,[181,183,182]);
5858__d(function(g,r,i,a,m,_e,d){"use strict";const e=["email"];
5858Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"normalizeProfileTag",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"normalizeProfileTags",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"createDefaultUsername",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"sanitizeUsername",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"isDefaultUsername",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"normalizeRemoteUserProfileRecord",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"createUserProfile",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e,"ensureUserProfile",{enumerable:!0,get:function(){return J}}),Object.defineProperty(_e,"getUserProfile",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(_e,"hydrateUserProfileRecord",{enumerable:!0,get:function(){return K}}),Object.defineProperty(_e,"updateUserProfile",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"repairUserProfile",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(_e,"subscribeToUserProfile",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e,"isUserBanned",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(_e,"updateUserPresence",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(_e,"setUserBanStatus",{enumerable:!0,get:function(){return re}});var t,n=r(d[0]),s=(t=n)&&t.__esModule?t:{default:t},o=r(d[1]),u=r(d[2]),l=r(d[3]),c=r(d[4]),b=r(d[5]);const f=8e3,v=12e3,h=()=>({isOnline:!1,lastSeen:Date.now()}),p=e=>{if(e&&"inactive"!==e.status)return{status:"active",monthlyRateUsd:"number"==typeof e.monthlyRateUsd?e.monthlyRateUsd:2,activatedAt:"number"==typeof e.activatedAt?e.activatedAt:Date.now(),expiresAt:"number"==typeof e.expiresAt?e.expiresAt:Date.now(),planId:"banner-monthly"===e.planId?"banner-monthly":"banner-24h",billingEmail:(e.billingEmail||"").trim().toLowerCase()||void 0}},y=e=>({uid:e.uid,username:D(e.username||""),email:(e.email||"").trim().toLowerCase(),avatar:(e.avatar||"").trim(),bio:(e.bio||"").trim(),banner:(e.banner||"").trim(),tags:j(e.tags||[]),liveStatus:e.liveStatus||h()}),w=async e=>{const t=(0,o.doc)(u.db,"directory",e.uid);await(0,l.withTimeout)((0,o.setDoc)(t,y(e),{merge:!0}),v,"Updating your public member card took too long.")},P=async e=>{const t=(0,o.query)((0,o.collection)(u.db,"posts"),(0,o.where)("userId","==",e.uid)),n=await(0,l.withTimeout)((0,o.getDocs)(t),f,"Refreshing authored posts took too long.");if(n.empty)return;const s=(0,o.writeBatch)(u.db),c=D(e.username||"");n.docs.forEach(t=>{s.set(t.ref,{username:c,userAvatar:(e.avatar||"").trim(),authorTags:j(e.tags||[])},{merge:!0})}),await(0,l.withTimeout)(s.commit(),v,"Refreshing your authored posts took too long.")},U=async e=>{const t=(0,o.query)((0,o.collectionGroup)(u.db,"replies"),(0,o.where)("userId","==",e.uid)),n=await(0,l.withTimeout)((0,o.getDocs)(t),f,"Refreshing reply identity took too long.");if(n.empty)return;const s=(0,o.writeBatch)(u.db),c=(0,b.getMemberDisplayName)(e);n.docs.forEach(e=>{s.set(e.ref,{authorName:c},{merge:!0})}),await(0,l.withTimeout)(s.commit(),v,"Refreshing reply identity took too long.")},S=async e=>{const t=(0,o.query)((0,o.collectionGroup)(u.db,"messages"),(0,o.where)("userId","==",e.uid)),n=await(0,l.withTimeout)((0,o.getDocs)(t),f,"Refreshing chat identity took too long."),s=(0,b.getMemberDisplayName)(e);if(!n.empty){const e=(0,o.writeBatch)(u.db);n.docs.forEach(t=>{e.set(t.ref,{username:s},{merge:!0})}),await(0,l.withTimeout)(e.commit(),v,"Refreshing chat identity took too long.")}const c=Array.from(new Map(n.docs.map(e=>e.ref.parent.parent).filter(Boolean).map(e=>[e.id,e])).values());(await Promise.allSettled(c.map(async t=>{const n=await(0,o.getDoc)(t);if(!n.exists())return;const u=n.data();u.lastMessage?.userId===e.uid&&await(0,o.setDoc)(t,{lastMessage:Object.assign({},u.lastMessage,{username:s})},{merge:!0})}))).forEach(e=>{"rejected"===e.status&&console.error("Error syncing latest chat preview identity:",e.reason)})},O=e=>e.trim().toLowerCase().replace(/^#/,'').replace(/[^a-z0-9._-]/g,''),j=e=>{const t=[];
5858return e.forEach(e=>{const n=O(e);n&&!t.includes(n)&&t.push(n)}),t.slice(0,8)},k=e=>"",D=e=>e.trim().toLowerCase().replace(/[^a-z0-9._-]/g,""),A=(e,t)=>!D(e),E=e=>({username:void 0!==e?.username?D(e.username):void 0,bio:void 0!==e?.bio?e.bio.trim():void 0,tags:void 0!==e?.tags?j(e.tags):void 0,avatar:void 0!==e?.avatar?e.avatar.trim():void 0,banner:void 0!==e?.banner?e.banner.trim():void 0}),C=(e,t)=>{if(!t)return null;const n=(t.email||t.emailAddress||"").trim().toLowerCase(),s=D(t.username||t.displayName||t.name||t.handle||""),o=(0,b.isFallbackMemberName)({uid:e,username:s,email:n})?"":s;return Object.assign({},t,{uid:t.uid||e,email:n,username:o,avatar:(t.avatar||t.photoURL||"").trim(),tags:j(t.tags||t.interests||[]),bio:(t.bio||"").trim(),banner:(t.banner||"").trim(),adSubscription:p(t.adSubscription)})},R=(e,t,n={})=>{const s=D(e||"");return s?(0,b.isFallbackMemberName)({uid:n.uid,username:s,email:t})||t&&A(s,t)?"":s:""},T=async(e,t)=>{const[n,s]=await Promise.all([(0,c.getCachedUserDirectory)(),(0,c.getCachedPosts)()]),o=n.find(t=>t.uid===e)||null,u=[...s].filter(t=>t.userId===e).sort((e,t)=>t.createdAt-e.createdAt)[0]||null,l=R(o?.username,o?.email||t,{uid:e}),b=R(u?.username,t,{uid:e});return{username:l||b,avatar:(o?.avatar||u?.userAvatar||"").trim(),tags:j(o?.tags||u?.authorTags||[])}},M=e=>(e||"").trim()||"",I=(e,t)=>{const n=M(e);return n||M(t)},N=(e,t,n,s)=>{const o=R(n,t,{uid:e});if(o)return o;const u=R(s,t,{uid:e});return u||""},x=(e,t)=>{const n=j(e||[]);return n.length>0?n:j(t||[])},B=async(e,t,n,s)=>{const o={},u=await T(e,s),l=R(n?.username,t?.email||n?.email||s,{uid:e}),c=M(n?.bio),f=M(n?.avatar),v=M(n?.banner),h=j(n?.tags||[]),p=l||u.username;return p&&(0,b.isFallbackMemberName)({uid:e,username:t?.username,email:t?.email||s})?o.username=p:!p||t?.username&&!A(t.username,t.email||s)?!t?.username&&s&&(o.username=k(s)):o.username=p,c&&!M(t?.bio)&&(o.bio=c),f&&!M(t?.avatar)?o.avatar=f:u.avatar&&!M(t?.avatar)&&(o.avatar=u.avatar),v&&!M(t?.banner)&&(o.banner=v),h.length>0&&0===j(t?.tags||[]).length?o.tags=h:u.tags.length>0&&0===j(t?.tags||[]).length&&(o.tags=u.tags),o},L=(e,t,n,s)=>{B(e,t,n,s).then(t=>{if(0!==Object.keys(t).length)return X(e,t)}).catch(e=>{console.error("Error repairing missing profile fields from cached profile:",e)})},_=(e,t,n,s)=>{if(!n)return{};const o={},u=R(n.username,t?.email||s,{uid:e}
5858),l=M(n.bio),c=M(n.avatar),f=M(n.banner),v=j(n.tags||[]);return u&&(0,b.isFallbackMemberName)({uid:e,username:t?.username,email:t?.email||s})?o.username=u:!u||t?.username&&!A(t.username,t.email||s)||(o.username=u),l&&!M(t?.bio)&&(o.bio=l),c&&!M(t?.avatar)&&(o.avatar=c),f&&!M(t?.banner)&&(o.banner=f),v.length>0&&0===j(t?.tags||[]).length&&(o.tags=v),o},F=(e,t,n,s)=>{const o=_(e,t,n,s);0!==Object.keys(o).length&&X(e,o).catch(e=>{console.error("Error repairing missing profile fields from local override:",e)})},z=async e=>{const t=(0,o.doc)(u.db,"users",e),n=await(0,l.withTimeout)((0,o.getDocFromServer)(t).catch(()=>(0,o.getDoc)(t)),f,"Loading your existing profile took too long.");return n.exists()?C(e,n.data()):null},q=async(e,t)=>{const n=await z(e);if(!n)return null;const s=K(e,n,t);return await(0,c.cacheUserProfile)(s),s},G=async(e,t,n)=>{const s=(0,o.doc)(u.db,"users",e),b=E(n),f=await(0,c.getCachedUserProfile)(e);try{const t=await q(e,f?.uid===e?f:null);if(t)return t}catch(t){if(console.error("Error checking for an existing profile before create:",t),f?.uid===e)return f;throw t}const p={uid:e,email:t,username:b.username||k(t),createdAt:Date.now(),banned:!1,isAdmin:!1,liveStatus:h()};b.bio&&(p.bio=b.bio),b.tags&&b.tags.length>0&&(p.tags=b.tags),b.avatar&&(p.avatar=b.avatar),b.banner&&(p.banner=b.banner);const y=H(e,p);return await(0,l.withTimeout)((0,o.setDoc)(s,p,{merge:!0}),v,"Creating your profile took too long. Please try again."),await w(y),await(0,c.cacheUserProfile)(y),y},J=async(e,t,n)=>{const s=E(n),o=await(0,c.getResolvedCachedUserProfile)(e);let u=null,l=!1;try{u=await z(e)}catch(e){l=!0,console.error("Error checking remote profile existence during bootstrap:",e)}if(!u){if(l&&o?.uid===e)return o;const n=await T(e,t),u=s.username||R(o?.username,o?.email||t,{uid:e})||n.username;return G(e,t,Object.assign({},s,{username:u||s.username,avatar:s.avatar||n.avatar||s.avatar,tags:s.tags&&s.tags.length>0?s.tags:n.tags}))}const f=K(e,u,o?.uid===e?o:null),v={};u.liveStatus||(v.liveStatus=h());const p=await T(e,t),y=s.username||R(o?.username,u.email||o?.email||t,{uid:e})||p.username;return y&&(0,b.isFallbackMemberName)({uid:e,username:u.username,email:u.email||t})?v.username=y:!y||u.username&&!A(u.username,u.email||t)?!u.username&&t&&(v.username=k(t)):v.username=y,s.bio&&!u.bio?v.bio=s.bio:Object.assign(v,await B(e,u,o,t)),s.tags&&s.tags.length>0&&(!u.tags||0===u.tags.length)&&(v.tags=s.tags),s.avatar&&!u.avatar?v.avatar=s.avatar:p.avatar&&!u.avatar&&(v.avatar=p.avatar),s.banner&&!u.banner&&(v.banner=s.banner),Object.keys(v).length>0&&await X(e,v),w(Object.assign({},f,v,{uid:e,email:f.email||t})).catch(e=>{console.error("Error syncing public user record:",e)}),Object.assign({},f,v)},Y=async e=>{const[t,n]=await Promise.all([(0,c.getUserProfileOverride)(e),(0,c.getCachedUserProfile)(e)]);try{const s=await z(e);if(s){L(e,s,n,s.email||n?.email||""),F(e,s,t,s.email||n?.email||"");const o=Q(K(e,s,n),t);return await(0,c.cacheUserProfile)(o),o}}catch(s){return console.error("Error fetching user profile:",s),n?.uid===e?Q(n,t):t?V(e,null,t):null}return n?.uid===e?Q(n,t):t?V(e,null,t):null},H=(e,t)=>({uid:t.uid||e,email:t.email||"",username:t.username||"",bio:t.bio||"",tags:j(t.tags||[]),avatar:t.avatar||"",banner:t.banner||"",friends:t.friends||[],createdAt:t.createdAt||Date.now(),banned:t.banned||!1,isAdmin:t.isAdmin||!1,liveStatus:t.liveStatus||h(),adSubscription:p(t.adSubscription)}),K=(e,t,n)=>{const s=t?.email??n?.email??"";return H(e,Object.assign({},n||{},{uid:t?.uid??n?.uid??e,email:s,username:N(e,s,t?.username,n?.username),bio:I(t?.bio,n?.bio),tags:x(t?.tags,n?.tags),avatar:I(t?.avatar,n?.avatar),banner:I(t?.banner,n?.banner),friends:t?.friends??n?.friends??[],createdAt:t?.createdAt??n?.createdAt??Date.now(),banned:t?.banned??n?.banned??!1,isAdmin:t?.isAdmin??n?.isAdmin??!1,liveStatus:t?.liveStatus??n?.liveStatus??h(),adSubscription:p(t?.adSubscription)||p(n?.adSubscription)}))},Q=(e,t)=>t?H(e.uid,Object.assign({},e,t,{username:void 0!==t.username&&D(t.username)||e.username,bio:void 0!==t.bio&&t.bio.trim()||e.bio,avatar:void 0!==t.avatar&&t.avatar.trim()||e.avatar,banner:void 0!==t.banner&&t.banner.trim()||e.banner,tags:void 0!==t.tags&&j(t.tags).length>0?j(t.tags):e.tags,adSubscription:void 0!==t.adSubscription&&p(t.adSubscription)||e.adSubscription})):e,V=(e,t,n)=>Q(H(e,Object.assign({},t||{},{uid:e})),n),W=(e,t)=>{if(void 0!==t.username&&e.username!==D(t.username))return!1;if(void 0!==t.bio&&e.bio!==t.bio.trim())return!1;if(void 0!==t.avatar&&e.avatar!==t.avatar.trim())return!1;if(void 0!==t.banner&&e.banner!==t.banner.trim())return!1;if(void 0!==t.tags){const n=j(t.tags);if(e.tags.length!==n.length)return!1;for(let t=0;t<n.length;t+=1)if(e.tags[t]!==n[t])return!1}if(void 0!==t.adSubscription){const n=p(e.adSubscription),s=p(t.adSubscription);if(JSON.stringify(n||null)!==JSON.stringify(s||null))return!1}return!0},X=async(t,n)=>{const b=(0,o.doc)(u.db,"users",t),{email:f}=n,h=(0,s.default)(n,e),[y,O]=await Promise.all([(0,c.getResolvedCachedUserProfile)(t),z(t).catch(()=>null)]),A=O?.email||y?.email||"",E=I(O?.bio,y?.bio),C=I(O?.avatar,y?.avatar),T=I(O?.banner,y?.banner),M=x(O?.tags,y?.tags),N=D(h.username||"")||R(O?.username,A,{uid:t})||R(y?.username,A,{uid:t})||(A?k(A):""),B=void 0!==h.bio?h.bio.trim():h.bio,L=void 0!==h.avatar?h.avatar.trim():h.avatar,_=void 0!==h.banner?h.banner.trim():h.banner,F=void 0!==h.tags?j(h.tags):h.tags,q=void 0!==h.adSubscription?p(h.adSubscription):h.adSubscription,G=Object.assign({},h,{username:void 0!==h.username?N:h.username,bio:void 0!==h.bio?B||E:h.bio,avatar:void 0!==h.avatar?L||C:h.avatar,banner:void 0!==h.banner?_||T:h.banner,tags:void 0!==h.tags?F&&F.length>0?F:M:h.tags,adSubscription:void 0!==h.adSubscription?q:h.adSubscription});await(0,c.saveUserProfileOverride)(t,G);const J=V(t,y?.uid===t?y:null,G);
5858await(0,c.cacheUserProfile)(J);try{await(0,l.withTimeout)((0,o.setDoc)(b,G,{merge:!0}),v,"Saving your profile took too long. Please try again.");const e=await z(t);if(!e)throw new Error("Your profile changes were not found in the live account. Please try again.");const n=H(t,e);if(!W(n,G))throw new Error("Your profile changes did not persist to the live account. Please try again.");const s=K(t,e,y?.uid===t?y:null);await(0,c.clearUserProfileOverride)(t),await(0,c.cacheUserProfile)(s),await(0,c.syncCachedUserIdentity)(t,{username:s.username,email:s.email,avatar:s.avatar,banner:s.banner,tags:s.tags});return(await Promise.allSettled([r(d[7])(d[6],d.paths,"./friends").then(({syncUserDirectoryMemoryIdentity:e})=>{e(t,{username:s.username,email:s.email,avatar:s.avatar,tags:s.tags,liveStatus:s.liveStatus})}),r(d[7])(d[8],d.paths,"../posts/posts").then(({syncFeedMemoryUserIdentity:e})=>{e(t,{username:s.username,avatar:s.avatar,tags:s.tags})}),r(d[7])(d[9],d.paths,"../web/search-cache").then(({syncSearchBootstrapIdentity:e})=>{e(t,{username:s.username,email:s.email,avatar:s.avatar,tags:s.tags})}),r(d[7])(d[10],d.paths,"../web/profile-cache").then(({syncProfileBootstrapIdentity:e})=>{e(t,{username:s.username,bio:s.bio,avatar:s.avatar,banner:s.banner,tags:s.tags})})])).forEach(e=>{"rejected"===e.status&&console.error("Error syncing in-memory identity state:",e.reason)}),await Promise.all([w(s),P(s),U(s),S(s)]),s}catch(e){throw console.error("Remote profile sync failed, keeping local profile override:",e),e}},Z=async(e,t={})=>{const[n,s]=await Promise.all([(0,c.getResolvedCachedUserProfile)(e),z(e).catch(()=>null)]),o=(t.email||s?.email||n?.email||"").trim().toLowerCase(),u=await T(e,o),l=await B(e,s,n,o),b=D(t.username||"")||R(s?.username,o,{uid:e})||R(n?.username,o,{uid:e})||R(l.username,o,{uid:e})||u.username||(o?k(o):""),f=(t.bio||"").trim()||I(s?.bio,n?.bio)||M(l.bio),v=(t.avatar||"").trim()||I(s?.avatar,n?.avatar)||M(l.avatar)||u.avatar,h=(t.banner||"").trim()||I(s?.banner,n?.banner)||M(l.banner),p=j(t.tags||[]),y=x(s?.tags,n?.tags),w=j(l.tags||[]),P=p.length>0?p:y.length>0?y:w.length>0?w:u.tags;if(!s&&!n?.uid&&!o)throw new Error("No live or cached profile data was found for that account.");return X(e,{username:b,bio:f,avatar:v,banner:h,tags:P})},$=(e,t)=>{const n=(0,o.doc)(u.db,"users",e);return(0,o.onSnapshot)(n,n=>{(0,l.runObserverTask)(async()=>{const[s,o]=await Promise.all([(0,c.getCachedUserProfile)(e),(0,c.getUserProfileOverride)(e)]);if(!n.exists())return s?.uid===e||o?void t(V(e,s,o)):void t(null);L(e,n.data(),s,n.data()?.email||s?.email||""),F(e,n.data(),o,n.data()?.email||s?.email||"");const u=Q(K(e,n.data(),s),o);await(0,c.cacheUserProfile)(u),t(u)},n=>{console.error("Error handling live profile update:",n),(0,c.getResolvedCachedUserProfile)(e).then(e=>{t(e)}).catch(e=>{console.error("Error loading cached profile after live update failure:",e),t(null)})})},n=>{console.error("Error subscribing to user profile:",n),(0,c.getResolvedCachedUserProfile)(e).then(e=>{t(e)}).catch(e=>{console.error("Error loading cached profile after subscription failure:",e),t(null)})})},ee=async e=>{const t=await Y(e);return t?.banned||!1},ae=async(e,t)=>{const n=(0,o.doc)(u.db,"users",e),s={isOnline:t,lastSeen:Date.now()};await(0,l.withTimeout)((0,o.setDoc)(n,{liveStatus:s},{merge:!0}),v,"Updating your live status took too long.");const b=await(0,c.getCachedUserProfile)(e),f=V(e,b?.uid===e?b:null,{liveStatus:s});await(0,c.cacheUserProfile)(f),await w(f)},re=async(e,t)=>{const n=(0,o.doc)(u.db,"users",e);await(0,l.withTimeout)((0,o.setDoc)(n,{banned:t},{merge:!0}),v,t?"Banning the account took too long.":"Removing the ban took too long.");const s=await(0,c.getCachedUserProfile)(e);s?.uid===e&&await(0,c.cacheUserProfile)(Object.assign({},s,{banned:t}))}},318,{"0":129,"1":311,"2":309,"3":307,"4":319,"5":326,"6":777,"7":327,"8":756,"9":775,"10":776,"paths":{}});
5859__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"cachePosts",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"upsertCachedPost",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"replaceCachedPostId",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"removeCachedPost",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"getCachedPosts",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"getCachedPostsSnapshot",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"queueOfflineMessage",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"getOfflineQueue",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"clearSentMessages",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"cacheUserProfile",{enumerable:!0,get:function(){return J}}),Object.defineProperty(_e,"getImmediateCachedUserProfile",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"getCachedUserProfile",{enumerable:!0,get:function(){return M}}),Object.defineProperty(_e,"getResolvedCachedUserProfile",{enumerable:!0,get:function(){return H}}),Object.defineProperty(_e,"getImmediateResolvedCachedUserProfile",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(_e,"saveUserProfileOverride",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"getUserProfileOverride",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"clearUserProfileOverride",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e,"cacheUserDirectory",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e,"syncCachedUserIdentity",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"getCachedUserDirectory",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"getCachedUserDirectorySnapshot",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(_e,"cacheSocialData",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"getCachedSocialData",{enumerable:!0,get:function(){return K}}),Object.defineProperty(_e,"isCachedSocialDataFresh",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"cacheChatMessages",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_e,"getCachedChatMessages",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"getPostInteractions",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(_e,"savePostInteractions",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(_e,"setPostInteractionRecord",{enumerable:!0,get:function(){return te}}),Object.defineProperty(_e,"getPostInteractionRecord",{enumerable:!0,get:function(){return re}}),Object.defineProperty(_e,"addPostReply",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(_e,"setNetworkStatus",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(_e,"getSearchSignals",{enumerable:!0,get:function(){return se}}),Object.defineProperty(_e,"recordSearchSignal",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(_e,"getImmediateFeedPreferences",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(_e,"getFeedPreferences",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(_e,"saveFeedPreferences",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(_e,"getNetworkStatus",{enumerable:!0,get:function(){return le}}),Object.defineProperty(_e,"clearCache",{enumerable:!0,get:function(){return de}});
5859var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const s={CACHED_POSTS:'cached_posts',CACHED_MESSAGES:'cached_messages',OFFLINE_QUEUE:'offline_queue',USER_PROFILE:'user_profile',USER_PROFILES:'user_profiles',USER_PROFILE_MEDIA:'user_profile_media',USER_PROFILE_OVERRIDES:'user_profile_overrides',USER_DIRECTORY:'user_directory',NETWORK_STATUS:'network_status',POST_INTERACTIONS:'post_interactions',SOCIAL_CACHE:'social_cache',CHAT_MESSAGES:'chat_messages',SEARCH_SIGNALS:'search_signals',FEED_PREFERENCES:'feed_preferences'};let o={},c={},u={};const l=()=>'undefined'!=typeof window&&!!window.localStorage,f=e=>{if(!l())return null;try{const t=window.localStorage.getItem(e);return t?JSON.parse(t):null}catch(t){return console.error(`Error reading web storage key ${e}:`,t),null}},E=(e,t)=>{if(l())try{window.localStorage.setItem(e,JSON.stringify(t))}catch(t){console.error(`Error writing web storage key ${e}:`,t)}},O=e=>'string'==typeof e?e.trim():'',y=e=>Array.isArray(e)?e.filter(e=>'string'==typeof e&&e.trim().length>0):[],p=(e,t)=>e||t?Object.assign({},e||{},{avatar:O(e?.avatar)||O(t?.avatar),banner:O(e?.banner)||O(t?.banner)}):null,b=async e=>{if(c[e])return c[e];try{const t=f(s.USER_PROFILE_MEDIA);if(t&&(c=Object.assign({},t),t[e]))return t[e];const o=await n.default.getItem(s.USER_PROFILE_MEDIA);if(!o)return null;const u=JSON.parse(o);return c=Object.assign({},u),u[e]||null}catch(e){return console.error('Error getting cached profile media:',e),null}},S=async(e,t)=>{const o={avatar:O(t.avatar),banner:O(t.banner)};if(o.avatar||o.banner)try{const t=await n.default.getItem(s.USER_PROFILE_MEDIA),u=t?JSON.parse(t):{},l=u[e]||c[e]||{};u[e]={avatar:o.avatar||l.avatar,banner:o.banner||l.banner},c=Object.assign({},u),E(s.USER_PROFILE_MEDIA,u),await n.default.setItem(s.USER_PROFILE_MEDIA,JSON.stringify(u))}catch(e){console.error('Error caching profile media:',e)}},h=(e,t,n)=>{if(!e&&!t)return null;const s=e||{uid:n},o=t||{},c=O(o.username),u=O(o.bio),l=O(o.avatar),f=O(o.banner),E=y(o.tags),p=Array.isArray(o.friends)?o.friends.filter(Boolean):void 0;return Object.assign({},s,o,{uid:O(o.uid)||s.uid||n,username:c||s.username,bio:u||s.bio,avatar:l||s.avatar,banner:f||s.banner,tags:E.length>0?E:s.tags||[],friends:void 0!==p?p:s.friends||[]})},I=e=>e.trim().toLowerCase().replace(/[^a-z0-9#._-]/g,''),P=e=>I(e.toLowerCase().replace(/#([a-z0-9._-]+)/g,' ')),R=(e,t)=>{const n=[];return e.forEach(e=>{const t=I(e);t&&!n.includes(t)&&n.push(t)}),n.slice(0,t)},w=e=>'newest'===e||'following'===e?e:'for-you',_=e=>'fresh'===e||'friends'===e||'interests'===e?e:'balanced',A=async e=>{try{const t={posts:e,timestamp:Date.now()};await n.default.setItem(s.CACHED_POSTS,JSON.stringify(t))}catch(e){console.error('Error caching posts:',e)}},j=async e=>{try{const t=await v(),n=[e,...t.filter(t=>t.id!==e.id)].sort((e,t)=>t.createdAt-e.createdAt);await A(n)}catch(e){console.error('Error upserting cached post:',e)}},N=async(e,t)=>{try{const n=(await v()).map(n=>n.id===e?t:n);await A(n)}catch(e){console.error('Error replacing cached post id:',e)}},C=async e=>{try{const t=await v();await A(t.filter(t=>t.id!==e))}catch(e){console.error('Error removing cached post:',e)}},v=async()=>{const e=await U();return e?.posts||[]},U=async()=>{try{const e=await n.default.getItem(s.CACHED_POSTS);if(e){const t=JSON.parse(e);if(Date.now()-t.timestamp<864e5)return t}}catch(e){console.error('Error getting cached posts:',e)}return null},F=async e=>{try{const t=await D();t.push(e),await n.default.setItem(s.OFFLINE_QUEUE,JSON.stringify(t))}catch(e){console.error('Error queuing offline message:',e)}},D=async()=>{try{const e=await n.default.getItem(s.OFFLINE_QUEUE);return e?JSON.parse(e):[]}catch(e){return console.error('Error getting offline queue:',e),[]}},L=async e=>{try{const t=(await D()).filter(t=>!e.includes(t.id));await n.default.setItem(s.OFFLINE_QUEUE,JSON.stringify(t))}catch(e){console.error('Error clearing sent messages:',e)}},J=async e=>{try{const t=e?.uid?await M(e.uid):null,c=Object.assign({},t||{},e||{},{uid:O(e?.uid)||O(t?.uid),username:O(e?.username)||O(t?.username),email:O(e?.email)||O(t?.email),bio:O(e?.bio)||O(t?.bio),avatar:O(e?.avatar)||O(t?.avatar),banner:O(e?.banner)||O(t?.banner),tags:y(e?.tags).length>0?y(e?.tags):y(t?.tags),friends:Array.isArray(e?.friends)?e.friends.filter(
5859Boolean):t?.friends||[],cachedAt:Date.now()});if(c?.uid&&(o[c.uid]=c,await S(c.uid,{avatar:c.avatar,banner:c.banner})),E(s.USER_PROFILE,c),await n.default.setItem(s.USER_PROFILE,JSON.stringify(c)),e?.uid){const t=await n.default.getItem(s.USER_PROFILES),u=t?JSON.parse(t):{};u[e.uid]=c,o=Object.assign({},u),E(s.USER_PROFILES,u),await n.default.setItem(s.USER_PROFILES,JSON.stringify(u))}}catch(e){console.error('Error caching user profile:',e)}},T=e=>{if(e){if(o[e])return p(o[e],c[e]);const t=f(s.USER_PROFILES),n=f(s.USER_PROFILE_MEDIA);return t&&(o=Object.assign({},t)),n&&(c=Object.assign({},n)),p(t?.[e]||null,n?.[e]||null)}const[t]=Object.values(o);if(t)return p(t,t?.uid?c[t.uid]:null);const n=f(s.USER_PROFILE);if(!n)return null;n?.uid&&(o[n.uid]=n);const u=f(s.USER_PROFILE_MEDIA);return u&&(c=Object.assign({},u)),p(n,n?.uid?u?.[n.uid]:null)},M=async e=>{try{const t=e?await b(e):null;if(e){if(o[e])return p(o[e],t);const c=await n.default.getItem(s.USER_PROFILES);if(c){const n=JSON.parse(c);if(o=Object.assign({},n),n[e])return p(n[e],t)}}const c=await n.default.getItem(s.USER_PROFILE);if(!c)return null;const u=JSON.parse(c);return u?.uid&&(o[u.uid]=u),e&&u?.uid!==e?null:p(u,u?.uid?await b(u.uid):t)}catch(e){return console.error('Error getting cached profile:',e),null}},H=async e=>{try{const[t,n]=await Promise.all([M(e),V(e)]);return h(t,n,e)}catch(e){return console.error('Error getting resolved cached profile:',e),null}},Y=e=>{const t=T(e),n=u[e]||null;return h(t,n,e)},B=async(e,t)=>{try{const o=await n.default.getItem(s.USER_PROFILE_OVERRIDES),c=o?JSON.parse(o):{};c[e]=Object.assign({},c[e]||{},t,{updatedAt:Date.now()}),u=Object.assign({},c),E(s.USER_PROFILE_OVERRIDES,c),await n.default.setItem(s.USER_PROFILE_OVERRIDES,JSON.stringify(c))}catch(e){console.error('Error saving user profile override:',e)}},V=async e=>{try{if(u[e])return u[e];const t=f(s.USER_PROFILE_OVERRIDES);if(t&&(u=Object.assign({},t),t[e]))return t[e]||null;const o=await n.default.getItem(s.USER_PROFILE_OVERRIDES);if(!o)return null;const c=JSON.parse(o);return u=Object.assign({},c),c[e]||null}catch(e){return console.error('Error loading user profile override:',e),null}},$=async e=>{try{const t=await n.default.getItem(s.USER_PROFILE_OVERRIDES);if(!t)return;const o=JSON.parse(t);if(!o[e])return;delete o[e],u=Object.assign({},o),E(s.USER_PROFILE_OVERRIDES,o),await n.default.setItem(s.USER_PROFILE_OVERRIDES,JSON.stringify(o))}catch(e){console.error('Error clearing user profile override:',e)}},G=async e=>{try{const t={users:e,timestamp:Date.now()};await n.default.setItem(s.USER_DIRECTORY,JSON.stringify(t))}catch(e){console.error('Error caching user directory:',e)}},k=async(e,t)=>{try{const o=(t.username||'').trim(),c=(t.email||'').trim().toLowerCase(),u=(t.avatar||'').trim(),l=(t.bio||'').trim(),f=(t.banner||'').trim(),E=Array.isArray(t.tags)?t.tags.filter(Boolean):void 0;(u||f)&&await S(e,{avatar:u,banner:f});const O=await M(e);(O?.uid===e||o||c||u||f||E)&&await J(Object.assign({},O||{uid:e},{uid:e,username:o||O?.username,email:c||O?.email,bio:l||O?.bio,avatar:u||O?.avatar,banner:f||O?.banner,tags:E||O?.tags}));const y=await Q();if(y?.users?.length){const t=y.users.map(t=>t.uid!==e?t:Object.assign({},t,{username:o||t.username,email:c||t.email,avatar:u||t.avatar,bio:l||t.bio,banner:f||t.banner,tags:E||t.tags}));await G(t)}const p=await n.default.getItem(s.SOCIAL_CACHE);if(p){const t=JSON.parse(p),n=t=>t.uid!==e?t:Object.assign({},t,{username:o||t.username,email:c||t.email,avatar:u||t.avatar,bio:l||t.bio,banner:f||t.banner,tags:E||t.tags}),s=Object.assign({},t,{friendsList:t.friendsList.map(n),searchIndex:t.searchIndex.map(n),friendRequests:t.friendRequests.map(t=>t.userId===e?Object.assign({},t,{username:o||t.username,email:c||t.email}):t),directMessages:t.directMessages.map(t=>t.lastMessage?.userId===e||t.participantProfiles?.[e]?Object.assign({},t,{participantProfiles:t.participantProfiles?.[e]?Object.assign({},t.participantProfiles,{[e]:Object.assign({},t.participantProfiles[e],{username:o||t.participantProfiles[e].username,email:c||t.participantProfiles[e].email,avatar:u||t.participantProfiles[e].avatar,tags:E||t.participantProfiles[e].tags})}):t.participantProfiles,lastMessage:t.lastMessage?.userId===e?Object.assign({},t.lastMessage,{username:o||t.lastMessage.username}):t.lastMessage}):t),cachedAt:Date.now()});await x(s)}const b=await U();b?.posts?.length&&await A(b.posts.map(t=>t.userId===e?Object.assign({},t,{username:o||t.username,userAvatar:u||t.userAvatar,authorTags:E||t.authorTags}):t));const h=(await n.default.getAllKeys()).filter(e=>e.startsWith(`${s.CHAT_MESSAGES}:`));await Promise.all(h.map(async t=>{const s=await n.default.getItem(t);if(!s)return;const c=JSON.parse(s).map(t=>t.userId===e?Object.assign({},t,{username:o||t.username}):t);await n.default.setItem(t,JSON.stringify(c))}))}catch(e){console.error('Error syncing cached user identity:',e)}},q=async()=>{const e=await Q();return e?.users||[]},Q=async()=>{try{const e=await n.default.getItem(s.USER_DIRECTORY);
5859if(!e)return null;return JSON.parse(e)}catch(e){return console.error('Error getting cached user directory:',e),null}},x=async e=>{try{await n.default.setItem(s.SOCIAL_CACHE,JSON.stringify(e))}catch(e){console.error('Error caching social data:',e)}},K=async e=>{try{const t=await n.default.getItem(s.SOCIAL_CACHE);if(!t)return null;const o=JSON.parse(t);return o.userId!==e?null:o}catch(e){return console.error('Error getting cached social data:',e),null}},W=async(e,t)=>{const n=await K(e);return!!n&&Date.now()-n.cachedAt<=t},z=async(e,t)=>{try{await n.default.setItem(`${s.CHAT_MESSAGES}:${e}`,JSON.stringify(t))}catch(e){console.error('Error caching chat messages:',e)}},X=async e=>{try{const t=await n.default.getItem(`${s.CHAT_MESSAGES}:${e}`);return t?JSON.parse(t):[]}catch(e){return console.error('Error getting cached chat messages:',e),[]}},Z=async()=>{try{const e=await n.default.getItem(s.POST_INTERACTIONS);return e?JSON.parse(e):{}}catch(e){return console.error('Error getting post interactions:',e),{}}},ee=async e=>{try{await n.default.setItem(s.POST_INTERACTIONS,JSON.stringify(e))}catch(e){console.error('Error saving post interactions:',e)}},te=async(e,t)=>{try{const n=await Z();n[e]=t,await ee(n)}catch(e){console.error('Error setting post interaction record:',e)}},re=async e=>(await Z())[e]||{replies:[]},ae=async(e,t)=>{const n=(t.text||'').trim(),s=(t.mediaUrl||'').trim();if(!n&&!s)throw new Error('Reply cannot be empty');const o=await Z(),c=o[e]||{replies:[]},u={id:`reply_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,text:n,createdAt:Date.now(),authorName:t.authorName.trim()||'You',mediaUrl:s,mediaType:t.mediaType},l=Object.assign({},c,{replies:[u,...c.replies].slice(0,25)});return o[e]=l,await ee(o),l},ne=async e=>{try{await n.default.setItem(s.NETWORK_STATUS,JSON.stringify({isOnline:e,timestamp:Date.now()}))}catch(e){console.error('Error setting network status:',e)}},se=async()=>{try{const e=await n.default.getItem(s.SEARCH_SIGNALS);if(!e)return{terms:[],hashtags:[],updatedAt:0};const t=JSON.parse(e);return{terms:Array.isArray(t.terms)?t.terms:[],hashtags:Array.isArray(t.hashtags)?t.hashtags:[],updatedAt:'number'==typeof t.updatedAt?t.updatedAt:0}}catch(e){return console.error('Error getting search signals:',e),{terms:[],hashtags:[],updatedAt:0}}},ie=async e=>{const t=(o=e,Array.from(o.toLowerCase().matchAll(/#([a-z0-9._-]+)/g)).map(e=>I(e[1]||'')));var o;const c=P(e)||t[0]||'';if(c.length<2&&0===t.length)return;const u=await se(),l={terms:R([c,...u.terms],12),hashtags:R([...t,...u.hashtags],12),updatedAt:Date.now()};try{await n.default.setItem(s.SEARCH_SIGNALS,JSON.stringify(l))}catch(e){console.error('Error saving search signals:',e)}},oe=()=>{const e=f(s.FEED_PREFERENCES);return e?{mode:w(e.mode),forYouBlend:_(e.forYouBlend),updatedAt:'number'==typeof e.updatedAt?e.updatedAt:0}:null},ce=async()=>{const e=oe();if(e)return e;try{const e=await n.default.getItem(s.FEED_PREFERENCES);if(!e)return{mode:'for-you',forYouBlend:'balanced',updatedAt:0};const t=JSON.parse(e);return{mode:w(t.mode),forYouBlend:_(t.forYouBlend),updatedAt:'number'==typeof t.updatedAt?t.updatedAt:0}}catch(e){return console.error('Error getting feed preferences:',e),{mode:'for-you',forYouBlend:'balanced',updatedAt:0}}},ue=async e=>{const t=await ce(),o={mode:w(e.mode??t.mode),forYouBlend:_(e.forYouBlend??t.forYouBlend),updatedAt:Date.now()};E(s.FEED_PREFERENCES,o);try{await n.default.setItem(s.FEED_PREFERENCES,JSON.stringify(o))}catch(e){console.error('Error saving feed preferences:',e)}},le=async()=>{try{const e=await n.default.getItem(s.NETWORK_STATUS);return e?JSON.parse(e):null}catch(e){return console.error('Error getting network status:',e),null}},de=async()=>{try{const e=Object.values(s);for(const t of e)await n.default.removeItem(t)}catch(e){console.error('Error clearing cache:',e)}}},319,[320]);
5860__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useAsyncStorage",{enumerable:!0,get:function(){return n.useAsyncStorage}}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});
5860var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]),o=u.default},320,[321,325]);
5861__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return i}});var e,t=r(d[0]);const o=((e=t)&&e.__esModule?e:{default:e}).default.bind({concatArrays:!0,ignoreUndefined:!0});function n(e,t){const n=window.localStorage.getItem(e);if(n){const l=JSON.parse(n),c=JSON.parse(t),s=JSON.stringify(o(l,c));window.localStorage.setItem(e,s)}else window.localStorage.setItem(e,t)}function l(e,t){return new Promise((o,n)=>{try{const n=e();t?.(null,n),o(n)}catch(e){t?.(e),n(e)}})}function c(e,t,o){return Promise.all(e).then(e=>{const n=o?.(e)??null;return t?.(null,n),Promise.resolve(n)},e=>(t?.(e),Promise.reject(e)))}const s={getItem:(e,t)=>l(()=>window.localStorage.getItem(e),t),setItem:(e,t,o)=>l(()=>window.localStorage.setItem(e,t),o),removeItem:(e,t)=>l(()=>window.localStorage.removeItem(e),t),mergeItem:(e,t,o)=>l(()=>n(e,t),o),clear:e=>l(()=>window.localStorage.clear(),e),getAllKeys:e=>l(()=>{const e=window.localStorage.length,t=[];for(let o=0;o<e;o+=1){const e=window.localStorage.key(o)||"";t.push(e)}return t},e),flushGetRequests:()=>{},multiGet:(e,t)=>c(e.map(e=>s.getItem(e)),t,t=>t.map((t,o)=>[e[o],t])),multiSet:(e,t)=>c(e.map(e=>s.setItem(e[0],e[1])),t),multiRemove:(e,t)=>c(e.map(e=>s.removeItem(e)),t),multiMerge:(e,t)=>c(e.map(e=>s.mergeItem(e[0],e[1])),t)};var i=s},321,[322]);
5862__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},322,[323]);
5863__d(function(g,r,i,a,m,e,d){'use strict';const t=r(d[0]),{hasOwnProperty:n}=Object.prototype,{propertyIsEnumerable:o}=Object,c=(t,n,o)=>Object.defineProperty(t,n,{value:o,writable:!0,enumerable:!0,configurable:!0}),s=this,f={concatArrays:!1,ignoreUndefined:!1},l=t=>{const c=[];for(const o in t)n.call(t,o)&&c.push(o);if(Object.getOwnPropertySymbols){const n=Object.getOwnPropertySymbols(t);for(const s of n)o.call(t,s)&&c.push(s)}return c};function u(n){return Array.isArray(n)?y(n):t(n)?p(n):n}function y(t){const n=t.slice(0,0);return l(t).forEach(o=>{c(n,o,u(t[o]))}),n}function p(t){const n=null===Object.getPrototypeOf(t)?Object.create(null):{};return l(t).forEach(o=>{c(n,o,u(t[o]))}),n}const b=(t,n,o,s)=>(o.forEach(o=>{void 0===n[o]&&s.ignoreUndefined||(o in t&&t[o]!==Object.getPrototypeOf(t)?c(t,o,h(t[o],n[o],s)):c(t,o,u(n[o])))}),t),O=(t,o,s)=>{let f=t.slice(0,0),y=0;return[t,o].forEach(o=>{const p=[];for(let s=0;s<o.length;s++)n.call(o,s)&&(p.push(String(s)),c(f,y++,o===t?o[s]:u(o[s])));f=b(f,o,l(o).filter(t=>!p.includes(t)),s)}),f};function h(n,o,c){return c.concatArrays&&Array.isArray(n)&&Array.isArray(o)?O(n,o,c):t(o)&&t(n)?b(n,o,l(o),c):u(o)}m.exports=function(...n){const o=h(u(f),this!==s&&this||{},f);let c={_:{}};for(const s of n)if(void 0!==s){if(!t(s))throw new TypeError('`'+s+'` is not an Option Object');c=h(c,{_:s},o)}return c._}},323,[324]);
5864__d(function(g,r,i,a,m,e,d){'use strict';m.exports=t=>{if('[object Object]'!==Object.prototype.toString.call(t))return!1;const o=Object.getPrototypeOf(t);return null===o||o===Object.prototype}},324,[]);
5865__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useAsyncStorage=function(e){return{getItem:(...t)=>u.default.getItem(e,...t),setItem:(...t)=>u.default.setItem(e,...t),mergeItem:(...t)=>u.default.mergeItem(e,...t),removeItem:(...t)=>u.default.removeItem(e,...t)}};var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},325,[321]);
5866__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isGeneratedMemberAlias",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"isFallbackMemberName",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"getMemberDisplayName",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"getMemberHandle",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"getMemberInitial",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"getMemberPresenceLabel",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"getMemberSummaryLine",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"mergeMemberSources",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"createMemberProfileFallback",{enumerable:!0,get:function(){return h}});const t=t=>(t||"").trim(),n=n=>t(n).toLowerCase().replace(/[^a-z0-9]/g,""),u=n=>{const u=t(n).toLowerCase();return u.includes("@")?u.split("@")[0].replace(/\+.*/,"").replace(/[^a-z0-9._-]/g,""):""},s=()=>({isOnline:!1,lastSeen:Date.now()}),o=n=>{const u=t(n).toLowerCase();return u?`blerd.${u.slice(0,4)}`:"blerd.signal"},l=t=>n(t).slice(0,4),b=n=>{const u=t(n).toUpperCase();return u?u.slice(0,4):""},c=t=>{const n=b(t);return n?`Member ${n}`:"Member"},f=t=>{const n=b(t).toLowerCase();return n?`@member-${n}`:"@member"},p=(u,s)=>{const b=t(u).toLowerCase(),c=n(u);if(!b)return!0;const f=l(s);return"blerdsignal"===c||(f?c===`buddy${f}`||(c===`blerd${f}`||!!b.startsWith("blerd.")&&("blerd.signal"===b||b===o(s))):"blerd.signal"===b)},v=n=>{const u=t(n?.username);return!u||!!p(u,n?.uid)},y=n=>{const s=t(n?.username);if(s&&!v(n))return s;const o=u(n?.email);return o||c(n?.uid)},S=n=>{const s=t(n?.username);if(s&&!v(n))return`@${s}`;const o=u(n?.email);return o?`@${o}`:f(n?.uid)},j=t=>y(t).charAt(0).toUpperCase()||"B",M=t=>t?.liveStatus?.isOnline?"Live in the stacks":t?.liveStatus?.lastSeen?"Stepping away":"In the cut",O=(n,u={})=>
5866{const s=[],o=(n?.tags||[]).filter(Boolean).slice(0,3),l=t(n?.email),b=M(n);return s.push(b),o.length>0?s.push(o.join(" \u2022 ")):(u.preferEmail&&l||l)&&s.push(l),s.join(" \u2022 ")},P=(...n)=>{const u=n.find(n=>{if(!n)return!1;const u=t(n.username);return Boolean(u)&&!v(n)}),o=n.find(n=>t(n?.email)),l=n.find(n=>t(n?.avatar)),b=n.find(n=>t(n?.bio)),c=n.find(n=>t(n?.banner)),f=n.find(t=>(t?.tags||[]).length>0)?.tags||[],p=n.find(t=>(t?.friends||[]).length>0)?.friends||[];return n.reduce((n,v)=>v?{uid:t(v.uid)||n.uid||"",username:t(u?.username)||t(v.username)||n.username||"",email:t(o?.email)||t(v.email)||n.email||"",avatar:t(l?.avatar)||t(v.avatar)||n.avatar||"",bio:t(b?.bio)||t(v.bio)||n.bio||"",banner:t(c?.banner)||t(v.banner)||n.banner||"",tags:f,friends:p,createdAt:"number"==typeof v.createdAt?v.createdAt:n.createdAt,banned:"boolean"==typeof v.banned?v.banned:n.banned,liveStatus:v.liveStatus||n.liveStatus||s()}:n,{liveStatus:s()})},h=(n,...u)=>{const o=P(...u,{uid:n});return{uid:t(o.uid)||n,email:t(o.email),username:t(o.username),bio:t(o.bio),tags:(o.tags||[]).filter(Boolean),avatar:t(o.avatar),banner:t(o.banner),friends:(o.friends||[]).filter(Boolean),createdAt:"number"==typeof o.createdAt?o.createdAt:0,banned:Boolean(o.banned),isAdmin:!1,liveStatus:o.liveStatus||s()}}},326,[]);
5867__d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},327,[328]);
5868__d(function(g,r,i,a,m,e,d){function n(n,t){const o=g[`${__METRO_GLOBAL_PREFIX__}__loadBundleAsync`];if(null!=o){const s=String(n);if(null!=t){const n=t[s];if(null!=n)return o(n)}}}function t(t,o){const s=n(t,o),u=()=>r.importAll(t);return null!=s?s.then(u):u()}async function o(n,o,s){return t(n,o)}o.unstable_importMaybeSync=function(n,o){return t(n,o)},o.prefetch=function(t,o,s){n(t,o)?.then(()=>{},()=>{})},o.unstable_resolve=function(n,t){if(!t)throw new Error('Bundle splitting is required for Web Worker imports');const o=t[n];if(!o)throw new Error('Worker import is missing from split bundle paths: '+o);return o},o.unstable_createWorker=function(n,t){if('undefined'==typeof crossOriginIsolated||!crossOriginIsolated)return new Worker(n,t);try{const s=(o=n,`\n    const ASYNC_WORKER_BASE = ${JSON.stringify(o)};\n    const IMPORT_SCRIPTS = importScripts;\n    const FETCH = fetch;\n    const fromBaseURL = (input) => new URL(input, ASYNC_WORKER_BASE).href;\n    self.fetch = function(input, init) {\n      return FETCH(typeof input === 'string' ? fromBaseURL(input) : input, init);\n    };\n    self.importScripts = function(...urls) {\n      return IMPORT_SCRIPTS.apply(self, urls.map(fromBaseURL));\n    };\n    importScripts(ASYNC_WORKER_BASE);\n  `);return n=URL.createObjectURL(new Blob([s],{type:'text/javascript'})),new Worker(n,t)}finally{URL.revokeObjectURL(n)}var o},m.exports=o},328,[]);
5869__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useViewportInsets",{enumerable:!0,get:function(){return o}});var t=r(d[0]);r(d[1]);const n=()=>
5869{if("undefined"==typeof window)return{top:12,bottom:24};const t=window.innerWidth<820,n=window.visualViewport;if(!n)return{top:12,bottom:24+(t?72:28)};const o=Math.max(0,window.innerHeight-(n.height+n.offsetTop)),s=Math.max(0,n.offsetTop),w=t?72:28,u=t&&o>120;return{top:Math.max(12,s+12),bottom:u?Math.max(12,o+12):Math.max(24+w,o+24)}},o=()=>{const[o,s]=(0,t.useState)(()=>n());return(0,t.useEffect)(()=>{if("undefined"==typeof window)return void s({top:12,bottom:24});const t=()=>{s(n())};return t(),window.addEventListener("resize",t),window.addEventListener("orientationchange",t),window.visualViewport?.addEventListener("resize",t),window.visualViewport?.addEventListener("scroll",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),window.visualViewport?.removeEventListener("resize",t),window.visualViewport?.removeEventListener("scroll",t)}},[]),(0,t.useMemo)(()=>o,[o])}},329,[34,95]);
5870__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LAST_RUNTIME_ERROR_STORAGE_KEY",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"RUNTIME_ERROR_VERSION_STORAGE_KEY",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"RUNTIME_ERROR_OVERLAY_ID",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"CHUNK_RECOVERY_STORAGE_KEY",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"RUNTIME_ERROR_SCHEMA_VERSION",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"clearRuntimeRecoveryState",{enumerable:!0,get:function(){return R}});const n="blackbunny:last-runtime-error",t="blackbunny:runtime-error-version",o="blackbunny-runtime-error-overlay",u="blackbunny:chunk-recovery-version",c="2026-04-20-mobile-chats-shell-flush-21",R=()=>{"undefined"!=typeof window&&(window.localStorage.removeItem(n),window.localStorage.removeItem(t),window.sessionStorage.removeItem(u),"undefined"!=typeof document&&document.getElementById(o)?.remove())}},330,[]);
5871__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return w}});var n=e(r(_d[0])),o=t(r(_d[1])),l=e(r(_d[2])),u=t(r(_d[3])),d=t(r(_d[4])),c=t(r(_d[5])),s=t(r(_d[6])),p=t(r(_d[7])),h=t(r(_d[8])),v=r(_d[9]),f=t(r(_d[10])),S=t(r(_d[11])),R=(e,t)=>{var n=e.selectionEnd,o=e.selectionStart,l=t.start,u=t.end;return l!==o||u!==n},C=(e,t)=>{if(R(e,t)){var n=t.start,o=t.end;try{e.setSelectionRange(n,o||n)}catch(e){}}},y=Object.assign({},l.defaultProps,l.accessibilityProps,l.clickProps,l.focusProps,l.keyboardProps,l.mouseProps,l.touchProps,l.styleProps,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),b=e=>(0,u.default)(e,y);function x(e){return e.isComposing||229===e.keyCode}var k=null,E=n.forwardRef((e,t)=>{var l,u,f=e.autoCapitalize,R=void 0===f?'sentences':f,y=e.autoComplete,E=e.autoCompleteType,w=e.autoCorrect,O=void 0===w||w,P=e.blurOnSubmit,M=e.caretHidden,F=e.clearTextOnFocus,_=e.dir,j=e.editable,z=e.enterKeyHint,D=e.inputMode,H=e.keyboardType,K=e.multiline,L=void 0!==K&&K,N=e.numberOfLines,q=e.onBlur,A=e.onChange,B=e.onChangeText,G=e.onContentSizeChange,I=e.onFocus,W=e.onKeyPress,$=e.onLayout,V=e.onMoveShouldSetResponder,J=e.onMoveShouldSetResponderCapture,Q=e.onResponderEnd,U=e.onResponderGrant,X=e.onResponderMove,Y=e.onResponderReject,Z=e.onResponderRelease,ee=e.onResponderStart,te=e.onResponderTerminate,ne=e.onResponderTerminationRequest,re=e.onScrollShouldSetResponder,oe=e.onScrollShouldSetResponderCapture,ae=e.onSelectionChange,le=e.onSelectionChangeShouldSetResponder,ue=e.onSelectionChangeShouldSetResponderCapture,de=e.onStart
5871ShouldSetResponder,ie=e.onStartShouldSetResponderCapture,ce=e.onSubmitEditing,se=e.placeholderTextColor,pe=e.readOnly,he=void 0!==pe&&pe,ve=e.returnKeyType,fe=e.rows,Se=e.secureTextEntry,Re=void 0!==Se&&Se,ge=e.selection,Ce=e.selectTextOnFocus,ye=e.showSoftInputOnFocus,me=e.spellCheck;if(null!=D)u=D,l='email'===D?'email':'tel'===D?'tel':'search'===D?'search':'url'===D?'url':'text';else if(null!=H)switch(H){case'email-address':l='email';break;case'number-pad':case'numeric':u='numeric';break;case'decimal-pad':u='decimal';break;case'phone-pad':l='tel';break;case'search':case'web-search':l='search';break;case'url':l='url';break;default:l='text'}Re&&(l='password');var be=n.useRef({height:null,width:null}),xe=n.useRef(null),ke=n.useRef(null),Ee=n.useRef(!1);n.useEffect(()=>{xe.current&&ke.current&&C(xe.current,ke.current),Ee.current=Re},[Re]);var Te=n.useCallback(e=>{if(L&&G&&null!=e){var t=e.scrollHeight,n=e.scrollWidth;t===be.current.height&&n===be.current.width||(be.current.height=t,be.current.width=n,G({nativeEvent:{contentSize:{height:be.current.height,width:be.current.width}}}))}},[L,G]),we=n.useMemo(()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value='')},e.isFocused=function(){return null!=e&&S.default.currentlyFocusedField()===e},Te(e))},[Te]);(0,c.default)(()=>{var e=xe.current;null!=e&&null!=ge&&C(e,ge),document.activeElement===e&&(S.default._currentlyFocusedNode=e)},[xe,ge]);var Oe=L?'textarea':'input';(0,d.default)(xe,$),(0,h.default)(xe,{onMoveShouldSetResponder:V,onMoveShouldSetResponderCapture:J,onResponderEnd:Q,onResponderGrant:U,onResponderMove:X,onResponderReject:Y,onResponderRelease:Z,onResponderStart:ee,onResponderTerminate:te,onResponderTerminationRequest:ne,onScrollShouldSetResponder:re,onScrollShouldSetResponderCapture:oe,onSelectionChangeShouldSetResponder:le,onSelectionChangeShouldSetResponderCapture:ue,onStartShouldSetResponder:de,onStartShouldSetResponderCapture:ie});var Pe=(0,v.useLocaleContext)().direction,Me=b(e);Me.autoCapitalize=R,Me.autoComplete=y||E||'on',Me.autoCorrect=O?'on':'off',Me.dir=void 0!==_?_:'auto',Me.enterKeyHint=z||ve,Me.inputMode=u,Me.onBlur=function(e){S.default._currentlyFocusedNode=null,q&&(e.nativeEvent.text=e.target.value,q(e))},Me.onChange=function(e){var t=e.target,n=t.value;e.nativeEvent.text=n,Te(t),A&&A(e),B&&B(n)},Me.onFocus=function(e){var t=e.target;I&&(e.nativeEvent.text=t.value,I(e)),null!=t&&(S.default._currentlyFocusedNode=t,F&&(t.value=''),Ce&&(null!=k&&clearTimeout(k),k=setTimeout(()=>{null!=t&&document.activeElement===t&&t.select()},0)))},Me.onKeyDown=function(e){var t=e.target;e.stopPropagation();var n=null==P?!L:P,o=e.nativeEvent,l=x(o);W&&W(e),'Enter'!==e.key||e.shiftKey||l||e.isDefaultPrevented()||(!P&&L||!ce||(e.preventDefault(),o.text=e.target.value,ce(e)),n&&null!=t&&setTimeout(()=>t.blur(),0))},Me.onSelect=function(e){try{var t=e.target,n={start:t.selectionStart,end:t.selectionEnd};ae&&(e.nativeEvent.selection=n,e.nativeEvent.text=e.target.value,ae(e)),Ee.current===Re&&(ke.current=n)}catch(e){}},Me.readOnly=!0===he||!1===j,Me.rows=L?null!=fe?fe:N:1,Me.spellCheck=null!=me?me:O,Me.style=[{'--placeholderTextColor':se},T.textinput$raw,T.placeholder,e.style,M&&T.caretHidden],Me.type=L?void 0:l,Me.virtualkeyboardpolicy=!1===ye?'manual':'auto';var Fe=(0,p.default)(Me),je=(0,s.default)(xe,Fe,we,t);Me.ref=je;var ze=null!=e.lang?(0,v.getLocaleDirection)(e.lang):null,De=e.dir||ze||Pe;return(0,o.default)(Oe,Me,{writingDirection:De})});E.displayName='TextInput',E.State=S.default;var T=f.default.create({textinput$raw:{MozAppearance:'textfield',WebkitAppearance:'none',backgroundColor:'transparent',border:'0 solid black',borderRadius:0,boxSizing:'border-box',font:'14px System',margin:0,padding:0,resize:'none'},placeholder:{placeholderTextColor:'var(--placeholderTextColor)'},caretHidden:{caretColor:'transparent'}}),w=E},331,[34,189,200,201,202,203,204,206,208,195,42,225]);
5872__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return q}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),l=r(d[3]),s=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),f=r(d[8]),b=r(d[9]),y=r(d[10]),S=r(d[11]),p=r(d[12]),T=r(d[13]),x=r(d[14]),O=r(d[15]),C=r(d[16]),j=r(d[17]),E=r(
5872d[18]),L=e(r(d[19])),R=e(r(d[20])),v=e(r(d[21]));e(r(d[22]));r(d[23]);var w=e(r(d[24])),I=e(r(d[25])),z=e(r(d[26])),P=e(r(d[27])),k=e(r(d[28])),Y=r(d[29]);const H=r(d[30]),_=[{id:"placeholder-1",text:"The feed is waking up...",userId:"placeholder",username:"BlackBunny",createdAt:Date.now()},{id:"placeholder-2",text:"Pulling cached sparks before the fresh ones land.",userId:"placeholder",username:"BlackBunny",createdAt:Date.now()-1e3}],X=3,D=e=>{const t=Date.now()-e,o=Math.floor(t/6e4),n=Math.floor(t/36e5),l=Math.floor(t/864e5);return o<1?"now":o<60?`${o}m`:n<24?`${n}h`:`${l}d`},W=e=>e?new Date(e).toLocaleString([],{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}):"Schedule coming soon",A=async e=>{const t=(e||"").trim();if(t)try{return void window.open(t,"_blank","noopener,noreferrer")}catch(e){console.error("Error opening external link:",e),L.default.alert("Link error","Could not open that link right now.")}},F=(e,t,o)=>{const n=t?{uid:e,username:t.username||"",avatar:t.avatar||"",tags:t.tags||[]}:null,l={uid:e,username:o.username||"",avatar:o.userAvatar||"",tags:o.authorTags||[]},s=(0,b.isFallbackMemberName)(n)?(0,b.isFallbackMemberName)(l)&&n||l:n;return{username:s?.username||o.username,avatar:s?.avatar||o.userAvatar,tags:(s?.tags&&s.tags.length>0?s.tags:o.authorTags)||[]}},M=10,U=2,B=1,V=e=>[...e].sort((e,t)=>t.createdAt-e.createdAt),N=e=>e.trim().toLowerCase(),$=(e=[],t=[])=>{const o=new Set(t.map(e=>N(e)).filter(Boolean));return e.filter(e=>o.has(N(e))).length},K=({post:e,currentUserId:t,friendIds:o,viewerTags:n,recentInterests:l,feedMode:s,feedBlend:c,resolvedAuthorTags:u})=>{if("placeholder"===e.userId)return[];const h=[],f=Date.now()-e.createdAt<216e5,b=o.includes(e.userId),y=$([...e.hashtags||[],...e.communityTags||[],...u],n),S=$([...e.hashtags||[],...e.communityTags||[]],l);return"newest"===s?(f&&h.push("Fresh post in newest"),h.push("Sorted by latest drop"),h.slice(0,2)):"following"===s?(h.push(e.userId===t?"From your own account":"From someone you follow"),f&&h.push("Still fresh in your circle"),h.slice(0,2)):("friends"===c&&(e.userId===t&&h.push("Your own post got boosted"),b&&h.push("Boosted from your circle")),"interests"===c&&(S>0&&h.push("Matches recent searches"),y>0&&h.push("Matches your profile tags")),"fresh"===c&&f&&h.push("Fresh drop got priority"),"event"===e.postKind&&h.push("Upcoming event in rotation"),b&&!h.includes("Boosted from your circle")&&h.push("From someone you follow"),S>0&&!h.includes("Matches recent searches")&&h.push("Matches recent searches"),y>0&&!h.includes("Matches your profile tags")&&h.push("Matches your profile tags"),(e.pieCount||0)>=3&&h.push("Getting strong pie momentum"),f&&!h.includes("Fresh drop got priority")&&h.push("Fresh enough to stay high"),e.mediaUrl&&"video"===e.mediaType&&h.push("Media post with extra pull"),0===h.length&&h.push("In your current For You mix"),Array.from(new Set(h)).slice(0,2))},G={balanced:{label:"BALANCED",description:"Keeps the default mix of fresh posts, friends, tags, and momentum.",profile:{},activeBackgroundColor:n.COLORS.accent,activeBorderColor:n.COLORS.accent,activeTextColor:n.COLORS.background},fresh:{label:"FRESH",description:"Pushes newer posts harder so the feed feels more immediate.",profile:{freshnessMultiplier:1.45,pieMultiplier:.8,friendMultiplier:.9,explorationMultiplier:.85},activeBackgroundColor:"rgba(212,175,55,0.14)",activeBorderColor:"rgba(212,175,55,0.24)",activeTextColor:n.COLORS.gold},friends:{label:"FRIENDS",description:"Pulls your own circle forward before broader discovery takes over.",profile:{friendMultiplier:1.8,ownPostMultiplier:1.15,recentInterestMultiplier:.9,explorationMultiplier:.75},activeBackgroundColor:"rgba(255,255,255,0.12)",activeBorderColor:"rgba(255,255,255,0.18)",activeTextColor:n.COLORS.text},interests:{label:"INTERESTS",description:"Leans harder into tags, recent searches, and the topics you signal.",profile:{viewerTagMultiplier:1.45,recentInterestMultiplier:1.55,communityTagMultiplier:1.3,authorTagMultiplier:1.2,explorationMultiplier:.9},activeBackgroundColor:"rgba(225,6,0,0.10)",activeBorderColor:"rgba(225,6,0,0.2)",activeTextColor:n.COLORS.accent}};function q(){const{height:e,width:N}=(0,P.default)(),$=N<720,{top:q,bottom:Q}=(0,T.useViewportInsets)(),J=$?12:24,Z=$?12:20,ee=$?12:16,te=$?232:320,re=$?300:420,oe=$?148:180,ae=$?188:220,ne=s.auth.currentUser?.uid||"",ie=(0,O.useAppRouter)(),[le,se]=(0,E.useState)(()=>{const e=(0,h.getImmediateFeedPosts)();return e.length>0?e:_}),[de,ce]=(0,E.useState)({}),[ue,ge]=(0,E.useState)(()=>0===(0,h.getImmediateFeedPosts)().length),[he,fe]=(0,E.useState)(!1),[be,ye]=(0,E.useState)(""),[Se,pe]=(0,E.useState)({}),[me,Te]=(0,E.useState)([]),[xe,Oe]=(0,E.useState)([]),[Ce,je]=(0,E.useState)([]),[Ee,Le]=(0,E.useState)([]),[Re,ve]=(0,E.useState)([]),[we,Ie]=(0,E.useState)(()=>(0,f.getImmediateFeedPreferences)()?.mode||"for-you"),[ze,Pe]=(0,E.useState)(()=>(0,f.getImmediateFeedPreferences)()?.forYouBlend||"balanced"),[ke,Ye]=(0,E.useState)(!1),[He,Xe]=(0,E.useState)(!1),[De,We]=(0,E.useState)(!1),[Ae,Fe]=(0,E.useState)(null),[Me,Ue]=(0,E.useState)(null),[Be,Ve]=(0,E.useState)(""),[Ne,$e]=(0,E.useState)(""),[Ke,Ge]=(0,E.useState)("image"),[qe,Qe]=(0,E.useState)(!1),[Je,Ze]=(0,E.useState)(null),[et,tt]=(0,E.useState)(null),[rt,ot]=(0,E.useState)(null),at=(0,E.useRef)(new R.default.Value(0)).current,nt=(0,E.useRef)({}),it=(0,E.useRef)([]),lt=e=>{(0,C.playRetroTypeClick)(Be,e),Ve(e)},st=le.filter(e=>"advertisement"===e.postKind&&(e.advertisementDetails?.activeUntil||0
5872)>Date.now()).sort((e,t)=>(t.advertisementDetails?.activeFrom||0)-(e.advertisementDetails?.activeFrom||0)).slice(0,6),dt=le.filter(e=>"event"===e.postKind&&(e.eventDetails?.startsAt||0)>Date.now()-216e5).sort((e,t)=>(e.eventDetails?.startsAt||0)-(t.eventDetails?.startsAt||0)).slice(0,6),ct=le.filter(e=>"video"===e.postKind),ut=le.filter(e=>"advertisement"!==e.postKind&&"video"!==e.postKind),gt=G[ze],ht=Array.from(new Set([...me,...xe])),ft=new Set(Ce.map(e=>e.postId)),bt=ne?"newest"===we?V(ut):"following"===we?V(ut.filter(e=>e.userId===ne||ht.includes(e.userId))):(0,h.rankPostsForViewer)(ut,ne,ht,Ee,Re,gt.profile):V(ut),yt="for-you"===we?gt.description:"newest"===we?"Strict reverse chronology, newest first.":"Only your posts and people you already follow, newest first.",St="for-you"===we?`for you \u2022 ${gt.label.toLowerCase()} mix`:"newest"===we?"newest \u2022 latest first":"following \u2022 friends + follows",pt=!$||ke,mt=st.length>0||dt.length>0||ct.length>0,Tt=!$||He,xt=[dt.length>0?`${dt.length} upcoming event${1===dt.length?"":"s"}`:null,st.length>0?`${st.length} active boost${1===st.length?"":"s"}`:null,ct.length>0?`${ct.length} creator video${1===ct.length?"":"s"}`:null].filter(e=>Boolean(e)).join(" \u2022 "),Ot="following"===we?"No following posts yet. Follow more people or wait for your circle to drop something new.":"newest"===we?"No fresh posts in newest right now.":"Your For You mix is quiet right now.",Ct=(0,E.useCallback)(e=>{Ie(e),Ye(!1),(0,f.saveFeedPreferences)({mode:e,forYouBlend:ze})},[ze]),jt=(0,E.useCallback)(e=>{Pe(e),Ye(!1),(0,f.saveFeedPreferences)({mode:we,forYouBlend:e})},[we]);(0,E.useEffect)(()=>{if(ne)return(0,y.subscribeToFollowingIds)(ne,e=>{Oe(e)});Oe([])},[ne]),(0,E.useEffect)(()=>{if(ne)return(0,y.subscribeToSavedPosts)(ne,e=>{je(e)});je([])},[ne]),(0,E.useEffect)(()=>{let e=!0;return(0,f.getFeedPreferences)().then(t=>{e&&(Ie(t.mode),Pe(t.forYouBlend))}),()=>{e=!1}},[]),(0,E.useEffect)(()=>{at.setValue(0),R.default.timing(at,{toValue:st.length>0?1:0,duration:360,useNativeDriver:!0}).start()},[st.length,at]);const Et=(0,E.useCallback)(e=>{const t=Se[e.userId];return{username:t?.username||e.username,userAvatar:t?.avatar||e.userAvatar,authorTags:(t?.tags&&t.tags.length>0?t.tags:e.authorTags)||[]}},[Se]),Lt=(0,E.useCallback)(async()=>{const[e,t]=await Promise.all([(0,f.getResolvedCachedUserProfile)(ne),(0,f.getSearchSignals)()]),o=e?.uid===ne&&e.friends||[],n=e?.uid===ne&&e.tags||[],l=[...t.hashtags||[],...t.terms||[]].slice(0,12);return Te(o),Le(n),ve(l),{nextFriendIds:o,nextViewerTags:n,nextRecentInterests:l}},[ne]);(0,E.useEffect)(()=>{ne||(ye(""),pe({}),Te([]),Le([]),ve([]),ce({}),se((0,h.getImmediateFeedPosts)().length>0?(0,h.getImmediateFeedPosts)():_),ge(0===(0,h.getImmediateFeedPosts)().length),fe(!1))},[ne]),(0,E.useEffect)(()=>{if(!ne||be===ne)return;ye(ne);(async()=>{await Lt();const e=(0,h.getImmediateFeedPosts)();e.length>0&&(se(e),ge(!1)),(0,f.getPostInteractions)().then(e=>{ce(e)});const t=await(0,h.hydrateFeedMemoryCache)();t.length>0&&(se(t),ge(!1));try{if((0,h.shouldRefreshFeed)()||0===t.length){const e=await(0,h.getPosts)();(0,E.startTransition)(()=>{se(e)})}}catch(e){console.error("Error fetching posts:",e)}finally{ge(!1)}})()},[ne,be,Lt]),(0,E.useEffect)(()=>{if(ne&&be===ne)return(0,p.subscribeToUserProfile)(ne,async e=>{const[t,o]=await Promise.all([(0,f.getSearchSignals)(),(0,h.hydrateFeedMemoryCache)()]),n=e?.uid===ne&&e.friends||[],l=e?.uid===ne&&e.tags||[],s=[...t.hashtags||[],...t.terms||[]].slice(0,12);Te(n),Le(l),ve(s),o.length>0&&(0,E.startTransition)(()=>{se(o)})})},[ne,be]),(0,E.useEffect)(()=>{if(ne&&be===ne)return(0,h.subscribeToFeedPosts)(e=>{(0,E.startTransition)(()=>{se(e)}),ge(!1),fe(!1)})},[ne,be]),(0,E.useEffect)(()=>{if("undefined"==typeof window)return;const e=e=>{const t=e.detail;t?.uid===s.auth.currentUser?.uid&&se(e=>e.map(e=>e.userId===t.uid?Object.assign({},e,{username:(0,b.isFallbackMemberName)({uid:t.uid,username:t.username,email:t.email})?e.username:t.username,userAvatar:t.avatar||e.userAvatar,authorTags:t.tags||e.authorTags}):e))};return window.addEventListener("blackbunny:profile-updated",e),()=>window.removeEventListener("blackbunny:profile-updated",e)},[]),(0,l.useScreenFocusEffect)(()=>{be!==ne||ue||(async()=>
5872{if((0,h.shouldRefreshFeed)()){fe(!0);try{await Lt();const e=await(0,h.getPosts)();e.length>0?(0,E.startTransition)(()=>{se(e)}):se([]),ce(await(0,f.getPostInteractions)())}catch(e){console.error("Error refreshing feed:",e)}finally{fe(!1)}}})()},[be,ne,ue,Lt]);const Rt=(0,E.useCallback)(async()=>{fe(!0);try{await Lt();const e=await(0,h.getPosts)();e.length>0?(0,E.startTransition)(()=>{se(e)}):se([]),ce(await(0,f.getPostInteractions)())}catch(e){console.error("Error manually refreshing feed:",e),L.default.alert("Error","Could not refresh the feed right now.")}finally{fe(!1)}},[Lt]),vt=(0,E.useCallback)(()=>{ie.push("/create")},[ie]),wt=(0,E.useCallback)(()=>{ie.push("/search")},[ie]),It=(0,E.useCallback)(()=>{ie.push("/videos")},[ie]);(0,E.useEffect)(()=>{const e=Array.from(new Set([...le.filter(e=>!e.id.startsWith("placeholder")&&!e.id.startsWith("temp_")).slice(0,X).map(e=>e.id),Ae||"",Je||""].filter(Boolean)));it.current=e,Object.entries(nt.current).forEach(([t,o])=>{e.includes(t)||(o(),delete nt.current[t])}),e.forEach(e=>{nt.current[e]||(nt.current[e]=(0,h.subscribeToPostReplies)(e,t=>{const o={replies:t};ce(t=>Object.assign({},t,{[e]:o})),(0,f.setPostInteractionRecord)(e,o)}))})},[Ae,Je,le]),(0,E.useEffect)(()=>()=>{Object.values(nt.current).forEach(e=>e()),nt.current={},it.current=[]},[]),(0,E.useEffect)(()=>{const e=le.filter(e=>e.userId&&!e.id.startsWith("placeholder"));if(0===e.length)return;const t=e.filter(e=>Ae===e.id||Je===e.id),o=e.slice(0,6),n=Array.from(new Map([...t,...o].map(e=>[e.userId,e])).values());let l=!1;return Promise.all(n.map(async e=>{const t=await(0,p.getUserProfile)(e.userId).catch(()=>null);return[e.userId,F(e.userId,t,e)]})).then(e=>{l||pe(t=>{const o=Object.assign({},t);return e.forEach(([e,t])=>{o[e]=t}),o})}),()=>{l=!0}},[Ae,Je,le]);const zt=async e=>{const t=s.auth.currentUser?.uid;if(!t)return void L.default.alert("Error","You must be logged in to send pies.");const o=le.find(t=>t.id===e);if(o){const n=o.pieUserIds?.includes(t)||!1,l=n?(o.pieUserIds||[]).filter(e=>e!==t):[...o.pieUserIds||[],t];se(t=>t.map(t=>t.id===e?Object.assign({},t,{pieUserIds:l,pieCount:Math.max(0,(t.pieCount||0)+(n?-1:1))}):t))}try{const o=await(0,h.togglePostPie)(e,t);se(t=>t.map(t=>t.id===e?o:t))}catch(e){console.error("Error pieing post:",e),L.default.alert("Sync warning","Pie updated locally, but cloud sync failed.")}},Pt=async e=>{if(ne){if(e&&e!==ne)try{xe.includes(e)?await(0,y.unfollowUser)(ne,e):await(0,y.followUser)(ne,e)}catch(e){console.error("Error updating follow state:",e),L.default.alert("Error",e instanceof Error?e.message:"Could not update follow state.")}}else L.default.alert("Error","You must be logged in to follow people.")},kt=async e=>{if(ne)try{ft.has(e.id)?await(0,y.unsavePostForUser)(ne,e.id):await(0,y.savePostForUser)(ne,{id:e.id,userId:e.userId,username:e.username,title:e.title,text:e.text,mediaUrl:e.mediaUrl,mediaType:e.mediaType,postKind:e.postKind})}catch(e){console.error("Error updating saved post state:",e),L.default.alert("Error",e instanceof Error?e.message:"Could not update saved post state.")}else L.default.alert("Error","You must be logged in to save posts.")},Yt=async e=>{if(ne)try{await(0,y.sharePostFromApp)(ne,{id:e.id,userId:e.userId,username:e.username,title:e.title,text:e.text,mediaUrl:e.mediaUrl,mediaType:e.mediaType,postKind:e.postKind}),"undefined"!=typeof navigator&&navigator.share||L.default.alert("Copied","Share text copied to your clipboard.")}catch(e){console.error("Error sharing post:",e),L.default.alert("Error",e instanceof Error?e.message:"Could not share this post.")}else L.default.alert("Error","You must be logged in to share posts.")},Ht=e=>{if(!e.userId||"placeholder"===e.userId)return;const t=Et(e);(0,x.setSelectedMemberContext)({uid:e.userId,username:t.username,avatar:t.userAvatar,tags:t.authorTags}),ie.push((0,x.getMemberProfilePath)(e.userId))},_t=()=>{const e=(0,u.resetFeedReplyComposerState)();Fe(e.activeReplyPostId),Ue(e.showReplyMediaToolsPostId),Ve(e.replyText),$e(e.replyMediaUrl),Ge(e.replyMediaType),Qe(e.replyUploading),ot(e.expandedReplyListPostId)},Xt=async e=>{if(!s.auth.currentUser)return void L.default.alert("Error","You must be logged in to reply.");
5872const[t,o]=await Promise.all([(0,p.getUserProfile)(s.auth.currentUser.uid).catch(()=>null),(0,f.getResolvedCachedUserProfile)(s.auth.currentUser.uid)]),n=(0,b.getMemberDisplayName)(t||o||{uid:s.auth.currentUser.uid,email:s.auth.currentUser.email||""});try{const t=await(0,h.createPostReply)(e.id,{text:Be,userId:s.auth.currentUser.uid,mediaUrl:Ne,mediaType:Ke,authorName:n});ce(o=>Object.assign({},o,{[e.id]:{replies:[t,...o[e.id]?.replies||[]].slice(0,25)}})),_t(),Ze(e.id),tt(e.id),ot(e.id)}catch(t){console.error("Error replying to post:",t);try{const t=await(0,f.addPostReply)(e.id,{text:Be,mediaUrl:Ne,mediaType:Ke,authorName:n});ce(o=>Object.assign({},o,{[e.id]:t})),_t(),Ze(e.id),tt(e.id),ot(e.id),L.default.alert("Offline reply","Reply saved locally while cloud sync was unavailable.")}catch(e){L.default.alert("Error",e.message||t.message||"Failed to save reply")}}},Dt=async()=>{if(!s.auth.currentUser)return void L.default.alert("Error","You must be logged in to add reply media.");const e=document.createElement("input");e.type="file",e.accept="image/*,video/*",e.onchange=async()=>{const t=e.files?.[0];if(t){Qe(!0);try{const e=await(0,S.uploadMediaFile)(t,"replies",s.auth.currentUser.uid);$e(e.url),Ge(e.mediaType)}catch(e){console.error("Error uploading reply media:",e),L.default.alert("Upload failed",e instanceof Error?e.message:"Could not upload reply media.")}finally{Qe(!1)}}},e.click()};return(0,Y.jsx)(v.default,{style:{flex:1},data:bt,keyExtractor:e=>e.id,decelerationRate:"normal",showsVerticalScrollIndicator:!1,keyboardDismissMode:"on-drag",keyboardShouldPersistTaps:"handled",renderItem:({item:e,index:t})=>{const l=Et(e),h=de[e.id]||{replies:[]},f=s.auth.currentUser?.uid||"",b=e.pieUserIds?.includes(f)||!1,y=rt===e.id,S=(0,c.buildFeedCommentThreadState)(h.replies,{isThreadOpen:et===e.id,isShowingAllReplies:y,visibleReplyCount:c.DEFAULT_VISIBLE_REPLY_COUNT}),p=[`${e.pieCount||0} pie${1===(e.pieCount||0)?"":"s"}`,`${h.replies.length} repl${1===h.replies.length?"y":"ies"}`,e.mediaUrl?"video"===e.mediaType?"video attached":"image attached":"text signal","event"===e.postKind?"event drop":null].filter(e=>Boolean(e)).slice(0,U),T=K({post:e,currentUserId:ne,friendIds:ht,viewerTags:Ee,recentInterests:Re,feedMode:we,feedBlend:ze,resolvedAuthorTags:l.authorTags||[]}),x="for-you"===we?T.join(" \u2022 "):"",O=!e.mediaUrl||t<2||Ae===e.id||Je===e.id,C=xe.includes(e.userId),E=ft.has(e.id);return(0,Y.jsx)(k.default,{style:{minHeight:void 0,backgroundColor:n.COLORS.background,justifyContent:"center",alignItems:"center",paddingHorizontal:J,paddingVertical:$?14:20},children:(0,Y.jsxs)(k.default,{style:{width:"100%",maxWidth:$?420:520,backgroundColor:"#070707",borderRadius:$?20:28,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",padding:Z,shadowColor:n.COLORS.accent,shadowOpacity:.08,shadowRadius:18,shadowOffset:{width:0,height:10}},children:[(0,Y.jsxs)(k.default,{style:{flexDirection:"row",alignItems:$?"flex-start":"center",justifyContent:"space-between",marginBottom:$?12:18},children:[(0,Y.jsxs)(w.default,{onPress:()=>Ht(e),style:{flexDirection:"row",alignItems:"center",flex:1,marginRight:12},children:[l.userAvatar?(0,Y.jsx)(o.RemoteImageAttachment,{uri:l.userAvatar,style:{width:$?38:46,height:$?38:46,borderRadius:$?19:23,marginRight:10},fallbackLabel:"USER"}):(0,Y.jsx)(k.default,{style:{width:$?38:46,height:$?38:46,borderRadius:$?19:23,backgroundColor:n.COLORS.accent,justifyContent:"center",alignItems:"center",marginRight:10},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.background}),children:l.username?.charAt(0).toUpperCase()||"U"})}),(0,Y.jsxs)(k.default,{style:{flex:1},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontWeight:"700",fontSize:$?14:16}),children:l.username}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.textSecondary,fontSize:12,marginTop:2}),children:D(e.createdAt)})]})]}),(0,Y.jsxs)(k.default,{style:{alignItems:"flex-end",gap:$?6:8},children:[(0,Y.jsx)(k.default,{style:{borderWidth:1,borderColor:"rgba(255,255,255,0.08)",borderRadius:999,paddingHorizontal:$?7:8,paddingVertical:$?4:5,backgroundColor:"#101010"},children:(0,Y.jsx)(I.default,{style:Object.assign({}
5872,n.TEXT_STYLES.bodyText,{fontSize:10,color:n.COLORS.accent,letterSpacing:1.2}),children:"placeholder"===e.userId?"SYNC":"event"===e.postKind?"EVENT":"LIVE"})}),"placeholder"!==e.userId&&e.userId!==ne?(0,Y.jsx)(w.default,{onPress:()=>{Pt(e.userId)},style:{borderRadius:999,paddingHorizontal:$?9:10,paddingVertical:$?6:7,borderWidth:1,borderColor:C?"rgba(212,175,55,0.24)":"rgba(255,255,255,0.08)",backgroundColor:C?"rgba(212,175,55,0.10)":"#111"},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:10,color:C?n.COLORS.gold:n.COLORS.textSecondary}),children:C?"FOLLOWING":"FOLLOW"})}):null]})]}),e.title?(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.subtitle,{fontSize:$?18:22,marginBottom:$?8:10}),children:e.title}):null,e.contentNote?(0,Y.jsx)(k.default,{style:{marginBottom:10,alignSelf:"flex-start",borderRadius:999,paddingHorizontal:$?10:12,paddingVertical:$?6:7,backgroundColor:"#101010",borderWidth:1,borderColor:"rgba(255,255,255,0.08)"},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.gold}),children:e.contentNote})}):null,x?(0,Y.jsx)(k.default,{style:{marginBottom:10,paddingHorizontal:2},children:(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.textSecondary}),children:["tuned for you: ",x]})}):null,p.length>0?(0,Y.jsx)(k.default,{style:{flexDirection:"row",flexWrap:"wrap",gap:$?6:8,marginBottom:$?12:14},children:p.map(t=>(0,Y.jsx)(k.default,{style:{borderRadius:999,paddingHorizontal:$?9:10,paddingVertical:$?5:6,backgroundColor:"#101010",borderWidth:1,borderColor:"rgba(255,255,255,0.08)"},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.textSecondary}),children:t})},`${e.id}-${t}`))}):null,"event"===e.postKind&&e.eventDetails?(0,Y.jsxs)(k.default,{style:{marginBottom:$?14:16,borderRadius:$?16:18,borderWidth:1,borderColor:"rgba(212,175,55,0.18)",backgroundColor:"rgba(212,175,55,0.08)",padding:$?12:14,gap:$?6:8},children:[(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:12,color:n.COLORS.gold}),children:[W(e.eventDetails.startsAt),e.eventDetails.endsAt?` to ${W(e.eventDetails.endsAt)}`:""]}),(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:13,color:n.COLORS.text}),children:["online"===e.eventDetails.locationMode?"Online":"hybrid"===e.eventDetails.locationMode?"Hybrid":"In person"," \u2022 ",e.eventDetails.locationSummary]}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:12,color:n.COLORS.textSecondary}),children:"request-only"===e.eventDetails.venueDisclosure?"Exact location stays private until approval.":"Only approximate location is shown publicly."}),e.eventDetails.hostName?(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:12,color:n.COLORS.textSecondary}),children:["Hosted by ",e.eventDetails.hostName]}):null,e.eventDetails.safetyNotes?(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:12,color:n.COLORS.textSecondary}),children:e.eventDetails.safetyNotes}):null,e.eventDetails.rsvpUrl?(0,Y.jsx)(w.default,{onPress:()=>{A(e.eventDetails?.rsvpUrl)},style:{alignSelf:"flex-start",borderRadius:999,paddingHorizontal:$?10:12,paddingVertical:$?7:8,backgroundColor:n.COLORS.accent},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:11,color:n.COLORS.background}),children:"RSVP"})}):null]}):null,(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:$?14:18,lineHeight:$?21:28,marginBottom:14}),children:e.text}),e.hashtags?.length||e.communityTags?.length||e.authorTags?.length?(0,Y.jsxs)(k.default,{style:{flexDirection:"row",flexWrap:"wrap",gap:$?6:8,marginBottom:14},children:[(e.hashtags||[]).slice(0,4).map(t=>(0,Y.jsx)(k.default,{style:{borderRadius:999,paddingHorizontal:$?9:10,paddingVertical:$?5:6,backgroundColor:"#111",borderWidth:1,borderColor:"rgba(255,255,255,0.08)"},children:(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.accent}),children:["#",t]})},`hash-${e.id}-${t}`)),(e.communityTags||[]).slice(0,4).map(t=>(0,Y.jsx)(k.default,{style:{borderRadius:999,paddingHorizontal:$?9:10,paddingVertical:$?5:6,backgroundColor:"rgba(212,175,55,0.10)",borderWidth:1,borderColor:"rgba(212,175,55,0.18)"},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.gold}),children:t})},`community-${e.id}-${t}`)),(l.authorTags||[]).slice(0,2).map(t=>(0,Y.jsx)(k.default,{style:{borderRadius:999,paddingHorizontal:$?9:10,paddingVertical:$?5:6,backgroundColor:"#0b0b0b",borderWidth:1,borderColor:"rgba(255,255,255,0.06)"},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.textSecondary}),children:t})},`tag-${e.id}-${t}`))]}):null,(0,Y.jsx)(o.MediaAttachment,{mediaUrl:e.mediaUrl,mediaType:e.mediaType,imageStyle:{width:"100%",height:te,borderRadius:$?16:22,marginBottom:$?14:18},videoContainerStyle:{width:"100%",height:re,borderRadius:$?16:22,marginBottom:$?14:18,overflow:"hidden"},active:O,inactiveLabel:"SCROLL TO LOAD"}),"placeholder"!==e.userId?(0,Y.jsxs)(k.default,{style:{flexDirection:"row",flexWrap:$?"wrap":"nowrap",gap:$?6:8,marginTop:2,borderRadius:$?14:16,borderWidth:1,borderColor:"rgba(255,255,255,0.06)",backgroundColor:"#090909",padding:$?6:8},children:[(0,Y.jsxs)(w.default,{onPress:()=>zt(e.id),style:{minWidth:$?74:96,minHeight:$?40:void 0,paddingVertical:$?8:10,paddingHorizontal:$?10:12,borderRadius:$?12:14,borderWidth:1,borderColor:b?n.COLORS.gold:"rgba(255,255,255,0.08)",backgroundColor:b?"rgba(212,175,55,0.12)":"#0d0d0d",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:6},children:[(0,Y.jsx)(j.Image,{source:H,style:{width:18,height:18,opacity:b?1:.88},contentFit:"contain"}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12,color:b?n.COLORS.gold:n.COLORS.text}),children:e.pieCount||0})]}),(0,Y.jsx)(w.default,{onPress:()=>{const t=(0,u.toggleFeedReplyComposer)({activeReplyPostId:Ae,showReplyMediaToolsPostId:Me,replyText:Be,replyMediaUrl:Ne,replyMediaType:Ke,replyUploading:qe,expandedReplyListPostId:rt},e.id);Fe(t.activeReplyPostId),Ue(t.showReplyMediaToolsPostId),Ve(t.replyText),$e(t.replyMediaUrl),Ge(t.replyMediaType),Qe(t.replyUploading),ot(t.expandedReplyListPostId)},style:{flex:1,minHeight:$?40:42,borderRadius:$?12:14,borderWidth:1,borderColor:Ae===e.id?"rgba(255,255,255,0.14)":"rgba(255,255,255,0.06)",backgroundColor:Ae===e.id?"rgba(255,255,255,0.06)":"transparent",alignItems:"center",justifyContent:"center",paddingHorizontal:$?8:10},children:(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:11,color:Ae===e.id?n.COLORS.text:n.COLORS.textSecondary}),children:["REPLY ",h.replies.length]})}),(0,Y.jsx)(w.default,{onPress:()=>{const t=(0,c.toggleCommentsPanel)({expandedCommentsPostId:Je,expandedCommentCardsPostId:et,expandedReplyListPostId:rt},e.id);Ze(t.expandedCommentsPostId),tt(t.expandedCommentCardsPostId),ot(t.expandedReplyListPostId)},style:{flex:1,minHeight:$?40:42,borderRadius:$?12:14,borderWidth:1,borderColor:Je===e.id?"rgba(225,6,0,0.16)":"rgba(255,255,255,0.06)",backgroundColor:Je===e.id?"rgba(225,6,0,0.06)":"transparent",alignItems:"center",justifyContent:"center",paddingHorizontal:$?8:10},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:11,color:Je===e.id?n.COLORS.accent:n.COLORS.textSecondary}),children:"COMMENTS"})}),(0,Y.jsx)(w.default,{onPress:()=>{kt(e)},style:{flex:1,minHeight:$?40:42,borderRadius:$?12:14,borderWidth:1,borderColor:E?"rgba(212,175,55,0.24)":"rgba(255,255,255,0.06)",backgroundColor:E?"rgba(212,175,55,0.10)":"transparent",alignItems:"center",justifyContent:"center",paddingHorizontal:$?8:10},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:11,color:E?n.COLORS.gold:n.COLORS.textSecondary}),children:E?"SAVED":"SAVE"})}),(0,Y.jsx)(w.default,{onPress:()=>{Yt(e)},style:{flex:1,minHeight:$?40:42,borderRadius:$?12:14,borderWidth:1,borderColor:"rgba(255,255,255,0.06)",backgroundColor:"transparent",alignItems:"center",justifyContent:"center",paddingHorizontal:$?8:10},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:11,color:n.COLORS.textSecondary}),children:"SHARE"})})]}):null,"placeholder"!==e.userId&&Ae===e.id?(0,Y.jsxs)(k.default,{style:{marginTop:8,borderRadius:$?14:16,borderWidth:1,borderColor:"rgba(255,255,255,0.06)",backgroundColor:"#090909",padding:$?9:12},children:[(0,Y.jsxs)(k.default,{style:{flexDirection:$?"column":"row",justifyContent:"space-between",alignItems:$?"stretch":"center",marginBottom:$?6:8,gap:$?6:12},children:[(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.textSecondary}),children:["Quick note back to ",e.username]}),(0,Y.jsx)(w.default,{onPress:()=>{const t=(0,u.toggleFeedReplyMediaTools)({activeReplyPostId:Ae,showReplyMediaToolsPostId:Me,replyText:Be,replyMediaUrl:Ne,replyMediaType:Ke,replyUploading:qe,expandedReplyListPostId:rt},e.id);Ue(t.showReplyMediaToolsPostId)},style:{minHeight:$?36:void 0,paddingHorizontal:9,paddingVertical:$?7:8,borderRadius:999,borderWidth:1,borderColor:Me===e.id?"rgba(255,255,255,0.14)":"rgba(255,255,255,0.06)",backgroundColor:Me===e.id?"rgba(255,255,255,0.05)":"transparent",justifyContent:"center",alignSelf:$?"flex-start":"auto"},children:(0,Y.jsx)(I.default,{style:Object.assign({}
5872,n.TEXT_STYLES.button,{fontSize:10,color:Me===e.id?n.COLORS.text:n.COLORS.textSecondary}),children:Me===e.id||Ne?"HIDE MEDIA":"ADD MEDIA"})})]}),(0,Y.jsx)(z.default,{value:Be,onChangeText:lt,placeholder:`Write back to ${e.username}...`,placeholderTextColor:"#666",multiline:!0,maxLength:300,style:{borderWidth:1,borderColor:"rgba(255,255,255,0.08)",borderRadius:$?12:14,backgroundColor:"#101010",color:n.COLORS.text,minHeight:$?64:72,padding:$?10:12,textAlignVertical:"top",fontFamily:n.TEXT_STYLES.body.fontFamily,fontSize:n.TEXT_STYLES.bodyText.fontSize}}),Me===e.id||Ne?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(k.default,{style:{flexDirection:$?"column":"row",gap:8,marginTop:8},children:[(0,Y.jsx)(w.default,{onPress:Dt,disabled:qe,style:{minHeight:$?40:void 0,paddingHorizontal:10,paddingVertical:9,borderRadius:11,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#101010",justifyContent:"center",alignItems:"center"},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:11}),children:qe?"Uploading...":"Upload GIF/Image"})}),(0,Y.jsx)(w.default,{onPress:()=>Ge(e=>"image"===e?"video":"image"),style:{minHeight:$?40:void 0,paddingHorizontal:10,paddingVertical:9,borderRadius:11,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#101010",justifyContent:"center",alignItems:"center"},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:11}),children:"image"===Ke?"Image/GIF":"Video"})})]}),(0,Y.jsx)(z.default,{value:Ne,onChangeText:$e,placeholder:"Or paste a moving image or clip",placeholderTextColor:"#666",autoCapitalize:"none",autoCorrect:!1,style:{borderWidth:1,borderColor:"rgba(255,255,255,0.08)",borderRadius:12,backgroundColor:"#101010",color:n.COLORS.text,marginTop:8,padding:12,fontFamily:n.TEXT_STYLES.body.fontFamily,fontSize:13}})]}):null,Ne?(0,Y.jsx)(k.default,{style:{marginTop:12},children:(0,Y.jsx)(o.MediaAttachment,{mediaUrl:Ne,mediaType:Ke,imageStyle:{width:"100%",height:oe,borderRadius:$?14:16},videoContainerStyle:{width:"100%",height:ae,borderRadius:$?14:16,overflow:"hidden"},videoPreload:"metadata"})}):null,(0,Y.jsxs)(k.default,{style:{flexDirection:$?"column":"row",gap:8,marginTop:10},children:[(0,Y.jsx)(w.default,{onPress:()=>Xt(e),disabled:qe||!Be.trim()&&!Ne.trim(),style:{flex:1,borderRadius:$?12:14,backgroundColor:qe||!Be.trim()&&!Ne.trim()?"#232323":n.COLORS.accent,paddingVertical:$?10:12,alignItems:"center",justifyContent:"center",minHeight:$?42:void 0},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12,color:qe||!Be.trim()&&!Ne.trim()?n.COLORS.textSecondary:n.COLORS.background}),children:"Send Reply"})}),(0,Y.jsx)(w.default,{onPress:_t,style:{paddingHorizontal:$?14:16,borderRadius:$?12:14,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",justifyContent:"center",alignItems:"center",minHeight:$?42:void 0},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12}),children:"Cancel"})})]})]}):null,"placeholder"!==e.userId&&Je===e.id?(0,Y.jsxs)(k.default,{style:{marginTop:$?14:18,gap:$?8:10},children:[(0,Y.jsxs)(w.default,{onPress:()=>{const t=(0,c.toggleCommentCards)({expandedCommentsPostId:Je,expandedCommentCardsPostId:et,expandedReplyListPostId:rt},e.id);Ze(t.expandedCommentsPostId),tt(t.expandedCommentCardsPostId),ot(t.expandedReplyListPostId)},style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderRadius:$?12:14,borderWidth:1,borderColor:et===e.id?"rgba(255,255,255,0.1)":"rgba(255,255,255,0.06)",backgroundColor:et===e.id?"#0e0e0e":"#0b0b0b",paddingHorizontal:$?10:12,paddingVertical:10,minHeight:$?42:void 0},children:[(0,Y.jsx)(k.default,{style:{flex:1,marginRight:10},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:12,color:et===e.id?n.COLORS.text:n.COLORS.textSecondary}),children:S.summaryLabel})}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:10,color:et===e.id?n.COLORS.text:n.COLORS.textSecondary}),children:S.threadToggleLabel})]}),S.showEmptyState?(0,Y.jsx)(k.default,{style:{borderRadius:$?12:14,borderWidth:1,borderColor:"rgba(255,255,255,0.06)",backgroundColor:"#0c0c0c",padding:$?10:12},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:$?12:13,color:n.COLORS.textSecondary,lineHeight:$?18:void 0}),children:"No comments yet. Be the first echo."})}):null,h.replies.length>0&&et===e.id?S.visibleReplies.map(l=>(0,Y.jsxs)(k.default,{style:{borderRadius:$?12:14,borderWidth:1,borderColor:"rgba(255,255,255,0.06)",backgroundColor:"#0c0c0c",padding:$?9:12},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:12,color:n.COLORS.accent,marginBottom:4}),children:l.authorName}),l.text?(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:$?12:13,lineHeight:$?18:void 0}),children:l.text}):null,l.mediaUrl?(0,Y.jsx)(k.default,{style:{marginTop:l.text?10:0},children:(0,Y.jsx)(o.MediaAttachment,{mediaUrl:l.mediaUrl,mediaType:l.mediaType,imageStyle:{width:"100%",height:$?136:160,borderRadius:12},videoContainerStyle:{width:"100%",height:$?172:200,borderRadius:12,overflow:"hidden"},active:t<2||Je===e.id,inactiveLabel:"OPEN TO LOAD",videoPreload:"none"})}):null]},l.id)):null,S.showShowMore?(0,Y.jsx)(w.default,{onPress:()=>ot(e.id),style:{borderRadius:$?12:14,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#111",paddingVertical:$?10:12,minHeight:$?40:void 0,alignItems:"center",justifyContent:"center"},children:(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:11}),children:["SHOW ",S.remainingReplyCount," MORE"]})}):null,S.showShowLess?(0,Y.jsx)(w.default,{onPress:()=>ot(null),style:{borderRadius:$?12:14,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#111",paddingVertical:$?10:12,minHeight:$?40:void 0,alignItems:"center",justifyContent:"center"},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:11}),children:"SHOW LESS"})}):null]}):null]})})},initialNumToRender:3,maxToRenderPerBatch:3,updateCellsBatchingPerio
5872d:50,windowSize:5,removeClippedSubviews:!1,refreshing:he,onRefresh:()=>{Rt()},contentContainerStyle:{paddingBottom:Q+($?12:0),paddingTop:Math.max(6,.3*q)},ListHeaderComponent:(0,Y.jsxs)(k.default,{style:{paddingHorizontal:J,paddingTop:Math.max(10,q),paddingBottom:6},children:[0===bt.length&&(ue||he)?(0,Y.jsx)(k.default,{style:{marginBottom:12,borderRadius:18,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#090909"},children:(0,Y.jsx)(t.LoadingState,{compact:!0,accentLabel:he?"REFRESH":"FEED",title:he?"Refreshing the room":"Loading your feed",subtitle:he?"Shuffling fresh voices back to the front.":"Showing cache first, then pulling the latest signal."})}):null,(0,Y.jsxs)(k.default,{style:{borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#090909",borderRadius:18,paddingHorizontal:ee,paddingVertical:$?13:14,flexDirection:$?"column":"row",alignItems:$?"flex-start":"center",justifyContent:"space-between"},children:[(0,Y.jsxs)(k.default,{style:{flex:1,paddingRight:$?0:12,marginBottom:$?12:0,width:"100%"},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.accent,fontSize:11,letterSpacing:1.4,marginBottom:4}),children:"LIVE MIX"}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.textSecondary,fontSize:12}),children:he?"Pulling new voices forward...":`${yt} \u2022 ${bt.filter(e=>"placeholder"!==e.userId).length} posts in rotation${(0,h.getFeedLastLoadedAt)()?` \u2022 synced ${D((0,h.getFeedLastLoadedAt)())}`:""}`})]}),(0,Y.jsx)(w.default,{onPress:()=>{Rt()},style:{borderRadius:999,paddingHorizontal:14,paddingVertical:10,backgroundColor:he?"#1f1f1f":n.COLORS.accent,alignSelf:$?"stretch":"auto",minHeight:$?46:void 0,minWidth:$?void 0:104,alignItems:"center",justifyContent:"center"},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12,color:he?n.COLORS.textSecondary:n.COLORS.background}),children:he?"SYNCING":"REFRESH"})})]}),(0,Y.jsxs)(w.default,{onPress:()=>Ye(e=>!e),style:{marginTop:12,borderRadius:16,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#0c0c0c",paddingHorizontal:14,paddingVertical:12,minHeight:$?46:void 0,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,Y.jsxs)(k.default,{style:{flex:1},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.gold,fontSize:10,letterSpacing:1.2,marginBottom:4}),children:"FEED DIAL"}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.textSecondary,fontSize:12}),children:St})]}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.textSecondary}),children:ke?"HIDE":"TUNE"})]}),ke?(0,Y.jsxs)(k.default,{style:{marginTop:12,gap:12},children:[(0,Y.jsx)(k.default,{style:{flexDirection:"row",flexWrap:"wrap",gap:8},children:[{key:"for-you",label:"FOR YOU"},{key:"newest",label:"NEWEST"},{key:"following",label:"FOLLOWING"}].map(e=>{const t=we===e.key;return(0,Y.jsx)(w.default,{onPress:()=>Ct(e.key),style:{borderRadius:999,paddingHorizontal:12,paddingVertical:8,minHeight:$?40:void 0,backgroundColor:t?"for-you"===e.key?n.COLORS.accent:"newest"===e.key?"rgba(212,175,55,0.14)":"rgba(255,255,255,0.12)":"#101010",borderWidth:1,borderColor:t?"for-you"===e.key?n.COLORS.accent:"newest"===e.key?"rgba(212,175,55,0.24)":"rgba(255,255,255,0.18)":"rgba(255,255,255,0.08)",justifyContent:"center"},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:t?"newest"===e.key?n.COLORS.gold:"following"===e.key?n.COLORS.text:n.COLORS.background:n.COLORS.textSecondary}),children:e.label})},e.key)})}),"for-you"===we?(0,Y.jsxs)(k.default,{children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.textSecondary,fontSize:11,marginBottom:8}),children:"Tune the mix without leaving the algorithm."}),(0,Y.jsx)(k.default,{style:{flexDirection:"row",flexWrap:"wrap",gap:8},children:Object.entries(G).map(([e,t])=>{const o=ze===e;return(0,Y.jsx)(w.default,{onPress:()=>jt(e),style:{borderRadius:999,paddingHorizontal:12,paddingVertical:8,minHeight:$?40:void 0,backgroundColor:o?t.activeBackgroun
5872dColor:"#101010",borderWidth:1,borderColor:o?t.activeBorderColor:"rgba(255,255,255,0.08)",justifyContent:"center"},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:o?t.activeTextColor:n.COLORS.textSecondary}),children:t.label})},e)})})]}):null]}):null,(0,Y.jsxs)(k.default,{style:{flexDirection:"row",flexWrap:"wrap",gap:8,marginTop:12,marginBottom:4},children:[(0,Y.jsx)(k.default,{style:{borderRadius:999,paddingHorizontal:10,paddingVertical:6,backgroundColor:"#101010",borderWidth:1,borderColor:"rgba(255,255,255,0.08)"},children:(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.textSecondary}),children:[bt.filter(e=>"placeholder"!==e.userId).length," live posts"]})}),"for-you"===we?(0,Y.jsx)(k.default,{style:{borderRadius:999,paddingHorizontal:10,paddingVertical:6,backgroundColor:gt.activeBackgroundColor,borderWidth:1,borderColor:gt.activeBorderColor},children:(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:gt.activeTextColor}),children:[gt.label.toLowerCase()," mix"]})}):null,pt?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(k.default,{style:{borderRadius:999,paddingHorizontal:10,paddingVertical:6,backgroundColor:"rgba(212,175,55,0.10)",borderWidth:1,borderColor:"rgba(212,175,55,0.18)"},children:(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.gold}),children:[dt.length," upcoming events"]})}),(0,Y.jsx)(k.default,{style:{borderRadius:999,paddingHorizontal:10,paddingVertical:6,backgroundColor:"rgba(225,6,0,0.08)",borderWidth:1,borderColor:"rgba(225,6,0,0.18)"},children:(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.accent}),children:[st.length," active boosts"]})}),(0,Y.jsx)(k.default,{style:{borderRadius:999,paddingHorizontal:10,paddingVertical:6,backgroundColor:"#101010",borderWidth:1,borderColor:"rgba(255,255,255,0.08)"},children:(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.textSecondary}),children:[ct.length," creator videos"]})})]}):null]}),$&&!ke&&xt?(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.textSecondary,fontSize:11,marginTop:2}),children:xt}):null,(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.textSecondary,fontSize:12,marginTop:12}),children:"Tap a creator card to open the full profile."}),$&&mt?(0,Y.jsxs)(w.default,{onPress:()=>Xe(e=>!e),style:{marginTop:12,borderRadius:16,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#0c0c0c",paddingHorizontal:14,paddingVertical:12,minHeight:$?46:void 0,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,Y.jsxs)(k.default,{style:{flex:1},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.gold,fontSize:10,letterSpacing:1.2,marginBottom:4}),children:"SIGNAL BOARD"}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.textSecondary,fontSize:12}),children:xt||"Ads, events, and creator videos are waiting."})]}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.textSecondary}),children:He?"HIDE":"OPEN"})]}):null,st.length>0&&Tt?(0,Y.jsxs)(R.default.View,{style:{opacity:at,marginTop:12,gap:10},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.gold,fontSize:11,letterSpacing:1.4}),children:"ACTIVE ADS"}),st.slice(0,$?B:st.length).map(e=>(0,Y.jsxs)(k.default,{style:{borderRadius:18,borderWidth:1,borderColor:"rgba(212,175,55,0.16)",backgroundColor:"#0b0a08",padding:$?14:16},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.gold,fontSize:10,marginBottom:4}),children:"SPONSORED \u2022 $2 / MONTH"}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.subtitle,{fontSize:$?18:20,marginBottom:6}),children:e.title||e.advertisementDetails?.businessName}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:13,color:n.COLORS.textSecondary,marginBottom:10}),children:e.advertisementDetails?.bannerLine||e.text}),(0,Y.jsxs)(k.default,{style:{flexDirection:$?"column":"row",alignItems:$?"stretch":"center",justifyContent:"space-between",gap:12},children:[(0,Y.jsxs)(k.default,{style:{flex:1},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:12}),children:e.advertisementDetails?.businessName}),e.advertisementDetails?.audienceTags?.length?(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.textSecondary,marginTop:2}),children:e.advertisementDetails.audienceTags.slice(0,3).map(e=>`#${e}`).join(" ")}):null]}),(0,Y.jsx)(w.default,{onPress:()=>{A(e.advertisementDetails?.ctaUrl)},style:{borderRadius:999,paddingHorizontal:14,paddingVertical:10,minHeight:$?44:void 0,backgroundColor:n.COLORS.accent,justifyContent:"center",alignItems:"center",alignSelf:$?"stretch":"auto"},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:11,color:n.COLORS.background}),children:e.advertisementDetails?.ctaLabel||"Open"})})]})]},e.id))]}):null,dt.length>0&&Tt?(0,Y.jsxs)(k.default,{style:{marginTop:16,gap:10},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.accent,fontSize:11,letterSpacing:1.4}),children:"UPCOMING EVENTS"}),dt.slice(0,$?B:dt.length).map(e=>(0,Y.jsxs)(k.default,{style:{borderRadius:18,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#090909",padding:$?14:16},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.gold,marginBottom:4}),children:W(e.eventDetails?.startsAt)}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:16,fontWeight:"700",marginBottom:4}),children:e.title||"Untitled event"}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:12,color:n.COLORS.textSecondary,marginBottom:8}),children:e.eventDetails?.locationSummary}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:12,color:n.COLORS.textSecondary}),children:"request-only"===e.eventDetails?.venueDisclosure?"Private location flow enabled":"Approximate public location only"})]},e.id))]}):null,ct.length>0&&Tt?(0,Y.jsxs)(k.default,{style:{marginTop:16,gap:10},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.gold,fontSize:11,letterSpacing:1.4}),children:"CREATOR VIDEOS"}),ct.slice(0,$?B:2).map(e=>(0,Y.jsxs)(w.default,{onPress:It,style:{borderRadius:18,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#090909",padding:$?14:16,minHeight:$?132:void 0},children:[(0,Y.jsxs)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:11,color:n.COLORS.accent,marginBottom:4}),children:[e.username," \u2022 ",D(e.createdAt)]}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:16,fontWeight:"700",marginBottom:4}),children:e.title||"Untitled video"}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{fontSize:12,color:n.COLORS.textSecondary}),numberOfLines:2,children:e.videoDetails?.creatorNote||e.text||"Open the creator lounge to watch the latest upload."})]},e.id))]}):null]}),ListFooterComponent:bt.length>0?(0,Y.jsx)(k.default,{style:{paddingHorizontal:J,paddingTop:8,paddingBottom:16},children:(0,Y.jsxs)(k.default,{style:{borderRadius:18,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#090909",paddingHorizontal:ee,paddingVertical:$?13:14},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.gold,fontSize:11,letterSpacing:1.6,marginBottom:4}),children:"FEED STATUS"}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.textSecondary,fontSize:12}),children:he?"Refreshing the room now.":`You are caught up in ${"for-you"===we?"For You":"newest"===we?"Newest":"Following"}. Pull to refresh anytime, or switch modes if the flow feels off.`}),he?null:$?(0,Y.jsxs)(k.default,{style:{gap:M,marginTop:12},children:[(0,Y.jsx)(w.default,{onPress:vt,style:{minHeight:44,borderRadius:14,backgroundColor:n.COLORS.accent,alignItems:"center",justifyContent:"center",paddingHorizontal:14},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12,color:n.COLORS.background}),children:"CAST SOMETHING"})}),(0,Y.jsx)(w.default,{onPress:()=>We(e=>!e),style:{minHeight:42,borderRadius:14,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#0f0f0f",alignItems:"center",justifyContent:"center",paddingHorizontal:14},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:11,color:n.COLORS.textSecondary}),children:De?"HIDE EXTRA PATHS":"OPEN EXTRA PATHS"})}),De?(0,Y.jsxs)(k.default,{style:{gap:M},children:[(0,Y.jsx)(w.default,{onPress:wt,style:{minHeight:44,borderRadius:14,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#111",alignItems:"center",justifyContent:"center",paddingHorizontal:14},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12}),children:"SCAN PEOPLE"})}),(0,Y.jsx)(w.default,{onPress:()=>ie.push('/activity'),style:{minHeight:44,borderRadius:14,borderWidth:1,borderColor:'rgba(212,175,55,0.18)',backgroundColor:'rgba(212,175,55,0.08)',alignItems:'center',justifyContent:'center',paddingHorizontal:14},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12,color:n.COLORS.gold}),children:"OPEN ACTIVITY DECK"})}),(0,Y.jsx)(w.default,{onPress:It,style:{minHeight:44,borderRadius:14,borderWidth:1,borderColor:"rgba(212,175,55,0.18)",backgroundColor:"rgba(212,175,55,0.08)",alignItems:"center",justifyContent:"center",paddingHorizontal:14},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12,color:n.COLORS.gold}),children:"WATCH VIDEOS"})})]}):null]}):(0,Y.jsxs)(k.default,{style:{flexDirection:"row",gap:M,marginTop:12},children:[(0,Y.jsx)(w.default,{onPress:vt,style:{flex:1,minHeight:44,borderRadius:14,backgroundColor:n.COLORS.accent,alignItems:"center",justifyContent:"center",paddingHorizontal:14},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12,color:n.COLORS.background}),children:"CAST SOMETHING"})}),(0,Y.jsx)(w.default,{onPress:wt,style:{flex:1,minHeight:44,borderRadius:14,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#111",alignItems:"center",justifyContent:"center",paddingHorizontal:14},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12}),children:"SCAN PEOPLE"})}),(0,Y.jsx)(w.default,{onPress:()=>ie.push('/activity'),style:{flex:1,minHeight:44,borderRadius:14,borderWidth:1,borderColor:'rgba(212,175,55,0.18)',backgroundColor:'rgba(212,175,55,0.08)',alignItems:'center',justifyContent:'center',paddingHorizontal:14},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12,color:n.COLORS.gold}),children:"OPEN ACTIVITY"})}),(0,Y.jsx)(w.default,{onPress:It,style:{flex:1,minHeight:44,borderRadius:14,borderWidth:1,borderColor:"rgba(212,175,55,0.18)",backgroundColor:"rgba(212,175,55,0.08)",alignItems:"center",justifyContent:"center",paddingHorizontal:14},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12,color:n.COLORS.gold}),children:"WATCH VIDEOS"})})]})]})}):null,ListEmptyComponent:ue?null:(0,Y.jsxs)(k.default,{style:{paddingHorizontal:28,paddingVertical:40,alignItems:"center"},children:[(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.subtitle,{fontSize:22,marginBottom:10}),children:"Your feed is quiet"}),(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.bodyText,{color:n.COLORS.textSecondary,textAlign:"center"}),children:Ot}),(0,Y.jsxs)(k.default,{style:{width:"100%",marginTop:18,gap:M},children:[(0,Y.jsx)(w.default,{onPress:vt,style:{minHeight:48,borderRadius:14,backgroundColor:n.COLORS.accent,alignItems:"center",justifyContent:"center",paddingHorizontal:16},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12,color:n.COLORS.background}),children:"CREATE THE FIRST SIGNAL"})}),(0,Y.jsx)(w.default,{onPress:wt,style:{minHeight:48,borderRadius:14,borderWidth:1,borderColor:"rgba(255,255,255,0.08)",backgroundColor:"#111",alignItems:"center",justifyContent:"center",paddingHorizontal:16},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12}),children:"FIND PEOPLE TO FOLLOW"})}),(0,Y.jsx)(w.default,{onPress:It,style:{minHeight:48,borderRadius:14,borderWidth:1,borderColor:"rgba(212,175,55,0.18)",backgroundColor:"rgba(212,175,55,0.08)",alignItems:"center",justifyContent:"center",paddingHorizontal:16},children:(0,Y.jsx)(I.default,{style:Object.assign({},n.TEXT_STYLES.button,{fontSize:12,color:n.COLORS.gold}),children:"OPEN VIDEO LOUNGE"})})]})]})})}},332,[232,333,233,365,309,754,755,756,319,326,757,758,318,329,759,489,760,334,34,611,234,237,616,95,215,229,331,230,199,175,761]);
5873__d(function(g,r,i,a,m,_e,d){"use strict";
5873function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.RemoteImageAttachment=s,_e.MediaAttachment=function({mediaUrl:e,mediaType:u,imageStyle:f,videoContainerStyle:b,fallbackLabel:y="VIDEO",active:S=!0,inactiveLabel:O="MEDIA READY",videoPreload:h="none"}){if(!e)return null;const j="video"===u?b:f;if(!S)return(0,c.jsx)(n.default,{style:[{backgroundColor:o.COLORS.dark,justifyContent:"center",alignItems:"center",borderWidth:1,borderColor:"rgba(255,255,255,0.08)"},j],children:(0,c.jsx)(l.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{color:o.COLORS.textSecondary,fontSize:12}),children:O})});if("image"===u)return(0,c.jsx)(s,{uri:e,style:f,fallbackLabel:"IMAGE"});if("video"===u)return(0,c.jsx)(n.default,{style:b,children:t.default.createElement("video",{src:e,controls:!0,playsInline:!0,preload:h,style:{width:"100%",height:"100%",borderRadius:22,backgroundColor:o.COLORS.dark}})});return null};r(d[0]);var t=e(r(d[1]));r(d[2]);var l=e(r(d[3])),n=e(r(d[4])),o=r(d[5]),c=r(d[6]);function s({uri:e,style:s,fallbackLabel:u="MEDIA",loading:f="lazy",fetchPriority:b="auto"}){const[y,S]=t.default.useState(!1);return t.default.useEffect(()=>{S(!1)},[e]),!e||y?(0,c.jsx)(n.default,{style:[{backgroundColor:o.COLORS.dark,justifyContent:"center",alignItems:"center",borderWidth:1,borderColor:"rgba(255,255,255,0.08)"},s],children:(0,c.jsx)(l.default,{style:Object.assign({},o.TEXT_STYLES.bodyText,{color:o.COLORS.textSecondary,fontSize:12}),children:u})}):t.default.createElement("img",{src:e,alt:u,onError:()=>S(!0),style:Object.assign({display:"block",objectFit:"cover",objectPosition:"center",imageRendering:"auto"},s),loading:f,fetchPriority:b,decoding:"async",draggable:!1})}},333,[334,34,95,229,199,233,175]);
5874__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return n.Image}}),Object.defineProperty(e,"ImageBackground",{enumerable:!0,get:function(){return u.ImageBackground}}),Object.defineProperty(e,"useImage",{enumerable:!0,get:function(){return c.useImage}});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]),u=r(d[2]),c=r(d[3])},334,[335,336,363,364]);
5875__d(function(g,r,i,a,m,e,d){},335,[]);
5876__d(function(g,r,i,a,m,_e,d){"use strict";const e=["style","source","placeholder","contentFit","contentPosition","transition","fadeDuration","resizeMode","defaultSource","loadingIndicatorSource"],t=["resizeMode"];function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Image",{enumerable:!0,get:function(){return R}});var c=n(r(d[0])),s=r(d[1]),o=n(r(d[2])),u=n(r(d[3])),l=n(r(d[4])),f=n(r(d[5])),h=r(d[6]),y=r(d[7]),p=r(d[8]);let w=!1,A=!1;class R extends o.default.PureComponent{constructor(e){super(e),this.nativeViewRef=(0,s.createSnapshotFriendlyRef)(),this.containerViewRef=(0,s.createSnapshotFriendlyRef)()}getAnimatableRef=()=>this.containerViewRef.current;static Image=f.default.Image;static async prefetch(e,t){let n,c='memory-disk';switch(typeof t){case'string':c=t;break;case'object':c=t.cachePolicy??c,n=t.headers}return f.default.prefetch(Array.isArray(e)?e:[e],c,n)}static async clearMemoryCache(){return await f.default.clearMemoryCache()}static async clearDiskCache(){return await f.default.clearDiskCache()}static async getCachePathAsync(e){return await f.default.getCachePathAsync(e)}static async generateBlurhashAsync(e,t){return f.default.generateBlurhashAsync(e,t)}static async generateThumbhashAsync(e){return f.default.generateThumbhashAsync(e)}async startAnimating(){await(this.nativeViewRef.current?.startAnimating())}async stopAnimating(){await(this.nativeViewRef.current?.stopAnimating())}async lockResourceAsync(){await(this.nativeViewRef.current?.lockResourceAsync())}async unlockResourceAsync(){await(this.nativeViewRef.current?.unlockResourceAsync())}async reloadAsync(){await(this.nativeViewRef.current?.reloadAsync())}static async loadAsync(e,t){const n=(0,y.resolveSource)(e);return await f.default.loadAsync(n,t)}render(){const n=this.props,{style:s,source:o,placeholder:f,contentFit:R,contentPosition:v,transition:V,fadeDuration:S,resizeMode:b,defaultSource:P,loadingIndicatorSource:k}=n,C=(0,c.default)(n,e),I=u.default.flatten(s)||{},{resizeMode:M}=I,F=(0,c.default)(I,t),_=b??M;return!P&&!k||w||(console.warn('[expo-image]: `defaultSource` and `loadingIndicatorSource` props are deprecated, use `placeholder` instead'),w=!0),C.children&&!A&&(console.warn('The <Image> component does not support children. If you want to render content on top of the image, consider using the <ImageBackgroun
5876d> component or absolute positioning.'),A=!0),(0,p.jsx)(l.default,Object.assign({},C,{style:F,source:(0,y.resolveSources)(o),placeholder:(0,y.resolveSources)(f??P??k),contentFit:(0,h.resolveContentFit)(R,_),contentPosition:(0,h.resolveContentPosition)(v),transition:(0,h.resolveTransition)(V,S),nativeViewRef:this.nativeViewRef,containerViewRef:this.containerViewRef}))}}},336,[129,99,34,42,337,361,346,342,175]);
5877__d(function(g,r,i,a,m,_e,d){"use strict";const e=["source","placeholder","contentFit","contentPosition","placeholderContentFit","cachePolicy","onLoad","transition","onError","responsivePolicy","onLoadEnd","onDisplay","priority","blurRadius","recyclingKey","style","nativeViewRef","accessibilityLabel","alt","tintColor","containerViewRef"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return j}});var o=t(r(d[0]));r(d[1]);var n=t(r(d[2])),l=t(r(d[3])),c=t(r(d[4])),s=t(r(d[5])),u=t(r(d[6])),f=r(d[7]);function y(e){return t=>{const o=t.target;e?.({source:{url:o.currentSrc,width:o.naturalWidth,height:o.naturalHeight,mediaType:null},cacheType:'none'})}}function h(e){return({source:t})=>{e?.({error:`Failed to load image from url: ${t?.uri}`})}}function p(e,t){e?.style.setProperty('--expo-image-width',`${t.width}px`),e?.style.setProperty('--expo-image-height',`${t.height}px`)}function b(e){return'flip-from-bottom'===e?.effect||'flip-from-top'===e?.effect||'flip-from-left'===e?.effect||'flip-from-right'===e?.effect}function P(e,t){const o=e&&'uri'in e&&e.uri||'';return t?[t,o].join('-'):o}function j(t){let{source:s,placeholder:j,contentFit:x,contentPosition:v,placeholderContentFit:F,cachePolicy:w,onLoad:L,transition:C,onError:E,responsivePolicy:R,onLoadEnd:_,onDisplay:O,priority:$,blurRadius:M,recyclingKey:S,style:T,nativeViewRef:V,accessibilityLabel:D,alt:K,tintColor:A,containerViewRef:N}=t,H=(0,o.default)(t,e);const W=F||'scale-down',k={objectFit:F||x},q=(0,u.default)(s,R,N,b(C)?p:null),z=j?.[0],B=P(z,S),G=z?.uri?[B,({onAnimationFinished:e})=>(t,o)=>(0,f.jsx)(c.default,{ref:V,source:z,style:Object.assign({objectFit:W},M?{filter:`blur(${M}px)`}:{},o),className:t,events:{onTransitionEnd:[e]},contentPosition:{left:'50%',top:'50%'},hashPlaceholderContentPosition:v,hashPlaceholderStyle:k,accessibilityLabel:D??K,cachePolicy:w,priority:$,tintColor:A})]:null,I=[P(q??z,S),({onAnimationFinished:e,onReady:t,onMount:o,onError:n})=>(l,s)=>(0,f.jsx)(c.default,{ref:V,source:q||z,events:{onError:[h(E),_,n],onLoad:[y(L),_,t],onMount:[o],onTransitionEnd:[e],onDisplay:[O]},style:Object.assign({objectFit:q?x:W},M?{filter:`blur(${M}px)`}:{},s),className:l,cachePolicy:w,priority:$,contentPosition:q?v:{top:'50%',left:'50%'},hashPlaceholderContentPosition:v,hashPlaceholderStyle:k,accessibilityLabel:D,tintColor:A})];return(0,f.jsx)(n.default,Object.assign({ref:N,dataSet:{expoimage:!0},style:[{overflow:'hidden'},T]},H,{children:(0,f.jsx)(l.default,{transition:C,recyclingKey:S,initial:G,children:I})}))}(0,s.default)()},337,[129,34,199,338,339,359,360,175]);
5878__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}}),_e.getAnimatorFromTransition=c;var t,n=r(d[0]),s=(t=n)&&t.__esModule?t:{default:t},e=r(d[1]);const o=['cross-dissolve','flip-from-left','flip-from-right','flip-from-top','flip-from-bottom'];function u(t,n){return s.default.useMemo(()=>{if(!t)return null;const[s,e]=t;return{animationKey:s,persistedElement:e,status:n||'mounted'}},[t?.[0]])}function l(t,n){return t?.includes('flip')?n?.includes('ease')?'ease-in-out':'linear':n||null}function c(t){if(!t?.duration)return null;const n=(s=t.effect,o.includes(s)?s:'cross-dissolve');var s;if(!n)return{startingClass:'',animateInClass:'',animateOutClass:'',containerClass:'',timingFunction:'linear',animationClass:'',duration:0};const e=l(n,t.timing),u=`image-timing-${e}`;return{startingClass:`${n}-start`,animateInClass:[n,'transitioning',`${n}-active`,u].join(' '),animateOutClass:[n,`${n}-end`,u].join(' '),containerClass:`${n}-container`,timingFunction:e,animationClass:n,duration:t?.duration||0}}function f({children:t,initial:n,transition:o,recyclingKey:l}){const f=c(o),y=u(n,'active'),[j,p]=s.default.useState(y?[y]:[]),[C,O]=s.default.useState(l??'');C!==(l??'')&&(O(l??''),p(y?[y]:[]));const b=t=>{p(n=>n.filter(n=>!!t&&n.animationKey!==t||'in'===n.status||'active'===n.status))},K=u(t);s.default.useEffect(()=>{p(t=>{if(!K)return t;return t.findIndex(t=>t.animationKey===K.animationKey)>=0?f?t.map(t=>t.animationKey===K.animationKey?Object.assign({},K,{status:'in'}):Object.assign({},t,{status:'out'})):[Object.assign({},K,{status:'in'})]:[...t,K]})},[K]);const v={transitionDuration:`${f?.duration||0}
5878ms`,transitionTimingFunction:f?.timingFunction||'linear'},F={in:f?.animateInClass,out:f?.animateOutClass,mounted:f?.startingClass};return(0,e.jsx)(e.Fragment,{children:[...j].filter(t=>'errored'!==t.status).map(s=>{const o=s.status,u=F[o];return(0,e.jsx)("div",{className:f?.containerClass,children:(l=s,t[0]===l.animationKey?t[1]({onReady:()=>{p(f?t=>t.map(t=>t===K?Object.assign({},t,{status:'in'}):Object.assign({},t,{status:'out'})):[Object.assign({},l,{status:'in'})])},onAnimationFinished:()=>{p([Object.assign({},l,{status:'in'})])},onError:()=>{p(t=>t.map(t=>t===l?Object.assign({},t,{status:'errored'}):t))}}):n?.[0]===l.animationKey?n[1]({onAnimationFinished:()=>{'out'===l.status&&b(l.animationKey)},onError:()=>{p(t=>t.map(t=>t===l?Object.assign({},t,{status:'errored'}):t))}}):l.persistedElement({onAnimationFinished:()=>{b(l.animationKey)}}))(u,v)},s.animationKey);var l})})}},338,[34,175]);
5879__d(function(g,r,i,a,m,_e,d){"use strict";const e=["source","events","contentPosition","hashPlaceholderContentPosition","priority","style","hashPlaceholderStyle","tintColor","className","accessibilityLabel","cachePolicy"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return j}});var o=t(r(d[0])),s=r(d[1]),n=t(s),l=r(d[2]),c=t(l),u=r(d[3]),h=r(d[4]),f=r(d[5]),P=r(d[6]);function y(e="normal"){return e&&['low','high'].includes(e)?e:'auto'}function b(e){return e&&'srcset'in e?{srcSet:e.srcset,sizes:e.sizes}:{}}var j=n.default.forwardRef((t,n)=>{let{source:j,events:v,contentPosition:p,hashPlaceholderContentPosition:C,priority:_,style:O,hashPlaceholderStyle:S,tintColor:E,className:H,accessibilityLabel:I,cachePolicy:x}=t,F=(0,o.default)(t,e);(0,s.useEffect)(()=>{v?.onMount?.forEach(e=>e?.())},[]);const M=(0,s.useId)().replace(/[\xab\xbb]/g,'_'),{resolvedSource:N,isImageHash:w}=(0,h.useImageHashes)(j),z=(0,f.getObjectPositionFromContentPositionObject)(w?C:p),L=(0,h.useHeaders)(N,x,v?.onError);return L?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(c.default,{id:M,tintColor:E}),(0,P.jsx)("img",Object.assign({ref:n,alt:I,className:H,src:L?.uri||void 0,style:Object.assign({objectPosition:z},f.absoluteFilledPosition,(0,l.getTintColorStyle)(M,E),O,w?S:{}),fetchPriority:y(_||'normal')},(0,u.getImageWrapperEventHandler)(v,L),b(j),F),j?.uri)]}):null})},339,[129,34,340,341,351,358,175]);
5880__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}}),_e.getTintColorStyle=function(e,t){if(!t)return{};return{filter:`url(#expo-image-tint-${e})`}},r(d[0]);var e,t=r(d[1]),o=(e=t)&&e.__esModule?e:{default:e},n=r(d[2]);function l({id:e,tintColor:t}){return t?(0,n.jsx)("svg",{style:u.svg,children:(0,n.jsx)("defs",{children:(0,n.jsxs)("filter",{id:`expo-image-tint-${e}`,children:[(0,n.jsx)("feFlood",{floodColor:t}),(0,n.jsx)("feComposite",{in2:"SourceAlpha",operator:"atop"})]})})}):null}const u=o.default.create({svg:{width:0,height:0}})},340,[34,42,175]);
5881__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getImageWrapperEventHandler=function(o,e){return{onLoad:n=>{o?.onLoad?.forEach(o=>o?.(n)),'undefined'!=typeof window&&window.requestAnimationFrame(()=>{o?.onDisplay?.forEach(n=>n?.())})},onTransitionEnd:()=>o?.onTransitionEnd?.forEach(n=>n?.()),onError:()=>{e?.uri&&(0,n.isBlurhashString)(e?.uri)||o?.onError?.forEach(n=>n?.({source:e||null}))}}};var n=r(d[0])},341,[342]);
5882__d(function(g,r,i,a,m,_e,d){"use strict";const e=["blurhash","thumbhash"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.isBlurhashString=o,_e.isThumbhashString=l,_e.resolveSource=f,_e.resolveSources=function(e){if(Array.isArray(e))return e.map(f).filter(Boolean);if((0,h.isImageRef)(e))return e;return[f(e)].filter(Boolean)};var u=t(r(d[0]));r(d[1]);var n=t(r(d[2])),s=r(d[3]),h=r(d[4]);function o(e){return/^(blurhash:\/)+[\w#$%*+,\-.:;=?@[\]^_{}|~]+(\/[\d.]+)*$/.test(e)}function l(e){return e.startsWith('thumbhash:/')}function f(t){if('string'==typeof t)return o(t)?(0,s.resolveBlurhashString)(t):l(t)?(0,s.resolveThumbhashString)(t):{uri:t};if('number'==typeof t)return(0,n.default)(t);if('object'==typeof t&&(t?.blurhash||t?.thumbhash)){const{blurhash:n,thumbhash:h}=t,o=(0,u.default)(t,e),l=h?(0,s.resolveThumbhashString)(h):(0,s.resolveBlurhashString)(n);return Object.assign({},l,o)}return t??null}},342,[129,99,343,345,346]);
5883__d(function(g,r,i,a,m,_e,d){"use strict";
5883Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}}),_e.setCustomSourceTransformer=c,Object.defineProperty(_e,"pickScale",{enumerable:!0,get:function(){return s}});var e,t=r(d[0]),n=r(d[1]),u=(e=n)&&e.__esModule?e:{default:e};let o;function c(e){o=e}function f(e){if('object'==typeof e)return e;const n=(0,t.getAssetByID)(e);if(!n)return;const c=new u.default('https://expo.dev',null,n);return o?o(c):c.defaultAsset()}Object.defineProperty(f,'setCustomSourceTransformer',{get:()=>c});const{pickScale:s}=u.default},343,[147,344]);
5884__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}}),r(d[0]);var e,t=r(d[1]),s=(e=t)&&e.__esModule?e:{default:e};function i(e){const t=n.pickScale(e.scales,s.default.get()),i=1===t?'':'@'+t+'x',c=e.type?`.${e.type}`:'';return e.httpServerLocation.replace(/\.\.\//g,'_')+'/'+e.name+i+c}class n{constructor(e,t,s){this.serverUrl=e||'https://expo.dev',this.jsbundleUrl=null,this.asset=s}isLoadedFromServer(){return!0}isLoadedFromFileSystem(){return!1}defaultAsset(){return this.assetServerURL()}assetServerURL(){const e=new URL(i(this.asset),this.serverUrl);return e.searchParams.set('platform',"web"),e.searchParams.set('hash',this.asset.hash),this.fromSource(e.toString().replace(e.origin,''))}fromSource(e){return{__packager_asset:!0,width:this.asset.width??void 0,height:this.asset.height??void 0,uri:e,scale:n.pickScale(this.asset.scales,s.default.get())}}static pickScale(e,t){for(let s=0;s<e.length;s++)if(e[s]>=t)return e[s];return e[e.length-1]||1}}},344,[99,149]);
5885__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.resolveBlurhashString=function(t){const[h,u,s]=t.replace(/^blurhash:\//,'').split('/');return{uri:'blurhash:/'+h,width:parseInt(u,10)||16,height:parseInt(s,10)||16}},e.resolveThumbhashString=function(t){return{uri:'thumbhash:/'+t.replace(/^thumbhash:\//,'')}}},345,[]);
5886__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.resolveContentFit=function(t,s){if(t)return t;if(s)switch(o||(console.log('[expo-image]: Prop "resizeMode" is deprecated, use "contentFit" instead'),o=!0),s){case'contain':case'cover':case'none':return s;case'stretch':return'fill';case'center':return'scale-down';case'repeat':return n||(console.log('[expo-image]: Resize mode "repeat" is no longer supported'),n=!0),'cover';default:throw new Error(`Unhandled resizeMode case: ${s}`)}return'cover'},e.resolveContentPosition=function(t){if('string'==typeof t){const o={center:{top:'50%',left:'50%'},top:{top:0,left:'50%'},right:{top:'50%',right:0},bottom:{bottom:0,left:'50%'},left:{top:'50%',left:0},'top center':{top:0,left:'50%'},'top right':{top:0,right:0},'top left':{top:0,left:0},'right center':{top:'50%',right:0},'right top':{top:0,right:0},'right bottom':{bottom:0,right:0},'bottom center':{bottom:0,left:'50%'},'bottom right':{bottom:0,right:0},'bottom left':{bottom:0,left:0},'left center':{top:'50%',left:0},'left top':{top:0,left:0},'left bottom':{bottom:0,left:0}},n=o[t];return n||(console.warn(`[expo-image]: Content position "${t}" is invalid`),o.center)}return t??{top:'50%',left:'50%'}},e.resolveTransition=function(t,o){if('number'==typeof t)return{duration:t};if(!t&&'number'==typeof o)return s||(console.warn('[expo-image]: Prop "fadeDuration" is deprecated, use "transition" instead'),s=!0),{duration:o};return t??null},e.isImageRef=function(o){return o instanceof t.SharedRef&&'image'===o.nativeRefType};var t=r(d[0]);let o=!1,n=!1,s=!1},346,[347]);
5887__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"disableErrorHandling",{enumerable:!0,get:function(){return t.disableErrorHandling}}),Object.defineProperty(_e,"registerRootComponent",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"isRunningInExpoGo",{enumerable:!0,get:function(){return o.isRunningInExpoGo}}),Object.defineProperty(_e,"getExpoGoProjectConfig",{enumerable:!0,get:function(){return o.getExpoGoProjectConfig}}),Object.defineProperty(_e,"EventEmitter",{enumerable:!0,get:function(){return c.EventEmitter}}),Object.defineProperty(_e,"SharedObject",{enumerable:!0,get:function(){return c.SharedObject}}),Object.defineProperty(_e,"SharedRef",{enumerable:!0,get:function(){return c.SharedRef}}),Object.defineProperty(_e,"NativeModule",{enumerable:!0,get:function(){return c.NativeModule}}),Object.defineProperty(_e,"requireNativeModule",{enumerable:!0,get:function(){return c.requireNativeModule}}),Object.defineProperty(_e,"requireOptionalNativeModule",{enumerable:!0,get:function(){return c.requireOptionalNativeModule}}),Object.defineProperty(_e,"requireNativeView",{enumerable:!0,get:function(){return c.requireNativeViewManager}}),Object.defineProperty(_e,"registerWebModule",{enumerable:!0,get:function(){return c.registerWebModule}}),Object.defineProperty(_e,"reloadAppAsync",{enumerable:!0,get:function(){return c.reloadAppAsync}}),Object.defineProperty(_e,"useEvent",{enumerable:!0,get:function(){return f.useEvent}}),Object.defineProperty(_e,"useEventListener",{enumerable:!0,get:function(){return f.useEventListener}}),r(d[0]);
5887var e,t=r(d[1]),n=r(d[2]),u=(e=n)&&e.__esModule?e:{default:e},o=r(d[3]),c=r(d[4]),f=r(d[5])},347,[2,348,1,349,99,350]);
5888__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createErrorHandler=function(n){return(t,o)=>n(t,o)},e.disableErrorHandling=function(){}},348,[]);
5889__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isRunningInExpoGo=function(){return!1},e.getExpoGoProjectConfig=function(){return null}},349,[]);
5890__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useEvent=function(u,s,c=null){const[o,f]=(0,t.useState)(c);return n(u,s,t=>f(t)),o},e.useEventListener=n;var t=r(d[0]);function n(n,u,s){const c=(0,t.useRef)(s);c.current=s,(0,t.useEffect)(()=>{const t=n.addListener(u,(...t)=>c.current(...t));return()=>t.remove()},[n,u,c])}},350,[34]);
5891__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useThumbhash=c,_e.useImageHashes=function(t){const[u,o]=c(t),[n,h]=(0,s.useBlurhash)(t);return(0,e.useMemo)(()=>o||h?n||u?{resolvedSource:n??u,isImageHash:!0}:{resolvedSource:null,isImageHash:!0}:{resolvedSource:t,isImageHash:!1},[n,u,o,h,t])},_e.useHeaders=function(s,t,u){const[c,o]=(0,e.useState)(null);if((0,e.useEffect)(()=>{(async()=>{if(s?.headers&&s.uri)try{const e=await fetch(s.uri,{headers:s.headers,cache:'none'===t?'no-cache':'default',redirect:'follow'});if(!e.ok)throw new Error(`Failed to fetch image: ${e.status} ${e.statusText}`);const u=await e.blob();o(e=>(e&&URL.revokeObjectURL(e),URL.createObjectURL(u)))}catch{u?.forEach(e=>e?.({source:s}))}})()},[s]),!s?.headers)return s;if(!c)return null;return Object.assign({},s,{uri:c})};var e=r(d[0]),s=r(d[1]),t=r(d[2]),u=r(d[3]);function c(s){const c=(0,t.isThumbhashString)(s?.uri||''),o=s?.uri?.replace(/thumbhash:\//,'')??'';return[(0,e.useMemo)(()=>c?{uri:(0,u.thumbHashStringToDataURL)(o)}:null,[o,c]),c]}},351,[34,352,342,357]);
5892__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useBlurhash=function(e,h=1){h=h||1;const[l,s]=(0,t.useState)(null),w=(e?.uri&&(0,n.isBlurhashString)(e.uri))??!1;(0,t.useEffect)(()=>{let t=!1;if(!e||!e.uri||!w)return;const n=e.uri.replace(/blurhash:\//,''),l=(0,u.default)(n,e.width??o.width,e.height??o.height,h),f=document.createElement('canvas'),b=document.createElement('canvas');f.width=e.width??o.width,f.height=e.height??o.height,b.width=(e.width??o.width)*c,b.height=(e.height??o.height)*c;const v=f.getContext('2d');if(!v)return void console.warn('Failed to decode blurhash');const L=v.createImageData(f.width,f.height);L.data.set(l),v.putImageData(L,0,0);const R=b.getContext('2d');if(R)return R.scale(c,c),R.drawImage(f,0,0),b.toBlob(e=>{t||s(t=>(t&&URL.revokeObjectURL(t),e?URL.createObjectURL(e):t))}),function(){t=!0,s(e=>(e&&URL.revokeObjectURL(e),null))};console.warn('Failed to decode blurhash')},[e?.uri,e?.height,e?.width,h,w]);return[(0,t.useMemo)(()=>l?{uri:l}:null,[l]),w]};var e,t=r(d[0]),h=r(d[1]),u=(e=h)&&e.__esModule?e:{default:e},n=r(d[2]);const o={width:32,height:32},c=10},352,[34,353,342]);
5893__d(function(_g,_r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isBlurhashValid",{enumerable:!0,get:function(){return s}});var t=_r(d[0]),r=_r(d[1]),o=_r(d[2]);const n=o=>{if(!o||o.length<6)throw new r.ValidationError('The blurhash string must be at least 6 characters');const n=(0,t.decode83)(o[0]),s=Math.floor(n/9)+1,l=n%9+1;if(o.length!==4+2*l*s)throw new r.ValidationError(`blurhash length mismatch: length is ${o.length} but it should be ${4+2*l*s}`)},s=t=>{try{n(t)}catch(t){return{result:!1,errorReason:t.message}}return{result:!0}},l=t=>{const r=t>>16,n=t>>8&255,s=255&t;return[(0,o.sRGBToLinear)(r),(0,o.sRGBToLinear)(n),(0,o.sRGBToLinear)(s)]},i=(t,r)=>{const n=Math.floor(t/361),s=Math.floor(t/19)%19,l=t%19;return[(0,o.signPow)((n-9)/9,2)*r,(0,o.signPow)((s-9)/9,2)*r,(0,o.signPow)((l-9)/9,2)*r]};var c=(r,s,c,h)=>{n(r),h=1|(h||1);const u=(0,t.decode83)(r[0]),f=Math.floor(u/9)+1,g=u%9+1,b=((0,t.decode83)(r[1])+1)/166,w=new Array(g*f);for(let o=0;o<w.length;o++)if(0===o){const n=(0,t.decode83)(r.substring(2,6));w[o]=l(n)}else{const n=(0,t.decode83)(r.substring(4+2*o,6+2*o));w[o]=i(n,b*h)}const M=4*s,P=new Uint8ClampedArray(M*c);for(let t=0;t<c;t++)for(let r=0;r<s;r++){let n=0,l=0,i=0;for(let o=0;o<f;o++)for(let h=0;h<g;h++){const u=Math.cos(Math.PI*r*h/s)*Math.cos(Math.PI*t*o/c),f=w[h+o*g];n+=f[0]*u,l+=f[1]*u,i+=f[2]*u}const h=(0,o.linearTosRGB)(n),u=(0,o.linearTosRGB)(l),b=(0,o.linearTosRGB)(i);P[4*r+0+t*M]=h,P[4*r+1+t*M]=u,P[4*r+2+t*M]=b,P[4*r+3+t*M]=255}return P}}
5893,353,[354,355,356]);
5894__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"decode83",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"encode83",{enumerable:!0,get:function(){return o}});const t=['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','#','$','%','*','+',',','-','.',':',';','=','?','@','[',']','^','_','{','|','}','~'],n=n=>{let o=0;for(let c=0;c<n.length;c++){const u=n[c];o=83*o+t.indexOf(u)}return o},o=(n,o)=>{let c='';for(let u=1;u<=o;u++){const f=Math.floor(n)/Math.pow(83,o-u)%83;c+=t[Math.floor(f)]}return c}},354,[]);
5895__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(t){super(t),this.name='ValidationError',this.message=t}}},355,[]);
5896__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"sRGBToLinear",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"linearTosRGB",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"sign",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"signPow",{enumerable:!0,get:function(){return u}});const t=t=>{const n=t/255;return n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)},n=t=>{const n=Math.max(0,Math.min(1,t));return n<=.0031308?Math.trunc(12.92*n*255+.5):Math.trunc(255*(1.055*Math.pow(n,.4166666666666667)-.055)+.5)},o=t=>t<0?-1:1,u=(t,n)=>o(t)*Math.pow(Math.abs(t),n)},356,[]);
5897__d(function(_g,_r,_i,_a,m,e,d){"use strict";function t(t){const{PI:r,min:n,max:f,cos:s,round:a}=Math,l=t[0]|t[1]<<8|t[2]<<16,u=t[3]|t[4]<<8,c=(63&l)/63,h=(l>>6&63)/31.5-1,i=(l>>12&63)/31.5-1,b=(l>>18&31)/31,g=l>>23,p=(u>>3&63)/63,A=(u>>9&63)/63,T=u>>15,w=f(3,T?g?5:7:7&u),x=f(3,T?7&u:g?5:7),H=g?(15&t[5])/15:1,R=(t[5]>>4)/15,U=g?6:5;let y=0;const M=(o,r,n)=>{const f=[];for(let s=0;s<r;s++)for(let a=s?0:1;a*r<o*(r-s);a++)f.push(((t[U+(y>>1)]>>((1&y++)<<2)&15)/7.5-1)*n);return f},_=M(w,x,b),C=M(3,3,1.25*p),D=M(3,3,1.25*A),L=g?M(5,5,R):null,P=o(t),v=a(P>1?32:32*P),B=a(P>1?32/P:32),G=new Uint8Array(v*B*4),I=[],S=[];for(let t=0,o=0;t<B;t++)for(let a=0;a<v;a++,o+=4){let l=c,u=h,b=i,p=H;for(let t=0,o=f(w,g?5:3);t<o;t++)I[t]=s(r/v*(a+.5)*t);for(let o=0,n=f(x,g?5:3);o<n;o++)S[o]=s(r/B*(t+.5)*o);for(let t=0,o=0;t<x;t++)for(let r=t?0:1,n=2*S[t];r*x<w*(x-t);r++,o++)l+=_[o]*I[r]*n;for(let t=0,o=0;t<3;t++)for(let r=t?0:1,n=2*S[t];r<3-t;r++,o++){const t=I[r]*n;u+=C[o]*t,b+=D[o]*t}if(g)for(let t=0,o=0;t<5;t++)for(let r=t?0:1,n=2*S[t];r<5-t;r++,o++)p+=L[o]*I[r]*n;const A=l-.6666666666666666*u,T=(3*l-A+b)/2,R=T-b;G[o]=f(0,255*n(1,T)),G[o+1]=f(0,255*n(1,R)),G[o+2]=f(0,255*n(1,A)),G[o+3]=f(0,255*n(1,p))}return{w:v,h:B,rgba:G}}function o(t){const o=t[3],r=128&t[2],n=128&t[4];return(n?r?5:7:7&o)/(n?7&o:r?5:7)}function r(t,o,r){const n=4*t+1,f=6+o*(5+n),s=[137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,t>>8,255&t,0,0,o>>8,255&o,8,6,0,0,0,0,0,0,0,f>>>24,f>>16&255,f>>8&255,255&f,73,68,65,84,120,1],a=[0,498536548,997073096,651767980,1994146192,1802195444,1303535960,1342533948,-306674912,-267414716,-690576408,-882789492,-1687895376,-2032938284,-1609899400,-1111625188];let l=1,u=0;for(let t=0,f=0,a=n-1;t<o;t++,a+=n-1)for(s.push(t+1<o?0:1,255&n,n>>8,255&~n,n>>8^255,0),u=(u+l)%65521;f<a;f++){const t=255&r[f];s.push(t),l=(l+t)%65521,u=(u+l)%65521}s.push(u>>8,255&u,l>>8,255&l,0,0,0,0,0,0,0,0,73,69,78,68,174,66,96,130);for(let[t,o]of[[12,29],[37,41+f]]){let r=-1;for(let n=t;n<o;n++)r^=s[n],r=r>>>4^a[15&r],r=r>>>4^a[15&r];r=~r,s[o++]=r>>>24,s[o++]=r>>16&255,s[o++]=r>>8&255,s[o++]=255&r}return'data:image/png;base64,'+btoa(String.fromCharCode(...s))}function n(o){const n=t(o);return r(n.w,n.h,n.rgba)}Object.defineProperty(e,'__esModule',{value:!0}),e.rgbaToThumbHash=function(t,o,r){if(t>100||o>100)throw new Error(`${t}x${o} doesn't fit in 100x100`);const{PI:n,round:f,max:s,cos:a,abs:l}=Math;let u=0,c=0,h=0,i=0;for(let n=0,f=0;n<t*o;n++,f+=4){const t=r[f+3]/255;u+=t/255*r[f],c+=t/255*r[f+1],h+=t/255*r[f+2],i+=t}i&&(u/=i,c/=i,h/=i);const b=i<t*o,g=b?5:7,p=s(1,f(g*t/s(t,o))),A=s(1,f(g*o/s(t,o))),T=[],w=[],x=[],H=[];for(let n=0,f=0;n<t*o;n++,f+=4){const t=r[f+3]/255,o=u*(1-t)+t/255*r[f],s=c*(1-t)+t/255*r[f+1],a=h*(1-t)+t/255*r[f+2];T[n]=(o+s+a)/3,w[n]=(o+s)/2-a,x[n]=o-s,H[n]=t}const R=(r,f,u)=>{let c=0;const h=[];let i=0;const b=[];for(let g=0;g<u;g++)for(let p=0;p*u<f*(u-g);p++){let f=0;for(let o=0;o<t;o++)b[o]=a(n/t*p*(o+.5));for(let s=0;s<o;s++)for(let l=0,u=a(n/o*g*(s+.5));l<t;l++)f+=r[l+s*t]*b[l]*u;f/=t*o,p||g?(h.push(f),i=s(i,l(f))):c=f}if(i)for(let t=0;t<h.length;t++)h[t]=.5+.5/i*h[t];return[c,h,i]},[U,y,M]=R(T,s(3,p),s(3,A)),[_,C,D]=R(w,3,3),[L,P,v]=R(x,3,3),[B,G,I]=b?R(H,5,5):[],S=t>o,$=f(63*U)|f(31.5+31.5*_)<<6|f(31.5+31.5*L)<<12|f(31*M)<<18|(b?1:0)<<23,j=(S?A:p)|f(63*D)<<3|f(63*v)<<9|(S?1:0)<<15,E=[255&$,$>>8&255,$>>16,255&j,j>>8],O=b?6:5;let k=0;b&&E.push(f(15*B)|f(15*I)<<4);for(const t of b?[y,C,P,G]:[y,C,P])for(const o of t)E[O+(k>>1)]|=f(15*o)<<((1&k++)<<2);return new Uint8Array(E)},e.thumbHashToRGBA=t,e.thumbHashToAverageRGBA=function(t){const{min:o,max:r}=Math,n=t[0]|t[1]<<8|t[2]<<16,f=(63&n)/63,s=(n>>6&63)/31.5-1,a=(n>>12&63)/31.5-1,l=n>>23?(15&t[5])/15:1,u=f-.6666666666666666*s,c=(3*f-u+a)/2,h=c-a;return{r:r(0,o(1,c)),g:r(0,o(1,h)),b:r(0,o(1,u)),a:l}},e.thumbHashToApproximateAspectRatio=o,e.rgbaToDataURL=r,e.thumbHashToDataURL=n,e.thumbHashStringToDataURL=function(t){return n(Uint8Array.from(atob(t),t=>t.charCodeAt(0)))}},357,[]);
5898__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=String(t).trim();return n.endsWith('%')?n:`${n}px`}
5898Object.defineProperty(e,'__esModule',{value:!0}),e.ensureValueIsWebUnits=t,Object.defineProperty(e,"absoluteFilledPosition",{enumerable:!0,get:function(){return n}}),e.getObjectPositionFromContentPositionObject=function(n){const o=Object.assign({},n);if(!o)return'50% 50%';null==o.top&&null==o.bottom&&(o.top='50%');null==o.left&&null==o.right&&(o.left='50%');return['top','bottom','left','right'].map(n=>n in o?`${n} ${t(o[n])}`:'').join(' ')||'50% 50%'};const n={width:'100%',height:'100%',position:'absolute',left:0,top:0}},358,[]);
5899__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});const t="\n[data-expoimage] .cross-dissolve {\n  transition-property: opacity;\n  animation-fill-mode: forwards;\n}\n[data-expoimage] .cross-dissolve-start:not(.transitioning) {\n  opacity: 0;\n}\n[data-expoimage] .cross-dissolve-active {\n  opacity: 1;\n}\n[data-expoimage] .cross-dissolve-end {\n  opacity: 0;\n}\n[data-expoimage] .flip-from-left {\n  transition-property: transform, opacity;\n  transition-timing-function: var(--expo-image-timing,linear), steps(2, jump-none) !important;\n  transform-origin: center;\n\n}\n[data-expoimage] .flip-from-left-container {\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  left: 0;\n  top: 0;\n  perspective: 1000px;\n}\n[data-expoimage] .flip-from-left-start:not(.transitioning) {\n  transform:  translateZ(calc(var(--expo-image-width,1000px) * -1.25)) rotateY(-180deg);\n  opacity: 0;\n}\n[data-expoimage] .flip-from-left-active {\n  transform: translateZ(0px) rotateY(0) ;\n  opacity:1;\n}\n[data-expoimage] .flip-from-left-end {\n  transform:  translateZ(calc(var(--expo-image-width,1000px) * -1.25)) rotateY(180deg);\n  opacity: 0;\n}\n[data-expoimage] .flip-from-right {\n  transition-property: transform, opacity;\n  transition-timing-function: var(--expo-image-timing,linear), steps(2, jump-none) !important;\n  transform-origin: center;\n}\n[data-expoimage] .flip-from-right-container {\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  left: 0;\n  top: 0;\n  perspective: 1000px;\n}\n[data-expoimage] .flip-from-right-start:not(.transitioning) {\n  transform:  translateZ(calc(var(--expo-image-width,1000px) * -1.25)) rotateY(180deg);\n  opacity: 0;\n}\n[data-expoimage] .flip-from-right-active {\n  transform: translateZ(0px) rotateY(0) ;\n  opacity:1;\n}\n[data-expoimage] .flip-from-right-end {\n  transform:  translateZ(calc(var(--expo-image-width,1000px) * -1.25)) rotateY(-180deg);\n  opacity: 0;\n}\n[data-expoimage] .flip-from-top {\n  transition-property: transform, opacity;\n  transition-timing-function: var(--expo-image-timing,linear), steps(2, jump-none) !important;\n  transform-origin: center;\n}\n[data-expoimage] .flip-from-top-container {\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  left: 0;\n  top: 0;\n  perspective: 1000px;\n}\n[data-expoimage] .flip-from-top-start:not(.transitioning) {\n  transform:  translateZ(calc(var(--expo-image-height,1000px) * -1.5)) rotateX(180deg);\n  opacity: 0;\n}\n[data-expoimage] .flip-from-top-active {\n  transform: translateZ(0px) rotateX(0) ;\n  opacity:1;\n}\n[data-expoimage] .flip-from-top-end {\n  transform:  translateZ(calc(var(--expo-image-height,1000px) * -1.5)) rotateX(-180deg);\n  opacity: 0;\n}\n[data-expoimage] .flip-from-bottom {\n  transition-property: transform, opacity;\n  transition-timing-function: var(--expo-image-timing,linear), steps(2, jump-none) !important;\n  transform-origin: center;\n}\n[data-expoimage] .flip-from-bottom-container {\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  left: 0;\n  top: 0;\n  perspective: 1000px;\n}\n[data-expoimage] .flip-from-bottom-start:not(.transitioning) {\n  transform:  translateZ(calc(var(--expo-image-height,1000px) * -1.25)) rotateX(-180deg);\n  opacity: 0;\n}\n[data-expoimage] .flip-from-bottom-active {\n  transform: translateZ(0px) rotateX(0) ;\n  opacity:1;\n}\n[data-expoimage] .flip-from-bottom-end {\n  transform:  translateZ(calc(var(--expo-image-height,1000px) * -1.25)) rotateX(180deg);\n  opacity: 0;\n}\n[data-expoimage] .image-timing-linear {\n  --expo-image-timing: linear;\n}\n[data-expoimage] .image-timing-ease-in {\n  --expo-image-timing: ease-in;\n}\n[data-expoimage] .image-timing-ease-out {\n  --expo-image-timing: ease-out;\n}\n[data-expoimage] .image-timing-ease-in-out {\n  --expo-image-timing: ease-in-out;\n}\n";function n(){if('undefined'!=typeof window){const n=document.createElement('style');n.innerHTML=t,n.id='expo-image-styles',document.head.appendChild(n)}}},359,[]);
5900__d(function(g,r,i,_a,m,_e,d){"use strict";
5900Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]),s=r(d[2]);function o(e,t){return 1===e?.length?e[0]:[...e||[]]?.map(e=>{if(!t)return{source:e,penalty:0,covers:!1};const{width:n,height:u}='object'==typeof e?e:{width:null,height:null};return null==n||null==u?{source:e,penalty:0,covers:!1}:n<t.width||u<t.height?{source:e,penalty:Math.max(t.width-n,t.height-u),covers:!1}:{source:e,penalty:(n-t.width)*(u-t.height),covers:!0}}).sort((e,t)=>e.penalty-t.penalty).sort((e,t)=>Number(t.covers)-Number(e.covers))[0]?.source??null}function c(e){return`(max-width: ${e.webMaxViewportWidth??e.width}px) ${e.width}px`}function l(e,t,n){if(null==e||0===e.length)return null;if(1===e.length)return e[0];if('static'!==n)return o(e,t);const u=e.filter(e=>e.uri&&null!=e.width&&!(0,s.isBlurhashString)(e.uri)&&!(0,s.isThumbhashString)(e.uri)).sort((e,t)=>(e.webMaxViewportWidth??e.width??0)-(t.webMaxViewportWidth??t.width??0));if(0===u.length)return console.warn("You've set the `static` responsivePolicy but none of the sources have the `width` properties set. Make sure you set both `width` and `webMaxViewportWidth` for best results when using static responsiveness. Falling back to the `initial` policy."),o(e,t);const l=u?.map(e=>`${e.uri} ${e.width}w`).join(', ');return{srcset:l,sizes:`${u?.map(c).join(', ')}, ${u[u.length-1]?.width}px`,uri:u[u.length-1]?.uri??'',type:'srcset'}}function h(e,s="static",o,c=null){const h=(Array.isArray(e)?e.length:0)>1,[a,w]=(0,t.useState)(o.current?.getBoundingClientRect()??null);return a&&o.current&&c?.(o.current,a),n.default.useEffect(()=>{if(!h&&!c||!o.current)return()=>{};if('live'===s){const e=new ResizeObserver(e=>{w(e[0].contentRect),c?.(e[0].target,e[0].contentRect)});return e.observe(o.current),()=>{e.disconnect()}}return()=>{}},[s,h,o.current,c]),(0,u.isImageRef)(e)?e:l(e,a,s)}},360,[34,346,342]);
5901__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=r(d[1]),o=(e=n)&&e.__esModule?e:{default:e};class s extends t.NativeModule{Image=o.default;async prefetch(e,t,n){const o=Array.isArray(e)?e:[e];return new Promise(e=>{let t=0;o.forEach(n=>{const s=new Image;s.src=n,s.onload=()=>{t++,t===o.length&&e(!0)},s.onerror=()=>e(!1)})})}async clearMemoryCache(){return!1}async clearDiskCache(){return!1}async loadAsync(e){if(!e.uri)throw new Error('The image source must have the "uri" property defined');const t=await fetch(e.uri,{headers:e.headers});if(!t.ok)throw new Error(`Image request failed with the status code: ${t.status}`);const n=await t.blob(),s=URL.createObjectURL(n),u=await c(s);return o.default.init(s,u.width,u.height,t.headers.get('Content-Type'))}}async function c(e){return new Promise((t,n)=>{const o=document.createElement('img');o.onload=()=>t(o),o.onerror=()=>n(new Error(`Unable to load the image from '${e}'`)),o.src=e})}var u=(0,t.registerWebModule)(s,'ExpoImage')},361,[99,362]);
5902__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.SharedRef{nativeRefType='image';uri=null;width=0;height=0;mediaType=null;scale=1;isAnimated=!1;static init(t,u,s,l){return Object.assign(new n,{uri:t,width:u,height:s,mediaType:l,isAnimated:'image/gif'===l})}}},362,[347]);
5903__d(function(g,r,i,a,m,_e,d){"use strict";const e=["style","imageStyle","children"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.ImageBackground=function(t){let{style:o,imageStyle:f,children:y}=t,_=(0,l.default)(t,e);return(0,c.jsxs)(n.default,{style:o,children:[(0,c.jsx)(u.Image,Object.assign({},_,{style:[s.default.absoluteFill,f]})),y]})};var l=t(r(d[0]));r(d[1]);var n=t(r(d[2])),s=t(r(d[3])),u=r(d[4]),c=r(d[5])},363,[129,34,199,42,336,175]);
5904__d(function(g,r,i,a,m,e,d){"use strict";
5904Object.defineProperty(e,'__esModule',{value:!0}),e.useImage=function(s,u={},c=[]){const l=(0,t.resolveSource)(s),[f,h]=(0,o.useState)(null),p=(0,o.useRef)(u);return p.current=u,(0,o.useEffect)(()=>{let o=!0;return(function t(){n.Image.loadAsync(l,u).then(n=>{o&&h(n)}).catch(n=>{o&&(p.current.onError?p.current.onError(n,t):(console.error(`Loading an image from '${l.uri}' failed, use 'onError' option to handle errors and suppress this message`),console.error(n)))})})(),()=>{o=!1,f?.release()}},[l.uri,...c]),f};var o=r(d[0]),n=r(d[1]),t=r(d[2])},364,[34,336,342]);
5905__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useScreenFocusEffect=function(c,n){const o=(0,u.useAppRouter)();return void(0,t.useEffect)(c,[o.pathname,...n])};r(d[0]);var t=r(d[1]);r(d[2]);var u=r(d[3])},365,[366,34,95,489]);
5906__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createStaticNavigation",{enumerable:!0,get:function(){return t.createStaticNavigation}}),Object.defineProperty(e,"Link",{enumerable:!0,get:function(){return n.Link}}),Object.defineProperty(e,"LinkingContext",{enumerable:!0,get:function(){return o.LinkingContext}}),Object.defineProperty(e,"LocaleDirContext",{enumerable:!0,get:function(){return u.LocaleDirContext}}),Object.defineProperty(e,"NavigationContainer",{enumerable:!0,get:function(){return c.NavigationContainer}}),Object.defineProperty(e,"ServerContainer",{enumerable:!0,get:function(){return f.ServerContainer}}),Object.defineProperty(e,"DarkTheme",{enumerable:!0,get:function(){return b.DarkTheme}}),Object.defineProperty(e,"DefaultTheme",{enumerable:!0,get:function(){return l.DefaultTheme}}),Object.defineProperty(e,"UNSTABLE_UnhandledLinkingContext",{enumerable:!0,get:function(){return y.UnhandledLinkingContext}}),Object.defineProperty(e,"useLinkBuilder",{enumerable:!0,get:function(){return O.useLinkBuilder}}),Object.defineProperty(e,"useLinkProps",{enumerable:!0,get:function(){return P.useLinkProps}}),Object.defineProperty(e,"useLinkTo",{enumerable:!0,get:function(){return j.useLinkTo}}),Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return s.useLocale}}),Object.defineProperty(e,"useRoutePath",{enumerable:!0,get:function(){return L.useRoutePath}}),Object.defineProperty(e,"useScrollToTop",{enumerable:!0,get:function(){return k.useScrollToTop}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),c=r(d[4]),f=r(d[5]),b=r(d[6]),l=r(d[7]),p=r(d[8]);Object.keys(p).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}})});var y=r(d[9]),O=r(d[10]),P=r(d[11]),j=r(d[12]),s=r(d[13]),L=r(d[14]),k=r(d[15]),h=r(d[16]);Object.keys(h).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return h[t]}})})},366,[367,479,468,469,466,481,482,470,483,472,484,480,485,486,487,488,368]);
5907__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["linking"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.createStaticNavigation=function(n){const t=n.getComponent();function f(f,d){let{linking:b}=f,p=(0,o.default)(f,e);const h=u.useMemo(()=>{const e=(0,c.createPathConfigForStaticNavigation)(n,{initialRouteName:b?.config?.initialRouteName},'auto'===b?.enabled);if(e)return{path:b?.config?.path,initialRouteName:b?.config?.initialRouteName,screens:e}},[b?.enabled,b?.config?.path,b?.config?.initialRouteName]),k=u.useMemo(()=>{if(!b)return;const e='boolean'==typeof b.enabled?b.enabled:null!=h?.screens;return Object.assign({},b,{enabled:e,config:h})},[b,h]);if(!0===b?.enabled&&null==h?.screens)throw new Error("Linking is enabled but no linking configuration was found for the screens.\n\nTo solve this:\n- Specify a 'linking' property for the screens you want to link to.\n- Or set 'linking.enabled' to 'auto' to generate paths automatically.\n\nSee usage guide: https://reactnavigation.org/docs/static-configuration#linking");return(0,l.jsx)(s.NavigationContainer,Object.assign({},p,{ref:d,linking:k,children:(0,l.jsx)(t,{})}))}return u.forwardRef(f)};var n,t=r(_d[0]),o=(n=t)&&n.__esModule?n:{default:n}
5907,c=r(_d[1]),u=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n})(r(_d[2])),s=r(_d[3]),l=r(_d[4])},367,[129,368,34,466,175]);
5908__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"BaseNavigationContainer",{enumerable:!0,get:function(){return t.BaseNavigationContainer}}),Object.defineProperty(e,"createNavigationContainerRef",{enumerable:!0,get:function(){return n.createNavigationContainerRef}}),Object.defineProperty(e,"createNavigatorFactory",{enumerable:!0,get:function(){return o.createNavigatorFactory}}),Object.defineProperty(e,"CurrentRenderContext",{enumerable:!0,get:function(){return u.CurrentRenderContext}}),Object.defineProperty(e,"findFocusedRoute",{enumerable:!0,get:function(){return c.findFocusedRoute}}),Object.defineProperty(e,"getActionFromState",{enumerable:!0,get:function(){return f.getActionFromState}}),Object.defineProperty(e,"getFocusedRouteNameFromRoute",{enumerable:!0,get:function(){return b.getFocusedRouteNameFromRoute}}),Object.defineProperty(e,"getPathFromState",{enumerable:!0,get:function(){return P.getPathFromState}}),Object.defineProperty(e,"getStateFromPath",{enumerable:!0,get:function(){return v.getStateFromPath}}),Object.defineProperty(e,"NavigationContainerRefContext",{enumerable:!0,get:function(){return p.NavigationContainerRefContext}}),Object.defineProperty(e,"NavigationContext",{enumerable:!0,get:function(){return l.NavigationContext}}),Object.defineProperty(e,"NavigationHelpersContext",{enumerable:!0,get:function(){return y.NavigationHelpersContext}}),Object.defineProperty(e,"NavigationIndependentTree",{enumerable:!0,get:function(){return s.NavigationIndependentTree}}),Object.defineProperty(e,"NavigationMetaContext",{enumerable:!0,get:function(){return O.NavigationMetaContext}}),Object.defineProperty(e,"NavigationProvider",{enumerable:!0,get:function(){return j.NavigationProvider}}),Object.defineProperty(e,"NavigationRouteContext",{enumerable:!0,get:function(){return j.NavigationRouteContext}}),Object.defineProperty(e,"PreventRemoveContext",{enumerable:!0,get:function(){return N.PreventRemoveContext}}),Object.defineProperty(e,"PreventRemoveProvider",{enumerable:!0,get:function(){return C.PreventRemoveProvider}}),Object.defineProperty(e,"createComponentForStaticNavigation",{enumerable:!0,get:function(){return R.createComponentForStaticNavigationDeprecated}}),Object.defineProperty(e,"createPathConfigForStaticNavigation",{enumerable:!0,get:function(){return R.createPathConfigForStaticNavigation}}),Object.defineProperty(e,"ThemeContext",{enumerable:!0,get:function(){return F.ThemeContext}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return h.ThemeProvider}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return x.useTheme}}),Object.defineProperty(e,"useFocusEffect",{enumerable:!0,get:function(){return T.useFocusEffect}}),Object.defineProperty(e,"useIsFocused",{enumerable:!0,get:function(){return I.useIsFocused}}),Object.defineProperty(e,"useNavigation",{enumerable:!0,get:function(){return B.useNavigation}}),Object.defineProperty(e,"useNavigationBuilder",{enumerable:!0,get:function(){return E.useNavigationBuilder}}),Object.defineProperty(e,"useNavigationContainerRef",{enumerable:!0,get:function(){return _.useNavigationContainerRef}}),Object.defineProperty(e,"useNavigationIndependentTree",{enumerable:!0,get:function(){return M.useNavigationIndependentTree}}),Object.defineProperty(e,"useNavigationState",{enumerable:!0,get:function(){return k.useNavigationState}}),Object.defineProperty(e,"usePreventRemove",{enumerable:!0,get:function(){return w.usePreventRemove}}),Object.defineProperty(e,"usePreventRemoveContext",{enumerable:!0,get:function(){return A.usePreventRemoveContext}}),Object.defineProperty(e,"useRoute",{enumerable:!0,get:function(){return H.useRoute}}),Object.defineProperty(e,"useStateForPath",{enumerable:!0,get:function(){return D.useStateForPath}}),Object.defineProperty(e,"validatePathConfig",{enumerable:!0,get:function(){return q.validatePathConfig}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),c=r(d[4]),f=r(d[5]),b=r(d[6]),P=r(d[7
5908]),v=r(d[8]),p=r(d[9]),l=r(d[10]),y=r(d[11]),s=r(d[12]),O=r(d[13]),j=r(d[14]),N=r(d[15]),C=r(d[16]),R=r(d[17]),F=r(d[18]),h=r(d[19]),x=r(d[20]),S=r(d[21]);Object.keys(S).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return S[t]}})});var T=r(d[22]),I=r(d[23]),B=r(d[24]),E=r(d[25]),_=r(d[26]),M=r(d[27]),k=r(d[28]),w=r(d[29]),A=r(d[30]),H=r(d[31]),D=r(d[32]),q=r(d[33]),z=r(d[34]);Object.keys(z).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return z[t]}})})},368,[369,384,402,413,387,414,415,418,426,389,410,430,431,432,409,433,434,405,393,392,435,436,437,411,412,438,462,398,453,463,464,408,465,425,370]);
5909__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["key","routeNames"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"BaseNavigationContainer",{enumerable:!0,get:function(){return S}});var n=t(r(_d[0])),o=r(_d[1]),s=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),u=t(r(_d[3])),c=(r(_d[4]),r(_d[5]),r(_d[6])),d=r(_d[7]),l=r(_d[8]),f=r(_d[9]),h=r(_d[10]),v=r(_d[11]),p=r(_d[12]),y=r(_d[13]),C=r(_d[14]),O=r(_d[15]),R=r(_d[16]),b=r(_d[17]),j=r(_d[18]),N=r(_d[19]),x=r(_d[20]),I=r(_d[21]),_=r(_d[22]);const k=t=>{if(void 0===t)return;const o=(0,n.default)(t,e);return Object.assign({},o,{stale:!0,routes:t.routes.map(e=>void 0===e.state?e:Object.assign({},e,{state:k(e.state)}))})},S=s.forwardRef(function({initialState:e,onStateChange:t,onReady:n,onUnhandledAction:S,navigationInChildEnabled:E=!1,theme:w,children:P},L){const A=s.useContext(y.NavigationStateContext),T=(0,N.useNavigationIndependentTree)();if(!A.isDefault&&!T)throw new Error("Looks like you have nested a 'NavigationContainer' inside another. Normally you need only one container at the root of the app, so this was probably an error. If this was intentional, wrap the container in 'NavigationIndependentTree' explicitly. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them.");const{state:D,getState:M,setState:U,scheduleUpdate:G,flushUpdates:K}=(0,I.useSyncState)(()=>k(null==e?void 0:e)),B=s.useRef(!0),F=s.useRef(void 0),Z=s.useCallback(()=>F.current,[]),H=s.useCallback(e=>{F.current=e},[]),{listeners:q,addListener:z}=(0,R.useChildListeners)(),{keyedListeners:J,addKeyedListener:Q}=(0,j.useKeyedChildListeners)(),V=(0,u.default)(e=>{null==q.focus[0]?console.error(c.NOT_INITIALIZED_ERROR):q.focus[0](t=>t.dispatch(e))}),W=(0,u.default)(()=>{if(null==q.focus[0])return!1;const{result:e,handled:t}=q.focus[0](e=>e.canGoBack());return!!t&&e}),X=(0,u.default)(e=>{const t=e?.key??J.getState.root?.().key;null==t?console.error(c.NOT_INITIALIZED_ERROR):q.focus[0](n=>n.dispatch(Object.assign({},o.CommonActions.reset(e),{target:t})))}),Y=(0,u.default)(()=>J.getState.root?.()),$=(0,u.default)(()=>{const e=Y();if(null==e)return;return(0,f.findFocusedRoute)(e)}),ee=(0,u.default)(()=>null!=q.focus[0]),te=(0,b.useEventEmitter)(),{addOptionsGetter:ne,getCurrentOptions:re}=(0,x.useOptionsGetters)({}),oe=s.useMemo(()=>Object.assign({},Object.keys(o.CommonActions).reduce((e,t)=>(e[t]=(...e)=>V(o.CommonActions[t](...e)),e),{}),te.create('root'),{dispatch:V,resetRoot:X,isFocused:()=>!0,canGoBack:W,getParent:()=>{},getState:M,getRootState:Y,getCurrentRoute:$,getCurrentOptions:re,isReady:ee,setOptions:()=>{throw new Error('Cannot call setOptions outside a screen')}}),[W,V,te,re,$,Y,M,ee,X]);s.useImperativeHandle(L,()=>oe,[oe]);const ae=(0,u.default)((e,t)=>{te.emit({type:'__unsafe_action__',data:{action:e,noop:t,stack:ue.current}})}),se=s.useRef(void 0),ie=(0,u.default)(e=>{se.current!==e&&(se.current=e,te.emit({type:'options',data:{options:e}}))}),ue=s.useRef(void 0),ce=s.useMemo(()=>({addListener:z,addKeyedListener:Q,onDispatchAction:ae,onOptionsChange:ie,scheduleUpdate:G,flushUpdates:K,stackRef:ue}
5909),[z,Q,ae,ie,G,K]),de=s.useRef(!0),le=s.useCallback(()=>de.current,[]),fe=s.useMemo(()=>({state:D,getState:M,setState:U,getKey:Z,setKey:H,getIsInitial:le,addOptionsGetter:ne}),[D,M,U,Z,H,le,ne]),he=s.useRef(n),ve=s.useRef(t);s.useEffect(()=>{de.current=!1,ve.current=t,he.current=n});const pe=s.useRef(!1);s.useEffect(()=>{!pe.current&&ee()&&(pe.current=!0,he.current?.(),te.emit({type:'ready'}))},[D,ee,te]),s.useEffect(()=>{const e=Y();te.emit({type:'state',data:{state:D}}),!B.current&&ve.current&&ve.current(e),B.current=!1},[Y,te,D]);const ge=(0,u.default)(e=>{});return(0,_.jsx)(p.NavigationIndependentTreeContext.Provider,{value:!1,children:(0,_.jsx)(v.NavigationContainerRefContext.Provider,{value:oe,children:(0,_.jsx)(h.NavigationBuilderContext.Provider,{value:ce,children:(0,_.jsx)(y.NavigationStateContext.Provider,{value:fe,children:(0,_.jsx)(O.UnhandledActionContext.Provider,{value:S??ge,children:(0,_.jsx)(d.DeprecatedNavigationInChildContext.Provider,{value:E,children:(0,_.jsx)(l.EnsureSingleNavigator,{children:(0,_.jsx)(C.ThemeProvider,{value:w,children:P})})})})})})})})})},369,[129,370,34,380,382,383,384,385,386,387,388,389,390,391,392,394,395,396,397,398,399,400,175]);
5910__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"BaseRouter",{enumerable:!0,get:function(){return t.BaseRouter}}),Object.defineProperty(_e,"DrawerActions",{enumerable:!0,get:function(){return n.DrawerActions}}),Object.defineProperty(_e,"DrawerRouter",{enumerable:!0,get:function(){return n.DrawerRouter}}),Object.defineProperty(_e,"StackActions",{enumerable:!0,get:function(){return o.StackActions}}),Object.defineProperty(_e,"StackRouter",{enumerable:!0,get:function(){return o.StackRouter}}),Object.defineProperty(_e,"TabActions",{enumerable:!0,get:function(){return u.TabActions}}),Object.defineProperty(_e,"TabRouter",{enumerable:!0,get:function(){return u.TabRouter}}),Object.defineProperty(_e,"CommonActions",{enumerable:!0,get:function(){return e}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2]),o=r(_d[3]),u=r(_d[4]),c=r(_d[5]);Object.keys(c).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return c[e]}})})},370,[371,372,374,377,375,379]);
5911__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.goBack=function(){return{type:'GO_BACK'}},e.navigate=function(...t){if('string'==typeof t[0]){const[n,o,p]=t;return'boolean'==typeof p&&console.warn("Passing a boolean as the third argument to 'navigate' is deprecated. Pass '{ merge: true }' instead."),{type:'NAVIGATE',payload:{name:n,params:o,merge:'boolean'==typeof p?p:p?.merge,pop:p?.pop}}}{const n=t[0]||{};if(!('name'in n))throw new Error('You need to specify a name when calling navigate with an object as the argument. See https://reactnavigation.org/docs/navigation-actions#navigate for usage.');return{type:'NAVIGATE',payload:n}}},e.navigateDeprecated=function(...t){if('string'==typeof t[0])return{type:'NAVIGATE_DEPRECATED',payload:{name:t[0],params:t[1]}};{const n=t[0]||{};if(!('name'in n))throw new Error('You need to specify a name when calling navigateDeprecated with an object as the argument. See https://reactnavigation.org/docs/navigation-actions#navigatelegacy for usage.');return{type:'NAVIGATE_DEPRECATED',payload:n}}},e.reset=function(t){return{type:'RESET',payload:t}},e.setParams=function(t){return{type:'SET_PARAMS',payload:{params:t}}},e.replaceParams=function(t){return{type:'REPLACE_PARAMS',payload:{params:t}}},e.preload=function(t,n){return{type:'PRELOAD',payload:{name:t,params:n}}}},371,[]);
5912__d(function(g,_r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"BaseRouter",{enumerable:!0,get:function(){return s}});var t=_r(d[0]);const s={getStateForAction(s,n){switch(n.type){case'SET_PARAMS':case'REPLACE_PARAMS':{const t=n.source?s.routes.findIndex(t=>t.key===n.source):s.index;return-1===t?null:Object.assign({},s,{routes:s.routes.map((s,r)=>r===t?Object.assign({},s,{params:'REPLACE_PARAMS'===n.type?n.payload.params:Object.assign({},s.params,n.payload.params)}):s)})}case'RESET':{const r=n.payload;return 0===r.routes.length||r.routes.some(t=>!s.routeNames.includes(t.name))?null:!1===r.stale?s.routeNames.length!==r.routeNames.length||r.routeNames.some(t=>!s.routeNames.includes(t))?null:Object.assign({},r,{routes:r.routes.map(s=>s.key?s:Object.assign({},s,{key:`${s.name}
5912-${(0,t.nanoid)()}`}))}):r}default:return null}},shouldActionChangeFocus:t=>'NAVIGATE'===t.type||'NAVIGATE_DEPRECATED'===t.type}},372,[373]);
5913__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"nanoid",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"customAlphabet",{enumerable:!0,get:function(){return t}});let t=(t,n=21)=>(o=n)=>{let u='',l=0|o;for(;l--;)u+=t[Math.random()*t.length|0];return u},n=(t=21)=>{let n='',o=0|t;for(;o--;)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return n}},373,[]);
5914__d(function(g,r,i,a,m,_e,d){"use strict";const e=["defaultStatus"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DrawerActions",{enumerable:!0,get:function(){return c}}),_e.DrawerRouter=function(t){let{defaultStatus:o="closed"}=t,l=(0,s.default)(t,e);const y=(0,u.TabRouter)(l),R=e=>Boolean(e.history?.some(e=>'drawer'===e.type)),A=e=>R(e)?e:Object.assign({},e,{history:[...e.history,{type:'drawer',status:'open'===o?'closed':'open'}]}),p=e=>R(e)?Object.assign({},e,{history:e.history.filter(e=>'drawer'!==e.type)}):e,E=e=>'open'===o?p(e):A(e),O=e=>'open'===o?A(e):p(e);return Object.assign({},y,{type:'drawer',getInitialState({routeNames:e,routeParamList:t,routeGetIdList:s}){const u=y.getInitialState({routeNames:e,routeParamList:t,routeGetIdList:s});return Object.assign({},u,{default:o,stale:!1,type:'drawer',key:`drawer-${(0,n.nanoid)()}`})},getRehydratedState(e,{routeNames:t,routeParamList:s,routeGetIdList:u}){if(!1===e.stale)return e;let c=y.getRehydratedState(e,{routeNames:t,routeParamList:s,routeGetIdList:u});return R(e)&&(c=p(c),c=A(c)),Object.assign({},c,{default:o,type:'drawer',key:`drawer-${(0,n.nanoid)()}`})},getStateForRouteFocus(e,t){const o=y.getStateForRouteFocus(e,t);return O(o)},getStateForAction(e,t,o){switch(t.type){case'OPEN_DRAWER':return E(e);case'CLOSE_DRAWER':return O(e);case'TOGGLE_DRAWER':return R(e)?p(e):A(e);case'JUMP_TO':case'NAVIGATE':case'NAVIGATE_DEPRECATED':{const s=y.getStateForAction(e,t,o);return null!=s&&s.index!==e.index?O(s):s}case'GO_BACK':return R(e)?p(e):y.getStateForAction(e,t,o);default:return y.getStateForAction(e,t,o)}},actionCreators:c})};var t,o=r(d[0]),s=(t=o)&&t.__esModule?t:{default:t},n=r(d[1]),u=r(d[2]);const c=Object.assign({},u.TabActions,{openDrawer:()=>({type:'OPEN_DRAWER'}),closeDrawer:()=>({type:'CLOSE_DRAWER'}),toggleDrawer:()=>({type:'TOGGLE_DRAWER'})})},374,[129,373,375]);
5915__d(function(g,_r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TabActions",{enumerable:!0,get:function(){return n}}),e.TabRouter=function({initialRouteName:o,backBehavior:y="firstRoute"}){return Object.assign({},r.BaseRouter,{type:'tab',getInitialState({routeNames:r,routeParamList:s}){const n=void 0!==o&&r.includes(o)?r.indexOf(o):0,u=r.map(r=>({name:r,key:`${r}-${(0,t.nanoid)()}`,params:s[r]})),l=i(u,n,y,o);return{stale:!1,type:'tab',key:`tab-${(0,t.nanoid)()}`,index:n,routeNames:r,history:l,routes:u,preloadedRouteKeys:[]}},getRehydratedState(r,{routeNames:s,routeParamList:n}){const i=r;if(!1===i.stale)return i;const l=s.map(r=>{const s=i.routes.find(t=>t.name===r);return Object.assign({},s,{name:r,key:s&&s.name===r&&s.key?s.key:`${r}-${(0,t.nanoid)()}`,params:void 0!==n[r]?Object.assign({},n[r],s?s.params:void 0):s?s.params:void 0})}),p=Math.min(Math.max(s.indexOf(i.routes[i?.index??0]?.name),0),l.length-1),c=l.map(t=>t.key),f=i.history?.filter(t=>c.includes(t.key))??[];return u({stale:!1,type:'tab',key:`tab-${(0,t.nanoid)()}`,index:p,routeNames:s,history:f,routes:l,preloadedRouteKeys:i.preloadedRouteKeys?.filter(t=>c.includes(t))??[]},p,y,o)},getStateForRouteNamesChange(r,{routeNames:s,routeParamList:n,routeKeyChanges:u}){const l=s.map(s=>r.routes.find(t=>t.name===s&&!u.includes(t.name))||{name:s,key:`${s}-${(0,t.nanoid)()}`,params:n[s]}),p=Math.max(0,s.indexOf(r.routes[r.index].name));let c=r.history.filter(t=>'route'!==t.type||l.find(r=>r.key===t.key));return c.length||(c=i(l,p,y,o)),Object.assign({},r,{history:c,routeNames:s,routes:l,index:p})},getStateForRouteFocus(t,r){const s=t.routes.findIndex(t=>t.key===r);return-1===s||s===t.index?t:u(t,s,y,o)},getStateForAction(n,i,{routeParamList:l,routeGetIdList:p}){switch(i.type){case'JUMP_TO':case'NAVIGATE':case'NAVIGATE_DEPRECATED':{const r=n.routes.findIndex(t=>t.name===i.payload.name);if(-1===r)return null;const c=u(Object.assign({},n,{routes:n.routes.map(r=>{if(r.name!==i.payload.name)return r;const o=p[r.name],n=o?.({params:r.params}),u=o?.({params:i.payload.params}),y=n===u?r.key:`${r.name}
5915-${(0,t.nanoid)()}`;let c;c='NAVIGATE'!==i.type&&'NAVIGATE_DEPRECATED'!==i.type||!i.payload.merge||n!==u?(0,s.createParamsFromAction)({action:i,routeParamList:l}):void 0!==i.payload.params||void 0!==l[r.name]?Object.assign({},l[r.name],r.params,i.payload.params):r.params;const f='NAVIGATE'===i.type&&null!=i.payload.path?i.payload.path:r.path;return c!==r.params||f!==r.path?Object.assign({},r,{key:y,path:f,params:c}):r})}),r,y,o);return Object.assign({},c,{preloadedRouteKeys:c.preloadedRouteKeys.filter(t=>t!==n.routes[c.index].key)})}case'SET_PARAMS':case'REPLACE_PARAMS':{const t=r.BaseRouter.getStateForAction(n,i);if(null!==t){const r=t.index;if(null!=r){const s=t.routes[r],o=n.history.findLastIndex(t=>t.key===s.key);let i=n.history;return-1!==o&&(i=[...n.history],i[o]=Object.assign({},i[o],{params:s.params})),Object.assign({},t,{history:i})}}return t}case'GO_BACK':{if(1===n.history.length)return null;const t=n.history[n.history.length-2],r=t?.key,s=n.routes.findLastIndex(t=>t.key===r);if(-1===s)return null;let o=n.routes;return'fullHistory'===y&&o[s].params!==t.params&&(o=[...n.routes],o[s]=Object.assign({},o[s],{params:t.params})),Object.assign({},n,{routes:o,preloadedRouteKeys:n.preloadedRouteKeys.filter(t=>t!==n.routes[s].key),history:n.history.slice(0,-1),index:s})}case'PRELOAD':{const r=n.routes.findIndex(t=>t.name===i.payload.name);if(-1===r)return null;const o=n.routes[r],u=p[o.name],y=u?.({params:o.params}),c=u?.({params:i.payload.params}),f=y===c?o.key:`${o.name}-${(0,t.nanoid)()}`,k=(0,s.createParamsFromAction)({action:i,routeParamList:l}),h=k!==o.params?Object.assign({},o,{key:f,params:k}):o;return Object.assign({},n,{preloadedRouteKeys:n.preloadedRouteKeys.filter(t=>t!==o.key).concat(h.key),routes:n.routes.map((t,s)=>s===r?h:t),history:f===o.key?n.history:n.history.filter(t=>t.key!==o.key)})}default:return r.BaseRouter.getStateForAction(n,i)}},actionCreators:n})};var t=_r(d[0]),r=_r(d[1]),s=_r(d[2]);const o='route',n={jumpTo:(t,r)=>({type:'JUMP_TO',payload:{name:t,params:r}})},i=(t,r,s,n)=>{const i=[{type:o,key:t[r].key}];let u;switch(s){case'order':for(let s=r;s>0;
5915s--)i.unshift({type:o,key:t[s-1].key});break;case'firstRoute':0!==r&&i.unshift({type:o,key:t[0].key});break;case'initialRoute':u=t.findIndex(t=>t.name===n),u=-1===u?0:u,r!==u&&i.unshift({type:o,key:t[u].key})}return i},u=(t,r,s,n)=>{let u=t.history;if('history'===s||'fullHistory'===s){const n=t.routes[r];if('history'===s)u=u.filter(t=>'route'===t.type&&t.key!==n.key);else if('fullHistory'===s){const t=u.findLastIndex(t=>'route'===t.type);n.key===u[t]?.key&&(u=[...u.slice(0,t),...u.slice(t+1)])}u=u.concat({type:o,key:n.key,params:'fullHistory'===s?n.params:void 0})}else u=i(t.routes,r,s,n);return Object.assign({},t,{index:r,history:u})}},375,[373,372,376]);
5916__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createParamsFromAction=function({action:t,routeParamList:n}){const{name:o,params:c}=t.payload;return void 0!==n[o]?Object.assign({},n[o],c):c}},376,[]);
5917__d(function(g,_r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"StackActions",{enumerable:!0,get:function(){return n}}),e.StackRouter=function(i){const p=Object.assign({},o.BaseRouter,{type:'stack',getInitialState({routeNames:o,routeParamList:s}){const r=void 0!==i.initialRouteName&&o.includes(i.initialRouteName)?i.initialRouteName:o[0];return{stale:!1,type:'stack',key:`stack-${(0,t.nanoid)()}`,index:0,routeNames:o,preloadedRoutes:[],routes:[{key:`${r}-${(0,t.nanoid)()}`,name:r,params:s[r]}]}},getRehydratedState(o,{routeNames:s,routeParamList:r}){const n=o;if(!1===n.stale)return n;const p=n.routes.filter(t=>s.includes(t.name)).map(o=>Object.assign({},o,{key:o.key||`${o.name}-${(0,t.nanoid)()}`,params:void 0!==r[o.name]?Object.assign({},r[o.name],o.params):o.params})),u=n.preloadedRoutes?.filter(t=>s.includes(t.name)).map(o=>Object.assign({},o,{key:o.key||`${o.name}-${(0,t.nanoid)()}`,params:void 0!==r[o.name]?Object.assign({},r[o.name],o.params):o.params}))??[];if(0===p.length){const o=void 0!==i.initialRouteName?i.initialRouteName:s[0];p.push({key:`${o}-${(0,t.nanoid)()}`,name:o,params:r[o]})}return{stale:!1,type:'stack',key:`stack-${(0,t.nanoid)()}`,index:p.length-1,routeNames:s,routes:p,preloadedRoutes:u}},getStateForRouteNamesChange(o,{routeNames:s,routeParamList:r,routeKeyChanges:n}){const p=o.routes.filter(t=>s.includes(t.name)&&!n.includes(t.name));if(0===p.length){const o=void 0!==i.initialRouteName&&s.includes(i.initialRouteName)?i.initialRouteName:s[0];p.push({key:`${o}-${(0,t.nanoid)()}`,name:o,params:r[o]})}return Object.assign({},o,{routeNames:s,routes:p,index:Math.min(o.index,p.length-1)})},getStateForRouteFocus(t,o){const s=t.routes.findIndex(t=>t.key===o);return-1===s||s===t.index?t:Object.assign({},t,{index:s,routes:t.routes.slice(0,s+1)})},getStateForAction(n,i,u){const{routeParamList:l}=u;switch(i.type){case'REPLACE':{const t=i.target===n.key&&i.source?n.routes.findIndex(t=>t.key===i.source):n.index;if(-1===t)return null;if(!n.routeNames.includes(i.payload.name))return null;const o=u.routeGetIdList[i.payload.name],s=o?.({params:i.payload.params});let p=n.preloadedRoutes.find(t=>t.name===i.payload.name&&s===o?.({params:t.params}));return p||(p=(0,r.createRouteFromAction)({action:i,routeParamList:l})),Object.assign({},n,{routes:n.routes.map((o,s)=>s===t?p:o),preloadedRoutes:n.preloadedRoutes.filter(t=>t.key!==p.key)})}case'PUSH':case'NAVIGATE':{if(!n.routeNames.includes(i.payload.name))return null;const o=u.routeGetIdList[i.payload.name],r=o?.({params:i.payload.params});let p,c,y;if(void 0!==r)p=n.routes.findLast(t=>t.name===i.payload.name&&r===o?.({params:t.params}));else if('NAVIGATE'===i.type){const t=n.routes[n.index];i.payload.name===t.name?p=t:i.payload.pop&&(p=n.routes.findLast(t=>t.name===i.payload.name))}if(p||(p=n.preloadedRoutes.find(t=>t.name===i.payload.name&&r===o?.({params:t.params}))),c='NAVIGATE'===i.type&&i.payload.merge&&p?void 0!==i.payload.params||void 0!==l[i.payload.name]?Object.assign({},l[i.payload.name],p.params,i.payload.params):p.params:(0,s.createParamsFromAction)({action:i,routeParamList:l}),p)if('NAVIGATE'===i.type&&i.payload.pop){y=[];for(const t of n.routes){if(t.key===p.key){y.push(Object.assign({},p,{path:void 0!==i.payload.path?i.payload.path:p.path,params:c}));break}y.push(t)}}else y=n.routes.filter(t=>t.key!==p.key),y.push(Object.assign({},p,{path:'NAVIGATE'===i.type&&void 0!==i.payload.path?i.payload.path:p.path,params:c}));else y=[...n.routes,{key:`${i.payload.name}
5917-${(0,t.nanoid)()}`,name:i.payload.name,path:'NAVIGATE'===i.type?i.payload.path:void 0,params:c}];return Object.assign({},n,{index:y.length-1,preloadedRoutes:n.preloadedRoutes.filter(t=>y[y.length-1].key!==t.key),routes:y})}case'NAVIGATE_DEPRECATED':{if(!n.routeNames.includes(i.payload.name))return null;if(n.preloadedRoutes.find(t=>t.name===i.payload.name&&p===o?.({params:t.params})))return null;let t=-1;const o=u.routeGetIdList[i.payload.name],p=o?.({params:i.payload.params});if(t=void 0!==p?n.routes.findIndex(t=>t.name===i.payload.name&&p===o?.({params:t.params})):n.routes[n.index].name===i.payload.name?n.index:n.routes.findLastIndex(t=>t.name===i.payload.name),-1===t){const t=[...n.routes,(0,r.createRouteFromAction)({action:i,routeParamList:l})];return Object.assign({},n,{routes:t,index:t.length-1})}const c=n.routes[t];let y;return y=i.payload.merge?void 0!==i.payload.params||void 0!==l[c.name]?Object.assign({},l[c.name],c.params,i.payload.params):c.params:(0,s.createParamsFromAction)({action:i,routeParamList:l}),Object.assign({},n,{index:t,routes:[...n.routes.slice(0,t),y!==c.params?Object.assign({},c,{params:y}):n.routes[t]]})}case'POP':{const t=i.target===n.key&&i.source?n.routes.findIndex(t=>t.key===i.source):n.index;if(t>0){const o=Math.max(t-i.payload.count+1,1),s=n.routes.slice(0,o).concat(n.routes.slice(t+1));return Object.assign({},n,{index:s.length-1,routes:s})}return null}case'POP_TO_TOP':return p.getStateForAction(n,{type:'POP',payload:{count:n.routes.length-1}},u);case'POP_TO':{const t=i.target===n.key&&i.source?n.routes.findLastIndex(t=>t.key===i.source):n.index;if(-1===t)return null;if(!n.routeNames.includes(i.payload.name))return null;let o=-1;const p=u.routeGetIdList[i.payload.name],c=p?.({params:i.payload.params});if(void 0!==c)o=n.routes.findIndex(t=>t.name===i.payload.name&&c===p?.({params:t.params}));else if(n.routes[t].name===i.payload.name)o=t;else for(let s=t;s>=0;s--)if(n.routes[s].name===i.payload.name){o=s;break}if(-1===o){let o=n.preloadedRoutes.find(t=>t.name===i.payload.name&&c===p?.({params:t.params}));o||(o=(0,r.createRouteFromAction)({action:i,routeParamList:l}));const s=n.routes.slice(0,t).concat(o);return Object.assign({},n,{index:s.length-1,routes:s,preloadedRoutes:n.preloadedRoutes.filter(t=>t.key!==o.key)})}const y=n.routes[o];let f;return f=i.payload.merge?void 0!==i.payload.params||void 0!==l[y.name]?Object.assign({},l[y.name],y.params,i.payload.params):y.params:(0,s.createParamsFromAction)({action:i,routeParamList:l}),Object.assign({},n,{index:o,routes:[...n.routes.slice(0,o),f!==y.params?Object.assign({},y,{params:f}):n.routes[o]]})}case'GO_BACK':return n.index>0?p.getStateForAction(n,{type:'POP',payload:{count:1},target:i.target,source:i.source},u):null;case'PRELOAD':{const t=u.routeGetIdList[i.payload.name],o=t?.({params:i.payload.params});let p;return void 0!==o&&(p=n.routes.find(s=>s.name===i.payload.name&&o===t?.({params:s.params}))),p?Object.assign({},n,{routes:n.routes.map(t=>t.key!==p?.key?t:Object.assign({},t,{params:(0,s.createParamsFromAction)({action:i,routeParamList:l})}))}):Object.assign({},n,{preloadedRoutes:n.preloadedRoutes.filter(s=>s.name!==i.payload.name||o!==t?.({params:s.params})).concat((0,r.createRouteFromAction)({action:i,routeParamList:l}))})}default:return o.BaseRouter.getStateForAction(n,i)}},actionCreators:n});return p};var t=_r(d[0]),o=_r(d[1]),s=_r(d[2]),r=_r(d[3]);const n={replace:(t,o)=>({type:'REPLACE',payload:{name:t,params:o}}),push:(t,o)=>({type:'PUSH',payload:{name:t,params:o}}),pop:(t=1)=>({type:'POP',payload:{count:t}}),popToTop:()=>({type:'POP_TO_TOP'}),popTo:(t,o,s)=>('boolean'==typeof s&&console.warn("Passing a boolean as the third argument to 'popTo' is deprecated. Pass '{ merge: true }' instead."),{type:'POP_TO',payload:{name:t,params:o,merge:'boolean'==typeof s?s:s?.merge}})}},377,[373,372,376,378]);
5918__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createRouteFromAction=function({action:n,routeParamList:c}){const{name:u}=n.payload;return{key:`${u}-${(0,t.nanoid)()}`,name:u,params:(0,o.createParamsFromAction)({action:n,routeParamList:c})}};var t=r(d[0]),o=r(d[1])},378,[373,376]);
5919__d(function(g,r,i,a,m,e,d){},379,[]);
5920__d(function(g,r,i,a,m,_e,d){"use strict";
5920Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},380,[381]);
5921__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),n='undefined'!=typeof document||'undefined'!=typeof navigator&&'ReactNative'===navigator.product?t.useLayoutEffect:t.useEffect;m.exports=function(u){var f=t.useRef(u),c=t.useRef(function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return f.current.apply(this,t)}).current;return n(function(){f.current=u}),c}},381,[34]);
5922__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.checkDuplicateRouteNames=function(t){const n=[],s=(t,c)=>{c.routes.forEach(c=>{const o=t?`${t} > ${c.name}`:c.name;c.state?.routeNames?.forEach(t=>{t===c.name&&n.push([o,`${o} > ${c.name}`])}),c.state&&s(o,c.state)})};return s('',t),n}},382,[]);
5923__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.checkSerializable=function(n){return t(n,new Set,[])};const t=(n,i,o)=>{if(null==n||'boolean'==typeof n||'number'==typeof n||'string'==typeof n)return{serializable:!0};if('[object Object]'!==Object.prototype.toString.call(n)&&!Array.isArray(n))return{serializable:!1,location:o,reason:'function'==typeof n?'Function':String(n)};if(i.has(n))return{serializable:!1,reason:'Circular reference',location:o};if(i.add(n),Array.isArray(n))for(let l=0;l<n.length;l++){const c=t(n[l],new Set(i),[...o,l]);if(!c.serializable)return c}else for(const l in n){const c=t(n[l],new Set(i),[...o,l]);if(!c.serializable)return c}return{serializable:!0}}},383,[]);
5924__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"NOT_INITIALIZED_ERROR",{enumerable:!0,get:function(){return n}}),e.createNavigationContainerRef=function(){const o=[...Object.keys(t.CommonActions),'addListener','removeListener','resetRoot','dispatch','isFocused','canGoBack','getRootState','getState','getParent','getCurrentRoute','getCurrentOptions'],s={},c=(t,n)=>{s[t]&&(s[t]=s[t].filter(t=>t!==n))};let u=null;return Object.assign({get current(){return u},set current(t){u=t,null!=t&&Object.entries(s).forEach(([n,o])=>{o.forEach(o=>{t.addListener(n,o)})})},isReady:()=>null!=u&&u.isReady()},o.reduce((t,o)=>(t[o]=(...t)=>{if(null!=u)return u[o](...t);switch(o){case'addListener':{const[n,o]=t;return s[n]=s[n]||[],s[n].push(o),()=>c(n,o)}case'removeListener':{const[n,o]=t;c(n,o);break}default:console.error(n)}},t),{}))};var t=r(d[0]);const n="The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details."},384,[370]);
5925__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DeprecatedNavigationInChildContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(!1)},385,[34]);
5926__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"SingleNavigatorContext",{enumerable:!0,get:function(){return o}}),_e.EnsureSingleNavigator=function({children:u}){const c=e.useRef(void 0),s=e.useMemo(()=>({register(e){const t=c.current;if(void 0!==t&&e!==t)throw new Error(n);c.current=e},unregister(e){e===c.current&&(c.current=void 0)}}),[]);return(0,t.jsx)(o.Provider,{value:s,children:u})};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]);const n="Another navigator is already registered for this container. You likely have multiple navigators under a single \"NavigationContainer\" or \"Screen\". Make sure each navigator is under a separate \"Screen\" container. See https://reactnavigation.org/docs/nesting-navigators for a guide on nesting.",o=e.createContext(void 0)},386,[34,175]);
5927__d(function(g,r,i,a,m,e,d){"use strict";
5927Object.defineProperty(e,'__esModule',{value:!0}),e.findFocusedRoute=function(t){let n=t;for(;null!=n?.routes[n.index??0].state;)n=n.routes[n.index??0].state;const u=n?.routes[n?.index??0];return u}},387,[]);
5928__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NavigationBuilderContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext({onDispatchAction:()=>{},onOptionsChange:()=>{},scheduleUpdate:()=>{throw new Error("Couldn't find a context for scheduling updates.")},flushUpdates:()=>{throw new Error("Couldn't find a context for flushing updates.")}})},388,[34]);
5929__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NavigationContainerRefContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},389,[34]);
5930__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NavigationIndependentTreeContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(!1)},390,[34]);
5931__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NavigationStateContext",{enumerable:!0,get:function(){return n}});var t=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),e.default=t,e})(r(_d[0]));const e="Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions.",n=t.createContext({isDefault:!0,get getKey(){throw new Error(e)},get setKey(){throw new Error(e)},get getState(){throw new Error(e)},get setState(){throw new Error(e)},get getIsInitial(){throw new Error(e)}})},391,[34]);
5932__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.ThemeProvider=function({value:u,children:o}){return(0,t.jsx)(n.ThemeContext.Provider,{value:u,children:o})},r(d[0]);var n=r(d[1]),t=r(d[2])},392,[34,393,175]);
5933__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ThemeContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0);e.displayName='ThemeContext'},393,[34]);
5934__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"UnhandledActionContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},394,[34]);
5935__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useChildListeners=function(){const{current:t}=e.useRef({action:[],focus:[]}),n=e.useCallback((e,n)=>{t[e].push(n);let u=!1;return()=>{const c=t[e].indexOf(n);!u&&c>-1&&(u=!0,t[e].splice(c,1))}},[t]);return{listeners:t,addListener:n}};
5935var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]))},395,[34]);
5936__d(function(g,r,_i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useEventEmitter=function(t){const n=e.useRef(t);e.useEffect(()=>{n.current=t});const u=e.useRef(Object.create(null)),c=e.useCallback(e=>{const t=(t,n)=>{const c=u.current[t]?u.current[t][e]:void 0;if(!c)return;const o=c.indexOf(n);o>-1&&c.splice(o,1)};return{addListener:(n,c)=>{u.current[n]=u.current[n]||{},u.current[n][e]=u.current[n][e]||[],u.current[n][e].push(c);let o=!1;return()=>{o||(o=!0,t(n,c))}},removeListener:t}},[]),o=e.useCallback(({type:e,data:t,target:c,canPreventDefault:o})=>{const i=u.current[e]||{},s=void 0!==c?i[c]?.slice():[].concat(...Object.keys(i).map(e=>i[e])).filter((e,t,n)=>n.lastIndexOf(e)===t),f={get type(){return e}};if(void 0!==c&&Object.defineProperty(f,'target',{enumerable:!0,get:()=>c}),void 0!==t&&Object.defineProperty(f,'data',{enumerable:!0,get:()=>t}),o){let e=!1;Object.defineProperties(f,{defaultPrevented:{enumerable:!0,get:()=>e},preventDefault:{enumerable:!0,value(){e=!0}}})}return n.current?.(f),s?.forEach(e=>e(f)),f},[]);return e.useMemo(()=>({create:c,emit:o}),[c,o])};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]))},396,[34]);
5937__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useKeyedChildListeners=function(){const{current:t}=e.useRef(Object.assign(Object.create(null),{getState:{},beforeRemove:{}})),n=e.useCallback((e,n,u)=>(t[e][n]=u,()=>{t[e][n]=void 0}),[t]);return{keyedListeners:t,addKeyedListener:n}};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]))},397,[34]);
5938__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useNavigationIndependentTree=function(){return e.useContext(t.NavigationIndependentTreeContext)};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},398,[34,390]);
5939__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useOptionsGetters=function({key:u,options:c,navigation:o}){const s=e.useRef(c),l=e.useRef({}),{onOptionsChange:f}=e.useContext(t.NavigationBuilderContext),{addOptionsGetter:d}=e.useContext(n.NavigationStateContext),O=e.useCallback(()=>{const e=o?.isFocused()??!0,t=Object.keys(l.current).length;e&&!t&&f(s.current??{})},[o,f]);e.useEffect(()=>(s.current=c,O(),o?.addListener('focus',O)),[o,c,O]);const b=e.useCallback(()=>{for(const e in l.current)if(e in l.current){const t=l.current[e]?.();if(null!==t)return t}return null},[]),p=e.useCallback(()=>{if(!(o?.isFocused()??!0))return null;const e=b();return null!==e?e:s.current},[o,b]);e.useEffect(()=>d?.(u,p),[p,d,u]);return{addOptionsGetter:e.useCallback((e,t)=>(l.current[e]=t,O(),()=>{delete l.current[e],O()}),[O]),getCurrentOptions:p}};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2])},399,[34,388,391]);
5940__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useSyncState=function(e){const u=t.useRef(c(e)).current,s=t.useSyncExternalStore(u.subscribe,u.getState,u.getState);t.useDebugValue(s);const o=t.useRef([]),f=(0,n.default)(e=>{o.current.push(e)}),d=(0,n.default)(()=>{const e=o.current;o.current=[],0!==e.length&&u.batchUpdates(()=>{for(const t of e)t()})});return{state:s,getState:u.getState,setState:u.setState,scheduleUpdate:f,flushUpdates:d}};
5940var e,t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(u){var n=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(t,u,n.get?n:{enumerable:!0,get:function(){return e[u]}})}),t.default=e,t})(r(_d[0])),u=r(_d[1]),n=(e=u)&&e.__esModule?e:{default:e},s=r(_d[2]);const c=e=>{const t=[];let u,n=!1;let c=!1,o=!1;return{getState:()=>(n||(n=!0,u=(0,s.deepFreeze)(e())),u),setState:e=>{u=(0,s.deepFreeze)(e),o=!0,c||t.forEach(e=>e())},batchUpdates:e=>{c=!0,e(),c=!1,o&&(o=!1,t.forEach(e=>e()))},subscribe:e=>(t.push(e),()=>{const u=t.indexOf(e);u>-1&&t.splice(u,1)})}}},400,[34,380,401]);
5941__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"deepFreeze",{enumerable:!0,get:function(){return n}});const t=t=>'object'==typeof t&&null!==t&&Object.getPrototypeOf(t)===Object.prototype,n=t=>t},401,[]);
5942__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.createNavigatorFactory=function(c){const u=c.displayName??c.name??'Navigator';return function(f){if(null!=f){const p=(0,o.createComponentForStaticNavigation)({Navigator:c,Screen:n.Screen,Group:t.Group,config:f},u);return{config:f,with(t){const n=()=>e.createElement(t,{Navigator:p});return n.displayName=`${u}With`,{config:f,getComponent:()=>n}},getComponent:()=>p}}return{Navigator:c,Screen:n.Screen,Group:t.Group}}};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2]),o=r(_d[3])},402,[34,403,404,405]);
5943__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.Group=function(u){return null}},403,[]);
5944__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.Screen=function(n){return null}},404,[]);
5945__d(function(g,r,i,_a,m,_e,_d){"use strict";const e=["screen","if"],n=["screens","groups"],t=["if"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.createComponentForStaticNavigation=function(e,s){const{Navigator:o,Group:a,Screen:p,config:u}=e,{screens:l,groups:h}=u,O=(0,c.default)(u,n);if(null==l&&null==h)throw new Error("Couldn't find a 'screens' or 'groups' property. Make sure to define your screens under a 'screens' property in the configuration.");const y=[];for(const e in u)'screens'===e&&l&&y.push(...d(p,l)),'groups'===e&&h&&y.push(...Object.entries(h).map(([e,n])=>{let{if:s}=n,o=(0,c.default)(n,t);const u=d(p,o.screens);return()=>{const n=u.map(e=>e());return null==s||s()?(0,f.jsx)(a,Object.assign({navigationKey:e},o,{children:n}),e):null}}));if(0===y.length)throw new Error("Couldn't find any screens in the 'screens' or 'groups' property. Make sure to define at least one screen in the configuration.");const j=e=>{const n=y.map(e=>e()),t='function'==typeof e.screenOptions||'function'==typeof O.screenOptions?n=>Object.assign({},'function'==typeof O.screenOptions?O.screenOptions(n):O.screenOptions,'function'==typeof e.screenOptions?e.screenOptions(n):e.screenOptions):Object.assign({},O.screenOptions,e.screenOptions),s='function'==typeof e.screenListeners||'function'==typeof O.screenListeners?n=>Object.assign({},'function'==typeof O.screenListeners?O.screenListeners(n):O.screenListeners,'function'==typeof e.screenListeners?e.screenListeners(n):e.screenListeners):Object.assign({},O.screenListeners,e.screenListeners);return(0,f.jsx)(o,Object.assign({},O,e,{screenOptions:t,screenListeners:s,children:n}))};return j.displayName=s,j},_e.createComponentForStaticNavigationDeprecated=function(e){return console.warn('`createComponentForStaticNavigation` is deprecated. Use `tree.getComponent()` instead.'),e.getComponent()},_e.createPathConfigForStaticNavigation=function(e,n,t){let s,o=!1;const c=(e,n,a)=>{const p=(e,n)=>Object.fromEntries(Object.entries(e).sort(([e],[t])=>e===n?-1:t===n?1:0).map(([e,p])=>{const u={};let f;'linking'in p&&('string'==typeof p.linking?u.path=p.linking:Object.assign(u,p.linking),'string'==typeof u.path&&(u.path=u.path.replace(/^\//,'').replace(/\/$/,'')));const l=a||null!=u.path&&''!==u.path;return'config'in p?f=c(p,void 0,l):'screen'in p&&'config'in p.screen&&(p.screen.config.screens||p.screen.config.groups)&&(f=c(p.screen,void 0,l)),f&&(u.screens=f),!t||u.screens||'linking'in p&&null==p.linking||(null!=u.path?a||(e===n&&null!=u.path?o=!0:''===u.path&&(s=void 0)):(a||null!=s||(s=u),u.path=e.replace(/([A-Z]+)/g,'-$1').replace(/^-/,'').toLowerCase())),[e,u]}).filter(([,e])=>Object.keys(e).length>0)),u={};for(const t in e.config)'screens'===t&&e.config.screens&&Object.assign(u,p(e.config.screens,n?.initialRouteName??e.config.initialRouteName)),'groups'===t&&e.config.groups&&Object.entries(e.config.groups).forEac
5945h(([,t])=>{Object.assign(u,p(t.screens,n?.initialRouteName??e.config.initialRouteName))});if(0!==Object.keys(u).length)return u},a=c(e,n,!1);t&&s&&!o&&(s.path='');return a};var s,o=r(_d[0]),c=(s=o)&&s.__esModule?s:{default:s},a=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n})(r(_d[1])),p=r(_d[2]),u=r(_d[3]),f=r(_d[4]);const l=a.memo(({component:e})=>{const n=(0,u.useRoute)();return a.createElement(e,{route:n})});l.displayName='Memo(Screen)';const d=(n,t)=>Object.entries(t).map(([t,s])=>{let o,u,d={},h=!1;if('screen'in s){const{screen:n,if:t}=s,a=(0,c.default)(s,e);u=t,d=a,(0,p.isValidElementType)(n)?o=n:'config'in n&&(h=!0,o=n.getComponent())}else(0,p.isValidElementType)(s)?o=s:'config'in s&&(h=!0,o=s.getComponent());if(null==o)throw new Error(`Couldn't find a 'screen' property for the screen '${t}'. This can happen if you passed 'undefined'. You likely forgot to export your component from the file it's defined in, or mixed up default import and named import when importing.`);const O=h?a.createElement(o,{}):(0,f.jsx)(l,{component:o});return()=>null==u||u()?(0,f.jsx)(n,Object.assign({name:t},d,{children:()=>O}),t):null})},405,[129,34,406,408,175]);
5946__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},406,[407]);
5947__d(function(g,r,i,a,m,e,d){
5948/**
5949   * @license React
5950   * react-is.production.js
5951   *
5952   * Copyright (c) Meta Platforms, Inc. and affiliates.
5953   *
5954   * This source code is licensed under the MIT license found in the
5955   * LICENSE file in the root directory of this source tree.
5956   */
5957"use strict";var t=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function v(w){if("object"==typeof w&&null!==w){var v=w.$$typeof;switch(v){case t:switch(w=w.type){case n:case f:case c:case y:case p:case b:return w;default:switch(w=w&&w.$$typeof){case u:case l:case $:case S:case s:return w;default:return v}}case o:return v}}}e.ContextConsumer=s,e.ContextProvider=u,e.Element=t,e.ForwardRef=l,e.Fragment=n,e.Lazy=$,e.Memo=S,e.Portal=o,e.Profiler=f,e.StrictMode=c,e.Suspense=y,e.SuspenseList=p,e.isContextConsumer=function(t){return v(t)===s},e.isContextProvider=function(t){return v(t)===u},e.isElement=function(o){return"object"==typeof o&&null!==o&&o.$$typeof===t},e.isForwardRef=function(t){return v(t)===l},e.isFragment=function(t){return v(t)===n},e.isLazy=function(t){return v(t)===$},e.isMemo=function(t){return v(t)===S},e.isPortal=function(t){return v(t)===o},e.isProfiler=function(t){return v(t)===f},e.isStrictMode=function(t){return v(t)===c},e.isSuspense=function(t){return v(t)===y},e.isSuspenseList=function(t){return v(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===f||t===c||t===y||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===$||t.$$typeof===S||t.$$typeof===u||t.$$typeof===s||t.$$typeof===l||t.$$typeof===w||void 0!==t.getModuleId)},e.typeOf=v},407,[]);
5958__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useRoute=function(){const n=e.useContext(t.NavigationRouteContext);if(void 0===n)throw new Error("Couldn't find a route object. Is your component inside a screen in a navigator?");return n};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},408,[34,409]);
5959__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NavigationRouteContext",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"NamedRouteContextListContext",{enumerable:!0,get:function(){return c}}),_e.NavigationProvider=function({route:c,navigation:d,children:s}){const v=e.useContext(n.IsFocusedContext),l=e.useContext(n.FocusedRouteKeyContext),f=!(null!=v&&!v)&&l===c.key;return(0,o.jsx)(u.Provider,{value:c,children:(0,o.jsx)(t.NavigationContext.Provider,{value:d,children:(0,o.jsx)(n.IsFocusedContext.Provider,{value:f,children:s})})})};
5959var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2]),o=r(_d[3]);const u=e.createContext(void 0),c=e.createContext(void 0)},409,[34,410,411,175]);
5960__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NavigationContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},410,[34]);
5961__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FocusedRouteKeyContext",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"IsFocusedContext",{enumerable:!0,get:function(){return o}}),_e.useIsFocused=function(){const n=e.useContext(o),u=(0,t.useNavigation)(),c=void 0!==n,s=e.useCallback(e=>{if(c)return()=>{};const t=u.addListener('focus',e),n=u.addListener('blur',e);return()=>{t(),n()}},[c,u]),d=e.useSyncExternalStore(s,u.isFocused,u.isFocused);return n??d};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]);const n=e.createContext(void 0),o=e.createContext(void 0)},411,[34,412]);
5962__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useNavigation=function(){const o=e.useContext(t.NavigationContainerRefContext),u=e.useContext(n.NavigationContext);if(void 0===u&&void 0===o)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");return u??o};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2])},412,[34,389,410]);
5963__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"CurrentRenderContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},413,[34]);
5964__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getActionFromState=function(n,s){const o=s?t(s):{},c=null!=n.index?n.routes.slice(0,n.index+1):n.routes;if(0===c.length)return;if(!(1===c.length&&void 0===c[0].key||2===c.length&&void 0===c[0].key&&c[0].name===o?.initialRouteName&&void 0===c[1].key))return{type:'RESET',payload:n};const l=n.routes[n.index??n.routes.length-1];let p=l?.state,u=o?.screens?.[l?.name],h=Object.assign({},l.params);const y=l?{name:l.name,path:l.path,params:h}:void 0;y&&u?.screens&&Object.keys(u.screens).length&&(y.pop=!0);for(;p;){if(0===p.routes.length)return;const t=null!=p.index?p.routes.slice(0,p.index+1):p.routes,n=t[t.length-1];if(Object.assign(h,{initial:void 0,screen:void 0,params:void 0,state:void 0}),1===t.length&&void 0===t[0].key)h.initial=!0,h.screen=n.name;else{if(2!==t.length||void 0!==t[0].key||t[0].name!==u?.initialRouteName||void 0!==t[1].key){h.state=p;break}h.initial=!1,h.screen=n.name}n.state?(h.params=Object.assign({},n.params),h.pop=!0,h=h.params):(h.path=n.path,h.params=n.params),p=n.state,u=u?.screens?.[n.name],u?.screens&&Object.keys(u.screens).length&&(h.pop=!0)}(y?.params.screen||y?.params.state)&&(y.pop=!0);if(!y)return;return{type:'NAVIGATE',payload:y}};const t=t=>'object'==typeof t&&null!=t?{initialRouteName:t.initialRouteName,screens:null!=t.screens?n(t.screens):void 0}:{},n=n=>Object.entries(n).reduce((n,[s,o])=>(n[s]=t(o),n),{})},414,[]);
5965__d(function(g,r,i,a,m,e,d){"use strict";
5965Object.defineProperty(e,'__esModule',{value:!0}),e.getFocusedRouteNameFromRoute=function(n){const o=n[t.CHILD_STATE]??n.state,s=n.params;return o?o.routes[o.index??('string'==typeof o.type&&'stack'!==o.type?0:o.routes.length-1)].name:'string'==typeof s?.screen?s.screen:void 0};var t=r(d[0])},415,[416]);
5966__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["state"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"CHILD_STATE",{enumerable:!0,get:function(){return s}}),_e.useRouteCache=function(t){const n=c.useMemo(()=>({current:new Map}),[]);return n.current=t.reduce((t,c)=>{const f=n.current.get(c.key),{state:l}=c,d=(0,u.default)(c,e);let b;return b=f&&(0,o.isRecordEqual)(f,d)?f:d,Object.defineProperty(b,s,{enumerable:!1,configurable:!0,value:l}),t.set(c.key,b),t},new Map),Array.from(n.current.values())};var t,n=r(_d[0]),u=(t=n)&&t.__esModule?t:{default:t},c=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),o=r(_d[2]);const s=Symbol('CHILD_STATE')},416,[129,34,417]);
5967__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isRecordEqual=function(t,n){if(t===n)return!0;const c=Object.keys(t),u=Object.keys(n);if(c.length!==u.length)return!1;return c.every(c=>Object.is(t[c],n[c]))}},417,[]);
5968__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getPathFromState=function(t,o){if(null==t)throw Error(`Got '${String(t)}' for the navigation state. You must pass a valid state object.`);o&&(0,n.validatePathConfig)(o);const f=c(o);let p='/',u=t;const d={};for(;u;){let n,o,c='number'==typeof u.index?u.index:0,l=u.routes[c],h=f;const b=s(t),y=[];let j=!0;for(;l.name in h&&j;){if(n=h[l.name].parts,y.push(l.name),l.params){const e=h[l.name],t=Object.fromEntries(Object.entries(l.params).map(([t,n])=>{if(void 0===n){if(!e)return null;{const n=e.parts?.find(e=>e.param===t)?.optional;if(n)return null}}return[t,(e?.stringify?.[t]??String)(n)]}).filter(e=>null!=e));n?.length&&Object.assign(d,t),b===l&&(o=Object.assign({},t),n?.forEach(({param:e})=>{e&&o&&delete o[e]}))}if(h[l.name].screens&&void 0!==l.state){c='number'==typeof l.state.index?l.state.index:l.state.routes.length-1;const e=l.state.routes[c],t=h[l.name].screens;t&&e.name in t?(l=e,h=t):j=!1}else j=!1}if(void 0!==h[l.name]?p+=n?.map(({segment:e,param:t,optional:n})=>{if('*'===e)return l.name;if(t){const e=d[t];return void 0===e&&n?'':Array.from(String(e)).map(e=>/[^A-Za-z0-9\-._~!$&'()*+,;=:@]/g.test(e)?encodeURIComponent(e):e).join('')}return encodeURIComponent(e)}).join('/'):p+=encodeURIComponent(l.name),!o&&b.params&&(o=Object.fromEntries(Object.entries(b.params).map(([e,t])=>[e,String(t)]))),l.state)p+='/';else if(o){for(const e in o)'undefined'===o[e]&&delete o[e];const t=e.stringify(o,{sort:!1});t&&(p+=`?${t}`)}u=l.state}o?.path&&(p=`${o.path}/${p}`);p=p.replace(/\/+/g,'/'),p=p.length>1?p.replace(/\/$/,''):p,p.startsWith('/')||(p=`/${p}`);return p};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2]);const s=e=>{const t='number'==typeof e.index?e.routes[e.index]:e.routes[e.routes.length-1];return t.state?s(t.state):t},o=new WeakMap,c=e=>{if(!e?.screens)return{};const t=o.get(e?.screens);if(t)return t;const n=p(e.screens);return o.set(e.screens,n),n};const f=(e,n)=>{if('string'==typeof e){const s=(0,t.getPatternParts)(e);return n?{parts:[...n,...s]}:{parts:s}}if(e.exact&&void 0===e.path)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");const s=!0!==e.exact?[...n||[],...e.path?(0,t.getPatternParts)(e.path):[]]:e.path?(0,t.getPatternParts)(e.path):void 0,o=e.screens?p(e.screens,s):void 0;return{parts:s,stringify:e.stringify,screens:o}},p=(e,t)=>Object.fromEntries(Object.entries(e).map(([e,n])=>[e,f(n,t)]))},418,[419,424,425]);
5969__d(function(g,r,i,_a,m,e,d){'use strict';const t=r(d[0]),n=r(d[1]),a=r(d[2]),o=r(d[3]),s=Symbol('encodeFragmentIdentifier');function c(t){switch(t.arrayFormat){case'index':return n=>(a,o)=>{const s=a.length;return void 0===o||t.skipNull&&null===o||t.skipEmptyString&&''===o?a:null===o?[...a,[p(n,t),'[',s,']'].join('')]:[...a,[p(n,t),'[',p(s,t),']=',p(o,t)].join('')]};case'bracket':return n=>(a,o)=>void 0===o||t.skipNull&&null===o||t.skipEmptyString&&''===o?a:null===o?[...a,[p(n,t),'[]'].join('')]:[...a,[p(n,t),'[]=',p(o,t)].join('')];case'colon-list-separator':return n=>(a,o)=>void 0===o||t.skipNull&&null===o||t.skipEmptyString&&''===o?a:null===o?[...a,[p(n,t),':list='].join('')]:[...a,[p(n,t),':list=',p(o,t)].join('')];case'comma':case'separator':case'bracket-separator':{const n='bracket-separator'===t.arrayFormat?'[]=':'=';return a=>(o,s)=>void 0===s||t.skipNull&&null===s||t.skipEmptyString&&''===s?o:(s=null===s?'':s,0===o.length?[[p(a,t),n,p(s,t)].join('')]:[[o,p(s,t)].join(t.arrayFormatSeparator)])}default:return n=>(a,o)=>void 0===o||t.skipNull&&null===o||t.skipEmptyString&&''===o?a:null===o?[...a,p(n,t)]:[...a,[p(n,t),'=',p(o,t)].join('')]}}function l(t){let n;switch(t.arrayFormat){case'index':return(t,a,o)=>{n=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,''),n?(void 0===o[t]&&(o[t]={}),o[t][n[1]]=a):o[t]=a};case'bracket':return(t,a,o)=>{n=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,''),n?void 0!==o[t]?o[t]=[].concat(o[t],a):o[t]=[a]:o[t]=a};case'colon-list-separator':return(t,a,o)=>{n=/(:list)$/.exec(t),t=t.replace(/:list$/,''),n?void 0!==o[t]?o[t]=[].concat(o[t],a):o[t]=[a]:o[t]=a};case'comma':case'separator':return(n,a,o)=>{const s='string'==typeof a&&a.includes(t.arrayFormatSeparator),c='str
5969ing'==typeof a&&!s&&f(a,t).includes(t.arrayFormatSeparator);a=c?f(a,t):a;const l=s||c?a.split(t.arrayFormatSeparator).map(n=>f(n,t)):null===a?a:f(a,t);o[n]=l};case'bracket-separator':return(n,a,o)=>{const s=/(\[\])$/.test(n);if(n=n.replace(/\[\]$/,''),!s)return void(o[n]=a?f(a,t):a);const c=null===a?[]:a.split(t.arrayFormatSeparator).map(n=>f(n,t));void 0!==o[n]?o[n]=[].concat(o[n],c):o[n]=c};default:return(t,n,a)=>{void 0!==a[t]?a[t]=[].concat(a[t],n):a[t]=n}}}function u(t){if('string'!=typeof t||1!==t.length)throw new TypeError('arrayFormatSeparator must be single character string')}function p(n,a){return a.encode?a.strict?t(n):encodeURIComponent(n):n}function f(t,a){return a.decode?n(t):t}function y(t){return Array.isArray(t)?t.sort():'object'==typeof t?y(Object.keys(t)).sort((t,n)=>Number(t)-Number(n)).map(n=>t[n]):t}function b(t){const n=t.indexOf('#');return-1!==n&&(t=t.slice(0,n)),t}function j(t){let n='';const a=t.indexOf('#');return-1!==a&&(n=t.slice(a)),n}function k(t){const n=(t=b(t)).indexOf('?');return-1===n?'':t.slice(n+1)}function F(t,n){return n.parseNumbers&&!Number.isNaN(Number(t))&&'string'==typeof t&&''!==t.trim()?t=Number(t):!n.parseBooleans||null===t||'true'!==t.toLowerCase()&&'false'!==t.toLowerCase()||(t='true'===t.toLowerCase()),t}function O(t,n){u((n=Object.assign({decode:!0,sort:!0,arrayFormat:'none',arrayFormatSeparator:',',parseNumbers:!1,parseBooleans:!1},n)).arrayFormatSeparator);const o=l(n),s=Object.create(null);if('string'!=typeof t)return s;if(!(t=t.trim().replace(/^[?#&]/,'')))return s;for(const c of t.split('&')){if(''===c)continue;let[t,l]=a(n.decode?c.replace(/\+/g,' '):c,'=');l=void 0===l?null:['comma','separator','bracket-separator'].includes(n.arrayFormat)?l:f(l,n),o(f(t,n),l,s)}for(const t of Object.keys(s)){const a=s[t];if('object'==typeof a&&null!==a)for(const t of Object.keys(a))a[t]=F(a[t],n);else s[t]=F(a,n)}return!1===n.sort?s:(!0===n.sort?Object.keys(s).sort():Object.keys(s).sort(n.sort)).reduce((t,n)=>{const a=s[n];return Boolean(a)&&'object'==typeof a&&!Array.isArray(a)?t[n]=y(a):t[n]=a,t},Object.create(null))}e.extract=k,e.parse=O,e.stringify=(t,n)=>{if(!t)return'';u((n=Object.assign({encode:!0,strict:!0,arrayFormat:'none',arrayFormatSeparator:','},n)).arrayFormatSeparator);const a=a=>n.skipNull&&null==t[a]||n.skipEmptyString&&''===t[a],o=c(n),s={};for(const n of Object.keys(t))a(n)||(s[n]=t[n]);const l=Object.keys(s);return!1!==n.sort&&l.sort(n.sort),l.map(a=>{const s=t[a];return void 0===s?'':null===s?p(a,n):Array.isArray(s)?0===s.length&&'bracket-separator'===n.arrayFormat?p(a,n)+'[]':s.reduce(o(a),[]).join('&'):p(a,n)+'='+p(s,n)}).filter(t=>t.length>0).join('&')},e.parseUrl=(t,n)=>{n=Object.assign({decode:!0},n);const[o,s]=a(t,'#');return Object.assign({url:o.split('?')[0]||'',query:O(k(t),n)},n&&n.parseFragmentIdentifier&&s?{fragmentIdentifier:f(s,n)}:{})},e.stringifyUrl=(t,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const a=b(t.url).split('?')[0]||'',o=e.extract(t.url),c=e.parse(o,{sort:!1}),l=Object.assign(c,t.query);let u=e.stringify(l,n);u&&(u=`?${u}`);let f=j(t.url);return t.fragmentIdentifier&&(f=`#${n[s]?p(t.fragmentIdentifier,n):t.fragmentIdentifier}`),`${a}${u}${f}`},e.pick=(t,n,a)=>{a=Object.assign({parseFragmentIdentifier:!0,[s]:!1},a);const{url:c,query:l,fragmentIdentifier:u}=e.parseUrl(t,a);return e.stringifyUrl({url:c,query:o(l,n),fragmentIdentifier:u},a)},e.exclude=(t,n,a)=>{const o=Array.isArray(n)?t=>!n.includes(t):(t,a)=>!n(t,a);return e.pick(t,o,a)}},419,[420,421,422,423]);
5970__d(function(g,r,i,a,m,e,d){'use strict';m.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)},420,[]);
5971__d(function(g,r,_i,a,m,e,d){'use strict';var t=new RegExp("(%[a-f0-9]{2})|([^%]+?)",'gi'),n=new RegExp("(%[a-f0-9]{2})+",'gi');function o(t,n){try{return[decodeURIComponent(t.join(''))]}catch(t){}if(1===t.length)return t;n=n||1;var c=t.slice(0,n),p=t.slice(n);return Array.prototype.concat.call([],o(c),o(p))}function c(n){try{return decodeURIComponent(n)}catch(i){for(var c=n.match(t)||[],p=1;p<c.length;p++)c=(n=o(c,p).join('')).match(t)||[];return n}}function p(t){for(var o={'%FE%FF':'\ufffd\ufffd','%FF%FE':'\ufffd\ufffd'},p=n.exec(t);p;){try{o[p[0]]=decodeURIComponent(p[0])}catch(t){var i=c(p[0]);i!==p[0]&&(o[p[0]]=i)}p=n.exec(t)}o['%C2']='\ufffd';for(var f=Object.keys(o),u=0;u<f.length;u++){var y=f[u];t=t.replace(new RegExp(y,'g'),o[y])}return t}m.exports=function(t){if('string'!=typeof t)throw new TypeError('Expected `encodedURI` to be of type `string`, got `'+typeof t+'`');try{return t=t.replace(/\+/g,' '),decodeURIComponent(t)}catch(n){return p(t)}}},421,[]);
5972__d(function(g,r,i,a,m,e,d){'use strict';m.exports=(t,n)=>{if('string'!=typeof t||'string'!=typeof n)throw new TypeError('Expected the arguments to be of type `string`');if(''===n)return[t];const s=t.indexOf(n);return-1===s?[t]:[t.slice(0,s),t.slice(s+n.length)]}},422,[]);
5973__d(function(g,r,_i,a,m,e,d){'use strict';m.exports=function(t,n){for(var i={},s=Object.keys(t),c=Array.isArray(n),f=0;f<s.length;f++){var o=s[f],u=t[o];(c?-1!==n.indexOf(o):n(o,u,t))&&(i[o]=u)}return i}},423,[]);
5974__d(function(g,r,_i,a,m,e,d){"use strict";
5974Object.defineProperty(e,'__esModule',{value:!0}),e.getPatternParts=function(n){const t=[];let i={segment:''},o=!1,l=!1,p=0;for(let f=0;f<=n.length;f++){const s=n[f];if(null!=s&&(i.segment+=s),':'===s){if(':'===i.segment)l=!0;else if(!o)throw new Error(`Encountered ':' in the middle of a segment in path: ${n}`)}else if('('===s){if(!l)throw new Error(`Encountered '(' without preceding ':' in path: ${n}`);o?p++:o=!0}else if(')'===s){if(!l||!o)throw new Error(`Encountered ')' without preceding '(' in path: ${n}`);p?(p--,i.regex+=s):(o=!1,l=!1)}else if('?'===s){if(!i.param)throw new Error(`Encountered '?' without preceding ':' in path: ${n}`);l=!1,i.optional=!0}else if(null==s||'/'===s&&!o){if(l=!1,i.segment=i.segment.replace(/\/$/,''),''===i.segment)continue;if(i.param&&(i.param=i.param.replace(/^:/,'')),i.regex&&(i.regex=i.regex.replace(/^\(/,'').replace(/\)$/,'')),t.push(i),null==s)break;i={segment:''}}o&&(i.regex=i.regex||'',i.regex+=s),l&&!o&&(i.param=i.param||'',i.param+=s)}if(o)throw new Error(`Could not find closing ')' in path: ${n}`);const f=t.map(n=>n.param).filter(Boolean);for(const[t,i]of f.entries())if(f.indexOf(i)!==t)throw new Error(`Duplicate param name '${i}' found in path: ${n}`);return t}},424,[]);
5975__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.validatePathConfig=function n(o,s=!0){const c=Object.assign({path:'string',initialRouteName:'string',screens:'object'},s?null:{alias:'array',exact:'boolean',stringify:'object',parse:'object'});if('object'!=typeof o||null===o)throw new Error(`Expected the configuration to be an object, but got ${JSON.stringify(o)}.`);const f=Object.fromEntries(Object.keys(o).map(t=>{if(!(t in c))return[t,'extraneous'];{const n=c[t],s=o[t];if(void 0!==s)if('array'===n){if(!Array.isArray(s))return[t,`expected 'Array', got '${typeof s}'`]}else if(typeof s!==n)return[t,`expected '${n}', got '${typeof s}'`]}return null}).filter(Boolean));if(Object.keys(f).length)throw new Error(`Found invalid properties in the configuration:\n${t(f)}\n\nYou can only specify the following properties:\n${t(c)}\n\nIf you want to specify configuration for screens, you need to specify them under a 'screens' property.\n\nSee https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.`);if(s&&'path'in o&&'string'==typeof o.path&&o.path.includes(':'))throw new Error(`Found invalid path '${o.path}'. The 'path' in the top-level configuration cannot contain patterns for params.`);'screens'in o&&o.screens&&Object.entries(o.screens).forEach(([t,o])=>{'string'!=typeof o&&n(o,!1)})};const t=t=>Object.entries(t).map(([t,n])=>`- ${t} (${n})`).join('\n')},425,[]);
5976__d(function(g,r,_i,_a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getStateFromPath=function(e,t){const{initialRoutes:n,configs:s}=l(t),a=t?.screens;let o=e.replace(/\/+/g,'/').replace(/^\//,'').replace(/\?.*$/,'');o=o.endsWith('/')?o:`${o}/`;const i=t?.path?.replace(/^\//,'');if(i){const e=i.endsWith('/')?i:`${i}/`;if(!o.startsWith(e))return;o=o.replace(e,'')}if(void 0===a){const t=o.split('/').filter(Boolean).map(e=>({name:decodeURIComponent(e)}));return t.length?$(e,t,n):void 0}if('/'===o){const t=s.find(e=>''===e.segments.join('/'));return t?$(e,t.routeNames.map(e=>({name:e})),n,s):void 0}let c,u;const{routes:p,remainingPath:f}=j(o,s);void 0!==p&&(u=$(e,p,n,s),o=f,c=u);if(null==u||null==c)return;return c};var e,t=r(_d[0]),n=(e=t)&&e.__esModule?e:{default:e},s=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),a=r(_d[2]),o=r(_d[3]),i=r(_d[4]),c=r(_d[5]),u=r(_d[6]);const p=new WeakMap;function l(e){if(!e)return f();const t=p.get(e);if(t)return t;const n=f(e);return p.set(e,n),n}function f(e){e&&(0,u.validatePathConfig)(e);const t=h(e),n=d(t,e?.screens);y(n);return{initialRoutes:t,configs:n,configWithRegexes:b(n)}}function h(e){const t=[];return e?.initialRouteName&&t.push({initialRouteName:e.initialRouteName,parentScreens:[]}),t}function d(e,t={}){return[].concat(...Object.keys(t).map(n=>v(n,t,e,[],[],[]))).sort((e,t)=>
5976{if((0,c.isArrayEqual)(e.segments,t.segments))return t.routeNames.join('>').localeCompare(e.routeNames.join('>'));if((0,a.arrayStartsWith)(e.segments,t.segments))return-1;if((0,a.arrayStartsWith)(t.segments,e.segments))return 1;for(let n=0;n<Math.max(e.segments.length,t.segments.length);n++){if(null==e.segments[n])return 1;if(null==t.segments[n])return-1;const s='*'===e.segments[n],a='*'===t.segments[n],o=e.segments[n].startsWith(':'),i=t.segments[n].startsWith(':'),c=o&&e.segments[n].includes('('),u=i&&t.segments[n].includes('(');if(!(s&&a||c&&u)){if(s&&!a)return 1;if(a&&!s)return-1;if(o&&!i)return 1;if(i&&!o)return-1;if(c&&!u)return-1;if(u&&!c)return 1}}return e.segments.length-t.segments.length})}function y(e){e.reduce((e,t)=>{const n=t.segments.join('/');if(e[n]){const s=e[n].routeNames,a=t.routeNames;if(!(s.length>a.length?a.every((e,t)=>s[t]===e):s.every((e,t)=>a[t]===e)))throw new Error(`Found conflicting screens with the same pattern. The pattern '${n}' resolves to both '${s.join(' > ')}' and '${a.join(' > ')}'. Patterns must be unique and cannot resolve to more than one screen.`)}return Object.assign(e,{[n]:t})},{})}function b(e){return e.map(e=>Object.assign({},e,{regex:e.regex?new RegExp(e.regex.source+'$'):void 0}))}const j=(e,t)=>{let n,s=e;for(const e of t){if(!e.regex)continue;const o=s.match(e.regex);if(o){n=e.routeNames.map(n=>{const s=t.find(t=>t.screen===n&&(0,a.arrayStartsWith)(e.segments,t.segments)),i=s&&o.groups?Object.fromEntries(Object.entries(o.groups).map(([e,t])=>{const a=Number(e.replace('param_','')),o=s.params.find(e=>e.index===a);return o?.screen===n&&o?.name?[o.name,t]:null}).filter(e=>null!=e).map(([e,t])=>{if(null==t)return[e,void 0];const n=decodeURIComponent(t);return[e,s.parse?.[e]?s.parse[e](n):n]})):void 0;return i&&Object.keys(i).length?{name:n,params:i}:{name:n}}),s=s.replace(o[0],'');break}}return{routes:n,remainingPath:s}},v=(e,t,n,s,a,o)=>{const i=[];o.push(e),a.push(e);const c=t[e];if('string'==typeof c)s.push({screen:e,path:c}),i.push(x(e,[...o],[...s]));else if('object'==typeof c){if('string'==typeof c.path){if(c.exact&&null==c.path)throw new Error(`Screen '${e}' doesn't specify a 'path'. A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. \`path: ''\`.`);const t=[];if(c.alias)for(const n of c.alias)'string'==typeof n?t.push(x(e,[...o],[...s,{screen:e,path:n}],c.parse)):'object'==typeof n&&t.push(x(e,[...o],n.exact?[{screen:e,path:n.path}]:[...s,{screen:e,path:n.path}],n.parse));c.exact&&(s.length=0),s.push({screen:e,path:c.path}),i.push(x(e,[...o],[...s],c.parse)),i.push(...t)}if('string'!=typeof c&&'string'!=typeof c.path&&c.alias?.length)throw new Error(`Screen '${e}' doesn't specify a 'path'. A 'path' needs to be specified in order to use 'alias'.`);c.screens&&(c.initialRouteName&&n.push({initialRouteName:c.initialRouteName,parentScreens:a}),Object.keys(c.screens).forEach(e=>{const t=v(e,c.screens,n,[...s],[...a],o);i.push(...t)}))}return o.pop(),i},x=(e,t,s,a)=>{const o=[];for(const{screen:e,path:t}of s)o.push(...(0,i.getPatternParts)(t).map(t=>Object.assign({},t,{screen:e})));return{screen:e,regex:o.length?new RegExp(`^(${o.map((e,t)=>{if(e.param){return`(((?<param_${t}>${e.regex||'[^/]+'})\\/)${e.optional?'?':''})`}return`${'*'===e.segment?'.*':(0,n.default)(e.segment)}\\/`}).join('')})$`):void 0,segments:o.map(e=>e.segment),params:o.map((e,t)=>e.param?{index:t,screen:e.screen,name:e.param}:null).filter(e=>null!=e),routeNames:t,parse:a}},O=(e,t)=>{for(const n of t)if(e===n.routeNames[n.routeNames.length-1])return n.parse},N=(e,t,n)=>{for(const s of n)if(t.length===s.parentScreens.length){let n=!0;for(let e=0;e<t.length;e++)if(0!==t[e].localeCompare(s.parentScreens[e])){n=!1;break}if(n)return e!==s.initialRouteName?s.initialRouteName:void 0}},R=(e,t,n)=>n?e?{index:1,routes:[{name:e},t]}:{routes:[t]}:e?{index:1,routes:[{name:e},Object.assign({},t,{state:{routes:[]}})]}:{routes:[Object.assign({},t,{state:{routes:[]}})]},$=(e,t,n,s)=>{let a=t.shift();const i=[];let c=N(a.name,i,n);i.push(a.name);const u=R(c,a,0===t.length);if(t.length>0){let e=u;for(;a=t.shift();){c=N(a.name,i,n);const s=e.index||e.routes.length-1;e.routes[s].state=R(c,a,0===t.length),t.length>0&&(e=e.routes[s].state),i.push(a.name)}}a=(0,o.findFocusedRoute)(u),a.path=e.replace(/\/$/,'');const p=w(e,s?O(a.name,s):void 0);return p&&(a.params=Object.assign({},a.params,p)),u},w=(e,t)=>{const n=e.split('?')[1],a=s.parse(n);
5976return t&&Object.keys(a).forEach(e=>{Object.hasOwnProperty.call(t,e)&&'string'==typeof a[e]&&(a[e]=t[e](a[e]))}),Object.keys(a).length?a:void 0}},426,[427,419,428,387,424,429,425]);
5977__d(function(g,r,i,a,m,e,d){'use strict';m.exports=t=>{if('string'!=typeof t)throw new TypeError('Expected a string');return t.replace(/[|\\{}()[\]^$+*?.]/g,'\\$&').replace(/-/g,'\\x2d')}},427,[]);
5978__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.arrayStartsWith=function(t,n){if(n.length>t.length)return!1;return n.every((n,u)=>n===t[u])}},428,[]);
5979__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isArrayEqual=function(t,n){if(t===n)return!0;if(t.length!==n.length)return!1;return t.every((t,u)=>Object.is(t,n[u]))}},429,[]);
5980__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NavigationHelpersContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},430,[34]);
5981__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.NavigationIndependentTree=function({children:l}){return(0,u.jsx)(o.NavigationRouteContext.Provider,{value:void 0,children:(0,u.jsx)(n.NavigationContext.Provider,{value:void 0,children:(0,u.jsx)(v.IsFocusedContext.Provider,{value:void 0,children:(0,u.jsx)(t.NavigationIndependentTreeContext.Provider,{value:!0,children:l})})})})},r(d[0]);var n=r(d[1]),t=r(d[2]),o=r(d[3]),v=r(d[4]),u=r(d[5])},431,[34,410,390,409,411,175]);
5982__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NavigationMetaContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},432,[34]);
5983__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PreventRemoveContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},433,[34]);
5984__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.PreventRemoveProvider=function({children:e}){const[o]=n.useState(()=>(0,t.nanoid)()),[l,p]=n.useState(()=>new Map),y=n.useContext(v.NavigationHelpersContext),R=n.useContext(s.NavigationRouteContext),P=n.useContext(d.PreventRemoveContext),C=P?.setPreventRemove,x=(0,u.default)((e,t,n)=>{if(n&&(null==y||y?.getState().routes.every(e=>e.key!==t)))throw new Error(`Couldn't find a route with the key ${t}. Is your component inside NavigationContent?`);p(o=>{if(t===o.get(e)?.routeKey&&n===o.get(e)?.preventRemove)return o;const u=new Map(o);return n?u.set(e,{routeKey:t,preventRemove:n}):u.delete(e),u})}),_=[...l.values()].some(({preventRemove:e})=>e);n.useEffect(()=>{if(void 0!==R?.key&&void 0!==C)return C(o,R.key,_),()=>{C(o,R.key,!1)}},[o,_,R?.key,C]);const k=n.useMemo(()=>({setPreventRemove:x,preventedRoutes:f(l)}),[x,l]);return(0,c.jsx)(d.PreventRemoveContext.Provider,{value:k,children:e})};var e,t=r(_d[0]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),o=r(_d[2]),u=(e=o)&&e.__esModule?e:{default:e},v=r(_d[3]),s=r(_d[4]),d=r(_d[5]),c=r(_d[6]);const f=e=>[...e.values()].reduce((e,{routeKey:t,preventRemove:n})=>(e[t]={preventRemove:e[t]?.preventRemove||n},e),{})},434,[373,34,380,430,409,433,175]);
5985__d(function(g,r,i,a,m,_e,_d){"use strict";
5985Object.defineProperty(_e,'__esModule',{value:!0}),_e.useTheme=function(){const n=e.useContext(t.ThemeContext);if(null==n)throw new Error("Couldn't find a theme. Is your component inside NavigationContainer or does it have a theme?");return n};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},435,[34,393]);
5986__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PrivateValueStore",{enumerable:!0,get:function(){return t}});class t{}},436,[]);
5987__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useFocusEffect=function(n){const o=(0,t.useNavigation)();if(void 0!==arguments[1]){const e="You passed a second argument to 'useFocusEffect', but it only accepts one argument. If you want to pass a dependency array, you can use 'React.useCallback':\n\nuseFocusEffect(\n  React.useCallback(() => {\n    // Your code here\n  }, [depA, depB])\n);\n\nSee usage guide: https://reactnavigation.org/docs/use-focus-effect";console.error(e)}e.useEffect(()=>{let e,t=!1;const c=()=>{const e=n();if(void 0===e||'function'==typeof e)return e};o.isFocused()&&(e=c(),t=!0);const u=o.addListener('focus',()=>{t||(void 0!==e&&e(),e=c(),t=!0)}),s=o.addListener('blur',()=>{void 0!==e&&e(),e=void 0,t=!1});return()=>{void 0!==e&&e(),u(),s()}},[n,o])};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},437,[34,412]);
5988__d(function(g,_r,_i,a,m,_e,_d){"use strict";const e=["children","layout","screenOptions","screenLayout","screenListeners","UNSTABLE_router"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.useNavigationBuilder=function(t,c){const S=(0,$.useRegisterNavigator)(),N=o.useContext(v.NavigationRouteContext),M=o.useContext(u.ConsumedParamsContext),V='object'==typeof N?.params&&null!=N.params&&M?.isConsumed(N.params),{children:q,layout:z,screenOptions:D,screenLayout:Q,screenListeners:W,UNSTABLE_router:X}=c,Y=(0,r.default)(c,e),Z=J(q),ee=(0,G.useLazyValue)(()=>{if(null!=Y.initialRouteName&&Z.every(e=>e.props.name!==Y.initialRouteName))throw new Error(`Couldn't find a screen named '${Y.initialRouteName}' to use as 'initialRouteName'.`);const e=t(Y);if(null!=X){const t=X(e);return Object.assign({},e,t)}return e}),te=Z.reduce((e,t)=>{if(t.props.name in e)throw new Error(`A navigator cannot contain multiple 'Screen' components with the same name (found duplicate screen named '${t.props.name}')`);return e[t.props.name]=t,e},{}),re=Z.map(e=>e.props.name),ae=re.reduce((e,t)=>(e[t]=te[t].keys.map(e=>e??'').join(':'),e),{}),ne=re.reduce((e,t)=>{const{initialParams:r}=te[t].props;return e[t]=r,e},{}),se=re.reduce((e,t)=>Object.assign(e,{[t]:te[t].props.getId}),{});if(!re.length)throw new Error("Couldn't find any screens for the navigator. Have you defined any screens as its children?");const oe=o.useCallback(e=>void 0===e.type||e.type===ee.type,[ee.type]),ie=o.useCallback(e=>void 0!==e&&!1===e.stale&&oe(e),[oe]),ue=o.useCallback(e=>e.routes.every(e=>!re.includes(e.name)),[re]),{state:pe,getState:ce,setState:de,setKey:le,getKey:me,getIsInitial:ye}=o.useContext(h.NavigationStateContext),fe=o.useRef(!1),ge=o.useRef(void 0),ve=(0,i.default)(e=>{fe.current?ge.current=e:de(e)}),[he,Le,Se,Ne]=o.useMemo(()=>{if(fe.current&&ge.current&&oe(ge.current)){return[void 0,ie(ge.current)?ge.current:ee.getRehydratedState(ge.current,{routeNames:re,routeParamList:ne,routeGetIdList:se}),!1,void 0]}const e=re.reduce((e,t)=>{const{initialParams:r}=te[t].props,n=null==N?.params?.state&&!1!==N?.params?.initial&&N?.params?.screen===t?N.params.params:void 0;return e[t]=void 0!==r||void 0!==n?Object.assign({},r,n):void 0,e},{});if(void 0!==pe&&oe(pe)||null!=N?.params?.state||'string'==typeof N?.params?.screen&&!1!==N?.params?.initial||V){const t=V?void 0:N?.params,r=(t?H(t):void 0)??pe,n=null==r?ee.getInitialState({routeNames:re,routeParamList:e,routeGetIdList:se}):ee.getRehydratedState(r,{routeNames:re,routeParamList:e,routeGetIdList:se});return null!=r&&'lastUnhandled'===c.UNSTABLE_routeNamesChangeBehavior&&ue(r)?[r,n,!0,t]:[void 0,n,!1,t]}return[void 0,ee.getInitialState({routeNames:re,routeParamList:e,routeGetIdList:se}),!0,void 0]},[pe,ee,oe]),Ce=o.useRef(ae);o.useEffect(()=>{Ce.current=ae});const Ee=Ce.current,[be,Re]=o.useState(he);'lastUnhandled'===c.UNSTABLE_routeNamesChangeBehavior&&he&&be!==he&&Re(he);let Oe=ie(pe)?pe:Le,je=Oe,Ae=!1;be?.routes.every(e=>re.includes(e.name))&&Oe?.routes.every(e=>!re.includes(e.name))?(Ae=!0,je=ee.getRehydratedState(be,{routeNames:re,routeParamList:ne,routeGetIdList:se})):(0,d.isArrayEqual)(Oe.routeNames,re)&&(0,l.isRecordEqual)(ae,Ee)||(je=ee.getStateForRouteNamesChange(Oe,{routeNames:re,routeParamList:ne,routeGetIdList:se,routeKeyChanges:Object.keys(ae).filter(e=>e in Ee&&ae[e]!==Ee[e])}));let Pe=N?.params===Ne;if(N?.params&&!Pe){let e;if('object'!=typeof N.params.state||null==N.params.state||V){if('string'==typeof N.params.screen&&(!1===N.params.initial&&Se||!V))if(Pe=!0,'lastUnhandled'!==c.UNSTABLE_routeNamesChangeBehavior||re.includes(N.params.screen))e=n.CommonActions.navigate({name:N.params.screen,params:N.params.params,path:N.params.path,merge:N.params.merge,pop:N.params.pop});else{const e=H(N.params);null==e||(0,s.default)(e,be)||Re(e)}}else Pe=!0,'lastUnhandled'===c.UNSTABLE_routeNamesChangeBehavior&&ue(N.params.state)?N.params.state!==be&&Re(N.params.state):e=n.CommonActions.reset(N.params.state);const t=e?ee.getStateForAction(je,e,{routeNames:re,routeParamList:ne,routeGetIdList:se}):null;je=null!==t?ee.getRehydratedState(t,{routeNames:re,routeParamList:ne,routeGetIdList:se}):je}const xe=M?.setConsumed;o.useEffect(()=>{xe&&Pe&&'object'==typeof N?.params&&null!=N.params&&xe(N.params)},[Pe,N?.params,xe]);const Ie=Oe!==je;(0,F.useScheduleUpdate)(()=>{Ie&&(ve(je),Ae&&Re(void 0))}),Oe=je,o.useEffect(()=>{ge.current=Oe});const we=o.useRef(null);o.useEffect(()=>(fe.current=!1,le(S),ye()||we.current===Oe||(ve(Oe),we.current=Oe),()=>{void 0!==ce()&&me()===S&&(de(void 0),fe.current=!0)}),[]);const Ge=o.useRef(Oe);Ge.current=Oe,(0,b.useClientLayoutEffect)(()=>{Ge.current=null});const ke=(0,i.default)(()=>{const e=ce();return(0,p.deepFreeze)(ie(e)?e:Le)}),Ke=(0,A.useEventEmitter)(e=>{const t=[];let r;if(e.target?(r=Oe.routes.find(t=>t.key===e.target),r?.name&&t.push(r.name)):(r=Oe.routes[Oe.index],t.push(...Object.keys(te).filter(e=>r?.name===e))),null==r)return;const n=ze[r.key].navigation;[].concat(...[W,...t.map(e=>{const{listeners:t}=te[e].props;return t})].map(t=>{const s='function'==typeof t?t({route:r,navigation:n}):t;return s?Object.keys(s).filter(t=>t===e.type).map(e=>s?.[e]):void 0})).filter((e,t,r)=>e&&r.lastIndexOf(e)===t).forEach(t=>t?.(e))});(0,x.useFocusEvents)({state:Oe,emitter:Ke}),o.useEffect(()=>{Ke.emit({type:'state',data:{state:Oe}})},[Ke,Oe]);const{listeners:Ue,addListener:Be}=(0,E.useChildListeners)(),{keyedListeners:$e,addKeyedListener:Fe}=(0,w.useKeyedChildListeners)(),Te=(0,U.useOnAction)({router:ee,getState:ke,setState:ve,key:N?.ke
5988y,actionListeners:Ue.action,beforeRemoveListeners:$e.beforeRemove,routerConfigOptions:{routeNames:re,routeParamList:ne,routeGetIdList:se},emitter:Ke}),Me=(0,B.useOnRouteFocus)({router:ee,key:N?.key,getState:ke,setState:ve}),Ve=o.useContext(C.UnhandledActionContext),Je=(0,i.default)(e=>{if('lastUnhandled'===c.UNSTABLE_routeNamesChangeBehavior&&'NAVIGATE'===e.type&&null!=e.payload&&'name'in e.payload&&'string'==typeof e.payload.name&&!re.includes(e.payload.name)){const t={routes:[{name:e.payload.name,params:'params'in e.payload&&'object'==typeof e.payload.params&&null!==e.payload.params?e.payload.params:void 0,path:'path'in e.payload&&'string'==typeof e.payload.path?e.payload.path:void 0}]};Re(t)}Ve?.(e)}),He=(0,k.useNavigationHelpers)({id:c.id,onAction:Te,onUnhandledAction:Je,getState:ke,emitter:Ke,router:ee,stateRef:Ge});(0,P.useFocusedListenersChildrenAdapter)({navigation:He,focusedListeners:Ue.focus}),(0,_.useOnGetState)({getState:ke,getStateListeners:$e.getState});const{describe:qe,descriptors:ze}=(0,j.useDescriptors)({state:Oe,screens:te,navigation:He,screenOptions:D,screenLayout:Q,onAction:Te,getState:ke,setState:ve,onRouteFocus:Me,addListener:Be,addKeyedListener:Fe,router:ee,emitter:Ke});(0,O.useCurrentRender)({state:Oe,navigation:He,descriptors:ze});const De=(0,R.useComponent)(e=>{const t=null!=z?z({state:Oe,descriptors:ze,navigation:He,children:e}):e;return(0,T.jsx)(f.NavigationMetaContext.Provider,{value:void 0,children:(0,T.jsx)(y.NavigationHelpersContext.Provider,{value:He,children:(0,T.jsx)(K.NavigationStateListenerProvider,{state:Oe,children:(0,T.jsx)(I.FocusedRouteKeyContext.Provider,{value:Oe.routes[Oe.index].key,children:(0,T.jsx)(L.PreventRemoveProvider,{children:t})})})})})});return{state:Oe,navigation:He,describe:qe,descriptors:ze,NavigationContent:De}};var r=t(_r(_d[0])),n=_r(_d[1]),s=t(_r(_d[2])),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),t.default=e,t})(_r(_d[3])),i=(_r(_d[4]),t(_r(_d[5]))),u=_r(_d[6]),p=_r(_d[7]),c=_r(_d[8]),d=_r(_d[9]),l=_r(_d[10]),y=_r(_d[11]),f=_r(_d[12]),v=_r(_d[13]),h=_r(_d[14]),L=_r(_d[15]),S=_r(_d[16]),N=_r(_d[17]),C=_r(_d[18]),E=_r(_d[19]),b=_r(_d[20]),R=_r(_d[21]),O=_r(_d[22]),j=_r(_d[23]),A=_r(_d[24]),P=_r(_d[25]),x=_r(_d[26]),I=_r(_d[27]),w=_r(_d[28]),G=_r(_d[29]),k=_r(_d[30]),K=_r(_d[31]),U=_r(_d[32]),_=_r(_d[33]),B=_r(_d[34]),$=_r(_d[35]),F=_r(_d[36]),T=_r(_d[37]);N.PrivateValueStore;const M=e=>e.type===S.Screen,V=e=>e.type===o.Fragment||e.type===c.Group,J=(e,t,r,n)=>o.Children.toArray(e).reduce((e,s)=>{if(o.isValidElement(s)){if(M(s)){if('object'!=typeof s.props||null===s.props)throw new Error("Got an invalid element for screen.");if('string'!=typeof s.props.name||''===s.props.name)throw new Error(`Got an invalid name (${JSON.stringify(s.props.name)}) for the screen. It must be a non-empty string.`);if(void 0!==s.props.navigationKey&&('string'!=typeof s.props.navigationKey||''===s.props.navigationKey))throw new Error(`Got an invalid 'navigationKey' prop (${JSON.stringify(s.props.navigationKey)}) for the screen '${s.props.name}'. It must be a non-empty string or 'undefined'.`);return e.push({keys:[t,s.props.navigationKey],options:r,layout:n,props:s.props}),e}if(V(s)){if(void 0!==(i=s.props.navigationKey)&&('string'!=typeof i||''===i))throw new Error(`Got an invalid 'navigationKey' prop (${JSON.stringify(s.props.navigationKey)}) for the group. It must be a non-empty string or 'undefined'.`);return e.push(...J(s.props.children,s.props.navigationKey,s.type!==c.Group?r:null!=r?[...r,s.props.screenOptions]:[s.props.screenOptions],'function'==typeof s.props.screenLayout?s.props.screenLayout:n)),e}}var i;throw new Error(`A navigator can only contain 'Screen', 'Group' or 'React.Fragment' as its direct children (found ${o.isValidElement(s)?`'${'string'==typeof s.type?s.type:s.type?.name}'${null!=s.props&&'object'==typeof s.props&&'name'in s.props&&s.props?.name?` for the screen '${s.props.name}'`:''}`:'object'==typeof s?JSON.stringify(s):`'${String(s)}'`}). To render this component in the navigator, pass it in the 'component' prop to 'Screen'.`)},[]),H=e=>null!=e?.state?e.state:'string'==typeof e?.screen&&!1!==e?.initial?{routes:[{name:e.screen,params:e.params,path:e.path}]}:void 0},438,[129,370,439,34,406,380,440,401,403,429,417,430,432,409,391,434,404,436,394,395,441,442,443,444,396,449,450,411,397,451,452,453,456,458,459,460,461,175]);
5989__d(function(g,r,_i,_a,m,e,d){'use strict';m.exports=function t(n,o){if(n===o)return!0;
5989if(n&&o&&'object'==typeof n&&'object'==typeof o){if(n.constructor!==o.constructor)return!1;var f,u,i;if(Array.isArray(n)){if((f=n.length)!=o.length)return!1;for(u=f;0!==u--;)if(!t(n[u],o[u]))return!1;return!0}if(n.constructor===RegExp)return n.source===o.source&&n.flags===o.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===o.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===o.toString();if((f=(i=Object.keys(n)).length)!==Object.keys(o).length)return!1;for(u=f;0!==u--;)if(!Object.prototype.hasOwnProperty.call(o,i[u]))return!1;for(u=f;0!==u--;){var c=i[u];if(!t(n[c],o[c]))return!1}return!0}return n!=n&&o!=o}},439,[]);
5990__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ConsumedParamsContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},440,[34]);
5991__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useClientLayoutEffect",{enumerable:!0,get:function(){return t}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]));const t='undefined'!=typeof document||'undefined'!=typeof navigator&&'ReactNative'===navigator.product?e.useLayoutEffect:e.useEffect},441,[34]);
5992__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useComponent=function(u){const c=e.useRef(u);return c.current=u,e.useEffect(()=>{c.current=null}),e.useRef(({children:e})=>{const u=c.current;if(null===u)throw new Error('The returned component must be rendered in the same render phase as the hook.');return(0,n.jsx)(t,{render:u,children:e})}).current};var e=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,u.get?u:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n})(r(_d[0])),n=r(_d[1]);const t=({render:e,children:n})=>e(n)},442,[34,175]);
5993__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useCurrentRender=function({state:n,navigation:o,descriptors:u}){const s=e.useContext(t.CurrentRenderContext);s&&o.isFocused()&&(s.options=u[n.routes[n.index].key].options)};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},443,[34,413]);
5994__d(function(g,_r,_i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useDescriptors=function({state:e,screens:t,navigation:f,screenOptions:v,screenLayout:y,onAction:h,getState:b,setState:k,addListener:O,addKeyedListener:j,onRouteFocus:C,router:S,emitter:x}){const _=o.useContext(u.ThemeContext),[w,P]=o.useState({}),{onDispatchAction:L,onOptionsChange:N,scheduleUpdate:R,flushUpdates:A,stackRef:D}=o.useContext(r.NavigationBuilderContext),M=o.useMemo(()=>({navigation:f,onAction:h,addListener:O,addKeyedListener:j,onRouteFocus:C,onDispatchAction:L,onOptionsChange:N,scheduleUpdate:R,flushUpdates:A,stackRef:D}),[f,h,O,j,C,L,N,R,A,D]),{base:U,navigations:B}=(0,c.useNavigationCache)({state:e,getState:b,navigation:f,setOptions:P,router:S,emitter:x}),E=(0,d.useRouteCache)(e.routes),F=(e,n,o)=>{const r=t[e.name],i=r.props;return[v,...r.options?r.options.filter(Boolean):[],i.options,o].reduce((t,o)=>Object.assign(t,'function'!=typeof o?o:o({route:e,navigation:n,theme:_})),{})},K=(e,o,u,c)=>{const d=t[e.name],f=d.props,v=f.layout??d.layout??y;let h=(0,p.jsx)(s.SceneView,{navigation:o,route:e,screen:f,routeState:c,getState:b,setState:k,options:u,clearOptions:()=>P(t=>{if(e.key in t){var o;return(0,n.default)(t,[o].map(l))}return t})});return null!=v&&(h=v({route:e,navigation:o,options:u,theme:_,children:h})),(0,p.jsx)(r.NavigationBuilderContext.Provider,{value:M,children:(0,p.jsx)(i.NavigationProvider,{route:e,navigation:o,children:h})},e.key)},T=E.reduce((t,n,o)=>{const r=B[n.key],i=F(n,r,w[n.key]),s=K(n,r,i,e.routes[o].state);return t[n.key]={route:n,navigation:r,render:()=>s,options:i},t},{});return{describe:(e,t)=>
5994{if(!t){if(!(e.key in T))throw new Error(`Couldn't find a route with the key ${e.key}.`);return T[e.key]}const n=U,o=F(e,n,{}),r=K(e,n,o,void 0);return{route:e,navigation:n,render:()=>r,options:o}},descriptors:T}};var e,t=_r(_d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(_r(_d[1])),r=_r(_d[2]),i=_r(_d[3]),s=_r(_d[4]),u=_r(_d[5]),c=_r(_d[6]),d=_r(_d[7]),p=_r(_d[8]);function l(e){var t=f(e,"string");return"symbol"==typeof t?t:t+""}function f(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},444,[129,34,388,409,445,393,448,416,175]);
5995__d(function(g,_r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.SceneView=function({screen:d,route:v,navigation:p,routeState:f,getState:k,setState:y,options:C,clearOptions:h}){const b=e.useRef(void 0),j=e.useCallback(()=>b.current,[]),{addOptionsGetter:O}=(0,c.useOptionsGetters)({key:v.key,options:C,navigation:p}),S=e.useCallback(e=>{b.current=e},[]),x=e.useCallback(()=>{const e=k().routes.find(e=>e.key===v.key);return e?e.state:void 0},[k,v.key]),P=e.useCallback(e=>{const t=k(),n=t.routes.map(t=>t.key===v.key&&t.state!==e?Object.assign({},t,{state:e}):t);(0,r.isArrayEqual)(t.routes,n)||y(Object.assign({},t,{routes:n}))},[k,v.key,y]),M=e.useRef(!0);e.useEffect(()=>{M.current=!1}),e.useEffect(()=>h,[]);const _=e.useCallback(()=>M.current,[]),E=e.useContext(s.NavigationFocusedRouteStateContext),[N,R]=e.useState(null),w=e.useMemo(()=>({isConsumed:e=>!!N&&N.has(e),setConsumed:e=>{R(t=>{if(t&&t.has(e))return t;const n=new WeakMap;return n.set(e,!0),n})}}),[N]),G=e.useMemo(()=>{const e={routes:[{key:v.key,name:v.name,params:v.params,path:v.path}]},t=n=>{const r=n?.routes[0];return r?{routes:[Object.assign({},r,{state:t(r.state)})]}:e};return t(E)},[E,v.key,v.name,v.params,v.path]),F=e.useMemo(()=>({state:f,getState:x,setState:P,getKey:j,setKey:S,getIsInitial:_,addOptionsGetter:O}),[f,x,P,j,S,_,O]),I=d.getComponent?d.getComponent():d.component;return(0,l.jsx)(t.ConsumedParamsContext.Provider,{value:w,children:(0,l.jsx)(o.NavigationStateContext.Provider,{value:F,children:(0,l.jsx)(s.NavigationFocusedRouteStateContext.Provider,{value:G,children:(0,l.jsx)(n.EnsureSingleNavigator,{children:(0,l.jsx)(u.StaticContainer,{name:d.name,render:I||d.children,navigation:p,route:v,children:void 0!==I?(0,l.jsx)(I,{navigation:p,route:v}):void 0!==d.children?d.children({navigation:p,route:v}):null})})})})})};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(_r(_d[0])),t=_r(_d[1]),n=_r(_d[2]),r=_r(_d[3]),s=_r(_d[4]),o=_r(_d[5]),u=_r(_d[6]),c=_r(_d[7]),l=_r(_d[8])},445,[34,440,386,429,446,391,447,399,175]);
5996__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NavigationFocusedRouteStateContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},446,[34]);
5997__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"StaticContainer",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).memo(function(e){return e.children},(e,t)=>{const n=Object.keys(e),c=Object.keys(t);if(n.length!==c.length)return!1;for(const c of n)if('children'!==c&&e[c]!==t[c])return!1;return!0})},447,[34]);
5998__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["emit"];
5998Object.defineProperty(_e,'__esModule',{value:!0}),_e.useNavigationCache=function({state:t,getState:n,navigation:d,setOptions:f,router:y,emitter:l}){const{stackRef:O}=c.useContext(u.NavigationBuilderContext),b=c.useMemo(()=>{const t=(0,s.default)(d,e),n=Object.assign({},y.actionCreators,o.CommonActions),c=()=>{throw new Error('Actions cannot be dispatched from a placeholder screen.')},u=Object.keys(n).reduce((e,t)=>(e[t]=c,e),{});return Object.assign({},t,u,{addListener:()=>()=>{},removeListener:()=>{},dispatch:c,getParent:e=>void 0!==e&&e===t.getId()?b:t.getParent(e),setOptions:()=>{throw new Error('Options cannot be set from a placeholder screen.')},isFocused:()=>!1})},[d,y.actionCreators]),p=c.useMemo(()=>({current:{}}),[b,n,d,f,l]);return p.current=t.routes.reduce((e,t)=>{const s=p.current[t.key];if(s)e[t.key]=s;else{const s=e=>{const s='function'==typeof e?e(n()):e;null!=s&&d.dispatch(Object.assign({source:t.key},s))},c=e=>{try{e()}finally{}},u=Object.assign({},y.actionCreators,o.CommonActions),O=Object.keys(u).reduce((e,t)=>(e[t]=(...e)=>c(()=>s(u[t](...e))),e),{});e[t.key]=Object.assign({},b,O,l.create(t.key),{dispatch:e=>c(()=>s(e)),getParent:n=>void 0!==n&&n===b.getId()?e[t.key]:b.getParent(n),setOptions:e=>{f(n=>Object.assign({},n,{[t.key]:Object.assign({},n[t.key],e)}))},isFocused:()=>{const e=b.getState();return e.routes[e.index].key===t.key&&(!d||d.isFocused())}})}return e},{}),{base:b,navigations:p.current}};var t,n=r(_d[0]),s=(t=n)&&t.__esModule?t:{default:t},o=r(_d[1]),c=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),u=r(_d[3])},448,[129,370,34,388]);
5999__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useFocusedListenersChildrenAdapter=function({navigation:n,focusedListeners:u}){const{addListener:s}=e.useContext(t.NavigationBuilderContext),o=e.useCallback(e=>{if(n.isFocused()){for(const t of u){const{handled:n,result:u}=t(e);if(n)return{handled:n,result:u}}return{handled:!0,result:e(n)}}return{handled:!1,result:null}},[u,n]);e.useEffect(()=>s?.('focus',o),[s,o])};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},449,[34,388]);
6000__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useFocusEvents=function({state:u,emitter:n}){const o=e.useContext(t.NavigationContext),c=e.useRef(void 0),s=u.routes[u.index].key;e.useEffect(()=>o?.addListener('focus',()=>{c.current=s,n.emit({type:'focus',target:s})}),[s,n,o]),e.useEffect(()=>o?.addListener('blur',()=>{c.current=void 0,n.emit({type:'blur',target:s})}),[s,n,o]),e.useEffect(()=>{const e=c.current;c.current=s,void 0!==e||o||n.emit({type:'focus',target:s}),e===s||o&&!o.isFocused()||void 0!==e&&(n.emit({type:'blur',target:e}),n.emit({type:'focus',target:s}))},[s,n,o])};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(u){var n=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(t,u,n.get?n:{enumerable:!0,get:function(){return e[u]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},450,[34,410]);
6001__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useLazyValue=function(t){const n=e.useRef(void 0);void 0===n.current&&(n.current=t());return n.current};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]))},451,[34]);
6002__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useNavigationHelpers=function({id:o,onAction:c,onUnhandledAction:u,getState:s,emitter:d,router:f,stateRef:l}){const b=t.useContext(n.NavigationContext);return t.useMemo(()=>{const t=e=>{const t='function'==typeof e?e(s()):e;c(t)||u?.(t)},n=Object.assign({},f.actionCreators,e.CommonActions),v=Object.keys(n).reduce((e,o)=>(e[o]=(...e)=>t(n[o](...e)),e),{}),O=Object.assign({},b,v,{dispatch:t,emit:d.emit,isFocused:b?b.isFocused:()=>!0,canGoBack:()=>{const t=s();return null!==f.getStateForAction(t,e.CommonActions.goBack(),{routeNames:t.routeNames,routeParamList:{},routeGetIdList:{}})||b?.canGoBack()||!1},getId:()=>o,getParent:e=>{if(void 0!==e){let t=O;for(;t&&e!==t.getId();)t=t.getParent();return t}return b},getState:()=>null!=l.current?l.current:s()});return O},[f,b,d.emit,s,c,u,o,l])};
6002var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=r(_d[2]);r(_d[3]).PrivateValueStore},452,[370,34,410,436]);
6003__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useNavigationState=function(e){const n=t.useContext(s);if(null==n)throw new Error("Couldn't get the navigation state. Is your component inside a navigator?");return(0,o.useSyncExternalStoreWithSelector)(n.subscribe,n.getState,n.getState,e)},_e.NavigationStateListenerProvider=function({state:e,children:n}){const o=t.useRef([]),f=t.useRef(e),l=(0,u.default)(()=>f.current),d=(0,u.default)(e=>(o.current.push(e),()=>{o.current=o.current.filter(t=>t!==e)}));t.useLayoutEffect(()=>{f.current=e,o.current.forEach(e=>e())},[e]);const v=t.useMemo(()=>({getState:l,subscribe:d}),[l,d]);return(0,c.jsx)(s.Provider,{value:v,children:n})};var e,t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=r(_d[1]),u=(e=n)&&e.__esModule?e:{default:e},o=r(_d[2]),c=r(_d[3]);const s=t.createContext(void 0)},453,[34,380,454,175]);
6004__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},454,[455]);
6005__d(function(g,r,i,a,m,e,d){
6006/**
6007   * @license React
6008   * use-sync-external-store-with-selector.production.js
6009   *
6010   * Copyright (c) Meta Platforms, Inc. and affiliates.
6011   *
6012   * This source code is licensed under the MIT license found in the
6013   * LICENSE file in the root directory of this source tree.
6014   */
6015"use strict";var u=r(d[0]);var n="function"==typeof Object.is?Object.is:function(u,n){return u===n&&(0!==u||1/u==1/n)||u!=u&&n!=n},t=u.useSyncExternalStore,l=u.useRef,c=u.useEffect,f=u.useMemo,o=u.useDebugValue;e.useSyncExternalStoreWithSelector=function(u,v,s,S,h){var V=l(null);if(null===V.current){var b={hasValue:!1,value:null};V.current=b}else b=V.current;V=f(function(){function u(u){if(!c){if(c=!0,t=u,u=S(u),void 0!==h&&b.hasValue){var f=b.value;if(h(f,u))return l=f}return l=u}if(f=l,n(t,u))return f;var o=S(u);return void 0!==h&&h(f,o)?(t=u,f):(t=u,l=o)}var t,l,c=!1,f=void 0===s?null:s;return[function(){return u(v())},null===f?void 0:function(){return u(f())}]},[v,s,S,h]);var y=t(u,V[0],V[1]);return c(function(){b.hasValue=!0,b.value=y},[y]),o(y),y}},455,[34]);
6016__d(function(g,r,_i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useOnAction=function({router:i,getState:u,setState:s,key:c,actionListeners:f,beforeRemoveListeners:d,routerConfigOptions:l,emitter:v}){const{onAction:y,onRouteFocus:p,addListener:C,onDispatchAction:b}=e.useContext(n.NavigationBuilderContext),h=e.useContext(t.DeprecatedNavigationInChildContext),A=e.useRef(l);e.useEffect(()=>{A.current=l});const O=e.useCallback((e,t=new Set)=>{const n=u();if(t.has(n.key))return!1;if(t.add(n.key),'string'!=typeof e.target||e.target===n.key){let t=i.getStateForAction(n,e,A.current);if(t=null===t&&e.target===n.key?n:t,null!==t){if(b(e,n===t),n!==t){if((0,o.shouldPreventRemove)(v,d,n.routes,t.routes,e))return!0;s(t)}if(void 0!==p){i.shouldActionChangeFocus(e)&&void 0!==c&&p(c)}return!0}}if(void 0!==y&&y(e,t))return!0;if('string'==typeof e.target||'NAVIGATE_DEPRECATED'===e.type||h)for(let n=f.length-1;n>=0;n--){if((0,f[n])(e,t))return!0}return!1},[f,d,v,u,h,c,y,b,p,i,s]);return(0,o.useOnPreventRemove)({getState:u,emitter:v,beforeRemoveListeners:d}),e.useEffect(()=>C?.('action',O),[C,O]),O};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2]),o=r(_d[3])},456,[34,385,388,457]);
6017__d(function(g,r,i,a,m,_e,_d){"use strict";
6017Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"shouldPreventRemove",{enumerable:!0,get:function(){return u}}),_e.useOnPreventRemove=function({getState:o,emitter:c,beforeRemoveListeners:f}){const{addKeyedListener:s}=e.useContext(t.NavigationBuilderContext),d=e.useContext(n.NavigationRouteContext),v=d?.key;e.useEffect(()=>{if(v)return s?.('beforeRemove',v,e=>{const t=o();return u(c,f,t.routes,[],e)})},[s,f,c,o,v])};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2]);const o=Symbol('VISITED_ROUTE_KEYS'),u=(e,t,n,u,c)=>{const f=u.map(e=>e.key),s=n.filter(e=>!f.includes(e.key)).reverse(),d=c[o]??new Set,v=Object.assign({},c,{[o]:d});for(const n of s){if(d.has(n.key))continue;const o=t[n.key]?.(v);if(o)return!0;d.add(n.key);if(e.emit({type:'beforeRemove',target:n.key,data:{action:v},canPreventDefault:!0}).defaultPrevented)return!0}return!1}},457,[34,388,409]);
6018__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useOnGetState=function({getState:s,getStateListeners:u}){const{addKeyedListener:c}=e.useContext(n.NavigationBuilderContext),f=e.useContext(o.NavigationRouteContext),d=f?f.key:'root',l=e.useCallback(()=>{const e=s(),n=e.routes.map(e=>{const t=u[e.key]?.();return e.state===t?e:Object.assign({},e,{state:t})});return(0,t.isArrayEqual)(e.routes,n)?e:Object.assign({},e,{routes:n})},[s,u]);e.useEffect(()=>c?.('getState',d,l),[c,l,d])};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2]),o=r(_d[3])},458,[34,429,388,409]);
6019__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useOnRouteFocus=function({router:o,getState:u,key:n,setState:c}){const{onRouteFocus:s}=e.useContext(t.NavigationBuilderContext);return e.useCallback(e=>{const t=u(),f=o.getStateForRouteFocus(t,e);f!==t&&c(f),void 0!==s&&void 0!==n&&s(n)},[u,s,o,c,n])};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var u=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},459,[34,388]);
6020__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useRegisterNavigator=function(){const[o]=t.useState(()=>(0,e.nanoid)()),u=t.useContext(n.SingleNavigatorContext);if(void 0===u)throw new Error("Couldn't register the navigator. Have you wrapped your app with 'NavigationContainer'?\n\nThis can also happen if there are multiple copies of '@react-navigation' packages installed.");return t.useEffect(()=>{const{register:e,unregister:t}=u;return e(o),()=>t(o)},[u,o]),o};var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=r(_d[2])},460,[373,34,386]);
6021__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useScheduleUpdate=function(u){const{scheduleUpdate:o,flushUpdates:c}=e.useContext(t.NavigationBuilderContext);o(u),(0,n.useClientLayoutEffect)(c)};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2])},461,[34,388,441]);
6022__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useNavigationContainerRef=function(){const n=e.useRef(null);null==n.current&&(n.current=(0,t.createNavigationContainerRef)());return n.current};
6022var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},462,[34,384]);
6023__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.usePreventRemove=function(e,u){const[d]=n.useState(()=>(0,t.nanoid)()),v=(0,f.useNavigation)(),{key:l}=(0,c.useRoute)(),{setPreventRemove:_}=(0,s.usePreventRemoveContext)();n.useEffect(()=>(_(d,l,e),()=>{_(d,l,!1)}),[_,d,l,e]);const b=(0,o.default)(t=>{e&&(t.preventDefault(),u({data:t.data}))});n.useEffect(()=>v?.addListener('beforeRemove',b),[v,b])};var e,t=r(_d[0]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),u=r(_d[2]),o=(e=u)&&e.__esModule?e:{default:e},f=r(_d[3]),s=r(_d[4]),c=r(_d[5])},463,[373,34,380,412,464,408]);
6024__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.usePreventRemoveContext=function(){const n=e.useContext(t.PreventRemoveContext);if(null==n)throw new Error("Couldn't find the prevent remove context. Is your component inside NavigationContent?");return n};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},464,[34,433]);
6025__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useStateForPath=function(){return e.useContext(t.NavigationFocusedRouteStateContext)};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},465,[34,446]);
6026__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["direction","theme","linking","fallback","documentTitle","onReady","onStateChange"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NavigationContainer",{enumerable:!0,get:function(){return j}});var n=t(r(_d[0])),o=r(_d[1]),l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),u=t(r(_d[3])),c=t(r(_d[4])),s=r(_d[5]),d=r(_d[6]),f=r(_d[7]),h=r(_d[8]),S=r(_d[9]),v=r(_d[10]),b=r(_d[11]),P=r(_d[12]),C=r(_d[13]);function O(t,O){let{direction:j=(u.default.getConstants().isRTL?'rtl':'ltr'),theme:T=f.DefaultTheme,linking:k,fallback:p=null,documentTitle:x,onReady:_,onStateChange:L}=t,R=(0,n.default)(t,e);const A=!!k&&!1!==k.enabled;k?.config&&(0,o.validatePathConfig)(k.config);const F=l.useRef(null);(0,S.useBackButton)(F),(0,v.useDocumentTitle)(F,x);const[y,D]=l.useState(),{getInitialState:E}=(0,b.useLinking)(F,Object.assign({enabled:A,prefixes:[]},k),D),I=l.useMemo(()=>({options:k}),[k]),M=l.useMemo(()=>({lastUnhandledLink:y,setLastUnhandledLink:D}),[y,D]),N=(0,c.default)(()=>{const e=F.current?.getCurrentRoute()?.path;D(t=>{if(t!==e)return t}),_?.()}),V=(0,c.default)(e=>{const t=F.current?.getCurrentRoute()?.path;D(e=>{if(e!==t)return e}),L?.(e)});l.useEffect(()=>{F.current&&REACT_NAVIGATION_DEVTOOLS.set(F.current,{get linking(){return Object.assign({},k,{enabled:A,prefixes:k?.prefixes??[],getStateFromPath:k?.getStateFromPath??o.getStateFromPath,getPathFromState:k?.getPathFromState??o.getPathFromState,getActionFromState:k?.getActionFromState??o.getActionFromState})}})});const[w,B]=(0,P.useThenable)(E);l.useImperativeHandle(O,()=>F.current);return null!=R.initialState||!A||w?(0,C.jsx)(d.LocaleDirContext.Provider,{value:j,children:(0,C.jsx)(h.UnhandledLinkingContext.Provider,{value:M,children:(0,C.jsx)(s.LinkingContext.Provider,{value:I,children:(0,C.jsx)(o.BaseNavigationContainer,Object.assign({},R,{theme:T,onReady:N,onStateChange:V,initialState:null==R.initialState?B:R.initialState,ref:F}))})})}):(0,C.jsx)(d.LocaleDirContext.Provider,{value:j,children:(0,C.jsx)(o.ThemeProvider,{value:T,children:p})})}globalThis.REACT_NAVIGATION_DEVTOOLS=new WeakMap;const j=l.forwardRef(O)},466,[129,368,34,467,380,468,469,470,472,473,474,475,478,175]);
6027__d(function(g,r,i,a,m,e,d){"use strict";
6027Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t={allowRTL(){},forceRTL(){},getConstants:()=>({isRTL:!1})}},467,[]);
6028__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"LinkingContext",{enumerable:!0,get:function(){return t}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]));const t=e.createContext({get options(){throw new Error("Couldn't find a LinkingContext context.")}});t.displayName='LinkingContext'},468,[34]);
6029__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"LocaleDirContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext('ltr');e.displayName='LocaleDirContext'},469,[34]);
6030__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DefaultTheme",{enumerable:!0,get:function(){return t}});const t={dark:!1,colors:{primary:'rgb(0, 122, 255)',background:'rgb(242, 242, 242)',card:'rgb(255, 255, 255)',text:'rgb(28, 28, 30)',border:'rgb(216, 216, 216)',notification:'rgb(255, 59, 48)'},fonts:r(d[0]).fonts}},470,[471]);
6031__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fonts",{enumerable:!0,get:function(){return t}}),r(d[0]);const o='system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',t={regular:{fontFamily:o,fontWeight:'400'},medium:{fontFamily:o,fontWeight:'500'},bold:{fontFamily:o,fontWeight:'600'},heavy:{fontFamily:o,fontWeight:'700'}}},471,[95]);
6032__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"UnhandledLinkingContext",{enumerable:!0,get:function(){return t}});var e=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n})(r(_d[0]));const n="Couldn't find an UnhandledLinkingContext context.",t=e.createContext({get lastUnhandledLink(){throw new Error(n)},get setLastUnhandledLink(){throw new Error(n)}});t.displayName='UnhandledLinkingContext'},472,[34]);
6033__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useBackButton=function(t){}},473,[]);
6034__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useDocumentTitle=function(t,{enabled:n=!0,formatter:u=(e,t)=>e?.title??t?.name}={}){e.useEffect(()=>{if(!n)return;const e=t.current;if(e){const t=u(e.getCurrentOptions(),e.getCurrentRoute());document.title=t}return e?.addListener('options',t=>{const n=u(t.data.options,e?.getCurrentRoute());document.title=n})})};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]))},474,[34]);
6035__d(function(g,_r,i,_a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"series",{enumerable:!0,get:function(){return a}}),_e.useLinking=function(e,{enabled:r=!0,config:f,getStateFromPath:d=t.getStateFromPath,getPathFromState:l=t.getPathFromState,getActionFromState:h=t.getActionFromState},y){const p=(0,t.useNavigationIndependentTree)();o.useEffect(()=>{},[r,p]);const[v]=o.useState(s.createMemoryHistory),R=o.useRef(r),k=o.useRef(f),b=o.useRef(d),S=o.useRef(l),w=o.useRef(h);o.useEffect(()=>{R.current=r,k.current=f,b.current=d,S.current=l,w.current=h});const F=o.useCallback(t=>{const r=e.current,n=r?.getRootState();return t?.routes.some(e=>!n?.routeNames.includes(e.name))},[e]),P=o.useContext(c.ServerContext),x=o.useCallback(()=>{let e;if(R.current){const t=P?.location??('undefined'!=typeof window?window.location:void 0),r=t?t.pathname+t.search:void 0;r&&(e=b.current(r,k.current)),y(r)}const t={then:t=>
6035Promise.resolve(t?t(e):e),catch:()=>t};return t},[]),_=o.useRef(void 0),j=o.useRef(void 0),O=o.useRef(void 0);return o.useEffect(()=>(_.current=v.index,v.listen(()=>{const t=e.current;if(!t||!r)return;const{location:n}=window,o=n.pathname+n.search,s=v.index,c=_.current??0;_.current=s,O.current=o;const u=v.get(s);if(u?.path===o&&u?.state)return void t.resetRoot(u.state);const a=b.current(o,k.current);if(a){if(y(o),F(a))return;if(s>c){const e=w.current(a,k.current);if(void 0!==e)try{t.dispatch(e)}catch(e){console.warn(`An error occurred when trying to handle the link '${o}': ${'object'==typeof e&&null!=e&&'message'in e?e.message:e}`)}else t.resetRoot(a)}else t.resetRoot(a)}else t.resetRoot(a)})),[r,v,y,e,F]),o.useEffect(()=>{if(!r)return;const o=(e,r)=>{let o;if(e?.path){const r=b.current(e.path,k.current);if(r){const s=(0,t.findFocusedRoute)(r);s&&s.name===e.name&&(0,n.default)(s.params,e.params)&&(o=e.path)}}null==o&&(o=S.current(r,k.current));const s=j.current?(0,t.findFocusedRoute)(j.current):void 0;return s&&e&&'key'in s&&'key'in e&&s.key===e.key&&(o+=location.hash),o};if(e.current){const r=e.current.getRootState();if(r){const e=(0,t.findFocusedRoute)(r),n=o(e,r);void 0===j.current&&(j.current=r),v.replace({path:n,state:r})}}return e.current?.addListener('state',a(async()=>{const n=e.current;if(!n||!r)return;const s=j.current,c=n.getRootState();if(!c)return;const a=O.current,f=(0,t.findFocusedRoute)(c),d=o(f,c);j.current=c,O.current=void 0;const[l,h]=u(s,c);if(l&&h&&d!==a){const e=(h.history?h.history.length:h.routes.length)-(l.history?l.history.length:l.routes.length);if(e>
60350)v.push({path:d,state:c});else if(e<0){const t=v.backIndex({path:d}),r=v.index;try{-1!==t&&t<r&&v.get(t)?await v.go(t-r):await v.go(e),v.replace({path:d,state:c})}catch(e){}}else v.replace({path:d,state:c})}else v.replace({path:d,state:c})}))},[r,v,e]),{getInitialState:x}};var e,t=_r(_d[0]),r=_r(_d[1]),n=(e=r)&&e.__esModule?e:{default:e},o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),t.default=e,t})(_r(_d[2])),s=_r(_d[3]),c=_r(_d[4]);const u=(e,t)=>{if(void 0===e||void 0===t||e.key!==t.key)return[void 0,void 0];const r=e.history?e.history.length:e.routes.length,n=t.history?t.history.length:t.routes.length,o=e.routes[e.index],s=t.routes[t.index],c=o.state,a=s.state;return r!==n||o.key!==s.key||void 0===c||void 0===a||c.key!==a.key?[e,t]:u(c,a)},a=e=>{let t=Promise.resolve();return()=>{t=t.then(e)}}},475,[368,439,34,476,477]);
6036__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createMemoryHistory=function(){let n=0,i=[];const o=[],s=()=>{o.forEach(t=>{const n=t.cb;t.cb=()=>n(!0)})};return{get index(){const t=window.history.state?.id;if(t){const n=i.findIndex(n=>n.id===t);return n>-1?n:0}return 0},get:t=>i[t],backIndex({path:t}){for(let o=n-1;o>=0;o--){if(i[o].path===t)return o}return-1},push({path:o,state:c}){s();const h=(0,t.nanoid)();i=i.slice(0,n+1),i.push({path:o,state:c,id:h}),n=i.length-1,window.history.pushState({id:h},'',o)},replace({path:o,state:c}){s();const h=window.history.state?.id??(0,t.nanoid)();let w=o;const p=w.includes('#')?'':location.hash;!i.length||i.findIndex(t=>t.id===h)<0?(w+=p,i=[{path:w,state:c,id:h}],n=0):(i[n].path===o&&(w+=p),i[n]={path:o,state:c,id:h}),window.history.replaceState({id:h},'',w)},go(t){s();const c=n+t,h=i.length-1;if(t<0&&!i[c]?(t=-n,n=0):t>0&&c>h?(t=h-n,n=h):n=c,0!==t)return new Promise((i,s)=>{const c=t=>{if(clearTimeout(h),t)return void s(new Error('History was changed during navigation.'));const{title:n}=window.document;window.document.title='',window.document.title=n,i()};o.push({ref:c,cb:c});const h=setTimeout(()=>{const t=o.findIndex(t=>t.ref===c);t>-1&&(o[t].cb(),o.splice(t,1)),n=this.index},100),w=()=>{n=this.index;const t=o.pop();window.removeEventListener('popstate',w),t?.cb()};window.addEventListener('popstate',w),window.history.go(t)})},listen(t){const i=()=>{n=this.index,o.length||t()};return window.addEventListener('popstate',i),()=>window.removeEventListener('popstate',i)}}};var t=r(d[0])},476,[373]);
6037__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ServerContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},477,[34]);
6038__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useThenable=function(t){const[n]=e.useState(t);let u=[!1,void 0];n.then(e=>{u=[!0,e]});const[c,o]=e.useState(u),[f]=c;return e.useEffect(()=>{let e=!1;return f||(async()=>{let t;try{t=await n}finally{e||o([!0,t])}})(),()=>{e=!0}},[n,f]),c};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]))},478,[34]);
6039__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["screen","params","action","href","style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.Link=function(t){let{screen:f,params:l,action:d,href:p,style:y}=t,P=(0,n.default)(t,e);const{colors:_,fonts:b}=(0,s.useTheme)(),v=(0,u.useLinkProps)({screen:f,params:l,action:d,href:p});return o.createElement(c.default,Object.assign({},v,P,{onClick:e=>{'onPress'in P&&P.onPress?.(e),e.defaultPrevented||v.onPress(e)}},{style:[{color:_.primary},b.regular,y]}))};
6039var n=t(r(_d[0])),s=r(_d[1]),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2]));r(_d[3]);var c=t(r(_d[4])),u=r(_d[5])},479,[129,368,34,95,229,480]);
6040__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useLinkProps=function({screen:s,params:u,href:c,action:l}){const f=t.useContext(e.NavigationContainerRefContext),p=t.useContext(e.NavigationHelpersContext),{options:d}=t.useContext(n.LinkingContext),v=d?.getPathFromState??e.getPathFromState;return{href:c??(null!=s?v({routes:[{name:s,params:u,state:o(u)}]},d?.config):void 0),role:'link',onPress:e=>{let t=!1;if(e){const n='metaKey'in e&&e.metaKey||'altKey'in e&&e.altKey||'ctrlKey'in e&&e.ctrlKey||'shiftKey'in e&&e.shiftKey,o=!('button'in e)||null==e.button||0===e.button,s=!e.currentTarget||!('target'in e.currentTarget)||[void 0,null,'','self'].includes(e.currentTarget.target);!n&&o&&s&&(e.preventDefault?.(),t=!0)}else e?.preventDefault?.(),t=!0;if(t)if(l)if(p)p.dispatch(l);else{if(!f)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");f.dispatch(l)}else p?.navigate(s,u)}}};var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1]));r(_d[2]);var n=r(_d[3]);const o=e=>e?.state?e.state:e?.screen?{routes:[{name:e.screen,params:e.params,state:e.screen?o(e.params):void 0}]}:void 0},480,[368,34,95,468]);
6041__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ServerContainer",{enumerable:!0,get:function(){return c}});var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=r(_d[2]),o=r(_d[3]);const c=t.forwardRef(function({children:c,location:u},f){t.useEffect(()=>{console.error("'ServerContainer' should only be used on the server with 'react-dom/server' for SSR.")},[]);const s={};if(f){const e={getCurrentOptions:()=>s.options};'function'==typeof f?f(e):f.current=e}return(0,o.jsx)(n.ServerContext.Provider,{value:{location:u},children:(0,o.jsx)(e.CurrentRenderContext.Provider,{value:s,children:c})})})},481,[368,34,477,175]);
6042__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DarkTheme",{enumerable:!0,get:function(){return t}});const t={dark:!0,colors:{primary:'rgb(10, 132, 255)',background:'rgb(1, 1, 1)',card:'rgb(18, 18, 18)',text:'rgb(229, 229, 231)',border:'rgb(39, 39, 41)',notification:'rgb(255, 69, 58)'},fonts:r(d[0]).fonts}},482,[471]);
6043__d(function(g,r,i,a,m,e,d){},483,[]);
6044__d(function(g,_r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useBuildHref=r,Object.defineProperty(_e,"useBuildAction",{enumerable:!0,get:function(){return o}}),_e.useLinkBuilder=function(){const t=r(),e=o();return{buildHref:t,buildAction:e}};var t=_r(_d[0]),e=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}),e.default=t,e})(_r(_d[1])),n=_r(_d[2]);function r(){const r=e.useContext(t.NavigationHelpersContext),o=e.useContext(t.NavigationRouteContext),{options:u}=e.useContext(n.LinkingContext),s=(0,t.useStateForPath)(),c=u?.getPathFromState??t.getPathFromState;return e.useCallback((e,n)=>{if(!1===u?.enabled)return;const f=!!(r&&o?.key&&s)&&(o.key===(0,t.findFocusedRoute)(s)?.key&&r.getState().routes.some(t=>t.key===o.key)),l={routes:[{name:e,params:n}]},d=t=>{if(t){const e=t.routes[0];
6044return f&&!e.state?l:{routes:[Object.assign({},e,{state:d(e.state)})]}}return l},b=d(s);return c(b,u?.config)},[u?.enabled,u?.config,o?.key,r,s,c])}const o=()=>{const{options:r}=e.useContext(n.LinkingContext),o=r?.getStateFromPath??t.getStateFromPath,u=r?.getActionFromState??t.getActionFromState;return e.useCallback(e=>{if(!e.startsWith('/'))throw new Error(`The href must start with '/' (${e}).`);const n=o(e,r?.config);if(n){return u(n,r?.config)??t.CommonActions.reset(n)}throw new Error('Failed to parse the href to a navigation state.')},[r?.config,o,u])}},484,[368,34,468]);
6045__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useLinkTo=function(){const o=t.useContext(e.NavigationContainerRefContext),u=(0,n.useBuildAction)();return t.useCallback(e=>{if(void 0===o)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");const t=u(e);o.dispatch(t)},[u,o])};var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=r(_d[2])},485,[368,34,484]);
6046__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useLocale=function(){const n=e.useContext(t.LocaleDirContext);if(void 0===n)throw new Error("Couldn't determine the text direction. Is your component inside NavigationContainer?");return{direction:n}};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},486,[34,469]);
6047__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useRoutePath=function(){const{options:o}=t.useContext(n.LinkingContext),u=(0,e.useStateForPath)();if(void 0===u)throw new Error("Couldn't find a state for the route object. Is your component inside a screen in a navigator?");const c=o?.getPathFromState??e.getPathFromState;return t.useMemo(()=>{if(!1===o?.enabled)return;return c(u,o?.config)},[o?.enabled,o?.config,u,c])};var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=r(_d[2])},487,[368,34,468]);
6048__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useScrollToTop=function(n){const c=t.useContext(e.NavigationContext),l=(0,e.useRoute)();if(void 0===c)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");t.useEffect(()=>{const e=[];let t=c;for(;t;)'tab'===t.getState().type&&e.push(t),t=t.getParent();if(0===e.length)return;const s=e.map(t=>t.addListener('tabPress',t=>{const s=c.isFocused(),u=e.includes(c)||c.getState().routes[0].key===l.key;requestAnimationFrame(()=>{const e=o(n);s&&u&&e&&!t.defaultPrevented&&('scrollToTop'in e?e.scrollToTop():'scrollTo'in e?e.scrollTo({y:0,animated:!0}):'scrollToOffset'in e?e.scrollToOffset({offset:0,animated:!0}):'scrollResponderScrollTo'in e&&e.scrollResponderScrollTo({y:0,animated:!0}))})}));return()=>{s.forEach(e=>e())}},[c,n,l.key])};var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[1]));function o(e){return null==e.current?null:'scrollToTop'in e.current||'scrollTo'in e.current||'scrollToOffset'in e.current||'scrollResponderScrollTo'in e.current?e.current:'getScrollResponder'in e.current?e.current.getScrollResponder():'getNode'in e.current?e.current.getNode():e.current}},488,[368,34]);
6049__d(function(g,r,i,a,m,_e,d){"use strict";
6049Object.defineProperty(_e,'__esModule',{value:!0}),_e.WebRouterProvider=function({value:e,children:t}){return(0,n.jsx)(o.Provider,{value:e,children:t})},_e.useAppRouter=function(){const e=u.default.useContext(o);if(!e)throw new Error('Web router context is not available.');return e};r(d[0]);var e,t=r(d[1]),u=(e=t)&&e.__esModule?e:{default:e};r(d[2]);var n=r(d[3]);const o=u.default.createContext(null)},489,[490,34,95,175]);
6050__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.Tabs=e.Stack=void 0;var o=r(d[0]);Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return o.Stack}});var c=r(d[1]);Object.defineProperty(e,"Tabs",{enumerable:!0,get:function(){return c.Tabs}}),n(r(d[2]),e)},490,[491,674,744]);
6051__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Stack=void 0;const u=t(r(d[0]));e.Stack=u.default;const c=r(d[1]);u.default.Screen=c.Screen,e.default=u.default},491,[492,658]);
6052__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const u=t(r(d[0]));e.default=u.default},492,[493]);
6053__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const u=t(r(d[0]));e.default=u.default},493,[494]);
6054__d(function(g,_r,i,a,m,e,d){"use strict";var t=_r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.StackRouter=e.stackRouterOverride=void 0;const o=_r(d[1]),n=_r(d[2]),r=_r(d[3]),s=_r(d[4]),p=_r(d[5]),l=_r(d[6]),u=_r(d[7]),y=_r(d[8]),c=_r(d[9]),f=(0,p.createNativeStackNavigator)().Navigator,O=(0,s.withLayoutContext)(f);function v(t){return'PUSH'===t.type||'NAVIGATE'===t.type||'POP'===t.type||'POP_TO_TOP'===t.type||'REPLACE'===t.type||'PRELOAD'===t.type}const k=t=>!!t.payload&&'params'in t.payload&&'object'==typeof t.payload.params&&!!(0,u.getInternalExpoRouterParams)(t.payload?.params??void 0).__internal__expo_router_is_preview_navigation;function A(t,o){return'function'==typeof t?n=>t(o,n.params??{}):!0===t?t=>(0,y.getSingularId)(o,t):void 0}function h(t,o){if(!t)return t;if(!t.routes)return t;const n=t.index||t.routes.length-1,r=t.routes[n],s=r.name,p=o?.({params:r.params});if(!p)return t;let l=t.routes;return l=l.filter((t,r)=>r===n||(s!==t.name||p!==o?.({params:t.params}))),Object.assign({},t,{index:l.length-1,routes:l})}e.stackRouterOverride=t=>({getStateForAction:(o,r,s)=>{if(r.target&&r.target!==o.key)return null;if(!v(r))return t.getStateForAction(o,r,s);const p=r.payload&&'singular'in r.payload?r.payload.singular:void 0;const{routeParamList:l}=s;switch(r.type){case'PUSH':case'NAVIGATE':{if(!o.routeNames.includes(r.payload.name))return null;const t=(function(){if(!('payload'in r)||!r.payload||!('name'in r.payload)||'string'!=typeof r.payload.name)return;const t=r.payload.name;return A(p,t)||s.routeGetIdList[t]})(),u=t?.({params:r.payload.params});let c,f,O;if(void 0!==u)c=o.routes.findLast(o=>o.name===r.payload.name&&u===t?.({params:o.params}));else if('NAVIGATE'===r.type){const t=o.routes[o.index];r.payload.name!==t.name||k(r)?r.payload.pop&&(c=o.routes.findLast(t=>t.name===r.payload.name)):c=t}if(k(r)&&!c&&(c=o.preloadedRoutes.find(t=>t.name===r.payload.name&&u===t.key)),c||(c=o.preloadedRoutes.find(o=>o.name===r.payload.name&&u===t?.({params:o.params}))),f='NAVIGATE'===r.type&&r.payload.merge&&c?void 0!==r.payload.params||void 0!==l[r.payload.name]?Object.assign({},l[r.payload.name],c.params,r.payload.params):c.params:void 0!==l[r.payload.name]?Object.assign({},l[r.payload.name],r.payload.params):r.payload.params,c)if('NAVIGATE'===r.type&&r.payload.pop){O=[];for(const t of o.routes){if(t.key===c.key){O.push(Object.assign({},c,{path:void 0!==r.payload.path?r.payload.path:c.path,params:f}));break}O.push(t)}}else{if(void 0!==u)O=o.routes.filter(t=>t.key!==c.key);else if('NAVIGATE'===r.type&&o.routes.length>0){const t=o.routes[o.routes.length-1];O=(0,y.getSingularId)(t.name,{params:t.params})===(0,y.getSingularId)(c.name,{params:f})?o.routes.slice(0,-1):[...o.routes]}else O=[...o.routes];const t=O.length!==o.routes.length||k(r)?c.key:`${r.payload.name}-${(0,n.nanoid)()}`;O.push(Object.assign({},c,{key:t,path:'NAVIGATE'===r.type&&void 0!==r.payload.path?r.payload.path:c.path,params:f}))}else O=[...o.routes,{key:`${r.payload.name}-${(0,n.nanoid)()}`,name:r.payload.name,path:'NAVIGATE'===r.type?r.payload.path:void 0,params:f}];const v=Object.assign({},o,{index:O.length-1,preloadedRoutes:o.preloadedRoutes.filter(t=>O[O.length-1].key!==t.key),routes:O});return p?h(v,t):v}case'PRELOAD':{if(!o.routeNames.includes(r.payload.name))return null;const t=s.routeGetIdList[r.payload.name],p=t?.({params:r.payload.params});let u;if(void 0!==p&&(u=o.routes.find(o=>o.name===r.payload.name&&p===t?.({params:o.params}))),u)return Object.assign({},o,{routes:o.routes.map(t=>t.key!==u?.key?t:Object.assign({},t,{params:void 0!==l[r.payload.name]?Object.assign({},l[r.payload.name],r.payload.params):r.payload.params}))});
6054{const s={key:`${r.payload.name}-${(0,n.nanoid)()}`,name:r.payload.name,params:void 0!==l[r.payload.name]?Object.assign({},l[r.payload.name],r.payload.params):r.payload.params};return Object.assign({},o,{preloadedRoutes:[s].concat(o.preloadedRoutes.filter(o=>o.name!==r.payload.name||p!==t?.({params:o.params})))})}}default:return t.getStateForAction(o,r,s)}}});const _=Object.assign(o=>{const{isStackAnimationDisabled:n}=(0,l.useLinkPreviewContext)(),s=(0,r.useMemo)(()=>{const t=n?()=>!0:j;return b(o.screenOptions,t)},[o.screenOptions,n]);return t.jsx(O,Object.assign({},o,{screenOptions:s,UNSTABLE_router:e.stackRouterOverride}))},{Screen:O.Screen,Protected:c.Protected});function b(t,o){return t&&'function'==typeof t?n=>{const r=t(n);return o(n.route)?Object.assign({},r,{animation:'none'}):r??{}}:n=>o(n.route)?Object.assign({},t??{},{animation:'none'}):t??{}}function j(t){return!!(0,u.getInternalExpoRouterParams)(t.params).__internal_expo_router_no_animation}e.default=_;e.StackRouter=t=>{const n=(0,o.StackRouter)(t);return Object.assign({},n,(0,e.stackRouterOverride)(n))}},494,[175,366,373,34,495,667,672,673,505,657]);
6055__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]),n=r(d[1]);const o=["children"];var c,i=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var i=Object.getOwnPropertyDescriptor(n,o);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,i)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),s=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(c=function(t){return c=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},c(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var o=c(t),u=0;u<o.length;u++)"default"!==o[u]&&i(n,t,o[u]);return s(n,t),n});Object.defineProperty(e,"__esModule",{value:!0}),e.useFilterScreenChildren=y,e.withLayoutContext=function(c,i,s=!1){return Object.assign((0,l.forwardRef)((u,l)=>{let{children:f}=u,b=n(u,o);const v=(0,p.useContextKey)(),{screens:O,protectedScreens:_}=y(f,{contextKey:v}),m=i?i(O??[]):O,j=(0,h.useSortedScreens)(m??[],_,s);return j.length?t.jsx(c,Object.assign({},b,{id:v,ref:l,children:j})):null}),{Screen:v.Screen,Protected:b.Protected})};const l=u(r(d[2])),p=r(d[3]),f=r(d[4]),h=r(d[5]),b=r(d[6]),v=r(d[7]);function y(t,{isCustomNavigator:n,contextKey:o}={}){return(0,l.useMemo)(()=>{const c=[],i=[],s=new Set;function u(t,p=!1){if((0,v.isScreen)(t,o))p?s.add(t.props.name):i.push(t.props);else{if(!(0,f.isNativeTabTrigger)(t,o)){if((0,b.isProtectedReactElement)(t)){const n=p||!t.props.guard;return void l.Children.forEach(t.props.children,t=>{u(t,n)})}return n?(c.push(t),null):(console.warn(`Layout children must be of type Screen, all other children are ignored. To use custom children, create a custom <Layout />. Update Layout Route at: "app${o}/_layout"`),null)}if(p)s.add(t.props.name);else{!1===(0,f.convertTabPropsToOptions)(t.props).hidden?i.push(Object.assign({},t.props,{options:(0,f.convertTabPropsToOptions)(t.props)})):s.add(t.props.name)}}}return l.Children.forEach(t,t=>u(t)),{screens:i,children:c,protectedScreens:s}},[t])}},495,[175,129,34,496,499,505,657,658]);
6056__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.sortRoutes=e.sortRoutesWithInitial=e.LocalRouteParamsContext=void 0,e.useRouteNode=c,e.useContextKey=function(){const t=c();if(null==t)throw new Error('No filename found. This is likely a bug in expo-router.');return(0,n.getContextKey)(t.contextKey)},e.Route=function({children:o,node:n,route:u}){return t.jsx(e.LocalRouteParamsContext.Provider,{value:u?.params,children:t.jsx(s.Provider,{value:n,children:o})})};const o=r(d[1]),n=r(d[2]),u=r(d[3]);Object.defineProperty(e,"sortRoutesWithInitial",{enumerable:!0,get:function(){return u.sortRoutesWithInitial}}),Object.defineProperty(e,"sortRoutes",{enumerable:!0,get:function(){return u.sortRoutes}});const s=(0,o.createContext)(null);function c(){return(0,o.use)(s)}
6056e.LocalRouteParamsContext=(0,o.createContext)({})},496,[175,34,497,498]);
6057__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchDynamicName=function(n){const u=n.match(t)?.[1];return null==u?void 0:u.startsWith('...')?{name:u.slice(3),deep:!0}:{name:u,deep:!1}},e.testNotFound=function(t){return/\+not-found$/.test(t)},e.matchGroupName=n,e.matchLastGroupName=function(t){return t.match(/.*(?:\/|^)\(([^\\/]+)\)[^\s]*$/)?.[1]},e.matchArrayGroupName=function(t){return t.match(/(?:[^\\()])*?\(([^\\/]+,[^\\/]+)\)/)?.[1]},e.getNameFromFilePath=u,e.getContextKey=function(t){const n='/'+u(t);if(!n.endsWith('_layout'))return n;return n.replace(/\/?_layout$/,'')},e.removeSupportedExtensions=o,e.removeFileSystemExtensions=function(t){return t.replace(/\.[jt]sx?$/g,'')},e.removeFileSystemDots=c,e.stripGroupSegmentsFromPath=s,e.stripInvisibleSegmentsFromPath=function(t){return s(t).replace(/\/?index$/,'')},e.isTypedRoute=function(t){return!t.startsWith('+')&&null===t.match(/(_layout|[^/]*?\+[^/]*?)\.[tj]sx?$/)};const t=/^\[([^[\]]+?)\]$/;function n(t){return t.match(/^(?:[^\\()])*?\(([^\\/]+)\)/)?.[1]}function u(t){return o(c(t))}function o(t){return t.replace(/(\+api)?\.[jt]sx?$/g,'')}function c(t){return t.replace(/^(?:\.\.?\/)+/g,'')}function s(t){return t.split('/').reduce((t,u)=>(null==n(u)&&t.push(u),t),[]).join('/')}},497,[]);
6058__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sortRoutes=u,e.sortRoutesWithInitial=function(n){return(t,o)=>{if(n){if(t.route===n)return-1;if(o.route===n)return 1}return u(t,o)}};const n=r(d[0]);function t(n,t){return n.deep&&!t.deep?1:!n.deep&&t.deep?-1:0}function u(u,o){if(u.dynamic&&!o.dynamic)return 1;if(!u.dynamic&&o.dynamic)return-1;if(u.dynamic&&o.dynamic){if(u.dynamic.length!==o.dynamic.length)return o.dynamic.length-u.dynamic.length;for(let n=0;n<u.dynamic.length;n++){const i=u.dynamic[n],c=o.dynamic[n];if(i.notFound&&c.notFound){const n=t(i,c);if(n)return n}if(i.notFound&&!c.notFound)return 1;if(!i.notFound&&c.notFound)return-1;const a=t(i,c);if(a)return a}return 0}const i='index'===u.route||null!=(0,n.matchGroupName)(u.route),c='index'===o.route||null!=(0,n.matchGroupName)(o.route);return i&&!c?-1:!i&&c?1:u.route.length-o.route.length}},498,[497]);
6059__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeTabTrigger=void 0,e.convertTabPropsToOptions=u,e.appendIconOptions=T,e.isNativeTabTrigger=function(o,n){if((0,t.isValidElement)(o)&&o&&o.type===e.NativeTabTrigger){if('object'==typeof o.props&&o.props&&'name'in o.props&&!o.props.name)throw new Error(`<Trigger /> component in \`default export\` at \`app${n}/_layout\` must have a \`name\` prop when used as a child of a Layout Route.`);return!0}return!1};const o=r(d[0]),t=r(d[1]),n=r(d[2]),c=r(d[3]),l=r(d[4]),s=r(d[5]),p=r(d[6]);function u({options:o,hidden:t,children:l,role:s,disablePopToTop:u,disableScrollToTop:C},h=!1){const I=h?Object.assign({},o):Object.assign({},o,{hidden:!!t,specialEffects:{repeatedTabSelection:{popToRoot:!u,scrollToTop:!C}},role:s??o?.role});return(0,c.filterAllowedChildrenElements)(l,[p.Badge,p.Label,p.Icon,n.NativeTabsTriggerTabBar]).reduce((o,t)=>((0,c.isChildOfType)(t,p.Badge)?f(o,t.props):(0,c.isChildOfType)(t,p.Label)?b(o,t.props):(0,c.isChildOfType)(t,p.Icon)?T(o,t.props):(0,c.isChildOfType)(t,n.NativeTabsTriggerTabBar)&&y(o,t.props),o),Object.assign({},I))}function f(o,t){t.children?(o.badgeValue=String(t.children),o.selectedBadgeBackgroun
6059dColor=t.selectedBackgroundColor):t.hidden||(o.badgeValue=' ')}function b(o,t){t.hidden?o.title='':(o.title=t.children,t.selectedStyle&&(o.selectedLabelStyle=t.selectedStyle))}function T(o,t){if('src'in t&&t.src){const n=C(t);o.icon=n?.icon,o.selectedIcon=n?.selectedIcon}else 0;t.selectedColor&&(o.selectedIconColor=t.selectedColor)}function C(o){if(o&&o.src){const{defaultIcon:t,selected:n}='object'==typeof o.src&&'selected'in o.src?{defaultIcon:o.src.default,selected:o.src.selected}:{defaultIcon:o.src},c={};return c.icon=h(t),c.selectedIcon=h(n),c}}function h(o){if(o){if(!(0,t.isValidElement)(o))return{src:o};if(o.type===p.VectorIcon){const t=o.props;return{src:t.family.getImageSource(t.name,24,'white')}}console.warn('Only VectorIcon is supported as a React element in Icon.src')}}function y(o,t){const{backgroundColor:n,blurEffect:c,iconColor:l,disableTransparentOnScrollEdge:s,badgeBackgroundColor:p,badgeTextColor:u,indicatorColor:f,labelStyle:b,shadowColor:T}=t;n&&(o.backgroundColor=n),c&&(o.blurEffect=c),T&&(o.shadowColor=T),l&&(o.iconColor=l),void 0!==s&&(o.disableTransparentOnScrollEdge=s),p&&(o.badgeBackgroun
6059dColor=p),u&&(o.badgeTextColor=u),f&&(o.indicatorColor=f),b&&(o.labelStyle=b)}e.NativeTabTrigger=Object.assign(function(t){const n=(0,o.useRoute)(),c=(0,o.useNavigation)(),p=c.isFocused(),f=(0,l.useIsPreview)();return(0,s.useSafeLayoutEffect)(()=>{if(p&&!f){if('tab'!==c.getState()?.type)throw new Error(`Trigger component can only be used in the tab screen. Current route: ${n.name}`);const o=u(t,!0);c.setOptions(o)}},[p,t,f]),null},{TabBar:n.NativeTabsTriggerTabBar})},499,[366,34,500,501,502,503,504]);
6060__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeTabsTriggerTabBar=function(t){return null}},500,[]);
6061__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.filterAllowedChildrenElements=function(t,l){return n.default.Children.toArray(t).filter(t=>n.default.isValidElement(t)&&l.includes(t.type))},e.isChildOfType=function(t,l){return n.default.isValidElement(t)&&t.type===l},e.shouldTabBeVisible=function(t){return!1===t.hidden},e.convertLabelStylePropToObject=function(t){if(t)return'object'==typeof t&&('default'in t||'selected'in t)?t:{default:t};return{}},e.convertIconColorPropToObject=function(t){if(t)return'object'==typeof t&&('default'in t||'selected'in t)?t:{default:t};return{}};const n=t(r(d[0]))},501,[34]);
6062__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewRouteContext=void 0,e.usePreviewInfo=n,e.useIsPreview=function(){const{isPreview:t}=n();return t};const t=r(d[0]);function n(){const n=(0,t.use)(e.PreviewRouteContext);return Object.assign({isPreview:!!n},n)}e.PreviewRouteContext=(0,t.createContext)(void 0)},502,[34]);
6063__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useSafeLayoutEffect=void 0;const t=r(d[0]);e.useSafeLayoutEffect='undefined'!=typeof window?t.useLayoutEffect:function(){}},503,[34]);
6064__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Label=function(n){return null},e.Icon=function(n){return null},e.VectorIcon=function(n){return null},e.Badge=function(n){return null}},504,[]);
6065__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]),n=r(d[1]),o=r(d[2]);const u=["ErrorBoundary"],i=["route","navigation"],s=["options","getId"];var l,c=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var i=Object.getOwnPropertyDescriptor(n,o);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,i)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),f=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),p=this&&this.__importStar||(l=function(t){return l=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},l(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var o=l(t),u=0;u<o.length;u++)"default"!==o[u]&&c(n,t,o[u]);return f(n,t),n}),h=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.useSortedScreens=function(t,n,o=!1){const u=(0,b.useRouteNode)(),i=u?.children??[],s=o?i.filter(n=>t.some(t=>t.name===n.route)):i,l=s.length?w(s,t,u?.initialRouteName):[];return y.default.useMemo(()=>l.filter(t=>!n.has(t.route.route)).map(t=>M(t.route,t.props)),[l,n])},e.getQualifiedRouteComponent=E,e.screenOptionsFactory=B,e.routeToScreen=M,e.getSingularId=F;const m=r(d[3]),y=p(r(d[0])),b=r(d[4]),S=r(d[5]),j=h(r(d[6])),_=r(d[7]),O=r(d[8]),v=r(d[9]),R=r(d[10]);function w(t,n=[],o){if(!n?.length)return t.sort((0,b.sortRoutesWithInitial)(o)).map(t=>({route:t,props:{}}));const u=[...t],i=n.map(({name:n,redirect:o,initialParams:i,listeners:s,options:l,getId:c,dangerouslySingular:f})=>{if(!u.length)return console.warn(`[Layout children]: Too many screens defined. Route "${n}" is extraneous.`),null;
6065const p=u.findIndex(t=>t.route===n);if(-1===p)return console.warn(`[Layout children]: No route named "${n}" exists in nested children:`,t.map(({route:t})=>t)),null;{const t=u[p];if(u.splice(p,1),o){if('string'==typeof o)throw new Error("Redirecting to a specific route is not supported yet.");return null}return c?(console.warn(`Deprecated: prop 'getId' on screen ${n} is deprecated. Please rename the prop to 'dangerouslySingular'`),f&&console.warn(`Screen ${n} cannot use both getId and dangerouslySingular together.`)):f&&('string'==typeof f?c=()=>f:'function'==typeof f&&n?c=t=>f(n,t.params||{}):!0===f&&n&&(c=t=>F(n,t))),{route:t,props:{initialParams:i,listeners:s,options:l,getId:c}}}}).filter(Boolean);return i.push(...u.sort((0,b.sortRoutesWithInitial)(o)).map(t=>({route:t,props:{}}))),i}function I(t,i){let{ErrorBoundary:s}=i,l=o(i,u);if(s){return{default:y.default.forwardRef((t,o)=>{const u=y.default.createElement(l.default||O.EmptyRoute,Object.assign({},t,{ref:o}));return n.jsx(R.Try,{catch:s,children:u})})}}return{default:l.default}}function x(t,n){return n instanceof Promise?n.then(I.bind(null,t)):I(0,n)}const P=new WeakMap;function E(t){if(P.has(t))return P.get(t);let u;if('lazy'===j.default)u=y.default.lazy(async()=>{const n=t.loadRoute();return x(t,n)});else{const n=t.loadRoute();u=I(0,n).default}function s(s){let{route:l,navigation:c}=s,f=o(s,i);const p=(0,m.useStateForPath)(),h=c.isFocused(),j=(0,S.useExpoRouterStore)();if(h){const t=c.getState();!('state'in t.routes[t.index])&&p&&j.setFocusedState(p)}return(0,y.useEffect)(()=>c.addListener('focus',()=>{const t=c.getState();!('state'in t.routes[t.index])&&p&&j.setFocusedState(p)}),[c]),n.jsx(b.Route,{node:t,route:l,children:n.jsx(y.default.Suspense,{fallback:n.jsx(v.SuspenseFallback,{route:t}),children:n.jsx(u,Object.assign({},f,{segment:t.route}))})})}return P.set(t,s),s}function B(t,n){return o=>{const u=t.generated?t.loadRoute()?.getNavOptions:null,i='function'==typeof u?u(o):u,s='function'==typeof n?n?.(o):n,l=Object.assign({},i,s);return t.internal&&(l.tabBarItemStyle={display:'none'},l.tabBarButton=()=>null,l.drawerItemStyle={height:0,display:'none'}),l}}function M(n,u={}){let{options:i,getId:l}=u,c=o(u,s);return t.createElement(_.Screen,Object.assign({},c,{name:n.route,key:n.route,getId:l,options:B(n,i),getComponent:()=>E(n)}))}function F(t,n={}){return t.split('/').map(t=>t.startsWith('[...')?n.params?.[t.slice(4,-1)]?.join('/')||t:t.startsWith('[')&&t.endsWith(']')&&n.params?.[t.slice(1,-1)]||t).join('/')}},505,[34,175,129,366,496,506,507,508,509,652,653]);
6066__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useExpoRouterStore=e.StoreContext=void 0;const t=r(d[0]);e.StoreContext=(0,t.createContext)(null);e.useExpoRouterStore=()=>(0,t.use)(e.StoreContext)},506,[34]);
6067__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="sync"},507,[]);
6068__d(function(g,r,i,a,m,e,d){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.Group=e.Screen=void 0;o=(0,r(d[0]).createNavigatorFactory)({})(),e.Screen=o.Screen,e.Group=o.Group},508,[366]);
6069__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyRoute=function(){const n=(0,s.useRouteNode)();return t.jsx(o.ToastWrapper,{children:t.jsx(o.Toast,{warning:!0,filename:n?.contextKey,children:"Missing default export"})})};n(r(d[1]));const o=r(d[2]),s=r(d[3])},509,[175,34,510,496]);
6070__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CODE_FONT=void 0,e.ToastWrapper=function({children:o}){const u=l.default.use(n.BottomTabBarHeightContext)?s.View:c.SafeAreaView;return t.jsx(u,{collapsable:!1,style:{flex:1},children:o})},e.Toast=function({children:o,filename:n,warning:c}){const h=l.default.useMemo(()=>{if(n)return'app'+n.replace(/^\./,'')},[n]),x=u();return t.jsx(s.View,{style:f.container,children:t.jsxs(s.Animated.View,{style:[f.toast,{position:s.Platform.select({web:'fixed',default:'absolute'}),opacity:x}],children:[!c&&t.jsx(s.ActivityIndicator,{color:"white"}),c&&t.jsx(s.Image,{source:r(d[5]),style:f.icon}),t.jsxs(s.View,{style:{marginLeft:8},children:[t.jsx(s.Text,{style:f.text,children:o}),h&&t.jsx(s.Text,{style:f.filename,children:h})]})]})})};const n=r(d[1]),l=o(r(d[2])),s=r(d[3]),c=r(d[4]);function u(){const[t]=l.default.useState(()=>new s.Animated.Value(0));return l.default.useEffect(()=>{s.Animated.timing(t,{toValue:1,duration:200,useNativeDriver:!0}).start()},[]),t}e.CODE_FONT=s.Platform.select({default:'Courier',ios:'Courier New',android:'monospace'});const f=s.StyleSheet.create({container:{backgroundColor:'transparent',flex:1}
6070,icon:{width:20,height:20,resizeMode:'contain'},toast:{alignItems:'center',borderWidth:1,borderColor:'rgba(255,255,255,0.2)',flexDirection:'row',bottom:8,left:8,paddingVertical:8,paddingHorizontal:12,borderRadius:4,backgroundColor:'black'},text:{color:'white',fontSize:16},filename:{fontFamily:e.CODE_FONT,opacity:.8,color:'white',fontSize:12},code:{fontFamily:e.CODE_FONT}})},510,[175,511,34,608,540,651]);
6071__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"createBottomTabNavigator",{enumerable:!0,get:function(){return u.createBottomTabNavigator}}),Object.defineProperty(_e,"BottomTabBar",{enumerable:!0,get:function(){return b.BottomTabBar}}),Object.defineProperty(_e,"BottomTabView",{enumerable:!0,get:function(){return c.BottomTabView}}),Object.defineProperty(_e,"BottomTabBarHeightCallbackContext",{enumerable:!0,get:function(){return f.BottomTabBarHeightCallbackContext}}),Object.defineProperty(_e,"BottomTabBarHeightContext",{enumerable:!0,get:function(){return l.BottomTabBarHeightContext}}),Object.defineProperty(_e,"useBottomTabBarHeight",{enumerable:!0,get:function(){return B.useBottomTabBarHeight}}),Object.defineProperty(_e,"SceneStyleInterpolators",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e,"TransitionPresets",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"TransitionSpecs",{enumerable:!0,get:function(){return o}});var t=e(r(_d[0])),n=e(r(_d[1])),o=e(r(_d[2])),u=r(_d[3]),b=r(_d[4]),c=r(_d[5]),f=r(_d[6]),l=r(_d[7]),B=r(_d[8])},511,[512,513,514,515,570,516,567,568,607]);
6072__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.forFade=function({current:t}){return{sceneStyle:{opacity:t.progress.interpolate({inputRange:[-1,0,1],outputRange:[0,1,0]})}}},e.forShift=function({current:t}){return{sceneStyle:{opacity:t.progress.interpolate({inputRange:[-1,0,1],outputRange:[0,1,0]}),transform:[{translateX:t.progress.interpolate({inputRange:[-1,0,1],outputRange:[-50,0,50]})}]}}}},512,[]);
6073__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FadeTransition",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"ShiftTransition",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);const o={transitionSpec:n.FadeSpec,sceneStyleInterpolator:t.forFade},c={transitionSpec:n.ShiftSpec,sceneStyleInterpolator:t.forShift}},513,[512,514]);
6074__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FadeSpec",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"ShiftSpec",{enumerable:!0,get:function(){return o}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e};const u={animation:'timing',config:{duration:150,easing:t.default.in(t.default.linear)}},o={animation:'timing',config:{duration:150,easing:t.default.inOut(t.default.ease)}}},514,[303]);
6075__d(function(g,r,i,a,m,_e,d){"use strict";const e=["id","initialRouteName","backBehavior","UNSTABLE_routeNamesChangeBehavior","children","layout","screenListeners","screenOptions","screenLayout","UNSTABLE_router"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.createBottomTabNavigator=function(e){return(0,s.createNavigatorFactory)(l)(e)};var t,o=r(d[0]),n=(t=o)&&t.__esModule?t:{default:t},s=r(d[1]),c=r(d[2]),u=r(d[3]);function l(t){let{id:o,initialRouteName:l,backBehavior:N,UNSTABLE_routeNamesChangeBehavior:B,children:v,layout:h,screenListeners:L,screenOptions:_,screenLayout:T,UNSTABLE_router:b}=t,y=(0,n.default)(t,e);const{state:f,descriptors:p,navigation:A,NavigationContent:E}=(0,s.useNavigationBuilder)(s.TabRouter,{id:o,initialRouteName:l,backBehavior:N,UNSTABLE_routeNamesChangeBehavior:B,children:v,layout:h,screenListeners:L,screenOptions:_,screenLayout:T,UNSTABLE_router:b});return(0,u.jsx)(E,{children:(0,u.jsx)(c.BottomTabView,Object.assign({},y,{state:f,navigation:A,descriptors:p}))})}},515,[129,366,516,175]);
6076__d(function(g,r,i,a,m,_e,_d){"use strict";
6076function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.BottomTabView=function(e){const{tabBar:u=T,state:C,navigation:P,descriptors:A,safeAreaInsets:H,detachInactiveScreens:I=!0}=e,M=C.routes[C.index].key,[_,w]=o.useState([M]);_.includes(M)||w([..._,M]);const z=o.useRef(M),R=(0,f.useAnimatedHashMap)(C);o.useEffect(()=>{const e=z.current;let t;if(e!==M&&A[e]?.options.popToTopOnBlur){const o=C.routes.find(t=>t.key===e);'stack'===o?.state?.type&&o.state.key&&(t=Object.assign({},n.StackActions.popToTop(),{target:o.state.key}))}e!==M&&P.emit({type:'transitionStart',target:M}),s.default.parallel(C.routes.map((t,n)=>{const{options:o}=A[t.key],{animation:l="none",transitionSpec:c=k[l].transitionSpec}=o;let u=c;t.key!==e&&t.key!==M&&(u=k.none.transitionSpec),u=u??k.none.transitionSpec;const d=n===C.index?0:n>=C.index?1:-1;return s.default[u.animation](R[t.key],Object.assign({},u.config,{toValue:d,useNativeDriver:j}))}).filter(Boolean)).start(({finished:n})=>{n&&t&&P.dispatch(t),e!==M&&P.emit({type:'transitionEnd',target:M})}),z.current=M},[A,M,P,C.index,C.routes,R]);const D=t.SafeAreaProviderCompat.initialMetrics.frame,[E,F]=o.useState(()=>(0,y.getTabBarHeight)({state:C,descriptors:A,dimensions:D,insets:Object.assign({},t.SafeAreaProviderCompat.initialMetrics.insets,e.safeAreaInsets),style:A[C.routes[C.index].key].options.tabBarStyle})),{routes:V}=C,K=!V.some(e=>B(A[e.key].options)),{tabBarPosition:N="bottom"}=A[M].options,q=(0,b.jsx)(d.BottomTabBarHeightCallbackContext.Provider,{value:F,children:(0,b.jsx)(c.SafeAreaInsetsContext.Consumer,{children:e=>u({state:C,descriptors:A,navigation:P,insets:{top:H?.top??e?.top??0,right:H?.right??e?.right??0,bottom:H?.bottom??e?.bottom??0,left:H?.left??e?.left??0}})})},"tabbar");return(0,b.jsxs)(t.SafeAreaProviderCompat,{style:{flexDirection:'left'===N||'right'===N?'row':'column'},children:['top'===N||'left'===N?q:null,(0,b.jsx)(h.MaybeScreenContainer,{enabled:I,hasTwoStates:K,style:O.screens,children:V.map((e,n)=>{const o=A[e.key],{lazy:s=!0,animation:c="none",sceneStyleInterpolator:u=k[c].sceneStyleInterpolator}=o.options,d=C.index===n,f=C.preloadedRouteKeys.includes(e.key);if(s&&!_.includes(e.key)&&!d&&!f)return null;const{freezeOnBlur:y,header:j=({layout:n,options:o})=>(0,b.jsx)(t.Header,Object.assign({},o,{layout:n,title:(0,t.getHeaderTitle)(o,e.name)})),headerShown:T,headerStatusBarHeight:O,headerTransparent:P,sceneStyle:H}=o.options,{sceneStyle:M}=u?.({current:{progress:R[e.key]}})??{},w=B(o.options),z=d?x:w?R[e.key].interpolate({inputRange:[0,.99999,1],outputRange:[v,v,S],extrapolate:'extend'}):S;return(0,b.jsx)(h.MaybeScreen,{style:[l.default.absoluteFill,{zIndex:d?0:-1}],active:z,enabled:I,freezeOnBlur:y,shouldFreeze:z===S&&!f,children:(0,b.jsx)(p.BottomTabBarHeightContext.Provider,{value:'bottom'===N?E:0,children:(0,b.jsx)(t.Screen,{focused:d,route:o.route,navigation:o.navigation,headerShown:T,headerStatusBarHeight:O,headerTransparent:P,header:j({layout:D,route:o.route,navigation:o.navigation,options:o.options}),style:[H,w&&M],children:o.render()})})},e.key)})},"screens"),'bottom'===N||'right'===N?q:null]})};var t=r(_d[0]),n=r(_d[1]),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),s=e(r(_d[3]));r(_d[4]);var l=e(r(_d[5])),c=r(_d[6]),u=r(_d[7]),d=r(_d[8]),p=r(_d[9]),f=r(_d[10]),y=r(_d[11]),h=r(_d[12]),b=r(_d[13]);const S=0,v=1,x=2,k={fade:u.FadeTransition,shift:u.ShiftTransition,none:{sceneStyleInterpolator:void 0,transitionSpec:{animation:'timing',config:{duration:0}}}},j=!1,B=e=>{const{animation:t,transitionSpec:n}=e;return t?'none'!==t:Boolean(n)},T=e=>(0,b.jsx)(y.BottomTabBar,Object.assign({},e));const O=l.default.create({screens:{flex:1,overflow:'hidden'}})},516,[517,366,34,234,95,42,540,513,567,568,569,570,575,175]);
6077__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}
6077Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Background",{enumerable:!0,get:function(){return f.Background}}),Object.defineProperty(_e,"Badge",{enumerable:!0,get:function(){return b.Badge}}),Object.defineProperty(_e,"Button",{enumerable:!0,get:function(){return l.Button}}),Object.defineProperty(_e,"getDefaultSidebarWidth",{enumerable:!0,get:function(){return P.getDefaultSidebarWidth}}),Object.defineProperty(_e,"getDefaultHeaderHeight",{enumerable:!0,get:function(){return p.getDefaultHeaderHeight}}),Object.defineProperty(_e,"getHeaderTitle",{enumerable:!0,get:function(){return y.getHeaderTitle}}),Object.defineProperty(_e,"Header",{enumerable:!0,get:function(){return O.Header}}),Object.defineProperty(_e,"HeaderBackButton",{enumerable:!0,get:function(){return j.HeaderBackButton}}),Object.defineProperty(_e,"HeaderBackContext",{enumerable:!0,get:function(){return H.HeaderBackContext}}),Object.defineProperty(_e,"HeaderBackground",{enumerable:!0,get:function(){return s.HeaderBackground}}),Object.defineProperty(_e,"HeaderButton",{enumerable:!0,get:function(){return B.HeaderButton}}),Object.defineProperty(_e,"HeaderHeightContext",{enumerable:!0,get:function(){return h.HeaderHeightContext}}),Object.defineProperty(_e,"HeaderShownContext",{enumerable:!0,get:function(){return S.HeaderShownContext}}),Object.defineProperty(_e,"HeaderTitle",{enumerable:!0,get:function(){return k.HeaderTitle}}),Object.defineProperty(_e,"useHeaderHeight",{enumerable:!0,get:function(){return x.useHeaderHeight}}),Object.defineProperty(_e,"getLabel",{enumerable:!0,get:function(){return C.getLabel}}),Object.defineProperty(_e,"Label",{enumerable:!0,get:function(){return v.Label}}),Object.defineProperty(_e,"Lazy",{enumerable:!0,get:function(){return L.Lazy}}),Object.defineProperty(_e,"MissingIcon",{enumerable:!0,get:function(){return T.MissingIcon}}),Object.defineProperty(_e,"PlatformPressable",{enumerable:!0,get:function(){return _.PlatformPressable}}),Object.defineProperty(_e,"ResourceSavingView",{enumerable:!0,get:function(){return w.ResourceSavingView}}),Object.defineProperty(_e,"SafeAreaProviderCompat",{enumerable:!0,get:function(){return z.SafeAreaProviderCompat}}),Object.defineProperty(_e,"Screen",{enumerable:!0,get:function(){return D.Screen}}),Object.defineProperty(_e,"Text",{enumerable:!0,get:function(){return M.Text}}),Object.defineProperty(_e,"useFrameSize",{enumerable:!0,get:function(){return A.useFrameSize}}),Object.defineProperty(_e,"Assets",{enumerable:!0,get:function(){return I}});var t=e(r(d[0])),n=e(r(d[1])),u=e(r(d[2])),o=e(r(d[3])),c=e(r(d[4])),f=r(d[5]),b=r(d[6]),l=r(d[7]),P=r(d[8]),p=r(d[9]),y=r(d[10]),O=r(d[11]),j=r(d[12]),H=r(d[13]),s=r(d[14]),B=r(d[15]),h=r(d[16]),S=r(d[17]),k=r(d[18]),x=r(d[19]),C=r(d[20]),v=r(d[21]),L=r(d[22]),T=r(d[23]),_=r(d[24]),w=r(d[25]),z=r(d[26]),D=r(d[27]),M=r(d[28]),A=r(d[29]),F=r(d[30]);Object.keys(F).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return F[e]}})});const I=[t.default,n.default,c.default,o.default,u.default]},517,[518,519,520,521,522,523,524,533,536,537,538,539,547,556,551,549,557,553,555,558,559,560,561,562,534,563,564,565,535,546,566]);
6078__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/@react-navigation/elements/lib/module/assets/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png",width:96,height:96}},518,[]);
6079__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/@react-navigation/elements/lib/module/assets/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png",width:50,height:85}},519,[]);
6080__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png",width:64,height:64}},520,[]);
6081__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png",width:96,height:96}},521,[]);
6082__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/@react-navigation/elements/lib/module/assets/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png",width:96,height:96}},522,[]);
6083__d(function(g,r,i,a,m,_e,d){"use strict";const e=["style"];
6083function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.Background=function(t){let{style:l}=t,c=(0,u.default)(t,e);const{colors:f}=(0,n.useTheme)();return(0,s.jsx)(o.default.View,Object.assign({},c,{style:[{flex:1,backgroundColor:f.background},l]}))};var u=t(r(d[0])),n=r(d[1]);r(d[2]);var o=t(r(d[3])),s=r(d[4])},523,[129,366,34,234,175]);
6084__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["children","style","visible","size"],t=["backgroundColor"];function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.Badge=function(n){let{children:v,style:p,visible:y=!0,size:_=18}=n,O=(0,o.default)(n,e);const[j]=s.useState(()=>new c.default.Value(y?1:0)),[k,w]=s.useState(y),{colors:x,fonts:z}=(0,u.useTheme)();if(s.useEffect(()=>{if(k)return c.default.timing(j,{toValue:y?1:0,duration:150,useNativeDriver:b}).start(({finished:e})=>{e&&!y&&w(!1)}),()=>j.stopAnimation()},[j,k,y]),!k){if(!y)return null;w(!0)}const C=f.default.flatten(p)||{},{backgroundColor:M=x.notification}=C,S=(0,o.default)(C,t),P=(0,l.default)(M).isLight()?'black':'white',R=_/2,A=Math.floor(3*_/4);return(0,d.jsx)(c.default.Text,Object.assign({numberOfLines:1,style:[{transform:[{scale:j.interpolate({inputRange:[0,1],outputRange:[.5,1]})}],color:P,lineHeight:_-1,height:_,minWidth:_,opacity:j,backgroundColor:M,fontSize:A,borderRadius:R,borderCurve:'continuous'},z.regular,h.container,S]},O,{children:v}))};var o=n(r(_d[0])),u=r(_d[1]),l=n(r(_d[2])),s=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[3])),c=n(r(_d[4]));r(_d[5]);var f=n(r(_d[6])),d=r(_d[7]);const b=!1;const h=f.default.create({container:{alignSelf:'flex-end',textAlign:'center',paddingHorizontal:4,overflow:'hidden'}})},524,[129,366,525,34,234,95,42,175]);
6085__d(function(g,r,_i,_a,_m,e,d){const t=r(d[0]),o=r(d[1]),n=['keyword','gray','hex'],s={};for(const t of Object.keys(o))s[[...o[t].labels].sort().join('')]=t;const h={};function l(i,a){if(!(this instanceof l))return new l(i,a);if(a&&a in n&&(a=null),a&&!(a in o))throw new Error('Unknown model: '+a);let c,u;if(null==i)this.model='rgb',this.color=[0,0,0],this.valpha=1;else if(i instanceof l)this.model=i.model,this.color=[...i.color],this.valpha=i.valpha;else if('string'==typeof i){const n=t.get(i);if(null===n)throw new Error('Unable to parse color from string: '+i);this.model=n.model,u=o[this.model].channels,this.color=n.value.slice(0,u),this.valpha='number'==typeof n.value[u]?n.value[u]:1}else if(i.length>0){this.model=a||'rgb',u=o[this.model].channels;const t=Array.prototype.slice.call(i,0,u);this.color=p(t,u),this.valpha='number'==typeof i[u]?i[u]:1}else if('number'==typeof i)this.model='rgb',this.color=[i>>16&255,i>>8&255,255&i],this.valpha=1;else{this.valpha=1;const t=Object.keys(i);'alpha'in i&&(t.splice(t.indexOf('alpha'),1),this.valpha='number'==typeof i.alpha?i.alpha:0);const n=t.sort().join('');if(!(n in s))throw new Error('Unable to parse color from object: '+JSON.stringify(i));this.model=s[n];const{labels:h}=o[this.model],l=[];for(c=0;c<h.length;c++)l.push(i[h[c]]);this.color=p(l)}if(h[this.model])for(u=o[this.model].channels,c=0;c<u;c++){const t=h[this.model][c];t&&(this.color[c]=t(this.color[c]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(o){let n=this.model in t.to?this:this.rgb();n=n.round('number'==typeof o?o:1);const s=1===n.valpha?n.color:[...n.color,this.valpha];return t.to[n.model](s)},percentString(o){const n=this.rgb().round('number'==typeof o?o:1),s=1===n.valpha?n.color:[...n.color,this.valpha];return t.to.rgb.percent(s)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:n}=o[this.model],{labels:s}=o[this.model];for(let o=0;o<n;o++)t[s[o]]=this.color[o];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;
vendor: 3,832 bytes, lines 6085-6086
6085return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new l([...this.color.map(a(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new l([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:c('rgb',0,u(255)),green:c('rgb',1,u(255)),blue:c('rgb',2,u(255)),hue:c(['hsl','hsv','hsl','hwb','hcg'],0,t=>(t%360+360)%360),saturationl:c('hsl',1,u(100)),lightness:c('hsl',2,u(100)),saturationv:c('hsv',1,u(100)),value:c('hsv',2,u(100)),chroma:c('hcg',1,u(100)),gray:c('hcg',2,u(100)),white:c('hwb',1,u(100)),wblack:c('hwb',2,u(100)),cyan:c('cmyk',0,u(100)),magenta:c('cmyk',1,u(100)),yellow:c('cmyk',2,u(100)),black:c('cmyk',3,u(100)),x:c('xyz',0,u(95.047)),y:c('xyz',1,u(100)),z:c('xyz',2,u(108.833)),l:c('lab',0,u(100)),a:c('lab',1),b:c('lab',2),keyword(t){return void 0!==t?new l(t):o[this.model].keyword(this.color)},hex(o){return void 0!==o?new l(o):t.to.hex(this.rgb().round().color)},hexa(o){if(void 0!==o)return new l(o);const n=this.rgb().round().color;let s=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===s.length&&(s='0'+s),t.to.hex(n)+s},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,o=[];for(const[n,s]of t.entries()){const t=s/255;o[n]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*o[0]+.7152*o[1]+.0722*o[2]},contrast(t){const o=this.luminosity(),n=t.luminosity();return o>n?(o+.05)/(n+.05):(n+.05)/(o+.05)},level(t){const o=this.contrast(t);return o>=7?'AAA':o>=4.5?'AA':''},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let o=0;o<3;o++)t.color[o]=255-t.color[o];return t},lighten(t){const o=this.hsl();return o.color[2]+=o.color[2]*t,o},darken(t){const o=this.hsl();return o.color[2]-=o.color[2]*t,o},saturate(t){const o=this.hsl();return o.color[1]+=o.color[1]*t,o},desaturate(t){const o=this.hsl();return o.color[1]-=o.color[1]*t,o},whiten(t){const o=this.hwb();return o.color[1]+=o.color[1]*t,o},blacken(t){const o=this.hwb();return o.color[2]+=o.color[2]*t,o},grayscale(){const t=this.rgb().color,o=.3*t[0]+.59*t[1]+.11*t[2];return l.rgb(o,o,o)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const o=this.hsl();let n=o.color[0];return n=(n+t)%360,n=n<0?360+n:n,o.color[0]=n,o},mix(t,o){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const n=t.rgb(),s=this.rgb(),h=void 0===o?.5:o,i=2*h-1,a=n.alpha()-s.alpha(),c=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,u=1-c;return l.rgb(c*n.red()+u*s.red(),c*n.green()+u*s.green(),c*n.blue()+u*s.blue(),n.alpha()*h+s.alpha()*(1-h))}};for(const t of Object.keys(o)){if(n.includes(t))continue;const{channels:s}=o[t];l.prototype[t]=function(...n){return this.model===t?new l(this):n.length>0?new l(n,t):new l([...(s=o[this.model][t].raw(this.color),Array.isArray(s)?s:[s]),this.valpha],t);var s},l[t]=function(...o){let n=o[0];return'number'==typeof n&&(n=p(o,s)),new l(n,t)}}function i(t,o){return Number(t.toFixed(o))}function a(t){return function(o){return i(o,t)}}function c(t,o,n){t=Array.isArray(t)?t:[t];for(const s of t)(h[s]||(h[s]=[]))[o]=n;return t=t[0],function(s){let h;return void 0!==s?(n&&(s=n(s)),h=this[t](),h.color[o]=s,h):(h=this[t]().color[o],n&&(h=n(h)),h)}}function u(t){return function(o){return Math.max(0,Math.min(t,o))}}function p(t,o){for(let n=0;n<o;n++)'number'!=typeof t[n]&&(t[n]=0);return t}_m.exports=l},525,[526,530]);
6086__d(function(_g,_r,_i,_a,m,e,d){var r=_r(d[0]),t=_r(d[1]),a=Object.hasOwnProperty,n=Object.create(null);
vendor: 5,567 bytes, lines 6086-6087
6086for(var s in r)a.call(r,s)&&(n[r[s]]=s);var o=m.exports={to:{},get:{}};function l(r,t,a){return Math.min(Math.max(t,r),a)}function u(r){var t=Math.round(r).toString(16).toUpperCase();return t.length<2?'0'+t:t}o.get=function(r){var t,a;switch(r.substring(0,3).toLowerCase()){case'hsl':t=o.get.hsl(r),a='hsl';break;case'hwb':t=o.get.hwb(r),a='hwb';break;default:t=o.get.rgb(r),a='rgb'}return t?{model:a,value:t}:null},o.get.rgb=function(t){if(!t)return null;var n,s,o,u=[0,0,0,1];if(n=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=n[2],n=n[1],s=0;s<3;s++){var h=2*s;u[s]=parseInt(n.slice(h,h+2),16)}o&&(u[3]=parseInt(o,16)/255)}else if(n=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(n=n[1])[3],s=0;s<3;s++)u[s]=parseInt(n[s]+n[s],16);o&&(u[3]=parseInt(o+o,16)/255)}else if(n=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)u[s]=parseInt(n[s+1],0);n[4]&&(n[5]?u[3]=.01*parseFloat(n[4]):u[3]=parseFloat(n[4]))}else{if(!(n=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(n=t.match(/^(\w+)$/))?'transparent'===n[1]?[0,0,0,0]:a.call(r,n[1])?((u=r[n[1]])[3]=1,u):null:null;for(s=0;s<3;s++)u[s]=Math.round(2.55*parseFloat(n[s+1]));n[4]&&(n[5]?u[3]=.01*parseFloat(n[4]):u[3]=parseFloat(n[4]))}for(s=0;s<3;s++)u[s]=l(u[s],0,255);return u[3]=l(u[3],0,1),u},o.get.hsl=function(r){if(!r)return null;var t=r.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(a)?1:a,0,1)]}return null},o.get.hwb=function(r){if(!r)return null;var t=r.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(a)?1:a,0,1)]}return null},o.to.hex=function(){var r=t(arguments);return'#'+u(r[0])+u(r[1])+u(r[2])+(r[3]<1?u(Math.round(255*r[3])):'')},o.to.rgb=function(){var r=t(arguments);return r.length<4||1===r[3]?'rgb('+Math.round(r[0])+', '+Math.round(r[1])+', '+Math.round(r[2])+')':'rgba('+Math.round(r[0])+', '+Math.round(r[1])+', '+Math.round(r[2])+', '+r[3]+')'},o.to.rgb.percent=function(){var r=t(arguments),a=Math.round(r[0]/255*100),n=Math.round(r[1]/255*100),s=Math.round(r[2]/255*100);return r.length<4||1===r[3]?'rgb('+a+'%, '+n+'%, '+s+'%)':'rgba('+a+'%, '+n+'%, '+s+'%, '+r[3]+')'},o.to.hsl=function(){var r=t(arguments);return r.length<4||1===r[3]?'hsl('+r[0]+', '+r[1]+'%, '+r[2]+'%)':'hsla('+r[0]+', '+r[1]+'%, '+r[2]+'%, '+r[3]+')'},o.to.hwb=function(){var r=t(arguments),a='';return r.length>=4&&1!==r[3]&&(a=', '+r[3]),'hwb('+r[0]+', '+r[1]+'%, '+r[2]+'%'+a+')'},o.to.keyword=function(r){return n[r.slice(0,3)]}},526,[527,528]);
6087__d(function(g,r,i,a,m,e,d){'use strict';m.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
6087ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},527,[]);
6088__d(function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),n=Array.prototype.concat,o=Array.prototype.slice,c=m.exports=function(c){for(var u=[],p=0,i=c.length;p<i;p++){var l=c[p];t(l)?u=n.call(u,o.call(l)):u.push(l)}return u};c.wrap=function(t){return function(){return t(c(arguments))}}},528,[529]);
6089__d(function(g,r,i,a,m,e,d){m.exports=function(n){return!(!n||'string'==typeof n)&&(n instanceof Array||Array.isArray(n)||n.length>=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&'String'!==n.constructor.name))}},529,[]);
6090__d(function(g,r,_i,a,m,e,d){const n=r(d[0]),o=r(d[1]),t={};function c(n){const o=function(...o){const t=o[0];return null==t?t:(t.length>1&&(o=t),n(o))};return'conversion'in n&&(o.conversion=n.conversion),o}function s(n){const o=function(...o){const t=o[0];if(null==t)return t;t.length>1&&(o=t);const c=n(o);if('object'==typeof c)for(let n=c.length,o=0;o<n;o++)c[o]=Math.round(c[o]);return c};return'conversion'in n&&(o.conversion=n.conversion),o}Object.keys(n).forEach(i=>{t[i]={},Object.defineProperty(t[i],'channels',{value:n[i].channels}),Object.defineProperty(t[i],'labels',{value:n[i].labels});const l=o(i);Object.keys(l).forEach(n=>{const o=l[n];t[i][n]=s(o),t[i][n].raw=c(o)})}),m.exports=t},530,[531,532]);
6091__d(function(_g,_r,_i,_a,_m,e,d){const n=_r(d[0]),t={};for(const r of Object.keys(n))t[n[r]]=r;const r={rgb:{channels:3,labels:'rgb'},hsl:{channels:3,labels:'hsl'},hsv:{channels:3,labels:'hsv'},hwb:{channels:3,labels:'hwb'},cmyk:{channels:4,labels:'cmyk'},xyz:{channels:3,labels:'xyz'},lab:{channels:3,labels:'lab'},lch:{channels:3,labels:'lch'},hex:{channels:1,labels:['hex']},keyword:{channels:1,labels:['keyword']},ansi16:{channels:1,labels:['ansi16']},ansi256:{channels:1,labels:['ansi256']},hcg:{channels:3,labels:['h','c','g']},apple:{channels:3,labels:['r16','g16','b16']},gray:{channels:1,labels:['gray']}};_m.exports=r;for(const n of Object.keys(r)){if(!('channels'in r[n]))throw new Error('missing channels property: '+n);if(!('labels'in r[n]))throw new Error('missing channel labels property: '+n);if(r[n].labels.length!==r[n].channels)throw new Error('channel and label counts mismatch: '+n);const{channels:t,labels:a}=r[n];delete r[n].channels,delete r[n].labels,Object.defineProperty(r[n],'channels',{value:t}),Object.defineProperty(r[n],'labels',{value:a})}function a(n,t){return(n[0]-t[0])**2+(n[1]-t[1])**2+(n[2]-t[2])**2}r.rgb.hsl=function(n){const t=n[0]/255,r=n[1]/255,a=n[2]/255,c=Math.min(t,r,a),s=Math.max(t,r,a),o=s-c;let l,h;s===c?l=0:t===s?l=(r-a)/o:r===s?l=2+(a-t)/o:a===s&&(l=4+(t-r)/o),l=Math.min(60*l,360),l<0&&(l+=360);const u=(c+s)/2;return h=s===c?0:u<=.5?o/(s+c):o/(2-s-c),[l,100*h,100*u]},r.rgb.hsv=function(n){let t,r,a,c,s;const o=n[0]/255,l=n[1]/255,h=n[2]/255,u=Math.max(o,l,h),i=u-Math.min(o,l,h),b=function(n){return(u-n)/6/i+.5};return 0===i?(c=0,s=0):(s=i/u,t=b(o),r=b(l),a=b(h),o===u?c=a-r:l===u?c=.3333333333333333+t-a:h===u&&(c=.6666666666666666+r-t),c<0?c+=1:c>1&&(c-=1)),[360*c,100*s,100*u]},r.rgb.hwb=function(n){const t=n[0],a=n[1];let c=n[2];const s=r.rgb.hsl(n)[0],o=.00392156862745098*Math.min(t,Math.min(a,c
vendor: 7,011 bytes, lines 6091-6092
6091));return c=1-.00392156862745098*Math.max(t,Math.max(a,c)),[s,100*o,100*c]},r.rgb.cmyk=function(n){const t=n[0]/255,r=n[1]/255,a=n[2]/255,c=Math.min(1-t,1-r,1-a);return[100*((1-t-c)/(1-c)||0),100*((1-r-c)/(1-c)||0),100*((1-a-c)/(1-c)||0),100*c]},r.rgb.keyword=function(r){const c=t[r];if(c)return c;let s,o=1/0;for(const t of Object.keys(n)){const c=a(r,n[t]);c<o&&(o=c,s=t)}return s},r.keyword.rgb=function(t){return n[t]},r.rgb.xyz=function(n){let t=n[0]/255,r=n[1]/255,a=n[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;return[100*(.4124*t+.3576*r+.1805*a),100*(.2126*t+.7152*r+.0722*a),100*(.0193*t+.1192*r+.9505*a)]},r.rgb.lab=function(n){const t=r.rgb.xyz(n);let a=t[0],c=t[1],s=t[2];a/=95.047,c/=100,s/=108.883,a=a>.008856?a**.3333333333333333:7.787*a+.13793103448275862,c=c>.008856?c**.3333333333333333:7.787*c+.13793103448275862,s=s>.008856?s**.3333333333333333:7.787*s+.13793103448275862;return[116*c-16,500*(a-c),200*(c-s)]},r.hsl.rgb=function(n){const t=n[0]/360,r=n[1]/100,a=n[2]/100;let c,s,o;if(0===r)return o=255*a,[o,o,o];c=a<.5?a*(1+r):a+r-a*r;const l=2*a-c,h=[0,0,0];for(let n=0;n<3;n++)s=t+.3333333333333333*-(n-1),s<0&&s++,s>1&&s--,o=6*s<1?l+6*(c-l)*s:2*s<1?c:3*s<2?l+(c-l)*(.6666666666666666-s)*6:l,h[n]=255*o;return h},r.hsl.hsv=function(n){const t=n[0];let r=n[1]/100,a=n[2]/100,c=r;const s=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,c*=s<=1?s:2-s;return[t,100*(0===a?2*c/(s+c):2*r/(a+r)),100*((a+r)/2)]},r.hsv.rgb=function(n){const t=n[0]/60,r=n[1]/100;let a=n[2]/100;const c=Math.floor(t)%6,s=t-Math.floor(t),o=255*a*(1-r),l=255*a*(1-r*s),h=255*a*(1-r*(1-s));switch(a*=255,c){case 0:return[a,h,o];case 1:return[l,a,o];case 2:return[o,a,h];case 3:return[o,l,a];case 4:return[h,o,a];case 5:return[a,o,l]}},r.hsv.hsl=function(n){const t=n[0],r=n[1]/100,a=n[2]/100,c=Math.max(a,.01);let s,o;o=(2-r)*a;const l=(2-r)*c;return s=r*c,s/=l<=1?l:2-l,s=s||0,o/=2,[t,100*s,100*o]},r.hwb.rgb=function(n){const t=n[0]/360;let r=n[1]/100,a=n[2]/100;const c=r+a;let s;c>1&&(r/=c,a/=c);const o=Math.floor(6*t),l=1-a;s=6*t-o,1&o&&(s=1-s);const h=r+s*(l-r);let u,i,b;switch(o){default:case 6:case 0:u=l,i=h,b=r;break;case 1:u=h,i=l,b=r;break;case 2:u=r,i=l,b=h;break;case 3:u=r,i=h,b=l;break;case 4:u=h,i=r,b=l;break;case 5:u=l,i=r,b=h}return[255*u,255*i,255*b]},r.cmyk.rgb=function(n){const t=n[0]/100,r=n[1]/100,a=n[2]/100,c=n[3]/100;return[255*(1-Math.min(1,t*(1-c)+c)),255*(1-Math.min(1,r*(1-c)+c)),255*(1-Math.min(1,a*(1-c)+c))]},r.xyz.rgb=function(n){const t=n[0]/100,r=n[1]/100,a=n[2]/100;let c,s,o;return c=3.2406*t+-1.5372*r+-.4986*a,s=-.9689*t+1.8758*r+.0415*a,o=.0557*t+-.204*r+1.057*a,c=c>.0031308?1.055*c**.4166666666666667-.055:12.92*c,s=s>.0031308?1.055*s**.4166666666666667-.055:12.92*s,o=o>.0031308?1.055*o**.4166666666666667-.055:12.92*o,c=Math.min(Math.max(0,c),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*c,255*s,255*o]},r.xyz.lab=function(n){let t=n[0],r=n[1],a=n[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**.3333333333333333:7.787*t+.13793103448275862,r=r>.008856?r**.3333333333333333:7.787*r+.13793103448275862,a=a>.008856?a**.3333333333333333:7.787*a+.13793103448275862;return[116*r-16,500*(t-r),200*(r-a)]},r.lab.xyz=function(n){let t,r,a;r=(n[0]+16)/116,t=n[1]/500+r,a=r-n[2]/200;const c=r**3,s=t**3,o=a**3;return r=c>.008856?c:(r-.13793103448275862)/7.787,t=s>.008856?s:(t-.13793103448275862)/7.787,a=o>.008856?o:(a-.13793103448275862)/7.787,t*=95.047,r*=100,a*=108.883,[t,r,a]},r.lab.lch=function(n){const t=n[0],r=n[1],a=n[2];let c;c=360*Math.atan2(a,r)/2/Math.PI,c<0&&(c+=360);return[t,Math.sqrt(r*r+a*a),c]},r.lch.lab=function(n){const t=n[0],r=n[1],a=n[2]/360*2*Math.PI;return[t,r*Math.cos(a),r*Math.sin(a)]},r.rgb.ansi16=function(n,t=null){const[a,c,s]=n;let o=null===t?r.rgb.hsv(n)[2]:t;if(o=Math.round(o/50),0===o)return 30;let l=30+(Math.round(s/255)<<2|Math.round(c/255)<<1|Math.round(a/255));return 2===o&&(l+=60),l},r.hsv.ansi16=function(n){return r.rgb.ansi16(r.hsv.rgb(n),n[2])},r.rgb.ansi256=function(n){const t=n[0],r=n[1],a=n[2];if(t===r&&r===a)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},r.ansi16.rgb=function(n){let t=n%10;if(0===t||7===t)return n>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(n>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},r.ansi256.rgb=function(n){if(n>=232){const t=10*(n-232)+8;return[t,t,t]}let t;n-=16;return[Math.floor(n/36)/5*255,Math.floor((t=n%36)/6)/5*255,t%6/5*255]},r.rgb.hex=function(n){const t=(((255&Math.round(n[0]))<<16)+((255&Math.round(n[1]))<<8)+(255&Math.round(n[2]))).toString(16).toUpperCase();return'000000'.substring(t.length)+t},r.hex.rgb=function(n){const t=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split('').map(n=>n+n).join(''));const a=parseInt(r,16);return[a>>16&255,a>>8&255,255&a]},r.rgb.hcg=function(n){const t=n[0]/255,r=n[1]/255,a=n[2]/255,c=Math.max(Math.max(t,r),a),s=Math.min(Math.min(t,r),a),o=c-s;let l,h;return l=o<1?s/(1-o):0,h=o<=0?0:c===t?(r-a)/o%6:c===r?2+(a-t)/o:4+(t-r)/o,h/=6,h%=1,[360*h,100*o,100*l]},r.hsl.hcg=function(n){const t=n[1]/100,r=n[2]/100,a=r<.5?2*t*r:2*t*(1-r);let c=0;return a<1&&(c=(r-.5*a)/(1-a)),[n[0],100*a,100*c]},r.hsv.hcg=function(n){const t=n[1]/100,r=n[2]/100,a=t*r;let c=0;return a<1&&(c=(r-a)/(1-a)),[n[0],100*a,100*c]},r.hcg.rgb=function(n){const t=n[0]/360,r=n[1]/100,a=n[2]/100;if(0===r)return[255*a,255*a,255*a];const c=[0,0,0],s=t%1*6,o=s%1,l=1-o;let h=0;switch(Math.floor(s)){case 0:c[0]=1,c[1]=o,c[2]=0;break;case 1:c[0]=l,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=o;break;case 3:c[0]=0,c[1]=l,c[2]=1;break;case 4:c[0]=o,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=l}return h=(1-r)*a,[255*(r*c[0]+h),255*(r*c[1]+h),255*(r*c[2]+h)]},r.hcg.hsv=function(n){const t=n[1]/100,r=t+n[2]/100*(1-t);let a=0;return r>0&&(a=t/r),[n[0],100*a,100*r]},r.hcg.hsl=function(n){const t=n[1]/100,r=n[2]/100*(1-t)+.5*t;let a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[n[0],100*a,100*r]},r.hcg.hwb=function(n){const t=n[1]/100,r=t+n[2]/100*(1-t);return[n[0],100*(r-t),100*(1-r)]},r.hwb.hcg=function(n){const t=n[1]/100,r=1-n[2]/100,a=r-t;let c=0;return a<1&&(c=(r-a)/(1-a)),[n[0],100*a,100*c]},r.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]},r.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]},r.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]},r.gray.hsl=function(n){return[0,0,n[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(n){return[0,100,n[0]]},r.gray.cmyk=function(n){return[0,0,0,n[0]]},r.gray.lab=function(n){return[n[0],0,0]},r.gray.hex=function(n){const t=255&Math.round(n[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return'000000'.substring(r.length)+r},r.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]}},531,[527]);
6092__d(function(g,r,_i,a,m,e,d){const n=r(d[0]);function t(){const t={}
6092,c=Object.keys(n);for(let n=c.length,o=0;o<n;o++)t[c[o]]={distance:-1,parent:null};return t}function c(c){const o=t(),s=[c];for(o[c].distance=0;s.length;){const t=s.pop(),c=Object.keys(n[t]);for(let n=c.length,u=0;u<n;u++){const n=c[u],i=o[n];-1===i.distance&&(i.distance=o[t].distance+1,i.parent=t,s.unshift(n))}}return o}function o(n,t){return function(c){return t(n(c))}}function s(t,c){const s=[c[t].parent,t];let u=n[c[t].parent][t],i=c[t].parent;for(;c[i].parent;)s.unshift(c[i].parent),u=o(n[c[i].parent][i],u),i=c[i].parent;return u.conversion=s,u}m.exports=function(n){const t=c(n),o={},u=Object.keys(t);for(let n=u.length,c=0;c<n;c++){const n=u[c];null!==t[n].parent&&(o[n]=s(n,t))}return o}},532,[531]);
6093__d(function(g,r,i,a,m,_e,d){"use strict";const e=["screen","params","action","href"],t=["variant","color","android_ripple","style","children"];function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.Button=function(e){return'screen'in e||'action'in e?(0,p.jsx)(h,Object.assign({},e)):(0,p.jsx)(j,Object.assign({},e))};var s=n(r(d[0])),o=r(d[1]),c=n(r(d[2]));r(d[3]),r(d[4]);var l=n(r(d[5])),u=r(d[6]),f=r(d[7]),p=r(d[8]);const b=40;function h(t){let{screen:n,params:c,action:l,href:u}=t,f=(0,s.default)(t,e);const b=(0,o.useLinkProps)({screen:n,params:c,action:l,href:u});return(0,p.jsx)(j,Object.assign({},f,b))}function j(e){let{variant:n="tinted",color:l,android_ripple:h,style:j,children:_}=e,v=(0,s.default)(e,t);const{colors:y,fonts:O}=(0,o.useTheme)(),k=l??y.primary;let P,w;switch(n){case'plain':P='transparent',w=k;break;case'tinted':P=(0,c.default)(k).fade(.85).string(),w=k;break;case'filled':P=k,w=(0,c.default)(k).isDark()?'white':(0,c.default)(k).darken(.71).string()}return(0,p.jsx)(u.PlatformPressable,Object.assign({},v,{android_ripple:Object.assign({radius:b,color:(0,c.default)(w).fade(.85).string()},h),pressOpacity:1,hoverEffect:{color:w},style:[{backgroundColor:P},x.button,j],children:(0,p.jsx)(f.Text,{style:[{color:w},O.regular,x.text],children:_})}))}const x=l.default.create({button:{paddingHorizontal:24,paddingVertical:10,borderRadius:b,borderCurve:'continuous'},text:{fontSize:14,lineHeight:20,letterSpacing:.1,textAlign:'center'}})},533,[129,366,525,34,95,42,534,535,175]);
6094__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["disabled","onPress","onPressIn","onPressOut","android_ripple","pressColor","pressOpacity","hoverEffect","style","children"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PlatformPressable",{enumerable:!0,get:function(){return v}});var n=t(r(_d[0])),o=r(_d[1]),s=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),l=t(r(_d[3])),c=t(r(_d[4])),u=(t(r(_d[5])),t(r(_d[6]))),d=r(_d[7]);const f=l.default.createAnimatedComponent(u.default);function y(t,u){let{disabled:y,onPress:v,onPressIn:p,onPressOut:b,android_ripple:h,pressColor:O,pressOpacity:_=.3,hoverEffect:j,style:K,children:x}=t,$=(0,n.default)(t,e);const{dark:k}=(0,o.useTheme)(),[w]=s.useState(()=>new l.default.Value(1)),T=(e,t)=>{l.default.timing(w,{toValue:e,duration:t,easing:c.default.inOut(c.default.quad),useNativeDriver:false}).start()};return(0,d.jsxs)(f,Object.assign({ref:u,accessible:!0,role:null!=$.href?'link':'button',onPress:y?void 0:e=>{if(null!==$.href){const t='metaKey'in e&&e.metaKey||'altKey'in e&&e.altKey||'ctrlKey'in e&&e.ctrlKey||'shiftKey'in e&&e.shiftKey,n=!('button'in e)||(null==e.button||0===e.button),o=!e.currentTarget||!('target'in e.currentTarget)||[void 0,null,'','self'].includes(e.currentTarget.target);!t&&n&&o&&(e.preventDefault(),v?.(e))}else v?.(e)},onPressIn:y?void 0:e=>{T(_,0),p?.(e)},onPressOut:y?void 0:e=>{T(1,200),b?.(e)},android_ripple:void 0,style:[{cursor:y?'auto':'pointer',opacity:y?1:w},K]},$,{children:[y?null:(0,d.jsx)(P,Object.assign({},j)),x]}))}const v=s.forwardRef(y);v.displayName='PlatformPressable';const p=String.raw,b="__react-navigation_elements_Pressable_hover",h=p`
6095  .${b} {
6096    position: absolute;
6097    top: 0;
6098    left: 0;
6099    right: 0;
6100    bottom: 0;
6101    border-radius: inherit;
6102    background-color: var(--overlay-color);
6103    opacity: 0;
6104    transition: opacity 0.15s;
6105    pointer-events: none;
6106  }
6107
6108  a:hover > .${b}, button:hover > .${b} {
6109    opacity: var(--overlay-hover-opacity);
6110  }
6111
6112  a:active > .${b}, button:active > .${b} {
6113    opacity: var(--overlay-active-opacity);
6114  }
6115`,P=({color:e,hoverOpacity:t=.08,activeOpacity:n=.16})=>null==e?null:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("style",{href:b,precedence:"elements",children:h}),(0,d.jsx)("div",{className:b,style:{'--overlay-color':e,'--overlay-hover-opacity':t,'--overlay-active-opacity':n}})]})},534,[129,366,34,234,303,95,215,175]);
6116__d(function(g,r,i,a,m,_e,d){"use strict";const e=["style"];
6116function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.Text=function(t){let{style:o}=t,c=(0,s.default)(t,e);const{colors:f,fonts:_}=(0,u.useTheme)();return(0,n.jsx)(l.default,Object.assign({},c,{style:[{color:f.text},_.regular,o]}))};var s=t(r(d[0])),u=r(d[1]),l=t(r(d[2])),n=r(d[3])},535,[129,366,229,175]);
6117__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDefaultSidebarWidth",{enumerable:!0,get:function(){return t}});const t=({width:t})=>t-56<=360?t-56:360},536,[]);
6118__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.getDefaultHeaderHeight=function(e,t,u){let n;const o=u;e.width,e.height;return n=64,64+o};e(r(d[0])),e(r(d[1]))},537,[149,95]);
6119__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getHeaderTitle=function(t,l){return'string'==typeof t.headerTitle?t.headerTitle:void 0!==t.title?t.title:l}},538,[]);
6120__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["height","maxHeight","minHeight","backfaceVisibility","backgroundColor","borderBlockColor","borderBlockEndColor","borderBlockStartColor","borderBottomColor","borderBottomEndRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStartRadius","borderBottomWidth","borderColor","borderCurve","borderEndColor","borderEndEndRadius","borderEndStartRadius","borderEndWidth","borderLeftColor","borderLeftWidth","borderRadius","borderRightColor","borderRightWidth","borderStartColor","borderStartEndRadius","borderStartStartRadius","borderStartWidth","borderStyle","borderTopColor","borderTopEndRadius","borderTopLeftRadius","borderTopRightRadius","borderTopStartRadius","borderTopWidth","borderWidth","boxShadow","elevation","filter","mixBlendMode","opacity","shadowColor","shadowOffset","shadowOpacity","shadowRadius","transform","transformOrigin"];function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.Header=function(o){const T=(0,u.useSafeAreaInsets)(),v=(0,f.useFrameSize)(e=>e,!0),{colors:j}=(0,d.useTheme)(),O=(0,d.useNavigation)(),W=l.useContext(x.HeaderShownContext),[H,L]=l.useState(!1),[M,V]=l.useState(void 0),{layout:_=v,modal:P=!1,back:D,title:F,headerTitle:I,headerTitleAlign:z="left",headerLeft:A=(D?e=>(0,w.jsx)(p.HeaderBackButton,Object.assign({},e)):void 0),headerSearchBarOptions:G,headerTransparent:N,headerTintColor:q,headerBackground:J,headerRight:K,headerTitleAllowFontScaling:Q,headerTitleStyle:U,headerLeftContainerStyle:X,headerRightContainerStyle:Y,headerTitleContainerStyle:Z,headerBackButtonDisplayMode:$="minimal",headerBackTitleStyle:ee,headerBackgroundContainerStyle:re,headerStyle:oe,headerShadowVisible:te,headerPressColor:de,headerPressOpacity:ae,headerStatusBarHeight:ie=(W?0:T.top)}=o,ne=(0,C.getDefaultHeaderHeight)(_,P,ie),le=b.default.flatten(oe||{}),{height:se=ne,maxHeight:be,minHeight:he,backfaceVisibility:ue,backgroundColor:ce,borderBlockColor:fe,borderBlockEndColor:ge,borderBlockStartColor:Ce,borderBottomColor:pe,borderBottomEndRadius:Re,borderBottomLeftRadius:Se,borderBottomRightRadius:me,borderBottomStartRadius:ye,borderBottomWidth:Be,borderColor:xe,borderCurve:Ee,borderEndColor:we,borderEndEndRadius:ke,borderEndStartRadius:Te,borderEndWidth:ve,borderLeftColor:je,borderLeftWidth:Oe,borderRadius:We,borderRightColor:He,borderRightWidth:Le,borderStartColor:Me,borderStartEndRadius:Ve,borderStartStartRadius:Pe,borderStartWidth:De,borderStyle:Fe,borderTopColor:Ie,borderTopEndRadius:ze,borderTopLeftRadius:Ae,borderTopRightRadius:Ge,borderTopStartRadius:Ne,borderTopWidth:qe,borderWidth:Je,boxShadow:Ke,elevation:Qe,filter:Ue,mixBlendMode:Xe,opacity:Ye,shadowColor:Ze,shadowOffset:$e,shadowOpacity:er,shadowRadius:rr,transform:or,transformOrigin:tr}=le,dr=((0,t.default)(le,e),{backfaceVisibility:ue,backgroundColor:ce,borderBlockColor:fe,borderBlockEndColor:ge,borderBlockStartColor:Ce,borderBottomColor:pe,borderBottomEndRadius:Re,borderBottomLeftRadius:Se,borderBottomRightRadius:me,borderBottomStartRadius:ye,borderBottomWidth:Be,borderColor:xe,borderCurve:Ee,borderEndColor:we,borderEndEndRadius:ke,borderEndStartRadius:Te,borderEndWidth:ve,borderLeftColor:je,borderLeftWidth:Oe,borderRadius:We,borderRightColor:He,borderRightWidth:Le,borderStartColor:Me,borderStartEndRadius:Ve,borderStartStartRadius:Pe,borderStartWidth:De,borderStyle:Fe,borderTopColor:Ie,borderTopEndRadius:ze,borderTopLeftRadius:Ae,borderTopRightRadius:Ge,borderTopStartRadius:Ne,borderTopWidth:qe,borderWidth:Je,boxShadow:Ke,elevation:Qe,filter:Ue,mixBlendMode:Xe,opacity:Ye,shadowColor:Ze,shadowOffset:$e,shadowOpacity:er,shadowRadius:rr,transform:or,transformOrigin:tr});for(const e in dr)void 0===dr[e]&&delete dr[e];const ar=Object.assign({},N&&{backgroundColor:'transparent'},(N||!1===te)&&Object.assign({borderBottomWidth:0},{boxShadow:'none'}),dr),ir=q??j.text,nr=A?A({tintColor:ir,pressColor:de,pressOpacity:ae,displayMode:$,titleLayout:M,screenLayout:_,canGoBack:Boolean(D),onPress:D?O.goBack:void 0,label:D?.title,labelStyle:ee,href:D?.href}):null,lr=K?K({tintColor:ir,pressColor:de,pressOpacity:ae,canGoBack:Boolean(D)}
6120):null,sr='function'!=typeof I?e=>(0,w.jsx)(E.HeaderTitle,Object.assign({},e)):I;return(0,w.jsxs)(s.default.View,{pointerEvents:"box-none",style:[{height:se,minHeight:he,maxHeight:be,opacity:Ye,transform:or}],children:[(0,w.jsx)(s.default.View,{pointerEvents:"box-none",style:[b.default.absoluteFill,re],children:J?J({style:ar}):(0,w.jsx)(R.HeaderBackground,{pointerEvents:!N||'transparent'!==ar.backgroundColor&&0!==(0,n.default)(ar.backgroundColor).alpha()?'auto':'none',style:ar})}),(0,w.jsx)(h.default,{pointerEvents:"none",style:{height:ie}}),(0,w.jsxs)(h.default,{pointerEvents:"box-none",style:[k.content,null],children:[(0,w.jsx)(s.default.View,{pointerEvents:"box-none",style:[k.start,!H&&'center'===z&&k.expand,{marginStart:T.left},X],children:nr}),H?null:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(s.default.View,{pointerEvents:"box-none",style:[k.title,{maxWidth:'center'===z?_.width-2*((nr?'minimal'!==$?80:32:16)+(lr||G?16:0)+Math.max(T.left,T.right)):_.width-((nr?52:16)+(lr||G?52:16)+T.left-T.right)},'left'===z&&nr?{marginStart:4}:{marginHorizontal:16},Z],children:sr({children:F,allowFontScaling:Q,tintColor:q,onLayout:e=>{const{height:o,width:t}=e.nativeEvent.layout;V(e=>e&&o===e.height&&t===e.width?e:{height:o,width:t})},style:U})}),(0,w.jsxs)(s.default.View,{pointerEvents:"box-none",style:[k.end,k.expand,{marginEnd:T.right},Y],children:[lr,G?(0,w.jsx)(S.HeaderButton,{tintColor:ir,pressColor:de,pressOpacity:ae,onPress:()=>{L(!0),G?.onOpen?.()},children:(0,w.jsx)(y.HeaderIcon,{source:c.default,tintColor:ir})}):null]})]}),H?(0,w.jsx)(B.HeaderSearchBar,Object.assign({},G,{visible:H,onClose:()=>{L(!1),G?.onClose?.()},tintColor:q,style:[!nr&&{marginStart:8}]})):null]})]})};var t=o(r(_d[0])),d=r(_d[1]),n=o(r(_d[2])),l=(function(e){if(e&&e.__esModule)return e;var o={};return e&&Object.keys(e).forEach(function(t){var d=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,d.get?d:{enumerable:!0,get:function(){return e[t]}})}),o.default=e,o})(r(_d[3])),s=o(r(_d[4]));r(_d[5]);var b=o(r(_d[6])),h=o(r(_d[7])),u=r(_d[8]),c=o(r(_d[9])),f=r(_d[10]),C=r(_d[11]),p=r(_d[12]),R=r(_d[13]),S=r(_d[14]),y=r(_d[15]),B=r(_d[16]),x=r(_d[17]),E=r(_d[18]),w=r(_d[19]);const k=b.default.create({content:{flex:1,flexDirection:'row',alignItems:'stretch'},large:{marginHorizontal:5},title:{justifyContent:'center'},start:{flexDirection:'row',alignItems:'center',justifyContent:'flex-start'},end:{flexDirection:'row',alignItems:'center',justifyContent:'flex-end'},expand:{flexGrow:1,flexBasis:0}})},539,[129,366,525,34,234,95,42,199,540,522,546,537,547,551,549,550,552,553,555,175]);
6121__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var c=r(d[2]);Object.keys(c).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})});var o=r(d[3]);Object.keys(o).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},540,[541,543,544,545]);
6122__d(function(g,_r,i,a,m,_e,_d){"use strict";const e=["children","initialMetrics","initialSafeAreaInsets","style"],t=["onChange","style","children"];function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"SafeAreaInsetsContext",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"SafeAreaFrameContext",{enumerable:!0,get:function(){return d}}),_e.SafeAreaProvider=function(t){let{children:n,initialMetrics:l,initialSafeAreaInsets:v,style:y}=t,b=(0,r.default)(t,e);const S=o.useContext(c),p=o.useContext(d),[w,C]=o.useState(l?.insets??v??S??null),[A,P]=o.useState(l?.frame??p??{x:0,y:0,width:u.default.get('window').width,height:u.default.get('window').height}),x=o.useCallback(e=>{const{nativeEvent:{frame:t,insets:n}}=e;P(e=>!t||t.height===e.height&&t.width===e.width&&t.x===e.x&&t.y===e.y?e:t),C(e=>e&&n.bottom===e.bottom&&n.left===e.left&&n.right===e.right&&n.top===e.top?e:n)},[]);return o.createElement(s.NativeSafeAreaProvider,f({style:[h.fill,y],onInsetsChange:x},b),null!=w?o.createElement(d.Provider,{value:A},o.createElement(c.Provider,{value:w},n)):null)},_e.SafeAreaListener=function(e){let{onChange:n,style:u,children:l}=e,c=(0,r.default)(e,t);return o.createElement(s.NativeSafeAreaProvider,f({},c,{style:[h.fill,u],onInsetsChange:e=>{n({insets:e.nativeEvent.insets,frame:e.nativeEvent.frame})}}),l)},_e.useSafeAreaInsets=y,_e.useSafeAreaFrame=function(){const e=o.useContext(d);if(null==e)throw new Error(v);return e}
6122,_e.withSafeAreaInsets=function(e){return o.forwardRef((t,n)=>{const r=y();return o.createElement(e,f({},t,{insets:r,ref:n}))})},_e.useSafeArea=function(){return y()},Object.defineProperty(_e,"SafeAreaConsumer",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"SafeAreaContext",{enumerable:!0,get:function(){return S}});var r=n(_r(_d[0])),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(_r(_d[1])),u=n(_r(_d[2])),l=n(_r(_d[3])),s=_r(_d[4]);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}const c=o.createContext(null),d=o.createContext(null);const h=l.default.create({fill:{flex:1}});const v='No safe area value available. Make sure you are rendering `<SafeAreaProvider>` at the top of your app.';function y(){const e=o.useContext(c);if(null==e)throw new Error(v);return e}const b=c.Consumer,S=c},541,[129,34,150,42,542]);
6123__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.NativeSafeAreaProvider=function({children:t,style:n,onInsetsChange:d}){return e.useEffect(()=>{if('undefined'==typeof document)return;const t=p();document.body.appendChild(t);const e=()=>{const{paddingTop:e,paddingBottom:n,paddingLeft:o,paddingRight:s}=window.getComputedStyle(t),u={top:e?parseInt(e,10):0,bottom:n?parseInt(n,10):0,left:o?parseInt(o,10):0,right:s?parseInt(s,10):0},c={x:0,y:0,width:document.documentElement.offsetWidth,height:document.documentElement.offsetHeight};d({nativeEvent:{insets:u,frame:c}})};return t.addEventListener(u(),e),e(),()=>{document.body.removeChild(t),t.removeEventListener(u(),e)}},[d]),e.createElement(o.default,{style:n},t)};var t,e=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),e.default=t,e})(r(_d[0])),n=r(_d[1]),o=(t=n)&&t.__esModule?t:{default:t};const d={WebkitTransition:'webkitTransitionEnd',Transition:'transitionEnd',MozTransition:'transitionend',MSTransition:'msTransitionEnd',OTransition:'oTransitionEnd'};let s=null;function u(){if(null!=s)return s;const t=document.createElement('invalidtype');s=d.Transition;for(const e in d)if(void 0!==t.style[e]){s=d[e];break}return s}let c=null;function f(){if(null!==c)return c;const{CSS:t}=window;return c=t&&t.supports&&t.supports('top: constant(safe-area-inset-top)')?'constant':'env',c}function l(t){return`${f()}(safe-area-inset-${t})`}function p(){const t=document.createElement('div'),{style:e}=t;return e.position='fixed',e.left='0',e.top='0',e.width='0',e.height='0',e.zIndex='-1',e.overflow='hidden',e.visibility='hidden',e.transitionDuration='0.05s',e.transitionProperty='padding',e.transitionDelay='0s',e.paddingTop=l('top'),e.paddingBottom=l('bottom'),e.paddingLeft=l('left'),e.paddingRight=l('right'),t}},542,[34,199]);
6124__d(function(g,_r,i,a,m,_e,_d){"use strict";const t=["style","mode","edges"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"SafeAreaView",{enumerable:!0,get:function(){return s}});var r=e(_r(_d[0])),n=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}),e.default=t,e})(_r(_d[1])),o=e(_r(_d[2])),d=e(_r(_d[3])),f=_r(_d[4]);function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u.apply(null,arguments)}const l={top:'additive',left:'additive',bottom:'additive',right:'additive'};function c(t,e,r){switch(r){case'off':return e;case'maximum':return Math.max(e,t);default:return e+t}}const s=n.forwardRef((e,s)=>{let{style:p={},mode:b,edges:h}=e,v=(0,r.default)(e,t);const y=(0,f.useSafeAreaInsets)(),O=n.useMemo(()=>null==h?l:Array.isArray(h)?h.reduce((t,e)=>(t[e]='additive',t),{}):h,[h]),_=n.useMemo(()=>{const t=o.default.flatten(p);if('margin'===b){const{margin:e=0,marginVertical:r=e,marginHorizontal:n=e,marginTop:o=r,marginRight:d=n,marginBottom:f=r,marginLeft:u=n}=t,l={marginTop:c(y.top,o,O.top),marginRight:c(y.right,d,O.right),marginBottom:c(y.bottom,f,O.bottom),marginLeft:c(y.left,u,O.left)};return[p,l]}{const{padding:e=0,paddingVertical:r=e,paddingHorizontal:n=e,paddingTop:o=r,paddingRight:d=n,paddingBottom:f=r,paddingLeft:u=n}=t,l={paddingTop:c(y.top,o,O.top),paddingRight:c(y.right,d,O.right),paddingBottom:c(y.bottom,f,O.bottom),paddingLeft:c(y.left,u,O.left)};return[p,l]}},[O.bottom,O.left,O.right,O.top,y.bottom,y.left,y.right,y.top,b,p]);return n.createElement(d.default,u({style:_},v,{ref:s}))})},543,[129,34,42,199,541]);
6125__d(function(g,r,i,a,m,e,d){"use strict";
6125Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"initialWindowMetrics",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"initialWindowSafeAreaInsets",{enumerable:!0,get:function(){return t}});const n=null,t=null},544,[]);
6126__d(function(g,r,i,a,m,e,d){},545,[]);
6127__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useFrameSize=function(t,n){const u=e.useContext(s);if(null==u)throw new Error('useFrameSize must be used within a FrameSizeProvider');return(0,o.useSyncExternalStoreWithSelector)(n?u.subscribeThrottled:u.subscribe,u.getCurrent,u.getCurrent,t)},_e.FrameSizeProvider=function({initialFrame:t,render:n}){const o=e.useRef({width:t.width,height:t.height}),d=e.useRef(new Set),l=(0,u.default)(()=>o.current),f=(0,u.default)(e=>(d.current.add(e),()=>{d.current.delete(e)})),b=(0,u.default)(e=>{let t,n=!1,u=!1;const o=f(()=>{clearTimeout(t),n=!0,u?t=setTimeout(()=>{n&&(n=!1,e())},100):(u=!0,setTimeout(function(){u=!1},100),n=!1,e())});return()=>{o(),clearTimeout(t)}}),w=e.useMemo(()=>({getCurrent:l,subscribe:f,subscribeThrottled:b}),[f,b,l]),v=(0,u.default)(e=>{o.current.height===e.height&&o.current.width===e.width||(o.current={width:e.width,height:e.height},d.current.forEach(e=>e()))}),y=e.useRef(null);e.useEffect(()=>{},[v]);return(0,c.jsxs)(s.Provider,{value:w,children:[(0,c.jsx)(h,{onChange:v}),n({ref:y,onLayout:e=>{const{width:t,height:n}=e.nativeEvent.layout;v({width:t,height:n})}})]})};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]));r(_d[1]);var t,n=r(_d[2]),u=(t=n)&&t.__esModule?t:{default:t},o=r(_d[3]),c=r(_d[4]);const s=e.createContext(void 0);function h({onChange:t}){const n=e.useRef(null);return e.useEffect(()=>{if(null==n.current)return;const e=n.current.getBoundingClientRect();t({width:e.width,height:e.height});const u=new ResizeObserver(e=>{const n=e[0];if(n){const{width:e,height:u}=n.contentRect;t({width:e,height:u})}});return u.observe(n.current),()=>{u.disconnect()}},[t]),(0,c.jsx)("div",{ref:n,style:{position:'absolute',left:0,right:0,top:0,bottom:0,pointerEvents:'none',visibility:'hidden'}})}},546,[34,95,380,454,175]);
6128__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.HeaderBackButton=function({disabled:e,allowFontScaling:o,backImage:h,label:p,labelStyle:x,displayMode:L="minimal",onLabelLayout:j,onPress:O,pressColor:k,pressOpacity:w,screenLayout:C,tintColor:_,titleLayout:v,truncatedLabel:I="Back",accessibilityLabel:M=(p&&'Back'!==p?`${p}, back`:'Go back'),testID:S,style:W,href:B}){const{colors:D,fonts:E}=(0,t.useTheme)(),{direction:F}=(0,t.useLocale)(),[H,P]=n.useState(null),[N,T]=n.useState(null);return(0,f.jsx)(u.HeaderButton,{disabled:e,href:B,accessibilityLabel:M,testID:S,onPress:()=>{O&&requestAnimationFrame(()=>O())},pressColor:k,pressOpacity:w,style:[y.container,W],children:(0,f.jsxs)(n.Fragment,{children:[h?h({tintColor:_??D.text}):(0,f.jsx)(d.HeaderIcon,{source:c.default,tintColor:_,style:[y.icon,'minimal'!==L&&y.iconWithLabel]}),(()=>{if('minimal'===L)return null;const e=v&&C?(C.width-v.width)/2-(b+d.ICON_MARGIN):null,t='default'===L?p:I,n=e&&H&&N?e>H?t:e>N?I:null:t,c=[E.regular,y.label,x],u=[c,{position:'absolute',top:0,left:0,opacity:0}];return(0,f.jsxs)(s.default,{style:y.labelWrapper,children:[p&&'default'===L?(0,f.jsx)(l.default.Text,{style:u,numberOfLines:1,onLayout:e=>P(e.nativeEvent.layout.width),children:p}):null,I?(0,f.jsx)(l.default.Text,{style:u,numberOfLines:1,onLayout:e=>T(e.nativeEvent.layout.width),children:I}):null,n?(0,f.jsx)(l.default.Text,{accessible:!1,onLayout:j,style:[_?{color:_}:null,c],numberOfLines:1,allowFontScaling:!!o,children:n}):null]})})()]})})};var t=r(_d[0]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),l=e(r(_d[2]));e(r(_d[3]));r(_d[4]);var o=e(r(_d[5])),s=e(r(_d[6])),c=e(r(_d[7])),u=(e(r(_d[8])),r(_d[9]),r(_d[10])),d=r(_d[11]),f=r(_d[12]);const b=24,y=o.default.create({container:Object.assign({paddingHorizontal:0,minWidth:o.default.hairlineWidth},{marginVertical:3,marginHorizontal:11}),label:{fontSize:17,letterSpacing:.35},labelWrapper:{flexDirection:'row',alignItems:'flex-start',marginEnd:d.ICON_MARGIN},icon:{width:b,marginEnd:3},iconWithLabel:{},iconMaskContainer:{flex:1,flexDirection:'row',justifyContent:'center'},iconMaskFillerRect:{flex:1,backgroundColor:'#000'},iconMask:{height:21,width:13,marginStart:-14.5,marginVertical:12,alignSelf:'center'},flip:{transform:'scaleX(-1)'}})},547,[366,34,234,188,95,42,199,518,519,548,549,550,175]);
6129__d(function(g,r,i,a,m,e,d){"use strict";
6129Object.defineProperty(e,'__esModule',{value:!0}),e.MaskedView=function({children:n}){return n}},548,[]);
6130__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"HeaderButton",{enumerable:!0,get:function(){return l}});var t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=(e(r(_d[1])),e(r(_d[2]))),o=r(_d[3]),s=r(_d[4]);function d({disabled:e,onPress:t,pressColor:n,pressOpacity:d,accessibilityLabel:l,testID:f,style:b,href:p,children:y},_){return(0,s.jsx)(o.PlatformPressable,{ref:_,disabled:e,href:p,"aria-label":l,testID:f,onPress:t,pressColor:n,pressOpacity:d,android_ripple:u,style:[c.container,e&&c.disabled,b],hitSlop:{top:16,right:16,bottom:16,left:16},children:y})}const l=t.forwardRef(d);l.displayName='HeaderButton';const u={borderless:!0,foreground:!1,radius:20},c=n.default.create({container:{flexDirection:'row',alignItems:'center',paddingHorizontal:8,borderRadius:10,borderCurve:'continuous'},disabled:{opacity:.5}})},549,[34,95,42,534,175]);
6131__d(function(g,r,i,a,m,_e,d){"use strict";const e=["source","style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.HeaderIcon=function(t){let{source:u,style:l}=t,f=(0,n.default)(t,e);const{colors:b}=(0,o.useTheme)(),{direction:y}=(0,o.useLocale)();return(0,s.jsx)(c.default,Object.assign({source:u,resizeMode:"contain",fadeDuration:0,tintColor:b.text,style:[_.icon,'rtl'===y&&_.flip,l]},f))},Object.defineProperty(_e,"ICON_SIZE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"ICON_MARGIN",{enumerable:!0,get:function(){return f}});var n=t(r(d[0])),o=r(d[1]),c=t(r(d[2]));r(d[3]);var u=t(r(d[4])),s=r(d[5]);const l=24,f=3,_=u.default.create({icon:{width:l,height:l,margin:f},flip:{transform:'scaleX(-1)'}})},550,[129,366,188,95,42,175]);
6132__d(function(g,r,i,a,m,_e,d){"use strict";const e=["style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.HeaderBackground=function(t){let{style:c}=t,f=(0,o.default)(t,e);const{colors:b,dark:_}=(0,n.useTheme)();return(0,l.jsx)(s.default.View,Object.assign({style:[u.container,Object.assign({backgroundColor:b.card,borderBottomColor:b.border},!1),c]},f))};var o=t(r(d[0])),n=r(d[1]);r(d[2]);var s=t(r(d[3]));r(d[4]);var c=t(r(d[5])),l=r(d[6]);const u=c.default.create({container:Object.assign({flex:1},{borderBottomWidth:c.default.hairlineWidth})})},551,[129,366,34,234,95,42,175]);
6133__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["visible","inputType","autoFocus","autoCapitalize","placeholder","cancelButtonText","enterKeyHint","onChangeText","onClose","tintColor","style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"HeaderSearchBar",{enumerable:!0,get:function(){return S}});var n=t(r(_d[0])),o=r(_d[1]),l=t(r(_d[2])),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[3])),c=t(r(_d[4]));t(r(_d[5]));r(_d[6]);var s=t(r(_d[7])),f=t(r(_d[8])),d=t(r(_d[9])),p=(t(r(_d[10])),t(r(_d[11]))),h=t(r(_d[12])),b=(r(_d[13]),r(_d[14]),r(_d[15])),y=r(_d[16]),C=r(_d[17]);const x={text:'text',number:'numeric',phone:'tel',email:'email'},v=!1;function j(t,s){let{visible:j,inputType:S,autoFocus:B=!0,autoCapitalize:H,placeholder:O="Search",cancelButtonText:_="Cancel",enterKeyHint:w="search",onChangeText:z,onClose:I,tintColor:k,style:E}=t,P=(0,n.default)(t,e);const D=(0,o.useNavigation)(),{dark:R,colors:V,fonts:M}=(0,o.useTheme)(),[N,F]=u.useState(''),[K,A]=u.useState(j),[L]=u.useState(()=>new c.default.Value(j?1:0)),[W]=u.useState(()=>new c.default.Value(0)),q=u.useRef(j),G=u.useRef(!1),J=u.useRef(null);u.useEffect(()=>{if(j!==q.current)return c.default.timing(L,{toValue:j?1:0,duration:100,useNativeDriver:v}).start(({finished:e})=>{e&&(A(j),q.current=j)}),()=>{L.stopAnimation()}},[j,L]);const Q=''!==N;u.useEffect(()=>{G.current!==Q&&c.default.timing(W,{toValue:Q?1:0,duration:100,useNativeDriver:v}).start(({finished:e})=>{e&&(G.current=Q)})},[W,Q]);const U=u.useCallback(()=>{J.current?.clear(),J.current?.focus(),F('')},[]),X=u.useCallback(()=>{U(),z?.({nativeEvent:{text:''}})},[U,z]),Y=u.useCallback(()=>{X(),I()},[X,I]);if(u.useEffect(()=>D?.addListener('blur',Y),[Y,D]),u.useImperativeHandle(s,()=>({focus:()=>{J.current?.focus()},blur:()=>{J.current?.blur()},setText:e=>{J.current?.setNativeProps({text:e}),F(e)},clearText:U,cancelSearch:Y}),[Y,U]),!j&&!K)return null;const Z=k??V.text;return(0,C.jsxs)(c.default.View,{pointerEvents:j?'auto':'none',"aria-live":"polite","aria-hidden":!j,style:[T.container,{opacity:L},E],children:[(0,C.jsxs)(d.default,{style:T.searchbarContainer,children:[(0,C.jsx)(y.HeaderIcon,{source:h.default,tintColor:Z,style:T.inputSearchIcon}),(0,C.jsx)(f.default,Object.assign({}
6133,P,{ref:J,onChange:z,onChangeText:F,autoFocus:B,autoCapitalize:'systemDefault'===H?void 0:H,inputMode:x[S??'text'],enterKeyHint:w,placeholder:O,placeholderTextColor:(0,l.default)(Z).alpha(.5).string(),cursorColor:V.primary,selectionHandleColor:V.primary,selectionColor:(0,l.default)(V.primary).alpha(.3).string(),style:[M.regular,T.searchbar,{backgroundColor:'transparent',color:Z,borderBottomColor:(0,l.default)(Z).alpha(.2).string()}]})),null]}),(0,C.jsx)(b.HeaderButton,{onPress:()=>{N?X():I()},style:T.closeButton,children:(0,C.jsx)(y.HeaderIcon,{source:p.default,tintColor:Z})}),null]})}const T=s.default.create({container:{flex:1,flexDirection:'row',alignItems:'stretch'},inputSearchIcon:Object.assign({position:'absolute',opacity:.5,left:4,top:17},{}),closeButton:{position:'absolute',opacity:.5,right:8,top:17},clearButton:{position:'absolute',right:0,top:-7,bottom:0,justifyContent:'center',padding:8},clearIcon:{height:16,width:16,opacity:.5},cancelButton:{alignSelf:'center',top:-4},cancelText:{fontSize:17,marginHorizontal:12},searchbarContainer:{flex:1},searchbar:{flex:1,fontSize:18,paddingHorizontal:36,marginRight:8,marginTop:8,marginBottom:8,borderBottomWidth:1}}),S=u.forwardRef(j)},552,[129,366,525,34,234,188,95,42,331,199,520,521,522,534,535,549,550,175]);
6134__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HeaderShownContext",{enumerable:!0,get:function(){return t}});const t=(0,r(d[0]).getNamedContext)('HeaderShownContext',!1)},553,[554]);
6135__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getNamedContext=function(n,o){let c=globalThis[t].get(n);if(c)return c;return c=e.createContext(o),c.displayName=n,globalThis[t].set(n,c),c};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]));const t='__react_navigation__elements_contexts';globalThis[t]=globalThis[t]??new Map},554,[34]);
6136__d(function(g,r,i,a,m,_e,d){"use strict";const e=["tintColor","style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.HeaderTitle=function(t){let{tintColor:s,style:f}=t,_=(0,l.default)(t,e);const{colors:v,fonts:y}=(0,o.useTheme)();return(0,u.jsx)(n.default.Text,Object.assign({role:"heading","aria-level":"1",numberOfLines:1},_,{style:[{color:void 0===s?v.text:s},y.medium,c.title,f]}))};var l=t(r(d[0])),o=r(d[1]),n=t(r(d[2]));r(d[3]);var s=t(r(d[4])),u=r(d[5]);const c=s.default.create({title:{fontSize:18}})},555,[129,366,234,95,42,175]);
6137__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HeaderBackContext",{enumerable:!0,get:function(){return t}});const t=(0,r(d[0]).getNamedContext)('HeaderBackContext',void 0)},556,[554]);
6138__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HeaderHeightContext",{enumerable:!0,get:function(){return t}});const t=(0,r(d[0]).getNamedContext)('HeaderHeightContext',void 0)},557,[554]);
6139__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useHeaderHeight=function(){const n=e.useContext(t.HeaderHeightContext);if(void 0===n)throw new Error("Couldn't find the header height. Are you inside a screen in a navigator with a header?");return n};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},558,[34,557]);
6140__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getLabel=function(t,l){return void 0!==t.label?t.label:void 0!==t.title?t.title:l}},559,[]);
6141__d(function(g,r,i,a,m,_e,d){"use strict";const e=["tintColor","style"];function t(e){return e&&e.__esModule?e:{default:e}}
6141Object.defineProperty(_e,'__esModule',{value:!0}),_e.Label=function(t){let{tintColor:n,style:c}=t,f=(0,l.default)(t,e);return(0,u.jsx)(o.Text,Object.assign({numberOfLines:1},f,{style:[s.label,null!=n&&{color:n},c]}))};var l=t(r(d[0])),n=t(r(d[1])),o=r(d[2]),u=r(d[3]);const s=n.default.create({label:{textAlign:'center',backgroundColor:'transparent'}})},560,[129,42,535,175]);
6142__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.Lazy=function({enabled:t,visible:n,children:u}){const[c,l]=e.useState(!!t&&n),f=!(t||n||c);if(e.useEffect(()=>{if(!1===f)return;const e=requestIdleCallback(()=>{l(!0)});return()=>cancelIdleCallback(e)},[f]),n&&!1===c)return l(!0),u;if(c)return u;return null};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]))},561,[34]);
6143__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.MissingIcon=function({color:e,size:o,style:t}){return(0,c.jsx)(n.Text,{style:[s.icon,{color:e,fontSize:o},t],children:"\u23f7"})};var e,o=r(d[0]),t=(e=o)&&e.__esModule?e:{default:e},n=r(d[1]),c=r(d[2]);const s=t.default.create({icon:{backgroundColor:'transparent'}})},562,[42,535,175]);
6144__d(function(g,r,i,a,m,_e,d){"use strict";const e=["visible","children","style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.ResourceSavingView=function(t){let{visible:l,children:u,style:f}=t,v=(0,n.default)(t,e);return(0,c.jsx)(o.default,Object.assign({hidden:!l,style:[{display:l?'flex':'none'},s.container,f],pointerEvents:l?'auto':'none'},v,{children:u}))};var n=t(r(d[0]));r(d[1]),r(d[2]);var l=t(r(d[3])),o=t(r(d[4])),c=r(d[5]);const s=l.default.create({container:{flex:1,overflow:'hidden'},attached:{flex:1},detached:{flex:1,top:3e4}})},563,[129,34,95,42,199,175]);
6145__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.SafeAreaProviderCompat=y;var t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=e(r(_d[1]));r(_d[2]);var o=e(r(_d[3])),u=e(r(_d[4])),c=r(_d[5]),f=r(_d[6]),s=r(_d[7]);const{width:d=0,height:l=0}=n.default.get('window'),h={frame:{x:0,y:0,width:d,height:l},insets:{top:0,left:0,right:0,bottom:0}};function y({children:e,style:n}){const o=t.useContext(c.SafeAreaInsetsContext);return(0,s.jsx)(f.FrameSizeProvider,{initialFrame:h.frame,render:({ref:t,onLayout:f})=>o?(0,s.jsx)(u.default,{ref:t,onLayout:f,style:[v.container,n],children:e}):(0,s.jsx)(c.SafeAreaProvider,{initialMetrics:h,style:n,onLayout:f,children:e})})}y.initialMetrics=h;const v=o.default.create({container:{flex:1}})},564,[34,150,95,42,199,540,546,175]);
6146__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.Screen=function(e){const o=(0,s.useSafeAreaInsets)(),y=n.useContext(f.HeaderShownContext),b=n.useContext(c.HeaderHeightContext),{focused:j,modal:p=!1,header:H,headerShown:S=!0,headerTransparent:_,headerStatusBarHeight:C=(y?0:o.top),navigation:P,route:O,children:w,style:E}=e,M=(0,h.useFrameSize)(e=>(0,d.getDefaultHeaderHeight)(e,p,C)),k=n.useRef(null),[z,B]=n.useState(M);return n.useLayoutEffect(()=>{k.current?.measure((e,t,n,o)=>{B(o)})},[O.name]),(0,x.jsxs)(l.Background,{"aria-hidden":!j,style:[v.container,E],collapsable:!1,children:[S?(0,x.jsx)(t.NavigationProvider,{route:O,navigation:P,children:(0,x.jsx)(u.default,{ref:k,pointerEvents:"box-none",onLayout:e=>{const{height:t}=e.nativeEvent.layout;B(t)},style:[v.header,_?v.absolute:null],children:H})}):null,(0,x.jsx)(u.default,{style:v.content,children:(0,x.jsx)(f.HeaderShownContext.Provider,{value:y||!1!==S,children:(0,x.jsx)(c.HeaderHeight
6146Context.Provider,{value:S?z:b??0,children:w})})})]})};var t=r(_d[0]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),o=e(r(_d[2])),u=e(r(_d[3])),s=r(_d[4]),l=r(_d[5]),d=r(_d[6]),c=r(_d[7]),f=r(_d[8]),h=r(_d[9]),x=r(_d[10]);const v=o.default.create({container:{flex:1},content:{flex:1},header:{zIndex:1},absolute:{position:'absolute',top:0,start:0,end:0}})},565,[366,34,42,199,540,523,537,557,553,546,175]);
6147__d(function(g,r,i,a,m,e,d){},566,[]);
6148__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"BottomTabBarHeightCallbackContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},567,[34]);
6149__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"BottomTabBarHeightContext",{enumerable:!0,get:function(){return e}});const e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},568,[34]);
6150__d(function(g,r,_i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useAnimatedHashMap=function({routes:e,index:n}){const c=t.useRef({}),o=c.current,f=Object.keys(o);if(e.length===f.length&&e.every(e=>f.includes(e.key)))return o;return c.current={},e.forEach(({key:e},t)=>{c.current[e]=o[e]??new u.default.Value(t===n?0:t>=n?1:-1)}),c.current};var e,t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=r(_d[1]),u=(e=n)&&e.__esModule?e:{default:e}},569,[34,234]);
6151__d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"getTabBarHeight",{enumerable:!0,get:function(){return k}}),_e.BottomTabBar=function({state:t,navigation:x,descriptors:C,insets:L,style:P}){const{colors:T}=(0,o.useTheme)(),{direction:I}=(0,o.useLocale)(),{buildHref:W}=(0,o.useLinkBuilder)(),j=t.routes[t.index],z=C[j.key].options,{tabBarPosition:A="bottom",tabBarShowLabel:D,tabBarLabelPosition:E,tabBarHideOnKeyboard:V=!1,tabBarVisibilityAnimationConfig:F,tabBarVariant:O="uikit",tabBarStyle:_,tabBarBackground:H,tabBarActiveTintColor:M,tabBarInactiveTintColor:R,tabBarActiveBackgroundColor:N,tabBarInactiveBackgroundColor:K}=z;if('material'===O&&'left'!==A&&'right'!==A)throw new Error("The 'material' variant for tab bar is only supported when 'tabBarPosition' is set to 'left' or 'right'.");if('below-icon'===E&&'uikit'===O&&('left'===A||'right'===A))throw new Error("The 'below-icon' label position for tab bar is only supported when 'tabBarPosition' is set to 'top' or 'bottom' when using the 'uikit' variant.");const Y=(0,c.useIsKeyboardShown)(),q=n.default.useContext(b.BottomTabBarHeightCallbackContext),G=!(V&&Y),J=n.default.useRef(F);n.default.useEffect(()=>{J.current=F});const[Q,U]=n.default.useState(!G),[X]=n.default.useState(()=>new s.default.Value(G?1:0));n.default.useEffect(()=>{const t=J.current;if(G){('spring'===t?.show?.animation?s.default.spring:s.default.timing)(X,Object.assign({toValue:1,useNativeDriver:y,duration:250},t?.show?.config)).start(({finished:t})=>{t&&U(!1)})}else{U(!0);('spring'===t?.hide?.animation?s.default.spring:s.default.timing)(X,Object.assign({toValue:0,useNativeDriver:y,duration:200},t?.hide?.config)).start()}return()=>X.stopAnimation()},[X,G]);const[Z,$]=n.default.useState({height:0}),{routes:tt}=t,et=(0,e.useFrameSize)(e=>k({state:t,descriptors:C,insets:L,dimensions:e,style:[_,P]})),it=(0,e.useFrameSize)(e=>v({state:t,descriptors:C,dimensions:e})),ot=(0,e.useFrameSize)(e=>w({state:t,descriptors:C,dimensions:e}
6151)),at='left'===A||'right'===A,rt='material'===O?B:p,nt=(0,e.useFrameSize)(t=>at&&it?(0,e.getDefaultSidebarWidth)(t):0),st=H?.();return(0,f.jsxs)(s.default.View,{style:['left'===A?S.start:'right'===A?S.end:S.bottom,'right'===A?{borderLeftWidth:l.default.hairlineWidth}:'left'===A?{borderRightWidth:l.default.hairlineWidth}:'top'===A?{borderBottomWidth:l.default.hairlineWidth}:{borderTopWidth:l.default.hairlineWidth},{backgroundColor:null!=st?'transparent':T.card,borderColor:T.border},at?{paddingTop:(it?rt:rt/2)+L.top,paddingBottom:(it?rt:rt/2)+L.bottom,paddingStart:rt+('left'===A?L.left:0),paddingEnd:rt+('right'===A?L.right:0),minWidth:nt}:[{transform:[{translateY:X.interpolate({inputRange:[0,1],outputRange:[Z.height+L['top'===A?'top':'bottom']+l.default.hairlineWidth,0]})}],position:Q?'absolute':void 0},{height:et,paddingBottom:'bottom'===A?L.bottom:0,paddingTop:'top'===A?L.top:0,paddingHorizontal:Math.max(L.left,L.right)}],_],pointerEvents:Q?'none':'auto',onLayout:at?void 0:t=>{const{height:e}=t.nativeEvent.layout;q?.(e),$(t=>e===t.height?t:{height:e})},children:[(0,f.jsx)(u.default,{pointerEvents:"none",style:l.default.absoluteFill,children:st}),(0,f.jsx)(u.default,{role:"tablist",style:at?S.sideContent:S.bottomContent,children:tt.map((n,s)=>{const l=s===t.index,{options:u}=C[n.key],b='function'==typeof u.tabBarLabel?u.tabBarLabel:(0,e.getLabel)({label:u.tabBarLabel,title:u.title},n.name),c=void 0!==u.tabBarAccessibilityLabel?u.tabBarAccessibilityLabel:void 0;return(0,f.jsx)(o.NavigationProvider,{route:n,navigation:C[n.key].navigation,children:(0,f.jsx)(h.BottomTabItem,{href:W(n.name,n.params),route:n,descriptor:C[n.key],focused:l,horizontal:it,compact:ot,sidebar:at,variant:O,onPress:()=>{const e=x.emit({type:'tabPress',target:n.key,canPreventDefault:!0});l||e.defaultPrevented||x.dispatch(Object.assign({},o.CommonActions.navigate(n),{target:t.key}))},onLongPress:()=>{x.emit({type:'tabLongPress',target:n.key})},accessibilityLabel:c,testID:u.tabBarButtonTestID,allowFontScaling:u.tabBarAllowFontScaling,activeTintColor:M,inactiveTintColor:R,activeBackgroundColor:N,inactiveBackgroundColor:K,button:u.tabBarButton,icon:u.tabBarIcon??(({color:t,size:o})=>(0,f.jsx)(e.MissingIcon,{color:t,size:o})),badge:u.tabBarBadge,badgeStyle:u.tabBarBadgeStyle,label:b,showLabel:D,labelStyle:u.tabBarLabelStyle,iconStyle:u.tabBarIconStyle,style:[at?{marginVertical:it?'material'===O?0:1:rt/2}:S.bottomItem,u.tabBarItemStyle]})},n.key)})})]})};var e=r(d[0]),o=r(d[1]),n=t(r(d[2])),s=t(r(d[3])),l=(t(r(d[4])),t(r(d[5]))),u=t(r(d[6])),b=r(d[7]),c=r(d[8]),h=r(d[9]),f=r(d[10]);const p=15,B=12,y=!1,v=({state:t,descriptors:e,dimensions:o})=>{const{tabBarLabelPosition:n}=e[t.routes[t.index].key].options;if(n)switch(n){case'beside-icon':return!0;case'below-icon':return!1}if(o.width>=768){return t.routes.reduce((t,o)=>{const{tabBarItemStyle:n}=e[o.key].options,s=l.default.flatten(n);if(s){if('number'==typeof s.width)return t+s.width;if('number'==typeof s.maxWidth)return t+s.maxWidth}return t+125},0)<=o.width}return o.width>o.height},w=({state:t,descriptors:e,dimensions:o})=>{const{tabBarPosition:n,tabBarVariant:s}=e[t.routes[t.index].key].options;if('left'===n||'right'===n||'material'===s)return!1;o.width,o.height,v({state:t,descriptors:e,dimensions:o});return!1},k=({state:t,descriptors:e,dimensions:o,insets:n,style:s})=>{const{tabBarPosition:u}=e[t.routes[t.index].key].options,b=l.default.flatten(s),c=b&&'height'in b?b.height:void 0;if('number'==typeof c)return c;const h=n['top'===u?'top':'bottom'];return w({state:t,descriptors:e,dimensions:o})?32+h:49+h};const S=l.default.create({start:{top:0,bottom:0,start:0},end:{top:0,bottom:0,end:0},bottom:{start:0,end:0,bottom:0,elevation:8},bottomContent:{flex:1,flexDirection:'row'},sideContent:{flex:1,flexDirection:'column'},bottomItem:{flex:1}})},570,[517,366,34,234,95,42,199,567,571,573,175]);
6152__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useIsKeyboardShown=function(){const[e,n]=t.useState(!1);return t.useEffect(()=>{const e=()=>n(!0),t=()=>n(!1);let o;return o=[u.default.addListener('keyboardDidShow',e),u.default.addListener('keyboardDidHide',t)],()=>
6152{o.forEach(e=>e.remove())}},[]),e};var e,t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=r(_d[1]),u=(e=n)&&e.__esModule?e:{default:e};r(_d[2])},571,[34,572,95]);
6153__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e},n={isVisible:()=>!1,addListener:()=>({remove:()=>{}}),dismiss(){(0,s.default)()},removeAllListeners(){},removeListener(){}}},572,[224]);
6154__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.BottomTabItem=function({route:e,href:y,focused:S,descriptor:v,label:h,icon:x,badge:B,badgeStyle:C,button:U=f,accessibilityLabel:k,testID:w,onPress:j,onLongPress:L,horizontal:z,compact:I,sidebar:K,variant:M,activeTintColor:V,inactiveTintColor:T,activeBackgroundColor:D,inactiveBackgroundColor:P="transparent",showLabel:_=!0,allowFontScaling:O,labelStyle:F,iconStyle:H,style:E}){const{colors:R,fonts:q}=(0,l.useTheme)(),A=V??('uikit'===M&&K&&z?(0,n.default)(R.primary).isDark()?'white':(0,n.default)(R.primary).darken(.71).string():R.primary),G=void 0===T?'material'===M?(0,n.default)(R.text).alpha(.68).rgb().string():(0,n.default)(R.text).mix((0,n.default)(R.card),.5).hex():T,J=D??('material'===M?(0,n.default)(A).alpha(.12).rgb().string():K&&z?R.primary:'transparent'),{options:N}=v,Q=(0,t.getLabel)({label:'string'==typeof N.tabBarLabel?N.tabBarLabel:void 0,title:N.title},e.name);let W=G,X=G;'uikit'===M&&K&&z&&void 0===T&&(X=R.primary,W=R.text);const Y={route:e,focused:S},Z=S?J:P,{flex:$}=s.default.flatten(E||{}),ee='material'===M?z?56:16:K&&z?10:0;return(0,u.jsx)(c.default,{style:[{borderRadius:ee,overflow:'material'===M?'hidden':'visible'},E],children:U({href:y,onPress:j,onLongPress:L,testID:w,'aria-label':k,accessibilityLargeContentTitle:Q,accessibilityShowsLargeContentViewer:!0,role:'tab','aria-selected':S,android_ripple:{borderless:!0},hoverEffect:'material'===M||K&&z?{color:R.text}:void 0,pressOpacity:1,style:[p.tab,{flex:$,backgroundColor:Z,borderRadius:ee},K?'material'===M?z?p.tabBarSidebarMaterial:p.tabVerticalMaterial:z?p.tabBarSidebarUiKit:p.tabVerticalUiKit:'material'===M?p.tabVerticalMaterial:z?p.tabHorizontalUiKit:p.tabVerticalUiKit],children:(0,u.jsxs)(o.default.Fragment,{children:[(({focused:t})=>{if(void 0===x)return null;const l=t?1:0,n=t?0:1;return(0,u.jsx)(b.TabBarIcon,{route:e,variant:M,size:I?'compact':'regular',badge:B,badgeStyle:C,activeOpacity:l,allowFontScaling:O,inactiveOpacity:n,activeTintColor:A,inactiveTintColor:X,renderIcon:x,style:H})})(Y),(({focused:e})=>{if(!1===_)return null;const l=e?A:W;return'string'!=typeof h?h({focused:e,color:l,position:z?'beside-icon':'below-icon',children:Q}):(0,u.jsx)(t.Label,{style:[z?[p.labelBeside,'material'===M?p.labelSidebarMaterial:K?p.labelSidebarUiKit:I?p.labelBesideUikitCompact:p.labelBesideUikit,null==x&&{marginStart:0}]:p.labelBeneath,I||'uikit'===M&&K&&z?q.regular:q.medium,F],allowFontScaling:O,tintColor:l,children:h})})(Y)]})})})};var t=r(d[0]),l=r(d[1]),n=e(r(d[2])),o=e(r(d[3])),s=(e(r(d[4])),e(r(d[5]))),c=e(r(d[6])),b=r(d[7]),u=r(d[8]);const f=e=>(0,u.jsx)(t.PlatformPressable,Object.assign({},e));const p=s.default.create({tab:{alignItems:'center',borderRadius:10,borderCurve:'continuous'},tabVerticalUiKit:{justifyContent:'flex-start',flexDirection:'column',padding:5},tabVerticalMaterial:{padding:10},tabHorizontalUiKit:{justifyContent:'center',alignItems:'center',flexDirection:'row',padding:5},tabBarSidebarUiKit:{justifyContent:'flex-start',alignItems:'center',flexDirection:'row',paddingVertical:7,paddingHorizontal:5},tabBarSidebarMaterial:{justifyContent:'flex-start',alignItems:'center',flexDirection:'row',paddingVertical:15,paddingStart:16,paddingEnd:24},labelSidebarMaterial:{marginStart:12},labelSidebarUiKit:{fontSize:17,marginStart:10},labelBeneath:{fontSize:10},labelBeside:{marginEnd:12,lineHeight:24},labelBesideUikit:{fontSize:13,marginStart:5},labelBesideUikitCompact:{fontSize:12,marginStart:5}})},573,[517,366,525,34,95,42,199,574,175]);
6155__d(function(g,r,i,a,m,_e,d){"use strict";
6155function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.TabBarIcon=function({route:e,variant:n,size:h,badge:f,badgeStyle:w,activeOpacity:y,inactiveOpacity:b,activeTintColor:v,inactiveTintColor:j,renderIcon:_,allowFontScaling:C,style:k}){const x='material'===n?p:'compact'===h?s:l;return(0,c.jsxs)(o.default,{style:['material'===n?u.wrapperMaterial:'compact'===h?u.wrapperUikitCompact:u.wrapperUikit,k],children:[(0,c.jsx)(o.default,{style:[u.icon,{opacity:y,minWidth:x}],children:_({focused:!0,size:x,color:v})}),(0,c.jsx)(o.default,{style:[u.icon,{opacity:b}],children:_({focused:!1,size:x,color:j})}),(0,c.jsx)(t.Badge,{visible:null!=f,size:.75*x,allowFontScaling:C,style:[u.badge,w],children:f})]})};var t=r(d[0]);r(d[1]);var n=e(r(d[2])),o=e(r(d[3])),c=r(d[4]);const l=25,s=18,p=24;const u=n.default.create({icon:{position:'absolute',alignSelf:'center',alignItems:'center',justifyContent:'center',height:'100%',width:'100%'},wrapperUikit:{width:31,height:28},wrapperUikitCompact:{width:23,height:20},wrapperMaterial:{width:p,height:p},badge:{position:'absolute',end:-3,top:-3}})},574,[517,34,42,199,175]);
6156__d(function(g,r,i,a,m,_e,d){"use strict";const e=["enabled"],n=["enabled","active"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"MaybeScreenContainer",{enumerable:!0,get:function(){return b}}),_e.MaybeScreen=function(e){let{enabled:t,active:b}=e,f=(0,c.default)(e,n);if(u?.screensEnabled?.())return(0,l.jsx)(u.Screen,Object.assign({enabled:t,activityState:b},f));return(0,l.jsx)(s.default,Object.assign({},f))};var c=t(r(d[0]));r(d[1]);var s=t(r(d[2])),l=r(d[3]);let u;try{u=r(d[4],"react-native-screens")}catch(e){}const b=n=>{let{enabled:t}=n,b=(0,c.default)(n,e);return u?.screensEnabled?.()?(0,l.jsx)(u.ScreenContainer,Object.assign({enabled:t},b)):(0,l.jsx)(s.default,Object.assign({},b))}},575,[129,34,199,175,576]);
6157__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"enableScreens",{enumerable:!0,get:function(){return n.enableScreens}}),Object.defineProperty(_e,"enableFreeze",{enumerable:!0,get:function(){return n.enableFreeze}}),Object.defineProperty(_e,"screensEnabled",{enumerable:!0,get:function(){return n.screensEnabled}}),Object.defineProperty(_e,"freezeEnabled",{enumerable:!0,get:function(){return n.freezeEnabled}}),Object.defineProperty(_e,"Screen",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"InnerScreen",{enumerable:!0,get:function(){return c.InnerScreen}}),Object.defineProperty(_e,"ScreenContext",{enumerable:!0,get:function(){return c.ScreenContext}}),Object.defineProperty(_e,"ScreenStackHeaderConfig",{enumerable:!0,get:function(){return o.ScreenStackHeaderConfig}}),Object.defineProperty(_e,"ScreenStackHeaderSubview",{enumerable:!0,get:function(){return o.ScreenStackHeaderSubview}}),Object.defineProperty(_e,"ScreenStackHeaderLeftView",{enumerable:!0,get:function(){return o.ScreenStackHeaderLeftView}}),Object.defineProperty(_e,"ScreenStackHeaderCenterView",{enumerable:!0,get:function(){return o.ScreenStackHeaderCenterView}}),Object.defineProperty(_e,"ScreenStackHeaderRightView",{enumerable:!0,get:function(){return o.ScreenStackHeaderRightView}}),Object.defineProperty(_e,"ScreenStackHeaderBackButtonImage",{enumerable:!0,get:function(){return o.ScreenStackHeaderBackButtonImage}}),Object.defineProperty(_e,"ScreenStackHeaderSearchBarView",{enumerable:!0,get:function(){return o.ScreenStackHeaderSearchBarView}}),Object.defineProperty(_e,"SearchBar",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"ScreenContainer",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_e,"ScreenStack",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(_e,"ScreenStackItem",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(_e,"FullWindowOverlay",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(_e,"ScreenFooter",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(_e,"ScreenContentWrapper",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(_e,"isSearchBarAvailableForCurrentPlatform",{enumerable:!0,get:function(){return O.isSearchBarAvailableForCurrentPlatform}}),Object.defineProperty(_e,"executeNativeBackPress",{enumerable:!0,get:function(){return O.executeNativeBackPress}}),Object.defineProperty(_e,"compatibilityFlags",{enumerable:!0,get:function(){return j.compatibilityFlags}}),Object.defineProperty(_e,"featureFlags",{enumerable:!0,get:function(){return j.featureFlags}}),Object.defineProperty(_e,"useTransitionProgress",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(_e,"BottomTabs",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(_e,"BottomTabsScreen",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(_e,"ScreenStackHost",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(_e,"StackScreen",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(_e,"StackScreenLifecycleState",{enumerable:!0,get:function(){return B.StackScreenLifecycleState}}),Object.defineProperty(_e,"SplitViewHost",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(_e,"SplitViewScreen",{enumerable:!0,get:function(){return F.default}}),r(d[0]);var t=r(d[1]);Object.keys(t).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return t[e]}})});var n=r(d[2]),c=r(d[3]),u=e(c),o=r(d[4]),f=e(r(d[5])),b=e(r(d[6])),l=e(r(d[7])),S=e(r(d[8])),p=e(r(d[9])),y=e(r(d[10])),P=e(r(d[11])),O=r(d[12]),j=r(d[13]),s=e(r(d[14])),k=e(r(d[15])),H=e(r(d[16])),w=e(r(d[17])),B=r(d[18]),v=e(B),C=e(r(d[19])),F=e(r(d[20]))},576,[577,578,583,584,585,586,587,588,589,595,594,592,596,598,599,601,602,603,604,605,606]);
6158__d(function(g,r,i,a,m,e,d){"use strict";
6158Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t={}},577,[]);
6159__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var c=r(d[2]);Object.keys(c).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})});var o=r(d[3]);Object.keys(o).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})},578,[579,580,581,582]);
6160__d(function(g,r,i,a,m,e,d){},579,[]);
6161__d(function(g,r,i,a,m,e,d){},580,[]);
6162__d(function(g,r,i,a,m,e,d){},581,[]);
6163__d(function(g,r,i,a,m,e,d){},582,[]);
6164__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"isNativePlatformSupported",{enumerable:!0,get:function(){return t}}),_e.enableScreens=function(e=!0){return void(u=e)},_e.enableFreeze=function(e=!0){return},_e.screensEnabled=function(){return u},_e.freezeEnabled=function(){return o},r(d[0]);var e,n=r(d[1]);(e=n)&&e.__esModule;const t=!1;let u=t;let o=!1},583,[95,152]);
6165__d(function(g,_r,i,a,m,_e,d){"use strict";const e=["active","activityState","style","enabled"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"InnerScreen",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"NativeScreen",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"ScreenContext",{enumerable:!0,get:function(){return p}});var n=t(_r(d[0])),r=t(_r(d[1])),l=t(_r(d[2])),u=t(_r(d[3])),c=_r(d[4]);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(null,arguments)}const f=l.default;class s extends u.default.Component{render(){let t=this.props,{active:r,activityState:f,style:s,enabled:b=(0,c.screensEnabled)()}=t,p=(0,n.default)(t,e);return b?(void 0!==r&&void 0===f&&(f=0!==r?2:0),u.default.createElement(l.default,o({hidden:0===f,style:[s,{display:0!==f?'flex':'none'}]},p))):u.default.createElement(l.default,p)}}const b=r.default.createAnimatedComponent(s),p=u.default.createContext(b);var v=b},584,[129,234,199,34,583]);
6166__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ScreenStackHeaderBackButtonImage",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"ScreenStackHeaderRightView",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"ScreenStackHeaderLeftView",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"ScreenStackHeaderCenterView",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"ScreenStackHeaderSearchBarView",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"ScreenStackHeaderConfig",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"ScreenStackHeaderSubview",{enumerable:!0,get:function(){return p}});var t=e(_r(d[0])),r=e(_r(d[1])),n=e(_r(d[2]));function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(null,arguments)}const c=e=>n.default.createElement(r.default,null,n.default.createElement(t.default,u({resizeMode:"center",fadeDuration:0},e))),l=e=>n.default.createElement(r.default,e),f=e=>n.default.createElement(r.default,e),o=e=>n.default.createElement(r.default,e),b=e=>n.default.createElement(r.default,e),S=e=>n.default.createElement(r.default,e),p=r.default},585,[188,199,34]);
6167__d(function(g,r,i,a,m,_e,d){"use strict";
6167Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]);var u=((e=t)&&e.__esModule?e:{default:e}).default},586,[199]);
6168__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]);var u=((e=t)&&e.__esModule?e:{default:e}).default},587,[199]);
6169__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]);var u=((e=t)&&e.__esModule?e:{default:e}).default},588,[199]);
6170__d(function(g,_r,i,a,m,_e,_d){"use strict";const e=["children","headerConfig","activityState","shouldFreeze","stackPresentation","sheetAllowedDetents","contentStyle","style","screenId","unstable_sheetFooter"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return S}});var n=t(_r(_d[0])),r=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(_r(_d[1]));_r(_d[2]);var l=t(_r(_d[3])),o=t(_r(_d[4])),s=t(_r(_d[5])),c=_r(_d[6]),u=t(_r(_d[7])),d=t(_r(_d[8])),f=_r(_d[9]),h=_r(_d[10]);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(null,arguments)}function b(t,b){let{children:S,headerConfig:v,activityState:k,shouldFreeze:C,stackPresentation:_,sheetAllowedDetents:w,contentStyle:E,style:F,screenId:O,unstable_sheetFooter:P}=t,j=(0,n.default)(t,e);const R=r.useRef(null),D=r.useContext(f.RNSScreensRefContext);r.useImperativeHandle(b,()=>R.current);const x='push'!==_&&!1===v?.hidden,z=r.useRef(v?.hidden);r.useEffect(()=>{(0,o.default)('push'!==_&&z.current!==v?.hidden,"Dynamically changing header's visibility in modals will result in remounting the screen and losing all local state."),z.current=v?.hidden},[v?.hidden,_]);const H=r.createElement(r.Fragment,null,r.createElement(s.default,{style:['formSheet'===_&&'fitToContents'===w?null:p.container,E],stackPresentation:_??'push'},S),r.createElement(c.ScreenStackHeaderConfig,v),'formSheet'===_&&P&&r.createElement(h.FooterComponent,null,P()));let I;if('formSheet'===_&&E){const e=l.default.flatten(E);I={backgroundColor:e?.backgroundColor}}return r.createElement(u.default,y({ref:e=>{if(R.current=e,null===D)return void console.warn('Looks like RNSScreensRefContext is missing. Make sure the ScreenStack component is wrapped in it');const t=D.current;null===e?delete t[O]:t[O]={current:e}},enabled:!0,isNativeStack:!0,activityState:k,shouldFreeze:C,screenId:O,stackPresentation:_,hasLargeHeader:v?.largeTitle??!1,sheetAllowedDetents:w,style:[F,I]},j),x?r.createElement(d.default,{style:p.container},r.createElement(u.default,{enabled:!0,isNativeStack:!0,activityState:k,shouldFreeze:C,hasLargeHeader:v?.largeTitle??!1,style:l.default.absoluteFill},H)):H)}var S=r.forwardRef(b);const p=l.default.create({container:{flex:1},absolute:{position:'absolute',top:0,start:0,end:0}})},589,[129,34,95,42,590,591,585,584,588,593,594]);
6171__d(function(g,r,i,a,m,e,d){new Set;m.exports=function(n,...t){}},590,[]);
6172__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e,t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=r(_d[1]),u=(e=n)&&e.__esModule?e:{default:e};function c(e){return t.createElement(u.default,e)}},591,[34,592]);
6173__d(function(g,r,i,a,m,_e,d){"use strict";
6173Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]);var u=((e=t)&&e.__esModule?e:{default:e}).default},592,[199]);
6174__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"GHContext",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"RNSScreensRefContext",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const u=n.default.createContext(e=>n.default.createElement(n.default.Fragment,null,e.children)),l=n.default.createContext(null)},593,[34]);
6175__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"FooterComponent",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const u=n.default,o=n.default;var f=u},594,[199]);
6176__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},595,[199]);
6177__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"isSearchBarAvailableForCurrentPlatform",{enumerable:!0,get:function(){return u}}),_e.executeNativeBackPress=function(){return n.default.exitApp(),!0};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};r(d[1]);const u=['ios','android'].includes("web")},596,[597,95]);
6178__d(function(g,r,i,a,m,e,d){"use strict";function t(){}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var n={exitApp:t,addEventListener:()=>({remove:t}),removeEventListener:t}},597,[]);
6179__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"compatibilityFlags",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"featureFlags",{enumerable:!0,get:function(){return l}});const t=!0,o={isNewBackTitleImplementation:!0,usesHeaderFlexboxImplementation:!0},n={experiment:{controlledBottomTabs:t},stable:{}},l={experiment:{get controlledBottomTabs(){return n.experiment.controlledBottomTabs},set controlledBottomTabs(o){o!==n.experiment.controlledBottomTabs&&n.experiment.controlledBottomTabs!==t&&console.error("[RNScreens] controlledBottomTabs feature flag modified for a second time; this might lead to unexpected effects"),n.experiment.controlledBottomTabs=o}},stable:{}};var c=l},598,[]);
6180__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=r(_d[1]),u=(e=n)&&e.__esModule?e:{default:e};function o(){const e=t.useContext(u.default);if(void 0===e)throw new Error("Couldn't find values for transition progress. Are you inside a screen in Native Stack?");return e}},599,[34,600]);
6181__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])).createContext(void 0)},600,[34]);
6182__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]);var u=((e=t)&&e.__esModule?e:{default:e}).default},601,[199]);
6183__d(function(g,r,i,a,m,_e,d){"use strict";
6183Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]);var u=((e=t)&&e.__esModule?e:{default:e}).default},602,[199]);
6184__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]);var u=((e=t)&&e.__esModule?e:{default:e}).default},603,[199]);
6185__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"StackScreenLifecycleState",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const u={INITIAL:0,DETACHED:1,ATTACHED:2};var c=n.default},604,[199]);
6186__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]);var u=((e=t)&&e.__esModule?e:{default:e}).default},605,[199]);
6187__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e};var n={Column:u.default,Inspector:u.default}},606,[199]);
6188__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useBottomTabBarHeight=function(){const o=t.useContext(e.BottomTabBarHeightContext);if(void 0===o)throw new Error("Couldn't find the bottom tab bar height. Are you inside a screen in Bottom Tab Navigator?");return o};var t=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(o){var n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,n.get?n:{enumerable:!0,get:function(){return t[o]}})}),e.default=t,e})(r(_d[0])),e=r(_d[1])},607,[34,568]);
6189__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"unstable_createElement",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"findNodeHandle",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"processColor",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"render",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"unmountComponentAtNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_e,"NativeModules",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(_e,"AccessibilityInfo",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"Alert",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_e,"Animated",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(_e,"Appearance",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(_e,"AppRegistry",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(_e,"AppState",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(_e,"BackHandler",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(_e,"Clipboard",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(_e,"Dimensions",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(_e,"Easing",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(_e,"I18nManager",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(_e,"Keyboard",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(_e,"InteractionManager",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(_e,"LayoutAnimation",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(_e,"Linking",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(_e,"NativeEventEmitter",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(_e,"PanResponder",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(_e,"PixelRatio",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(_e,"Platform",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(_e,"Share",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(_e,"StyleSheet",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(_e,"UIManager",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(_e,"Vibration",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(_e,"ActivityIndicator",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(_e,"Button",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(_e,"CheckBox",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(_e,"Image",{enumerable:!0,get:function(){return F.default}}
6189),Object.defineProperty(_e,"ImageBackground",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(_e,"KeyboardAvoidingView",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(_e,"Modal",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(_e,"Picker",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(_e,"Pressable",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(_e,"ProgressBar",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(_e,"RefreshControl",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(_e,"SafeAreaView",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(_e,"ScrollView",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(_e,"SectionList",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(_e,"StatusBar",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(_e,"Switch",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(_e,"Text",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(_e,"TextInput",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(_e,"Touchable",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(_e,"TouchableHighlight",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(_e,"TouchableNativeFeedback",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(_e,"TouchableOpacity",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(_e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(_e,"View",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(_e,"VirtualizedList",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(_e,"YellowBox",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(_e,"LogBox",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(_e,"DeviceEventEmitter",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(_e,"useColorScheme",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(_e,"useLocaleContext",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(_e,"useWindowDimensions",{enumerable:!0,get:function(){return ge.default}});var t=e(r(d[0])),n=e(r(d[1])),u=e(r(d[2])),f=e(r(d[3])),o=e(r(d[4])),l=e(r(d[5])),c=e(r(d[6])),b=e(r(d[7])),p=e(r(d[8])),y=e(r(d[9])),P=e(r(d[10])),O=e(r(d[11])),j=e(r(d[12])),s=e(r(d[13])),h=e(r(d[14])),A=e(r(d[15])),v=e(r(d[16])),S=e(r(d[17])),B=e(r(d[18])),I=e(r(d[19])),k=e(r(d[20])),w=e(r(d[21])),x=e(r(d[22])),C=e(r(d[23])),L=e(r(d[24])),M=e(r(d[25])),T=e(r(d[26])),_=e(r(d[27])),E=e(r(d[28])),V=e(r(d[29])),N=e(r(d[30])),R=e(r(d[31])),D=e(r(d[32])),F=e(r(d[33])),H=e(r(d[34])),K=e(r(d[35])),W=e(r(d[36])),z=e(r(d[37])),U=e(r(d[38])),Y=e(r(d[39])),q=e(r(d[40])),G=e(r(d[41])),J=e(r(d[42])),Q=e(r(d[43])),X=e(r(d[44])),Z=e(r(d[45])),$=e(r(d[46])),ee=e(r(d[47])),te=e(r(d[48])),ne=e(r(d[49])),re=e(r(d[50])),ue=e(r(d[51])),fe=e(r(d[52])),ae=e(r(d[53])),ie=e(r(d[54])),oe=e(r(d[55])),le=e(r(d[56])),ce=e(r(d[57])),de=e(r(d[58])),be=e(r(d[59])),ge=e(r(d[60]))},608,[189,609,50,29,25,151,610,611,234,172,18,612,597,613,150,303,467,572,246,614,616,135,617,149,95,620,42,152,621,622,623,625,237,188,626,627,628,633,215,635,244,222,223,282,173,636,229,331,638,642,643,624,645,199,646,647,648,649,174,650,230]);
6190__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=t=>{throw new Error("findNodeHandle is not supported on web. Use the ref property on the component instead.")}},609,[]);
6191__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var e,n=r(d[0]);function t(){return new Promise((e,n)=>{e(!0)})}
6191var o=((e=n)&&e.__esModule?e:{default:e}).default&&'function'==typeof window.matchMedia?window.matchMedia('(prefers-reduced-motion: reduce)'):null;var u={},c={isScreenReaderEnabled:t,isReduceMotionEnabled:function(){return new Promise((e,n)=>{e(!o||o.matches)})},fetch:t,addEventListener:function(e,n){if('reduceMotionChanged'===e){if(!o)return;var t=e=>{n(e.matches)};s=t,null!=o&&(null!=o.addEventListener?o.addEventListener('change',s):o.addListener(s)),u[n]=t}var s;return{remove:()=>c.removeEventListener(e,n)}},setAccessibilityFocus:function(e){},announceForAccessibility:function(e){},removeEventListener:function(e,n){if('reduceMotionChanged'===e){var t=u[n];if(!t||!o)return;c=t,null!=o&&(null!=o.removeEventListener?o.removeEventListener('change',c):o.removeListener(c))}var c}},s=c},610,[39]);
6192__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=class{static alert(){}}},611,[]);
6193__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var t=e(r(d[0])),n=e(r(d[1])),u=e(r(d[2])),c=u.default&&!document.hasOwnProperty('hidden')&&document.hasOwnProperty('webkitHidden'),s=['change','memoryWarning'],l=c?'webkitvisibilitychange':'visibilitychange',o=c?'webkitVisibilityState':'visibilityState',b='background',f='active',v=null;class h{static get currentState(){if(!h.isAvailable)return f;switch(document[o]){case'hidden':case'prerender':case'unloaded':return b;default:return f}}static addEventListener(e,u){if(h.isAvailable&&((0,t.default)(-1!==s.indexOf(e),'Trying to subscribe to unknown event: "%s"',e),'change'===e))return v||(v=new n.default,document.addEventListener(l,()=>{v&&v.emit('change',h.currentState)},!1)),v.addListener(e,u)}}h.isAvailable=u.default&&!!document[o]},612,[24,138,39]);
6194__d(function(g,r,i,a,m,_e,d){"use strict";var e;Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return t}});class t{static isAvailable(){return void 0===e&&(e='function'==typeof document.queryCommandSupported&&document.queryCommandSupported('copy')),e}static getString(){return Promise.resolve('')}static setString(e){var t=!1,n=document.body;if(n){var o=document.createElement('span');o.textContent=e,o.style.opacity='0',o.style.position='absolute',o.style.whiteSpace='pre-wrap',o.style.userSelect='auto',n.appendChild(o);var c=window.getSelection();c.removeAllRanges();var u=document.createRange();u.selectNodeContents(o),c.addRange(u);try{document.execCommand('copy'),t=!0}catch(e){}c.removeAllRanges(),n.removeChild(o)}return t}}},613,[]);
6195__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},614,[615]);
6196__d(function(g,r,i,a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var t=e(r(d[0])),n=e(r(d[1]));function s(e,s){t.default.isTesting||n.default.configureNextLayoutAnimation(e,null!=s?s:function(){},function(){})}function u(e,t,n){return{duration:e,create:{type:t,property:n},update:{type:t},delete:{type:t,property:n}}}var o={easeInEaseOut:u(300,'easeInEaseOut','opacity'),linear:u(500,'linear','opacity'),spring:{duration:700,create:{type:'linear',property:'opacity'},update:{type:'spring',springDamping:.4},delete:{type:'linear',property:'opacity'}}},c={configureNext:s,create:u,Types:Object.freeze({spring:'spring',linear:'linear',easeInEaseOut:'easeInEaseOut',easeIn:'easeIn',easeOut:'easeOut',keyboard:'keyboard'}),Properties:Object.freeze({opacity:'opacity',scaleX:'scaleX',scaleY:'scaleY',scaleXY:'scaleXY'}),checkConfig(){console.error('LayoutAnimation.checkConfig(...) has been disabled.')},Presets:o,easeInEaseOut:s.bind(null,o.easeInEaseOut),linear:s.bind(null,o.linear),spring:s.bind(null,o.spring)}},615,[95,152]);
6197__d(function(g,r,i,a,m,_e,d){"use strict";
6197function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var t=e(r(d[0])),n=e(r(d[1])),l=n.default?window.location.href:'';var o=(e,t)=>{if(n.default){var l=new URL(e,window.location).toString();0===l.indexOf('tel:')?window.location=l:window.open(l,t,'noopener')}},s=new class{constructor(){this._eventCallbacks={}}_dispatchEvent(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];var o=this._eventCallbacks[e];null!=o&&Array.isArray(o)&&o.map(e=>{e(...n)})}addEventListener(e,t){var n=this;return n._eventCallbacks[e]||(n._eventCallbacks[e]=[t]),n._eventCallbacks[e].push(t),{remove(){var l=n._eventCallbacks[e].filter(e=>e.toString()!==t.toString());n._eventCallbacks[e]=l}}}removeEventListener(e,t){console.error("Linking.removeEventListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `Linking.addEventListener`.");var n=this._eventCallbacks[e].filter(e=>e.toString()!==t.toString());this._eventCallbacks[e]=n}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(l)}openURL(e,t){1===arguments.length&&(t='_blank');try{return o(e,t),this._dispatchEvent('onOpen',e),Promise.resolve()}catch(e){return Promise.reject(e)}}_validateURL(e){(0,t.default)('string'==typeof e,'Invalid URL: should be a string. Was: '+e),(0,t.default)(e,'Invalid URL: cannot be empty')}}},616,[24,39]);
6198__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},617,[618]);
6199__d(function(g,r,i,a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return T}});var o=e(r(d[0])),n=e(r(d[1])),t=n.default.currentCentroidXOfTouchesChangedAfter,u=n.default.currentCentroidYOfTouchesChangedAfter,s=n.default.previousCentroidXOfTouchesChangedAfter,c=n.default.previousCentroidYOfTouchesChangedAfter,l=n.default.currentCentroidX,p=n.default.currentCentroidY,v={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,o){e.numberActiveTouches=o.numberActiveTouches,e.moveX=t(o,e._accountsForMovesUpTo),e.moveY=u(o,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,l=s(o,n),p=t(o,n),v=c(o,n),h=u(o,n),S=e.dx+(p-l),R=e.dy+(h-v),T=o.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(S-e.dx)/T,e.vy=(R-e.dy)/T,e.dx=S,e.dy=R,e._accountsForMovesUpTo=o.mostRecentTimeStamp},create(e){var n={handle:null,shouldCancelClick:!1,timeout:null},t={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:o=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(o,t),onMoveShouldSetResponder:o=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(o,t),onStartShouldSetResponderCapture:o=>(1===o.nativeEvent.touches.length&&v._initializeGestureState(t),t.numberActiveTouches=o.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStart
6199ShouldSetPanResponderCapture(o,t)),onMoveShouldSetResponderCapture(o){var n=o.touchHistory;return t._accountsForMovesUpTo!==n.mostRecentTimeStamp&&(v._updateGestureStateOnMove(t,n),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(o,t))},onResponderGrant:u=>(n.handle||(n.handle=o.default.createInteractionHandle()),n.timeout&&S(n),n.shouldCancelClick=!0,t.x0=l(u.touchHistory),t.y0=p(u.touchHistory),t.dx=0,t.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(u,t),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(u,t)),onResponderReject(o){h(n,e.onPanResponderReject,o,t)},onResponderRelease(o){h(n,e.onPanResponderRelease,o,t),R(n),v._initializeGestureState(t)},onResponderStart(o){var n=o.touchHistory;t.numberActiveTouches=n.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(o,t)},onResponderMove(o){var n=o.touchHistory;t._accountsForMovesUpTo!==n.mostRecentTimeStamp&&(v._updateGestureStateOnMove(t,n),e.onPanResponderMove&&e.onPanResponderMove(o,t))},onResponderEnd(o){var u=o.touchHistory;t.numberActiveTouches=u.numberActiveTouches,h(n,e.onPanResponderEnd,o,t)},onResponderTerminate(o){h(n,e.onPanResponderTerminate,o,t),R(n),v._initializeGestureState(t)},onResponderTerminationRequest:o=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(o,t),onClickCapture:e=>{!0===n.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>n.handle}}};function h(e,n,t,u){e.handle&&(o.default.clearInteractionHandle(e.handle),e.handle=null),n&&n(t,u)}function S(e){clearTimeout(e.timeout)}function R(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}var T=v},618,[246,619]);
6200__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var n={centroidDimension:function(t,i,o,u){var c=t.touchBank,f=0,s=0,h=1===t.numberActiveTouches?t.touchBank[t.indexOfSingleActiveTouch]:null;if(null!==h)h.touchActive&&h.currentTimeStamp>i&&(f+=u&&o?h.currentPageX:u&&!o?h.currentPageY:!u&&o?h.previousPageX:h.previousPageY,s=1);else for(var v=0;v<c.length;v++){var l=c[v];if(null!=l&&l.touchActive&&l.currentTimeStamp>=i){f+=u&&o?l.currentPageX:u&&!o?l.currentPageY:!u&&o?l.previousPageX:l.previousPageY,s++}}return s>0?f/s:n.noCentroid},currentCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!1)},currentCentroidX:function(t){return n.centroidDimension(t,0,!0,!0)},currentCentroidY:function(t){return n.centroidDimension(t,0,!1,!0)},noCentroid:-1},t=n},619,[]);
6201__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e};var o=class{static share(e,t){return void 0===t&&(t={}),(0,s.default)('object'==typeof e&&null!==e,'Content to share must be a valid object'),(0,s.default)('string'==typeof e.url||'string'==typeof e.message,'At least one of URL and message is required'),(0,s.default)('object'==typeof t&&null!==t,'Options must be a valid object'),(0,s.default)(!e.title||'string'==typeof e.title,'Invalid title: title should be a string.'),void 0!==window.navigator.share?window.navigator.share({title:e.title,text:e.message,url:e.url}):Promise.reject(new Error('Share is not supported in this browser'))}static get sharedAction(){return'sharedAction'}static get dismissedAction(){return'dismissedAction'}}},620,[24]);
6202__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var t=t=>{'vibrate'in window.navigator&&window.navigator.vibrate(t)}
6202,n={cancel(){t(0)},vibrate(n){void 0===n&&(n=400),t(n)}}},621,[]);
6203__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return y}});var t=e(r(_d[0])),n=e(r(_d[1])),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),l=e(r(_d[3])),d=e(r(_d[4])),s=["animating","color","hidesWhenStopped","size","style"],u=e=>o.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),c=o.forwardRef((e,l)=>{var c=e.animating,y=void 0===c||c,p=e.color,v=void 0===p?'#1976D2':p,b=e.hidesWhenStopped,_=void 0===b||b,w=e.size,P=void 0===w?'small':w,j=e.style,k=(0,n.default)(e,s),O=o.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},u({stroke:v,opacity:.2}),u({stroke:v,strokeDasharray:80,strokeDashoffset:60}));return o.createElement(d.default,(0,t.default)({},k,{"aria-valuemax":1,"aria-valuemin":0,ref:l,role:"progressbar",style:[f.container,j]}),o.createElement(d.default,{children:O,style:['number'==typeof P?{height:P,width:P}:h[P],f.animation,!y&&f.animationPause,!y&&_&&f.hidesWhenStopped]}))});c.displayName='ActivityIndicator';var f=l.default.create({container:{alignItems:'center',justifyContent:'center'},hidesWhenStopped:{visibility:'hidden'},animation:{animationDuration:'0.75s',animationKeyframes:[{'0%':{transform:'rotate(0deg)'},'100%':{transform:'rotate(360deg)'}}],animationTimingFunction:'linear',animationIterationCount:'infinite'},animationPause:{animationPlayState:'paused'}}),h=l.default.create({small:{width:20,height:20},large:{width:36,height:36}}),y=c},622,[27,43,34,42,199]);
6204__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[0])),o=e(r(_d[1])),n=e(r(_d[2])),l=e(r(_d[3])),u=t.forwardRef((e,o)=>{var u=e.accessibilityLabel,c=e.color,s=e.disabled,f=e.onPress,b=e.testID,y=e.title;return t.createElement(n.default,{accessibilityLabel:u,accessibilityRole:"button",disabled:s,focusable:!s,onPress:f,ref:o,style:[d.button,c&&{backgroundColor:c},s&&d.buttonDisabled],testID:b},t.createElement(l.default,{style:[d.text,s&&d.textDisabled]},y))});u.displayName='Button';var d=o.default.create({button:{backgroundColor:'#2196F3',borderRadius:2},text:{color:'#fff',fontWeight:'500',padding:8,textAlign:'center',textTransform:'uppercase'},buttonDisabled:{backgroundColor:'#dfdfdf'},textDisabled:{color:'#a1a1a1'}}),c=u},623,[34,42,624,229]);
6205__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}});var t=e(r(_d[0])),n=e(r(_d[1])),s=r(_d[2]),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(s),l=e(r(_d[3])),u=e(r(_d[4])),c=e(r(_d[5])),d=e(r(_d[6])),f=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];function y(e,c){var y=e.activeOpacity,b=e.delayPressIn,p=e.delayPressOut,O=e.delayLongPress,v=e.disabled,_=e.focusable,j=e.onLongPress,L=e.onPress,h=e.onPressIn,k=e.onPressOut,C=e.rejectResponderTermination,E=e.style,R=(0,n.default)(e,f),S=(0,s.useRef)(null),D=(0,l.default)(c,S),I=(0,s.useState)('0s'),M=I[0],w=I[1],T=(0,s.use
6205State)(null),N=T[0],x=T[1],A=(0,s.useCallback)((e,t)=>{x(e),w(t?t/1e3+"s":'0s')},[x,w]),G=(0,s.useCallback)(e=>{A(null!=y?y:.2,e)},[y,A]),q=(0,s.useCallback)(e=>{A(null,e)},[A]),z=(0,s.useMemo)(()=>({cancelable:!C,disabled:v,delayLongPress:O,delayPressStart:b,delayPressEnd:p,onLongPress:j,onPress:L,onPressStart(e){var t=null!=e.dispatchConfig?'onResponderGrant'===e.dispatchConfig.registrationName:'keydown'===e.type;G(t?0:150),null!=h&&h(e)},onPressEnd(e){q(250),null!=k&&k(e)}}),[O,b,p,v,j,L,h,k,C,G,q]),B=(0,u.default)(S,z);return o.createElement(d.default,(0,t.default)({},R,B,{accessibilityDisabled:v,focusable:!v&&!1!==_,pointerEvents:v?'box-none':void 0,ref:D,style:[P.root,!v&&P.actionable,E,null!=N&&{opacity:N},{transitionDuration:M}]}))}var P=c.default.create({root:{transitionProperty:'opacity',transitionDuration:'0.15s',userSelect:'none'},actionable:{cursor:'pointer',touchAction:'manipulation'}}),b=o.memo(o.forwardRef(y));b.displayName='TouchableOpacity';var p=b},624,[27,43,34,204,220,42,199]);
6206__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return y}});var o=e(r(_d[0])),t=e(r(_d[1])),l=e(r(_d[2])),n=(function(e){if(e&&e.__esModule)return e;var o={};return e&&Object.keys(e).forEach(function(t){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}),o.default=e,o})(r(_d[3])),d=e(r(_d[4])),c=e(r(_d[5])),u=e(r(_d[6])),C=["aria-readonly","color","disabled","onChange","onValueChange","readOnly","style","value"],M=n.forwardRef((e,o)=>{var c=e['aria-readonly'],M=e.color,y=e.disabled,I=e.onChange,s=e.onValueChange,f=e.readOnly,v=e.style,h=e.value,k=(0,l.default)(e,C);var j=n.createElement(u.default,{style:[b.fakeControl,h&&b.fakeControlChecked,h&&M&&{backgroundColor:M,borderColor:M},y&&b.fakeControlDisabled,h&&y&&b.fakeControlCheckedAndDisabled]}),z=(0,d.default)('input',{checked:h,disabled:y,onChange:function(e){var o=e.nativeEvent.target.checked;e.nativeEvent.value=o,I&&I(e),s&&s(o)},readOnly:!0===f||!0===c||!0===k.accessibilityReadOnly,ref:o,style:[b.nativeControl,b.cursorInherit],type:'checkbox'});return n.createElement(u.default,(0,t.default)({},k,{"aria-disabled":y,"aria-readonly":c,style:[b.root,v,y&&b.cursorDefault]}),j,z)});M.displayName='CheckBox';var b=c.default.create({root:{cursor:'pointer',height:16,userSelect:'none',width:16},cursorDefault:{cursor:'default'},cursorInherit:{cursor:'inherit'},fakeControl:{alignItems:'center',backgroundColor:'#fff',borderColor:'#657786',borderRadius:2,borderStyle:'solid',borderWidth:2,height:'100%',justifyContent:'center',width:'100%'},fakeControlChecked:{backgroundColor:'#009688',backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:'no-repeat',borderColor:'#009688'},fakeControlDisabled:{borderColor:'#CCD6DD'},fakeControlCheckedAndDisabled:{backgroundColor:'#AAB8C2',borderColor:'#AAB8C2'},nativeControl:(0,o.default)((0,o.default)({},c.default.absoluteFillObject),{},{height:'100%',margin:0,appearance:'none',padding:0,width:'100%'})}),y=M},625,[19,27,43,34,189,42,199]);
6207__d(function(g,r,i,a,m,_e,_d){"use strict";
6207function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var t=e(r(_d[0])),n=e(r(_d[1])),l=r(_d[2]),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(l),f=e(r(_d[3])),d=e(r(_d[4])),c=e(r(_d[5])),o=["children","style","imageStyle","imageRef"],s={},y=(0,l.forwardRef)((e,l)=>{var y=e.children,h=e.style,b=void 0===h?s:h,_=e.imageStyle,v=e.imageRef,p=(0,n.default)(e,o),O=d.default.flatten(b),j=O.height,w=O.width;return u.createElement(c.default,{ref:l,style:b},u.createElement(f.default,(0,t.default)({},p,{ref:v,style:[{width:w,height:j,zIndex:-1},d.default.absoluteFill,_]})),y)});y.displayName='ImageBackground';var h=y},626,[27,43,34,188,42,199]);
6208__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var t=e(r(_d[0])),n=e(r(_d[1])),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),u=e(r(_d[3])),f=["behavior","contentContainerStyle","keyboardVerticalOffset"];class s extends o.Component{constructor(){super(...arguments),this.frame=null,this.onLayout=e=>{this.frame=e.nativeEvent.layout}}relativeKeyboardHeight(e){var t=this.frame;if(!t||!e)return 0;var n=e.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(t.y+t.height-n,0)}onKeyboardChange(e){}render(){var e=this.props,s=(e.behavior,e.contentContainerStyle,e.keyboardVerticalOffset,(0,n.default)(e,f));return o.createElement(u.default,(0,t.default)({onLayout:this.onLayout},s))}}var c=s},627,[27,43,34,199]);
6209__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return _}});var t=e(r(_d[0])),n=e(r(_d[1])),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),o=e(r(_d[3])),l=e(r(_d[4])),s=e(r(_d[5])),f=e(r(_d[6])),c=["animationType","children","onDismiss","onRequestClose","onShow","transparent","visible"],d=0,v=[],p={};function b(){if(0!==v.length){var e=v[v.length-1];v.forEach(t=>{t in p&&p[t](t===e)})}}function h(e){e in p&&(p[e](!1),delete p[e]);var t=v.indexOf(e);-1!==t&&(v.splice(t,1),b())}function y(e,t){h(e),v.push(e),p[e]=t,b()}var _=u.forwardRef((e,v)=>{var p=e.animationType,b=e.children,_=e.onDismiss,E=e.onRequestClose,O=e.onShow,j=e.transparent,w=e.visible,C=void 0===w||w,D=(0,n.default)(e,c),M=u.useMemo(()=>d++,[]),P=u.useState(!1),R=P[0],S=P[1],k=u.useCallback(()=>{h(M),_&&_()},[M,_]),q=u.useCallback(()=>{y(M,S),O&&O()},[M,O]);return u.useEffect(()=>()=>h(M),[M]),u.createElement(o.default,null,u.createElement(l.default,{animationType:p,onDismiss:k,onShow:q,visible:C},u.createElement(f.default,{active:R},u.createElement(s.default,(0,t.default)({},D,{active:R,onRequestClose:E,ref:v,transparent:j}),b))))})},628,[27,43,34,629,630,631,632]);
6210__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return d}});var e,t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=r(_d[1]),u=r(_d[2]),c=(e=u)&&e.__esModule?e:{default:e};var d=function(e){var u=e.children,d=t.useRef(null);if(c.default&&!d.current){var o=document.createElement('div');o&&document.body&&(document.body.appendChild(o),d.current=o)}return t.useEffect(()=>{if(c.default)return()=>{document.body&&d.current&&(document.body.removeChild(d.current),d.current=null)}},[]),d.current&&c.default?(0,n.createPortal)(u,d.current):null}},629,[34,36,39]);
6211__d(function(g,r,i,a,m,_e,_d){"use strict";
6211function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return y}});var n=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n})(r(_d[0])),t=e(r(_d[1])),o=e(r(_d[2]));function u(e,n){return'slide'===e?n?s:f:'fade'===e?n?d:l:n?c.container:c.hidden}var c=t.default.create({container:{position:'fixed',top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:"250ms",animationTimingFunction:'cubic-bezier(0.215, 0.61, 0.355, 1)'},animatedOut:{pointerEvents:'none',animationDuration:"250ms",animationTimingFunction:'cubic-bezier(0.47, 0, 0.745, 0.715)'},fadeIn:{opacity:1,animationKeyframes:{'0%':{opacity:0},'100%':{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{'0%':{opacity:1},'100%':{opacity:0}}},slideIn:{transform:'translateY(0%)',animationKeyframes:{'0%':{transform:'translateY(100%)'},'100%':{transform:'translateY(0%)'}}},slideOut:{transform:'translateY(100%)',animationKeyframes:{'0%':{transform:'translateY(0%)'},'100%':{transform:'translateY(100%)'}}},hidden:{opacity:0}}),s=[c.container,c.animatedIn,c.slideIn],f=[c.container,c.animatedOut,c.slideOut],d=[c.container,c.animatedIn,c.fadeIn],l=[c.container,c.animatedOut,c.fadeOut],y=function(e){var t=e.animationType,s=e.children,f=e.onDismiss,d=e.onShow,l=e.visible,y=n.useState(!1),p=y[0],b=y[1],O=n.useRef(!1),v=n.useRef(!1),h=t&&'none'!==t,I=n.useCallback(e=>{e&&e.currentTarget!==e.target||(l?d&&d():b(!1))},[d,l]);return n.useEffect(()=>{v.current&&!p&&f&&f(),v.current=p},[p,f]),n.useEffect(()=>{l&&b(!0),l===O.current||h||I(),O.current=l},[h,l,I]),p||l?(0,o.default)('div',{style:p?u(t,l):c.hidden,onAnimationEnd:I,children:s}):null}},630,[34,42,189]);
6212__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}});var t=e(r(_d[0])),n=e(r(_d[1])),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),u=e(r(_d[3])),l=e(r(_d[4])),d=e(r(_d[5])),c=["active","children","onRequestClose","transparent"],f=o.forwardRef((e,l)=>{var f=e.active,p=e.children,v=e.onRequestClose,b=e.transparent,y=(0,n.default)(e,c);o.useEffect(()=>{if(d.default){var e=e=>{f&&'Escape'===e.key&&(e.stopPropagation(),v&&v())};return document.addEventListener('keyup',e,!1),()=>document.removeEventListener('keyup',e,!1)}},[f,v]);var O=o.useMemo(()=>[s.modal,b?s.modalTransparent:s.modalOpaque],[b]);return o.createElement(u.default,(0,t.default)({},y,{"aria-modal":!0,ref:l,role:f?'dialog':null,style:O}),o.createElement(u.default,{style:s.container},p))}),s=l.default.create({modal:{position:'fixed',top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:'transparent'},modalOpaque:{backgroundColor:'white'},container:{top:0,flex:1}}),p=f},631,[27,43,34,199,42,39]);
6213__d(function(g,r,_i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return v}});var t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=e(r(_d[1])),u=e(r(_d[2])),c=e(r(_d[3])),o=e(r(_d[4])),l=e(r(_d[5])),f=()=>(0,u.default)('div',{role:'none',tabIndex:0,style:E.focusBracket});function s(e){if(!l.default)return!1;try{e.focus()}catch(e){}return document.activeElement===e}function d(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(s(n)||d(n))return!0}return!1}function i(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];
6213if(s(n)||i(n))return!0}return!1}var v=e=>{var u=e.active,c=e.children,s=t.useRef(),v=t.useRef({trapFocusInProgress:!1,lastFocusedElement:null});return t.useEffect(()=>{if(l.default){var e=()=>{if(null!=s.current&&!v.current.trapFocusInProgress&&u){try{if(v.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!s.current.contains(document.activeElement)){var e=d(s.current);v.current.lastFocusedElement===document.activeElement&&(e=i(s.current)),!e&&null!=s.current&&document.activeElement&&o.default.focus(s.current)}}finally{v.current.trapFocusInProgress=!1}v.current.lastFocusedElement=document.activeElement}};return e(),document.addEventListener('focus',e,!0),()=>document.removeEventListener('focus',e,!0)}},[u]),t.useEffect(function(){if(l.default){var e=document.activeElement;return function(){e&&document.contains(e)&&o.default.focus(e)}}},[]),t.createElement(t.Fragment,null,t.createElement(f,null),t.createElement(n.default,{ref:s},c),t.createElement(f,null))},E=c.default.create({focusBracket:{outlineStyle:'none'}})},632,[34,199,189,42,152,39]);
6214__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return b}});var t=e(r(_d[0])),n=e(r(_d[1])),l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),u=e(r(_d[3])),d=e(r(_d[4])),f=e(r(_d[5])),o=e(r(_d[6])),c=e(r(_d[7])),s=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],y=l.forwardRef((e,o)=>{var c=e.children,y=e.enabled,b=e.onValueChange,p=e.selectedValue,h=e.style,_=e.testID,O=(e.itemStyle,e.mode,e.prompt,(0,n.default)(e,s)),j=l.useRef(null);var I=(0,t.default)({children:c,disabled:!1===y||void 0,onChange:function(e){var t=e.target,n=t.selectedIndex,l=t.value;b&&b(l,n)},style:[v.initial,h],testID:_,value:p},O),D=(0,f.default)(I),P=(0,d.default)(j,D,o);return I.ref=P,(0,u.default)('select',I)});y.Item=o.default;var v=c.default.create({initial:{fontFamily:'System',fontSize:'inherit',margin:0}}),b=y},633,[19,43,34,189,204,206,634,42]);
6215__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e};function u(e){var t=e.color,u=e.label,n=e.testID,o=e.value,c={color:t};return(0,l.default)('option',{children:u,style:c,testID:n,value:o})}},634,[189]);
6216__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var t=e(r(_d[0])),n=e(r(_d[1])),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),l=e(r(_d[3])),u=e(r(_d[4])),d=["color","indeterminate","progress","trackColor","style"],s=o.forwardRef((e,l)=>{var s=e.color,f=void 0===s?'#1976D2':s,v=e.indeterminate,p=void 0!==v&&v,y=e.progress,b=void 0===y?0:y,_=e.trackColor,h=void 0===_?'transparent':_,j=e.style,k=(0,n.default)(e,d),C=100*b,O=p?'25%':C+"%";return o.createElement(u.default,(0,t.default)({},k,{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":p?null:C,ref:l,role:"progressbar",style:[c.track,j,{backgroundColor:h}]}),o.createElement(u.default,{style:[{backgroundColor:f,width:O},c.progress,p&&c.animation]}))});s.displayName='ProgressBar';var c=l.default.create({track:{forcedColorAdjust:'none',height:5,overflow:'hidden',userSelect:'none',zIndex:0},progress:{forcedColorAdjust:'none',height:'100%',zIndex:-1},animation:{animationDuration:'1s',animationKeyframes:[{'0%':{transform:'translateX(-100%)'},'100%':{transform:'translateX(400%)'}}],animationTimingFunction:'linear',animationIterationCount:'infinite'}}),f=s},635,[27,43,34,42,199]);
6217__d(function(g,r,i,a,m,_e,_d){"use strict";
6217function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return j}});var t=e(r(_d[0])),l=e(r(_d[1])),o=e(r(_d[2])),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(l){var o=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,o.get?o:{enumerable:!0,get:function(){return e[l]}})}),t.default=e,t})(r(_d[3])),u=e(r(_d[4])),c=e(r(_d[5])),d=e(r(_d[6])),f=e(r(_d[7])),s=["aria-label","accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"],b={},h='0px 1px 3px rgba(0,0,0,0.5)',p='#D5D5D5',v='#BDBDBD',y=n.forwardRef((e,t)=>{var y=e['aria-label'],j=e.accessibilityLabel,k=e.activeThumbColor,x=e.activeTrackColor,D=e.disabled,w=void 0!==D&&D,A=e.onValueChange,O=e.style,_=void 0===O?b:O,F=e.thumbColor,S=e.trackColor,E=e.value,B=void 0!==E&&E,P=(0,o.default)(e,s),R=n.useRef(null);function T(e){var t='focus'===e.nativeEvent.type?"0px 1px 3px rgba(0,0,0,0.5), 0 0 0 10px rgba(0,0,0,0.1)":h;null!=R.current&&(R.current.style.boxShadow=t)}var I=d.default.flatten(_),M=I.height,L=I.width,V=M||'20px',N=(0,c.default)(V,2),Z=L>N?L:N,q=(0,c.default)(V,.5),z=!0===B?null!=S&&'object'==typeof S?S.true:null!=x?x:"#A3D3CF":null!=S&&'object'==typeof S?S.false:null!=S?S:"#939393",G=B?null!=k?k:"#009688":null!=F?F:"#FAFAFA",H=V,J=H,K=[C.root,_,w&&C.cursorDefault,{height:V,width:Z}],Q=!0===B?'string'==typeof x&&null!=x||'object'==typeof S&&null!=S&&S.true?z:p:'string'==typeof S&&null!=S||'object'==typeof S&&null!=S&&S.false?z:p,U=!0===B?null==k?v:G:null==F?v:G,W=[C.track,{backgroundColor:w?Q:z,borderRadius:q}],X=[C.thumb,B&&C.thumbActive,{backgroundColor:w?U:G,height:H,marginStart:B?(0,c.default)(J,-1):0,width:J}],Y=(0,u.default)('input',{'aria-label':y||j,checked:B,disabled:w,onBlur:T,onChange:function(e){null!=A&&A(e.nativeEvent.target.checked)},onFocus:T,ref:t,style:[C.nativeControl,C.cursorInherit],type:'checkbox',role:'switch'});return n.createElement(f.default,(0,l.default)({},P,{style:K}),n.createElement(f.default,{style:W}),n.createElement(f.default,{ref:R,style:X}),Y)});y.displayName='Switch';var C=d.default.create({root:{cursor:'pointer',userSelect:'none'},cursorDefault:{cursor:'default'},cursorInherit:{cursor:'inherit'},track:(0,t.default)((0,t.default)({forcedColorAdjust:'none'},d.default.absoluteFillObject),{},{height:'70%',margin:'auto',transitionDuration:'0.1s',width:'100%'}),thumb:{forcedColorAdjust:'none',alignSelf:'flex-start',borderRadius:'100%',boxShadow:h,start:'0%',transform:'translateZ(0)',transitionDuration:'0.1s'},thumbActive:{insetInlineStart:'100%'},nativeControl:(0,t.default)((0,t.default)({},d.default.absoluteFillObject),{},{height:'100%',margin:0,appearance:'none',padding:0,width:'100%'})}),j=y},636,[19,27,43,34,189,637,42,199]);
6218__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var t=/^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/,n=(n,o)=>{var u;return'string'==typeof n?""+parseFloat(n)*o+n.match(t)[1]:(u=n,!isNaN(parseFloat(u))&&isFinite(u)?n*o:void 0)}},637,[]);
6219__d(function(g,r,i,a,m,_e,d){'use strict';function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return F}});var t=e(r(d[0])),o=e(r(d[1])),s=e(r(d[2])),E=e(r(d[3])),n=e(r(d[4])),l=e(r(d[5])),h=e(r(d[6])),u=e(r(d[7])),R=e(r(d[8])),c=r(d[9]),_=e=>{var t=e.touches,o=e.changedTouches,s=t&&t.length>0,E=o&&o.length>0;return!s&&E?o[0]:s?t[0]:e},S='NOT_RESPONDER',T='RESPONDER_INACTIVE_PRESS_IN',P='RESPONDER_INACTIVE_PRESS_OUT',D='RESPONDER_ACTIVE_PRESS_IN',N='RESPONDER_ACTIVE_PRESS_OUT',b='RESPONDER_ACTIVE_LONG_PRESS_IN',O='RESPONDER_ACTIVE_LONG_PRESS_OUT',A='ERROR',p={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},f=(0,o.default)((0,o.default)({},p),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),v=(0,o.default)((0,o.default)({},p),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),L=(0,o.default)((0,o.default)({},p),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}
6219),I='DELAY',y='RESPONDER_GRANT',C='RESPONDER_RELEASE',G='RESPONDER_TERMINATED',H='ENTER_PRESS_RECT',V='LEAVE_PRESS_RECT',M='LONG_PRESS_DETECTED',U={NOT_RESPONDER:{DELAY:A,RESPONDER_GRANT:T,RESPONDER_RELEASE:A,RESPONDER_TERMINATED:A,ENTER_PRESS_RECT:A,LEAVE_PRESS_RECT:A,LONG_PRESS_DETECTED:A},RESPONDER_INACTIVE_PRESS_IN:{DELAY:D,RESPONDER_GRANT:A,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:T,LEAVE_PRESS_RECT:P,LONG_PRESS_DETECTED:A},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:N,RESPONDER_GRANT:A,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:T,LEAVE_PRESS_RECT:P,LONG_PRESS_DETECTED:A},RESPONDER_ACTIVE_PRESS_IN:{DELAY:A,RESPONDER_GRANT:A,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:D,LEAVE_PRESS_RECT:N,LONG_PRESS_DETECTED:b},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:A,RESPONDER_GRANT:A,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:D,LEAVE_PRESS_RECT:N,LONG_PRESS_DETECTED:A},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:A,RESPONDER_GRANT:A,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:b,LEAVE_PRESS_RECT:O,LONG_PRESS_DETECTED:b},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:A,RESPONDER_GRANT:A,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:b,LEAVE_PRESS_RECT:O,LONG_PRESS_DETECTED:A},error:{DELAY:S,RESPONDER_GRANT:T,RESPONDER_RELEASE:S,RESPONDER_TERMINATED:S,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:S,LONG_PRESS_DETECTED:S}},Y={componentDidMount:function(){(0,c.warnOnce)('TouchableMixin','TouchableMixin is deprecated. Please use Pressable.');var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&(this._touchableBlurListener=e=>{this._isTouchableKeyboardActive&&(this.state.touchable.touchState&&this.state.touchable.touchState!==S&&this.touchableHandleResponderTerminate({nativeEvent:e}),this._isTouchableKeyboardActive=!1)},e.addEventListener('blur',this._touchableBlurListener))},componentWillUnmount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&e.removeEventListener('blur',this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e){var t=e.currentTarget;e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=S,this.state.touchable.responderID=t,this._receiveSignal(y,e);var o=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(o=isNaN(o)?130:o)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),o):this._handleDelay(e);var s=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;s=isNaN(s)?370:s,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),s+o)},touchableHandleResponderRelease:function(e){this.pressInLocation=null,this._receiveSignal(C,e)},touchableHandleResponderTerminate:function(e){this.pressInLocation=null,this._receiveSignal(G,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,o=this.state.touchable.dimensionsOnActivate,s=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},E=s.left,n=s.top,l=s.right,h=s.bottom,u=this.touchableGetHitSlop?this.touchableGetHitSlop():null;u&&(E+=u.left||0,n+=u.top||0,l+=u.right||0,h+=u.bottom||0);var R=_(e.nativeEvent),c=R&&R.pageX,S=R&&R.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(c,S,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(c>t.left-E&&S>t.top-n&&c<t.left+o.width+l&&S<t.top+o.height+h){var P=this.state.touchable.touchState;this._receiveSignal(H,e),this.state.touchable.touchState===T&&P!==T&&this._cancelLongPressDelayTimeout()}else this._cancelLongPressDelayTimeout(),this._receiveSignal(V,e)}},touchableHandleFocus:function(e){this.props.onFocus&&this.props.onFocus(e)},touchableHandleBlur:function(e){this.props.onBlur&&this.props.onBlur(e)},_remeasureMetricsOnActivation:function(){var e=this.state.touchable.responderID;null!=e&&u.default.measure(e,this._handleQueryLayout)},_handleQueryLayout:function(e,t,o,s,n,h){(e||t||o||s||n||h)&&(this.state.touchable.positionOnActivate&&l.default.release(this.state.touchable.positionOnActivate),this.state.touchable.dimensionsOnActivate&&E.default.release(this.state.touchable.dimensionsOnActivate),this.state.touchable.positionOnActivate=l.default.getPooled(n,h),this.state.touchable.dimensionsOnActivate=E.default.getPooled(o,s))},_handleDelay:function(e){this.touchableDelayTimeout=null,this._receiveSignal(I,e)},_handleLongDelay:function(e){this.longPressDelayTimeout=null;var t=this.state.touchable.touchState;t!==D&&t!==b?console.error('Attempted to transition from state `'+t+'` to `'+b+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal(M,e)},_receiveSignal:function(e,t){var o=this.state.touchable.responderID,s=this.state.touchable.touchState,E=U[s]&&U[s][e];if(o||e!==C){if(!E)throw new Error('Unrecognized signal `'+e+'` or state `'+s+'` for Touchable responder `'+o+'`');
6219if(E===A)throw new Error('Touchable cannot transition from `'+s+'` to `'+e+'` for responder `'+o+'`');s!==E&&(this._performSideEffectsForTransition(s,E,e,t),this.state.touchable.touchState=E)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(e){return e===D||e===b},_savePressInLocation:function(e){var t=_(e.nativeEvent),o=t&&t.pageX,s=t&&t.pageY,E=t&&t.locationX,n=t&&t.locationY;this.pressInLocation={pageX:o,pageY:s,locationX:E,locationY:n}},_getDistanceBetweenPoints:function(e,t,o,s){var E=e-o,n=t-s;return Math.sqrt(E*E+n*n)},_performSideEffectsForTransition:function(e,t,o,s){var E=this._isHighlight(e),n=this._isHighlight(t);(o===G||o===C)&&this._cancelLongPressDelayTimeout();var l=e===S&&t===T,h=!f[e]&&f[t];if((l||h)&&this._remeasureMetricsOnActivation(),v[e]&&o===M&&this.touchableHandleLongPress&&this.touchableHandleLongPress(s),n&&!E?this._startHighlight(s):!n&&E&&this._endHighlight(s),v[e]&&o===C){var u=!!this.props.onLongPress,R=L[e]&&(!u||!this.touchableLongPressCancelsPress());(!L[e]||R)&&this.touchableHandlePress&&(n||E||(this._startHighlight(s),this._endHighlight(s)),this.touchableHandlePress(s))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_playTouchSound:function(){u.default.playTouchSound()},_startHighlight:function(e){this._savePressInLocation(e),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(e)},_endHighlight:function(e){this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(()=>{this.touchableHandleActivePressOut(e)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(e))},touchableHandleKeyEvent:function(e){var t=e.type,o=e.key;'Enter'!==o&&' '!==o||('keydown'===t?this._isTouchableKeyboardActive||this.state.touchable.touchState&&this.state.touchable.touchState!==S||(this.touchableHandleResponderGrant(e),this._isTouchableKeyboardActive=!0):'keyup'===t&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==S&&(this.touchableHandleResponderRelease(e),this._isTouchableKeyboardActive=!1),e.stopPropagation(),'Enter'===o&&'link'===s.default.propsToAriaRole(this.props)||e.preventDefault())},withoutDefaultFocusAndBlur:{}},B=(Y.touchableHandleFocus,Y.touchableHandleBlur,(0,t.default)(Y,["touchableHandleFocus","touchableHandleBlur"]));Y.withoutDefaultFocusAndBlur=B;var w={Mixin:Y,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,s=e.hitSlop;if(!w.TOUCH_TARGET_DEBUG)return null;var E={};for(var l in s=s||{top:0,bottom:0,left:0,right:0})E[l]=-s[l];var u=(0,n.default)(t);if('number'!=typeof u)return null;var c='#'+('00000000'+u.toString(16)).substr(-8);return h.default.createElement(R.default,{pointerEvents:"none",style:(0,o.default)({position:'absolute',borderColor:c.slice(0,-2)+'55',borderWidth:1,borderStyle:'dashed',backgroundColor:c.slice(0,-2)+'0F'},E)})}},F=w},638,[43,19,190,639,51,641,34,152,199,87]);
6220__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),o=(e=t)&&e.__esModule?e:{default:e},n=o.default.twoArgumentPooler;function u(e,t){this.width=e,this.height=t}u.prototype.destructor=function(){this.width=null,this.height=null},u.getPooledFromElement=function(e){return u.getPooled(e.offsetWidth,e.offsetHeight)},o.default.addPoolingTo(u,n);var l=u},639,[640]);
6221__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}}),r(d[0]);var o=function(o,n){var t=this;if(t.instancePool.length){var l=t.instancePool.pop();return t.call(l,o,n),l}return new t(o,n)},n=function(o){var n=this;o.destructor(),n.instancePool.length<n.poolSize&&n.instancePool.push(o)},t=o,l={addPoolingTo:function(o,l){var u=o;return u.instancePool=[],u.getPooled=l||t,u.poolSize||(u.poolSize=10),u.release=n,u},twoArgumentPooler:o}},640,[24]);
6222__d(function(g,r,i,a,m,_e,d){"use strict";
6222Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var t,e=r(d[0]),o=(t=e)&&t.__esModule?t:{default:t},u=o.default.twoArgumentPooler;function l(t,e){this.left=t,this.top=e}l.prototype.destructor=function(){this.left=null,this.top=null},o.default.addPoolingTo(l,u);var n=l},641,[640]);
6223__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var n=e(r(_d[0])),l=e(r(_d[1])),s=r(_d[2]),t=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(l){var s=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(n,l,s.get?s:{enumerable:!0,get:function(){return e[l]}})}),n.default=e,n})(s),o=e(r(_d[3])),u=e(r(_d[4])),d=e(r(_d[5])),c=e(r(_d[6])),y=["activeOpacity","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onLongPress","onPress","onPressIn","onPressOut","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","underlayColor"];function f(e,n){return{child:{opacity:null!=e?e:.85},underlay:{backgroundColor:void 0===n?'black':n}}}function P(e){return null!=e.onPress||null!=e.onPressIn||null!=e.onPressOut||null!=e.onLongPress}function b(e,d){var b=e.activeOpacity,O=e.children,h=e.delayPressIn,v=e.delayPressOut,_=e.delayLongPress,j=e.disabled,L=e.focusable,C=e.onHideUnderlay,E=e.onLongPress,S=e.onPress,k=e.onPressIn,I=e.onPressOut,w=e.onShowUnderlay,M=e.rejectResponderTermination,R=e.style,U=e.testOnly_pressed,H=e.underlayColor,T=(0,l.default)(e,y),D=(0,s.useRef)(null),x=(0,o.default)(d,D),A=(0,s.useState)(!0===U?f(b,H):null),N=A[0],q=A[1],z=(0,s.useCallback)(()=>{P(e)&&(q(f(b,H)),null!=w&&w())},[b,w,e,H]),B=(0,s.useCallback)(()=>{!0!==U&&P(e)&&(q(null),null!=C&&C())},[C,e,U]),F=(0,s.useMemo)(()=>({cancelable:!M,disabled:j,delayLongPress:_,delayPressStart:h,delayPressEnd:v,onLongPress:E,onPress:S,onPressStart(e){z(),null!=k&&k(e)},onPressEnd(e){B(),null!=I&&I(e)}}),[_,h,v,j,E,S,k,I,M,z,B]),G=(0,u.default)(D,F),J=t.Children.only(O);return t.createElement(c.default,(0,n.default)({},T,G,{accessibilityDisabled:j,focusable:!j&&!1!==L,pointerEvents:j?'box-none':void 0,ref:x,style:[p.root,R,!j&&p.actionable,N&&N.underlay]}),t.cloneElement(J,{style:[J.props.style,N&&N.child]}))}var p=d.default.create({root:{userSelect:'none'},actionable:{cursor:'pointer',touchAction:'manipulation'}}),O=t.memo(t.forwardRef(b));O.displayName='TouchableHighlight';var h=O},642,[27,43,34,204,220,42,199]);
6224__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},643,[644]);
6225__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var t=e(r(d[0])),u=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),f=["style"];var c={},o=function(e){var o=e.style,s=(0,u.default)(e,f);return l.default.createElement(n.default,(0,t.default)({},s,{style:[c,o]}))}},644,[27,43,199,34]);
6226__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return y}});var s=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var s={};return e&&Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),s.default=e,s})(s),n=e(r(_d[1])),l=e(r(_d[2])),o=e(r(_d[3])),c=r(_d[4]),u={accessibilityDisabled:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,children:!0,disabled:!0,focusable:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0},d=e=>(0,n.default)(e,u);function b(e,n){(0,c.warnOnce)('TouchableWithoutFeedback','TouchableWithoutFeedback is deprecated. Please use Pressable.');var u=e.delayPressIn,b=e.delayPressOut,f=e.delayLongPress,y=e.disabled,P=e.focusable,h=e.onLongPress,p=e.onPress,v=e.onPressIn,O=e.onPressOut,_=e.rejectResponderTermination,j=(0,s.useRef)(null),L=(0,s.useMemo)(()=>({cancelable:!_,disabled:y,delayLongPress:f,delayPressStart:u,delayPressEnd:b,onLongPress:h,onPress:p,onPressStart:v,onPressEnd:O}),[y,u,b,f,h,p,v,O,_]),D=(0,o.default)(j,L),R=t.Children.only(e.children),k=[R.props.children],E=d(e);E.accessibilityDisabled=y,E.focusable=!y&&!1!==P,E.ref=(0,l.default)(n,j,R.ref);var F=Object.assign(E,D);return t.cloneElement(R,F,...k)}var f=t.memo(t.forwardRef(b));f.displayName='TouchableWithoutFeedback';var y=f},645,[34,201,204,220,87]);
6227__d(function(g,r,i,a,m,_e,d){"use strict";
6227Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},646,[240]);
6228__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var t=e(r(d[0])),n=e(r(d[1]));function u(e){return t.default.createElement(n.default,e)}u.ignoreWarnings=()=>{};var f=u},647,[34,644]);
6229__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var n={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}}},648,[]);
6230__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},649,[137]);
6231__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t=r(d[0]).useLocaleContext},650,[195]);
6232__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png",width:48,height:48}},651,[]);
6233__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]);var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SuspenseFallback=function({route:t}){return null};t(r(d[1])),r(d[2])},652,[175,34,510]);
6234__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=r(d[0]),o=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,c)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),c=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(n){if(n&&n.__esModule)return n;var c={};if(null!=n)for(var s=t(n),u=0;u<s.length;u++)"default"!==s[u]&&o(c,n,s[u]);return i(c,n),c});Object.defineProperty(e,"__esModule",{value:!0}),e.Try=void 0;const s=c(r(d[1])),u=c(r(d[2]));r(d[3]);class l extends s.Component{state={error:void 0};static getDerivedStateFromError(t){return u.hideAsync(),{error:t}}retry=()=>new Promise(t=>{this.setState({error:void 0},()=>{t()})});render(){const{error:t}=this.state,{catch:o,children:i}=this.props;return t?n.jsx(o,{error:t,retry:this.retry}):i}}e.Try=l},653,[175,34,654,656]);
6235__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},654,[655]);
6236__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hide=c,e.hideAsync=async function(){c()},e.preventAutoHideAsync=async function(){if(!n)return;return n.preventAutoHideAsync()},e._internal_preventAutoHideAsync=async function(){if(!n||!n.internalPreventAutoHideAsync)return!1;if(!t){if(ErrorUtils?.getGlobalHandler){const n=ErrorUtils.getGlobalHandler();ErrorUtils.setGlobalHandler((t,l)=>{c(),n(t,l)})}t=!0}return n.internalPreventAutoHideAsync()},e._internal_maybeHideAsync=async function(){if(!n||!n.internalMaybeHideAsync)return!1;return n.internalMaybeHideAsync()};const n=(0,r(d[0]).requireOptionalNativeModule)('ExpoSplashScreen');let t=!1;function c(){n&&n.hide()}},655,[347]);
6237__d(function(g,r,i,a,m,e,d){"use strict";
6237Object.defineProperty(e,"__esModule",{value:!0}),e.NetworkError=e.ReactServerError=e.MetroServerError=void 0;class t extends Error{code='METRO_SERVER_ERROR';constructor(t,o){super(t.message),this.url=o,this.name='MetroServerError';for(const o in t)this[o]=t[o]}}e.MetroServerError=t;class o extends Error{code='REACT_SERVER_ERROR';constructor(t,o,s,E){super(t),this.url=o,this.statusCode=s,this.headers=E,this.name='ReactServerError'}}e.ReactServerError=o;class s extends Error{code='NETWORK_ERROR';constructor(t,o){super(t),this.url=o,this.name='NetworkError'}}e.NetworkError=s},656,[]);
6238__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Protected=void 0,e.isProtectedReactElement=function(n){return Boolean((0,t.isValidElement)(n)&&n.type===o.Group&&n.props&&'guard'in n.props)};const t=r(d[0]),o=r(d[1]);e.Protected=o.Group},657,[34,508]);
6239__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Screen=p,e.isScreen=function(t,o){if((0,n.isValidElement)(t)&&t&&t.type===p){if('object'==typeof t.props&&t.props&&'name'in t.props&&!t.props.name)throw new Error(`<Screen /> component in \`default export\` at \`app${o}/_layout\` must have a \`name\` prop when used as a child of a Layout Route.`);return!0}return!1};const t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]);function p({name:n,options:p}){if(n)throw new Error("The name prop on the Screen component may only be used when it is inside a Layout route");const c=(0,t.useRoute)(),f=(0,o.useNavigation)(),l=f.isFocused(),y=(0,u.isRoutePreloadedInStack)(f.getState(),c);return(0,s.useSafeLayoutEffect)(()=>{p&&Object.keys(p).length&&(!y||y&&l)&&f.setOptions(p)},[l,y,f,p]),null}}
6239,658,[366,34,659,503,666]);
6240__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useNavigation=function(s){let u=(0,t.useNavigation)(),l=(0,t.useStateForPath)();if(void 0===s)return u;const c=u.getId();if(''===c||"/expo-router/build/views/Navigator"===c)return u;'object'==typeof s&&(s=(0,o.resolveHref)(s));if('/'===s)return u.getParent("/expo-router/build/views/Navigator")??u.getParent("");if(s?.startsWith('../')){const t=[];for(;l;){const n=l.routes[0];l=n.state,l&&t.push(n.name)}const o=s;s.endsWith('/')&&(s=s.slice(0,-1));const u=s.split('/');if(!u.every(t=>'..'===t))throw new Error(`Invalid parent path "${o}". Only "../" segments are allowed when using relative paths.`);const c=u.length,v=t.length-1-c;if(v<0)throw new Error(`Invalid parent path "${o}". Cannot go up ${c} levels from the current route.`);(s=t[v])&&!(0,n.getRootStackRouteNames)().includes(s)&&(s=`/${s}`)}return u=u.getParent(s),u};const t=r(d[0]),n=r(d[1]),o=r(d[2])},659,[366,660,665]);
6241__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.shouldAppendSitemap=u,e.shouldAppendNotFound=s,e.getRootStackRouteNames=function(){const t=[n.INTERNAL_SLOT_NAME];s()&&t.push(n.NOT_FOUND_ROUTE_NAME);u()&&t.push(n.SITEMAP_ROUTE_NAME);return t};const o=t(r(d[0])),n=r(d[1]);function u(){const t=o.default.expoConfig?.extra?.router;return!1!==t?.sitemap}function s(){const t=o.default.expoConfig?.extra?.router;return!1!==t?.notFound}},660,[661,664]);
6242__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"AppOwnership",{enumerable:!0,get:function(){return l.AppOwnership}}),Object.defineProperty(_e,"ExecutionEnvironment",{enumerable:!0,get:function(){return l.ExecutionEnvironment}}),Object.defineProperty(_e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return l.UserInterfaceIdiom}});var n=e(r(d[0])),t=r(d[1]);r(d[2]);var u=e(r(d[3])),l=r(d[4]),o=e(r(d[5]));o.default||console.warn("No native ExponentConstants module found, are you sure the expo-constants's module is linked properly?");const s=(0,t.requireOptionalNativeModule)('ExpoUpdates');let f=null;if(s){let e;s.manifest?e=s.manifest:s.manifestString&&(e=JSON.parse(s.manifestString)),e&&Object.keys(e).length>0&&(f=e)}let c=null;if(u.default.EXDevLauncher){let e;u.default.EXDevLauncher.manifestString&&(e=JSON.parse(u.default.EXDevLauncher.manifestString)),e&&Object.keys(e).length>0&&(c=e)}let p=null;if(o.default&&o.default.manifest){const e=o.default.manifest;p='string'==typeof e?JSON.parse(e):e}let b=f??c??p;const E=o.default||{},{appOwnership:O}=E,x=(0,n.default)(E,["name","appOwnership"]),v=Object.assign({},x,{appOwnership:O??null});function _(e){return!h(e)}function h(e){return'metadata'in e}function S(e=!1){if(!b){const e=null===b?'null':'undefined';if(x.executionEnvironment,l.ExecutionEnvironment.Bare,x.executionEnvironment===l.ExecutionEnvironment.StoreClient||x.executionEnvironment===l.ExecutionEnvironment.Standalone)throw new t.CodedError('ERR_CONSTANTS_MANIFEST_UNAVAILABLE',`Constants.manifest is ${e}, must be an object.`)}return b}Object.defineProperties(v,{__unsafeNoWarnManifest:{get(){const e=S(!0);return e&&_(e)?e:null},enumerable:!1},__unsafeNoWarnManifest2:{get(){const e=S(!0);return e&&h(e)?e:null},enumerable:!1},manifest:{get(){const e=S();return e&&_(e)?e:null},enumerable:!0},manifest2:{get(){const e=S();return e&&h(e)?e:null},enumerable:!0},expoConfig:{get(){const e=S(!0);return e?s&&s.isEmbeddedLaunch?p:h(e)?e.extra?.expoClient??null:_(e)?e:null:null},enumerable:!0},expoGoConfig:{get(){const e=S(!0);return e?h(e)?e.extra?.expoGo??null:_(e)?e:null:null},enumerable:!0},easConfig:{get(){const e=S(!0);return e?h(e)?e.extra?.eas??null:_(e)?e:null:null},enumerable:!0},__rawManifest_TEST:{get:()=>b,set(e){b=e},enumerable:!1}});var N=v},661,[129,99,95,151,662,663]);
6243__d(function(g,r,i,a,m,e,d){"use strict";var t,n,o;
6243Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AppOwnership",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ExecutionEnvironment",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return o}}),(function(t){t.Expo="expo"})(t||(t={})),(function(t){t.Bare="bare",t.Standalone="standalone",t.StoreClient="storeClient"})(n||(n={})),(function(t){t.Handset="handset",t.Tablet="tablet",t.Desktop="desktop",t.TV="tv",t.Unsupported="unsupported"})(o||(o={}))},662,[]);
6244__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});var n=r(d[0]);const t=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const n=navigator.userAgent.toLowerCase();if(n.includes('edge'))return'Edge';if(n.includes('edg'))return'Chromium Edge';if(n.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(n.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(n.includes('trident'))return'IE';if(n.includes('firefox'))return'Firefox';if(n.includes('safari'))return'Safari'}}var s={get appOwnership(){return null},get executionEnvironment(){return n.ExecutionEnvironment.Bare},get sessionId(){return t},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"blackbunny\",\"slug\":\"blackbunny\",\"version\":\"1.0.0\",\"orientation\":\"portrait\",\"icon\":\"./assets/images/icon.png\",\"scheme\":\"blackbunny\",\"userInterfaceStyle\":\"automatic\",\"web\":{\"output\":\"single\",\"backgroundColor\":\"#000000\",\"themeColor\":\"#000000\",\"display\":\"browser\",\"favicon\":\"./assets/images/favicon.png\",\"description\":\"BlackBunny Social App\",\"shortName\":\"blackbunny\",\"orientation\":\"portrait\",\"name\":\"blackbunny\"},\"experiments\":{},\"description\":\"BlackBunny Social App\",\"sdkVersion\":\"54.0.0\",\"platforms\":[\"ios\",\"android\",\"web\"],\"extra\":{\"router\":{}}}"},get manifest2(){return null},get experienceUrl(){return'undefined'!=typeof location?location.origin:''},get debugMode(){return!1},getWebViewUserAgentAsync:async()=>'undefined'!=typeof navigator?navigator.userAgent:null}},663,[662]);
6245__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SITEMAP_ROUTE_NAME=e.NOT_FOUND_ROUTE_NAME=e.INTERNAL_SLOT_NAME=void 0,e.INTERNAL_SLOT_NAME='__root',e.NOT_FOUND_ROUTE_NAME='+not-found',e.SITEMAP_ROUTE_NAME='_sitemap'},664,[]);
6246__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveHref=void 0,e.resolveHrefStringWithSegments=function(t,{segments:n=[],params:s={}}={},{relativeToDirectory:o}={}){if(t.startsWith('.')){let c=n?.map(t=>{if(!t.startsWith('['))return t;if(t.startsWith('[...')){t=t.slice(4,-1);const n=s[t];return Array.isArray(n)?n.join('/'):n?.split(',')?.join('/')??''}return t=t.slice(1,-1),s[t]}).filter(Boolean).join('/')??'/';o&&(c=`${c}/`);const f=new URL(t,`http://hostname/${c}`);t=`${f.pathname}${f.search}`}return t};function t(t,s){for(const[o,c=""]of Object.entries(s)){const f=`[${o}]`,l=`[...${o}]`;if(t.includes(f))t=t.replace(f,n(c));else{if(!t.includes(l))continue;t=t.replace(l,n(c))}delete s[o]}return{pathname:t,params:s}}function n(t){return Array.isArray(t)?t.map(t=>n(t)).join('/'):encodeURIComponent(t.toString())}function s(t){return Object.entries(t).filter(([,t])=>null!=t).map(([t,n])=>`${t}=${encodeURIComponent(n.toString())}`).join('&')}e.resolveHref=n=>{if('string'==typeof n)return(0,e.resolveHref)({pathname:n});const o=n.pathname??'';if(!n?.params)return o;const{pathname:c,params:f}=t(o,Object.assign({},n.params)),l=s(f);return c+(l?`?${l}`:'')}},665,[]);
6247__d(function(g,r,i,a,m,e,d){"use strict";
6247Object.defineProperty(e,"__esModule",{value:!0}),e.isRoutePreloadedInStack=function(t,o){if(!t||'stack'!==t.type)return!1;return t.preloadedRoutes.some(t=>t.key===o.key)}},666,[]);
6248__d(function(g,r,_i,a,_m,_e,d){"use strict";var e=r(d[0]),t=r(d[1]);const n=["id","initialRouteName","children","layout","screenListeners","screenOptions","screenLayout","UNSTABLE_router"];var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),c=0;c<n.length;c++)"default"!==n[c]&&o(t,e,n[c]);return s(t,e),t});
6248Object.defineProperty(_e,"__esModule",{value:!0}),_e.createNativeStackNavigator=function(e){return(0,u.createNavigatorFactory)(v)(e)};const u=r(d[2]),l=r(d[3]),p=c(r(d[4])),f=r(d[5]);function v(i){let{id:o,initialRouteName:s,children:c,layout:v,screenListeners:y,screenOptions:b,screenLayout:m,UNSTABLE_router:O}=i,_=t(i,n);const{state:j,describe:h,descriptors:N,navigation:S,NavigationContent:L}=(0,u.useNavigationBuilder)(u.StackRouter,{id:o,initialRouteName:s,children:c,layout:v,screenListeners:y,screenOptions:b,screenLayout:m,UNSTABLE_router:O});p.useEffect(()=>S?.addListener?.('tabPress',e=>{const t=S.isFocused();requestAnimationFrame(()=>{j.index>0&&t&&!e.defaultPrevented&&S.dispatch(Object.assign({},u.StackActions.popToTop(),{target:j.key}))})}),[S,j.index,j.key]);const{openPreviewKey:P,setOpenPreviewKey:k}=(0,f.useLinkPreviewContext)(),[w,x]=p.useState();p.useEffect(()=>{w&&j.routes.some(e=>e.key===w)&&x(void 0)},[j,w]);const R=p.useMemo(()=>{if(P){const e=(...e)=>{const{target:t,type:n,data:i}=e[0];return t===P&&i&&'closing'in i&&!i.closing&&('transitionStart'===n?x(P):'transitionEnd'===n&&k(void 0)),S.emit(...e)};return Object.assign({},S,{emit:e})}return S},[S,P,k]),{computedState:E,computedDescriptors:M}=p.useMemo(()=>{if(w){const e=j.preloadedRoutes.find(e=>e.key===w);if(e){return{computedState:Object.assign({},j,{preloadedRoutes:j.preloadedRoutes.filter(e=>e.key!==w),routes:[...j.routes,e],index:j.index+1}),computedDescriptors:w in N?N:Object.assign({},N,{[w]:h(e,!0)})}}}return{computedState:j,computedDescriptors:N}},[j,w,h,N]);return e.jsx(L,{children:e.jsx(l.NativeStackView,Object.assign({},_,{state:E,navigation:R,descriptors:M,describe:h}))})}},667,[175,129,366,668,34,672]);
6249__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createNativeStackNavigator",{enumerable:!0,get:function(){return t.createNativeStackNavigator}}),Object.defineProperty(e,"NativeStackView",{enumerable:!0,get:function(){return n.NativeStackView}}),Object.defineProperty(e,"useAnimatedHeaderHeight",{enumerable:!0,get:function(){return c.useAnimatedHeaderHeight}});var t=r(d[0]),n=r(d[1]),c=r(d[2])},668,[669,670,671]);
6250__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["id","initialRouteName","UNSTABLE_routeNamesChangeBehavior","children","layout","screenListeners","screenOptions","screenLayout","UNSTABLE_router"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.createNativeStackNavigator=function(e){return(0,s.createNavigatorFactory)(l)(e)};var t,n=r(_d[0]),o=(t=n)&&t.__esModule?t:{default:t},s=r(_d[1]),c=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),u=r(_d[3]),d=r(_d[4]);function l(t){let{id:n,initialRouteName:l,UNSTABLE_routeNamesChangeBehavior:N,children:v,layout:f,screenListeners:p,screenOptions:y,screenLayout:_,UNSTABLE_router:L}=t,h=(0,o.default)(t,e);const{state:b,describe:B,descriptors:O,navigation:S,NavigationContent:j}=(0,s.useNavigationBuilder)(s.StackRouter,{id:n,initialRouteName:l,UNSTABLE_routeNamesChangeBehavior:N,children:v,layout:f,screenListeners:p,screenOptions:y,screenLayout:_,UNSTABLE_router:L}),A=c.useContext(s.NavigationMetaContext);return c.useEffect(()=>{if(!A||!('type'in A)||'native-tabs'!==A.type)return S?.addListener?.('tabPress',e=>{const t=S.isFocused();requestAnimationFrame(()=>{b.index>0&&t&&!e.defaultPrevented&&S.dispatch(Object.assign({},s.StackActions.popToTop(),{target:b.key}))})})},[A,S,b.index,b.key]),(0,d.jsx)(j,{children:(0,d.jsx)(u.NativeStackView,Object.assign({},h,{state:b,navigation:S,descriptors:O,describe:B}))})}},669,[129,366,34,670,175]);
6251__d(function(g,r,_i,a,m,_e,_d){"use strict";const e=["header","headerShown","headerBackIcon","headerBackImageSource","headerLeft","headerTransparent","headerBackTitle","presentation","contentStyle"],t=["label"],n=["tintColor","label"];function o(e){return e&&e.__esModule?e:{default:e}}
6251Object.defineProperty(_e,'__esModule',{value:!0}),_e.NativeStackView=function({state:o,descriptors:c,describe:k}){const j=s.useContext(i.HeaderBackContext),{buildHref:x}=(0,l.useLinkBuilder)(),B=o.preloadedRoutes.reduce((e,t)=>(e[t.key]=e[t.key]||k(t,!0),e),{});return(0,p.jsx)(i.SafeAreaProviderCompat,{children:o.routes.concat(o.preloadedRoutes).map((l,s)=>{const k=o.index===s,C=o.routes[s-1]?.key,H=o.routes[s+1]?.key,S=C?c[C]:void 0,T=H?c[H]:void 0,{options:O,navigation:_,render:w}=c[l.key]??B[l.key],I=S?{title:(0,i.getHeaderTitle)(S.options,S.route.name),href:x(S.route.name,S.route.params)}:j,P=null!=I,{header:M,headerShown:L,headerBackIcon:V,headerBackImageSource:A,headerLeft:E,headerTransparent:R,headerBackTitle:z,presentation:D,contentStyle:F}=O,N=(0,d.default)(O,e),q=T?.options.presentation,G=void 0!==B[l.key]&&void 0===c[l.key];return(0,p.jsx)(i.Screen,{focused:k,route:l,navigation:_,headerShown:L,headerTransparent:R,header:void 0!==M?M({back:I,options:O,route:l,navigation:_}):(0,p.jsx)(i.Header,Object.assign({},N,{back:I,title:(0,i.getHeaderTitle)(O,l.name),headerLeft:'function'==typeof E?e=>{let{label:n}=e,o=(0,d.default)(e,t);return E(Object.assign({},o,{label:z??n}))}:void 0===E&&P?e=>{let{tintColor:t,label:o}=e,l=(0,d.default)(e,n);return(0,p.jsx)(i.HeaderBackButton,Object.assign({},l,{label:z??o,tintColor:t,backImage:void 0!==V||void 0!==A?()=>(0,p.jsx)(u.default,{source:V?.source??A,resizeMode:"contain",tintColor:t,style:y.backImage}):void 0,onPress:_.goBack}))}:E,headerTransparent:R})),style:[h.default.absoluteFill,{display:(k||null!=q&&b.includes(q))&&!G?'flex':'none'},null!=D&&b.includes(D)?{backgroundColor:'transparent'}:null],children:(0,p.jsx)(i.HeaderBackContext.Provider,{value:I,children:(0,p.jsx)(v,{children:(0,p.jsx)(f.default,{style:[y.contentContainer,F],children:w()})})})},l.key)})})};var d=o(r(_d[0])),i=r(_d[1]),l=r(_d[2]),s=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[3])),c=o(r(_d[4])),u=o(r(_d[5])),h=o(r(_d[6])),f=o(r(_d[7])),k=r(_d[8]),p=r(_d[9]);const b=['transparentModal','containedTransparentModal'];const v=({children:e})=>{const t=(0,i.useHeaderHeight)(),[n]=s.useState(()=>new c.default.Value(t));return s.useEffect(()=>{n.setValue(t)},[n,t]),(0,p.jsx)(k.AnimatedHeaderHeightContext.Provider,{value:n,children:e})},y=h.default.create({contentContainer:{flex:1},backImage:{height:24,width:24,margin:3}})},670,[129,517,366,34,234,188,42,199,671,175]);
6252__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"AnimatedHeaderHeightContext",{enumerable:!0,get:function(){return t}}),_e.useAnimatedHeaderHeight=function(){const n=e.useContext(t);if(void 0===n)throw new Error("Couldn't find the header height. Are you inside a screen in a native stack navigator?");return n};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]));const t=e.createContext(void 0)},671,[34]);
6253__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useLinkPreviewContext=void 0,e.LinkPreviewContextProvider=function({children:s}){const[u,v]=(0,n.useState)(void 0),c=void 0!==u;return t.jsx(o.Provider,{value:{isStackAnimationDisabled:c,openPreviewKey:u,setOpenPreviewKey:v},children:s})};const n=r(d[1]),o=(0,n.createContext)(void 0);e.useLinkPreviewContext=()=>{const t=(0,n.use)(o);if(null==t)throw new Error('useLinkPreviewContext must be used within a LinkPreviewContextProvider. This is likely a bug in Expo Router.');return t}},672,[175,34]);
6254__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.appendInternalExpoRouterParams=function(t,n){let s={},o={};t&&(s=Object.assign({},t),'params'in t&&'object'==typeof t.params&&t.params&&(o=t.params));o=Object.assign({},o,n),s=Object.assign({},s,n),Object.keys(o).length>0&&(s.params=o);if(0===Object.keys(s).length&&void 0===t)return;return s},e.getInternalExpoRouterParams=function(n){const s={},o=n||{},p='params'in o&&'object'==typeof o.params&&o.params?o.params:{};for(const n of t)n in o?s[n]=o[n]:n in p&&(s[n]=p[n]);return s},e.removeInternalExpoRouterParams=function(n){if(!n)return;const s='params'in n&&'object'==typeof n.params&&n.params?Object.fromEntries(Object.entries(n.params).filter(([n])=>!t.includes(n))):{},o=Object.fromEntries(Object.entries(n).filter(([n])=>!t.includes(n)&&'params'!==n));if(Object.keys(s).length>0)return Object.assign({},o,{params:s});return o};const t=['__internal_expo_router_no_animation','__internal__expo_router_is_preview_navigation']},673,[]);
6255__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
6255Object.defineProperty(e,"__esModule",{value:!0}),e.Tabs=void 0;const u=t(r(d[0]));e.Tabs=u.default;const n=r(d[1]);u.default.Screen=n.Screen,e.default=u.default},674,[675,658]);
6256__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),n=r(d[1]);const o=["href"];var s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const l=r(d[2]),u=(s(r(d[3])),r(d[4])),c=r(d[5]),f=r(d[6]),b=r(d[7]),h=r(d[8]),p=(0,l.createBottomTabNavigator)().Navigator,B=(0,c.withLayoutContext)(p,s=>s.map(s=>{if('function'!=typeof s.options&&void 0!==s.options?.href){const l=s.options,{href:c}=l,b=n(l,o);if(b.tabBarButton)throw new Error('Cannot use `href` and `tabBarButton` together.');return Object.assign({},s,{options:Object.assign({},b,{tabBarItemStyle:null==c?{display:'none'}:b.tabBarItemStyle,tabBarButton:n=>{if(null==c)return null;const o='web'===u.Platform.OS?n.children:t.jsx(u.Pressable,{children:n.children});return t.jsx(f.Link,Object.assign({},n,{style:[{display:'flex'},n.style],href:c,asChild:'web'!==u.Platform.OS,children:o}))}})})}return s})),j=Object.assign(n=>t.jsx(B,Object.assign({},n,{UNSTABLE_router:b.tabRouterOverride})),{Screen:B.Screen,Protected:h.Protected});e.default=j},675,[175,129,511,34,608,495,676,743,657]);
6257__d(function(g,r,i,a,m,e,d){"use strict";var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.Redirect=e.Link=void 0;const t=r(d[1]),c=r(d[2]),o=r(d[3]);e.Link=Object.assign(function(c){return n.jsx(t.ExpoLink,Object.assign({},c))},{resolveHref:o.resolveHref,Menu:c.LinkMenu,Trigger:c.LinkTrigger,Preview:c.LinkPreview,MenuAction:c.LinkMenuAction});var u=r(d[4]);Object.defineProperty(e,"Redirect",{enumerable:!0,get:function(){return u.Redirect}})},676,[175,677,736,665,741]);
6258__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=r(d[0]),i=this&&this.__createBinding||(Object.create?function(t,n,i,u){void 0===u&&(u=i);var o=Object.getOwnPropertyDescriptor(n,i);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,u,o)}:function(t,n,i,u){void 0===u&&(u=i),t[u]=n[i]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(n){if(n&&n.__esModule)return n;var o={};if(null!=n)for(var l=t(n),c=0;c<l.length;c++)"default"!==l[c]&&i(o,n,l[c]);return u(o,n),o}),l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ExpoLink=function(t){(0,h.useIsPreview)();let i=t.children;if(c.default.Children.count(t.children)>1){const n=c.default.Children.toArray(t.children).filter(t=>!(0,c.isValidElement)(t)||t.type!==s.LinkPreview&&t.type!==s.LinkMenu);i=1===n.length?n[0]:t.children}return n.jsx(f.BaseExpoRouterLink,Object.assign({},t,{children:i}))};l(r(d[1]));const c=o(r(d[2])),f=r(d[3]),s=(r(d[4]),r(d[5])),h=r(d[6]);r(d[7])},677,[175,661,34,678,734,736,502,702]);
6259__d(function(g,r,_i,a,_m,_e,d){"use strict";var e=r(d[0]),t=r(d[1]);const n=["href","replace","push","dismissTo","relativeToDirectory","asChild","rel","target","download","withAnchor","dangerouslySingular","prefetch"];var o,i=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},o(e)}
6259,function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=o(e),l=0;l<n.length;l++)"default"!==n[l]&&i(t,e,n[l]);return s(t,e),t}),u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.BaseExpoRouterLink=function(o){let{href:i,replace:s,push:l,dismissTo:u,relativeToDirectory:w,asChild:y,rel:b,target:m,download:O,withAnchor:j,dangerouslySingular:C,prefetch:T}=o,D=t(o,n);const M=(0,p.useInteropClassName)(D),S=(0,p.useHrefAttrs)({asChild:y,rel:b,target:m,download:O}),x=(0,c.useMemo)(()=>{if(null==i)throw new Error('Link: href is required');return(0,h.resolveHref)(i)},[i]);let A;l&&(A='PUSH');s&&(A='REPLACE');u&&(A='POP_TO');const E=(0,_.default)({href:x,event:A,relativeToDirectory:w,withAnchor:j,dangerouslySingular:C}),k=e=>{'onPress'in D&&D.onPress?.(e),E.onPress(e)},L=y?P.Slot:f.Text;if(y&&c.default.Children.count(D.children)>1)throw new Error('Link: When using `asChild`, you must pass a single child element that will emit the `onPress` event.');const H=e.jsx(L,Object.assign({},E,S,D,{style:M},f.Platform.select({web:{onClick:k},default:{onPress:k}})));return T?e.jsxs(e.Fragment,{children:[e.jsx(v.Prefetch,{href:i}),H]}):H};const c=l(r(d[2])),f=r(d[3]),h=r(d[4]),p=r(d[5]),_=u(r(d[6])),v=r(d[7]),P=r(d[8])},678,[175,129,34,608,665,679,680,729,731]);
6260__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useHrefAttrs=void 0,e.useInteropClassName=function(l){if('web'!==s.Platform.OS)return l.style;return(0,t.useMemo)(()=>{if(null==l.className)return l.style;const t={$$css:!0,__routerLinkClassName:l.className};return Array.isArray(l.style)?[...l.style,t]:[l.style,t]},[l.style,l.className])};const t=r(d[0]),s=r(d[1]);e.useHrefAttrs=s.Platform.select({web:function({asChild:s,rel:l,target:n,download:u}){return(0,t.useMemo)(()=>{const t={rel:l,target:n,download:u};return s?t:{hrefAttrs:t}},[s,l,n,u])},default:function(){return{}}})},679,[34,608]);
6261__d(function(g,r,i,a,m,_e,d){"use strict";var e=r(d[0]);const t=["href"];
6261Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(n){let{href:v}=n,h=e(n,t);let p=(0,f.stripGroupSegmentsFromPath)(v)||'/';(0,s.shouldLinkExternally)(p)||(p=(0,u.appendBaseUrl)(p));return{href:p,role:'link',onPress:e=>{if(c(e)){if((0,l.emitDomLinkEvent)(v,h))return;(0,o.linkTo)(v,h)}}}},_e.shouldHandleMouseEvent=c;const n=r(d[1]),l=r(d[2]),u=r(d[3]),o=r(d[4]),f=r(d[5]),s=r(d[6]);function c(e){return'web'!==n.Platform.OS?!e?.defaultPrevented:!(!e||(t=e,t?.defaultPrevented||!('button'in t)||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||null!=t.button&&0!==t.button||![void 0,null,'','self'].includes(t.currentTarget.target)))&&(e.preventDefault(),!0);var t}},680,[129,608,681,683,684,497,702]);
6262__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.emitDomSetParams=function(o={}){return n(t.ROUTER_SET_PARAMS_TYPE,{params:o})},e.emitDomDismiss=function(o){return n(t.ROUTER_DISMISS_TYPE,{count:o})},e.emitDomGoBack=function(){return n(t.ROUTER_BACK_TYPE)},e.emitDomDismissAll=function(){return n(t.ROUTER_DISMISS_ALL_TYPE)},e.emitDomLinkEvent=function(o,u){return n(t.ROUTER_LINK_TYPE,{href:o,options:u})};const t=r(d[0]);function n(t,n={}){return'undefined'!=typeof $$EXPO_INITIAL_PROPS&&'undefined'!=typeof ReactNativeWebView&&(window.ReactNativeWebView.postMessage(JSON.stringify({type:t,data:n})),!0)}},681,[682]);
6263__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ROUTER_SET_PARAMS_TYPE=e.ROUTER_BACK_TYPE=e.ROUTER_DISMISS_TYPE=e.ROUTER_DISMISS_ALL_TYPE=e.ROUTER_LINK_TYPE=void 0,e.ROUTER_LINK_TYPE='$$router_link',e.ROUTER_DISMISS_ALL_TYPE='$$router_dismissAll',e.ROUTER_DISMISS_TYPE='$$router_dismiss',e.ROUTER_BACK_TYPE='$$router_goBack',e.ROUTER_SET_PARAMS_TYPE='$$router_setParams'},682,[]);
6264__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]);const n=["preserveDynamicRoutes","preserveGroups","shouldEncodeURISegment"],i=["#"];var o,s=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var s=Object.getOwnPropertyDescriptor(n,i);s&&!("get"in s?!n.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,s)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),c=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},o(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=o(t),c=0;c<i.length;c++)"default"!==i[c]&&s(n,t,i[c]);return u(n,t),n});Object.defineProperty(e,"__esModule",{value:!0}),e.getParamName=void 0,e.validatePathConfig=function(i){let o=t(i,n);(0,l.validatePathConfig)(o)},e.fixCurrentParams=function(t,n,i){const o=Object.fromEntries(Object.entries(n.params).flatMap(([t,n])=>'screen'===t||'params'===t?[]:[[t,i?.[t]?i[t](n):Array.isArray(n)?n.map(String):String(n)]]));return Object.assign(t,o),o},e.appendQueryAndHash=function(n,o){let{'#':s}=o,u=t(o,i);const c=f.stringify(u,{sort:!1});c&&(n+=`?${c}`);s&&(n+=`#${s}`);return n},e.appendBaseUrl=function(t,n=""){if(n)return`/${n.replace(/^\/+/,'').replace(/\/$/,'')}${t}`;return t},e.getPathWithConventionsCollapsed=function({pattern:t,route:n,params:i,preserveGroups:o,preserveDynamicRoutes:s,shouldEncodeURISegment:u=!0,initialRouteName:c}){const l=t.split('/');return l.map((t,f)=>{const h=(0,e.getParamName)(t);if(t.startsWith('*'))return s?'not-found'===h?'+not-found':`[...${h}]`:i[h]?Array.isArray(i[h])?i[h].join('/'):i[h]:n.name.startsWith('[')&&n.name.endsWith(']')||'*not-found'===t?'':n.name;if(t.startsWith(':')){if(s)return`[${h}]`;const n=i[h];if(void 0===n&&t.endsWith('?'))return;return(u?m(n):n)??'undefined'}return o||null==(0,p.matchGroupName)(t)?u?m(t,{preserveBrackets:!0}):t:l.length-1===f&&c?'index'===(v=c)||null!=(0,p.matchGroupName)(v)||null!=(0,p.matchDynamicName)(v)?'':u?m(c,{preserveBrackets:!0}):c:'';var v}).map(t=>t??'').join('/')},e.isDynamicPart=function(t){return t.startsWith(':')||t.startsWith('*')};const l=r(d[1]),f=c(r(d[2])),p=r(d[3]);function m(t,{preserveBrackets:n=!1}={}){return t=String(t).replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]/g,t=>encodeURIComponent(t)),n&&(t=t.replace(/%5B/g,'[').replace(/%5D/g,']')),t}e.getParamName=t=>t.replace(/^[:*]/,'').replace(/\?$/,'')},683,[129,366,419,497]);
6265__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var s=Object.getOwnPropertyDescriptor(n,o);s&&!("get"in s?!n.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,s)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(i){if(i&&i.__esModule)return i;var s={};if(null!=i)for(var u=t(i),c=0;c<u.length;c++)"default"!==u[c]&&n(s,i,u[c]);return o(s,i),s});
6265Object.defineProperty(e,"__esModule",{value:!0}),e.routingQueue=void 0,e.navigate=function(t,n){return y((0,m.resolveHref)(t),Object.assign({},n,{event:'NAVIGATE'}))},e.reload=function(){throw new Error('The reload method is not implemented in the client-side router yet.')},e.prefetch=function(t,n){return y((0,m.resolveHref)(t),Object.assign({},n,{event:'PRELOAD'}))},e.push=function(t,n){return y((0,m.resolveHref)(t),Object.assign({},n,{event:'PUSH'}))},e.dismiss=function(t=1){if((0,l.emitDomDismiss)(t))return;e.routingQueue.add({type:'POP',payload:{count:t}})},e.dismissTo=function(t,n){return y((0,m.resolveHref)(t),Object.assign({},n,{event:'POP_TO'}))},e.replace=function(t,n){return y((0,m.resolveHref)(t),Object.assign({},n,{event:'REPLACE'}))},e.dismissAll=function(){if((0,l.emitDomDismissAll)())return;e.routingQueue.add({type:'POP_TO_TOP'})},e.goBack=function(){if((0,l.emitDomGoBack)())return;b(),e.routingQueue.add({type:'GO_BACK'})},e.canGoBack=function(){if(s.IS_DOM)throw new Error('canGoBack imperative method is not supported. Pass the property to the DOM component instead.');if(!f.store.navigationRef.isReady())return!1;return f.store.navigationRef?.current?.canGoBack()??!1},e.canDismiss=function(){if(s.IS_DOM)throw new Error('canDismiss imperative method is not supported. Pass the property to the DOM component instead.');let t=f.store.state;for(;t;){if('stack'===t.type&&t.routes.length>1)return!0;if(void 0===t.index)return!1;t=t.routes?.[t.index]?.state}return!1},e.setParams=function(t={}){if((0,l.emitDomSetParams)(t))return;return b(),(f.store.navigationRef?.current?.setParams)(t)},e.linkTo=y,e.getPayloadFromStateRoute=P,e.findDivergentState=w;const s=r(d[0]),u=i(r(d[1])),c=r(d[2]),f=r(d[3]),l=r(d[4]),p=r(d[5]),m=r(d[6]),h=r(d[7]),v=r(d[8]),_=r(d[9]);function b(){if(!f.store.navigationRef.isReady())throw new Error('Attempted to navigate before mounting the Root Layout component. Ensure the Root Layout component is rendering a Slot, or other navigator on the first render.')}function y(t,n={}){let o=t='string'==typeof t?t:(0,m.resolveHref)(t);if((0,l.emitDomLinkEvent)(o,n))return;if((0,_.shouldLinkExternally)(o))return o.startsWith('//')&&'web'!==c.Platform.OS&&(o=`https:${o}`),void u.openURL(o);b();const i=f.store.navigationRef.current;if(null==i)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");if(!f.store.linking)throw new Error('Attempted to link to route when no routes are present');if('..'===o||'../'===o)return void i.goBack();const s=i.getRootState();if(o=(0,m.resolveHrefStringWithSegments)(o,f.store.getRouteInfo(),n),o=(0,p.applyRedirects)(o,f.store.redirects),!o)return;const h=f.store.linking.getStateFromPath(o,f.store.linking.config);h&&0!==h.routes.length?e.routingQueue.add(O(h,s,n.event,n.withAnchor,n.dangerouslySingular,!!n.__internal__PreviewKey)):console.error('Could not generate a valid navigation state for the given path: '+o)}function O(t,n,o="NAVIGATE",i,s,u){const{actionStateRoute:c,navigationState:f}=w(t,n,'PRELOAD'===o),l=P(c||{});if('PUSH'===o&&'stack'!==f.type?o='NAVIGATE':('expo-tab'===f.type||'REPLACE'===o&&'drawer'===f.type)&&(o='JUMP_TO'),i){l.params.initial;let t=l.params;for(;t;)t.initial=!i,t=t.params}const p=u?{__internal__expo_router_is_preview_navigation:!0,__internal_expo_router_no_animation:!0}:{},m=(0,v.appendInternalExpoRouterParams)(l.params,p);return{type:o,target:f.key,payload:{name:l.screen,params:m,singular:s}}}function P(t){const n={params:{}};let o=n,i=o.params,s=t;for(;s;)Object.assign(i,Object.assign({},o.params,s.params)),o.screen=s.name,o.params=Object.assign({},i),delete o.params.screen,o=o.params,i=o,s=s.state?.routes[s.state?.routes.length-1];return n}function w(t,n,o=!1){let i,s=t,u=n;const c=[];for(;s&&u;){i=s.routes[s.routes.length-1];const t=(()=>'tab'===u.type&&o&&u.routes.find(t=>t.name===i?.name)||u.routes[u.index??0])(),n=i.state,f=t.state,l=(0,h.matchDynamicName)(i.name);if(i.name!==t.name||!n||!f||l&&i.params?.[l.name]!==t.params?.[l.name]){'tab'===u.type&&o&&c.push(t);break}c.push(t),s=n,u=f}return{actionState:s,navigationState:u,actionStateRoute:i,navigationRoutes:c}}e.routingQueue={queue:[],subscribers:new Set,subscribe:t=>(e.routingQueue.subscribers.add(t),()=>{e.routingQueue.subscribers.delete(t)}),snapshot:()=>e.routingQueue.queue,add(t){e.routingQueue.queue.push(t);
6265for(const t of e.routingQueue.subscribers)t()},run(t){const n=e.routingQueue.queue;let o;for(e.routingQueue.queue=[];o=n.shift();)t.current&&t.current.dispatch(o)}}},684,[685,689,608,696,681,701,665,497,673,702]);
6266__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})},685,[686]);
6267__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"IS_DOM",{enumerable:!0,get:function(){return n}});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});const n='undefined'!=typeof $$EXPO_INITIAL_PROPS},686,[687]);
6268__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useDOMImperativeHandle=function(s,_,l){const n=void 0===window.ReactNativeWebView&&void 0===window.$$EXPO_INITIAL_PROPS,c=(0,o.useCallback)(()=>({}),l??[]);(0,o.useImperativeHandle)(s,n?_:c,l),(0,o.useEffect)(()=>(n||(globalThis._domRefProxy=_(),window.ReactNativeWebView.postMessage(JSON.stringify({type:t.REGISTER_DOM_IMPERATIVE_HANDLE_PROPS,data:Object.keys(globalThis._domRefProxy)}))),()=>{n||(globalThis._domRefProxy=void 0)}),l)};var o=r(d[0]),t=r(d[1])},687,[34,688]);
6269__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"NATIVE_ACTION",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"NATIVE_ACTION_RESULT",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"DOM_EVENT",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"MATCH_CONTENTS_EVENT",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"REGISTER_DOM_IMPERATIVE_HANDLE_PROPS",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getInjectEventScript",{enumerable:!0,get:function(){return s}}),e.getInjectBodySizeObserverScript=function(){return`;(function observeDocumentBodySize() {\n  window.addEventListener('DOMContentLoaded', () => {\n    new ResizeObserver(entries => {\n      const { width, height } = entries[0].contentRect;\n      window.ReactNativeWebView?.postMessage(JSON.stringify({\n        type: '${c}',\n        data: {\n          width,\n          height,\n        },\n      }));\n    })\n    .observe(document.body);\n    window.ReactNativeWebView?.postMessage(JSON.stringify({\n      type: '${c}',\n      data: {\n        width: document.body.clientWidth,\n        height: document.body.clientHeight,\n      },\n    }));\n  });\n  })();\n  true;`};const n='$$native_action',t='$$native_action_result',o='$$dom_event',c='$$match_contents_event',u='$$register_dom_imperative_handle_props',s=n=>`;(function() {\n  try {\n  window.dispatchEvent(new CustomEvent("${o}",${JSON.stringify({detail:n})}));\n  } catch (e) {}\n  })();\n  true;`},688,[]);
6270__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(_e,"createURL",{enumerable:!0,get:function(){return o.createURL}}),_e.addEventListener=L,_e.parseInitialURLAsync=async function(){const e=await c.default.getInitialURL();if(!e)return{scheme:null,hostname:null,path:null,queryParams:null};return(0,o.parse)(e)},_e.sendIntent=async function(e,t){throw new n.UnavailabilityError('Linking','sendIntent')},_e.openSettings=async function(){throw new n.UnavailabilityError('Linking','openSettings')},_e.getInitialURL=p,_e.getLinkingURL=function(){return u.default.getLinkingURL()},_e.openURL=y,_e.canOpenURL=async function(e){return(0,l.validateURL)(e),await c.default.canOpenURL(e)},_e.useURL=function(){const[e,n]=(0,t.useState)(null);function u(e){n(e.url)}return(0,t.useEffect)(()=>{p().then(e=>n(e));const e=L('url',u);return()=>e.remove()},[]),e},_e.useLinkingURL=function(){const[e,n]=(0,t.useState)(u.default.getLinkingURL);function c(e){n(e.url)}return(0,t.useEffect)(()=>{const e=u.default.addListener('onURLReceived',c);return()=>e.remove()},[]),e??null};var n=r(d[0]),t=r(d[1]);r(d[2]);
6270var u=e(r(d[3])),c=e(r(d[4])),o=r(d[5]),l=r(d[6]),f=r(d[7]);Object.keys(f).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return f[e]}})});var s=r(d[8]);function L(e,n){return c.default.addEventListener(e,n)}async function p(){return await c.default.getInitialURL()??null}async function y(e){return(0,l.validateURL)(e),await c.default.openURL(e)}Object.keys(s).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return s[e]}})})},689,[99,34,95,690,691,692,693,694,695]);
6271__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},o={addListener(e,n){if((0,t.default)('onURLReceived'===e,`Linking.addListener(): ${e} is not a valid event`),'undefined'==typeof window)return{remove(){}};const o=e=>n({url:window.location.href,nativeEvent:e});return window.addEventListener('message',o,!1),{remove:()=>{window.removeEventListener('message',o)}}},getLinkingURL:()=>'undefined'==typeof window?'':window.location.href}},690,[134]);
6272__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e};const o=[];var s={addEventListener(e,n){if('undefined'==typeof window)return{remove(){}};(0,t.default)('url'===e,`Linking.addEventListener(): ${e} is not a valid event`);const s=e=>n({url:window.location.href,nativeEvent:e});return o.push({listener:n,nativeListener:s}),window.addEventListener('message',s,!1),{remove:()=>{this.removeEventListener(e,n)}}},removeEventListener(e,n){if('undefined'==typeof window)return;(0,t.default)('url'===e,`Linking.addEventListener(): ${e} is not a valid event`);const s=o.findIndex(e=>e.listener===n);(0,t.default)(-1!==s,'Linking.removeEventListener(): cannot remove an unregistered event listener.');const v=o[s].nativeListener;window.removeEventListener('message',v,!1),o.splice(s,1)},canOpenURL:async()=>!0,getInitialURL:async()=>'undefined'==typeof window?'':window.location.href,async openURL(e){'undefined'!=typeof window&&(window.location=new URL(e,window.location).toString())}}},691,[134]);
6273__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createURL=function(n,{queryParams:t={}}={}){if('undefined'==typeof window)return'';const o=new URL(n,window.location.origin);return Object.entries(t).forEach(([n,t])=>{'string'==typeof t?o.searchParams.set(n,encodeURIComponent(t)):null!=t&&o.searchParams.set(n,t)}),o.toString().replace(/\/$/,'')},e.parse=function(n){let t;try{t=new URL(n)}catch{return'undefined'==typeof window?{hostname:null,path:n,queryParams:{},scheme:null}:{hostname:'localhost',path:n,queryParams:{},scheme:'http'}}const o={};return t.searchParams.forEach((n,t)=>{o[t]=decodeURIComponent(n)}),{hostname:t.hostname||null,path:t.hostname||t.pathname?''===t.pathname?null:t.pathname.replace(/^\//,''):null,queryParams:o,scheme:t.protocol.replace(/:$/,'')}}},692,[]);
6274__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.validateURL=function(e){(0,n.default)('string'==typeof e,'Invalid URL: should be a string. Was: '+e),(0,n.default)(e,'Invalid URL: cannot be empty')};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e}},693,[134]);
6275__d(function(g,r,i,a,m,e,d){},694,[]);
6276__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.hasCustomScheme=function(){return!0},e.collectManifestSchemes=function(){return[]},e.hasConstantsManifest=function(){return!1},e.resolveScheme=function(){return'https'}},695,[]);
6277__d(function(g,r,_i,a,_m,_e,d){"use strict";var e,t=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)}
6277,function(o){if(o&&o.__esModule)return o;var i={};if(null!=o)for(var s=e(o),u=0;u<s.length;u++)"default"!==s[u]&&t(i,o,s[u]);return n(i,o),i}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.store=void 0,_e.useStore=function(e,t,n){const o=(0,s.useNavigationContainerRef)(),i=u.default.expoConfig?.extra?.router;let y,S,w=f.Fragment;const F=(0,R.getRoutes)(e,Object.assign({},i,{skipGenerated:!0,ignoreEntryPoints:!0,platform:c.Platform.OS,preserveRedirectAndRewrites:!0})),k=[i?.redirects,i?.rewrites].filter(Boolean).flat().map(e=>[(0,m.routePatternToRegex)((0,h.parseRouteSegments)(e.source)),e,(0,b.shouldLinkExternally)(e.destination)]);if(!F)throw new Error('No routes found');{y=(0,p.getLinkingConfig)(F,e,()=>_e.store.getRouteInfo(),{metaOnly:t.metaOnly,serverUrl:n,redirects:k,skipGenerated:i?.skipGenerated??!1,sitemap:i?.sitemap??!0,notFound:i?.notFound??!0}),w=(0,_.getQualifiedRouteComponent)(F);const o=y?.getInitialURL?.();if('string'==typeof o){let e=(0,l.extractExpoPathFromURL)(y.prefixes,o);e.startsWith('/')||(e='/'+e),S=y.getStateFromPath(e,y.config);const t=(0,v.getRouteInfoFromState)(S);O.set(S,t),P.set(JSON.stringify(t),t)}}I.current={navigationRef:o,routeNode:F,config:i,rootComponent:w,linking:y,redirects:k,state:S},S&&(I.current.routeInfo=N(S));return(0,f.useEffect)(()=>()=>{x&&(cancelAnimationFrame(x),x=void 0)}),_e.store},_e.useRouteInfo=function(){const e=(0,f.useSyncExternalStore)(j,_e.store.getRouteInfo,_e.store.getRouteInfo),{isPreview:t,segments:n,params:o,pathname:i}=(0,S.usePreviewInfo)();if(t)return{pathname:i??'',segments:n??[],unstable_globalHref:'',params:o??{},searchParams:new URLSearchParams,pathnameWithParams:i??'',isIndex:!1};return e};const s=r(d[0]),u=i(r(d[1])),f=r(d[2]),c=r(d[3]),l=r(d[4]),m=r(d[5]),p=r(d[6]),h=r(d[7]),R=r(d[8]),v=r(d[9]),y=r(d[10]),_=r(d[11]),S=r(d[12]),b=r(d[13]),w=o(r(d[14])),I={current:{}},O=new WeakMap,P=new Map;let x,F=!1;_e.store={shouldShowTutorial:()=>!I.current.routeNode&&!1,get state(){return I.current.state},get navigationRef(){return I.current.navigationRef},get routeNode(){return I.current.routeNode},getRouteInfo:()=>I.current.routeInfo||v.defaultRouteInfo,get redirects(){return I.current.redirects||[]},get rootComponent(){return I.current.rootComponent},getStateForHref(e,t){return e=(0,y.resolveHref)(e),e=(0,y.resolveHrefStringWithSegments)(e,_e.store.getRouteInfo(),t),this.linking?.getStateFromPath(e,this.linking.config)},get linking(){return I.current.linking},setFocusedState(e){const t=N(e);I.current.routeInfo=t},onReady(){F||(F=!0,x=requestAnimationFrame(()=>{w._internal_maybeHideAsync?.()})),I.current.navigationRef.addListener('state',e=>{if(!e.data.state)return;let t=!1,n=e.data.state;for(;!t&&n;)t=n.stale,n=n.routes?.['index'in n&&'number'==typeof n.index?n.index:n.routes.length-1]?.state;I.current.state=e.data.state,t||(I.current.routeInfo=N(e.data.state));for(const e of k)e()})},assertIsReady(){if(!I.current.navigationRef.isReady())throw new Error('Attempted to navigate before mounting the Root Layout component. Ensure the Root Layout component is rendering a Slot, or other navigator on the first render.')}};const k=new Set,j=e=>(k.add(e),()=>{k.delete(e)});function N(e){let t=O.get(e);if(!t){t=(0,v.getRouteInfoFromState)(e);const n=JSON.stringify(t),o=P.get(n);o?t=o:P.set(n,t),O.set(e,t)}return t}},696,[366,661,34,608,697,698,699,700,712,728,665,505,502,702,654]);
6278__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t.match(/exps?:\/\/.*?\/--\/(.*)/)?.[1]??''}
6278function n(n){if(n.match(/^https?:\/\//)){const{origin:t,href:o,hostname:c}=new URL(n);return'exp.host'===c||'u.expo.dev'===c?'':o.replace(t,'')}if('undefined'!=typeof expo&&globalThis.expo?.modules?.ExpoGo&&n.match(/^exp(s)?:\/\//)){const o=t(n);if(o)return c('a://'+o);const s=n.match(/exps?:\/\/.*\?(.*)/)?.[1];return s?c('a://?'+s):''}return c(n)}function o(t){return'expo-development-client'===t.hostname}function c(t){let c;try{c=new URL(t)}catch{return t.startsWith('/')?t:t.replace(/^[^:]+:\/\//,'')}if(o(c)){if(!c.searchParams.get('url'))return'';const t=c.searchParams.get('url');return n(decodeURI(t))}let s='';c.host&&(s+=c.host),c.pathname&&(s+=c.pathname);const u=c.search?[...c.searchParams.entries()].map(([t,n])=>`${t}=${decodeURIComponent(n)}`).join('&'):'';return u&&(s+='?'+u),s}Object.defineProperty(e,"__esModule",{value:!0}),e.parsePathAndParamsFromExpoGoLink=function(n){const o=t(n).match(/([^?]*)(\?.*)?/);return{pathname:o?.[1]??'',queryString:o?.[2]??''}},e.parsePathFromExpoGoLink=t,e.extractExpoPathFromURL=function(t,o=""){return n(o).replace(/^\//,'')}},697,[]);
6279__d(function(g,r,_i,_a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.populateParams=function(t,n){if(!t||!n||0===Object.keys(n).length)return;for(const a of t)Object.assign(a,{params:n});return t},e.safelyDecodeURIComponent=function(t){try{return decodeURIComponent(t)}catch{return t}},e.getUrlWithReactNavigationConcessions=function(t,n=""){const s=(0,a.stripGroupSegmentsFromPath)(i(t,n));let o='',c='';try{const n=new URL(t,'file:');o=n.pathname,c=n.hash}catch{}const u=i(o,n);return{path:t,nonstandardPathname:u.replace(/^\/+/g,'').replace(/\/+$/g,'')+'/',hash:c,pathWithoutGroups:s}},e.createConfig=function(t,n,s,i={}){const o=[];let c=!1;const u='index'===t||t.endsWith('/index');let p=0;for(const t of n.split('/'))if(t){const n=t.startsWith(':')||t.startsWith('*')||t.includes('*not-found');c||=n,(0,a.matchGroupName)(t)||(o.push(t),n||p++)}const l=!!i.screens&&!!Object.keys(i.screens)?.length,h=l?'layout':c?'dynamic':'static';u&&(o.push('index'),p++);return{type:h,isIndex:u,hasChildren:l,parts:o,staticPartCount:p,userReadableName:[...s.slice(0,-1),i.path||t].join('/'),expandedRouteNames:s.slice(1).flatMap(t=>t.split('/'))}},e.assertScreens=function(t){if(!t?.screens)throw Error("You must pass a 'screens' object to 'getStateFromPath' to generate a path.")},e.configRegExp=function(t){return t.pattern?new RegExp(`^(${t.pattern.split('/').map(s).join('')})$`):void 0},e.isDynamicPart=function(t){return t.length>1&&(t.startsWith(':')||t.startsWith('*'))},e.replacePart=function(t){return t.replace(/^[:*]/,'').replace(/\?$/,'')},e.getParamValue=function(t,n){if(t.startsWith('*')){const a=n.split('/').filter(t=>''!==t);return 0===a.length&&t.endsWith('?')?void 0:a}return n},e.handleUrlParams=function(t,n){if(n){t.params=Object.assign(Object.create(null),t.params);for(const[a,s]of Object.entries(n))t.params,t.params?.[a]||(t.params[a]=s);0===Object.keys(t.params).length&&delete t.params}},e.spreadParamsAcrossAllStates=function(t,n){for(;t;){const a=t.routes[0];a.params=Object.assign({},a.params,n)}},e.stripBaseUrl=i,e.matchForEmptyPath=function(t){const n=t.filter(t=>!t.hasChildren).map(t=>Object.assign({},t,{path:(0,a.stripGroupSegmentsFromPath)(t.path)}));return n.find(t=>''===t.path&&(!t.regex||t.regex.test('')))??n.find(t=>t.path.startsWith(':')&&t.regex.test(''))??n.find(t=>t.path.startsWith('*')&&t.regex.test('/'))},e.appendIsInitial=function(t){const n=t.map(t=>o(...t.parentScreens,t.initialRouteName));return function(t){return t.isInitial=n.includes(t.routeNames.join('/')),t}},e.getRouteConfigSorter=function(t=[]){return function(n,a){if(n.pattern===a.pattern)return a.routeNames.join('>').localeCompare(n.routeNames.join('>'));if(n.pattern.startsWith(a.pattern)&&!a.isIndex)return-1;if(a.pattern.startsWith(n.pattern)&&!n.isIndex)return 1;if('static'===n.type&&'static'!==a.type)return-1;if('static'!==n.type&&'static'===a.type)return 1;if(n.staticPartCount!==a.staticPartCount)return a.staticPartCount-n.staticPartCount;const s=t.filter((t,a)=>t===n.expandedRouteNames[a]&&t.startsWith('(')&&t.endsWith(')')),i=t.filter((t,
6279n)=>t===a.expandedRouteNames[n]&&t.startsWith('(')&&t.endsWith(')'));if((s.length>0||i.length>0)&&s.length!==i.length)return i.length-s.length;for(let t=0;t<Math.max(n.parts.length,a.parts.length);t++){if(null==n.parts[t])return 1;if(null==a.parts[t])return-1;const s=n.parts[t].startsWith('*'),i=a.parts[t].startsWith('*');if(s&&i){const s=n.parts[t].match(/^[*]not-found$/),i=a.parts[t].match(/^[*]not-found$/);if(s&&i)continue;if(s)return 1;if(i)return-1;continue}if(s)return 1;if(i)return-1;const o=n.parts[t].startsWith(':'),c=a.parts[t].startsWith(':');if(o&&c){const s=n.parts[t].match(/^[*]not-found$/),i=a.parts[t].match(/^[*]not-found$/);if(s&&i)continue;if(s)return 1;if(i)return-1;continue}if(o)return 1;if(c)return-1}return n.isInitial&&!a.isInitial?-1:!n.isInitial&&a.isInitial?1:a.parts.length-n.parts.length}},e.parseQueryParams=function(t,n,a,s){const i=new URL(t,'https://phony.example').searchParams,o=Object.create(null);s&&(o['#']=s.slice(1));for(const t of i.keys())if(n.params?.[t]);else{const n=a?.hasOwnProperty(t)?i.getAll(t).map(n=>a[t](n)):i.getAll(t);o[t]=1===n.length?n[0]:n}return Object.keys(o).length?o:void 0},e.cleanPath=function(t){return(t=t.replace(/\/+/g,'/').replace(/^\//,'').replace(/\?.*$/,'')).endsWith('/')?t:`${t}/`},e.routePatternToRegex=function(t){return new RegExp(`^(${t.split('/').map(t=>t.startsWith('(')&&t.endsWith(')')?`${t}?`:t.startsWith(':')?`(([^/]+\\/)${t.endsWith('?')?'?':''})`:`${'*'===t?'.*':(0,n.default)(t)}\\/`).join('')})`)};const n=t(r(d[0])),a=r(d[1]);function s(t){return(t=t.replace(' ','%20')).startsWith(':')?`(([^/]+\\/)${t.endsWith('?')?'?':''})`:t.startsWith('*')?`((.*\\/)${t.endsWith('?')?'?':''})`:null!=(0,a.matchGroupName)(t)?`(?:${(0,n.default)(t)}\\/)?`:(0,n.default)(t)+"\\/"}function i(t,a=""){return a?t.replace(/^\/+/g,'/').replace(new RegExp(`^\\/?${(0,n.default)(a)}`,'g'),''):t}const o=(...t)=>[].concat(...t.map(t=>t.split('/'))).filter(Boolean).join('/')},698,[427,497]);
6280__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNavigationConfig=f,e.getLinkingConfig=function(s,o,p,{metaOnly:h=!0,serverUrl:l,redirects:y,skipGenerated:S,sitemap:O,notFound:_}){let P,b=!1;const F=o.keys().find(t=>t.match(/^\.\/\+native-intent\.[tj]sx?$/)),N=F?o(F):void 0,R=f(s,h,{sitemap:!S&&O,notFound:!S&&_});return{prefixes:[],config:R,getInitialURL:()=>(b||('web'===n.Platform.OS?P=l??(0,u.getInitialURL)():(P=l??(0,u.getInitialURL)(),'string'==typeof P?(P=(0,c.applyRedirects)(P,y),P&&'function'==typeof N?.redirectSystemPath&&(P=N.redirectSystemPath({path:P,initial:!0}))):P&&(P=P.then(t=>(t=(0,c.applyRedirects)(t,y))&&'function'==typeof N?.redirectSystemPath?N.redirectSystemPath({path:t,initial:!0}):t))),b=!0),P),subscribe:(0,u.subscribe)(N,y),getStateFromPath:(t,n)=>(0,u.getStateFromPath)(t,n,p().segments),getPathFromState:(t,n)=>(0,u.getPathFromState)(t,Object.assign({},R,n,{screens:R.screens??n?.screens??{}}))??'/',getActionFromState:t.getActionFromState}};const t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]),u=r(d[5]);function f(t,n,{sitemap:c,notFound:u}){const f=(0,o.getReactNavigationConfig)(t,n),l=(()=>{const t='_sitemap';return!1===c||p(f,t)?{}:h(s.SITEMAP_ROUTE_NAME,t,n)})(),y=(()=>{const t='*not-found';return!1===u||p(f,t)?{}:h(s.NOT_FOUND_ROUTE_NAME,t,n)})();return{screens:Object.assign({[s.INTERNAL_SLOT_NAME]:Object.assign({path:''},f)},l,y)}}function p(t,n){return Object.values(t.screens).some(t=>'string'==typeof t?t===n:t.path===n)}function h(t,n,s){return s?{[t]:n}:{[t]:{path:n}}}},699,[366,99,664,700,701,705]);
6281__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRouteSegments=o,e.getReactNavigationScreensConfig=c,e.getReactNavigationConfig=function(t,n){const o={initialRouteName:void 0,screens:c(t.children,n)};t.initialRouteName&&(o.initialRouteName=t.initialRouteName);return o};const t=r(d[0]);
6281function n(n){if('index'===n)return'';if('+not-found'===n)return'*not-found';const o=(0,t.matchDynamicName)(n);return o&&!o.deep?`:${o.name}`:o?.deep?'*'+o.name:n}function o(t){return t.split('/').map(n).filter(Boolean).join('/')}function u(t,n){const u=o(t.route);if(!t.children.length)return n?u:{path:u,screens:{},_route:t};const s={path:u,screens:c(t.children,n)};return t.initialRouteName&&(s.initialRouteName=t.initialRouteName),n||(s._route=t),s}function c(t,n){return Object.fromEntries(t.map(t=>[t.route,u(t,n)]))}},700,[497]);
6282__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var c=Object.getOwnPropertyDescriptor(n,i);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,c)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var c={};if(null!=o)for(var u=t(o),s=0;s<u.length;s++)"default"!==u[s]&&n(c,o,u[s]);return i(c,o),c});Object.defineProperty(e,"__esModule",{value:!0}),e.applyRedirects=function t(n,i){if('string'!=typeof n||!i)return n;const o=(0,s.cleanPath)(n),u=i.find(([t])=>t.test(o));if(!u)return n;if(u[2]){let t=u[1].destination;return t.startsWith('//'),c.openURL(t),t}return t(p(n,u[1]),i)},e.getRedirectModule=function(t){return{default:function(){const n=r(d[5]).usePathname(),i=(0,l.shouldLinkExternally)(t.destination);if((0,u.useEffect)(()=>{if(i){let n=t.destination;n.startsWith('//'),0,c.openURL(n)}},[]),i)return null;const o=p(n,t);return(0,u.createElement)(r(d[6]).Redirect,{href:o})}}},e.convertRedirect=p,e.mergeVariablesWithPath=h;const c=o(r(d[0])),u=r(d[1]),s=r(d[2]),f=r(d[3]),l=r(d[4]);function p(t,n){const i={},o=t.split('/'),c=n.source.split('/');for(const[t,n]of c.entries()){const c=(0,f.matchDynamicName)(n);if(c){if(c.deep){i[c.name]=o.slice(t);break}i[c.name]=o[t]}else;}return h(n.destination,i)}function h(t,n){return t.split('/').map(t=>{const i=(0,f.matchDynamicName)(t);if(i){const t=n[i.name];return delete n[i.name],t}return t}).filter(Boolean).join('/')}},701,[689,34,698,497,702,703,676]);
6283__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return/^([\w\d_+.-]+:)?\/\//.test(t)}function n(t){return/^(https?|mailto|tel|sms|geo|maps|market|itmss?|itms-apps|content|file):/.test(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.hasUrlProtocolPrefix=t,e.isWellKnownUri=n,e.shouldLinkExternally=function(s){return!s.startsWith('.')&&(t(s)||n(s))}},702,[]);
6284__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.useRouteInfo=void 0,e.useRootNavigationState=function(){const t=(0,n.useNavigation)().getParent(u.INTERNAL_SLOT_NAME);if(!t)throw new Error('useRootNavigationState was called from a generated route. This is likely a bug in Expo Router.');return t.getState()},e.useRootNavigation=function(){return c.store.navigationRef.current},e.useNavigationContainerRef=function(){return c.store.navigationRef},e.useRouter=function(){const{isPreview:t}=(0,l.usePreviewInfo)();if(t)return h;return f.router},e.useUnstableGlobalHref=function(){return(0,c.useRouteInfo)().unstable_globalHref},e.useSegments=function(){return(0,c.useRouteInfo)().segments},e.usePathname=function(){return(0,c.useRouteInfo)().pathname},e.useGlobalSearchParams=R,e.useLocalSearchParams=p,e.useSearchParams=function({global:t=!1}={}){o.default.useRef(t);const n=t?R():p(),s=Object.entries(n).flatMap(([n,o])=>{if(t){if('params'===n)return[];if('screen'===n)return[]}return Array.isArray(o)?o.map(t=>[n,t]):[[n,o]]});return new P(s)};const n=r(d[0]),o=t(r(d[1])),s=r(d[2]),u=r(d[3]),c=r(d[4]);Object.defineProperty(e,"useRouteInfo",{enumerable:!0,get:function(){return c.useRouteInfo}});const f=r(d[5]),l=r(d[6]);const h={back:()=>{},canGoBack:()=>!1,push:()=>{},navigate:()=>{},replace:()=>{},dismiss:()=>{},dismissTo:()=>{},dismissAll:()=>{},canDismiss:()=>!1,setParams:()=>{},reload:()=>{},prefetch:()=>{}};function R(){return(0,c.useRouteInfo)().params}
6284function p(){const t=o.default.use(s.LocalRouteParamsContext)??{},{params:n}=(0,l.usePreviewInfo)();return Object.fromEntries(Object.entries(n??t).map(([t,n])=>{if(void 0===n)return[t,void 0];if(Array.isArray(n))return[t,n.map(t=>{try{return decodeURIComponent(t)}catch{return t}})];try{return[t,decodeURIComponent(n)]}catch{return[t,n]}}))}class P extends URLSearchParams{set(){throw new Error('The URLSearchParams object return from useSearchParams is read-only')}append(){throw new Error('The URLSearchParams object return from useSearchParams is read-only')}delete(){throw new Error('The URLSearchParams object return from useSearchParams is read-only')}}},703,[366,34,496,664,696,704,502]);
6285__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.router=void 0,e.useImperativeApiEmitter=function(u){const n=(0,s.useSyncExternalStore)(t.routingQueue.subscribe,t.routingQueue.snapshot,t.routingQueue.snapshot);return(0,s.useEffect)(()=>{t.routingQueue.run(u)},[n,u]),null};const s=r(d[0]),t=r(d[1]);e.router={navigate:t.navigate,push:t.push,dismiss:t.dismiss,dismissAll:t.dismissAll,dismissTo:t.dismissTo,canDismiss:t.canDismiss,replace:t.replace,back:()=>(0,t.goBack)(),canGoBack:t.canGoBack,reload:t.reload,prefetch:t.prefetch,setParams:t.setParams}},704,[34,684]);
6286__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var u=Object.getOwnPropertyDescriptor(n,i);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,u)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},t(n)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var c=t(o),l=0;l<c.length;l++)"default"!==c[l]&&n(u,o,c[l]);return i(u,o),u});Object.defineProperty(e,"__esModule",{value:!0}),e.getPathFromState=e.getStateFromPath=void 0,e.getInitialURL=function(){if('undefined'==typeof window)return'';if('web'===c.Platform.OS&&window.location?.href)return window.location.href;if('ios'===c.Platform.OS){return y(u.getLinkingURL())??b()}return Promise.resolve((0,h.getInitialURLWithTimeout)()).then(t=>y(t)??b())},e.getRootURL=b,e.subscribe=function(t,n){return i=>{let o;const c=t?.legacy_subscribe?.(i);o=m?async({url:o})=>{let u=y(o);u=(0,p.applyRedirects)(u,n),u&&t?.redirectSystemPath&&(u=await t.redirectSystemPath({path:u,initial:!1})),u&&i(u)}:async({url:o})=>{let u=(0,p.applyRedirects)(o,n);u&&t?.redirectSystemPath&&(u=await t.redirectSystemPath({path:u,initial:!1})),u&&i(u)};const l=u.addEventListener('url',o);return()=>{l?.remove?.(),c?.()}}};const u=o(r(d[0])),c=r(d[1]),l=r(d[2]),s=r(d[3]);Object.defineProperty(e,"getPathFromState",{enumerable:!0,get:function(){return s.getPathFromState}});const f=r(d[4]);Object.defineProperty(e,"getStateFromPath",{enumerable:!0,get:function(){return f.getStateFromPath}});const h=r(d[5]),p=r(d[6]),m='undefined'!=typeof expo&&globalThis.expo?.modules?.ExpoGo;let P;function b(){return void 0===P&&(P=u.createURL('/'),m&&(P=(0,l.parsePathFromExpoGoLink)(P))),P}function y(t){if(!t||!m)return t;const{pathname:n,queryString:i}=(0,l.parsePathAndParamsFromExpoGoLink)(t);return n&&'/'!==n?t:b()+i}},705,[689,608,697,706,707,709,701]);
6287__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,s,i){void 0===i&&(i=s);var o=Object.getOwnPropertyDescriptor(n,s);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[s]}}),Object.defineProperty(t,i,o)}:function(t,n,s,i){void 0===i&&(i=s),t[i]=n[s]}),s=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[n.length]=s);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var c=t(i),p=0;p<c.length;p++)"default"!==c[p]&&n(o,i,c[p]);return s(o,i),o});
6287Object.defineProperty(e,"__esModule",{value:!0}),e.getPathFromState=function(t,n){return l(t,n).path},e.getPathDataFromState=l,e.appendBaseUrl=function(t,n=""){if(n)return`/${n.replace(/^\/+/,'').replace(/\/$/,'')}${t}`;return t};const o=i(r(d[0])),c=i(r(d[1])),p=r(d[2]),u=t=>{const n='number'==typeof t.index?t.routes[t.index]:t.routes[t.routes.length-1];return n.state?u(n.state):n};let f=[void 0,{}];function l(t,n){if(null==t)throw Error("Got 'undefined' for the navigation state. You must pass a valid state object.");n&&c.validatePathConfig(n),f[0]!==n?.screens&&(f=[n?.screens,n?.screens?b(n.screens):{}]);const s=f[1];let i='/',l=t;const h={};for(;l;){let f,m,b='number'==typeof l.index?l.index:0,y=l.routes[b];const v=u(t);let j=s;const O=[];let P=!0;for(;y.name in j&&P;){if(f=j[y.name].pattern,O.push(y.name),y.params){const t=j[y.name]?.stringify,n=c.fixCurrentParams(h,y,t);v===y&&(m=Object.assign({},n),f?.split('/').filter(t=>c.isDynamicPart(t)).forEach(t=>{const n=c.getParamName(t);m&&delete m[n]}))}if(j[y.name].screens&&void 0!==y.state){b='number'==typeof y.state.index?y.state.index:y.state.routes.length-1;const t=y.state.routes[b],n=j[y.name].screens;n&&t.name in n?(y=t,j=n):P=!1}else{const t=j[y.name].screens,n=y.params&&'screen'in y.params&&'string'==typeof y.params.screen?y.params.screen:'index',s=t?t[n]?n:Object.keys(t)[0]:void 0;if(s&&t&&j[y.name].screens?.[s]){const n=y.params?.params;y=Object.assign({},t[s],{name:s,key:s,params:n}),j=t}else P=!1}}if(void 0===f&&(f=O.join('/')),void 0!==j[y.name]?i+=c.getPathWithConventionsCollapsed(Object.assign({},n,{pattern:f,route:y,params:h,initialRouteName:s[y.name]?.initialRouteName})):y.name.startsWith('+')||(i+=encodeURIComponent(y.name)),m||(m=v.params),y.state)i+='/';else if(m){for(const t in m)'undefined'===m[t]&&delete m[t];delete m['#'],m=(0,p.removeInternalExpoRouterParams)(m);const t=o.stringify(m,{sort:!1});t&&(i+=`?${t}`)}l=y.state}return i=i.replace(/\/+/g,'/'),i=i.length>1?i.replace(/\/$/,''):i,n?.path&&(i=m(n.path,i)),i=c.appendBaseUrl(i),h['#']&&(i+=`#${h['#']}`),{path:i,params:h}}const m=(...t)=>[].concat(...t.map(t=>t.split('/'))).filter(Boolean).join('/'),h=(t,n)=>{if('string'==typeof t){return{pattern:n?m(n,t):t}}if(t.exact&&void 0===t.path)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");const s=!0!==t.exact?m(n||'',t.path||''):t.path||'',i=t.screens?b(t.screens,s):void 0;return{pattern:s?.split('/').filter(Boolean).join('/'),stringify:t.stringify,screens:i}},b=(t,n)=>Object.fromEntries(Object.entries(t).map(([t,s])=>[t,h(s,n)]))},706,[419,683,673]);
6288__d(function(g,r,_i,_a,_m,e,d){"use strict";var t=r(d[0]);const n=["path"];var a,s=this&&this.__createBinding||(Object.create?function(t,n,a,s){void 0===s&&(s=a);var o=Object.getOwnPropertyDescriptor(n,a);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[a]}}),Object.defineProperty(t,s,o)}:function(t,n,a,s){void 0===s&&(s=a),t[s]=n[a]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(a=function(t){return a=Object.getOwnPropertyNames||function(t){var n=[];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[n.length]=a);return n},a(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=a(t),c=0;c<i.length;c++)"default"!==i[c]&&s(n,t,i[c]);return o(n,t),n}),c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getStateFromPath=function(t,n,a=[]){const{initialRoutes:s,configs:o,configWithRegexes:i}=b(n,a),c=n?.screens,u=f.getUrlWithReactNavigationConcessions(t);let p=f.cleanPath(u.nonstandardPathname);const l=n?.path?.replace(/^\//,'');if(l){const t=l.endsWith('/')?l:`${l}/`;if(!p.startsWith(t))return;p=p.replace(t,'')}if(void 0===c){const t=p.split('/').filter(Boolean).map(t=>({name:decodeURIComponent(t)}));return t.length?C(u,t,s,[],u.hash):void 0}if('/'===p){const t=f.matchForEmptyPath(i);return t?C(u,t.routeNames.map(t=>({name:t})),s,o,u.hash):void 0}let h,m;const{routes:j,remainingPath:v}=N(p,i);void 0!==j&&(m=C(u,j,s,o,u.hash),p=v,h=m);if(null==m||null==h)return;return h};const u=r(d[1]),p=c(r(d[2])),l=r(d[3]),f=i(r(d[4])),h=r(d[5]);let m=[void 0,j()];function b(t,n){return m=[t,j(t,n)],m[1]}function j(t,n){t&&(0,u.validatePathConfig)(t);const a=v(t),s=O(a,t?.screens,n);P(s);return{initialRoutes:a,configs:s,configWithRegexes:y(s)}}function v(t){const n=[];return t?.initialRouteName&&n.push({initialRouteName:t.initialRouteName,parentScreens:[]}),n}function O(t,n={},a){return[].concat(...Object.keys(n).map(a=>_(a,n,[],t,[]))).map(f.appendIsInitial(t)).sort(f.getRouteConfigSorter(a))}function P(t){t.reduce((t,n)=>{if(t[n.pattern]){const a=t[n.pattern].routeNames,s=n.routeNames;if(!(a.length>s.length?s.every((t,n)=>a[n]===t):a.every((t,n)=>
6288s[n]===t)))throw new Error(`Found conflicting screens with the same pattern. The pattern '${n.pattern}' resolves to both '${a.join(' > ')}' and '${s.join(' > ')}'. Patterns must be unique and cannot resolve to more than one screen.`)}return Object.assign(t,{[n.pattern]:n})},{})}function y(t){return t.map(t=>Object.assign({},t,{regex:f.configRegExp(t)}))}const R=(...t)=>[].concat(...t.map(t=>t.split('/'))).filter(Boolean).join('/'),N=(t,n)=>{let a,s=t;const o=Object.create(null);for(const t of n){if(!t.regex)continue;const i=s.match(t.regex);if(i){const c=t.pattern?.split('/').reduce((t,n,a)=>{if(!f.isDynamicPart(n))return t;t.pos+=1;const s=f.safelyDecodeURIComponent(i[2*(t.pos+1)].replace(/\/$/,''));return Object.assign(t.matchedParams,{[n]:Object.assign(t.matchedParams[n]||{},{[a]:s})}),t},{pos:-1,matchedParams:{}}),u=c.matchedParams||{};a=t.routeNames.map(a=>{const s=n.find(n=>n.screen===a&&t.pattern.startsWith(n.pattern)),i=s?.path.split('/').filter(Boolean).join('/'),c=s?.pattern.replace(new RegExp(`${(0,p.default)(i)}$`),'')?.split('/').length,l=i?.split('/').reduce((t,n,a)=>{if(!f.isDynamicPart(n))return t;const o=c?c-1:0,i=f.getParamValue(n,u[n]?.[a+o]);if(i){const a=f.replacePart(n);t[a]=s?.parse?.[a]?s.parse[a](i):i}return t},{});return l&&Object.keys(l).length?(Object.assign(o,l),{name:a,params:l}):{name:a}}),s=s.replace(i[1],'');break}}return f.populateParams(a,o),{routes:a,remainingPath:s}},_=(t,n,a=[],s,o,i)=>{const c=[];a.push(t),o.push(t);const u=n[t];if('string'==typeof u){const n=i?R(i,u):u;c.push(x(t,a,n,u))}else if('object'==typeof u){let n;if('string'==typeof u.path){if(u.exact&&void 0===u.path)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");n=!0!==u.exact?R(i||'',u.path||''):u.path||'',t!==h.INTERNAL_SLOT_NAME&&c.push(x(t,a,n,u.path,u.parse,u))}u.screens&&(u.initialRouteName&&s.push({initialRouteName:u.initialRouteName,parentScreens:o}),Object.keys(u.screens).forEach(t=>{const p=_(t,u.screens,a,s,[...o],n??i);c.push(...p)}))}return a.pop(),c},x=(t,n,a,s,o=void 0,i={})=>{const c=(a=a.split('/').filter(Boolean).join('/'))?f.routePatternToRegex(a):void 0;return Object.assign({screen:t,regex:c,pattern:a,path:s,routeNames:[...n],parse:o},f.createConfig(t,a,n,i))},w=(t,n)=>{for(const a of n)if(t===a.routeNames[a.routeNames.length-1])return a.parse},E=(t,n,a)=>{for(const s of a)if(n.length===s.parentScreens.length){let a=!0;for(let t=0;t<n.length;t++)if(0!==n[t].localeCompare(s.parentScreens[t])){a=!1;break}if(a)return t!==s.initialRouteName?s.initialRouteName:void 0}},S=(t,n,a)=>a?t?{index:1,routes:[{name:t,params:n.params},n]}:{routes:[n]}:t?{index:1,routes:[{name:t,params:n.params},Object.assign({},n,{state:{routes:[]}})]}:{routes:[Object.assign({},n,{state:{routes:[]}})]},C=(a,s,o,i,c)=>{let{path:u}=a,p=t(a,n),h=s.shift();const m=[];let b=E(h.name,m,o);m.push(h.name);const j=S(b,h,0===s.length);if(s.length>0){let t=j;for(;h=s.shift();){b=E(h.name,m,o);const n=t.index||t.routes.length-1;t.routes[n].state=S(b,h,0===s.length),s.length>0&&(t=t.routes[n].state),m.push(h.name)}}h=(0,l.findFocusedRoute)(j),h.path=p.pathWithoutGroups;const v=f.parseQueryParams(u,h,i?w(h.name,i):void 0,c);return v&&(h.params=Object.assign({},h.params,v)),j}},707,[129,366,427,708,698,664]);
6289__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findFocusedRoute=function(t){let n=t;for(;null!=n?.routes[n.index??0].state;)n=n.routes[n.index??0].state;const u=n?.routes[n?.index??0];return u}},708,[]);
6290__d(function(g,_r,_i,_a,_m,_e,d){"use strict";var e,t=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var o={};if(null!=n)for(var s=e(n),i=0;i<s.length;i++)"default"!==s[i]&&t(o,n,s[i]);return r(o,n),o}
6290),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.series=void 0,_e.useLinking=function(e,{enabled:t=!0,config:r,getStateFromPath:n=s.getStateFromPath,getPathFromState:o=s.getPathFromState,getActionFromState:v=s.getActionFromState},y){const m=(0,s.useNavigationIndependentTree)(),R=(0,l.useExpoRouterStore)();u.useEffect(()=>{},[t,m]);const[b]=u.useState(c.createMemoryHistory),w=u.useRef(t),_=u.useRef(r),S=u.useRef(n),O=u.useRef(o),k=u.useRef(v);u.useEffect(()=>{w.current=t,_.current=r,S.current=n,O.current=o,k.current=v});const P=u.useCallback(e=>{const t=(0,h.getRootStackRouteNames)();return e?.routes.some(e=>!t.includes(e.name))},[e]),j=u.use(f.ServerContext),F=u.useCallback(()=>{let e;if(w.current){const t=j?.location??('undefined'!=typeof window?window.location:void 0),r=t?t.pathname+t.search:void 0;r&&(e=S.current(r,_.current)),y(r)}const t={then:t=>Promise.resolve(t?t(e):e),catch:()=>t};return t},[]),x=u.useRef(void 0),M=u.useRef(void 0),E=u.useRef(void 0);return u.useEffect(()=>(x.current=b.index,b.listen(()=>{const r=e.current;if(!r||!t)return;const{location:n}=window,o=n.pathname+n.search+n.hash,s=b.index,i=x.current??0;x.current=s,E.current=o;const u=b.get(s);if(u?.path===o&&u?.state)return void r.resetRoot(u.state);const c=S.current(o,_.current);if(c){if(y(o),P(c))return;if(s>i||s===i&&(!u||`${u?.path}${n.hash}`===o)){const e=k.current(c,_.current);if(void 0!==e)try{r.dispatch(e)}catch(e){console.warn(`An error occurred when trying to handle the link '${o}': ${'object'==typeof e&&null!=e&&'message'in e?e.message:e}`)}else r.resetRoot(c)}else r.resetRoot(c)}else r.resetRoot(c)})),[t,b,y,e,P]),u.useEffect(()=>{if(!t)return;const r=(e,t)=>{let r;if(e?.path){const t=S.current(e.path,_.current);if(t){const n=(0,s.findFocusedRoute)(t);n&&n.name===e.name&&(0,i.default)(Object.assign({},n.params),Object.assign({},e.params))&&(r=(0,a.appendBaseUrl)(e.path))}}return null==r&&(r=O.current(t,_.current)),r};if(e.current){const t=e.current.getRootState(),n=R.state;if(n){const e=(0,s.findFocusedRoute)(n),o=r(e,n);void 0===M.current&&(M.current=t),b.replace({path:o,state:n})}}return e.current?.addListener('state',(0,_e.series)(async()=>{const n=e.current;if(!n||!t)return;const o=M.current,i=n.getRootState(),u=R.state;if(!u)return;const c=E.current,a=(0,s.findFocusedRoute)(u),f=r(a,u);M.current=i,E.current=void 0;const[l,h]=p(o,u);if(l&&h&&f!==c){const e=(h.history?h.history.length:h.routes.length)-(l.history?l.history.length:l.routes.length);if(e>0)b.push({path:f,state:u});else if(e<0){const t=b.backIndex({path:f}),r=b.index;try{-1!==t&&t<r&&b.get(t-r)?await b.go(t-r):await b.go(e),b.replace({path:f,state:u})}catch{}}else b.replace({path:f,state:u})}else b.replace({path:f,state:u})}))},[t,b,e]),{getInitialState:F}},_e.getInitialURLWithTimeout=function(){return'undefined'==typeof window?'':window.location.href};const s=_r(d[0]),i=o(_r(d[1])),u=n(_r(d[2])),c=_r(d[3]),a=_r(d[4]),f=_r(d[5]),l=_r(d[6]),h=_r(d[7]),p=(e,t)=>{if(void 0===e||void 0===t||e.key!==t.key)return[void 0,void 0];const r=e.history?e.history.length:e.routes.length,n=t.history?t.history.length:t.routes.length,o=e.routes[e.index],s=t.routes[t.index],i=o.state,u=s.state;return r!==n||o.key!==s.key||void 0===i||void 0===u||i.key!==u.key?[e,t]:p(i,u)};_e.series=e=>{let t=Promise.resolve();return()=>{t=t.then(e)}}},709,[366,439,34,710,706,711,506,660]);
6291__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createMemoryHistory=function(){let n=0,i=[];const o=[],s=()=>{o.forEach(t=>{const n=t.cb;t.cb=()=>n(!0)})};return{get index(){const t=window.history.state?.id;if(t){const n=i.findIndex(n=>n.id===t);return n>-1?n:0}return 0},get:t=>i[t],backIndex({path:t}){for(let o=n-1;o>=0;o--){if(i[o].path===t)return o}return-1},push({path:o,state:c}){s();const w=(0,t.nanoid)();i=i.slice(0,n+1),i.push({path:o,state:c,id:w}),n=i.length-1,window.history.pushState({id:w},'',o)},replace({path:o,state:c}){s();const w=window.history.state?.id??(0,t.nanoid)();let h=o;const p=h.includes('#')?'':location.hash;!i.length||i.findIndex(t=>t.id===w)<0?(h+=p,i=[{path:h,state:c,id:w}],n=0):(i[n].path===o&&(h+=p),i[n]={path:o,state:c,id:w}),window.history.replaceState({id:w},'',h)},go(t){s();const c=n+t,w=i.length-1;if(t<0&&!i[c]?(t=-n,n=0):t>0&&c>w?(t=w-n,n=w):n=c,0!==t)return new Promise((s,c)=>{const w=t=>{if(clearTimeout(h),t)return void c(new Error('History was changed during navigation.'));const{title:n}=window.document;window.document.title='',window.document.title=n,s()};o.push({ref:w,cb:w});const h=setTimeout(()=>{const t=o.findIndex(t=>t.ref===w);t>
6291-1&&(o[t].cb(),o.splice(t,1))},100),p=()=>{const t=window.history.state?.id,s=i.findIndex(n=>n.id===t);n=Math.max(s,0);const c=o.pop();window.removeEventListener('popstate',p),c?.cb()};window.addEventListener('popstate',p),window.history.go(t)})},listen(t){const n=()=>{o.length||t()};return window.addEventListener('popstate',n),()=>window.removeEventListener('popstate',n)}}};const t=r(d[0])},710,[373]);
6292__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServerContext=void 0;const t=r(d[0]);e.ServerContext=(0,t.createContext)(void 0)},711,[34]);
6293__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extrapolateGroups=e.generateDynamic=void 0,e.getRoutes=n,e.getExactRoutes=function(t,o={}){return n(t,Object.assign({},o,{skipGenerated:!0}))};const t=r(d[0]);function n(n,o={}){return(0,t.getRoutes)(n,Object.assign({getSystemRoute({route:t,type:o,defaults:u,redirectConfig:s,rewriteConfig:c}){if(''===t&&'layout'===o)return{type:'layout',loadRoute:()=>({default:r(d[1]).DefaultNavigator}),contextKey:'expo-router/build/views/Navigator.js',route:'',generated:!0,dynamic:null,children:[]};if('_sitemap'===t&&'route'===o)return{loadRoute(){const{Sitemap:t,getNavOptions:n}=r(d[2]);return{default:t,getNavOptions:n}},route:'_sitemap',type:'route',contextKey:'expo-router/build/views/Sitemap.js',generated:!0,internal:!0,dynamic:null,children:[]};if('+not-found'===t&&'route'===o)return{loadRoute:()=>({default:r(d[3]).Unmatched}),type:'route',route:'+not-found',contextKey:'expo-router/build/views/Unmatched.js',generated:!0,internal:!0,dynamic:[{name:'+not-found',deep:!0,notFound:!0}],children:[]};if('redirect'===o&&s&&u)return Object.assign({},u,{loadRoute:()=>r(d[4]).getRedirectModule(s)});if('rewrite'===o&&c&&u)return Object.assign({},u,{loadRoute:()=>({default:n(c.destinationContextKey).default})});throw new Error(`Unknown system route: ${t} and type: ${o} and redirectConfig: ${s} and rewriteConfig: ${c}`)}},o))}var o=r(d[0]);Object.defineProperty(e,"generateDynamic",{enumerable:!0,get:function(){return o.generateDynamic}}),Object.defineProperty(e,"extrapolateGroups",{enumerable:!0,get:function(){return o.extrapolateGroups}})},712,[713,714,716,726,701]);
6294__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRoutes=function(t,n){const o=s(t,n),l=u(t,n);if(!l)return null;const c=p(l,n);o&&(c.middleware=o);n.ignoreEntryPoints||$(c,n);return c},e.extrapolateGroups=y,e.generateDynamic=w;const t=r(d[0]),n=r(d[1]),o=new Set(['android','ios','native','web']);function s(t,n){const o=t.keys().filter(t=>t.includes('+middleware'));if(!n.unstable_useServerMiddleware)return o.length>0&&console.warn('Server middleware is not enabled. Add unstable_useServerMiddleware: true to your `expo-router` plugin config.\n\n'+JSON.stringify({expo:{plugins:[['expo-router',{unstable_useServerMiddleware:!0}]]}},null,2)),null;const s=o.filter(t=>/^\.\/\+middleware\.[tj]sx?$/.test(t)),u=o.filter(t=>!s.includes(t));if(u.length>0)throw new Error(`The middleware file can only be placed at the root level. Remove the following files: ${u.join(', ')}`);if(0===s.length)return null;s.length;const l=s[0],c={loadRoute(){if(!n.ignoreRequireErrors)return t(l);try{return t(l)}catch{return{}}},contextKey:l};return n.internal_stripLoadRoute&&delete c.loadRoute,c}function u(o,s){s.importMode;const u=[/^\.\/\+(html|native-intent)\.[tj]sx?$/];s.ignore&&u.push(...s.ignore),s.preserveApiRoutes||u.push(/\+api$/,/\+api\.[tj]sx?$/),u.push(/\+middleware$/,/\+middleware\.[tj]sx?$/);const p={files:new Map,subdirectories:new Map};let w=!1,$=!1;const b=o.keys(),S={},_={};let E;const K=()=>(E??=b.map(n=>({contextKey:n,nameWithoutInvisible:c((0,t.removeSupportedExtensions)(n))})),E);if(s.preserveRedirectAndRewrites){if(s.redirects)for(const t of s.redirects){const o=f(t.source),p=l(t.source),h=(0,n.shouldLinkExternally)(t.destination),y=h?t.destination:c(t.destination);if(u.some(t=>t.test(o)))continue;const w=h?void 0:K().find(t=>t.nameWithoutInvisible===y),x=h?y:w?.nameWithoutInvisible,R=h?y:w?.contextKey;if(R&&void 0!==x)b.push(o),S[p]={source:p,destination:x,destinationContextKey:R,permanent:Boolean(t.permanent),external:h,methods:t.methods};else if(s.preserveApiRoutes)throw new Error(`Redirect destination "${t.destination}" does not exist.`)}if(s.rewrites)for(const t of s.rewrites){const n=f(t.source),o=l(t.source),p=b.includes(n)?l(t.destination):c(t.destination);if(u.some(t=>t.test(n)))continue;const h=K().find(t=>t.nameWithoutInvisible===p),y=h?.nameWithoutInvisible,w=h?.contextKey;if(w&&void 0!==y)b.push(n),_[o]={source:o,destination:y,destinationContextKey:w,methods:t.methods};else if(s.preserveApiRoutes)throw new Error(`Rewrite destination "${t.destination}" does not exist.`)}}const j=new Set;for(const t of b){if(u.some(n=>n.test(t)))continue;$=!0;const n=h(t,s,S,_);if(n.specificity<0)continue;let l={type:n.isApi?'api':n.isLayout?'layout':'route',loadRoute(){let n;if(s.ignoreRequireErrors)try{n=o(t)}catch{n={}}else n=o(t);return n},contextKey:t,route:'',dynamic:null,children:[]};if(n.isRedirect){if(j.has(n.route))continue;const t=S[n.route];l.destinationContextKey=t.destinationContextKey,l.permanent=t.permanent,l.generated=!0,'route'===l.type&&(l=s.getSystemRoute({type:'redirect',route:t.destination,defaults:l,redirectConfig:t})),t.methods&&(l.methods=t.methods),l.type='redirect',j.add(n.route)}if(n.isRewrite){if(j.has(n.route))continue;const t=_[n.route];l.destinationContextKey=t.destinationContextKey,l.generated=!0,'route'===l.type&&(l=s.getSystemRoute({type:'rewrite',route:t.destination,defaults:l,rewriteConfig:t})),t.methods&&(l.methods=t.methods),l.type='rewrite',j.add(n.route)}for(const t of y(n.route)){const o=t.split('/').slice(0,-1);let u=p;for(const t of o){let n=u.subdirectories.get(t);n||(n={files:new Map,subdirectories:new Map},u.subdirectories.set(t,n)),u=n}if(l=Object.assign({},l,{route:t}),n.isLayout){u.layout??=[];u.layout[n.specificity]||(l=v(l,s),u.layout[n.specificity]=l)}else if(n.isApi){const n=`${t}+api`;let o=u.files.get(n);o||(o=[],u.files.set(n,o));o[0]||(o[0]=l)}else{let o=u.files.get(t);o||(o=[],u.files.set(t,o));o[n.specificity]||(w||=!0,o[n.specificity]=l)}}}return $?(p.layout||(p.layout=[s.getSystemRoute({type:'layout',route:''})]),s.skipGenerated||(w&&!1!==s.sitemap&&x(p,s),!1!==s.notFound&&R(p,s)),p):null}function l(n){return(0,t.removeFileSystemExtensions)((0,t.removeFileSystemDots)(n)).replace(/^\//,'')}function c(n){return(0,t.stripInvisibleSegmentsFromPath)(l(n))}function f(t){const n=l(t);return`./${n}${/\.[tj]sx?$/.test(n)?'':'.js'}`}function p(t,n,o,s=""){if(t.layout){const u=o;o=b(t.layout),u&&u.children.push(o),n.internal_stripLoadRoute&&delete o.loadRoute;const l=o.route.replace(s,'');s=o.route?`${o.route}/`:'',o.route=l,o.dynamic=w(o.contextKey.slice(0))}if(!o)throw new Error('Expo Router Internal Error: No nearest layout');for(const u of t.files.values()){const t=b(u);t.route=t.route.replace(s,''),t.dynamic=w(t.route),n.internal_stripLoadRoute&&delete t.loadRoute,o.children.push(t)}for(const u of t.subdirectories.values())p(u,n,o,s);return o}function h(n,s,u,l){const c=(0,t.removeSupportedExtensions)((0,t.removeFileSystemDots)(n));let f=c;const p=(0,t.removeFileSystemDots)(n).split('/'),h=p[p.length-1],[y,w]=(0,t.removeSupportedExtensions)(h).split('.'),x='_layout'===y,R=n.match(/\+api\.(\w+\.)?[jt]sx?$/);if(y.startsWith('(')&&y.endsWith(')'))throw new Error(`Invalid route ${n}. Routes cannot end with '(group)' syntax`);if(!R&&h.startsWith('+')&&'+not-found'!==y){const t=[...p.slice(0,-1),h.slice(1)].join('/');throw new Error(`Invalid route ${n}. Route nodes cannot start with the '+' character. "Rename it to ${t}"`)}let v=0;const $=o.has(w),b=s.platformRoutes??!0;if($){if(b&&s.platform?w===s.platform?v=2:'native'===w&&'web'!==s.platform?v=1:w!==s.platform&&(v=-1):v=-1,R&&0!==v)throw new Error(`API routes cannot have platform extensions. Remove '.${w}' from '${n}'`);f=f.replace(new RegExp(`.${w}$`),'')}return{route:f,specificity:v,isLayout:x,isApi:R,isRedirect:c in u,isRewrite:c in l}}function y(n,o=new Set){const s=(0,t.matchArrayGroupName)(n);if(!s)return o.add(n),o;const u=s.split(',');if(new Set(u).size!==u.length)throw new Error(`Array syntax cannot contain duplicate group name "${u}" in "${n}".`);if(1===u.length)return o.add(n),o;for(const t of u)y(n.replace(s,t.trim()),o);return o}function w(n){const o=n.split('/').map(n=>'+not-found'===n?{name:'+not-found',deep:!0,notFound:!0}:(0,t.matchDynamicName)(n)??null).filter(t=>!!t);return 0===o.length?null:o}function x(t,n){!t.files.has('_sitemap')&&n.getSystemRoute&&t.files.set('_sitemap',[n.getSystemRoute({type:'route',route:'_sitemap'})])}function R(t,n){!t.files.has('+not-found')&&n.getSystemRoute&&t.files.set('+not-found',[n.getSystemRoute({type:'route',route:'+not-found'})])}function v(n,o){const s=(0,t.matchLastGroupName)(n.route),u=n.children.find(t=>t.route.replace(/\/index$/,'')===s);let l=u?.route;const c=n.loadRoute();if(c?.unstable_settings){try{l=c.unstable_settings.anchor??c.unstable_settings.initialRouteName??l}catch(t){if(t instanceof Error&&!t.message.match(/You cannot dot into a client module/))throw t}if(s){l=c.unstable_settings?.[s]?.anchor??c.unstable_settings?.[s]?.initialRouteName??l}}return Object.assign({},n,{route:n.route.replace(/\/?_layout$/,''),children:[],initialRouteName:l})}function $(n,o,s=[]){if('route'===n.type)n.entryPoints=[...new Set([...s,n.contextKey])];else if('redirect'===n.type)n.entryPoints=[...new Set([...s,n.destinationContextKey])];else if('layout'===n.type){if(!n.children)throw new Error(`Layout "${n.contextKey}" does not contain any child routes`);s=[...s,n.contextKey];const u=(0,t.matchGroupName)(n.route),l=n.children.find(t=>t.route.replace(/\/index$/,'')===u);let c=l?.route;if(!o.internal_stripLoadRoute){const t=n.loadRoute();if(t?.unstable_settings){try{c=t.unstable_settings.anchor??t.unstable_settings.initialRouteName??c}catch(t){if(t instanceof Error&&!t.message.match(/You cannot dot into a client module/))throw t}if(u){const n=t.unstable_settings?.[u]?.anchor??t.unstable_settings?.[u]?.initialRouteName;c=n??c}}}if(c){const t=n.children.find(t=>t.route===c);if(!t){const t=n.children.filter(t=>!t.generated).map(t=>`'${t.route}'`).join(', ');throw u?new Error(`Layout ${n.contextKey}
6294 has invalid anchor '${c}' for group '(${u})'. Valid options are: ${t}`):new Error(`Layout ${n.contextKey} has invalid anchor '${c}'. Valid options are: ${t}`)}n.initialRouteName=c,s.push(t.contextKey)}for(const t of n.children)$(t,o,s)}}function b(t){const n=t[t.length-1];if(!t[0])throw new Error(`The file ${n.contextKey} does not have a fallback sibling file without a platform extension.`);return t[t.length-1]}},713,[497,702]);
6295__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=r(d[0]),o=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var s=Object.getOwnPropertyDescriptor(n,o);s&&!("get"in s?!n.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,s)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),s=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(n){if(n&&n.__esModule)return n;var s={};if(null!=n)for(var u=t(n),c=0;c<u.length;c++)"default"!==u[c]&&o(s,n,u[c]);return i(s,n),s});Object.defineProperty(e,"__esModule",{value:!0}),e.NavigatorContext=void 0,e.Navigator=N,e.useNavigatorContext=O,e.Slot=function(t){const o=(0,v.useContextKey)(),i=c.use(e.NavigatorContext);if(i?.contextKey!==o)return n.jsx(b,Object.assign({},t));return n.jsx(p,{})},e.DefaultNavigator=function(){return n.jsx(l.SafeAreaView,{style:{flex:1},children:n.jsx(b,{})})};const u=r(d[1]),c=s(r(d[2])),l=(r(d[3]),r(d[4])),f=r(d[5]),v=r(d[6]),x=r(d[7]),h=r(d[8]),j=r(d[9]);function N({initialRouteName:t,screenOptions:o,children:i,router:s,routerOptions:c}){const l=(0,v.useContextKey)(),{screens:N,children:O,protectedScreens:b}=(0,h.useFilterScreenChildren)(i,{isCustomNavigator:!0,contextKey:l}
6295),p=(0,j.useSortedScreens)(N??[],b);s||=x.StackRouter;const y=(0,u.useNavigationBuilder)(s,Object.assign({},c,{id:l,children:p||[n.jsx(f.Screen,{},"default")],screenOptions:o,initialRouteName:t}));return p.length?n.jsx(e.NavigatorContext.Provider,{value:Object.assign({},y,{contextKey:l,router:s}),children:O}):(console.warn(`Navigator at "${l}" has no children.`),null)}function O(){const t=c.use(e.NavigatorContext);if(!t)throw new Error('useNavigatorContext must be used within a <Navigator />');return t}function b(t){const o=(0,v.useContextKey)(),{screens:i,protectedScreens:s}=(0,h.useFilterScreenChildren)([],{contextKey:o}),{state:c,descriptors:l,NavigationContent:f}=(0,u.useNavigationBuilder)(x.StackRouter,Object.assign({},t,{id:o,children:(0,j.useSortedScreens)(i??[],s)}));return n.jsx(f,{children:l[c.routes[c.index].key].render()})}function p(){const t=O(),{state:n,descriptors:o}=t;return o[n.routes[n.index].key]?.render()??null}e.NavigatorContext=c.createContext(null),N.Slot=p,N.useContext=O,N.Screen=f.Screen},714,[175,366,34,715,540,658,496,494,495,505]);
6296__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"controlEdgeToEdgeValues",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"isEdgeToEdge",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isEdgeToEdgeFromLibrary",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"isEdgeToEdgeFromProperty",{enumerable:!0,get:function(){return n}});var t=()=>!0,n=()=>!0,o=()=>!0,u=t=>{}},715,[]);
6297__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),n=r(d[1]);const o=["style","leftIcon","rightIcon","filename","level","info"];var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getNavOptions=function(){return{title:'sitemap',presentation:'modal',headerLargeTitle:!1,headerTitleStyle:{color:'white'},headerShown:!0,headerTintColor:'white',headerLargeTitleStyle:{color:'white'},headerStyle:{backgroundColor:'black',borderBottomColor:'#323232'},header:()=>{const t='android'===u.Platform.OS?h.SafeAreaView:u.View;return n.jsx(t,{style:H.header,children:n.jsxs(u.View,{style:H.headerContent,children:[n.jsx(u.View,{style:H.headerIcon,children:n.jsx(D,{})}),n.jsx(u.Text,{role:"heading","aria-level":1,style:H.title,children:"Sitemap"})]})})}}},e.Sitemap=function(){return n.jsx(f.NoSSR,{children:n.jsx(I,{})})};const s=l(r(d[2])),c=l(r(d[3])),u=r(d[4]),h=r(d[5]),f=r(d[6]),x=r(d[7]),y=r(d[8]),j=r(d[9]),p=r(d[10]),b=20;function I(){const t=(0,y.useSitemap)(),o=c.default.useMemo(()=>t?.children.filter(({isInternal:t})=>!t)??[],[t]);return n.jsxs(u.View,{style:H.container,testID:"expo-router-sitemap",children:[p.canOverrideStatusBarBehavior&&n.jsx(u.StatusBar,{barStyle:"light-content"}),n.jsxs(u.ScrollView,{contentContainerStyle:H.scroll,automaticallyAdjustContentInsets:!0,contentInsetAdjustmentBehavior:"automatic",children:[o.map(t=>n.jsx(u.View,{testID:"sitemap-item-container",style:H.itemContainer,children:n.jsx(w,{node:t})},t.contextKey)),n.jsx(L,{})]})]})}function w({node:t,level:o=0}){const l=c.default.useMemo(()=>t.children.length>0||t.contextKey.match(/_layout\.[jt]sx?$/),[t]),s=t.isInitial?'Initial':t.isGenerated?'Generated':'';return l?n.jsx(C,{node:t,level:o,info:s}):n.jsx(S,{node:t,level:o,info:s})}function C({node:t,level:o,info:l}){const[s,h]=c.default.useState(!0);return n.jsxs(u.View,{style:H.itemInnerContainer,children:[n.jsx(v,{style:{opacity:.4},leftIcon:n.jsx(k,{}),rightIcon:n.jsx(T,{rotation:s?0:180}),filename:t.filename,level:o,info:l,onPress:()=>h(t=>!t)}),!s&&t.children.map(l=>n.jsx(w,{node:l,level:o+(t.isGenerated?0:1)},l.contextKey))]})}function S({node:t,info:o,level:l}){return n.jsx(j.Link,{accessibilityLabel:t.contextKey,href:t.href,asChild:!0,replace:!0,children:n.jsx(v,{leftIcon:n.jsx(V,{}),rightIcon:n.jsx(z,{}),filename:t.filename,level:l,info:o})})}function v(l){let{style:s,leftIcon:c,rightIcon:h,filename:f,level:y,info:j}=l,p=t(l,o);return n.jsx(x.Pressable,Object.assign({},p,{children:({pressed:t,hovered:o})=>n.jsxs(u.View,{testID:"sitemap-item",style:[H.itemInnerContainer,H.itemPressable,{paddingLeft:b+y*b,backgroundColor:o?'#202425':'#151718'},t&&{backgroundColor:'#26292b'},s],children:[n.jsxs(u.View,{style:{flexDirection:'row',alignItems:'center'},children:[c,n.jsx(u.Text,{style:H.filename,children:f})]}),n.jsxs(u.View,{style:{flexDirection:'row',alignItems:'center'},children:[!!j&&n.jsx(u.Text,{style:[H.virtual,{marginRight:8}],children:j}),h]})]})}))}function V(){return n.jsx(u.Image,{style:H.image,source:r(d[11])})}function k(){return n.jsx(u.Image,{style:H.image,source:r(d[12])})}function z(){return n.jsx(u.Image,{style:H.image,source:r(d[13])})}function D(){return n.jsx(u.Image,{style:H.image,source:r(d[14])})}function T({rotation:t=0}){return n.jsx(u.Image,{style:[H.image,{transform:[{rotate:`${t}deg`}]}],source:r(d[15])})}function L(){const t=window.location.origin,o=s.default.expoConfig?.sdkVersion||'Unknown',l=(()=>
6297{if(!g.HermesInternal)return null;const t=g.HermesInternal?.getRuntimeProperties?.()??{},n=t['OSS Release Version'],o=t['Static Hermes'];return t?o?`${n} (shermes)`:n:null})();return n.jsxs(u.View,{testID:"sitemap-system-info",style:{gap:8,marginTop:16},children:[n.jsx(u.Text,{style:H.systemInfoTitle,children:"System Information"}),n.jsxs(u.View,{style:H.systemInfoContainer,children:[n.jsx(M,{right:"production",children:"Mode"}),n.jsx(M,{right:o,children:"Expo SDK"}),l&&n.jsx(M,{right:l,children:"Hermes version"}),t&&n.jsx(M,{right:t,children:"Location origin"})]})]})}function M({children:t,right:o}){return n.jsxs(u.View,{style:H.systemInfoItem,children:[n.jsx(u.Text,{style:H.systemInfoLabel,numberOfLines:1,ellipsizeMode:"tail",children:t}),n.jsx(u.View,{style:{flex:1}}),n.jsx(u.Text,{selectable:!0,style:[H.systemInfoValue,H.code],numberOfLines:1,ellipsizeMode:"tail",children:o})]})}const H=u.StyleSheet.create({container:{backgroundColor:'black',flex:1,alignItems:'stretch'},header:{backgroundColor:'#151718',paddingVertical:16,borderBottomWidth:1,borderColor:'#313538',boxShadow:'0px 3px 3px rgba(0, 0, 0, 0.33)'},headerContent:Object.assign({flexDirection:'row',alignItems:'center',gap:14,paddingHorizontal:'5%'},u.Platform.select({web:{width:'100%',maxWidth:960,marginHorizontal:'auto'}})),title:{color:'white',fontSize:28,fontWeight:'bold'},scroll:Object.assign({gap:12,paddingHorizontal:'5%',paddingVertical:16},u.Platform.select({ios:{paddingBottom:24},web:{width:'100%',maxWidth:960,marginHorizontal:'auto',paddingBottom:24},default:{paddingBottom:12}})),itemContainer:{borderWidth:1,borderColor:'#313538',backgroundColor:'#151718',borderRadius:12,borderCurve:'continuous'},itemInnerContainer:{backgroundColor:'#151718',borderRadius:12,borderCurve:'continuous',gap:12},itemPressable:Object.assign({paddingHorizontal:b,paddingVertical:16,flexDirection:'row',justifyContent:'space-between',alignItems:'center'},u.Platform.select({web:{transitionDuration:'100ms'}})),filename:{color:'white',fontSize:20,marginLeft:12},virtual:{textAlign:'right',color:'white'},image:{width:24,height:24,resizeMode:'contain',opacity:.6},headerIcon:{width:40,height:40,backgroundColor:'#202425',borderRadius:8,flexDirection:'row',alignItems:'center',justifyContent:'center'},systemInfoContainer:{borderWidth:1,borderColor:'#313538',backgroundColor:'#151718',borderRadius:12,gap:8,borderCurve:'continuous',padding:b},systemInfoTitle:{color:'white',fontSize:18,fontWeight:'600',marginBottom:12,paddingHorizontal:b},systemInfoItem:{flexDirection:'row',gap:8,alignItems:'center',flexWrap:'wrap'},systemInfoLabel:{color:'white',fontSize:16,lineHeight:24},systemInfoValue:{color:'white',fontSize:16,opacity:.7,flexShrink:1,letterSpacing:.5},code:{fontVariant:['tabular-nums'],fontFamily:u.Platform.select({default:"SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace",ios:'ui-monospace',android:'monospace'}),fontWeight:'500'}})},716,[129,175,661,34,608,540,717,718,719,676,720,721,722,723,724,725]);
6298__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NoSSR=function({children:u}){const[f,l]=n.default.useState(!1);if(n.default.useEffect(()=>{l(!0)},[]),!f)return null;return t.jsx(t.Fragment,{children:u})};const n=u(r(d[1]))},717,[175,34]);
6299__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pressable=void 0;const s=r(d[0]);e.Pressable=s.Pressable},718,[608]);
6300__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useSitemap=function(){return(0,t.useMemo)(()=>o.store.routeNode?h(o.store.routeNode,[]):null,[o.store.routeNode])};const t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=(t,n)=>[...n,...t.route.split('/')],u=(t,n)=>'/'+l(t,n).map(t=>(0,s.matchDynamicName)(t)?.deep?t+'/'+Date.now():'index'===t?'':t).filter(Boolean).join('/'),c=t=>{const n=t.contextKey.split('/');if(t.contextKey.match(/_layout\.[jt]sx?$/))return n[n.length-2]+'/'+n[n.length-1];const o=t.route.split('/').length;return n.slice(-o).join('/')},h=(t,o)=>({contextKey:t.contextKey,filename:c(t),href:u(t,o),isInitial:t.initialRouteName===t.route,isInternal:t.internal??!1,isGenerated:t.generated??!1,children:[...t.children].sort(n.sortRoutes).map(n=>h(n,l(t,o)))})},719,[34,496,696,497]);
6301__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
6301Object.defineProperty(e,"__esModule",{value:!0}),e.canOverrideStatusBarBehavior=void 0;const o=t(r(d[0])),s=r(d[1]),n=r(d[2]),u='ios'===s.Platform.OS&&!!o.default.expoConfig?.ios?.infoPlist?.UIViewControllerBasedStatusBarAppearance;e.canOverrideStatusBarBehavior=!(0,n.isEdgeToEdge)()&&!u},720,[661,608,715]);
6302__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png",width:48,height:48}},721,[]);
6303__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png",width:48,height:48}},722,[]);
6304__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png",width:48,height:48}},723,[]);
6305__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png",width:48,height:48}},724,[]);
6306__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png",width:48,height:48}},725,[]);
6307__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Unmatched=function(){return t.jsx(h.NoSSR,{children:t.jsx(b,{})})};const o=r(d[1]),s=r(d[2]),l=n(r(d[3])),c=r(d[4]),u=r(d[5]),h=r(d[6]),f=r(d[7]),x=r(d[8]),p=r(d[9]),y=r(d[10]),j=r(d[11]);function b(){const[n,h]=l.default.useState(!1),b=(0,u.useRouter)(),P=(0,o.useRoute)(),T=(0,x.useNavigation)(),v=(0,u.usePathname)(),L=(0,s.createURL)(v);l.default.useEffect(()=>{h(!0)},[]);const w=T.isFocused(),D=(0,y.isRoutePreloadedInStack)(T.getState(),P);return(0,p.useSafeLayoutEffect)(()=>{(!D||D&&w)&&T.setOptions({title:'Not Found'})},[w,D,T]),t.jsxs(c.View,{testID:"expo-router-unmatched",style:S.container,children:[t.jsx(k,{}),t.jsx(c.Text,{role:"heading","aria-level":1,style:S.title,children:"Unmatched Route"}),t.jsx(c.Text,{role:"heading","aria-level":2,style:[S.subtitle,S.secondaryText],children:"Page could not be found."}),n?t.jsx(f.Link,Object.assign({href:v,replace:!0},c.Platform.select({native:{asChild:!0}}),{children:t.jsx(j.Pressable,{children:({hovered:n,pressed:o})=>t.jsx(c.Text,{style:[S.pageLink,S.secondaryText,c.Platform.select({web:{transitionDuration:'200ms',opacity:1}}),n&&{opacity:.8,textDecorationLine:'underline'},o&&{opacity:.8}],children:L})})})):t.jsx(c.View,{style:[S.pageLink,S.placeholder]}),t.jsxs(c.View,{style:S.linkContainer,children:[t.jsx(j.Pressable,{children:({hovered:n,pressed:o})=>t.jsx(c.Text,{onPress:()=>{b.canGoBack()?b.back():b.replace('/')},style:[S.link,c.Platform.select({web:{transitionDuration:'200ms',opacity:1}}),n&&{opacity:.8,textDecorationLine:'underline'},o&&{opacity:.8}],children:"Go back"})}),t.jsx(c.Text,{style:[S.linkSeparator,S.secondaryText],children:"\u2022"}),t.jsx(f.Link,Object.assign({href:"/_sitemap",replace:!0},c.Platform.select({native:{asChild:!0}}),{children:t.jsx(j.Pressable,{children:({hovered:n,pressed:o})=>t.jsx(c.Text,{style:[S.link,c.Platform.select({web:{transitionDuration:'200ms',opacity:1}}),n&&{opacity:.8,textDecorationLine:'underline'},o&&{opacity:.8}],children:"Sitemap"})})}))]})]})}function k(){return t.jsx(c.Image,{source:r(d[12]),style:S.image})}const S=c.StyleSheet.create({container:{flex:1,backgroundColor:'black',padding:24,paddingBottom:64,alignItems:'center',justifyContent:'center'},image:{width:270,height:168,resizeMode:'contain',marginBottom:28},title:Object.assign({},c.Platform.select({web:{fontSize:64,lineHeight:64},default:{fontSize:56,lineHeight:56}}),{color:'#fff',fontWeight:'800',textAlign:'center'}),subtitle:{fontSize:34,marginTop:4,marginBottom:12,fontWeight:'200',textAlign:'center'},pageLink:{minHeight:20},secondaryText:{color:'#9ba1a6'},placeholder:{backgroundColor:'#9ba1a644',minWidth:180,borderRadius:5},linkContainer:{marginTop:28,flexDirection:'row',gap:12},link:{fontSize:20,textAlign:'center',color:'#52a9ff'},linkSeparator:{fontSize:20}})},726,[175,366,689,34,608,703,717,676,659,503,666,718,727]);
6308__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/node_modules/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png",width:436,height:266}},727,[]);
6309__d(function(g,r,i,a,m,e,d){"use strict";
6309Object.defineProperty(e,"__esModule",{value:!0}),e.defaultRouteInfo=void 0,e.getRouteInfoFromState=function(o){if(!o)return e.defaultRouteInfo;const c='index'in o?o.index??0:0;let p=o.routes[c];if(p.name===t.NOT_FOUND_ROUTE_NAME||p.name===t.SITEMAP_ROUTE_NAME){const n=p.path||(p.name===t.NOT_FOUND_ROUTE_NAME?'/':`/${p.name}`);return Object.assign({},e.defaultRouteInfo,{unstable_globalHref:(0,s.appendBaseUrl)(n),pathname:n,pathnameWithParams:n,segments:[p.name]})}if(p.name!==t.INTERNAL_SLOT_NAME)throw new Error(`Expected the first route to be ${t.INTERNAL_SLOT_NAME}, but got ${p.name}`);o=p.state;const l=[];let f=Object.create(null);for(;o;){p=o.routes['index'in o&&o.index?o.index:0],Object.assign(f,p.params);let t=p.name;t.startsWith('/')&&(t=t.slice(1)),l.push(...t.split('/')),o=p.state}f=Object.fromEntries(Object.entries(f).map(([t,s])=>'string'==typeof s?[t,n(s)]:Array.isArray(s)?[t,s.map(t=>n(t))]:[t,s]));let u=p.params;for(;u&&'screen'in u;){if('string'==typeof u.screen){const t=u.screen.startsWith('/')?u.screen.slice(1):u.screen;l.push(...t.split('/'))}u='object'!=typeof u.params||Array.isArray(u.params)?void 0:u.params}if(p.params&&'screen'in p.params&&'string'===p.params.screen){const t=p.params.screen.startsWith('/')?p.params.screen.slice(1):p.params.screen;l.push(...t.split('/'))}'index'===l[l.length-1]&&l.pop();delete f.screen,delete f.params;const h=new Set,_='/'+l.filter(t=>!(t.startsWith('(')&&t.endsWith(')'))).flatMap(t=>{if('+not-found'===t){const t=f['not-found'];return h.add('not-found'),void 0===t?[]:Array.isArray(t)?t:[t]}if(t.startsWith('[...')&&t.endsWith(']')){let s=t.slice(4,-1);s.endsWith('?')&&(s=s.slice(0,-1));const n=f[s];return h.add(s),n||[]}if(t.startsWith('[')&&t.endsWith(']')){const s=t.slice(1,-1),n=f[s];return h.add(s),n?[n]:[]}return[t]}).join('/'),b=new URLSearchParams(Object.entries(f).flatMap(([t,s])=>h.has(t)?[]:Array.isArray(s)?s.map(s=>[t,s]):[[t,s]]));let A;b.has('#')&&(A=b.get('#')||void 0,b.delete('#'));const O=b.toString();let y=O?_+'?'+O:_;return y=A?y+'#'+A:y,{segments:l,pathname:_,params:f,unstable_globalHref:(0,s.appendBaseUrl)(y),searchParams:b,pathnameWithParams:y,isIndex:!1}};const t=r(d[0]),s=r(d[1]);function n(t){try{return'string'==typeof t?decodeURIComponent(t):t}catch{return t}}e.defaultRouteInfo={unstable_globalHref:'',searchParams:new URLSearchParams,pathname:'/',params:{},segments:[],pathnameWithParams:'/',isIndex:!1}},728,[664,683]);
6310__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Prefetch=function(o){const c=(0,n.useOptionalNavigation)();return(0,t.useLayoutEffect)(()=>{c?.isFocused()&&u.router.prefetch(o.href)},[c,o.href]),null};const t=r(d[0]),u=r(d[1]),n=r(d[2])},729,[34,704,730]);
6311__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useLoadedNavigation=c,e.useOptionalNavigation=function(){const[t,u]=(0,n.useState)(null),s=c();return(0,n.useEffect)(()=>{s(t=>u(t))},[]),t};const t=r(d[0]),n=r(d[1]),u=r(d[2]);function c(){const c=(0,t.useNavigation)(),s=(0,n.useRef)(!0),o=(0,n.useRef)([]);(0,n.useEffect)(()=>(s.current=!0,()=>{s.current=!1}),[]);const f=(0,n.useCallback)(()=>{if(s.current){const t=o.current;o.current=[],t.forEach(t=>{t(c)})}},[c]);(0,n.useEffect)(()=>{u.store.navigationRef.current&&f()},[f]);return(0,n.useCallback)(t=>{o.current.push(t),u.store.navigationRef.current&&f()},[f])}},730,[366,34,696]);
6312__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),o=r(d[1]);const s=["style"];Object.defineProperty(e,"__esModule",{value:!0}),e.Slot=void 0;
6312const l=r(d[2]),n=r(d[3]),c=r(d[4]);var f;e.Slot=(f=l.Slot,(0,n.forwardRef)(function(l,u){let{style:y}=l,S=o(l,s);return y=(0,n.useMemo)(()=>c.StyleSheet.flatten(y),[y]),t.jsx(f,Object.assign({ref:u},S,{style:y}))}))},731,[175,129,732,34,608]);
6313__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);const n=["children"],o=["children"];var l,c=Object.create,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,p=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,y=(t,n,o,l)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let c of u(n))b.call(t,c)||c===o||s(t,c,{get:()=>n[c],enumerable:!(l=f(n,c))||l.enumerable});return t},O={};((t,n)=>{for(var o in n)s(t,o,{get:n[o],enumerable:!0})})(O,{Root:()=>S,Slot:()=>S,Slottable:()=>P,createSlot:()=>v,createSlottable:()=>w}),m.exports=(l=O,y(s({},"__esModule",{value:!0}),l));var j=((t,n,o)=>(o=null!=t?c(p(t)):{},y(!n&&t&&t.__esModule?o:s(o,"default",{value:t,enumerable:!0}),t)))(r(d[1])),h=r(d[2]),_=r(d[3]);function v(o){const l=x(o),c=j.forwardRef((o,c)=>{const{children:s}=o,f=t(o,n),u=j.Children.toArray(s),p=u.find(C);if(p){const t=p.props.children,n=u.map(n=>n===p?j.Children.count(t)>1?j.Children.only(null):j.isValidElement(t)?t.props.children:null:n);return(0,_.jsx)(l,Object.assign({},f,{ref:c,children:j.isValidElement(t)?j.cloneElement(t,void 0,n):null}))}return(0,_.jsx)(l,Object.assign({},f,{ref:c,children:s}))});return c.displayName=`${o}.Slot`,c}var S=v("Slot");function x(n){const l=j.forwardRef((n,l)=>{const{children:c}=n,s=t(n,o);if(j.isValidElement(c)){const t=N(c),n=E(s,c.props);return c.type!==j.Fragment&&(n.ref=l?(0,h.composeRefs)(l,t):t),j.cloneElement(c,n)}return j.Children.count(c)>1?j.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var R=Symbol("radix.slottable");function w(t){const n=({children:t})=>(0,_.jsx)(_.Fragment,{children:t});return n.displayName=`${t}.Slottable`,n.__radixId=R,n}var P=w("Slottable");function C(t){return j.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===R}function E(t,n){const o=Object.assign({},n);for(const l in n){const c=t[l],s=n[l];/^on[A-Z]/.test(l)?c&&s?o[l]=(...t)=>{s(...t),c(...t)}:c&&(o[l]=c):"style"===l?o[l]=Object.assign({},c,s):"className"===l&&(o[l]=[c,s].filter(Boolean).join(" "))}return Object.assign({},t,o)}function N(t){let n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?t.ref:(n=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}},732,[129,34,733,175]);
6314__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=(t,n,f,p)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let s of c(n))l.call(t,s)||s===f||o(t,s,{get:()=>n[s],enumerable:!(p=u(n,s))||p.enumerable});return t},s={};((t,n)=>{for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{composeRefs:()=>y,useComposedRefs:()=>O}),m.exports=(t=s,p(o({},"__esModule",{value:!0}),t));var i=((t,u,c)=>(c=null!=t?n(f(t)):{},p(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)))(r(d[0]));function b(t,n){if("function"==typeof t)return t(n);null!=t&&(t.current=n)}function y(...t){return n=>{let o=!1;const u=t.map(t=>{const u=b(t,n);return o||"function"!=typeof u||(o=!0),u});if(o)return()=>{for(let n=0;n<u.length;n++){const o=u[n];"function"==typeof o?o():b(t[n],null)}}}}function O(...t){return i.useCallback(y(...t),t)}},733,[34]);
6315__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]),n=r(d[1]);const i=["children"];var o,s=this&&this.__createBinding||(Object.create?function(t,n,i,o){void 0===o&&(o=i);var s=Object.getOwnPropertyDescriptor(n,i);s&&!("get"in s?!n.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,o,s)}:function(t,n,i,o){void 0===o&&(o=i),t[o]=n[i]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),l=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},o(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=o(t),l=0;l<i.length;l++)"default"!==i[l]&&s(n,t,i[l]);return u(n,t),n});
6315Object.defineProperty(e,"__esModule",{value:!0}),e.LinkWithPreview=function(o){let{children:s}=o,u=n(o,i);const l=(0,h.useRouter)(),{setOpenPreviewKey:f}=(0,P.useLinkPreviewContext)(),[k,m]=(0,c.useState)(!1),L=String(u.href).split('?')[0],x=(0,c.useRef)(L);(0,c.useEffect)(()=>{if(k){if(x.current!==L)throw new Error('Link does not support changing the href prop after the preview has been opened. Please ensure that the href prop is stable and does not change between renders.')}else x.current=L},[L]);const[{nextScreenId:M,tabPath:S},E]=(0,b.useNextScreenId)();(0,c.useEffect)(()=>{u.replace&&console.warn('Using replace links with preview is not supported')},[u.href,u.replace]);const C=c.default.useMemo(()=>j(s,w.LinkTrigger),[s]),R=c.default.useMemo(()=>j(s,w.LinkMenu),[s]),I=c.default.useMemo(()=>j(s,w.LinkPreview),[s]);!I&&!R||C||console.warn('When you use Link.Preview, you must use Link.Trigger to specify the trigger element.');const T=c.default.useMemo(()=>C??t.jsx(w.LinkTrigger,{children:s}),[C,s]),W=c.default.useMemo(()=>(0,y.shouldLinkExternally)(String(u.href))||!I?null:I,[I,u.href]),B=(0,c.useRef)(!1),D=(0,c.useMemo)(()=>({path:S}),[S]),K=!!I;if(u.replace)return t.jsx(p.BaseExpoRouterLink,Object.assign({children:s},u));return t.jsx(_.NativeLinkPreview,{nextScreenId:O?void 0:M,tabPath:O?void 0:D,onWillPreviewOpen:()=>{K&&(B.current=!1,E(u.href),m(!0))},onPreviewWillClose:()=>{K&&(m(!1),B.current&&!O||f(void 0))},onPreviewDidClose:()=>{K&&B.current&&O&&l.navigate(u.href,{__internal__PreviewKey:M})},onPreviewTapped:()=>{B.current=!0,O||l.navigate(u.href,{__internal__PreviewKey:M})},style:{display:'contents'},disableForceFlatten:!0,children:t.jsxs(v.InternalLinkPreviewContext,{value:{isVisible:k,href:u.href},children:[t.jsx(p.BaseExpoRouterLink,Object.assign({},u,{children:T,ref:u.ref})),W,R]})})};const c=l(r(d[2])),f=r(d[3]),h=r(d[4]),p=r(d[5]),v=r(d[6]),w=r(d[7]),P=r(d[8]),_=r(d[9]),b=r(d[10]),y=r(d[11]),O='ios'===f.Platform.OS&&f.Platform.isPad;function j(t,n){return c.default.Children.toArray(t).find(t=>(0,c.isValidElement)(t)&&t.type===n)}},734,[175,129,34,608,703,678,735,736,672,738,739,702]);
6316__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InternalLinkPreviewContext=void 0;const t=r(d[0]);e.InternalLinkPreviewContext=(0,t.createContext)(void 0)},735,[34]);
6317__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]),n=r(d[1]);const i=["width","height"];var u,l=this&&this.__createBinding||(Object.create?function(t,n,i,u){void 0===u&&(u=i);var l=Object.getOwnPropertyDescriptor(n,i);l&&!("get"in l?!n.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,u,l)}:function(t,n,i,u){void 0===u&&(u=i),t[u]=n[i]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),s=this&&this.__importStar||(u=function(t){return u=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},u(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i=u(t),s=0;s<i.length;s++)"default"!==i[s]&&l(n,t,i[s]);return o(n,t),n});Object.defineProperty(e,"__esModule",{value:!0}),e.LinkMenu=void 0,e.LinkMenuAction=P,e.LinkPreview=function(u){const{children:l,style:o}=u,s=(0,c.use)(f.InternalLinkPreviewContext);return(0,v.useIsPreview)(),null;const{isVisible:b,href:P}=s,_=o??{},{width:j,height:p}=_,O=n(_,i),y={width:j??0,height:p??0};let k;k=l?b?l:null:b?t.jsx(h.HrefPreview,{href:P}):null;return t.jsx(w.NativeLinkPreviewContent,{style:O,preferredContentSize:y,children:k})},e.LinkTrigger=function(n){if(c.default.Children.count(n.children)>1||!(0,c.isValidElement)(n.children)){if(n&&'object'==typeof n&&'onPress'in n)throw new Error('When using Link.Trigger in an asChild Link, you must pass a single child element that will emit onPress event.');return n.children}return t.jsx(b.Slot,Object.assign({},n))};const c=s(r(d[2])),f=r(d[3]),h=r(d[4]),v=r(d[5]),w=r(d[6]),b=r(d[7]);function P(t){return(0,v.useIsPreview)(),null}e.LinkMenu=t=>((0,v.useIsPreview)(),null)},736,[175,129,34,735,737,502,738,731]);
6318__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);
6318Object.defineProperty(e,"__esModule",{value:!0}),e.HrefPreview=function({href:o}){const s=(0,n.useMemo)(()=>S(o),[o]),f=s?.index??0;let p=!1;if(s?.routes[f]?.name===c.INTERNAL_SLOT_NAME){let n=s,u=l.store.state;for(;n&&u;){const t=n.routes[0];if(!1===u.stale&&!u.routeNames?.includes(t.name)){p=!0;break}const o=u.routes.findIndex(o=>o.name===t.name);if(-1===o)break;n=t.state,u=u.routes[o]?.state}if(!p)return t.jsx(N,{hrefState:s,href:o})}const h=o.toString(),x=h.split('/').filter(Boolean);return t.jsx(u.PreviewRouteContext.Provider,{value:{params:{},pathname:h,segments:x},children:t.jsx(j,{})})};const o=r(d[1]),n=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]),l=r(d[6]),f=r(d[7]),p=r(d[8]),h=r(d[9]),x=r(d[10]),v=r(d[11]);function N({hrefState:s,href:c}){const l=(0,h.useNavigation)(),{routeNode:f,params:p,state:N}=_(s),j=N?(0,v.getPathFromState)(N):void 0,S=(0,n.useMemo)(()=>({params:p,pathname:c.toString(),segments:j?.split('/').filter(Boolean)||[]}),[p,c]);if(!f)return null;const T=(0,x.getQualifiedRouteComponent)(f);return t.jsx(u.PreviewRouteContext,{value:S,children:t.jsx(o.NavigationContext,{value:E,children:t.jsx(T,{navigation:l})})})}function j(){const o=(0,p.usePathname)();return t.jsxs(s.View,{style:{flex:1,justifyContent:'center',alignItems:'center',gap:8,backgroundColor:'white'},children:[t.jsx(s.Text,{style:{fontWeight:'600',fontSize:24},children:"Invalid preview"}),t.jsx(s.Text,{style:{fontWeight:'200',fontSize:14},children:o})]})}function S(t){return l.store.getStateForHref(t)}function _(t){const o=t?.index??0;if(t?.routes[o]&&t.routes[o].name!==c.INTERNAL_SLOT_NAME){const n=t.routes[o].name;n!==c.SITEMAP_ROUTE_NAME&&n!==c.NOT_FOUND_ROUTE_NAME||(console.log(l.store.routeNode),console.log(t));const s=`Expo Router Error: Expected navigation state to begin with one of [${(0,f.getRootStackRouteNames)().join(', ')}] routes`;console.warn(s)}const n=t?.routes[o]?.state;let s=n,u=l.store.routeNode;const p={};for(;s&&u;){const t=s.routes[s.index||s.routes.length-1];Object.assign(p,t.params),s=t.state,u=u.children.find(o=>o.route===t.name)}return{params:p,routeNode:u,state:n}}const E={setParams:()=>{},setOptions:()=>{},addListener:()=>()=>{},removeListener:()=>{},isFocused:()=>!0,canGoBack:()=>!1,dispatch:()=>{},navigate:()=>{},goBack:()=>{},reset:()=>{},push:()=>{},pop:()=>{},popToTop:()=>{},navigateDeprecated:()=>{},preload:()=>{},getId:()=>'',getParent:()=>{},getState:()=>({key:'',index:0,routeNames:[],routes:[],type:'',stale:!1})}},737,[175,366,34,608,502,664,696,660,703,659,505,705]);
6319__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.NativeLinkPreviewAction=function(n){return null},e.NativeLinkPreview=function(n){return null},e.NativeLinkPreviewContent=function(n){return null};r(d[1]),r(d[2])},738,[175,347,608]);
6320__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useNextScreenId=function(){const c=(0,s.useRouter)(),{setOpenPreviewKey:f}=(0,n.useLinkPreviewContext)(),[v,l]=(0,t.useState)(),P=(0,t.useRef)(void 0),[R,S]=(0,t.useState)([]);(0,t.useEffect)(()=>u.store.navigationRef.addListener('state',({data:{state:t}})=>{if(P.current&&t){const n=(0,o.getPreloadedRouteFromRootStateByHref)(P.current,t),u=n?.key,s=(0,o.getTabPathFromRootStateByHref)(P.current,t);(u||s.length)&&setTimeout(()=>{l(u),f(u),S(s)}),P.current=void 0}}),[]);const h=(0,t.useCallback)(t=>{l(void 0),c.prefetch(t),P.current=t},[c.prefetch]);return[{nextScreenId:v,tabPath:R},h]};const t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),s=r(d[4])},739,[34,672,740,696,703]);
6321__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTabPathFromRootStateByHref=function(a,s){const u=t.store.getStateForHref((0,o.resolveHref)(a)),i=s;if(!u||!i)return[];const{navigationRoutes:f}=(0,n.findDivergentState)(u,i,!0);if(!f.length)return[];const c=[];return f.forEach((t,n,o)=>{if('tab'===t.state?.type){const a=t.state,s=a.routes[a.index].key;if(!o[n+1])throw new Error(`New tab route is missing for ${t.key}. This is likely an internal Expo Router bug.`);const u=o[n+1].key;c.push({oldTabKey:s,newTabKey:u})}}),c},e.getPreloadedRouteFromRootStateByHref=function(u,i){const f=t.store.getStateForHref((0,o.resolveHref)(u)),c=i;
6321if(!f||!c)return;const{navigationState:l,actionStateRoute:p}=(0,n.findDivergentState)(f,c,!0);if(!l||!p)return;if('stack'===l.type){const t=l,o=(0,n.getPayloadFromStateRoute)(p),u=t.preloadedRoutes.find(t=>t.name===p.name&&s((0,a.removeInternalExpoRouterParams)(t.params),(0,a.removeInternalExpoRouterParams)(o.params))),i=t.routes[t.index];if(i.name===u?.name&&s((0,a.removeInternalExpoRouterParams)(i.params??{}),(0,a.removeInternalExpoRouterParams)(o.params??{})))return;return u}return},e.deepEqual=s;const t=r(d[0]),n=r(d[1]),o=r(d[2]),a=r(d[3]);function s(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if('object'!=typeof t||'object'!=typeof n)return!1;const o=Object.keys(t);return o.length===Object.keys(n).length&&o.every(o=>s(t[o],n[o]))}},740,[696,684,665,673]);
6322__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Redirect=function({href:n,relativeToDirectory:u,withAnchor:s}){const l=(0,t.useRouter)(),f=(0,o.useIsPreview)();return(0,c.useFocusEffect)(()=>{if(!f)try{l.replace(n,{relativeToDirectory:u,withAnchor:s})}catch(t){console.error(t)}}),null};const t=r(d[0]),c=r(d[1]),o=r(d[2])},741,[703,742,502]);
6323__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,c)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)},function(u){if(u&&u.__esModule)return u;var c={};if(null!=u)for(var i=t(u),s=0;s<i.length;s++)"default"!==i[s]&&n(c,u,i[s]);return o(c,u),c});Object.defineProperty(e,"__esModule",{value:!0}),e.useFocusEffect=function(t,n){const o=(0,i.useOptionalNavigation)(),u=(0,s.useNavigation)();if(void 0!==n){const t="You passed a second argument to 'useFocusEffect', but it only accepts one argument. If you want to pass a dependency array, you can use 'React.useCallback':\n\nuseFocusEffect(\n  React.useCallback(() => {\n    // Your code here\n  }, [depA, depB])\n);\n\nSee usage guide: https://reactnavigation.org/docs/use-focus-effect";console.error(t)}c.useEffect(()=>{if(!u||!o)return;let n,c=!1;const i=()=>{const n=t();if(void 0===n||'function'==typeof n)return n};u.isFocused()&&(n=i(),c=!0);const s=u.addListener('focus',()=>{c||(void 0!==n&&n(),n=i(),c=!0)}),f=u.addListener('blur',()=>{void 0!==n&&n(),n=void 0,c=!1});return()=>{void 0!==n&&n(),s(),f()}},[t,u,o])};const c=u(r(d[0])),i=r(d[1]),s=r(d[2])},742,[34,730,659]);
6324__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tabRouterOverride=void 0;function t(t){return'REPLACE'===t.type}e.tabRouterOverride=n=>Object.assign({},n,{getStateForAction:(o,s,c)=>{if(s.target&&s.target!==o.key)return null;if(t(s)){let t=n.getStateForAction(o,Object.assign({},s,{type:'JUMP_TO'}),c);if(!t||void 0===t.index||!Array.isArray(t.history))return null;if(0!==t.index){const n=t.index-1;t=Object.assign({},t,{key:`${t.key}-replace`,history:[...t.history.slice(0,n),...t.history.splice(t.index)]})}return t}return n.getStateForAction(o,s,c)}})},743,[]);
6325__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var i=Object.getOwnPropertyDescriptor(n,o);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,i)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__exportStar||function(t,o){for(var u in t)"default"===u||Object.prototype.hasOwnProperty.call(o,u)||n(o,t,u)},i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},t(n)}
6325,function(u){if(u&&u.__esModule)return u;var i={};if(null!=u)for(var c=t(u),f=0;f<c.length;f++)"default"!==c[f]&&n(i,u,c[f]);return o(i,u),i});Object.defineProperty(e,"__esModule",{value:!0}),e.useFocusEffect=e.useNavigation=e.SplashScreen=e.ErrorBoundary=e.useSitemap=e.Sitemap=e.Unmatched=e.ExpoRoot=e.Slot=e.Navigator=e.withLayoutContext=e.useIsPreview=e.router=e.useRootNavigationState=e.useRootNavigation=e.useSegments=e.useLocalSearchParams=e.useGlobalSearchParams=e.useNavigationContainerRef=e.usePathname=e.useUnstableGlobalHref=e.useRouter=void 0;const c=r(d[0]);Object.defineProperty(e,"Navigator",{enumerable:!0,get:function(){return c.Navigator}}),Object.defineProperty(e,"Slot",{enumerable:!0,get:function(){return c.Slot}});var f=r(d[1]);Object.defineProperty(e,"useRouter",{enumerable:!0,get:function(){return f.useRouter}}),Object.defineProperty(e,"useUnstableGlobalHref",{enumerable:!0,get:function(){return f.useUnstableGlobalHref}}),Object.defineProperty(e,"usePathname",{enumerable:!0,get:function(){return f.usePathname}}),Object.defineProperty(e,"useNavigationContainerRef",{enumerable:!0,get:function(){return f.useNavigationContainerRef}}),Object.defineProperty(e,"useGlobalSearchParams",{enumerable:!0,get:function(){return f.useGlobalSearchParams}}),Object.defineProperty(e,"useLocalSearchParams",{enumerable:!0,get:function(){return f.useLocalSearchParams}}),Object.defineProperty(e,"useSegments",{enumerable:!0,get:function(){return f.useSegments}}),Object.defineProperty(e,"useRootNavigation",{enumerable:!0,get:function(){return f.useRootNavigation}}),Object.defineProperty(e,"useRootNavigationState",{enumerable:!0,get:function(){return f.useRootNavigationState}});var s=r(d[2]);Object.defineProperty(e,"router",{enumerable:!0,get:function(){return s.router}}),u(r(d[3]),e),u(r(d[4]),e);var l=r(d[5]);Object.defineProperty(e,"useIsPreview",{enumerable:!0,get:function(){return l.useIsPreview}});var b=r(d[6]);Object.defineProperty(e,"withLayoutContext",{enumerable:!0,get:function(){return b.withLayoutContext}});var m=r(d[7]);Object.defineProperty(e,"ExpoRoot",{enumerable:!0,get:function(){return m.ExpoRoot}});var p=r(d[8]);Object.defineProperty(e,"Unmatched",{enumerable:!0,get:function(){return p.Unmatched}});var v=r(d[9]);Object.defineProperty(e,"Sitemap",{enumerable:!0,get:function(){return v.Sitemap}});var P=r(d[10]);Object.defineProperty(e,"useSitemap",{enumerable:!0,get:function(){return P.useSitemap}});var y=r(d[11]);Object.defineProperty(e,"ErrorBoundary",{enumerable:!0,get:function(){return y.ErrorBoundary}}),e.SplashScreen=i(r(d[12]));var O=r(d[13]);Object.defineProperty(e,"useNavigation",{enumerable:!0,get:function(){return O.useNavigation}});var j=r(d[14]);Object.defineProperty(e,"useFocusEffect",{enumerable:!0,get:function(){return j.useFocusEffect}})},744,[714,703,704,676,736,502,495,745,726,716,719,753,654,659,742]);
6326__d(function(g,r,_i,a,_m,e,d){"use strict";var t=r(d[0]),n=r(d[1]);const o=["wrapper"];var i,c=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&!("get"in c?!n.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,c)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),s=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),l=this&&this.__importStar||(i=function(t){return i=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},i(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var o=i(t),l=0;l<o.length;l++)"default"!==o[l]&&c(n,t,o[l]);return s(n,t),n});Object.defineProperty(e,"__esModule",{value:!0}),e.ExpoRoot=function(i){let{wrapper:c=h.Fragment}=i,s=n(i,o);const l=(0,h.useMemo)(()=>({children:n})=>t.jsx(c,{children:t.jsx(b.LinkPreviewContextProvider,{children:t.jsxs(f.SafeAreaProvider,{initialMetrics:M,children:[N.canOverrideStatusBarBehavior&&t.jsx(E,{}),n]})})}),[c]);return t.jsx(C,Object.assign({},s,{wrapper:l}))};const u=r(d[2]),h=l(r(d[3])),p=r(d[4]),f=r(d[5]),m=r(d[6]),v=r(d[7]),j=r(d[8]),_=r(d[9]),x=r(d[10]),S=r(d[11]),O=r(d[12]),b=r(d[13]),w=r(d[14]),N=r(d[15]),y=r(d[16]),P=l(r(d[17])),A=r(d[18]),M='web'===p.Platform.OS?{frame:{x:0,y:0,width:0,height:0},insets:{top:0,left:0,right:0,bottom:0}}:void 0,R={enabled:!1};function E(){return t.jsx(p.StatusBar,{barStyle:'light'===(0,p.useColorScheme)()?'dark-content':'light-content'})}const T='web'===p.Platform.OS&&'undefined'!=typeof window?new URL(window.location.href):void 0;function C({context:n,location:o=T,wrapper:i=h.Fragment,linking:c={}}){const s=(0,h.useMemo)(()=>{let t={};if(o instanceof URL)t={location:{pathname:o.pathname+o.hash,search:o.search}};else if('string'==typeof o){const n=new URL(o,'http://placeholder.base');t={location:{pathname:n.pathname,search:n.search}}}return t},[]),l=s.location?`${s.location.pathname}${s.location.search}`:void 0,u=(0,_.useStore)(n,c,l);return(0,v.useDomComponentNavigation)(),u.shouldShowTutorial()?(P.hideAsync(),null):t.jsx(S.StoreContext.Provider,{value:u,children:t.jsx(j.NavigationContainer,{ref:u.navigationRef,initialState:u.state,linking:u.linking,onUnhandledAction:U,documentTitle:R,onReady:u.onReady,children:t.jsx(x.ServerContext.Provider,{value:s,children:t.jsx(i,{children:t.jsx(L,{})})})})})}function L(){const n=[t.jsx(w.Screen,{name:m.INTERNAL_SLOT_NAME,component:_.store.rootComponent})];(0,O.shouldAppendNotFound)()&&n.push(t.jsx(w.Screen,{name:m.NOT_FOUND_ROUTE_NAME,component:A.Unmatched})),(0,O.shouldAppendSitemap)()&&n.push(t.jsx(w.Screen,{name:m.SITEMAP_ROUTE_NAME,component:y.Sitemap}));const{state:o,descriptors:i,NavigationContent:c}=(0,u.useNavigationBuilder)(u.StackRouter,{children:n,id:m.INTERNAL_SLOT_NAME});return t.jsx(c,{children:i[o.routes[o.index].key].render()})}let U;U=function(){}}
6326,745,[175,129,366,34,608,540,664,746,749,696,711,506,660,672,508,720,716,654,726]);
6327__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.useDomComponentNavigation=function(){u.default.useEffect(()=>()=>{},[])};r(d[0]);const u=t(r(d[1]));r(d[2]),r(d[3])},746,[747,34,682,684]);
6328__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})},747,[748]);
6329__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e._emitGlobalEvent=function(n){t.forEach(t=>t(n))},Object.defineProperty(e,"addGlobalDomEventListener",{enumerable:!0,get:function(){return n}});const t=new Set;const n=n=>(t.add(n),()=>{t.delete(n)})},748,[]);
6330__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),n=r(d[1]);const o=["direction","theme","linking","fallback","documentTitle","onReady","onStateChange"];var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationContainer=void 0;const u=r(d[2]),s=l(r(d[3])),c=r(d[4]),f=l(r(d[5])),h=r(d[6]),S=r(d[7]),v=r(d[8]),C=r(d[9]),T=r(d[10]);globalThis.REACT_NAVIGATION_DEVTOOLS=new WeakMap,e.NavigationContainer=s.default.forwardRef(function(l,_){let{direction:k=(c.I18nManager.getConstants().isRTL?'rtl':'ltr'),theme:p=u.DefaultTheme,linking:P,fallback:b=null,documentTitle:x,onReady:A,onStateChange:L}=l,O=n(l,o);const R=!!P&&!1!==P.enabled;P?.config&&(0,u.validatePathConfig)(P.config);const j=s.default.useRef(null);(0,h.useBackButton)(j),(0,S.useDocumentTitle)(j,x),(0,T.useImperativeApiEmitter)(j);const[F,I]=s.default.useState(),{getInitialState:N}=(0,v.useLinking)(j,Object.assign({enabled:R,prefixes:[]},P),I),E=s.default.useMemo(()=>({options:P}),[P]),D=s.default.useMemo(()=>({lastUnhandledLink:F,setLastUnhandledLink:I}),[F,I]),M=(0,f.default)(()=>{const t=j.current?.getCurrentRoute()?.path;I(n=>{if(n!==t)return n}),A?.()}),y=(0,f.default)(t=>{const n=j.current?.getCurrentRoute()?.path;I(t=>{if(t!==n)return t}),L?.(t)});s.default.useEffect(()=>{j.current&&REACT_NAVIGATION_DEVTOOLS.set(j.current,{get linking(){return Object.assign({},P,{enabled:R,prefixes:P?.prefixes??[],getStateFromPath:P?.getStateFromPath??u.getStateFromPath,getPathFromState:P?.getPathFromState??u.getPathFromState,getActionFromState:P?.getActionFromState??u.getActionFromState})}})});const[B,U]=(0,C.useThenable)(N);return s.default.useImperativeHandle(_,()=>j.current),null!=O.initialState||!R||B?t.jsx(u.LocaleDirContext.Provider,{value:k,children:t.jsx(u.UNSTABLE_UnhandledLinkingContext.Provider,{value:D,children:t.jsx(u.LinkingContext.Provider,{value:E,children:t.jsx(u.BaseNavigationContainer,Object.assign({},O,{theme:p,onReady:M,onStateChange:y,initialState:null==O.initialState?U:O.initialState,ref:j}))})})}):t.jsx(u.ThemeProvider,{value:p,children:b})})},749,[175,129,366,34,608,381,750,751,709,752,704]);
6331__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useBackButton=function(t){}},750,[]);
6332__d(function(g,r,_i,a,_m,_e,d){"use strict";var e,t=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,u)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(o){if(o&&o.__esModule)return o;var u={};if(null!=o)for(var i=e(o),c=0;c<i.length;c++)"default"!==i[c]&&t(u,o,i[c]);return n(u,o),u});
6332Object.defineProperty(_e,"__esModule",{value:!0}),_e.useDocumentTitle=function(e,{enabled:t=!0,formatter:n=(e,t)=>e?.title??t?.name}={}){u.useEffect(()=>{if(!t)return;const o=e.current;if(o){const e=n(o.getCurrentOptions(),o.getCurrentRoute());document.title=e}return o?.addListener('options',e=>{const t=n(e.data.options,o?.getCurrentRoute());document.title=t})})};const u=o(r(d[0]))},751,[34]);
6333__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,i){void 0===i&&(i=u);var o=Object.getOwnPropertyDescriptor(n,u);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,i,o)}:function(t,n,u,i){void 0===i&&(i=u),t[i]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var c=t(i),l=0;l<c.length;l++)"default"!==c[l]&&n(o,i,c[l]);return u(o,i),o});Object.defineProperty(e,"__esModule",{value:!0}),e.useThenable=function(t){const[n]=o.useState(t);let u=[!1,void 0];n.then(t=>{u=[!0,t]});const[i,c]=o.useState(u),[l]=i;return o.useEffect(()=>{let t=!1;return l||(async()=>{let u;try{u=await n}finally{t||c([!0,u])}})(),()=>{t=!0}},[n,l]),i};const o=i(r(d[0]))},752,[34]);
6334__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorBoundary=function({error:u,retry:b}){const y=(0,l.use)(o.BottomTabBarHeightContext)?n.View:s.SafeAreaView,S=u instanceof h.ReactServerError;return t.jsx(n.View,{style:w.container,children:t.jsxs(y,{style:{flex:1,gap:8,maxWidth:720,marginHorizontal:'auto'},children:[S?t.jsx(f,{error:u}):t.jsx(x,{error:u}),t.jsx(n.View,{style:{flex:1}}),!1,t.jsx(c.Pressable,{testID:"router_error_retry",onPress:b,children:({hovered:o,pressed:l})=>t.jsx(n.View,{style:[w.buttonInner,(o||l)&&{backgroundColor:'white'}],children:t.jsx(n.Text,{style:[w.buttonText,{color:o||l?'black':'white'}],children:"Retry"})})})]})})};
6334const o=r(d[1]),l=r(d[2]),n=r(d[3]),s=r(d[4]),c=r(d[5]),h=(r(d[6]),r(d[7]));function x({error:o}){return t.jsxs(n.View,{style:{marginBottom:12,gap:4,flexWrap:'wrap'},children:[t.jsx(n.Text,{role:"heading","aria-level":1,style:w.title,children:"Something went wrong"}),t.jsxs(n.Text,{testID:"router_error_message",role:"heading","aria-level":2,style:w.errorMessage,children:["Error: ",o.message]})]})}const u={404:'NOT_FOUND',500:'INTERNAL_SERVER_ERROR',503:'SERVICE_UNAVAILABLE',504:'GATEWAY_TIMEOUT'};function f({error:o}){let l=String(o.statusCode);l+=': '+(u[o.statusCode]??'Server Error');const s=o.headers.get('cf-ray'),c=o.headers.get('Date');return t.jsxs(n.View,{style:{padding:12,gap:8},children:[t.jsx(n.Text,{selectable:!0,allowFontScaling:!0,style:{fontSize:n.Platform.select({web:24,default:16}),fontWeight:'bold',marginBottom:4,color:'white'},children:l}),t.jsx(n.ScrollView,{style:{borderColor:'rgba(255,255,255,0.5)',borderTopWidth:n.StyleSheet.hairlineWidth,borderBottomWidth:n.StyleSheet.hairlineWidth,maxHeight:150},contentContainerStyle:{paddingVertical:4},children:t.jsx(n.Text,{testID:"router_error_message",selectable:!0,allowFontScaling:!0,style:{color:'white'},children:o.message})}),t.jsx(b,{title:"Code",right:o.statusCode}),s&&t.jsx(b,{title:"ID",right:s}),c&&t.jsx(b,{title:"Date",right:c}),o.url&&t.jsx(n.Text,{selectable:!0,allowFontScaling:!0,style:{fontSize:14,opacity:.5,color:'white'},children:o.url})]})}function b({title:o,right:l}){const s={fontSize:16,color:'white'};return t.jsxs(n.View,{style:{flexDirection:'row',justifyContent:'space-between'},children:[t.jsx(n.Text,{selectable:!0,allowFontScaling:!0,style:s,children:o}),l&&t.jsx(n.Text,{selectable:!0,allowFontScaling:!0,style:[s,w.code],children:l})]})}const w=n.StyleSheet.create({container:{flex:1,backgroundColor:'black',padding:24,alignItems:'stretch',justifyContent:'center'},title:{color:'white',fontSize:n.Platform.select({web:32,default:24}),fontWeight:'bold'},buttonText:Object.assign({fontSize:18,fontWeight:'bold',color:'black'},n.Platform.select({web:{transitionDuration:'100ms'}})),buttonInner:Object.assign({},n.Platform.select({web:{transitionDuration:'100ms'}}),{paddingVertical:12,paddingHorizontal:24,borderColor:'white',borderWidth:2,marginLeft:8,justifyContent:'center',alignItems:'center'}),code:{fontFamily:n.Platform.select({default:'Courier',ios:'Courier New',android:'monospace'}),fontWeight:'500'},errorMessage:{color:'white',fontSize:16},subtitle:{color:'white',fontSize:14,marginBottom:12},link:{color:'rgba(255,255,255,0.4)',textDecorationStyle:'solid',textDecorationLine:'underline',fontSize:14,textAlign:'center'}})},753,[175,511,34,608,540,718,676,656]);
6335__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_VISIBLE_REPLY_COUNT",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"buildFeedCommentThreadState",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"toggleCommentsPanel",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"toggleCommentCards",{enumerable:!0,get:function(){return s}});const t=4,n=(n,{isThreadOpen:o,isShowingAllReplies:s,visibleReplyCount:l=t})=>{const p=s?n:n.slice(0,l),u=Math.max(0,n.length-p.length),P=n[0]?.authorName?.trim()||"";return{visibleReplies:p,remainingReplyCount:u,summaryLabel:`${n.length} comment${1===n.length?"":"s"}${P?` \u2022 latest from ${P}`:""}`,threadToggleLabel:o?"HIDE THREAD":0===n.length?"OPEN":"OPEN THREAD",showEmptyState:0===n.length,showShowMore:o&&u>0,showShowLess:o&&s&&n.length>l}},o=(t,n)=>(t.expandedCommentsPostId===n?null:n)!==n?{expandedCommentsPostId:null,expandedCommentCardsPostId:null,expandedReplyListPostId:null}:{expandedCommentsPostId:n,expandedCommentCardsPostId:null,expandedReplyListPostId:t.expandedReplyListPostId===n?null:t.expandedReplyListPostId},s=(t,n)=>{const o=t.expandedCommentCardsPostId===n?null:n;return{expandedCommentsPostId:t.expandedCommentsPostId,expandedCommentCardsPostId:o,expandedReplyListPostId:o===n?t.expandedReplyListPostId:null}}},754,[]);
6336__d(function(g,r,i,a,m,e,d){"use strict";
6336Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createDefaultFeedReplyComposerState",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"resetFeedReplyComposerState",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"toggleFeedReplyComposer",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"toggleFeedReplyMediaTools",{enumerable:!0,get:function(){return n}});const t=()=>({activeReplyPostId:null,showReplyMediaToolsPostId:null,replyText:"",replyMediaUrl:"",replyMediaType:"image",replyUploading:!1,expandedReplyListPostId:null}),o=()=>t(),l=(l,n)=>l.activeReplyPostId===n?o():Object.assign({},t(),{activeReplyPostId:n}),n=(t,o)=>Object.assign({},t,{showReplyMediaToolsPostId:t.showReplyMediaToolsPostId===o?null:o})},755,[]);
6337__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"normalizeTagToken",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"extractHashtags",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"parseComposerTags",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"rankPostsForViewer",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"filterPostsForViewer",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"getImmediateFeedPosts",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"syncFeedMemoryUserIdentity",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"getFeedLastLoadedAt",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"shouldRefreshFeed",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"hydrateFeedMemoryCache",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"getCachedFeedPosts",{enumerable:!0,get:function(){return $}}),Object.defineProperty(e,"getCachedUserPosts",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"createPost",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"getPosts",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"subscribeToFeedPosts",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"getUserPosts",{enumerable:!0,get:function(){return H}}),Object.defineProperty(e,"subscribeToUserPosts",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"deletePost",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"togglePostPie",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"createPostReply",{enumerable:!0,get:function(){return X}}),Object.defineProperty(e,"subscribeToPostReplies",{enumerable:!0,get:function(){return Z}});
6337var t=r(d[0]),o=r(d[1]),s=r(d[2]),n=r(d[3]),c=r(d[4]),u=r(d[5]),l=r(d[6]);const p=12e3;let h=[],f=0;const b=/\b\d{1,5}\s+[a-z0-9].*(street|st\b|avenue|ave\b|road|rd\b|drive|dr\b|boulevard|blvd\b|lane|ln\b|court|ct\b)/i,y=t=>{if(t)return{startsAt:"number"==typeof t.startsAt?t.startsAt:Date.now(),endsAt:"number"==typeof t.endsAt?t.endsAt:void 0,locationMode:t.locationMode||"online",locationSummary:(t.locationSummary||"").trim(),venueDisclosure:t.venueDisclosure||"request-only",safetyNotes:(t.safetyNotes||"").trim(),accessNotes:(t.accessNotes||"").trim(),rsvpUrl:(t.rsvpUrl||"").trim(),hostName:(t.hostName||"").trim()}},w=t=>{if(t)return{businessName:(t.businessName||"").trim(),bannerLine:(t.bannerLine||"").trim(),ctaLabel:(t.ctaLabel||"").trim(),ctaUrl:(t.ctaUrl||"").trim(),activeFrom:"number"==typeof t.activeFrom?t.activeFrom:Date.now(),activeUntil:"number"==typeof t.activeUntil?t.activeUntil:Date.now(),monthlyRateUsd:2,billingStatus:t.billingStatus||"pending",audienceTags:O(t.audienceTags||[])}},v=t=>{if(t)return{creatorNote:(t.creatorNote||"").trim(),category:(t.category||"").trim(),visibility:"public"}},P=t=>({id:t.id,text:t.text||"",createdAt:"number"==typeof t.createdAt?t.createdAt:Date.now(),authorName:t.authorName||"You",mediaUrl:t.mediaUrl||"",mediaType:t.mediaType}),A=t=>t.trim().toLowerCase().replace(/^#/,'').replace(/[^a-z0-9._-]/g,''),D=t=>{const o=t.match(/#[a-z0-9._-]+/gi)||[];return Array.from(new Set(o.map(t=>A(t)).filter(Boolean))).slice(0,8)},I=t=>O(t.split(/[\n,]/).map(t=>A(t)).filter(Boolean),8),T=(t,o=180)=>[...t].sort((t,o)=>o.createdAt-t.createdAt).slice(0,o),O=(t=[],o=8)=>{const s=[];return t.forEach(t=>{const o=A(t);o&&!s.includes(o)&&s.push(o)}),s.slice(0,o)},j=(t,o)=>{const s=t.trim();return s.length<=o?s:`${s.slice(0,Math.max(0,o-1)).trimEnd()}...`},U=(t,o=Date.now())=>"number"==typeof t&&Number.isFinite(t)?t:t instanceof Date?t.getTime():t&&"object"==typeof t&&"toMillis"in t&&"function"==typeof t.toMillis?t.toMillis():o,E=t=>({id:t.id,title:(t.title||"").trim(),text:t.text||"",userId:t.userId||"",username:t.username||"unknown",postKind:t.postKind||"standard",userAvatar:t.userAvatar||"",contentNote:(t.contentNote||"").trim(),communityTags:O(t.communityTags||[]),authorTags:O(t.authorTags||[]),mediaUrl:t.mediaUrl||"",mediaType:t.mediaType,videoDetails:v(t.videoDetails),eventDetails:y(t.eventDetails),advertisementDetails:w(t.advertisementDetails),hashtags:O(t.hashtags||D(t.text||"")),pieCount:"number"==typeof t.pieCount?Math.max(0,t.pieCount):0,pieUserIds:Array.isArray(t.pieUserIds)?t.pieUserIds.filter(Boolean):[],createdAt:U(t.createdAt)}),M=(t,o,s)=>({username:(0,c.getMemberDisplayName)({uid:t,username:o?.username||s?.username||"",email:""}),userAvatar:o?.avatar||s?.userAvatar||"",authorTags:O(o?.tags||s?.authorTags||[])}),C=async t=>{if(0===t.length)return t;const[o,s]=await Promise.all([(0,n.getCachedUserDirectory)(),Promise.resolve(Array.from(new Set(t.map(t=>t.userId).filter(Boolean))))]),c=new Map(o.map(t=>[t.uid,{username:t.username,avatar:t.avatar,tags:t.tags||[]}])),u=s.filter(t=>{return!(o=c.get(t))||!(o.username||"").trim()||!(o.avatar||"").trim();var o});if(u.length>0){(await Promise.all(u.map(async t=>{const o=await(0,l.getUserProfile)(t).catch(()=>null);return[t,o?{username:o.username,avatar:o.avatar,tags:o.tags}:null]}))).forEach(([t,o])=>{o&&c.set(t,{username:o.username,avatar:o.avatar,tags:o.tags||[]})})}return t.map(t=>{const o=M(t.userId,c.get(t.userId),t);return E(Object.assign({},t,{username:o.username,userAvatar:o.userAvatar,authorTags:o.authorTags}))})},x=t=>{let o=0;for(let s=0;s<t.length;s+=1)o=(o<<5)-o+t.charCodeAt(s),o|=0;return Math.abs(o%7)},N=(t=[],o=[])=>{const s=new Set(o.map(t=>A(t)).filter(Boolean));return t.filter(t=>s.has(A(t))).length},S=(t,o,s,n=[],c=[],u={})=>{const l=new Set(s),p=O(n,12),h=O(c,12);return t.map(E).sort((t,s)=>{const n=F(t,o,l,p,h,u),c=F(s,o,l,p,h,u);return c!==n?c-n:s.createdAt-t.createdAt})},F=(t,o,s,n,c,u)=>{const{freshnessMultiplier:l=1,pieMultiplier:p=1,viewerTagMultiplier:h=1,recentInterestMultiplier:f=1,communityTagMultiplier:b=1,authorTagMultiplier:y=1,mediaMultiplier:w=1,ownPostMultiplier:v=1,friendMultiplier:P=1,explorationMultiplier:A=1,eventMultiplier:D=1}=u,I=Math.max(0,(Date.now()-t.createdAt)/36e5),T=Math.max(8,84-3.5*I)*l,O=Math.min(96,12*(t.pieCount||0))*p,j=18*N(t.hashtags,n)*h,U=14*N(t.hashtags,c)*f,E=16*N(t.communityTags,n)*b,M=10*N(t.authorTags,n)*y,C=(t.mediaUrl?'video'===t.mediaType?11:7:0)*w,S=(t.userId===o?18:0)*v,F=(s.has(t.userId)?26:0)*P,k=x(t.id)*A,_="advertisement"===t.postKind?240:0;return T+O+j+U+E+M+C+S+F+k+("event"===t.postKind?Math.max(0,36-Math.floor(Math.abs((Date.now()-(t.eventDetails?.startsAt||t.createdAt))/36e5)))*D:0)-_},k=(t,o,s)=>S(t,o,s),_=t=>{h=T(t.map(E)),f=Date.now()},B=()=>h,L=(t,o)=>{t&&0!==h.length&&(h=T(h.map(s=>s.userId===t?E(Object.assign({},s,{username:o.username||s.username,userAvatar:o.avatar||s.userAvatar,authorTags:o.tags||s.authorTags})):s)),f=Date.now())},R=()=>f,q=(t=12e3)=>0===f||Date.now()-f>t,K=async()=>
6337{if(h.length>0)return h;const t=await(0,n.getCachedPostsSnapshot)();return t?.posts?.length?(h=T(await C(t.posts.map(E))),f=t.timestamp,h):[]},$=async()=>{const t=await(0,n.getCachedPosts)();return t.length>0&&_(await C(T(t))),t.length>0?await C(T(t)):[]},z=async t=>{const o=(await(0,n.getCachedPosts)()).filter(o=>o.userId===t).sort((t,o)=>o.createdAt-t.createdAt);return o.length>0?await C(o.map(E)):[]},V=async(u,f,P,A,I={})=>{const T=u.trim(),j=P?.trim()||"",U=(I.title||"").trim(),M=(I.contentNote||"").trim(),C=O(I.communityTags||[]),x=I.postKind||"standard",N=v(I.videoDetails),S=y(I.eventDetails),F=w(I.advertisementDetails);if(!T&&!j)throw new Error("Post cannot be empty");if(U.length>80)throw new Error("Post title cannot exceed 80 characters");if(M.length>120)throw new Error("Content note cannot exceed 120 characters");if(T.length>("video"===x?2200:500))throw new Error("video"===x?"Video descriptions cannot exceed 2200 characters":"Post cannot exceed 500 characters");if(!T&&!j)throw new Error("Post content required");if("event"===x){if(!U)throw new Error("Event posts need a title.");if(!S?.startsAt||S.startsAt<Date.now()-3e5)throw new Error("Choose an upcoming start time for the event.");if(!S.locationSummary||S.locationSummary.length<4)throw new Error("Share a safe location summary for the event.");if(b.test(S.locationSummary))throw new Error("Do not publish an exact street address. Use an approximate area and share specifics privately.")}if("video"===x){if(!U)throw new Error("Video uploads need a title.");if(!j||"video"!==A)throw new Error("Upload a video file or attach a direct video link.")}if("advertisement"===x){if(!U)throw new Error("Advertisements need a headline.");if(!F?.businessName||!F?.ctaLabel||!F?.ctaUrl)throw new Error("Advertisements need a business name, CTA label, and CTA link.");if(F.activeUntil<=F.activeFrom)throw new Error("Set an advertisement end time after the start time.")}const[k,B]=await Promise.all([(0,l.getUserProfile)(f).catch(()=>null),(0,n.getResolvedCachedUserProfile)(f)]),L=k||B,R=Date.now(),q=L?.email?L.email.split('@')[0]:`user_${f.slice(0,6)}`,K=O([...D(T),...C]),$=O(L?.tags||[]),z={title:U,text:T,userId:f,username:L?.uid===f?(0,c.getMemberDisplayName)({uid:f,username:L.username,email:L.email}):q,postKind:x,userAvatar:L?.uid===f&&L.avatar||"",contentNote:M,communityTags:C,authorTags:$,videoDetails:N,eventDetails:S,advertisementDetails:F,createdAt:R,hashtags:K,pieCount:0,pieUserIds:[]};j&&(z.mediaUrl=j,z.mediaType=A);const V=`temp_${R}_${Math.random().toString(36).slice(2,9)}`,Y=E(Object.assign({id:V},z,{createdAt:R})),W=Object.assign({},z,{createdAt:(0,t.serverTimestamp)()});await(0,n.upsertCachedPost)(Object.assign({},Y,{cachedAt:R})),_([Y,...h.filter(t=>t.id!==Y.id)]);try{const c=(0,t.doc)((0,t.collection)(o.db,"posts"));await(0,s.withTimeout)((0,t.setDoc)(c,W),p,"Posting took too long. Check your connection and try again.");const u=E(Object.assign({id:c.id},z));return h=h.map(t=>t.id===V?u:t),await(0,n.replaceCachedPostId)(V,Object.assign({id:c.id},z,{cachedAt:R})),u}catch(t){throw h=h.filter(t=>t.id!==V),await(0,n.removeCachedPost)(V),t}},Y=async({limitCount:c=120}={})=>{try{const u=(0,t.query)((0,t.collection)(o.db,"posts"),(0,t.orderBy)("createdAt","desc"),(0,t.limit)(c)),l=await(0,s.withTimeout)((0,t.getDocs)(u),12e3,"Loading posts took too long. Showing cached posts instead."),p=await C(l.docs.map(t=>E(Object.assign({id:t.id},t.data())))),h=T(p).map(t=>Object.assign({},t,{cachedAt:Date.now()}));return await(0,n.cachePosts)(h),_(p),p}catch(t){return console.error("Error fetching posts:",t),await $()}},W=(c,{limitCount:u=120}={})=>{const l=(0,t.query)((0,t.collection)(o.db,"posts"),(0,t.orderBy)("createdAt","desc"),(0,t.limit)(u));return(0,t.onSnapshot)(l,t=>{(0,s.runObserverTask)(async()=>{const o=await C(t.docs.map(t=>E(Object.assign({id:t.id},t.data())))),s=T(o).map(t=>Object.assign({},t,{cachedAt:Date.now()}));await(0,n.cachePosts)(s),_(o),c(o)},t=>{console.error("Error handling live feed posts:",t),$().then(t=>{c(t)}).catch(t=>{console.error("Error loading cached feed posts after live update failure:",t),c([])})})},t=>{console.error("Error subscribing to feed posts:",t),$().then(t=>{c(t)}
6337).catch(t=>{console.error("Error loading cached feed posts after subscription failure:",t),c([])})})},H=async c=>{try{const u=(0,t.query)((0,t.collection)(o.db,"posts"),(0,t.where)("userId","==",c),(0,t.orderBy)("createdAt","desc")),l=await(0,s.withTimeout)((0,t.getDocs)(u),12e3,"Loading user posts took too long. Please try again."),p=await C(l.docs.map(t=>E(Object.assign({id:t.id},t.data())))),h=(await(0,n.getCachedPosts)()).filter(t=>t.userId!==c),f=p.map(t=>Object.assign({},t,{cachedAt:Date.now()}));return await(0,n.cachePosts)([...f,...h]),p}catch(t){return console.error("Error fetching user posts:",t),z(c)}},G=(c,u)=>{const l=(0,t.query)((0,t.collection)(o.db,"posts"),(0,t.where)("userId","==",c),(0,t.orderBy)("createdAt","desc"));return(0,t.onSnapshot)(l,t=>{(0,s.runObserverTask)(async()=>{const o=await C(t.docs.map(t=>E(Object.assign({id:t.id},t.data())))),s=(await(0,n.getCachedPosts)()).filter(t=>t.userId!==c),l=o.map(t=>Object.assign({},t,{cachedAt:Date.now()}));await(0,n.cachePosts)([...l,...s]),u(o)},t=>{console.error("Error handling live user posts:",t),z(c).then(t=>{u(t)}).catch(t=>{console.error("Error loading cached user posts after live update failure:",t),u([])})})},t=>{console.error("Error subscribing to user posts:",t),z(c).then(t=>{u(t)}).catch(t=>{console.error("Error loading cached user posts after subscription failure:",t),u([])})})},J=async c=>{if(await(0,n.removeCachedPost)(c),h=h.filter(t=>t.id!==c),f=Date.now(),!c.startsWith("temp_"))try{await(0,s.withTimeout)((0,t.deleteDoc)((0,t.doc)(o.db,"posts",c)),p,"Deleting the post took too long.")}catch(t){console.error("Error deleting post from Firestore:",t)}},Q=async(c,l)=>{const f=h.length>0?[...h]:await $(),b=f.find(t=>t.id===c);if(!b)throw new Error("Post not found");const y=E(b),w=y.pieUserIds?.includes(l)||!1,v=w?(y.pieUserIds||[]).filter(t=>t!==l):[...y.pieUserIds||[],l],P=E(Object.assign({},y,{pieUserIds:v,pieCount:Math.max(0,(y.pieCount||0)+(w?-1:1))})),A=f.map(t=>t.id===c?P:E(t));return _(A),await(0,n.cachePosts)(T(A).map(t=>Object.assign({},t,{cachedAt:Date.now()}))),c.startsWith('temp_')||(0,s.withTimeout)((0,t.updateDoc)((0,t.doc)(o.db,'posts',c),{pieCount:(0,t.increment)(w?-1:1),pieUserIds:w?(0,t.arrayRemove)(l):(0,t.arrayUnion)(l)}
6337),p,'Updating pies took too long. Your local feed still reflects the change.').catch(t=>{console.error('Error syncing pies:',t)}),!w&&y.userId&&y.userId!==l&&(0,u.recordActivity)({recipientId:y.userId,actorId:l,type:"pie",headline:"Fresh pie",summary:`Dropped a pie on ${y.title||j(y.text||"your post",72)}.`,postId:c,targetUserId:y.userId}).catch(t=>{console.error("Error recording pie activity:",t)}),P},X=async(n,c)=>{const l=(c.text||"").trim(),p=(c.mediaUrl||"").trim();if(!l&&!p)throw new Error("Reply cannot be empty");if(l.length>300)throw new Error("Reply cannot exceed 300 characters");const f={text:l,userId:c.userId,authorName:c.authorName.trim()||"You",mediaUrl:p,mediaType:c.mediaType,createdAt:Date.now()},b=await(0,s.withTimeout)((0,t.addDoc)((0,t.collection)(o.db,"posts",n,"replies"),f),12e3,"Sending your reply took too long."),y=h.find(t=>t.id===n)||null;return y?.userId&&y.userId!==c.userId&&(0,u.recordActivity)({recipientId:y.userId,actorId:c.userId,type:"reply",headline:"New reply",summary:j(l||"Replied with media.",140),postId:n,targetUserId:y.userId}).catch(t=>{console.error("Error recording reply activity:",t)}),P(Object.assign({id:b.id},f))},Z=(s,n,c=25)=>{const u=(0,t.collection)(o.db,"posts",s,"replies"),l=(0,t.query)(u,(0,t.orderBy)("createdAt","desc"),(0,t.limit)(c));return(0,t.onSnapshot)(l,t=>{n(t.docs.map(t=>P(Object.assign({id:t.id},t.data()))))},t=>{console.error("Error subscribing to post replies:",t),n([])})}},756,[311,309,307,319,326,757,318]);
6338__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"recordActivity",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"subscribeToActivityInbox",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"markActivityRead",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"markAllActivityRead",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"followUser",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"unfollowUser",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"subscribeToFollowingIds",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"subscribeToFollowCounts",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"savePostForUser",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"unsavePostForUser",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"subscribeToSavedPosts",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"sharePostFromApp",{enumerable:!0,get:function(){return x}});var e=r(d[0]);r(d[1]);var t,o=r(d[2]),n=((t=o)&&t.__esModule,r(d[3])),s=r(d[4]),c=r(d[5]),l=r(d[6]),u=r(d[7]);const p=12e3,y=(e,t)=>{const o=e.trim();return o.length<=t?o:`${o.slice(0,Math.max(0,t-1)).trimEnd()}...`},b=e=>({id:e.id,postId:e.postId||e.id,authorId:e.authorId||"",authorUsername:(e.authorUsername||"member").trim(),title:(e.title||"Untitled post").trim(),previewText:(e.previewText||"").trim(),mediaUrl:(e.mediaUrl||"").trim(),mediaType:e.mediaType,postKind:e.postKind||"standard",savedAt:"number"==typeof e.savedAt?e.savedAt:Date.now()}),w=async e=>{const[t,o]=await Promise.all([(0,u.getUserProfile)(e).catch(()=>null),(0,c.getResolvedCachedUserProfile)(e)]),n=t||o;return{actorUsername:(0,l.getMemberDisplayName)({uid:e,username:n?.username||"",email:n?.email||""}),actorAvatar:(n?.avatar||"").trim()}},f=async({recipientId:t,actorId:o,type:c,headline:l,summary:u,postId:b,targetUserId:f})=>{if(!t||!o||t===o)return;const{actorUsername:h,actorAvatar:v}=await w(o),I=(0,e.doc)((0,e.collection)(n.db,"users",t,"activity"));await(0,s.withTimeout)((0,e.setDoc)(I,{type:c,actorId:o,actorUsername:h,actorAvatar:v,recipientId:t,postId:b||"",targetUserId:f||"",headline:l.trim(),summary:y(u,180),read:!1,createdAt:Date.now()}),p,"Saving activity took too long.")},h=(t,o)=>{const s=(0,e.query)((0,e.collection)(n.db,"users",t,"activity"),(0,e.orderBy)("createdAt","desc"),(0,e.limit)(60));return(0,e.onSnapshot)(s,e=>{o(e.docs.map(e=>{return{id:(t=Object.assign({id:e.id},e.data())).id,type:t.type||"follow",actorId:t.actorId||"",actorUsername:(t.actorUsername||"member").trim(),actorAvatar:(t.actorAvatar||"").trim(),recipientId:t.recipientId||"",postId:t.postId||"",targetUserId:t.targetUserId||"",headline:(t.headline||"New activity").trim(),summary:(t.summary||"").trim(),read:Boolean(t.read),createdAt:"number"==typeof t.createdAt?t.createdAt:Date.now()};var t}))},e=>{console.error("Error subscribing to activity inbox:",e),o([])})},v=async(t,o)=>{t&&o&&await(0,s.withTimeout)((0,e.updateDoc)((0,e.doc)(n.db,"users",t,"activity",o),{read:!0}),p,"Updating activity state took too long.")},I=async t=>{if(!t)return;const o=(0,e.query)((0,e.collection)(n.db,"users",t,"activity"),(0,e.orderBy)("createdAt","desc"),(0,e.limit)(60)),c=await(0,s.withTimeout)((0,e.getDocs)(o),p,"Loading activity took too long.");if(c.empty)return;const l=(0,e.writeBatch)(n.db);
6338c.docs.forEach(e=>{e.data().read||l.update(e.ref,{read:!0})}),await(0,s.withTimeout)(l.commit(),p,"Updating activity took too long.")},U=async(t,o)=>{if(!t||!o||t===o)throw new Error("Cannot follow this profile.");if((await(0,s.withTimeout)((0,e.getDoc)((0,e.doc)(n.db,"users",t,"following",o)),p,"Checking the follow state took too long.")).exists())return;const c=Date.now(),l=(0,e.writeBatch)(n.db);l.set((0,e.doc)(n.db,"users",t,"following",o),{targetUserId:o,createdAt:c}),l.set((0,e.doc)(n.db,"users",o,"followers",t),{followerId:t,createdAt:c}),await(0,s.withTimeout)(l.commit(),p,"Following this profile took too long."),await f({recipientId:o,actorId:t,type:"follow",headline:"New follower",summary:"Started following your signal.",targetUserId:o}).catch(e=>{console.error("Error recording follow activity:",e)})},A=async(t,o)=>{if(!t||!o||t===o)return;const c=(0,e.writeBatch)(n.db);c.delete((0,e.doc)(n.db,"users",t,"following",o)),c.delete((0,e.doc)(n.db,"users",o,"followers",t)),await(0,s.withTimeout)(c.commit(),p,"Unfollowing this profile took too long.")},P=(t,o)=>{const s=(0,e.query)((0,e.collection)(n.db,"users",t,"following"),(0,e.orderBy)("createdAt","desc"));return(0,e.onSnapshot)(s,e=>{o(e.docs.map(e=>e.data().targetUserId||e.id).filter(Boolean))},e=>{console.error("Error subscribing to following ids:",e),o([])})},T=(t,o)=>{let s=0,c=0;const l=()=>o({followers:c,following:s}),u=(0,e.onSnapshot)((0,e.collection)(n.db,"users",t,"following"),e=>{s=e.size,l()},e=>{console.error("Error subscribing to following count:",e),s=0,l()}),p=(0,e.onSnapshot)((0,e.collection)(n.db,"users",t,"followers"),e=>{c=e.size,l()},e=>{console.error("Error subscribing to follower count:",e),c=0,l()});return()=>{u(),p()}},k=async(t,o)=>{if(!t||!o.id)throw new Error("Cannot save this post.");const c=b({id:o.id,postId:o.id,authorId:o.userId,authorUsername:o.username,title:o.title||y(o.text||"Untitled post",48),previewText:y(o.text||o.title||"",140),mediaUrl:o.mediaUrl,mediaType:o.mediaType,postKind:o.postKind,savedAt:Date.now()});await(0,s.withTimeout)((0,e.setDoc)((0,e.doc)(n.db,"users",t,"savedPosts",o.id),c),p,"Saving this post took too long."),await f({recipientId:o.userId,actorId:t,type:"save",headline:"Post saved",summary:`Saved ${c.title||"your post"} for later.`,postId:o.id,targetUserId:o.userId}).catch(e=>{console.error("Error recording save activity:",e)})},O=async(t,o)=>{t&&o&&await(0,s.withTimeout)((0,e.deleteDoc)((0,e.doc)(n.db,"users",t,"savedPosts",o)),p,"Removing this saved post took too long.")},j=(t,o)=>{const c=(0,e.query)((0,e.collection)(n.db,"users",t,"savedPosts"),(0,e.orderBy)("savedAt","desc"),(0,e.limit)(80));return(0,e.onSnapshot)(c,e=>{(0,s.runObserverTask)(async()=>{o(e.docs.map(e=>b(Object.assign({id:e.id},e.data()))))},e=>{console.error("Error handling saved posts:",e),o([])})},e=>{console.error("Error subscribing to saved posts:",e),o([])})},x=async(e,t)=>{const o=(t.title||y(t.text||"BlackBunny post",54)).trim(),n=`/member-profile?uid=${encodeURIComponent(t.userId)}`,s=`${"undefined"!=typeof window?window.location.origin:"https://blackbunny-3c936.web.app"}${n}`,c=`${o}\n\nFrom ${t.username} on BlackBunny\n${s}`;{const e="undefined"!=typeof navigator?navigator:void 0;e?.share?await e.share({title:o,text:c,url:s}):e?.clipboard?.writeText&&await e.clipboard.writeText(c)}return await f({recipientId:t.userId,actorId:e,type:"share",headline:"Post shared",summary:`Shared ${o||"your post"} outside the room.`,postId:t.id,targetUserId:t.userId}).catch(e=>{console.error("Error recording share activity:",e)}),{url:s,message:c}}},757,[311,95,620,309,307,319,326,318]);
6339__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createEmbeddedImagePayload",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"readImageDimensions",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"optimizeImageForUpload",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"validateImageFile",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"readVideoMetadata",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"validateVideoFile",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"validateMediaFile",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"uploadImageFile",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"uploadPreparedImageFile",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"uploadMediaFile",{enumerable:!0,get:function(){return C}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);const s=245760,l=15e3,u=new Set(["messages","posts","replies"]),c=t=>`${t} Check Firebase Storage access, rules, and your connection.`,h=t=>t.replace(/[^a-zA-Z0-9._-]/g,"_"),w=t=>{switch(t){case"avatar":return{maxWidth:900,maxHeight:900,quality:.9,suffix:"avatar"};case"banner":return{maxWidth:1800,maxHeight:900,quality:.86,suffix:"banner"};
6339default:return{maxWidth:1600,maxHeight:1600,quality:.84,suffix:"media"}}},f=(t,o,n)=>{const s="image/png"===t.type?"png":"jpg",l=o.name.replace(/\.[^.]+$/,"")||"image";return new File([t],`${l}-${n}.${s}`,{type:t.type,lastModified:Date.now()})},p=t=>new Promise((o,n)=>{const s=new FileReader;s.onloadend=()=>{"string"!=typeof s.result?n(new Error("Could not encode the selected image.")):o(s.result)},s.onerror=()=>n(new Error("Could not encode the selected image.")),s.readAsDataURL(t)}),y=async(t,o,n)=>{if("undefined"==typeof document)throw new Error("Embedded image transport requires the browser runtime.");const s=URL.createObjectURL(t);try{const t=await new Promise((t,o)=>{const n=new Image;n.onload=()=>t(n),n.onerror=()=>o(new Error("Could not prepare the selected image.")),n.src=s}),l=Math.min(o/t.naturalWidth,n/t.naturalHeight,1),u=document.createElement("canvas");u.width=Math.max(1,Math.round(t.naturalWidth*l)),u.height=Math.max(1,Math.round(t.naturalHeight*l));const c=u.getContext("2d");if(!c)throw new Error("Could not prepare the selected image.");return c.drawImage(t,0,0,u.width,u.height),u}finally{URL.revokeObjectURL(s)}},b=(t,o,n)=>new Promise((s,l)=>{t.toBlob(t=>{t?s(t):l(new Error("Could not compress the selected image."))},o,n)}),v=async t=>{E(t);const o=await y(t,1280,1280),n=[.82,.72,.62,.52,.42,.34];let l=null;for(const t of n){const n=await b(o,"image/jpeg",t);if(n.size<=s){l=n;break}l=n}if(!l||l.size>s)throw new Error("Image is too large for inline delivery. Choose a smaller image.");return p(l)},U=t=>new Promise((o,n)=>{const s=URL.createObjectURL(t),l=new Image;l.onload=()=>{o({width:l.naturalWidth,height:l.naturalHeight}),URL.revokeObjectURL(s)},l.onerror=()=>{URL.revokeObjectURL(s),n(new Error("Could not inspect the selected image."))},l.src=s}),R=async(t,o="default")=>{E(t);const n=await U(t),{maxWidth:s,maxHeight:l,quality:u,suffix:c}=w(o);if("undefined"==typeof document)return{file:t,dimensions:n};if(t.size<=2621440&&n.width<=s&&n.height<=l)return{file:t,dimensions:n};const h=URL.createObjectURL(t);try{const o=await new Promise((t,o)=>{const n=new Image;n.onload=()=>t(n),n.onerror=()=>o(new Error("Could not optimize the selected image.")),n.src=h}),w=Math.min(s/o.naturalWidth,l/o.naturalHeight,1),p=Math.max(1,Math.round(o.naturalWidth*w)),y=Math.max(1,Math.round(o.naturalHeight*w)),b=document.createElement("canvas");b.width=p,b.height=y;const v=b.getContext("2d");if(!v)throw new Error("Could not prepare the image for upload.");v.drawImage(o,0,0,p,y);const U=await new Promise((o,n)=>{b.toBlob(t=>{t?o(t):n(new Error("Could not compress the selected image."))},"image/png"===t.type?"image/png":"image/jpeg",u)}),R=f(U,t,c);if(R.size>5242880)throw new Error("Image is still too large after optimization. Choose a smaller image.");return{file:R,dimensions:n}}finally{URL.revokeObjectURL(h)}},E=t=>{if(!t.type.startsWith("image/"))throw new Error("Please choose an image file.");if(t.size>15728640)throw new Error("Image must be smaller than 15MB before compression.")},L=t=>new Promise((o,n)=>{const s=URL.createObjectURL(t),l=document.createElement("video");l.preload="metadata",l.muted=!0,l.playsInline=!0;const u=()=>{URL.revokeObjectURL(s),l.removeAttribute("src"),l.load()};l.onloadedmetadata=()=>{o({duration:Number.isFinite(l.duration)?l.duration:0,width:l.videoWidth,height:l.videoHeight}),u()},l.onerror=()=>{u(),n(new Error("Could not inspect the selected video."))},l.src=s}),j=async t=>{if(!t.type.startsWith("video/"))throw new Error("Please choose a video file.");if(t.size>52428800)throw new Error("Video must be smaller than 50MB.");if("undefined"==typeof document)return;const o=await L(t);if(o.duration>90)throw new Error("Video must be 90 seconds or shorter.");if(o.width>1920||o.height>1920)throw new Error("Video resolution is too large. Use 1080p or smaller.")},P=t=>{if(t.type.startsWith("image/"))return E(t),"image";if(t.type.startsWith("video/"))return"video";throw new Error("Please choose an image or video file.")},O=async(s,u,w)=>{const f="avatars"===u?"avatar":"banners"===u?"banner":"default",p=await R(s,f),y=h(p.file.name),b=(0,t.ref)(o.storage,`${u}/${w}/${Date.now()}_${y}`);return await(0,n.withTimeout)((0,t.uploadBytes)(b,p.file,{contentType:p.file.type}),l,c("Uploading the image took too long. Check Firebase Storage setup and your connection.")),(0,n.withTimeout)((0,t.getDownloadURL)(b),l,c("The image uploaded but the download URL could not be resolved 
6339in time."))},x=async(s,u,w)=>{E(s);const f=h(s.name),p=(0,t.ref)(o.storage,`${u}/${w}/${Date.now()}_${f}`);return await(0,n.withTimeout)((0,t.uploadBytes)(p,s,{contentType:s.type}),l,c("Uploading the image took too long. Check Firebase Storage setup and your connection.")),(0,n.withTimeout)((0,t.getDownloadURL)(p),l,c("The image uploaded but the download URL could not be resolved in time."))},C=async(s,w,f)=>{const p=P(s);if("video"===p&&await j(s),"image"===p&&u.has(w)&&"undefined"!=typeof document)return{mediaType:p,url:await v(s)};const y="image"===p?(await R(s,"default")).file:s,b=h(y.name),U=(0,t.ref)(o.storage,`${w}/${f}/${Date.now()}_${b}`);return await(0,n.withTimeout)((0,t.uploadBytes)(U,y,{contentType:y.type}),l,c("Uploading media took too long. Check Firebase Storage setup and your connection.")),{mediaType:p,url:await(0,n.withTimeout)((0,t.getDownloadURL)(U),l,c("The media uploaded but the download URL could not be resolved in time."))}}},758,[316,309,307]);
6340__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MEMBER_PROFILE_EVENT",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getMemberProfilePath",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"setSelectedMemberId",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"setSelectedMemberPreview",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"setSelectedMemberContext",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"getSelectedMemberId",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"getSelectedMemberPreview",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"getSelectedMemberOriginPath",{enumerable:!0,get:function(){return P}});const n="blackbunny:selected-member-profile",t="blackbunny:selected-member-profile-preview",o="blackbunny:selected-member-profile-origin",s="blackbunny:selected-member-profile";let w=null,l=null,u=null;const c=()=>{if("undefined"==typeof window)return null;return"/member-profile"===(window.location.pathname.replace(/\/+$/,"")||"/")?null:`${window.location.pathname}${window.location.search}`},f=n=>{u=n,"undefined"!=typeof window&&(n?window.sessionStorage.setItem(o,n):window.sessionStorage.removeItem(o))},b=n=>`/member-profile?uid=${encodeURIComponent(n)}`,p=o=>{if(w=o,o){const n=c();n&&f(n)}else l=null,f(null);"undefined"!=typeof window&&(o?window.sessionStorage.setItem(n,o):(window.sessionStorage.removeItem(n),window.sessionStorage.removeItem(t)),window.dispatchEvent(new CustomEvent(s,{detail:o})))},S=n=>{l=n,"undefined"!=typeof window&&(n?window.sessionStorage.setItem(t,JSON.stringify(n)):window.sessionStorage.removeItem(t),window.dispatchEvent(new CustomEvent(s,{detail:n?.uid||null})))},y=o=>{if(w=o?.uid||null,l=o,w){const n=c();n&&f(n)}else f(null);"undefined"!=typeof window&&(w?window.sessionStorage.setItem(n,w):(window.sessionStorage.removeItem(n),window.sessionStorage.removeItem(t)),o&&window.sessionStorage.setItem(t,JSON.stringify(o)),window.dispatchEvent(new CustomEvent(s,{detail:w})))},I=()=>{if("undefined"!=typeof window){const o=window.location.pathname.replace(/\/+$/,"")||"/",s=new URLSearchParams(window.location.search),u=s.get("uid")?.trim()||"";if(u)return w=u,window.sessionStorage.setItem(n,u),w;if("/member-profile"===o)return w=null,l=null,f(null),window.sessionStorage.removeItem(n),window.sessionStorage.removeItem(t),null}return w||("undefined"!=typeof window&&(w=window.sessionStorage.getItem(n)),w)},v=()=>{if(l)return l;if("undefined"!=typeof window){const n=window.sessionStorage.getItem(t);if(n)try{l=JSON.parse(n)}catch(n){console.error("Error reading selected member preview:",n),window.sessionStorage.removeItem(t)}}return l},P=()=>u||("undefined"!=typeof window&&(u=window.sessionStorage.getItem(o)),u)},759,[]);
6341__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"playRetroTypeClick",{enumerable:!0,get:function(){return o}});let t=null,n=0;const o=(o,u)=>{if(u.length<=o.length||u.length-o.length>3)return;const c="undefined"==typeof window||"undefined"==typeof AudioContext?null:(t||(t=new AudioContext),"suspended"===t.state&&t.resume().catch(()=>{}),t);
6341if(!c)return;const l="undefined"!=typeof performance?performance.now():Date.now();if(l-n<26)return;n=l;const s=c.createOscillator(),f=c.createGain(),p=c.currentTime,y=920+(u.charCodeAt(u.length-1)||0)%90;s.type="square",s.frequency.setValueAtTime(y,p),f.gain.setValueAtTime(1e-4,p),f.gain.exponentialRampToValueAtTime(.014,p+.005),f.gain.exponentialRampToValueAtTime(1e-4,p+.04),s.connect(f),f.connect(c.destination),s.start(p),s.stop(p+.045)}},760,[]);
6342__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/assets/images/3dots.b257d1381e32086142e42671548daf4c.png",width:256,height:256}},761,[]);
6343__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"startPerfMeasure",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"readPerfMetrics",{enumerable:!0,get:function(){return u}});const n='__blackbunnyPerf',t=()=>'undefined'!=typeof window&&'undefined'!=typeof performance,o=()=>t()?(window[n]||(window[n]={metrics:[]}),window[n]||null):null,c=n=>{const t=o();t&&(t.metrics=[n,...t.metrics].slice(0,50),console.info(`[perf] ${n.name}: ${n.durationMs.toFixed(1)}ms`,n.detail||{}))},s=(n,o)=>{if(!t())return()=>{};const s=performance.now();return t=>{const u=performance.now()-s;c({name:n,durationMs:u,timestamp:Date.now(),detail:Object.assign({},o||{},t||{})})}},u=()=>o()?.metrics||[]},762,[]);
6344__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"normalizePath",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"parseRouteInput",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getInitialPathname",{enumerable:!0,get:function(){return u}});const t=['/','/auth','/search','/create','/chats','/activity','/profile','/edit-profile','/member-profile','/admin-reports','/videos'],n=n=>{const o=''===n?'/':n.replace(/\/+$/,'')||'/';return t.includes(o)?o:'/'},o=t=>{const[o,u=""]=t.split('?'),c=n(o||'/');return{pathname:c,historyPath:`${c}${u?`?${u}`:''}`}},u=t=>{if('undefined'==typeof window)return'/';const o=n(window.location.pathname);if('/'!==o)return o;const u=window.localStorage.getItem(t)||'';return n(u)}},763,[]);
6345__d(function(g,r,i,a,m,e,d){m.exports="/assets/assets/fonts/MGS1 Codec.6e5ac529d3a0281aa0b2725e17becf0a.ttf"},764,[]);
6346__d(function(g,r,i,a,m,e,d){m.exports="/assets/assets/fonts/MGS1 HUD 1.cfe4bd667a82b2406767c4f0113596a7.ttf"},765,[]);
6347__r(3);
6348__r(0);

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.