1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,306766,(e,t,r)=>{t.exports=e.r(9157)},471438,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return s}});let s=e.r(481258)._(e.r(853741)).default.createContext(null)},437537,292369,387960,275009,735226,e=>{"use strict";let t=[".lcl.dev",".lclstage.dev",".lclclerk.com"],r=[".accounts.dev",".accountsstage.dev",".accounts.lclclerk.com"],s=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"],i=[".lcl.dev","lclstage.dev",".lclclerk.com",".accounts.lclclerk.com"],n=[".accountsstage.dev"];e.s(["CURRENT_DEV_INSTANCE_SUFFIXES",()=>r,"DEV_OR_STAGING_SUFFIXES",()=>s,"LEGACY_DEV_INSTANCE_SUFFIXES",()=>t,"LOCAL_API_URL",()=>"https://api.lclclerk.com","LOCAL_ENV_SUFFIXES",()=>i,"PROD_API_URL",()=>"https://api.clerk.com","STAGING_API_URL",()=>"https://api.clerkstage.dev","STAGING_ENV_SUFFIXES",()=>n],437537);let a=t=>"undefined"!=typeof atob&&"function"==typeof atob?atob(t):e.g.Buffer?new e.g.Buffer(t,"base64").toString():t;e.s(["isomorphicAtob",()=>a],292369);let o=t=>"undefined"!=typeof btoa&&"function"==typeof btoa?btoa(t):e.g.Buffer?new e.g.Buffer(t).toString("base64"):t;e.s(["isomorphicBtoa",()=>o],387960);let u="pk_live_",l="pk_test_",c=/^(([a-z]+)-){2}([0-9]{1,2})\.clerk\.accounts([a-z.]*)(dev|com)$/i;function h(e){return`${c.test(e)||e.startsWith("clerk.")&&t.some(t=>e.endsWith(t))?l:u}${o(`${e}$`)}`}function d(e){if(!e.endsWith("$"))return!1;let t=e.slice(0,-1);return!t.includes("$")&&t.includes(".")}function f(e,t={}){let r;if(!(e=e||"")||!p(e)){if(t.fatal&&!e)throw Error("Publishable key is missing. Ensure that your publishable key is correctly configured. Double-check your environment configuration for your keys, or access them here: https://dashboard.clerk.com/last-active?path=api-keys");if(t.fatal&&!p(e))throw Error("Publishable key not valid.");return null}let s=e.startsWith(u)?"production":"development";try{r=a(e.split("_")[2])}catch{if(t.fatal)throw Error("Publishable key not valid: Failed to decode key.");return null}if(!d(r)){if(t.fatal)throw Error("Publishable key not valid: Decoded key has invalid format.");return null}let i=r.slice(0,-1);return t.proxyUrl?i=t.proxyUrl:"development"!==s&&t.domain&&t.isSatellite&&(i=`clerk.${t.domain}`),{instanceType:s,frontendApi:i}}function p(e=""){try{if(!(e.startsWith(u)||e.startsWith(l)))return!1;let t=e.split("_");if(3!==t.length)return!1;let r=t[2];if(!r)return!1;return d(a(r))}catch{return!1}}function y(){let e=new Map;return{isDevOrStagingUrl:t=>{if(!t)return!1;let r="string"==typeof t?t:t.hostname,i=e.get(r);return void 0===i&&(i=s.some(e=>r.endsWith(e)),e.set(r,i)),i}}}function v(e){return e.startsWith("test_")||e.startsWith("pk_test_")}function b(e){return e.startsWith("live_")||e.startsWith("pk_live_")}function m(e){return e.startsWith("test_")||e.startsWith("sk_test_")}function g(e){return e.startsWith("live_")||e.startsWith("sk_live_")}async function S(e,t=globalThis.crypto.subtle){let r=new TextEncoder().encode(e);return o(String.fromCharCode(...new Uint8Array(await t.digest("sha-1",r)))).replace(/\+/gi,"-").replace(/\//gi,"_").substring(0,8)}let R=(e,t)=>`${e}_${t}`;e.s(["buildPublishableKey",()=>h,"createDevOrStagingUrlCache",()=>y,"getCookieSuffix",()=>S,"getSuffixedCookieName",()=>R,"isDevelopmentFromPublishableKey",()=>v,"isDevelopmentFromSecretKey",()=>m,"isProductionFromPublishableKey",()=>b,"isProductionFromSecretKey",()=>g,"isPublishableKey",()=>p,"parsePublishableKey",()=>f],275009);let O=e=>{if(0==e.length)return"";if(1==e.length)return e[0];let t=e.slice(0,-1).join(", ");return t+`, or ${e.slice(-1)}`},T=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;function C(e){return T.test(e||"")}function w(e){let t=e||"";return t.charAt(0).toUpperCase()+t.slice(1)}function E(e){return e?e.replace(/([-_][a-z])/g,e=>e.toUpperCase().replace(/-|_/,"")):""}function I(e){return e?e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`):""}let F=e=>{let t=r=>{if(!r)return r;if(Array.isArray(r))return r.map(e=>"object"==typeof e||Array.isArray(e)?t(e):e);let s={...r};for(let r of Object.keys(s)){let i=e(r.toString());i!==r&&(s[i]=s[r],delete s[r]),"object"==typeof s[i]&&(s[i]=t(s[i]))}return s};return t},Q=F(I),P=F(E);function k(e){if("boolean"==typeof e)return e;if(null==e)return!1;if("string"==typeof e){if("true"===e.toLowerCase())return!0;
1if("false"===e.toLowerCase())return!1}let t=parseInt(e,10);return!isNaN(t)&&t>0}function U(e){return Object.entries(e).reduce((e,[t,r])=>(void 0!==r&&(e[t]=r),e),{})}e.s(["camelToSnake",()=>I,"deepCamelToSnake",()=>Q,"deepSnakeToCamel",()=>P,"getNonUndefinedValues",()=>U,"isIPV4Address",()=>C,"isTruthy",()=>k,"snakeToCamel",()=>E,"titleize",()=>w,"toSentence",()=>O],735226)},598574,289816,e=>{"use strict";let t=(...e)=>{};e.s(["noop",()=>t],598574);let r=()=>{let e=t,r=t;return{promise:new Promise((t,s)=>{e=t,r=s}),resolve:e,reject:r}};e.s(["createDeferredPromise",()=>r],289816)},398373,514310,784582,156918,479640,e=>{"use strict";e.i(461474);let t=()=>!1,r=()=>!1,s=()=>{try{return!0}catch{}return!1};function i(e,t,r){return"function"==typeof e?e(t):void 0!==e?e:void 0!==r?r:void 0}function n(e){return Promise.all(Array.from(e).map(e=>e.then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))}e.s(["isDevelopmentEnvironment",()=>t,"isProductionEnvironment",()=>s,"isTestEnvironment",()=>r],514310),e.s(["handleValueOrFn",()=>i],784582),e.i(598574),e.i(289816);let a=e=>{t()&&console.error(`Clerk: ${e}`)},o=(e,t)=>{if(e&&t)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&null!==e[r]&&"object"==typeof e[r]?(void 0===t[r]&&(t[r]=new(Object.getPrototypeOf(e[r])).constructor),o(e[r],t[r])):Object.prototype.hasOwnProperty.call(e,r)&&void 0!==e[r]&&(t[r]=e[r])},u=(e,t)=>{if(e&&t)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&null!==e[r]&&"object"==typeof e[r]?(void 0===t[r]&&(t[r]=new(Object.getPrototypeOf(e[r])).constructor),u(e[r],t[r])):Object.prototype.hasOwnProperty.call(e,r)&&void 0===t[r]&&(t[r]=e[r])};function l(e){return e.endsWith(".lclstage.dev")||e.endsWith(".stgstage.dev")||e.endsWith(".clerkstage.dev")||e.endsWith(".accountsstage.dev")}e.s(["allSettled",()=>n,"fastDeepMergeAndKeep",()=>u,"fastDeepMergeAndReplace",()=>o,"logErrorInDevMode",()=>a],156918),e.s(["isStaging",()=>l],479640),e.s([],398373)},833867,e=>{"use strict";e.i(446797);var t=e.i(548192);e.i(331555);var r=e.i(603534),s=e.i(853741);let i=s.default.createContext(null);function n({authPromise:e,children:t}){return s.default.createElement(i.Provider,{value:e},t)}function a(e={}){let n=(0,r.useRouter)(),o=s.default.useContext(i),u=o;return(o&&"then"in o&&(u=s.default.use(o)),"undefined"!=typeof window)?(0,t.useAuth)({...u,...e}):n?(0,t.useAuth)(e):(0,t.useDerivedAuth)({...u,...e})}e.s(["PromisifiedAuthProvider",()=>n,"usePromisifiedAuth",()=>a])},940948,e=>{"use strict";var t=e.i(853741),r=e.i(898516),s=t.createContext(void 0),i=e=>{let r=t.useContext(s);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r},n=({client:e,children:i})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(s.Provider,{value:e,children:i}));e.s(["QueryClientProvider",()=>n,"useQueryClient",()=>i])},708347,423216,457765,879994,318459,964463,159337,371622,556683,87147,e=>{"use strict";let t,r,s,i,n,a;var o=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};e.s(["Subscribable",()=>o],423216),e.i(461474);var u={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},l=new class{#e=u;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function c(e){setTimeout(e,0)}e.s(["systemSetTimeoutZero",()=>c,"timeoutManager",()=>l],457765);var h="undefined"==typeof window||"Deno"in globalThis;function d(){}function f(e,t){return"function"==typeof e?e(t):e}function p(e){return"number"==typeof e&&e>=0&&e!==1/0}function y(e,t){return Math.max(e+(t||0)-Date.now(),0)}function v(e,t){return"function"==typeof e?e(t):e}function b(e,t){return"function"==typeof e?e(t):e}function m(e,t){let{type:r="all",exact:s,fetchStatus:i,predicate:n,queryKey:a,stale:o}=e;if(a){if(s){if(t.queryHash!==S(a,t.options))return!1}else if(!O(t.queryKey,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!i||i===t.state.fetchStatus)&&(!n||!!n(t))}function g(e,t){let{exact:r,status:s,predicate:i,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(r){if(R(t.options.mutationKey)!==R(n))return!1}else if(!O(t.options.mutationKey,n))return!1}return(!s||t.state.status===s)&&(!i||!!i(t))}function S(e,t){return(t?.queryKeyHashFn||R)(e)}function R(e){return JSON.stringify(e,(e,t)=>E(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function O(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>O(e[r],t[r]))}var T=Object.prototype.hasOwnProperty;function C(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function w(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function E(e){if(!I(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!I(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function I(e){return"[object Object]"===Object.prototype.toString.call(e)}function F(e){return new Promise(t=>{l.setTimeout(t,e)})}function Q(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let s=w(t)&&w(r);if(!s&&!(E(t)&&E(r)))return r;let i=(s?t:Object.keys(t)).length,n=s?r:Object.keys(r),a=n.length,o=s?Array(a):{},u=0;for(let l=0;l<a;l++){let a=s?l:n[l],c=t[a],h=r[a];if(c===h){o[a]=c,(s?l<i:T.call(t,a))&&u++;continue}if(null===c||null===h||"object"!=typeof c||"object"!=typeof h){o[a]=h;continue}let d=e(c,h);o[a]=d,d===c&&u++}return i===a&&u===i?t:o}(e,t):t}function P(e,t,r=0){let s=[...e,t];return r&&s.length>r?s.slice(1):s}function k(e,t,r=0){let s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var U=Symbol();function _(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==U?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function A(e,t){return"function"==typeof e?e(...t):!!e}e.s(["addToEnd",()=>P,"addToStart",()=>k,"ensureQueryFn",()=>_,"functionalUpdate",()=>f,"hashKey",()=>R,"hashQueryKeyByOptions",()=>S,"isServer",()=>h,"isValidTimeout",()=>p,"matchMutation",()=>g,"matchQuery",()=>m,"noop",()=>d,"partialMatchKey",()=>O,"replaceData",()=>Q,"resolveEnabled",()=>b,"resolveStaleTime",()=>v,"shallowEqualObjects",()=>C,"shouldThrowError",()=>A,"skipToken",()=>U,"sleep",()=>F,"timeUntilStale",()=>y],879994);var D=new class extends o{#r;#s;#i;constructor(){super(),this.#i=e=>{if(!h&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#s||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(e){this.#i=e,this.#s?.(),this.#s=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){let e=this.isFocused();
1this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",()=>D],708347);var j=(t=[],r=0,s=e=>{e()},i=e=>{e()},n=c,{batch:e=>{let a;r++;try{a=e()}finally{let e;--r||(e=t,t=[],e.length&&n(()=>{i(()=>{e.forEach(e=>{s(e)})})}))}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a=e=>{r?t.push(e):n(()=>{s(e)})},setNotifyFunction:e=>{s=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{n=e}});e.s(["notifyManager",()=>j],318459);var x=new class extends o{#n=!0;#s;#i;constructor(){super(),this.#i=e=>{if(!h&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#s||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(e){this.#i=e,this.#s?.(),this.#s=e(this.setOnline.bind(this))}setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#n}};function q(){let e,t,r=new Promise((r,s)=>{e=r,t=s});function s(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{s({status:"fulfilled",value:t}),e(t)},r.reject=e=>{s({status:"rejected",reason:e}),t(e)},r}function M(e){return Math.min(1e3*2**e,3e4)}function L(e){return(e??"online")!=="online"||x.isOnline()}e.s(["onlineManager",()=>x],964463),e.s(["pendingThenable",()=>q],159337);var W=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function K(e){let t,r=!1,s=0,i=q(),n=()=>D.isFocused()&&("always"===e.networkMode||x.isOnline())&&e.canRun(),a=()=>L(e.networkMode)&&e.canRun(),o=e=>{"pending"===i.status&&(t?.(),i.resolve(e))},u=e=>{"pending"===i.status&&(t?.(),i.reject(e))},l=()=>new Promise(r=>{t=e=>{("pending"!==i.status||n())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===i.status&&e.onContinue?.()}),c=()=>{let t;if("pending"!==i.status)return;let a=0===s?e.initialPromise:void 0;try{t=a??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(o).catch(t=>{if("pending"!==i.status)return;let a=e.retry??3*!h,o=e.retryDelay??M,d="function"==typeof o?o(s,t):o,f=!0===a||"number"==typeof a&&s<a||"function"==typeof a&&a(s,t);r||!f?u(t):(s++,e.onFail?.(s,t),F(d).then(()=>n()?void 0:l()).then(()=>{r?u(t):c()}))})};return{promise:i,status:()=>i.status,cancel:t=>{if("pending"===i.status){let r=new W(t);u(r),e.onCancel?.(r)}},continue:()=>(t?.(),i),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:a,start:()=>(a()?c():l().then(c),i)}}e.s(["CancelledError",()=>W,"canFetch",()=>L,"createRetryer",()=>K],371622);var N=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),p(this.gcTime)&&(this.#a=l.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(h?1/0:3e5))}clearGcTimeout(){this.#a&&(l.clearTimeout(this.#a),this.#a=void 0)}};e.s(["Removable",()=>N],556683);var G=class extends N{#o;#u;#l;#c;#h;#d;#f;constructor(e){super(),this.#f=!1,this.#d=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#c=e.client,this.#l=this.#c.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=H(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#h?.promise}setOptions(e){if(this.options={...this.#d,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=H(this.options);void 0!==e.data&&(this.setState(B(e.data,e.dataUpdatedAt)),this.#o=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#l.remove(this)}setData(e,t){let r=Q(this.state.data,e,this.options);return this.#p({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#h?.promise;return this.#h?.cancel(e),t?t.then(d).catch(d):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some(e=>!1!==b(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===U||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 4,314 bytes, line 1
1Count===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===v(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!y(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#h&&(this.#f?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,t){let r;if("idle"!==this.state.fetchStatus&&this.#h?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#h)return this.#h.continueRetry(),this.#h.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let s=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,s.signal)})},n=()=>{let e,r=_(this.options,t),s=(i(e={client:this.#c,queryKey:this.queryKey,meta:this.meta}),e);return(this.#f=!1,this.options.persister)?this.options.persister(r,s,this):r(s)},a=(i(r={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:n}),r);this.options.behavior?.onFetch(a,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#p({type:"fetch",meta:a.fetchOptions?.meta}),this.#h=K({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof W&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),s.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#h.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#l.config.onSuccess?.(e,this),this.#l.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof W){if(e.silent)return this.#h.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#l.config.onError?.(e,this),this.#l.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#p(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...$(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...B(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=e.manual?r:void 0,r;case"error":let s=e.error;return{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),j.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:e})})}};function $(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:L(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function B(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function H(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,
1s=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",()=>G,"fetchState",()=>$],87147)},25309,e=>{"use strict";var t=e.i(833867);e.s(["useAuth",()=>t.usePromisifiedAuth])},816941,706645,378469,e=>{"use strict";let t;var r=e.i(708347),s=e.i(318459),i=e.i(87147),n=e.i(423216),a=e.i(159337),o=e.i(879994),u=e.i(457765),l=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#c=e,this.#y=null,this.#v=(0,a.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#c;#b=void 0;#m=void 0;#g=void 0;#S;#R;#v;#y;#O;#T;#C;#w;#E;#I;#F=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#b.addObserver(this),c(this.#b,this.options)?this.#Q():this.updateResult(),this.#P())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#b,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#b,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#k(),this.#U(),this.#b.removeObserver(this)}setOptions(e){let t=this.options,r=this.#b;if(this.options=this.#c.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#b))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#b.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#c.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#b,observer:this});let s=this.hasListeners();s&&d(this.#b,r,this.options,t)&&this.#Q(),this.updateResult(),s&&(this.#b!==r||(0,o.resolveEnabled)(this.options.enabled,this.#b)!==(0,o.resolveEnabled)(t.enabled,this.#b)||(0,o.resolveStaleTime)(this.options.staleTime,this.#b)!==(0,o.resolveStaleTime)(t.staleTime,this.#b))&&this.#A();let i=this.#D();s&&(this.#b!==r||(0,o.resolveEnabled)(this.options.enabled,this.#b)!==(0,o.resolveEnabled)(t.enabled,this.#b)||i!==this.#I)&&this.#j(i)}getOptimisticResult(e){var t,r;let s=this.#c.getQueryCache().build(this.#c,e),i=this.createResult(s,e);return t=this,r=i,(0,o.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#g=i,this.#R=this.options,this.#S=this.#b.state),i}getCurrentResult(){return this.#g}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#v.status||this.#v.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#F.add(e)}getCurrentQuery(){return this.#b}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#c.defaultQueryOptions(e),r=this.#c.getQueryCache().build(this.#c,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#Q({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#g))}#Q(e){this.#_();let t=this.#b.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#A(){this.#k();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#b);if(o.isServer||this.#g.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#g.dataUpdatedAt,e);this.#w=u.timeoutManager.setTimeout(()=>{this.#g.isStale||this.updateResult()},t+1)}#D(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#b):this.options.refetchInterval)??!1}#j(e){this.#U(),this.#I=e,!o.isServer&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#b)&&(0,o.isValidTimeout)(this.#I)&&0!==this.#I&&(this.#E=u.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#Q()},this.#I))}#P(){this.#A(),this.#j(this.#D())}#k(){this.#w&&(u.timeoutManager.clearTimeout(this.#w),this.#w=void 0)}
1#U(){this.#E&&(u.timeoutManager.clearInterval(this.#E),this.#E=void 0)}createResult(e,t){let r,s=this.#b,n=this.options,u=this.#g,l=this.#S,h=this.#R,p=e!==s?e.state:this.#m,{state:y}=e,v={...y},b=!1;if(t._optimisticResults){let r=this.hasListeners(),a=!r&&c(e,t),o=r&&d(e,s,t,n);(a||o)&&(v={...v,...(0,i.fetchState)(y.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:S}=v;r=v.data;let R=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===S){let e;u?.isPlaceholderData&&t.placeholderData===h?.placeholderData?(e=u.data,R=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#C?.state.data,this.#C):t.placeholderData,void 0!==e&&(S="success",r=(0,o.replaceData)(u?.data,e,t),b=!0)}if(t.select&&void 0!==r&&!R)if(u&&r===l?.data&&t.select===this.#O)r=this.#T;else try{this.#O=t.select,r=t.select(r),r=(0,o.replaceData)(u?.data,r,t),this.#T=r,this.#y=null}catch(e){this.#y=e}this.#y&&(m=this.#y,r=this.#T,g=Date.now(),S="error");let O="fetching"===v.fetchStatus,T="pending"===S,C="error"===S,w=T&&O,E=void 0!==r,I={status:S,fetchStatus:v.fetchStatus,isPending:T,isSuccess:"success"===S,isError:C,isInitialLoading:w,isLoading:w,data:r,dataUpdatedAt:v.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:O,isRefetching:O&&!T,isLoadingError:C&&!E,isPaused:"paused"===v.fetchStatus,isPlaceholderData:b,isRefetchError:C&&E,isStale:f(e,t),refetch:this.refetch,promise:this.#v,isEnabled:!1!==(0,o.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===I.status?e.reject(I.error):void 0!==I.data&&e.resolve(I.data)},r=()=>{t(this.#v=I.promise=(0,a.pendingThenable)())},i=this.#v;switch(i.status){case"pending":e.queryHash===s.queryHash&&t(i);break;case"fulfilled":("error"===I.status||I.data!==i.value)&&r();break;case"rejected":("error"!==I.status||I.error!==i.reason)&&r()}}return I}updateResult(){let e=this.#g,t=this.createResult(this.#b,this.options);if(this.#S=this.#b.state,this.#R=this.options,void 0!==this.#S.data&&(this.#C=this.#b),(0,o.shallowEqualObjects)(t,e))return;this.#g=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#F.size)return!0;let s=new Set(r??this.#F);return this.options.throwOnError&&s.add("error"),Object.keys(this.#g).some(t=>this.#g[t]!==e[t]&&s.has(t))};this.#x({listeners:r()})}#_(){let e=this.#c.getQueryCache().build(this.#c,this.options);if(e===this.#b)return;let t=this.#b;this.#b=e,this.#m=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#P()}#x(e){s.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#g)}),this.#c.getQueryCache().notify({query:this.#b,type:"observerResultsUpdated"})})}};function c(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,r){if(!1!==(0,o.resolveEnabled)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&f(e,t)}return!1}function d(e,t,r,s){return(e!==t||!1===(0,o.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}e.s(["QueryObserver",()=>l],706645),e.i(461474);var p=e.i(853741),y=e.i(940948);e.i(898516);var v=p.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),b=p.createContext(!1);b.Provider;var m=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function g(e,t,r){let i=p.useContext(b),n=p.useContext(v),a=(0,y.useQueryClient)(r),u=a.defaultQueryOptions(e);if(a.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=i?"isRestoring":"optimistic",u.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=u.staleTime;u.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof u.gcTime&&(u.gcTime=Math.max(u.gcTime,1e3))}(u.suspense||u.throwOnError||u.experimental_prefetchInRender)&&!n.isReset()&&(u.retryOn
1Mount=!1),p.useEffect(()=>{n.clearReset()},[n]);let l=!a.getQueryCache().get(u.queryHash),[c]=p.useState(()=>new t(a,u)),h=c.getOptimisticResult(u),d=!i&&!1!==e.subscribed;if(p.useSyncExternalStore(p.useCallback(e=>{let t=d?c.subscribe(s.notifyManager.batchCalls(e)):o.noop;return c.updateResult(),t},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setOptions(u)},[u,c]),u?.suspense&&h.isPending)throw m(u,c,n);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,o.shouldThrowError)(r,[e.error,s])))({result:h,errorResetBoundary:n,throwOnError:u.throwOnError,query:a.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw h.error;if(a.getDefaultOptions().queries?._experimental_afterQuery?.(u,h),u.experimental_prefetchInRender&&!o.isServer&&h.isLoading&&h.isFetching&&!i){let e=l?m(u,c,n):a.getQueryCache().get(u.queryHash)?.promise;e?.catch(o.noop).finally(()=>{c.updateResult()})}return u.notifyOnChangeProps?h:c.trackResult(h)}function S(e,t){return g(e,l,t)}e.s(["useBaseQuery",()=>g],378469),e.s(["useQuery",()=>S],816941)}]);
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.