|
2
|
|
-!function(){"use strict";var e={"./node_modules/@tanstack/query-core/build/modern/focusManager.js":function(e,t,r){r.r(t),r.d(t,{FocusManager:function(){return i},focusManager:function(){return o}});var n=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),s=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),i=class extends n.Subscribable{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!s.isServer&&window.addEventListener){const listener=()=>e();return window.addEventListener("visibilitychange",listener,!1),()=>{window.removeEventListener("visibilitychange",listener)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},o=new i},"./node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js":function(e,t,r){r.r(t),r.d(t,{hasNextPage:function(){return hasNextPage},hasPreviousPage:function(){return hasPreviousPage},infiniteQueryBehavior:function(){return infiniteQueryBehavior}});var n=r("./node_modules/@tanstack/query-core/build/modern/utils.js");function infiniteQueryBehavior(e){return{onFetch:(t,r)=>{const s=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},c=0;const fetchFn=async()=>{let r=!1;const l=(0,n.ensureQueryFn)(t.options,t.fetchOptions),fetchPage=async(e,s,i)=>{if(r)return Promise.reject();if(null==s&&e.pages.length)return Promise.resolve(e);const o=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:s,direction:i?"backward":"forward",meta:t.options.meta};var o;return o=e,(0,n.addConsumeAwareSignal)(o,()=>t.signal,()=>r=!0),e})(),a=await l(o),{maxPages:u}=t.options,c=i?n.addToStart:n.addToEnd;return{pages:c(e.pages,a,u),pageParams:c(e.pageParams,s,u)}};if(i&&o.length){const e="backward"===i,t={pages:o,pageParams:a},r=(e?getPreviousPageParam:getNextPageParam)(s,t);u=await fetchPage(t,r,e)}else{const t=e??o.length;do{const e=0===c?a[0]??s.initialPageParam:getNextPageParam(s,u);if(c>0&&null==e)break;u=await fetchPage(u,e),c++}while(c<t)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(fetchFn,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=fetchFn}}}function getNextPageParam(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function getPreviousPageParam(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function hasNextPage(e,t){return!!t&&null!=getNextPageParam(e,t)}function hasPreviousPage(e,t){return!(!t||!e.getPreviousPageParam)&&null!=getPreviousPageParam(e,t)}},"./node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js":function(e,t,r){r.r(t),r.d(t,{InfiniteQueryObserver:function(){return i}});var n=r("./node_modules/@tanstack/query-core/build/modern/queryObserver.js"),s=r("./node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js"),i=class extends n.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:(0,s.infiniteQueryBehavior)()})}getOptimisticResult(e){return e.behavior=(0,s.infiniteQueryBehavior)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,n=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:a,isRefetchError:u}=n,c=r.fetchMeta?.fetchMore?.direction,l=a&&"forward"===c,d=i&&"forward"===c,h=a&&"backward"===c,f=i&&"backward"===c;return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,s.hasNextPage)(t,r.data),hasPreviousPage:(0,s.hasPreviousPage)(t,r.data),isFetchNextPageError:l,isFetchingNextPage:d,isFetchPreviousPageError:h,isFetchingPreviousPage:f,isRefetchError:u&&!l&&!h,isRefetching:o&&!d&&!f}}}},"./node_modules/@tanstack/query-core/build/modern/mutation.js":function(e,t,r){r.r(t),r.d(t,{Mutation:function(){return o},getDefaultState:function(){return getDefaultState}});var n=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),s=r("./node_modules/@tanstack/query-core/build/modern/removable.js"),i=r("./node_modules/@tanstack/query-core/build/modern/retryer.js"),o=class extends s.Removable{#n;#s;#i;#o;constructor(e){super(),this.#n=e.client,this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#s=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#s.includes(e)||(this.#s.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#s=this.#s.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#s.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const onContinue=()=>{this.#a({type:"continue"})},t={client:this.#n,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=(0,i.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,t):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:onContinue,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});const r="pending"===this.state.status,n=!this.#o.canStart();try{if(r)onContinue();else{this.#a({type:"pending",variables:e,isPaused:n}),await(this.#i.config.onMutate?.(e,this,t));const r=await(this.options.onMutate?.(e,t));r!==this.state.context&&this.#a({type:"pending",context:r,variables:e,isPaused:n})}const s=await this.#o.start();return await(this.#i.config.onSuccess?.(s,e,this.state.context,this,t)),await(this.options.onSuccess?.(s,e,this.state.context,t)),await(this.#i.config.onSettled?.(s,null,this.state.variables,this.state.context,this,t)),await(this.options.onSettled?.(s,null,e,this.state.context,t)),this.#a({type:"success",data:s}),s}catch(r){try{throw await(this.#i.config.onError?.(r,e,this.state.context,this,t)),await(this.options.onError?.(r,e,this.state.context,t)),await(this.#i.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,t)),await(this.options.onSettled?.(void 0,r,e,this.state.context,t)),r}finally{this.#a({type:"error",error:r})}}finally{this.#i.runNext(this)}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),n.notifyManager.batch(()=>{this.#s.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},"./node_modules/@tanstack/query-core/build/modern/mutationCache.js":function(e,t,r){r.r(t),r.d(t,{MutationCache:function(){return a}});var n=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),s=r("./node_modules/@tanstack/query-core/build/modern/mutation.js"),i=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),o=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),a=class extends o.Subscribable{constructor(e={}){super(),this.config=e,this.#u=new Set,this.#c=new Map,this.#l=0}#u;#c;#l;build(e,t,r){const n=new s.Mutation({client:e,mutationCache:this,mutationId:++this.#l,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#u.add(e);const t=scopeFor(e);if("string"==typeof t){const r=this.#c.get(t);r?r.push(e):this.#c.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#u.delete(e)){const t=scopeFor(e);if("string"==typeof t){const r=this.#c.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#c.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=scopeFor(e);if("string"==typeof t){const r=this.#c.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=scopeFor(e);if("string"==typeof t){const r=this.#c.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}return Promise.resolve()}clear(){n.notifyManager.batch(()=>{this.#u.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#u.clear(),this.#c.clear()})}getAll(){return Array.from(this.#u)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>(0,i.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,i.matchMutation)(e,t))}notify(e){n.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return n.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(i.noop))))}};function scopeFor(e){return e.options.scope?.id}},"./node_modules/@tanstack/query-core/build/modern/mutationObserver.js":function(e,t,r){r.r(t),r.d(t,{MutationObserver:function(){return a}});var n=r("./node_modules/@tanstack/query-core/build/modern/mutation.js"),s=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),i=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),o=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),a=class extends i.Subscribable{#n;#d=void 0;#h;#f;constructor(e,t){super(),this.#n=e,this.setOptions(t),this.bindMethods(),this.#y()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#n.defaultMutationOptions(e),(0,o.shallowEqualObjects)(this.options,t)||this.#n.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#h,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.hashKey)(t.mutationKey)!==(0,o.hashKey)(this.options.mutationKey)?this.reset():"pending"===this.#h?.state.status&&this.#h.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#h?.removeObserver(this)}onMutationUpdate(e){this.#y(),this.#p(e)}getCurrentResult(){return this.#d}reset(){this.#h?.removeObserver(this),this.#h=void 0,this.#y(),this.#p()}mutate(e,t){return this.#f=t,this.#h?.removeObserver(this),this.#h=this.#n.getMutationCache().build(this.#n,this.options),this.#h.addObserver(this),this.#h.execute(e)}#y(){const e=this.#h?.state??(0,n.getDefaultState)();this.#d={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#p(e){s.notifyManager.batch(()=>{if(this.#f&&this.hasListeners()){const t=this.#d.variables,r=this.#d.context,n={client:this.#n,meta:this.options.meta,mutationKey:this.options.mutationKey};"success"===e?.type?(this.#f.onSuccess?.(e.data,t,r,n),this.#f.onSettled?.(e.data,null,t,r,n)):"error"===e?.type&&(this.#f.onError?.(e.error,t,r,n),this.#f.onSettled?.(void 0,e.error,t,r,n))}this.listeners.forEach(e=>{e(this.#d)})})}}},"./node_modules/@tanstack/query-core/build/modern/notifyManager.js":function(e,t,r){r.r(t),r.d(t,{createNotifyManager:function(){return createNotifyManager},defaultScheduler:function(){return n},notifyManager:function(){return s}});var n=r("./node_modules/@tanstack/query-core/build/modern/timeoutManager.js").systemSetTimeoutZero;function createNotifyManager(){let e=[],t=0,notifyFn=e=>{e()},batchNotifyFn=e=>{e()},r=n;const schedule=n=>{t?e.push(n):r(()=>{notifyFn(n)})};return{batch:n=>{let s;t++;try{s=n()}finally{t--,t||(()=>{const t=e;e=[],t.length&&r(()=>{batchNotifyFn(()=>{t.forEach(e=>{notifyFn(e)})})})})()}return s},batchCalls:e=>(...t)=>{schedule(()=>{e(...t)})},schedule:schedule,setNotifyFunction:e=>{notifyFn=e},setBatchNotifyFunction:e=>{batchNotifyFn=e},setScheduler:e=>{r=e}}}var s=createNotifyManager()},"./node_modules/@tanstack/query-core/build/modern/onlineManager.js":function(e,t,r){r.r(t),r.d(t,{OnlineManager:function(){return i},onlineManager:function(){return o}});var n=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),s=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),i=class extends n.Subscribable{#m=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!s.isServer&&window.addEventListener){const onlineListener=()=>e(!0),offlineListener=()=>e(!1);return window.addEventListener("online",onlineListener,!1),window.addEventListener("offline",offlineListener,!1),()=>{window.removeEventListener("online",onlineListener),window.removeEventListener("offline",offlineListener)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#m!==e&&(this.#m=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#m}},o=new i},"./node_modules/@tanstack/query-core/build/modern/query.js":function(e,t,r){r.r(t),r.d(t,{Query:function(){return a},fetchState:function(){return fetchState}});var n=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),s=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),i=r("./node_modules/@tanstack/query-core/build/modern/retryer.js"),o=r("./node_modules/@tanstack/query-core/build/modern/removable.js"),a=class extends o.Removable{#b;#v;#g;#n;#o;#C;#q;constructor(e){super(),this.#q=!1,this.#C=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#g=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#b=getDefaultState(this.options),this.state=e.state??this.#b,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#C,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=getDefaultState(this.options);void 0!==e.data&&(this.setState(successState(e.data,e.dataUpdatedAt)),this.#b=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#g.remove(this)}setData(e,t){const r=(0,n.replaceData)(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(n.noop).catch(n.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#b)}isActive(){return this.observers.some(e=>!1!==(0,n.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===n.skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,n.resolveStaleTime)(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||!(0,n.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#g.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.#o&&(this.#q?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#g.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#o?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,addSignalProperty=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#q=!0,r.signal)})},fetchFn=()=>{const e=(0,n.ensureQueryFn)(this.options,t),r=(()=>{const e={client:this.#n,queryKey:this.queryKey,meta:this.meta};return addSignalProperty(e),e})();return this.#q=!1,this.options.persister?this.options.persister(e,r,this):e(r)},s=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:fetchFn};return addSignalProperty(e),e})();this.options.behavior?.onFetch(s,this),this.#v=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===s.fetchOptions?.meta||this.#a({type:"fetch",meta:s.fetchOptions?.meta}),this.#o=(0,i.createRetryer)({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:e=>{e instanceof i.CancelledError&&e.revert&&this.setState({...this.#v,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const e=await this.#o.start();if(void 0===e)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#g.config.onSuccess?.(e,this),this.#g.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof i.CancelledError){if(e.silent)return this.#o.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#a({type:"error",error:e}),this.#g.config.onError?.(e,this),this.#g.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#a(e){this.state=(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,...fetchState(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...successState(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#v=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),s.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#g.notify({query:this,type:"updated",action:e})})}};function fetchState(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,i.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function successState(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function getDefaultState(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}},"./node_modules/@tanstack/query-core/build/modern/queryCache.js":function(e,t,r){r.r(t),r.d(t,{QueryCache:function(){return a}});var n=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),s=r("./node_modules/@tanstack/query-core/build/modern/query.js"),i=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),o=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),a=class extends o.Subscribable{constructor(e={}){super(),this.config=e,this.#O=new Map}#O;build(e,t,r){const i=t.queryKey,o=t.queryHash??(0,n.hashQueryKeyByOptions)(i,t);let a=this.get(o);return a||(a=new s.Query({client:e,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.#O.has(e.queryHash)||(this.#O.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#O.get(e.queryHash);t&&(e.destroy(),t===e&&this.#O.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#O.get(e)}getAll(){return[...this.#O.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>(0,n.matchQuery)(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,n.matchQuery)(e,t)):t}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}},"./node_modules/@tanstack/query-core/build/modern/queryClient.js":function(e,t,r){r.r(t),r.d(t,{QueryClient:function(){return l}});var n=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),s=r("./node_modules/@tanstack/query-core/build/modern/queryCache.js"),i=r("./node_modules/@tanstack/query-core/build/modern/mutationCache.js"),o=r("./node_modules/@tanstack/query-core/build/modern/focusManager.js"),a=r("./node_modules/@tanstack/query-core/build/modern/onlineManager.js"),u=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),c=r("./node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js"),l=class{#S;#i;#C;#_;#k;#w;#j;#R;constructor(e={}){this.#S=e.queryCache||new s.QueryCache,this.#i=e.mutationCache||new i.MutationCache,this.#C=e.defaultOptions||{},this.#_=new Map,this.#k=new Map,this.#w=0}mount(){this.#w++,1===this.#w&&(this.#j=o.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#S.onFocus())}),this.#R=a.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#S.onOnline())}))}unmount(){this.#w--,0===this.#w&&(this.#j?.(),this.#j=void 0,this.#R?.(),this.#R=void 0)}isFetching(e){return this.#S.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#S.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#S.build(this,t),s=r.state.data;return void 0===s?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,n.resolveStaleTime)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#S.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),i=this.#S.get(s.queryHash),o=i?.state.data,a=(0,n.functionalUpdate)(t,o);if(void 0!==a)return this.#S.build(this,s).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return u.notifyManager.batch(()=>this.#S.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#S.get(t.queryHash)?.state}removeQueries(e){const t=this.#S;u.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#S;return u.notifyManager.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},s=u.notifyManager.batch(()=>this.#S.findAll(e).map(e=>e.cancel(r)));return Promise.all(s).then(n.noop).catch(n.noop)}invalidateQueries(e,t={}){return u.notifyManager.batch(()=>(this.#S.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=u.notifyManager.batch(()=>this.#S.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(n.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(s).then(n.noop)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#S.build(this,t);return r.isStaleByTime((0,n.resolveStaleTime)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n.noop).catch(n.noop)}fetchInfiniteQuery(e){return e.behavior=(0,c.infiniteQueryBehavior)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.noop).catch(n.noop)}ensureInfiniteQueryData(e){return e.behavior=(0,c.infiniteQueryBehavior)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return a.onlineManager.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#S}getMutationCache(){return this.#i}getDefaultOptions(){return this.#C}setDefaultOptions(e){this.#C=e}setQueryDefaults(e,t){this.#_.set((0,n.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#_.values()],r={};return t.forEach(t=>{(0,n.partialMatchKey)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#k.set((0,n.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#k.values()],r={};return t.forEach(t=>{(0,n.partialMatchKey)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#C.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n.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===n.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#C.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#S.clear(),this.#i.clear()}}},"./node_modules/@tanstack/query-core/build/modern/queryObserver.js":function(e,t,r){r.r(t),r.d(t,{QueryObserver:function(){return l}});var n=r("./node_modules/@tanstack/query-core/build/modern/focusManager.js"),s=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),i=r("./node_modules/@tanstack/query-core/build/modern/query.js"),o=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),a=r("./node_modules/@tanstack/query-core/build/modern/thenable.js"),u=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),c=r("./node_modules/@tanstack/query-core/build/modern/timeoutManager.js"),l=class extends o.Subscribable{constructor(e,t){super(),this.options=t,this.#n=e,this.#P=null,this.#E=(0,a.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#n;#Q=void 0;#M=void 0;#d=void 0;#T;#F;#E;#P;#x;#D;#I;#A;#K;#U;#N=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#Q.addObserver(this),shouldFetchOnMount(this.#Q,this.options)?this.#B():this.updateResult(),this.#V())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(this.#Q,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(this.#Q,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#L(),this.#$(),this.#Q.removeObserver(this)}setOptions(e){const t=this.options,r=this.#Q;if(this.options=this.#n.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.resolveEnabled)(this.options.enabled,this.#Q))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#H(),this.#Q.setOptions(this.options),t._defaulted&&!(0,u.shallowEqualObjects)(this.options,t)&&this.#n.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#Q,observer:this});const n=this.hasListeners();n&&shouldFetchOptionally(this.#Q,r,this.options,t)&&this.#B(),this.updateResult(),!n||this.#Q===r&&(0,u.resolveEnabled)(this.options.enabled,this.#Q)===(0,u.resolveEnabled)(t.enabled,this.#Q)&&(0,u.resolveStaleTime)(this.options.staleTime,this.#Q)===(0,u.resolveStaleTime)(t.staleTime,this.#Q)||this.#W();const s=this.#G();!n||this.#Q===r&&(0,u.resolveEnabled)(this.options.enabled,this.#Q)===(0,u.resolveEnabled)(t.enabled,this.#Q)&&s===this.#U||this.#z(s)}getOptimisticResult(e){const t=this.#n.getQueryCache().build(this.#n,e),r=this.createResult(t,e);return function shouldAssignObserverCurrentProperties(e,t){if(!(0,u.shallowEqualObjects)(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(this.#d=r,this.#F=this.options,this.#T=this.#Q.state),r}getCurrentResult(){return this.#d}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.#E.status||this.#E.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#N.add(e)}getCurrentQuery(){return this.#Q}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#n.defaultQueryOptions(e),r=this.#n.getQueryCache().build(this.#n,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#B({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#d))}#B(e){this.#H();let t=this.#Q.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.noop)),t}#W(){this.#L();const e=(0,u.resolveStaleTime)(this.options.staleTime,this.#Q);if(u.isServer||this.#d.isStale||!(0,u.isValidTimeout)(e))return;const t=(0,u.timeUntilStale)(this.#d.dataUpdatedAt,e)+1;this.#A=c.timeoutManager.setTimeout(()=>{this.#d.isStale||this.updateResult()},t)}#G(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#Q):this.options.refetchInterval)??!1}#z(e){this.#$(),this.#U=e,!u.isServer&&!1!==(0,u.resolveEnabled)(this.options.enabled,this.#Q)&&(0,u.isValidTimeout)(this.#U)&&0!==this.#U&&(this.#K=c.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||n.focusManager.isFocused())&&this.#B()},this.#U))}#V(){this.#W(),this.#z(this.#G())}#L(){this.#A&&(c.timeoutManager.clearTimeout(this.#A),this.#A=void 0)}#$(){this.#K&&(c.timeoutManager.clearInterval(this.#K),this.#K=void 0)}createResult(e,t){const r=this.#Q,n=this.options,s=this.#d,o=this.#T,c=this.#F,l=e!==r?e.state:this.#M,{state:d}=e;let h,f={...d},y=!1;if(t._optimisticResults){const s=this.hasListeners(),o=!s&&shouldFetchOnMount(e,t),a=s&&shouldFetchOptionally(e,r,t,n);(o||a)&&(f={...f,...(0,i.fetchState)(d.data,e.options)}),"isRestoring"===t._optimisticResults&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:b}=f;h=f.data;let v=!1;if(void 0!==t.placeholderData&&void 0===h&&"pending"===b){let e;s?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=s.data,v=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#I?.state.data,this.#I):t.placeholderData,void 0!==e&&(b="success",h=(0,u.replaceData)(s?.data,e,t),y=!0)}if(t.select&&void 0!==h&&!v)if(s&&h===o?.data&&t.select===this.#x)h=this.#D;else try{this.#x=t.select,h=t.select(h),h=(0,u.replaceData)(s?.data,h,t),this.#D=h,this.#P=null}catch(e){this.#P=e}this.#P&&(p=this.#P,h=this.#D,m=Date.now(),b="error");const g="fetching"===f.fetchStatus,C="pending"===b,q="error"===b,O=C&&g,S=void 0!==h,_={status:b,fetchStatus:f.fetchStatus,isPending:C,isSuccess:"success"===b,isError:q,isInitialLoading:O,isLoading:O,data:h,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!C,isLoadingError:q&&!S,isPaused:"paused"===f.fetchStatus,isPlaceholderData:y,isRefetchError:q&&S,isStale:isStale(e,t),refetch:this.refetch,promise:this.#E,isEnabled:!1!==(0,u.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){const finalizeThenableIfPossible=e=>{"error"===_.status?e.reject(_.error):void 0!==_.data&&e.resolve(_.data)},recreateThenable=()=>{const e=this.#E=_.promise=(0,a.pendingThenable)();finalizeThenableIfPossible(e)},t=this.#E;switch(t.status){case"pending":e.queryHash===r.queryHash&&finalizeThenableIfPossible(t);break;case"fulfilled":"error"!==_.status&&_.data===t.value||recreateThenable();break;case"rejected":"error"===_.status&&_.error===t.reason||recreateThenable()}}return _}updateResult(){const e=this.#d,t=this.createResult(this.#Q,this.options);if(this.#T=this.#Q.state,this.#F=this.options,void 0!==this.#T.data&&(this.#I=this.#Q),(0,u.shallowEqualObjects)(t,e))return;this.#d=t;this.#p({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#N.size)return!0;const n=new Set(r??this.#N);return this.options.throwOnError&&n.add("error"),Object.keys(this.#d).some(t=>{const r=t;return this.#d[r]!==e[r]&&n.has(r)})})()})}#H(){const e=this.#n.getQueryCache().build(this.#n,this.options);if(e===this.#Q)return;const t=this.#Q;this.#Q=e,this.#M=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#V()}#p(e){s.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#d)}),this.#n.getQueryCache().notify({query:this.#Q,type:"observerResultsUpdated"})})}};function shouldFetchOnMount(e,t){return function shouldLoadOnMount(e,t){return!1!==(0,u.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&shouldFetchOn(e,t,t.refetchOnMount)}function shouldFetchOn(e,t,r){if(!1!==(0,u.resolveEnabled)(t.enabled,e)&&"static"!==(0,u.resolveStaleTime)(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&isStale(e,t)}return!1}function shouldFetchOptionally(e,t,r,n){return(e!==t||!1===(0,u.resolveEnabled)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&isStale(e,r)}function isStale(e,t){return!1!==(0,u.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,u.resolveStaleTime)(t.staleTime,e))}},"./node_modules/@tanstack/query-core/build/modern/removable.js":function(e,t,r){r.r(t),r.d(t,{Removable:function(){return i}});var n=r("./node_modules/@tanstack/query-core/build/modern/timeoutManager.js"),s=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),i=class{#J;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,s.isValidTimeout)(this.gcTime)&&(this.#J=n.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(s.isServer?1/0:3e5))}clearGcTimeout(){this.#J&&(n.timeoutManager.clearTimeout(this.#J),this.#J=void 0)}}},"./node_modules/@tanstack/query-core/build/modern/retryer.js":function(e,t,r){r.r(t),r.d(t,{CancelledError:function(){return a},canFetch:function(){return canFetch},createRetryer:function(){return createRetryer},isCancelledError:function(){return isCancelledError}});var n=r("./node_modules/@tanstack/query-core/build/modern/focusManager.js"),s=r("./node_modules/@tanstack/query-core/build/modern/onlineManager.js"),i=r("./node_modules/@tanstack/query-core/build/modern/thenable.js"),o=r("./node_modules/@tanstack/query-core/build/modern/utils.js");function defaultRetryDelay(e){return Math.min(1e3*2**e,3e4)}function canFetch(e){return"online"!==(e??"online")||s.onlineManager.isOnline()}var a=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function isCancelledError(e){return e instanceof a}function createRetryer(e){let t,r=!1,u=0;const c=(0,i.pendingThenable)(),isResolved=()=>"pending"!==c.status,canContinue=()=>n.focusManager.isFocused()&&("always"===e.networkMode||s.onlineManager.isOnline())&&e.canRun(),canStart=()=>canFetch(e.networkMode)&&e.canRun(),resolve=e=>{isResolved()||(t?.(),c.resolve(e))},reject=e=>{isResolved()||(t?.(),c.reject(e))},pause=()=>new Promise(r=>{t=e=>{(isResolved()||canContinue())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,isResolved()||e.onContinue?.()}),run=()=>{if(isResolved())return;let t;const n=0===u?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(resolve).catch(t=>{if(isResolved())return;const n=e.retry??(o.isServer?0:3),s=e.retryDelay??defaultRetryDelay,i="function"==typeof s?s(u,t):s,a=!0===n||"number"==typeof n&&u<n||"function"==typeof n&&n(u,t);!r&&a?(u++,e.onFail?.(u,t),(0,o.sleep)(i).then(()=>canContinue()?void 0:pause()).then(()=>{r?reject(t):run()})):reject(t)})};return{promise:c,status:()=>c.status,cancel:t=>{if(!isResolved()){const r=new a(t);reject(r),e.onCancel?.(r)}},continue:()=>(t?.(),c),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:canStart,start:()=>(canStart()?run():pause().then(run),c)}}},"./node_modules/@tanstack/query-core/build/modern/subscribable.js":function(e,t,r){r.r(t),r.d(t,{Subscribable:function(){return n}});var n=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(){}}},"./node_modules/@tanstack/query-core/build/modern/thenable.js":function(e,t,r){r.r(t),r.d(t,{pendingThenable:function(){return pendingThenable},tryResolveSync:function(){return tryResolveSync}});var n=r("./node_modules/@tanstack/query-core/build/modern/utils.js");function pendingThenable(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function finalize(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{finalize({status:"fulfilled",value:t}),e(t)},r.reject=e=>{finalize({status:"rejected",reason:e}),t(e)},r}function tryResolveSync(e){let t;if(e.then(e=>(t=e,e),n.noop)?.catch(n.noop),void 0!==t)return{data:t}}},"./node_modules/@tanstack/query-core/build/modern/timeoutManager.js":function(e,t,r){r.r(t),r.d(t,{TimeoutManager:function(){return s},defaultTimeoutProvider:function(){return n},systemSetTimeoutZero:function(){return systemSetTimeoutZero},timeoutManager:function(){return i}});var n={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},s=class{#Y=n;#Z=!1;setTimeoutProvider(e){this.#Z&&e!==this.#Y&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#Y,provider:e}),this.#Y=e,this.#Z=!1}setTimeout(e,t){return this.#Z=!0,this.#Y.setTimeout(e,t)}clearTimeout(e){this.#Y.clearTimeout(e)}setInterval(e,t){return this.#Z=!0,this.#Y.setInterval(e,t)}clearInterval(e){this.#Y.clearInterval(e)}},i=new s;function systemSetTimeoutZero(e){setTimeout(e,0)}},"./node_modules/@tanstack/query-core/build/modern/utils.js":function(e,t,r){r.r(t),r.d(t,{addConsumeAwareSignal:function(){return addConsumeAwareSignal},addToEnd:function(){return addToEnd},addToStart:function(){return addToStart},ensureQueryFn:function(){return ensureQueryFn},functionalUpdate:function(){return functionalUpdate},hashKey:function(){return hashKey},hashQueryKeyByOptions:function(){return hashQueryKeyByOptions},isPlainArray:function(){return isPlainArray},isPlainObject:function(){return isPlainObject},isServer:function(){return s},isValidTimeout:function(){return isValidTimeout},keepPreviousData:function(){return keepPreviousData},matchMutation:function(){return matchMutation},matchQuery:function(){return matchQuery},noop:function(){return noop},partialMatchKey:function(){return partialMatchKey},replaceData:function(){return replaceData},replaceEqualDeep:function(){return replaceEqualDeep},resolveEnabled:function(){return resolveEnabled},resolveStaleTime:function(){return resolveStaleTime},shallowEqualObjects:function(){return shallowEqualObjects},shouldThrowError:function(){return shouldThrowError},skipToken:function(){return o},sleep:function(){return sleep},timeUntilStale:function(){return timeUntilStale}});var n=r("./node_modules/@tanstack/query-core/build/modern/timeoutManager.js"),s="undefined"==typeof window||"Deno"in globalThis;function noop(){}function functionalUpdate(e,t){return"function"==typeof e?e(t):e}function isValidTimeout(e){return"number"==typeof e&&e>=0&&e!==1/0}function timeUntilStale(e,t){return Math.max(e+(t||0)-Date.now(),0)}function resolveStaleTime(e,t){return"function"==typeof e?e(t):e}function resolveEnabled(e,t){return"function"==typeof e?e(t):e}function matchQuery(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o)if(n){if(t.queryHash!==hashQueryKeyByOptions(o,t.options))return!1}else if(!partialMatchKey(t.queryKey,o))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!s||s===t.state.fetchStatus)&&!(i&&!i(t)))}function matchMutation(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(hashKey(t.options.mutationKey)!==hashKey(i))return!1}else if(!partialMatchKey(t.options.mutationKey,i))return!1}return(!n||t.state.status===n)&&!(s&&!s(t))}function hashQueryKeyByOptions(e,t){return(t?.queryKeyHashFn||hashKey)(e)}function hashKey(e){return JSON.stringify(e,(e,t)=>isPlainObject(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function partialMatchKey(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>partialMatchKey(e[r],t[r])))}var i=Object.prototype.hasOwnProperty;function replaceEqualDeep(e,t){if(e===t)return e;const r=isPlainArray(e)&&isPlainArray(t);if(!(r||isPlainObject(e)&&isPlainObject(t)))return t;const n=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),o=s.length,a=r?new Array(o):{};let u=0;for(let c=0;c<o;c++){const o=r?c:s[c],l=e[o],d=t[o];if(l===d){a[o]=l,(r?c<n:i.call(e,o))&&u++;continue}if(null===l||null===d||"object"!=typeof l||"object"!=typeof d){a[o]=d;continue}const h=replaceEqualDeep(l,d);a[o]=h,h===l&&u++}return n===o&&u===n?e:a}function shallowEqualObjects(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function isPlainArray(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!hasObjectPrototype(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function hasObjectPrototype(e){return"[object Object]"===Object.prototype.toString.call(e)}function sleep(e){return new Promise(t=>{n.timeoutManager.setTimeout(t,e)})}function replaceData(e,t,r){if("function"==typeof r.structuralSharing)return r.structuralSharing(e,t);if(!1!==r.structuralSharing)try{return replaceEqualDeep(e,t)}catch(e){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${e}`),e}return t}function keepPreviousData(e){return e}function addToEnd(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function addToStart(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var o=Symbol();function ensureQueryFn(e,t){return e.queryFn===o&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==o?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function shouldThrowError(e,t){return"function"==typeof e?e(...t):!!e}function addConsumeAwareSignal(e,t,r){let n,s=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),s||(s=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)}),e}},"./node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js":function(e,t,r){r.r(t),r.d(t,{IsRestoringProvider:function(){return i},useIsRestoring:function(){return useIsRestoring}});var n=r("react"),s=n.createContext(!1),useIsRestoring=()=>n.useContext(s),i=s.Provider},"./node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js":function(e,t,r){r.r(t),r.d(t,{QueryClientContext:function(){return i},QueryClientProvider:function(){return QueryClientProvider},useQueryClient:function(){return useQueryClient}});var n=r("react"),s=r("./node_modules/react/jsx-runtime.js"),i=n.createContext(void 0),useQueryClient=e=>{const t=n.useContext(i);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},QueryClientProvider=({client:e,children:t})=>(n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,s.jsx)(i.Provider,{value:e,children:t}))},"./node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js":function(e,t,r){r.r(t),r.d(t,{QueryErrorResetBoundary:function(){return QueryErrorResetBoundary},useQueryErrorResetBoundary:function(){return useQueryErrorResetBoundary}});var n=r("react"),s=r("./node_modules/react/jsx-runtime.js");function createValue(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var i=n.createContext(createValue()),useQueryErrorResetBoundary=()=>n.useContext(i),QueryErrorResetBoundary=({children:e})=>{const[t]=n.useState(()=>createValue());return(0,s.jsx)(i.Provider,{value:t,children:"function"==typeof e?e(t):e})}},"./node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js":function(e,t,r){r.r(t),r.d(t,{ensurePreventErrorBoundaryRetry:function(){return ensurePreventErrorBoundaryRetry},getHasError:function(){return getHasError},useClearResetErrorBoundary:function(){return useClearResetErrorBoundary}});var n=r("react"),s=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),ensurePreventErrorBoundaryRetry=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},useClearResetErrorBoundary=e=>{n.useEffect(()=>{e.clearReset()},[e])},getHasError=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||(0,s.shouldThrowError)(r,[e.error,n]))},"./node_modules/@tanstack/react-query/build/modern/suspense.js":function(e,t,r){r.r(t),r.d(t,{defaultThrowOnError:function(){return defaultThrowOnError},ensureSuspenseTimers:function(){return ensureSuspenseTimers},fetchOptimistic:function(){return fetchOptimistic},shouldSuspend:function(){return shouldSuspend},willFetch:function(){return willFetch}});var defaultThrowOnError=(e,t)=>void 0===t.state.data,ensureSuspenseTimers=e=>{if(e.suspense){const t=1e3,clamp=e=>"static"===e?e:Math.max(e??t,t),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>clamp(r(...e)):clamp(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}},willFetch=(e,t)=>e.isLoading&&e.isFetching&&!t,shouldSuspend=(e,t)=>e?.suspense&&t.isPending,fetchOptimistic=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()})},"./node_modules/@tanstack/react-query/build/modern/useBaseQuery.js":function(e,t,r){r.r(t),r.d(t,{useBaseQuery:function(){return useBaseQuery}});var n=r("react"),s=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),i=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),o=r("./node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js"),a=r("./node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js"),u=r("./node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js"),c=r("./node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js"),l=r("./node_modules/@tanstack/react-query/build/modern/suspense.js");function useBaseQuery(e,t,r){if("object"!=typeof e||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const d=(0,c.useIsRestoring)(),h=(0,a.useQueryErrorResetBoundary)(),f=(0,o.useQueryClient)(r),y=f.defaultQueryOptions(e);f.getDefaultOptions().queries?._experimental_beforeQuery?.(y),y.queryFn||console.error(`[${y.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),y._optimisticResults=d?"isRestoring":"optimistic",(0,l.ensureSuspenseTimers)(y),(0,u.ensurePreventErrorBoundaryRetry)(y,h),(0,u.useClearResetErrorBoundary)(h);const p=!f.getQueryCache().get(y.queryHash),[m]=n.useState(()=>new t(f,y)),b=m.getOptimisticResult(y),v=!d&&!1!==e.subscribed;if(n.useSyncExternalStore(n.useCallback(e=>{const t=v?m.subscribe(s.notifyManager.batchCalls(e)):i.noop;return m.updateResult(),t},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),n.useEffect(()=>{m.setOptions(y)},[y,m]),(0,l.shouldSuspend)(y,b))throw(0,l.fetchOptimistic)(y,m,h);if((0,u.getHasError)({result:b,errorResetBoundary:h,throwOnError:y.throwOnError,query:f.getQueryCache().get(y.queryHash),suspense:y.suspense}))throw b.error;if(f.getDefaultOptions().queries?._experimental_afterQuery?.(y,b),y.experimental_prefetchInRender&&!i.isServer&&(0,l.willFetch)(b,d)){const e=p?(0,l.fetchOptimistic)(y,m,h):f.getQueryCache().get(y.queryHash)?.promise;e?.catch(i.noop).finally(()=>{m.updateResult()})}return y.notifyOnChangeProps?b:m.trackResult(b)}},"./node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js":function(e,t,r){r.r(t),r.d(t,{useInfiniteQuery:function(){return useInfiniteQuery}});var n=r("./node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js"),s=r("./node_modules/@tanstack/react-query/build/modern/useBaseQuery.js");function useInfiniteQuery(e,t){return(0,s.useBaseQuery)(e,n.InfiniteQueryObserver,t)}},"./node_modules/@tanstack/react-query/build/modern/useMutation.js":function(e,t,r){r.r(t),r.d(t,{useMutation:function(){return useMutation}});var n=r("react"),s=r("./node_modules/@tanstack/query-core/build/modern/mutationObserver.js"),i=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),o=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),a=r("./node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js");function useMutation(e,t){const r=(0,a.useQueryClient)(t),[u]=n.useState(()=>new s.MutationObserver(r,e));n.useEffect(()=>{u.setOptions(e)},[u,e]);const c=n.useSyncExternalStore(n.useCallback(e=>u.subscribe(i.notifyManager.batchCalls(e)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),l=n.useCallback((e,t)=>{u.mutate(e,t).catch(o.noop)},[u]);if(c.error&&(0,o.shouldThrowError)(u.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:l,mutateAsync:c.mutate}}},"./node_modules/@tanstack/react-query/build/modern/useMutationState.js":function(e,t,r){r.r(t),r.d(t,{useIsMutating:function(){return useIsMutating},useMutationState:function(){return useMutationState}});var n=r("react"),s=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),i=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),o=r("./node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js");function useIsMutating(e,t){return useMutationState({filters:{...e,status:"pending"}},(0,o.useQueryClient)(t)).length}function getResult(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function useMutationState(e={},t){const r=(0,o.useQueryClient)(t).getMutationCache(),a=n.useRef(e),u=n.useRef(null);return null===u.current&&(u.current=getResult(r,e)),n.useEffect(()=>{a.current=e}),n.useSyncExternalStore(n.useCallback(e=>r.subscribe(()=>{const t=(0,i.replaceEqualDeep)(u.current,getResult(r,a.current));u.current!==t&&(u.current=t,s.notifyManager.schedule(e))}),[r]),()=>u.current,()=>u.current)}},"./node_modules/@tanstack/react-query/build/modern/useQuery.js":function(e,t,r){r.r(t),r.d(t,{useQuery:function(){return useQuery}});var n=r("./node_modules/@tanstack/query-core/build/modern/queryObserver.js"),s=r("./node_modules/@tanstack/react-query/build/modern/useBaseQuery.js");function useQuery(e,t){return(0,s.useBaseQuery)(e,n.QueryObserver,t)}},"./node_modules/react/cjs/react-jsx-runtime.development.js":function(e,t,r){(function(){var e=r("react"),n=Symbol.for("react.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator;var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function error(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];!function printWarning(e,t,r){var n=b.ReactDebugCurrentFrame,s=n.getStackAddendum();""!==s&&(t+="%s",r=r.concat([s]));var i=r.map(function(e){return String(e)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var v;function getContextName(e){return e.displayName||"Context"}function getComponentNameFromType(e){if(null==e)return null;if("number"==typeof e.tag&&error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case i:return"Fragment";case s:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case h:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return getContextName(e)+".Consumer";case u:return getContextName(e._context)+".Provider";case l:return function getWrappedName(e,t,r){var n=e.displayName;if(n)return n;var s=t.displayName||t.name||"";return""!==s?r+"("+s+")":r}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:getComponentNameFromType(e.type)||"Memo";case y:var r=e,n=r._payload,p=r._init;try{return getComponentNameFromType(p(n))}catch(e){return null}}return null}v=Symbol.for("react.module.reference");var g,C,q,O,S,_,k,w=Object.assign,j=0;function disabledLog(){}disabledLog.__reactDisabledLog=!0;var R,P=b.ReactCurrentDispatcher;function describeBuiltInComponentFrame(e,t,r){if(void 0===R)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);R=n&&n[1]||""}return"\n"+R+e}var E,Q=!1,M="function"==typeof WeakMap?WeakMap:Map;function describeNativeComponentFrame(e,t){if(!e||Q)return"";var r,n=E.get(e);if(void 0!==n)return n;Q=!0;var s,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,s=P.current,P.current=null,function disableLogs(){if(0===j){g=console.log,C=console.info,q=console.warn,O=console.error,S=console.group,_=console.groupCollapsed,k=console.groupEnd;var e={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}j++}();try{if(t){var Fake=function(){throw Error()};if(Object.defineProperty(Fake.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(Fake,[])}catch(e){r=e}Reflect.construct(e,[],Fake)}else{try{Fake.call()}catch(e){r=e}e.call(Fake.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),u=o.length-1,c=a.length-1;u>=1&&c>=0&&o[u]!==a[c];)c--;for(;u>=1&&c>=0;u--,c--)if(o[u]!==a[c]){if(1!==u||1!==c)do{if(u--,--c<0||o[u]!==a[c]){var l="\n"+o[u].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),"function"==typeof e&&E.set(e,l),l}}while(u>=1&&c>=0);break}}}finally{Q=!1,P.current=s,function reenableLogs(){if(0===--j){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},e,{value:g}),info:w({},e,{value:C}),warn:w({},e,{value:q}),error:w({},e,{value:O}),group:w({},e,{value:S}),groupCollapsed:w({},e,{value:_}),groupEnd:w({},e,{value:k})})}j<0&&error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var d=e?e.displayName||e.name:"",h=d?describeBuiltInComponentFrame(d):"";return"function"==typeof e&&E.set(e,h),h}function describeUnknownElementTypeFrameInDEV(e,t,r){if(null==e)return"";if("function"==typeof e)return describeNativeComponentFrame(e,function shouldConstruct(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return describeBuiltInComponentFrame(e);switch(e){case d:return describeBuiltInComponentFrame("Suspense");case h:return describeBuiltInComponentFrame("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case l:return function describeFunctionComponentFrame(e,t,r){return describeNativeComponentFrame(e,!1)}(e.render);case f:return describeUnknownElementTypeFrameInDEV(e.type,t,r);case y:var n=e,s=n._payload,i=n._init;try{return describeUnknownElementTypeFrameInDEV(i(s),t,r)}catch(e){}}return""}E=new M;var T=Object.prototype.hasOwnProperty,F={},x=b.ReactDebugCurrentFrame;function setCurrentlyValidatingElement(e){if(e){var t=e._owner,r=describeUnknownElementTypeFrameInDEV(e.type,e._source,t?t.type:null);x.setExtraStackFrame(r)}else x.setExtraStackFrame(null)}var D=Array.isArray;function isArray(e){return D(e)}function testStringCoercion(e){return""+e}function checkKeyStringCoercion(e){if(function willCoercionThrow(e){try{return testStringCoercion(e),!1}catch(e){return!0}}(e))return error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function typeName(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),testStringCoercion(e)}var I,A,K,U=b.ReactCurrentOwner,N={key:!0,ref:!0,__self:!0,__source:!0};K={};function jsxDEV(e,t,r,s,i){var o,a={},u=null,c=null;for(o in void 0!==r&&(checkKeyStringCoercion(r),u=""+r),function hasValidKey(e){if(T.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(checkKeyStringCoercion(t.key),u=""+t.key),function hasValidRef(e){if(T.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function warnIfStringRefCannotBeAutoConverted(e,t){if("string"==typeof e.ref&&U.current&&t&&U.current.stateNode!==t){var r=getComponentNameFromType(U.current.type);K[r]||(error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',getComponentNameFromType(U.current.type),e.ref),K[r]=!0)}}(t,i)),t)T.call(t,o)&&!N.hasOwnProperty(o)&&(a[o]=t[o]);if(e&&e.defaultProps){var l=e.defaultProps;for(o in l)void 0===a[o]&&(a[o]=l[o])}if(u||c){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;u&&function defineKeyPropWarningGetter(e,t){var warnAboutAccessingKey=function(){I||(I=!0,error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};warnAboutAccessingKey.isReactWarning=!0,Object.defineProperty(e,"key",{get:warnAboutAccessingKey,configurable:!0})}(a,d),c&&function defineRefPropWarningGetter(e,t){var warnAboutAccessingRef=function(){A||(A=!0,error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};warnAboutAccessingRef.isReactWarning=!0,Object.defineProperty(e,"ref",{get:warnAboutAccessingRef,configurable:!0})}(a,d)}return function(e,t,r,s,i,o,a){var u={$$typeof:n,type:e,key:t,ref:r,props:a,_owner:o,_store:{}};return Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u}(e,u,c,i,s,U.current,a)}var B,V=b.ReactCurrentOwner,L=b.ReactDebugCurrentFrame;function setCurrentlyValidatingElement$1(e){if(e){var t=e._owner,r=describeUnknownElementTypeFrameInDEV(e.type,e._source,t?t.type:null);L.setExtraStackFrame(r)}else L.setExtraStackFrame(null)}function isValidElement(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function getDeclarationErrorAddendum(){if(V.current){var e=getComponentNameFromType(V.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}B=!1;var $={};function validateExplicitKey(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function getCurrentComponentErrorInfo(e){var t=getDeclarationErrorAddendum();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!$[r]){$[r]=!0;var n="";e&&e._owner&&e._owner!==V.current&&(n=" It was passed a child from "+getComponentNameFromType(e._owner.type)+"."),setCurrentlyValidatingElement$1(e),error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),setCurrentlyValidatingElement$1(null)}}}function validateChildKeys(e,t){if("object"==typeof e)if(isArray(e))for(var r=0;r<e.length;r++){var n=e[r];isValidElement(n)&&validateExplicitKey(n,t)}else if(isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var s=function getIteratorFn(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof s&&s!==e.entries)for(var i,o=s.call(e);!(i=o.next()).done;)isValidElement(i.value)&&validateExplicitKey(i.value,t)}}function validatePropTypes(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==l&&r.$$typeof!==f)return;t=r.propTypes}if(t){var n=getComponentNameFromType(r);!function checkPropTypes(e,t,r,n,s){var i=Function.call.bind(T);for(var o in e)if(i(e,o)){var a=void 0;try{if("function"!=typeof e[o]){var u=Error((n||"React class")+": "+r+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}a=e[o](t,o,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){a=e}!a||a instanceof Error||(setCurrentlyValidatingElement(s),error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,o,typeof a),setCurrentlyValidatingElement(null)),a instanceof Error&&!(a.message in F)&&(F[a.message]=!0,setCurrentlyValidatingElement(s),error("Failed %s type: %s",r,a.message),setCurrentlyValidatingElement(null))}}(t,e.props,"prop",n,e)}else if(void 0!==r.PropTypes&&!B){B=!0,error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",getComponentNameFromType(r)||"Unknown")}"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var H={};function jsxWithValidation(e,t,r,s,m,b){var g=function isValidElementType(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===o||e===d||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===f||e.$$typeof===u||e.$$typeof===c||e.$$typeof===l||e.$$typeof===v||void 0!==e.getModuleId)}(e);if(!g){var C="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var q,O=function getSourceInfoErrorAddendum(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);C+=O||getDeclarationErrorAddendum(),null===e?q="null":isArray(e)?q="array":void 0!==e&&e.$$typeof===n?(q="<"+(getComponentNameFromType(e.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):q=typeof e,error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",q,C)}var S=jsxDEV(e,t,r,m,b);if(null==S)return S;if(g){var _=t.children;if(void 0!==_)if(s)if(isArray(_)){for(var k=0;k<_.length;k++)validateChildKeys(_[k],e);Object.freeze&&Object.freeze(_)}else error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else validateChildKeys(_,e)}if(T.call(t,"key")){var w=getComponentNameFromType(e),j=Object.keys(t).filter(function(e){return"key"!==e}),R=j.length>0?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}";if(!H[w+R])error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',R,w,j.length>0?"{"+j.join(": ..., ")+": ...}":"{}",w),H[w+R]=!0}return e===i?function validateFragmentProps(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){setCurrentlyValidatingElement$1(e),error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),setCurrentlyValidatingElement$1(null);break}}null!==e.ref&&(setCurrentlyValidatingElement$1(e),error("Invalid attribute `ref` supplied to `React.Fragment`."),setCurrentlyValidatingElement$1(null))}(S):validatePropTypes(S),S}var W=function jsxWithValidationDynamic(e,t,r){return jsxWithValidation(e,t,r,!1)},G=function jsxWithValidationStatic(e,t,r){return jsxWithValidation(e,t,r,!0)};t.Fragment=i,t.jsx=W,t.jsxs=G})()},"./node_modules/react/jsx-runtime.js":function(e,t,r){e.exports=r("./node_modules/react/cjs/react-jsx-runtime.development.js")},react:function(e){e.exports=window.React}},t={};function __webpack_require__(r){var n=t[r];if(void 0!==n)return n.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,__webpack_require__),s.exports}__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){__webpack_require__.r(r),__webpack_require__.d(r,{QueryClient:function(){return e.QueryClient},QueryClientProvider:function(){return n.QueryClientProvider},createQueryClient:function(){return createQueryClient},getQueryClient:function(){return getQueryClient},useInfiniteQuery:function(){return o.useInfiniteQuery},useIsMutating:function(){return s.useIsMutating},useMutation:function(){return i.useMutation},useQuery:function(){return t.useQuery},useQueryClient:function(){return n.useQueryClient}});var e=__webpack_require__("./node_modules/@tanstack/query-core/build/modern/queryClient.js"),t=__webpack_require__("./node_modules/@tanstack/react-query/build/modern/useQuery.js"),n=__webpack_require__("./node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js"),s=__webpack_require__("./node_modules/@tanstack/react-query/build/modern/useMutationState.js"),i=__webpack_require__("./node_modules/@tanstack/react-query/build/modern/useMutation.js"),o=__webpack_require__("./node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js");let a;function getQueryClient(){if(!a)throw new Error("Query client is not created yet.");return a}function createQueryClient(){if(a)throw new Error("Query client is already created.");return a=new e.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1}}}),a}}(),(window.elementorV2=window.elementorV2||{}).query=r}(),window.elementorV2.query?.init?.(); |
|
2
|
+!function(){"use strict";var e={react:function(e){e.exports=window.React},"./node_modules/@tanstack/query-core/build/modern/focusManager.js":function(e,t,r){r.r(t),r.d(t,{FocusManager:function(){return i},focusManager:function(){return o}});var s=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),n=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),i=class extends s.Subscribable{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!n.isServer&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){this.listeners.forEach((e=>{e()}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},o=new i},"./node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js":function(e,t,r){r.r(t),r.d(t,{hasNextPage:function(){return u},hasPreviousPage:function(){return a},infiniteQueryBehavior:function(){return n}});var s=r("./node_modules/@tanstack/query-core/build/modern/utils.js");function n(e){return{onFetch:(t,r)=>{const n=async()=>{const r=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,u=t.state.data?.pages||[],a=t.state.data?.pageParams||[],c={pages:[],pageParams:[]};let h=!1;const d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),l=async(e,r,n)=>{if(h)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const i={queryKey:t.queryKey,pageParam:r,direction:n?"backward":"forward",meta:t.options.meta};var o;o=i,Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",(()=>{h=!0})),t.signal)});const u=await d(i),{maxPages:a}=t.options,c=n?s.addToStart:s.addToEnd;return{pages:c(e.pages,u,a),pageParams:c(e.pageParams,r,a)}};let f;if(n&&u.length){const e="backward"===n,t={pages:u,pageParams:a},s=(e?o:i)(r,t);f=await l(t,s,e)}else{f=await l(c,a[0]??r.initialPageParam);const t=e??u.length;for(let e=1;e<t;e++){const e=i(r,f);f=await l(f,e)}}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=n}}}function i(e,{pages:t,pageParams:r}){const s=t.length-1;return e.getNextPageParam(t[s],t,r[s],r)}function o(e,{pages:t,pageParams:r}){return e.getPreviousPageParam?.(t[0],t,r[0],r)}function u(e,t){return!!t&&null!=i(e,t)}function a(e,t){return!(!t||!e.getPreviousPageParam)&&null!=o(e,t)}},"./node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js":function(e,t,r){r.r(t),r.d(t,{InfiniteQueryObserver:function(){return i}});var s=r("./node_modules/@tanstack/query-core/build/modern/queryObserver.js"),n=r("./node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js"),i=class extends s.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,n.infiniteQueryBehavior)()},t)}getOptimisticResult(e){return e.behavior=(0,n.infiniteQueryBehavior)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,s=super.createResult(e,t),{isFetching:i,isRefetching:o}=s,u=i&&"forward"===r.fetchMeta?.fetchMore?.direction,a=i&&"backward"===r.fetchMeta?.fetchMore?.direction;return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.hasNextPage)(t,r.data),hasPreviousPage:(0,n.hasPreviousPage)(t,r.data),isFetchingNextPage:u,isFetchingPreviousPage:a,isRefetching:o&&!u&&!a}}}},"./node_modules/@tanstack/query-core/build/modern/mutation.js":function(e,t,r){r.r(t),r.d(t,{Mutation:function(){return o},getDefaultState:function(){return u}});var s=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),n=r("./node_modules/@tanstack/query-core/build/modern/removable.js"),i=r("./node_modules/@tanstack/query-core/build/modern/retryer.js"),o=class extends n.Removable{constructor(e){super(),this.mutationId=e.mutationId,this.#s=e.defaultOptions,this.#n=e.mutationCache,this.#i=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}#i;#s;#n;#o;setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#i.includes(e)||(this.#i.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#i=this.#i.filter((t=>t!==e)),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#i.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>(this.#o=(0,i.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#u({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.#o.promise),r="pending"===this.state.status;try{if(!r){this.#u({type:"pending",variables:e}),await(this.#n.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#u({type:"pending",context:t,variables:e})}const s=await t();return await(this.#n.config.onSuccess?.(s,e,this.state.context,this)),await(this.options.onSuccess?.(s,e,this.state.context)),await(this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(s,null,e,this.state.context)),this.#u({type:"success",data:s}),s}catch(t){try{throw await(this.#n.config.onError?.(t,e,this.state.context,this)),await(this.options.onError?.(t,e,this.state.context)),await(this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,t,e,this.state.context)),t}finally{this.#u({type:"error",error:t})}}}#u(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,i.canFetch)(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),s.notifyManager.batch((()=>{this.#i.forEach((t=>{t.onMutationUpdate(e)})),this.#n.notify({mutation:this,type:"updated",action:e})}))}};function u(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},"./node_modules/@tanstack/query-core/build/modern/mutationCache.js":function(e,t,r){r.r(t),r.d(t,{MutationCache:function(){return u}});var s=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),n=r("./node_modules/@tanstack/query-core/build/modern/mutation.js"),i=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),o=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),u=class extends o.Subscribable{constructor(e={}){super(),this.config=e,this.#a=[],this.#c=0}#a;#c;#h;build(e,t,r){const s=new n.Mutation({mutationCache:this,mutationId:++this.#c,options:e.defaultMutationOptions(t),state:r});return this.add(s),s}add(e){this.#a.push(e),this.notify({type:"added",mutation:e})}remove(e){this.#a=this.#a.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){s.notifyManager.batch((()=>{this.#a.forEach((e=>{this.remove(e)}))}))}getAll(){return this.#a}find(e){const t={exact:!0,...e};return this.#a.find((e=>(0,i.matchMutation)(t,e)))}findAll(e={}){return this.#a.filter((t=>(0,i.matchMutation)(e,t)))}notify(e){s.notifyManager.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){return this.#h=(this.#h??Promise.resolve()).then((()=>{const e=this.#a.filter((e=>e.state.isPaused));return s.notifyManager.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(i.noop)))),Promise.resolve())))})).then((()=>{this.#h=void 0})),this.#h}}},"./node_modules/@tanstack/query-core/build/modern/mutationObserver.js":function(e,t,r){r.r(t),r.d(t,{MutationObserver:function(){return u}});var s=r("./node_modules/@tanstack/query-core/build/modern/mutation.js"),n=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),i=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),o=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),u=class extends i.Subscribable{constructor(e,t){super(),this.#d=void 0,this.#l=e,this.setOptions(t),this.bindMethods(),this.#f()}#l;#d;#y;#p;bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#l.defaultMutationOptions(e),(0,o.shallowEqualObjects)(t,this.options)||this.#l.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#y,observer:this}),this.#y?.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#y?.removeObserver(this)}onMutationUpdate(e){this.#f(),this.#m(e)}getCurrentResult(){return this.#d}reset(){this.#y=void 0,this.#f(),this.#m()}mutate(e,t){return this.#p=t,this.#y?.removeObserver(this),this.#y=this.#l.getMutationCache().build(this.#l,this.options),this.#y.addObserver(this),this.#y.execute(e)}#f(){const e=this.#y?.state??(0,s.getDefaultState)();this.#d={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#m(e){n.notifyManager.batch((()=>{this.#p&&this.hasListeners()&&("success"===e?.type?(this.#p.onSuccess?.(e.data,this.#d.variables,this.#d.context),this.#p.onSettled?.(e.data,null,this.#d.variables,this.#d.context)):"error"===e?.type&&(this.#p.onError?.(e.error,this.#d.variables,this.#d.context),this.#p.onSettled?.(void 0,e.error,this.#d.variables,this.#d.context))),this.listeners.forEach((e=>{e(this.#d)}))}))}}},"./node_modules/@tanstack/query-core/build/modern/notifyManager.js":function(e,t,r){r.r(t),r.d(t,{createNotifyManager:function(){return n},notifyManager:function(){return i}});var s=r("./node_modules/@tanstack/query-core/build/modern/utils.js");function n(){let e=[],t=0,r=e=>{e()},n=e=>{e()};const i=n=>{t?e.push(n):(0,s.scheduleMicrotask)((()=>{r(n)}))};return{batch:i=>{let o;t++;try{o=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&(0,s.scheduleMicrotask)((()=>{n((()=>{t.forEach((e=>{r(e)}))}))}))})()}return o},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e}}}var i=n()},"./node_modules/@tanstack/query-core/build/modern/onlineManager.js":function(e,t,r){r.r(t),r.d(t,{OnlineManager:function(){return i},onlineManager:function(){return o}});var s=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),n=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),i=class extends s.Subscribable{#b=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!n.isServer&&window.addEventListener){const 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.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#b!==e&&(this.#b=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#b}},o=new i},"./node_modules/@tanstack/query-core/build/modern/query.js":function(e,t,r){r.r(t),r.d(t,{Query:function(){return u}});var s=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),n=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),i=r("./node_modules/@tanstack/query-core/build/modern/retryer.js"),o=r("./node_modules/@tanstack/query-core/build/modern/removable.js"),u=class extends o.Removable{constructor(e){super(),this.#v=!1,this.#s=e.defaultOptions,this.#g(e.options),this.#i=[],this.#q=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#O=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,s=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"}}(this.options),this.state=this.#O,this.scheduleGc()}#O;#C;#q;#R;#o;#i;#s;#v;get meta(){return this.options.meta}#g(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.#i.length||"idle"!==this.state.fetchStatus||this.#q.remove(this)}setData(e,t){const r=(0,s.replaceData)(this.state.data,e,this.options);return this.#u({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#u({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#R;return this.#o?.cancel(e),t?t.then(s.noop).catch(s.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#O)}isActive(){return this.#i.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.#i.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,s.timeUntilStale)(this.state.dataUpdatedAt,e)}onFocus(){const e=this.#i.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){const e=this.#i.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.#i.includes(e)||(this.#i.push(e),this.clearGcTimeout(),this.#q.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.#i.includes(e)&&(this.#i=this.#i.filter((t=>t!==e)),this.#i.length||(this.#o&&(this.#v?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#q.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.#i.length}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#R)return this.#o?.continueRetry(),this.#R;if(e&&this.#g(e),!this.options.queryFn){const e=this.#i.find((e=>e.options.queryFn));e&&this.#g(e.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,s={queryKey:this.queryKey,meta:this.meta},n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#v=!0,r.signal)})};n(s);const o={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.#v=!1,this.options.persister?this.options.persister(this.options.queryFn,s,this):this.options.queryFn(s)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`))};n(o),this.options.behavior?.onFetch(o,this),this.#C=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===o.fetchOptions?.meta||this.#u({type:"fetch",meta:o.fetchOptions?.meta});const u=e=>{(0,i.isCancelledError)(e)&&e.silent||this.#u({type:"error",error:e}),(0,i.isCancelledError)(e)||(this.#q.config.onError?.(e,this),this.#q.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#o=(0,i.createRetryer)({fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e)return console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),void u(new Error(`${this.queryHash} data is undefined`));this.setData(e),this.#q.config.onSuccess?.(e,this),this.#q.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:u,onFail:(e,t)=>{this.#u({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode}),this.#R=this.#o.promise,this.#R}#u(e){this.state=(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,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:(0,i.canFetch)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return(0,i.isCancelledError)(r)&&r.revert&&this.#C?{...this.#C,fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),n.notifyManager.batch((()=>{this.#i.forEach((e=>{e.onQueryUpdate()})),this.#q.notify({query:this,type:"updated",action:e})}))}}},"./node_modules/@tanstack/query-core/build/modern/queryCache.js":function(e,t,r){r.r(t),r.d(t,{QueryCache:function(){return u}});var s=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),n=r("./node_modules/@tanstack/query-core/build/modern/query.js"),i=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),o=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),u=class extends o.Subscribable{constructor(e={}){super(),this.config=e,this.#Q=new Map}#Q;build(e,t,r){const i=t.queryKey,o=t.queryHash??(0,s.hashQueryKeyByOptions)(i,t);let u=this.get(o);return u||(u=new n.Query({cache:this,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(u)),u}add(e){this.#Q.has(e.queryHash)||(this.#Q.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#Q.get(e.queryHash);t&&(e.destroy(),t===e&&this.#Q.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.notifyManager.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#Q.get(e)}getAll(){return[...this.#Q.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>(0,s.matchQuery)(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>(0,s.matchQuery)(e,t))):t}notify(e){i.notifyManager.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){i.notifyManager.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){i.notifyManager.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}}},"./node_modules/@tanstack/query-core/build/modern/queryClient.js":function(e,t,r){r.r(t),r.d(t,{QueryClient:function(){return h}});var s=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),n=r("./node_modules/@tanstack/query-core/build/modern/queryCache.js"),i=r("./node_modules/@tanstack/query-core/build/modern/mutationCache.js"),o=r("./node_modules/@tanstack/query-core/build/modern/focusManager.js"),u=r("./node_modules/@tanstack/query-core/build/modern/onlineManager.js"),a=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),c=r("./node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js"),h=class{#M;#n;#s;#w;#k;#S;#j;#P;constructor(e={}){this.#M=e.queryCache||new n.QueryCache,this.#n=e.mutationCache||new i.MutationCache,this.#s=e.defaultOptions||{},this.#w=new Map,this.#k=new Map,this.#S=0}mount(){this.#S++,1===this.#S&&(this.#j=o.focusManager.subscribe((()=>{o.focusManager.isFocused()&&(this.resumePausedMutations(),this.#M.onFocus())})),this.#P=u.onlineManager.subscribe((()=>{u.onlineManager.isOnline()&&(this.resumePausedMutations(),this.#M.onOnline())})))}unmount(){this.#S--,0===this.#S&&(this.#j?.(),this.#j=void 0,this.#P?.(),this.#P=void 0)}isFetching(e){return this.#M.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){return this.#M.find({queryKey:e})?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return void 0!==t?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const n=this.#M.find({queryKey:e}),i=n?.state.data,o=(0,s.functionalUpdate)(t,i);if(void 0===o)return;const u=this.defaultQueryOptions({queryKey:e});return this.#M.build(this,u).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return a.notifyManager.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e){return this.#M.find({queryKey:e})?.state}removeQueries(e){const t=this.#M;a.notifyManager.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const r=this.#M,s={type:"active",...e};return a.notifyManager.batch((()=>(r.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(s,t))))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=a.notifyManager.batch((()=>this.#M.findAll(e).map((e=>e.cancel(r)))));return Promise.all(n).then(s.noop).catch(s.noop)}invalidateQueries(e={},t={}){return a.notifyManager.batch((()=>{if(this.#M.findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)}))}refetchQueries(e={},t){const r={...t,cancelRefetch:t?.cancelRefetch??!0},n=a.notifyManager.batch((()=>this.#M.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(s.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(n).then(s.noop)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#M.build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(s.noop).catch(s.noop)}fetchInfiniteQuery(e){return e.behavior=(0,c.infiniteQueryBehavior)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(s.noop).catch(s.noop)}resumePausedMutations(){return this.#n.resumePausedMutations()}getQueryCache(){return this.#M}getMutationCache(){return this.#n}getDefaultOptions(){return this.#s}setDefaultOptions(e){this.#s=e}setQueryDefaults(e,t){this.#w.set((0,s.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#w.values()];let r={};return t.forEach((t=>{(0,s.partialMatchKey)(e,t.queryKey)&&(r={...r,...t.defaultOptions})})),r}setMutationDefaults(e,t){this.#k.set((0,s.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#k.values()];let r={};return t.forEach((t=>{(0,s.partialMatchKey)(e,t.mutationKey)&&(r={...r,...t.defaultOptions})})),r}defaultQueryOptions(e){if(e?._defaulted)return e;const t={...this.#s.queries,...e?.queryKey&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,s.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),void 0===t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#s.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#M.clear(),this.#n.clear()}}},"./node_modules/@tanstack/query-core/build/modern/queryObserver.js":function(e,t,r){r.r(t),r.d(t,{QueryObserver:function(){return a}});var s=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),n=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),i=r("./node_modules/@tanstack/query-core/build/modern/focusManager.js"),o=r("./node_modules/@tanstack/query-core/build/modern/subscribable.js"),u=r("./node_modules/@tanstack/query-core/build/modern/retryer.js"),a=class extends o.Subscribable{constructor(e,t){super(),this.#E=void 0,this.#_=void 0,this.#d=void 0,this.#F=new Set,this.#l=e,this.options=t,this.#D=null,this.bindMethods(),this.setOptions(t)}#l;#E;#_;#d;#I;#T;#D;#x;#A;#U;#K;#B;#L;#F;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#E.addObserver(this),c(this.#E,this.options)&&this.#H(),this.#G())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#E,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#E,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#N(),this.#W(),this.#E.removeObserver(this)}setOptions(e,t){const r=this.options,n=this.#E;if(this.options=this.#l.defaultQueryOptions(e),(0,s.shallowEqualObjects)(r,this.options)||this.#l.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#E,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.#V();const i=this.hasListeners();i&&d(this.#E,n,this.options,r)&&this.#H(),this.updateResult(t),!i||this.#E===n&&this.options.enabled===r.enabled&&this.options.staleTime===r.staleTime||this.#$();const o=this.#z();!i||this.#E===n&&this.options.enabled===r.enabled&&o===this.#L||this.#J(o)}getOptimisticResult(e){const t=this.#l.getQueryCache().build(this.#l,e),r=this.createResult(t,e);return n=this,i=r,!(0,s.shallowEqualObjects)(n.getCurrentResult(),i)&&(this.#d=r,this.#T=this.options,this.#I=this.#E.state),r;var n,i}getCurrentResult(){return this.#d}trackResult(e){const t={};return Object.keys(e).forEach((r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.#F.add(r),e[r])})})),t}getCurrentQuery(){return this.#E}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#l.defaultQueryOptions(e),r=this.#l.getQueryCache().build(this.#l,t);return r.isFetchingOptimistic=!0,r.fetch().then((()=>this.createResult(r,t)))}fetch(e){return this.#H({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#d)))}#H(e){this.#V();let t=this.#E.fetch(this.options,e);return e?.throwOnError||(t=t.catch(s.noop)),t}#$(){if(this.#N(),s.isServer||this.#d.isStale||!(0,s.isValidTimeout)(this.options.staleTime))return;const e=(0,s.timeUntilStale)(this.#d.dataUpdatedAt,this.options.staleTime)+1;this.#K=setTimeout((()=>{this.#d.isStale||this.updateResult()}),e)}#z(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#E):this.options.refetchInterval)??!1}#J(e){this.#W(),this.#L=e,!s.isServer&&!1!==this.options.enabled&&(0,s.isValidTimeout)(this.#L)&&0!==this.#L&&(this.#B=setInterval((()=>{(this.options.refetchIntervalInBackground||i.focusManager.isFocused())&&this.#H()}),this.#L))}#G(){this.#$(),this.#J(this.#z())}#N(){this.#K&&(clearTimeout(this.#K),this.#K=void 0)}#W(){this.#B&&(clearInterval(this.#B),this.#B=void 0)}createResult(e,t){const r=this.#E,n=this.options,i=this.#d,o=this.#I,a=this.#T,h=e!==r?e.state:this.#_,{state:f}=e;let y,{error:p,errorUpdatedAt:m,fetchStatus:b,status:v}=f,g=!1;if(t._optimisticResults){const s=this.hasListeners(),i=!s&&c(e,t),o=s&&d(e,r,t,n);(i||o)&&(b=(0,u.canFetch)(e.options.networkMode)?"fetching":"paused",f.dataUpdatedAt||(v="pending")),"isRestoring"===t._optimisticResults&&(b="idle")}if(t.select&&void 0!==f.data)if(i&&f.data===o?.data&&t.select===this.#x)y=this.#A;else try{this.#x=t.select,y=t.select(f.data),y=(0,s.replaceData)(i?.data,y,t),this.#A=y,this.#D=null}catch(e){this.#D=e}else y=f.data;if(void 0!==t.placeholderData&&void 0===y&&"pending"===v){let e;if(i?.isPlaceholderData&&t.placeholderData===a?.placeholderData)e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#U?.state.data,this.#U):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#D=null}catch(e){this.#D=e}void 0!==e&&(v="success",y=(0,s.replaceData)(i?.data,e,t),g=!0)}this.#D&&(p=this.#D,y=this.#A,m=Date.now(),v="error");const q="fetching"===b,O="pending"===v,C="error"===v,R=O&&q;return{status:v,fetchStatus:b,isPending:O,isSuccess:"success"===v,isError:C,isInitialLoading:R,isLoading:R,data:y,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>h.dataUpdateCount||f.errorUpdateCount>h.errorUpdateCount,isFetching:q,isRefetching:q&&!O,isLoadingError:C&&0===f.dataUpdatedAt,isPaused:"paused"===b,isPlaceholderData:g,isRefetchError:C&&0!==f.dataUpdatedAt,isStale:l(e,t),refetch:this.refetch}}updateResult(e){const t=this.#d,r=this.createResult(this.#E,this.options);if(this.#I=this.#E.state,this.#T=this.options,(0,s.shallowEqualObjects)(r,t))return;void 0!==this.#I.data&&(this.#U=this.#E),this.#d=r;const n={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#F.size)return!0;const s=new Set(r??this.#F);return this.options.throwOnError&&s.add("error"),Object.keys(this.#d).some((e=>{const r=e;return this.#d[r]!==t[r]&&s.has(r)}))})()&&(n.listeners=!0),this.#m({...n,...e})}#V(){const e=this.#l.getQueryCache().build(this.#l,this.options);if(e===this.#E)return;const t=this.#E;this.#E=e,this.#_=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#G()}#m(e){n.notifyManager.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#d)})),this.#l.getQueryCache().notify({query:this.#E,type:"observerResultsUpdated"})}))}};function c(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&h(e,t,t.refetchOnMount)}function h(e,t,r){if(!1!==t.enabled){const s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&l(e,t)}return!1}function d(e,t,r,s){return!1!==r.enabled&&(e!==t||!1===s.enabled)&&(!r.suspense||"error"!==e.state.status)&&l(e,r)}function l(e,t){return e.isStaleByTime(t.staleTime)}},"./node_modules/@tanstack/query-core/build/modern/removable.js":function(e,t,r){r.r(t),r.d(t,{Removable:function(){return n}});var s=r("./node_modules/@tanstack/query-core/build/modern/utils.js"),n=class{#X;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,s.isValidTimeout)(this.gcTime)&&(this.#X=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(s.isServer?1/0:3e5))}clearGcTimeout(){this.#X&&(clearTimeout(this.#X),this.#X=void 0)}}},"./node_modules/@tanstack/query-core/build/modern/retryer.js":function(e,t,r){r.r(t),r.d(t,{CancelledError:function(){return a},canFetch:function(){return u},createRetryer:function(){return h},isCancelledError:function(){return c}});var s=r("./node_modules/@tanstack/query-core/build/modern/focusManager.js"),n=r("./node_modules/@tanstack/query-core/build/modern/onlineManager.js"),i=r("./node_modules/@tanstack/query-core/build/modern/utils.js");function o(e){return Math.min(1e3*2**e,3e4)}function u(e){return"online"!==(e??"online")||n.onlineManager.isOnline()}var a=class{constructor(e){this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof a}function h(e){let t,r,c,h=!1,d=0,l=!1;const f=new Promise(((e,t)=>{r=e,c=t})),y=()=>!s.focusManager.isFocused()||"always"!==e.networkMode&&!n.onlineManager.isOnline(),p=s=>{l||(l=!0,e.onSuccess?.(s),t?.(),r(s))},m=r=>{l||(l=!0,e.onError?.(r),t?.(),c(r))},b=()=>new Promise((r=>{t=e=>{const t=l||!y();return t&&r(e),t},e.onPause?.()})).then((()=>{t=void 0,l||e.onContinue?.()})),v=()=>{if(l)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(p).catch((t=>{if(l)return;const r=e.retry??(i.isServer?0:3),s=e.retryDelay??o,n="function"==typeof s?s(d,t):s,u=!0===r||"number"==typeof r&&d<r||"function"==typeof r&&r(d,t);!h&&u?(d++,e.onFail?.(d,t),(0,i.sleep)(n).then((()=>{if(y())return b()})).then((()=>{h?m(t):v()}))):m(t)}))};return u(e.networkMode)?v():b().then(v),{promise:f,cancel:t=>{l||(m(new a(t)),e.abort?.())},continue:()=>{const e=t?.();return e?f:Promise.resolve()},cancelRetry:()=>{h=!0},continueRetry:()=>{h=!1}}}},"./node_modules/@tanstack/query-core/build/modern/subscribable.js":function(e,t,r){r.r(t),r.d(t,{Subscribable:function(){return s}});var s=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(){}}},"./node_modules/@tanstack/query-core/build/modern/utils.js":function(e,t,r){r.r(t),r.d(t,{addToEnd:function(){return C},addToStart:function(){return R},functionalUpdate:function(){return i},hashKey:function(){return d},hashQueryKeyByOptions:function(){return h},isPlainArray:function(){return p},isPlainObject:function(){return m},isServer:function(){return s},isValidTimeout:function(){return o},keepPreviousData:function(){return O},matchMutation:function(){return c},matchQuery:function(){return a},noop:function(){return n},partialMatchKey:function(){return l},replaceData:function(){return q},replaceEqualDeep:function(){return f},scheduleMicrotask:function(){return g},shallowEqualObjects:function(){return y},sleep:function(){return v},timeUntilStale:function(){return u}});var s="undefined"==typeof window||"Deno"in window;function n(){}function i(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function a(e,t){const{type:r="all",exact:s,fetchStatus:n,predicate:i,queryKey:o,stale:u}=e;if(o)if(s){if(t.queryHash!==h(o,t.options))return!1}else if(!l(t.queryKey,o))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return!("boolean"==typeof u&&t.isStale()!==u||void 0!==n&&n!==t.state.fetchStatus||i&&!i(t))}function c(e,t){const{exact:r,status:s,predicate:n,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(d(t.options.mutationKey)!==d(i))return!1}else if(!l(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||n&&!n(t))}function h(e,t){return(t?.queryKeyHashFn||d)(e)}function d(e){return JSON.stringify(e,((e,t)=>m(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function l(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((r=>!l(e[r],t[r])))}function f(e,t){if(e===t)return e;const r=p(e)&&p(t);if(r||m(e)&&m(t)){const s=r?e.length:Object.keys(e).length,n=r?t:Object.keys(t),i=n.length,o=r?[]:{};let u=0;for(let s=0;s<i;s++){const i=r?s:n[s];o[i]=f(e[i],t[i]),o[i]===e[i]&&u++}return s===i&&u===s?e:o}return t}function y(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function p(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function m(e){if(!b(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!b(r)&&!!r.hasOwnProperty("isPrototypeOf")}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){return new Promise((t=>{setTimeout(t,e)}))}function g(e){v(0).then(e)}function q(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?f(e,t):t}function O(e){return e}function C(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function R(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}},"./node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js":function(e,t,r){r.r(t),r.d(t,{QueryClientContext:function(){return n},QueryClientProvider:function(){return o},useQueryClient:function(){return i}});var s=r("react"),n=s.createContext(void 0),i=e=>{const t=s.useContext(n);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},o=({client:e,children:t})=>(s.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),s.createElement(n.Provider,{value:e},t))},"./node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js":function(e,t,r){r.r(t),r.d(t,{QueryErrorResetBoundary:function(){return u},useQueryErrorResetBoundary:function(){return o}});var s=r("react");function n(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var i=s.createContext(n()),o=()=>s.useContext(i),u=({children:e})=>{const[t]=s.useState((()=>n()));return s.createElement(i.Provider,{value:t},"function"==typeof e?e(t):e)}},"./node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js":function(e,t,r){r.r(t),r.d(t,{ensurePreventErrorBoundaryRetry:function(){return i},getHasError:function(){return u},useClearResetErrorBoundary:function(){return o}});var s=r("react"),n=r("./node_modules/@tanstack/react-query/build/modern/utils.js"),i=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},o=e=>{s.useEffect((()=>{e.clearReset()}),[e])},u=({result:e,errorResetBoundary:t,throwOnError:r,query:s})=>e.isError&&!t.isReset()&&!e.isFetching&&(0,n.shouldThrowError)(r,[e.error,s])},"./node_modules/@tanstack/react-query/build/modern/isRestoring.js":function(e,t,r){r.r(t),r.d(t,{IsRestoringProvider:function(){return o},useIsRestoring:function(){return i}});var s=r("react"),n=s.createContext(!1),i=()=>s.useContext(n),o=n.Provider},"./node_modules/@tanstack/react-query/build/modern/suspense.js":function(e,t,r){r.r(t),r.d(t,{defaultThrowOnError:function(){return s},ensureStaleTime:function(){return n},fetchOptimistic:function(){return u},shouldSuspend:function(){return o},willFetch:function(){return i}});var s=(e,t)=>void 0===t.state.data,n=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},i=(e,t)=>e.isLoading&&e.isFetching&&!t,o=(e,t,r)=>e?.suspense&&i(t,r),u=(e,t,r)=>t.fetchOptimistic(e).catch((()=>{r.clearReset()}))},"./node_modules/@tanstack/react-query/build/modern/useBaseQuery.js":function(e,t,r){r.r(t),r.d(t,{useBaseQuery:function(){return h}});var s=r("react"),n=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),i=r("./node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js"),o=r("./node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js"),u=r("./node_modules/@tanstack/react-query/build/modern/isRestoring.js"),a=r("./node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js"),c=r("./node_modules/@tanstack/react-query/build/modern/suspense.js");function h(e,t,r){if("object"!=typeof e||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const h=(0,o.useQueryClient)(r),d=(0,u.useIsRestoring)(),l=(0,i.useQueryErrorResetBoundary)(),f=h.defaultQueryOptions(e);f._optimisticResults=d?"isRestoring":"optimistic",(0,c.ensureStaleTime)(f),(0,a.ensurePreventErrorBoundaryRetry)(f,l),(0,a.useClearResetErrorBoundary)(l);const[y]=s.useState((()=>new t(h,f))),p=y.getOptimisticResult(f);if(s.useSyncExternalStore(s.useCallback((e=>{const t=d?()=>{}:y.subscribe(n.notifyManager.batchCalls(e));return y.updateResult(),t}),[y,d]),(()=>y.getCurrentResult()),(()=>y.getCurrentResult())),s.useEffect((()=>{y.setOptions(f,{listeners:!1})}),[f,y]),(0,c.shouldSuspend)(f,p,d))throw(0,c.fetchOptimistic)(f,y,l);if((0,a.getHasError)({result:p,errorResetBoundary:l,throwOnError:f.throwOnError,query:y.getCurrentQuery()}))throw p.error;return f.notifyOnChangeProps?p:y.trackResult(p)}},"./node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js":function(e,t,r){r.r(t),r.d(t,{useInfiniteQuery:function(){return i}});var s=r("./node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js"),n=r("./node_modules/@tanstack/react-query/build/modern/useBaseQuery.js");function i(e,t){return(0,n.useBaseQuery)(e,s.InfiniteQueryObserver,t)}},"./node_modules/@tanstack/react-query/build/modern/useMutation.js":function(e,t,r){r.r(t),r.d(t,{useMutation:function(){return a}});var s=r("react"),n=r("./node_modules/@tanstack/query-core/build/modern/mutationObserver.js"),i=r("./node_modules/@tanstack/query-core/build/modern/notifyManager.js"),o=r("./node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js"),u=r("./node_modules/@tanstack/react-query/build/modern/utils.js");function a(e,t){const r=(0,o.useQueryClient)(t),[a]=s.useState((()=>new n.MutationObserver(r,e)));s.useEffect((()=>{a.setOptions(e)}),[a,e]);const h=s.useSyncExternalStore(s.useCallback((e=>a.subscribe(i.notifyManager.batchCalls(e))),[a]),(()=>a.getCurrentResult()),(()=>a.getCurrentResult())),d=s.useCallback(((e,t)=>{a.mutate(e,t).catch(c)}),[a]);if(h.error&&(0,u.shouldThrowError)(a.options.throwOnError,[h.error]))throw h.error;return{...h,mutate:d,mutateAsync:h.mutate}}function c(){}},"./node_modules/@tanstack/react-query/build/modern/useQuery.js":function(e,t,r){r.r(t),r.d(t,{useQuery:function(){return i}});var s=r("./node_modules/@tanstack/query-core/build/modern/queryObserver.js"),n=r("./node_modules/@tanstack/react-query/build/modern/useBaseQuery.js");function i(e,t){return(0,n.useBaseQuery)(e,s.QueryObserver,t)}},"./node_modules/@tanstack/react-query/build/modern/utils.js":function(e,t,r){function s(e,t){return"function"==typeof e?e(...t):!!e}r.r(t),r.d(t,{shouldThrowError:function(){return s}})}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={exports:{}};return e[s](i,i.exports,r),i.exports}r.d=function(e,t){for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};!function(){r.r(s),r.d(s,{QueryClient:function(){return e.QueryClient},QueryClientProvider:function(){return t.QueryClientProvider},createQueryClient:function(){return u},useInfiniteQuery:function(){return n.useInfiniteQuery},useMutation:function(){return i.useMutation},useQuery:function(){return o.useQuery},useQueryClient:function(){return t.useQueryClient}});var e=r("./node_modules/@tanstack/query-core/build/modern/queryClient.js"),t=r("./node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js"),n=r("./node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js"),i=r("./node_modules/@tanstack/react-query/build/modern/useMutation.js"),o=r("./node_modules/@tanstack/react-query/build/modern/useQuery.js");function u(){return new e.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1}}})}}(),(window.elementorV2=window.elementorV2||{}).query=s}(); |