1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44636,e=>{"use strict";let t,r;var i=e.i(43476),a=e.i(12598),n=e.i(71645),s=(e,t,r,i,a,n,s,o)=>{let l=document.documentElement,u=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,i=r&&n?a.map(e=>n[e]||e):a;r?(l.classList.remove(...i),l.classList.add(n&&n[t]?n[t]:t)):l.setAttribute(e,t)}),r=t,o&&u.includes(r)&&(l.style.colorScheme=r)}if(i)c(i);else try{let e=localStorage.getItem(t)||r,i=s&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(i)}catch(e){}},o=n.createContext(void 0),l={setTheme:e=>{},themes:[]};n.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:i,enableColorScheme:a,defaultTheme:o,value:l,themes:u,nonce:c,scriptProps:h})=>{let d=JSON.stringify([r,t,o,e,u,l,i,a]).slice(1,-1);return n.createElement("script",{...h,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${s.toString()})(${d})`}})});var u=e.i(46696);e.i(99887);var c=e.i(99150),c=c,h=e.i(35408),d=e.i(15486),p=e.i(99127),p=p,f=e.i(87968);let m=({...e})=>{var t;let{theme:r="system"}=null!=(t=n.useContext(o))?t:l;return(0,i.jsx)(u.Toaster,{theme:r,className:"toaster group",icons:{success:(0,i.jsx)(c.CheckCircleGlyph,{className:"size-4"}),info:(0,i.jsx)(h.InfoRounded,{className:"size-4"}),warning:(0,i.jsx)(d.WarningRounded,{className:"size-4"}),error:(0,i.jsx)(p.CancelGlyph,{className:"size-4"}),loading:(0,i.jsx)(f.Spinner,{className:"size-4"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},toastOptions:{classNames:{toast:"cn-toast"}},...e})};e.i(73447);var g=e.i(48085),y=e.i(18566),w=e.i(28856),v=e.i(10849),E=e.i(17031),b=e.i(47167),k=e.i(33576),A=e.i(59619),x=e.i(99782);function C(){let e,t,r,i;return e=(0,v.useUserStore)(e=>e.auth?.uid??null),t=(0,n.useRef)(void 0),(0,n.useEffect)(()=>{if(e===t.current)return;let r=null!=t.current&&""!==t.current;(t.current=e,null!==e)?(0,A.identifyUser)(e):r&&(0,A.identifyUser)(null)},[e]),(0,n.useEffect)(()=>{(0,A.setUserProperties)({variant_id:String(E.tenant.variantId),tenant_id:E.tenant.id,app_name:E.tenant.appName})},[]),r=(0,y.usePathname)(),i=(0,n.useRef)(null),(0,n.useEffect)(()=>{r!==i.current&&(i.current=r,(0,A.logEvent)("web_page_view",{screen_name:(0,x.screenNameForPath)(r),path:r}))},[r]),(0,n.useEffect)(()=>{var e;return e={...{logEvent:A.logEvent,identifyUser:A.identifyUser,setUserProperties:A.setUserProperties,ready:k.whenPostHogReady},async startCaptureSpy(){let e=await (0,k.getPostHog)();if(null==e)throw Error("PostHog did not initialize â check NEXT_PUBLIC_POSTHOG_KEY");window.__UALABEE_E2E_LISTENING||(e.on("eventCaptured",e=>{window.__UALABEE_E2E_CAPTURED=window.__UALABEE_E2E_CAPTURED??[],window.__UALABEE_E2E_CAPTURED.push({event:String(e.event??""),properties:{...e.properties??{}}})}),window.__UALABEE_E2E_LISTENING=!0)},takeCaptured:()=>window.__UALABEE_E2E_CAPTURED??[]},"1"!==b.default.env.NEXT_PUBLIC_E2E?()=>void 0:(window.__UALABEE_ANALYTICS__=e,()=>{window.__UALABEE_ANALYTICS__===e&&delete window.__UALABEE_ANALYTICS__})},[]),null}e.i(46190);var _=e.i(44592),P=e.i(92953),T=e.i(8070),S=e.i(97427),M=e.i(83877);let D=new Map,O={activated:!1,tokenObservers:[]},I={initialized:!1,enabled:!1};function N(e){return D.get(e)||{...O}}let q="https://content-firebaseappcheck.googleapis.com/v1";class R{constructor(e,t,r,i,a){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=r,this.lowerBound=i,this.upperBound=a,this.pending=null,this.nextErrorWaitInterval=i,i>a)throw Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}async process(e){this.stop();try{var t;this.pending=new S.Deferred,this.pending.promise.catch(e=>{}),await (t=this.getNextRun(e),new Promise(e=>{setTimeout(e,t)})),this.pending.resolve(),await this.pending.promise,this.pending=new S.Deferred,this.pending.promise.catch(e=>{}),await this.operation(),this.pending.resolve(),await this.pending.promise,this.process(!0).catch(()=>{})}catch(e){this.retryPolicy(e)?this.process(!1).catch(()=>{}):this.stop()}}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{let e=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),e}}}let B=new S.ErrorFactory("appCheck","AppCheck",{"already-initialized":"You have already called
1initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.","initial-throttle":"{$httpStatus} error. Attempts allowed again after {$time}",throttled:"Requests throttled due to previous {$httpStatus} error. Attempts allowed again after {$time}"});function Q(e=!1){return e?self.grecaptcha?.enterprise:self.grecaptcha}function L(e){if(!N(e).activated)throw B.create("use-before-activation",{appName:e.name})}function U(e){let t=Math.round(e/1e3),r=Math.floor(t/86400),i=Math.floor((t-3600*r*24)/3600),a=Math.floor((t-3600*r*24-3600*i)/60),n="";return r&&(n+=H(r)+"d:"),i&&(n+=H(i)+"h:"),n+=H(a)+"m:"+H(t-3600*r*24-3600*i-60*a)+"s"}function H(e){return 0===e?"00":e>=10?e.toString():"0"+e}async function j({url:e,body:t},r){let i,a,n={"Content-Type":"application/json"},s=r.getImmediate({optional:!0});if(s){let e=await s.getHeartbeatsHeader();e&&(n["X-Firebase-Client"]=e)}let o={method:"POST",body:JSON.stringify(t),headers:n};try{i=await fetch(e,o)}catch(e){throw B.create("fetch-network-error",{originalErrorMessage:e?.message})}if(200!==i.status)throw B.create("fetch-status-error",{httpStatus:i.status});try{a=await i.json()}catch(e){throw B.create("fetch-parse-error",{originalErrorMessage:e?.message})}let l=a.ttl.match(/^([\d.]+)(s)$/);if(!l||!l[2]||isNaN(Number(l[1])))throw B.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${a.ttl}`});let u=1e3*Number(l[1]),c=Date.now();return{token:a.token,expireTimeMillis:c+u,issuedAtTimeMillis:c}}function K(e,t){let{projectId:r,appId:i,apiKey:a}=e.options;return{url:`${q}/projects/${r}/apps/${i}:exchangeDebugToken?key=${a}`,body:{debug_token:t}}}let $="firebase-app-check-store",F="debug-token",z=null;function G(){return z||(z=new Promise((e,t)=>{try{let r=indexedDB.open("firebase-app-check-database",1);r.onsuccess=t=>{e(t.target.result)},r.onerror=e=>{t(B.create("storage-open",{originalErrorMessage:e.target.error?.message}))},r.onupgradeneeded=e=>{let t=e.target.result;0===e.oldVersion&&t.createObjectStore($,{keyPath:"compositeKey"})}}catch(e){t(B.create("storage-open",{originalErrorMessage:e?.message}))}}))}async function W(e,t){let r=(await G()).transaction($,"readwrite"),i=r.objectStore($).put({compositeKey:e,value:t});return new Promise((e,t)=>{i.onsuccess=t=>{e()},r.onerror=e=>{t(B.create("storage-set",{originalErrorMessage:e.target.error?.message}))}})}async function Y(e){let t=(await G()).transaction($,"readonly"),r=t.objectStore($).get(e);return new Promise((e,i)=>{r.onsuccess=t=>{let r=t.target.result;r?e(r.value):e(void 0)},t.onerror=e=>{i(B.create("storage-get",{originalErrorMessage:e.target.error?.message}))}})}function X(e){return`${e.options.appId}-${e.name}`}let J=new M.Logger("@firebase/app-check");async function V(e){if((0,S.isIndexedDBAvailable)()){let t;try{t=await Y(X(e))}catch(e){J.warn(`Failed to read token from IndexedDB. Error: ${e}`)}return t}}function Z(e,t){if((0,S.isIndexedDBAvailable)())return W(X(e),t).catch(e=>{J.warn(`Failed to write token to IndexedDB. Error: ${e}`)});return Promise.resolve()}async function ee(){let e;try{e=await Y(F)}catch(e){}if(e)return e;{let e=crypto.randomUUID();return W(F,e).catch(e=>J.warn(`Failed to persist debug token to IndexedDB. Error: ${e}`)),e}}function et(){return I.enabled}async function er(){if(I.enabled&&I.token)return I.token.promise;throw Error(` 2 Can't get debug token in production mode. 3 `)}let ei={error:"UNKNOWN_ERROR"};async function ea(e,t=!1,r=!1){let i,a,n=e.app;L(n);let s=N(n),o=s.token;if(o&&!ec(o)&&(s.token=void 0,o=void 0),!o){let e=await s.cachedTokenPromise;e&&(ec(e)?o=e:await Z(n,void 0))}if(!t&&o&&ec(o))return{token:o.token};let l=!1;if(et())try{let t=await er();s.exchangeTokenPromise||(s.exchangeTokenPromise=j(K(n,t),e.heartbeatServiceProvider).finally(()=>{s.exchangeTokenPromise=void 0}),l=!0);let r=await s.exchangeTokenPromise;return await Z(n,r),s.token=r,{token:r.token}}catch(e){return"appCheck/throttled"===e.code||"appCheck/initial-throttle"===e.code?J.warn(e.message):r&&J.error(e),eh(e)}try{s.exchangeTokenPromise||(s.exchangeTokenPromise=s.provider.getToken().finally(()=>{s.exchangeTokenPromise=void 0}),l=!0),o=await N(n).exchangeTokenPromise}catch(e){"appCheck/throttled"===e.code||"appCheck/initial-throttle"===e.code?J.warn(e.message):r&&J.error(e),a=e}return o?a?i=ec(o)?{token:o.token,internalError:a}:eh(a):(i={token:o.token},s.token=o,await Z(n,o)):i=eh(a),l&&eu(n,i),i}async function en(e){let t=e.app;L(t);let{provider:r}=N(t);
3if(et()){let r=K(t,await er());r.body.limited_use=!0;let{token:i}=await j(r,e.heartbeatServiceProvider);return{token:i}}{let{token:e}=await r.getToken(!0);return{token:e}}}function es(e,t,r,i){let{app:a}=e,n=N(a);if(n.tokenObservers=[...n.tokenObservers,{next:r,error:i,type:t}],n.token&&ec(n.token)){let t=n.token;Promise.resolve().then(()=>{r({token:t.token}),el(e)}).catch(()=>{})}n.cachedTokenPromise.then(()=>el(e))}function eo(e,t){let r=N(e),i=r.tokenObservers.filter(e=>e.next!==t);0===i.length&&r.tokenRefresher&&r.tokenRefresher.isRunning()&&r.tokenRefresher.stop(),r.tokenObservers=i}function el(e){let{app:t}=e,r=N(t),i=r.tokenRefresher;i||(r.tokenRefresher=i=function(e){let{app:t}=e;return new R(async()=>{let r;if((r=N(t).token?await ea(e,!0):await ea(e)).error)throw r.error;if(r.internalError)throw r.internalError},()=>!0,()=>{let e=N(t);if(!e.token)return 0;{let t=e.token.issuedAtTimeMillis+(e.token.expireTimeMillis-e.token.issuedAtTimeMillis)*.5+3e5;return Math.max(0,(t=Math.min(t,e.token.expireTimeMillis-3e5))-Date.now())}},3e4,96e4)}(e)),!i.isRunning()&&r.isTokenAutoRefreshEnabled&&i.start()}function eu(e,t){for(let r of N(e).tokenObservers)try{"EXTERNAL"===r.type&&null!=t.error?r.error(t.error):r.next(t)}catch(e){}}function ec(e){return e.expireTimeMillis-Date.now()>0}function eh(e){return{token:S.base64.encodeString(JSON.stringify(ei),!1),error:e}}class ed{constructor(e,t){this.app=e,this.heartbeatServiceProvider=t}_delete(){let{tokenObservers:e}=N(this.app);for(let t of e)eo(this.app,t.next);return Promise.resolve()}}function ep(e,t,r,i,a){r.ready(()=>{var n,s,o,l;let u,c;n=e,s=t,o=r,l=i,u=o.render(l,{sitekey:s,size:"invisible",callback:()=>{N(n).reCAPTCHAState.succeeded=!0},"error-callback":()=>{N(n).reCAPTCHAState.succeeded=!1}}),(c=N(n)).reCAPTCHAState={...c.reCAPTCHAState,widgetId:u},a.resolve(r)})}async function ef(e){L(e);let t=N(e).reCAPTCHAState,r=await t.initialized.promise;return new Promise((t,i)=>{let a=N(e).reCAPTCHAState;r.ready(()=>{t(r.execute(a.widgetId,{action:"fire_app_check"}))})})}class em{constructor(e){this._siteKey=e,this._throttleData=null}async getToken(e=!1){let t;var r=this._throttleData;if(r&&Date.now()-r.allowRequestsAfter<=0)throw B.create("throttled",{time:U(r.allowRequestsAfter-Date.now()),httpStatus:r.httpStatus});let i=await ef(this._app).catch(e=>{throw B.create("recaptcha-error")});if(!N(this._app).reCAPTCHAState?.succeeded)throw B.create("recaptcha-error");try{let r=function(e,t){let{projectId:r,appId:i,apiKey:a}=e.options;return{url:`${q}/projects/${r}/apps/${i}:exchangeRecaptchaEnterpriseToken?key=${a}`,body:{recaptcha_enterprise_token:t}}}(this._app,i);e&&(r.body.limited_use=!0),t=await j(r,this._heartbeatServiceProvider)}catch(e){if(e.code?.includes("fetch-status-error"))throw this._throttleData=function(e,t){if(404===e||403===e)return{backoffCount:1,allowRequestsAfter:Date.now()+864e5,httpStatus:e};{let r=t?t.backoffCount:0,i=(0,S.calculateBackoffMillis)(r,1e3,2);return{backoffCount:r+1,allowRequestsAfter:Date.now()+i,httpStatus:e}}}(Number(e.customData?.httpStatus),this._throttleData),B.create("initial-throttle",{time:U(this._throttleData.allowRequestsAfter-Date.now()),httpStatus:this._throttleData.httpStatus});throw e}return this._throttleData=null,t}initialize(e){var t,r,i;let a,n,s,o,l,u;this._app=e,this._heartbeatServiceProvider=(0,P._getProvider)(e,"heartbeat");(t=this._siteKey,a=new S.Deferred,N(e).reCAPTCHAState={initialized:a},r=e,o=`fire_app_check_${r.name}`,(l=document.createElement("div")).id=o,l.style.display="none",document.body.appendChild(l),n=o,(s=Q(!0))?ep(e,t,s,n,a):(i=()=>{let r=Q(!0);if(!r)throw Error("no recaptcha");ep(e,t,r,n,a)},(u=document.createElement("script")).src="https://www.google.com/recaptcha/enterprise.js?render=explicit",u.onload=i,document.head.appendChild(u)),a.promise).catch(()=>{})}isEqual(e){return e instanceof em&&this._siteKey===e._siteKey}}async function eg(e,t){let r=await ea(e,t);if(r.error)throw r.error;if(r.internalError)throw r.internalError;return{token:r.token}}let ey="app-check-internal";(0,P._registerComponent)(new T.Component("app-check",e=>new ed(e.getProvider("app").getImmediate(),e.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,r)=>{e.getProvider(ey).initialize()})),(0,P._registerComponent)(new T.Component(ey,e=>{var t;return t=e.getProvider("app-check").getImmediate(),{getToken:e=>ea(t,e),getLimitedUseToken:()=>en(t),addTokenListener:e=>es(t,"INTERNAL",e),removeTokenListener:e=>eo(t.app,e)}},"PUBLIC").setInstantiationMode("EXPLICIT")),(0,P.registerVersion)("@firebase/app-check","0.13.0");var ew=e.i(68043),ev=e.i(49463);function eE(){if(void 0!==t)return t;let e=b.default.env.NEXT_PUBLIC_APPCHECK_DEBUG_TOKEN;if("production"!==ew.env.environment){if(!e)return t=null;globalThis.FIREBASE_APPCHECK_DEBUG_TOKEN=e}return t=function(e=(0,P.getApp)(),t){e=(0,S.getModularInstance)(e);let r=(0,P._getProvider)(e,"app-check");if(I.initialized||function(){let e=(0,S.getGlobal)();if(I.initialized=!0,"string"!=typeof e.FIREBASE_APPCHECK_DEBUG_TOKEN&&!0!==e.FIREBASE_APPCHECK_DEBUG_TOKEN)return;I.enabled=!0;let t=new S.Deferred;I.token=t,"string"==typeof e.FIREBASE_APPCHECK_DEBUG_TOKEN?t.resolve(e.FIREBASE_APPCHECK_DEBUG_TOKEN):t.resolve(ee())}(),et()&&er().then(e=>console.log(`App Check debug token: ${e}
3. You will need to add it to your app's App Check settings in the Firebase console for it to work.`)),r.isInitialized()){let i=r.getImmediate(),a=r.getOptions();if(a&&!!a.isTokenAutoRefreshEnabled==!!t.isTokenAutoRefreshEnabled&&a.provider?.isEqual(t.provider))return i;throw B.create("already-initialized",{appName:e.name})}let i=r.initialize({options:t});return function(e,t,r=!1){var i;let a=(i={...O},D.set(e,i),D.get(e));a.activated=!0,a.provider=t,a.cachedTokenPromise=V(e).then(t=>(t&&ec(t)&&(a.token=t,eu(e,{token:t.token})),t)),a.isTokenAutoRefreshEnabled=r&&e.automaticDataCollectionEnabled,!e.automaticDataCollectionEnabled&&r&&J.warn("`isTokenAutoRefreshEnabled` is true but `automaticDataCollectionEnabled` was set to false during `initializeApp()`. This blocks automatic token refresh."),a.provider.initialize(e)}(e,t.provider,t.isTokenAutoRefreshEnabled),N(e).isTokenAutoRefreshEnabled&&es(i,"INTERNAL",()=>{}),i}((0,ev.getFirebaseApp)(),{provider:new em(ew.env.recaptchaSiteKey),isTokenAutoRefreshEnabled:!0})}async function eb(e=!1){let t=eE();if(!t)return null;try{let{token:r}=await eg(t,e);return r}catch(e){return console.error("App Check token error",e),null}}var ek=e.i(20636),eA=e.i(19273),ex=e.i(86491),eC=e.i(40143),e_=e.i(15823),eP=class extends e_.Subscribable{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){let i=t.queryKey,a=t.queryHash??(0,eA.hashQueryKeyByOptions)(i,t),n=this.get(a);return n||(n=new ex.Query({client:e,queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(n)),n}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){eC.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,eA.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,eA.matchQuery)(e,t)):t}notify(e){eC.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){eC.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){eC.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},eT=e.i(14272),eS=e_,eM=class extends eS.Subscribable{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#r=new Map,this.#i=0}#t;#r;#i;build(e,t,r){let i=new eT.Mutation({client:e,mutationCache:this,mutationId:++this.#i,options:e.defaultMutationOptions(t),state:r});return this.add(i),i}add(e){this.#t.add(e);let t=eD(e);if("string"==typeof t){let r=this.#r.get(t);r?r.push(e):this.#r.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=eD(e);if("string"==typeof t){let r=this.#r.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#r.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=eD(e);if("string"!=typeof t)return!0;{let r=this.#r.get(t),i=r?.find(e=>"pending"===e.state.status);return!i||i===e}}runNext(e){let t=eD(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#r.get(t)?.find(t=>
3t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){eC.notifyManager.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#r.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,eA.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,eA.matchMutation)(e,t))}notify(e){eC.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return eC.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(eA.noop))))}};function eD(e){return e.options.scope?.id}var eO=e.i(75555),eI=e.i(14448),eN=class{#a;#n;#s;#o;#l;#u;#c;#h;constructor(e={}){this.#a=e.queryCache||new eP,this.#n=e.mutationCache||new eM,this.#s=e.defaultOptions||{},this.#o=new Map,this.#l=new Map,this.#u=0}mount(){this.#u++,1===this.#u&&(this.#c=eO.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#a.onFocus())}),this.#h=eI.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#a.onOnline())}))}unmount(){this.#u--,0===this.#u&&(this.#c?.(),this.#c=void 0,this.#h?.(),this.#h=void 0)}isFetching(e){return this.#a.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#a.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#a.build(this,t),i=r.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,eA.resolveStaleTime)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#a.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let i=this.defaultQueryOptions({queryKey:e}),a=this.#a.get(i.queryHash),n=a?.state.data,s=(0,eA.functionalUpdate)(t,n);if(void 0!==s)return this.#a.build(this,i).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return eC.notifyManager.batch(()=>this.#a.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#a.get(t.queryHash)?.state}removeQueries(e){let t=this.#a;eC.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#a;return eC.notifyManager.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(eC.notifyManager.batch(()=>this.#a.findAll(e).map(e=>e.cancel(r)))).then(eA.noop).catch(eA.noop)}invalidateQueries(e,t={}){return eC.notifyManager.batch(()=>(this.#a.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(eC.notifyManager.batch(()=>this.#a.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(eA.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(eA.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#a.build(this,t);return r.isStaleByTime((0,eA.resolveStaleTime)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(eA.noop).catch(eA.noop)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(eA.noop).catch(eA.noop)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return eI.onlineManager.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#a}getMutationCache(){return this.#n}getDefaultOptions(){return this.#s}setDefaultOptions(e){this.#s=e}setQueryDefaults(e,t){this.#o.set((0,eA.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#o.values()],r={};return t.forEach(t=>{(0,eA.partialMatchKey)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#l.set((0,eA.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#l.values()],r={};return t.forEach(t=>{(0,eA.partialMatchKey)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#s.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,eA.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===eA.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#s.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#a.clear(),this.#n.clear()}};function eq(){return new eN({defaultOptions:{queries:{staleTime:6e4,retry:1,refetchOnWindowFocus:!1},dehydrate:{shouldDehydrateQuery:e=>"success"===e.state.status||"pending"===e.state.status}}})}function eR(){return eA.isServer?eq():r??=eq()}function eB(){let e=(0,v.useUserStore)(e=>e.setAuth);return(0,n.useEffect)(()=>{(0,w.hydratePersistedStores)()},[]),(0,n.useEffect)(()=>{eE(),(0,_.configureApiAuth)({getIdToken:ek.getCurrentIdToken,getAppCheckToken:eb})},[]),(0,n.useEffect)(()=>(0,ek.onAuthChanged)(t=>{t?e({uid:t.uid,isAnonymous:t.isAnonymous,displayName:t.displayName??void 0,email:t.email??void 0,photoURL:t.photoURL??void 0}):(e(null),(0,ek.ensureSignedIn)().catch(e=>{console.error("Anonymous sign-in failed",e)}))}),[e]),null}e.i(93803),e.s(["Providers",0,function({children:e}
3){let[t]=(0,n.useState)(eR);return(0,i.jsx)(a.QueryClientProvider,{client:t,children:(0,i.jsxs)(g.I18nProvider,{children:[(0,i.jsx)(eB,{}),(0,i.jsx)(C,{}),e,(0,i.jsx)(m,{position:"bottom-center",className:"z-(--z-toast)"})]})})}],44636)},49144,e=>{"use strict";var t=e.i(43476),r=e.i(71645),i=e.i(75157),a=e.i(17031);function n(e){return new Promise(t=>{window.setTimeout(t,e)})}e.s(["MexicoGpSplash",0,function(){let[e,s]=(0,r.useState)(0),[o,l]=(0,r.useState)(!1),[u,c]=(0,r.useState)(!1),h=a.tenant.assets.logo;return((0,r.useEffect)(()=>{let e=!1;return(async()=>{await n(100);for(let t=1;t<=5;t++){if(e)return;s(t),t<5&&await n(100)}await n(250),!e&&(s(0),l(!0),await n(250),e||c(!0))})(),()=>{e=!0}},[]),u)?null:(0,t.jsxs)("div",{role:"status","aria-live":"polite","aria-label":"Cargando",className:(0,i.cn)("fixed inset-0 z-(--z-splash) flex flex-col items-center justify-center bg-white",o&&"pointer-events-none opacity-0"),style:{transition:"opacity 250ms ease"},children:[(0,t.jsx)("div",{className:"mb-5 flex items-center justify-center",children:null!==h?(0,t.jsx)("img",{src:h,alt:a.tenant.appName,width:800,height:191,className:"mexicogp-splash-logo h-auto max-h-[300px] w-auto max-w-[300px] object-contain max-md:max-h-[250px] max-md:max-w-[250px] max-sm:max-h-[200px] max-sm:max-w-[200px]"}):(0,t.jsx)("p",{className:"mexicogp-splash-logo font-heading text-2xl font-semibold text-[#15151E]",children:a.tenant.appName})}),(0,t.jsxs)("div",{className:"mexicogp-splash-gantry mt-12 flex flex-col items-center max-md:mt-9 max-sm:mt-8",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl px-9 py-6 max-md:px-7 max-md:py-5 max-sm:px-6 max-sm:py-[18px]",style:{background:"linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%)",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 2px rgba(0, 0, 0, 0.8)"},children:[(0,t.jsx)("div",{className:"flex gap-[18px] max-md:gap-[15px] max-sm:gap-3",children:Array.from({length:5},(e,r)=>(0,t.jsx)("span",{className:"mexicogp-splash-light","aria-hidden":!0},`top-${r}`))}),(0,t.jsx)("div",{className:"flex gap-[18px] max-md:gap-[15px] max-sm:gap-3",children:Array.from({length:5},(r,i)=>(0,t.jsx)("span",{"data-f1-light":"","data-on":i<e?"true":"false",className:"mexicogp-splash-light","aria-hidden":!0},`bottom-${i}`))})]}),(0,t.jsx)("p",{className:"mt-6 text-sm font-semibold tracking-[2px] text-[#666] uppercase max-md:mt-5 max-md:text-xs max-sm:mt-[18px] max-sm:text-[11px]",children:"Cargando"})]})]})},"SPLASH_FADE_MS",0,250,"SPLASH_HOLD_MS",0,250,"SPLASH_INITIAL_DELAY_MS",0,100,"SPLASH_LIGHT_DELAY_MS",0,100])}]);
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.