<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3304],{58315:function(e,t,n){/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var s=n(83650),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&amp;&amp;(0!==e||1/e==1/t)||e!=e&amp;&amp;t!=t},u=s.useState,o=s.useEffect,a=s.useLayoutEffect,l=s.useDebugValue;function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),s=u({inst:{value:n,getSnapshot:t}}),i=s[0].inst,c=s[1];return a(function(){i.value=n,i.getSnapshot=t,r(i)&amp;&amp;c({inst:i})},[e,n,t]),o(function(){return r(i)&amp;&amp;c({inst:i}),e(function(){r(i)&amp;&amp;c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},25647:function(e,t,n){e.exports=n(58315)},72136:function(e,t,n){n.d(t,{j:function(){return u}});var s=n(193),i=n(41992);let FocusManager=class FocusManager extends s.l{constructor(){super(),this.setup=e=&gt;{if(!i.sk&amp;&amp;window.addEventListener){let listener=()=&gt;e();return window.addEventListener("visibilitychange",listener,!1),window.addEventListener("focus",listener,!1),()=&gt;{window.removeEventListener("visibilitychange",listener),window.removeEventListener("focus",listener)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=&gt;{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let t=this.focused!==e;t&amp;&amp;(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=&gt;{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}};let u=new FocusManager},51339:function(e,t,n){function infiniteQueryBehavior(){return{onFetch:e=&gt;{e.fetchFn=()=&gt;{var t,n,s,i,u,o;let a;let l=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,c=null==(s=e.fetchOptions)?void 0:null==(i=s.meta)?void 0:i.fetchMore,h=null==c?void 0:c.pageParam,f=(null==c?void 0:c.direction)==="forward",d=(null==c?void 0:c.direction)==="backward",y=(null==(u=e.state.data)?void 0:u.pages)||[],p=(null==(o=e.state.data)?void 0:o.pageParams)||[],b=p,g=!1,addSignalProperty=t=&gt;{Object.defineProperty(t,"signal",{enumerable:!0,get:()=&gt;{var t,n;return null!=(t=e.signal)&amp;&amp;t.aborted?g=!0:null==(n=e.signal)||n.addEventListener("abort",()=&gt;{g=!0}),e.signal}})},m=e.options.queryFn||(()=&gt;Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),buildNewPages=(e,t,n,s)=&gt;(b=s?[t,...b]:[...b,t],s?[n,...e]:[...e,n]),fetchPage=(t,n,s,i)=&gt;{if(g)return Promise.reject("Cancelled");if(void 0===s&amp;&amp;!n&amp;&amp;t.length)return Promise.resolve(t);let u={queryKey:e.queryKey,pageParam:s,meta:e.options.meta};addSignalProperty(u);let o=m(u),a=Promise.resolve(o).then(e=&gt;buildNewPages(t,s,e,i));return a};if(y.length){if(f){let t=void 0!==h,n=t?h:getNextPageParam(e.options,y);a=fetchPage(y,t,n)}else if(d){let t=void 0!==h,n=t?h:getPreviousPageParam(e.options,y);a=fetchPage(y,t,n,!0)}else{b=[];let t=void 0===e.options.getNextPageParam,n=!l||!y[0]||l(y[0],0,y);a=n?fetchPage([],t,p[0]):Promise.resolve(buildNewPages([],p[0],y[0]));for(let n=1;n&lt;y.length;n++)a=a.then(s=&gt;{let i=!l||!y[n]||l(y[n],n,y);if(i){let i=t?p[n]:getNextPageParam(e.options,s);return fetchPage(s,t,i)}return Promise.resolve(buildNewPages(s,p[n],y[n]))})}}else a=fetchPage([]);let v=a.then(e=&gt;({pages:e,pageParams:b}));return v}}}}function getNextPageParam(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function getPreviousPageParam(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function hasNextPage(e,t){if(e.getNextPageParam&amp;&amp;Array.isArray(t)){let n=getNextPageParam(e,t);return null!=n&amp;&amp;!1!==n}}function hasPreviousPage(e,t){if(e.getPreviousPageParam&amp;&amp;Array.isArray(t)){let n=getPreviousPageParam(e,t);return null!=n&amp;&amp;!1!==n}}n.d(t,{Gm:function(){return infiniteQueryBehavior},Qy:function(){return hasNextPage},ZF:function(){return hasPreviousPage}})},18043:function(e,t,n){n.d(t,{_:function(){return s}});let s=console},50017:function(e,t,n){n.d(t,{R:function(){return getDefaultState},m:function(){return Mutation}});var s=n(18043),i=n(17120),u=n(87951),o=n(55639);let Mutation=class Mutation extends u.F{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||s._,this.observers=[],this.state=e.state||getDefaultState(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=&gt;t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,n,s,i,u,a,l,c,h,f,d,y,p,b,g,m,v,R,C;let E="loading"===this.state.status;try{if(!E){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(c=(h=this.mutationCache.config).onMutate)?void 0:c.call(h,this.state.variables,this));let e=await (null==(f=(d=this.options).onMutate)?void 0:f.call(d,this.state.variables));e!==this.state.context&amp;&amp;this.dispatch({type:"loading",context:e,variables:this.state.variables})}let y=await (()=&gt;{var e;return this.retryer=(0,o.Mz)({fn:()=&gt;this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=&gt;{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=&gt;{this.dispatch({type:"pause"})},onContinue:()=&gt;{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,y,this.state.variables,this.state.context,this)),await (null==(n=(s=this.options).onSuccess)?void 0:n.call(s,y,this.state.variables,this.state.context)),await (null==(i=(u=this.mutationCache.config).onSettled)?void 0:i.call(u,y,null,this.state.variables,this.state.context,this)),await (null==(a=(l=this.options).onSettled)?void 0:a.call(l,y,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:y}),y}catch(e){try{throw await (null==(y=(p=this.mutationCache.config).onError)?void 0:y.call(p,e,this.state.variables,this.state.context,this)),await (null==(b=(g=this.options).onError)?void 0:b.call(g,e,this.state.variables,this.state.context)),await (null==(m=(v=this.mutationCache.config).onSettled)?void 0:m.call(v,void 0,e,this.state.variables,this.state.context,this)),await (null==(R=(C=this.options).onSettled)?void 0:R.call(C,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=&gt;{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"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,o.Kw)(this.options.networkMode),status:"loading",variables:e.variables};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"};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=&gt;{this.observers.forEach(t=&gt;{t.onMutationUpdate(e)}),this.mutationCache.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}}},17120:function(e,t,n){n.d(t,{V:function(){return i}});var s=n(41992);let i=function(){let e=[],t=0,notifyFn=e=&gt;{e()},batchNotifyFn=e=&gt;{e()},schedule=n=&gt;{t?e.push(n):(0,s.A4)(()=&gt;{notifyFn(n)})},flush=()=&gt;{let t=e;e=[],t.length&amp;&amp;(0,s.A4)(()=&gt;{batchNotifyFn(()=&gt;{t.forEach(e=&gt;{notifyFn(e)})})})};return{batch:e=&gt;{let n;t++;try{n=e()}finally{--t||flush()}return n},batchCalls:e=&gt;(...t)=&gt;{schedule(()=&gt;{e(...t)})},schedule,setNotifyFunction:e=&gt;{notifyFn=e},setBatchNotifyFunction:e=&gt;{batchNotifyFn=e}}}()},14890:function(e,t,n){n.d(t,{N:function(){return o}});var s=n(193),i=n(41992);let u=["online","offline"];let OnlineManager=class OnlineManager extends s.l{constructor(){super(),this.setup=e=&gt;{if(!i.sk&amp;&amp;window.addEventListener){let listener=()=&gt;e();return u.forEach(e=&gt;{window.addEventListener(e,listener,!1)}),()=&gt;{u.forEach(e=&gt;{window.removeEventListener(e,listener)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=&gt;{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){let t=this.online!==e;t&amp;&amp;(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=&gt;{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};let o=new OnlineManager},40580:function(e,t,n){n.d(t,{z:function(){return QueryObserver}});var s=n(41992),i=n(17120),u=n(72136),o=n(193),a=n(55639);let QueryObserver=class QueryObserver extends o.l{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&amp;&amp;(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&amp;&amp;this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,s.VS)(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&amp;&amp;"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();let u=this.hasListeners();u&amp;&amp;shouldFetchOptionally(this.currentQuery,i,this.options,n)&amp;&amp;this.executeFetch(),this.updateResult(t),u&amp;&amp;(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&amp;&amp;this.updateStaleTimeout();let o=this.computeRefetchInterval();u&amp;&amp;(this.currentQuery!==i||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&amp;&amp;this.updateRefetchInterval(o)}getOptimisticResult(e){let t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return e.keepPreviousData||(void 0!==e.placeholderData?!n.isPlaceholderData:(0,s.VS)(this.getCurrentResult(),n))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(n=&gt;{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=&gt;(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=&gt;this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=&gt;(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&amp;&amp;e.throwOnError||(t=t.catch(s.ZT)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),s.sk||this.currentResult.isStale||!(0,s.PN)(this.options.staleTime))return;let e=(0,s.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=&gt;{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&amp;&amp;e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!s.sk&amp;&amp;!1!==this.options.enabled&amp;&amp;(0,s.PN)(this.currentRefetchInterval)&amp;&amp;0!==this.currentRefetchInterval&amp;&amp;(this.refetchIntervalId=setInterval(()=&gt;{(this.options.refetchIntervalInBackground||u.j.isFocused())&amp;&amp;this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&amp;&amp;(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&amp;&amp;(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let n;let i=this.currentQuery,u=this.options,o=this.currentResult,l=this.currentResultState,c=this.currentResultOptions,h=e!==i,f=h?e.state:this.currentQueryInitialState,d=h?this.currentResult:this.previousQueryResult,{state:y}=e,{dataUpdatedAt:p,error:b,errorUpdatedAt:g,fetchStatus:m,status:v}=y,R=!1,C=!1;if(t._optimisticResults){let n=this.hasListeners(),s=!n&amp;&amp;shouldFetchOnMount(e,t),o=n&amp;&amp;shouldFetchOptionally(e,i,t,u);(s||o)&amp;&amp;(m=(0,a.Kw)(e.options.networkMode)?"fetching":"paused",p||(v="loading")),"isRestoring"===t._optimisticResults&amp;&amp;(m="idle")}if(t.keepPreviousData&amp;&amp;!y.dataUpdatedAt&amp;&amp;null!=d&amp;&amp;d.isSuccess&amp;&amp;"error"!==v)n=d.data,p=d.dataUpdatedAt,v=d.status,R=!0;else if(t.select&amp;&amp;void 0!==y.data){if(o&amp;&amp;y.data===(null==l?void 0:l.data)&amp;&amp;t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(y.data),n=(0,s.oE)(null==o?void 0:o.data,n,t),this.selectResult=n,this.selectError=null}catch(e){this.selectError=e}}else n=y.data;if(void 0!==t.placeholderData&amp;&amp;void 0===n&amp;&amp;"loading"===v){let e;if(null!=o&amp;&amp;o.isPlaceholderData&amp;&amp;t.placeholderData===(null==c?void 0:c.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&amp;&amp;void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&amp;&amp;(v="success",n=(0,s.oE)(null==o?void 0:o.data,e,t),C=!0)}this.selectError&amp;&amp;(b=this.selectError,n=this.selectResult,g=Date.now(),v="error");let E="fetching"===m,Q="loading"===v,P="error"===v,O={status:v,fetchStatus:m,isLoading:Q,isSuccess:"success"===v,isError:P,isInitialLoading:Q&amp;&amp;E,data:n,dataUpdatedAt:p,error:b,errorUpdatedAt:g,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount&gt;0||y.errorUpdateCount&gt;0,isFetchedAfterMount:y.dataUpdateCount&gt;f.dataUpdateCount||y.errorUpdateCount&gt;f.errorUpdateCount,isFetching:E,isRefetching:E&amp;&amp;!Q,isLoadingError:P&amp;&amp;0===y.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:C,isPreviousData:R,isRefetchError:P&amp;&amp;0!==y.dataUpdatedAt,isStale:isStale(e,t),refetch:this.refetch,remove:this.remove};return O}updateResult(e){let t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,s.VS)(n,t))return;this.currentResult=n;let i={cache:!0};(null==e?void 0:e.listeners)!==!1&amp;&amp;(()=&gt;{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&amp;&amp;!this.trackedProps.size)return!0;let s=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&amp;&amp;s.add("error"),Object.keys(this.currentResult).some(e=&gt;{let n=this.currentResult[e]!==t[e];return n&amp;&amp;s.has(e)})})()&amp;&amp;(i.listeners=!0),this.notify({...i,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&amp;&amp;(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||(0,a.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&amp;&amp;this.updateTimers()}notify(e){i.V.batch(()=&gt;{var t,n,s,i,u,o,a,l;e.onSuccess?(null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(s=(i=this.options).onSettled)||s.call(i,this.currentResult.data,null)):e.onError&amp;&amp;(null==(u=(o=this.options).onError)||u.call(o,this.currentResult.error),null==(a=(l=this.options).onSettled)||a.call(l,void 0,this.currentResult.error)),e.listeners&amp;&amp;this.listeners.forEach(({listener:e})=&gt;{e(this.currentResult)}),e.cache&amp;&amp;this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}};function shouldFetchOnMount(e,t){return!1!==t.enabled&amp;&amp;!e.state.dataUpdatedAt&amp;&amp;!("error"===e.state.status&amp;&amp;!1===t.retryOnMount)||e.state.dataUpdatedAt&gt;0&amp;&amp;shouldFetchOn(e,t,t.refetchOnMount)}function shouldFetchOn(e,t,n){if(!1!==t.enabled){let s="function"==typeof n?n(e):n;return"always"===s||!1!==s&amp;&amp;isStale(e,t)}return!1}function shouldFetchOptionally(e,t,n,s){return!1!==n.enabled&amp;&amp;(e!==t||!1===s.enabled)&amp;&amp;(!n.suspense||"error"!==e.state.status)&amp;&amp;isStale(e,n)}function isStale(e,t){return e.isStaleByTime(t.staleTime)}},87951:function(e,t,n){n.d(t,{F:function(){return Removable}});var s=n(41992);let Removable=class Removable{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,s.PN)(this.cacheTime)&amp;&amp;(this.gcTimeout=setTimeout(()=&gt;{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:s.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&amp;&amp;(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},55639:function(e,t,n){n.d(t,{DV:function(){return isCancelledError},Kw:function(){return canFetch},Mz:function(){return createRetryer}});var s=n(72136),i=n(14890),u=n(41992);function defaultRetryDelay(e){return Math.min(1e3*2**e,3e4)}function canFetch(e){return(null!=e?e:"online")!=="online"||i.N.isOnline()}let CancelledError=class CancelledError{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function isCancelledError(e){return e instanceof CancelledError}function createRetryer(e){let t,n,o,a=!1,l=0,c=!1,h=new Promise((e,t)=&gt;{n=e,o=t}),shouldPause=()=&gt;!s.j.isFocused()||"always"!==e.networkMode&amp;&amp;!i.N.isOnline(),resolve=s=&gt;{c||(c=!0,null==e.onSuccess||e.onSuccess(s),null==t||t(),n(s))},reject=n=&gt;{c||(c=!0,null==e.onError||e.onError(n),null==t||t(),o(n))},pause=()=&gt;new Promise(n=&gt;{t=e=&gt;{let t=c||!shouldPause();return t&amp;&amp;n(e),t},null==e.onPause||e.onPause()}).then(()=&gt;{t=void 0,c||null==e.onContinue||e.onContinue()}),run=()=&gt;{let t;if(!c){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(resolve).catch(t=&gt;{var n,s;if(c)return;let i=null!=(n=e.retry)?n:3,o=null!=(s=e.retryDelay)?s:defaultRetryDelay,h="function"==typeof o?o(l,t):o,f=!0===i||"number"==typeof i&amp;&amp;l&lt;i||"function"==typeof i&amp;&amp;i(l,t);if(a||!f){reject(t);return}l++,null==e.onFail||e.onFail(l,t),(0,u.Gh)(h).then(()=&gt;{if(shouldPause())return pause()}).then(()=&gt;{a?reject(t):run()})})}};return canFetch(e.networkMode)?run():pause().then(run),{promise:h,cancel:t=&gt;{c||(reject(new CancelledError(t)),null==e.abort||e.abort())},continue:()=&gt;{let e=null==t?void 0:t();return e?h:Promise.resolve()},cancelRetry:()=&gt;{a=!0},continueRetry:()=&gt;{a=!1}}}},193:function(e,t,n){n.d(t,{l:function(){return Subscribable}});let Subscribable=class Subscribable{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=&gt;{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size&gt;0}onSubscribe(){}onUnsubscribe(){}}},41992:function(e,t,n){n.d(t,{A4:function(){return scheduleMicrotask},G9:function(){return getAbortController},Gh:function(){return sleep},I6:function(){return parseFilterArgs},Kp:function(){return timeUntilStale},PN:function(){return isValidTimeout},Rc:function(){return replaceAt},Rm:function(){return hashQueryKeyByOptions},SE:function(){return functionalUpdate},VS:function(){return shallowEqualObjects},X7:function(){return matchMutation},ZT:function(){return noop},_v:function(){return parseQueryArgs},_x:function(){return matchQuery},cb:function(){return parseMutationFilterArgs},e5:function(){return difference},lV:function(){return parseMutationArgs},oE:function(){return replaceData},sk:function(){return s},to:function(){return partialMatchKey},yF:function(){return hashQueryKey}});let s="undefined"==typeof window||"Deno"in window;function noop(){}function functionalUpdate(e,t){return"function"==typeof e?e(t):e}function isValidTimeout(e){return"number"==typeof e&amp;&amp;e&gt;=0&amp;&amp;e!==1/0}function difference(e,t){return e.filter(e=&gt;!t.includes(e))}function replaceAt(e,t,n){let s=e.slice(0);return s[t]=n,s}function timeUntilStale(e,t){return Math.max(e+(t||0)-Date.now(),0)}function parseQueryArgs(e,t,n){return isQueryKey(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function parseMutationArgs(e,t,n){return isQueryKey(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function parseFilterArgs(e,t,n){return isQueryKey(e)?[{...t,queryKey:e},n]:[e||{},t]}function parseMutationFilterArgs(e,t,n){return isQueryKey(e)?[{...t,mutationKey:e},n]:[e||{},t]}function matchQuery(e,t){let{type:n="all",exact:s,fetchStatus:i,predicate:u,queryKey:o,stale:a}=e;if(isQueryKey(o)){if(s){if(t.queryHash!==hashQueryKeyByOptions(o,t.options))return!1}else{if(!partialDeepEqual(t.queryKey,o))return!1}}if("all"!==n){let e=t.isActive();if("active"===n&amp;&amp;!e||"inactive"===n&amp;&amp;e)return!1}return("boolean"!=typeof a||t.isStale()===a)&amp;&amp;(void 0===i||i===t.state.fetchStatus)&amp;&amp;(!u||!!u(t))}function matchMutation(e,t){let{exact:n,fetching:s,predicate:i,mutationKey:u}=e;if(isQueryKey(u)){if(!t.options.mutationKey)return!1;if(n){if(hashQueryKey(t.options.mutationKey)!==hashQueryKey(u))return!1}else{if(!partialDeepEqual(t.options.mutationKey,u))return!1}}return("boolean"!=typeof s||"loading"===t.state.status===s)&amp;&amp;(!i||!!i(t))}function hashQueryKeyByOptions(e,t){let n=(null==t?void 0:t.queryKeyHashFn)||hashQueryKey;return n(e)}function hashQueryKey(e){return JSON.stringify(e,(e,t)=&gt;isPlainObject(t)?Object.keys(t).sort().reduce((e,n)=&gt;(e[n]=t[n],e),{}):t)}function partialMatchKey(e,t){return partialDeepEqual(e,t)}function partialDeepEqual(e,t){return e===t||typeof e==typeof t&amp;&amp;!!e&amp;&amp;!!t&amp;&amp;"object"==typeof e&amp;&amp;"object"==typeof t&amp;&amp;!Object.keys(t).some(n=&gt;!partialDeepEqual(e[n],t[n]))}function shallowEqualObjects(e,t){if(e&amp;&amp;!t||t&amp;&amp;!e)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function isPlainArray(e){return Array.isArray(e)&amp;&amp;e.length===Object.keys(e).length}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(hasObjectPrototype(n)&amp;&amp;n.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(e){return"[object Object]"===Object.prototype.toString.call(e)}function isQueryKey(e){return Array.isArray(e)}function sleep(e){return new Promise(t=&gt;{setTimeout(t,e)})}function scheduleMicrotask(e){sleep(0).then(e)}function getAbortController(){if("function"==typeof AbortController)return new AbortController}function replaceData(e,t,n){return null!=n.isDataEqual&amp;&amp;n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function replaceEqualDeep(e,t){if(e===t)return e;let n=isPlainArray(e)&amp;&amp;isPlainArray(t);if(n||isPlainObject(e)&amp;&amp;isPlainObject(t)){let s=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),u=i.length,o=n?[]:{},a=0;for(let s=0;s&lt;u;s++){let u=n?s:i[s];o[u]=replaceEqualDeep(e[u],t[u]),o[u]===e[u]&amp;&amp;a++}return s===u&amp;&amp;a===s?e:o}return t}(e,t):t}},7350:function(e,t,n){n.r(t),n.d(t,{QueryClientProvider:function(){return QueryClientProvider},defaultContext:function(){return i},useQueryClient:function(){return useQueryClient}});var s=n(83650);let i=s.createContext(void 0),u=s.createContext(!1);function getQueryClientContext(e,t){return e||(t&amp;&amp;"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i),window.ReactQueryClientContext):i)}let useQueryClient=({context:e}={})=&gt;{let t=s.useContext(getQueryClientContext(e,s.useContext(u)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},QueryClientProvider=({client:e,children:t,context:n,contextSharing:i=!1})=&gt;{s.useEffect(()=&gt;(e.mount(),()=&gt;{e.unmount()}),[e]);let o=getQueryClientContext(n,i);return s.createElement(u.Provider,{value:!n&amp;&amp;i},s.createElement(o.Provider,{value:e},t))}},1838:function(e,t,n){n.r(t),n.d(t,{QueryErrorResetBoundary:function(){return QueryErrorResetBoundary},useQueryErrorResetBoundary:function(){return useQueryErrorResetBoundary}});var s=n(83650);function createValue(){let e=!1;return{clearReset:()=&gt;{e=!1},reset:()=&gt;{e=!0},isReset:()=&gt;e}}let i=s.createContext(createValue()),useQueryErrorResetBoundary=()=&gt;s.useContext(i),QueryErrorResetBoundary=({children:e})=&gt;{let[t]=s.useState(()=&gt;createValue());return s.createElement(i.Provider,{value:t},"function"==typeof e?e(t):e)}},239:function(e,t,n){n.d(t,{JN:function(){return useClearResetErrorBoundary},KJ:function(){return getHasError},pf:function(){return ensurePreventErrorBoundaryRetry}});var s=n(83650),i=n(62289);let ensurePreventErrorBoundaryRetry=(e,t)=&gt;{(e.suspense||e.useErrorBoundary)&amp;&amp;!t.isReset()&amp;&amp;(e.retryOnMount=!1)},useClearResetErrorBoundary=e=&gt;{s.useEffect(()=&gt;{e.clearReset()},[e])},getHasError=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:s})=&gt;e.isError&amp;&amp;!t.isReset()&amp;&amp;!e.isFetching&amp;&amp;(0,i.L)(n,[e.error,s])},98404:function(e,t,n){n.r(t),n.d(t,{IsRestoringProvider:function(){return u},useIsRestoring:function(){return useIsRestoring}});var s=n(83650);let i=s.createContext(!1),useIsRestoring=()=&gt;s.useContext(i),u=i.Provider},24812:function(e,t,n){n.d(t,{Fb:function(){return ensureStaleTime},SB:function(){return shouldSuspend},Z$:function(){return willFetch},j8:function(){return fetchOptimistic}});let ensureStaleTime=e=&gt;{e.suspense&amp;&amp;"number"!=typeof e.staleTime&amp;&amp;(e.staleTime=1e3)},willFetch=(e,t)=&gt;e.isLoading&amp;&amp;e.isFetching&amp;&amp;!t,shouldSuspend=(e,t,n)=&gt;(null==e?void 0:e.suspense)&amp;&amp;willFetch(t,n),fetchOptimistic=(e,t,n)=&gt;t.fetchOptimistic(e).then(({data:t})=&gt;{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=&gt;{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})},46231:function(e,t,n){n.d(t,{r:function(){return useBaseQuery}});var s=n(83650),i=n(17120),u=n(66426),o=n(1838),a=n(7350),l=n(98404),c=n(239),h=n(24812);function useBaseQuery(e,t){let n=(0,a.useQueryClient)({context:e.context}),f=(0,l.useIsRestoring)(),d=(0,o.useQueryErrorResetBoundary)(),y=n.defaultQueryOptions(e);y._optimisticResults=f?"isRestoring":"optimistic",y.onError&amp;&amp;(y.onError=i.V.batchCalls(y.onError)),y.onSuccess&amp;&amp;(y.onSuccess=i.V.batchCalls(y.onSuccess)),y.onSettled&amp;&amp;(y.onSettled=i.V.batchCalls(y.onSettled)),(0,h.Fb)(y),(0,c.pf)(y,d),(0,c.JN)(d);let[p]=s.useState(()=&gt;new t(n,y)),b=p.getOptimisticResult(y);if((0,u.$)(s.useCallback(e=&gt;{let t=f?()=&gt;void 0:p.subscribe(i.V.batchCalls(e));return p.updateResult(),t},[p,f]),()=&gt;p.getCurrentResult(),()=&gt;p.getCurrentResult()),s.useEffect(()=&gt;{p.setOptions(y,{listeners:!1})},[y,p]),(0,h.SB)(y,b,f))throw(0,h.j8)(y,p,d);if((0,c.KJ)({result:b,errorResetBoundary:d,useErrorBoundary:y.useErrorBoundary,query:p.getCurrentQuery()}))throw b.error;return y.notifyOnChangeProps?b:p.trackResult(b)}},16277:function(e,t,n){n.r(t),n.d(t,{useInfiniteQuery:function(){return useInfiniteQuery}});var s=n(41992),i=n(40580),u=n(51339);let InfiniteQueryObserver=class InfiniteQueryObserver extends i.z{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,u.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,u.Gm)(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var n,s,i,o,a,l;let{state:c}=e,h=super.createResult(e,t),{isFetching:f,isRefetching:d}=h,y=f&amp;&amp;(null==(n=c.fetchMeta)?void 0:null==(s=n.fetchMore)?void 0:s.direction)==="forward",p=f&amp;&amp;(null==(i=c.fetchMeta)?void 0:null==(o=i.fetchMore)?void 0:o.direction)==="backward";return{...h,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,u.Qy)(t,null==(a=c.data)?void 0:a.pages),hasPreviousPage:(0,u.ZF)(t,null==(l=c.data)?void 0:l.pages),isFetchingNextPage:y,isFetchingPreviousPage:p,isRefetching:d&amp;&amp;!y&amp;&amp;!p}}};var o=n(46231);function useInfiniteQuery(e,t,n){let i=(0,s._v)(e,t,n);return(0,o.r)(i,InfiniteQueryObserver)}},65339:function(e,t,n){n.r(t),n.d(t,{useMutation:function(){return useMutation}});var s=n(83650),i=n(41992),u=n(50017),o=n(17120),a=n(193);let MutationObserver=class MutationObserver extends a.l{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let n=this.options;this.options=this.client.defaultMutationOptions(e),(0,i.VS)(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&amp;&amp;(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&amp;&amp;this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:(0,u.R)(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){o.V.batch(()=&gt;{if(this.mutateOptions&amp;&amp;this.hasListeners()){var t,n,s,i,u,o,a,l;e.onSuccess?(null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(s=(i=this.mutateOptions).onSettled)||s.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&amp;&amp;(null==(u=(o=this.mutateOptions).onError)||u.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(l=this.mutateOptions).onSettled)||a.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&amp;&amp;this.listeners.forEach(({listener:e})=&gt;{e(this.currentResult)})})}};var l=n(66426),c=n(7350),h=n(62289);function useMutation(e,t,n){let u=(0,i.lV)(e,t,n),a=(0,c.useQueryClient)({context:u.context}),[f]=s.useState(()=&gt;new MutationObserver(a,u));s.useEffect(()=&gt;{f.setOptions(u)},[f,u]);let d=(0,l.$)(s.useCallback(e=&gt;f.subscribe(o.V.batchCalls(e)),[f]),()=&gt;f.getCurrentResult(),()=&gt;f.getCurrentResult()),y=s.useCallback((e,t)=&gt;{f.mutate(e,t).catch(noop)},[f]);if(d.error&amp;&amp;(0,h.L)(f.options.useErrorBoundary,[d.error]))throw d.error;return{...d,mutate:y,mutateAsync:d.mutate}}function noop(){}},77732:function(e,t,n){n.r(t),n.d(t,{useQueries:function(){return useQueries}});var s=n(83650),i=n(41992),u=n(17120),o=n(40580),a=n(193);let QueriesObserver=class QueriesObserver extends a.l{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&amp;&amp;this.setQueries(t)}onSubscribe(){1===this.listeners.size&amp;&amp;this.observers.forEach(e=&gt;{e.subscribe(t=&gt;{this.onUpdate(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(e=&gt;{e.destroy()})}setQueries(e,t){this.queries=e,u.V.batch(()=&gt;{let e=this.observers,n=this.findMatchingObservers(this.queries);n.forEach(e=&gt;e.observer.setOptions(e.defaultedQueryOptions,t));let s=n.map(e=&gt;e.observer),u=Object.fromEntries(s.map(e=&gt;[e.options.queryHash,e])),o=s.map(e=&gt;e.getCurrentResult()),a=s.some((t,n)=&gt;t!==e[n]);(e.length!==s.length||a)&amp;&amp;(this.observers=s,this.observersMap=u,this.result=o,this.hasListeners()&amp;&amp;((0,i.e5)(e,s).forEach(e=&gt;{e.destroy()}),(0,i.e5)(s,e).forEach(e=&gt;{e.subscribe(t=&gt;{this.onUpdate(e,t)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(e=&gt;e.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map(e=&gt;e.observer.getOptimisticResult(e.defaultedQueryOptions))}findMatchingObservers(e){let t=this.observers,n=new Map(t.map(e=&gt;[e.options.queryHash,e])),s=e.map(e=&gt;this.client.defaultQueryOptions(e)),i=s.flatMap(e=&gt;{let t=n.get(e.queryHash);return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]}),u=new Set(i.map(e=&gt;e.defaultedQueryOptions.queryHash)),a=s.filter(e=&gt;!u.has(e.queryHash)),l=new Set(i.map(e=&gt;e.observer)),c=t.filter(e=&gt;!l.has(e)),getObserver=e=&gt;{let t=this.client.defaultQueryOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new o.z(this.client,t)},h=a.map((e,t)=&gt;{if(e.keepPreviousData){let n=c[t];if(void 0!==n)return{defaultedQueryOptions:e,observer:n}}return{defaultedQueryOptions:e,observer:getObserver(e)}});return i.concat(h).sort((e,t)=&gt;s.indexOf(e.defaultedQueryOptions)-s.indexOf(t.defaultedQueryOptions))}onUpdate(e,t){let n=this.observers.indexOf(e);-1!==n&amp;&amp;(this.result=(0,i.Rc)(this.result,n,t),this.notify())}notify(){u.V.batch(()=&gt;{this.listeners.forEach(({listener:e})=&gt;{e(this.result)})})}};var l=n(66426),c=n(7350),h=n(98404),f=n(1838),d=n(239),y=n(24812);function useQueries({queries:e,context:t}){let n=(0,c.useQueryClient)({context:t}),i=(0,h.useIsRestoring)(),o=(0,f.useQueryErrorResetBoundary)(),a=s.useMemo(()=&gt;e.map(e=&gt;{let t=n.defaultQueryOptions(e);return t._optimisticResults=i?"isRestoring":"optimistic",t}),[e,n,i]);a.forEach(e=&gt;{(0,y.Fb)(e),(0,d.pf)(e,o)}),(0,d.JN)(o);let[p]=s.useState(()=&gt;new QueriesObserver(n,a)),b=p.getOptimisticResult(a);(0,l.$)(s.useCallback(e=&gt;i?()=&gt;void 0:p.subscribe(u.V.batchCalls(e)),[p,i]),()=&gt;p.getCurrentResult(),()=&gt;p.getCurrentResult()),s.useEffect(()=&gt;{p.setQueries(a,{listeners:!1})},[a,p]);let g=b.some((e,t)=&gt;(0,y.SB)(a[t],e,i)),m=g?b.flatMap((e,t)=&gt;{let n=a[t],s=p.getObservers()[t];if(n&amp;&amp;s){if((0,y.SB)(n,e,i))return(0,y.j8)(n,s,o);(0,y.Z$)(e,i)&amp;&amp;(0,y.j8)(n,s,o)}return[]}):[];if(m.length&gt;0)throw Promise.all(m);let v=p.getQueries(),R=b.find((e,t)=&gt;{var n,s;return(0,d.KJ)({result:e,errorResetBoundary:o,useErrorBoundary:null!=(n=null==(s=a[t])?void 0:s.useErrorBoundary)&amp;&amp;n,query:v[t]})});if(null!=R&amp;&amp;R.error)throw R.error;return b}},9948:function(e,t,n){n.r(t),n.d(t,{useQuery:function(){return useQuery}});var s=n(41992),i=n(40580),u=n(46231);function useQuery(e,t,n){let o=(0,s._v)(e,t,n);return(0,u.r)(o,i.z)}},66426:function(e,t,n){n.d(t,{$:function(){return i}});var s=n(25647);let i=s.useSyncExternalStore},62289:function(e,t,n){n.d(t,{L:function(){return shouldThrowError}});function shouldThrowError(e,t){return"function"==typeof e?e(...t):!!e}},78097:function(e,t,n){n.d(t,{BJ:function(){return createTRPCClient},Bm:function(){return createTRPCClientProxy},wY:function(){return getFetch},ch:function(){return u},gb:function(){return loggerLink}});let ObservableAbortError=class ObservableAbortError extends Error{constructor(e){super(e),this.name="ObservableAbortError",Object.setPrototypeOf(this,ObservableAbortError.prototype)}};function observable_ade1bad8_observable(e){let t={subscribe(t){let n=null,s=!1,i=!1,u=!1;function unsubscribe(){if(null===n){u=!0;return}!i&amp;&amp;(i=!0,"function"==typeof n?n():n&amp;&amp;n.unsubscribe())}return n=e({next(e){s||t.next?.(e)},error(e){s||(s=!0,t.error?.(e),unsubscribe())},complete(){s||(s=!0,t.complete?.(),unsubscribe())}}),u&amp;&amp;unsubscribe(),{unsubscribe}},pipe:(...e)=&gt;(0===e.length?function(e){return e}:1===e.length?e[0]:function(t){return e.reduce((e,t)=&gt;t(e),t)})(t)};return t}var s=n(37990);function isObject(e){return!!e&amp;&amp;!Array.isArray(e)&amp;&amp;"object"==typeof e}let TransformResultError=class TransformResultError extends Error{constructor(){super("Unable to transform response from server")}};function transformResult_ace864b8_transformResult(e,t){let n;try{n=function(e,t){if("error"in e){let n=t.transformer.deserialize(e.error);return{ok:!1,error:{...e,error:n}}}let n={...e.result,...(!e.result.type||"data"===e.result.type)&amp;&amp;{type:"data",data:t.transformer.deserialize(e.result.data)}};return{ok:!0,result:n}}(e,t)}catch(e){throw new TransformResultError}if(!n.ok&amp;&amp;(!isObject(n.error.error)||"number"!=typeof n.error.error.code)||n.ok&amp;&amp;!isObject(n.result))throw new TransformResultError;return n}let TRPCClientError_38f9a32a_TRPCClientError=class TRPCClientError_38f9a32a_TRPCClientError extends Error{static from(e,t={}){return e instanceof TRPCClientError_38f9a32a_TRPCClientError||e instanceof Error&amp;&amp;"TRPCClientError"===e.name?(t.meta&amp;&amp;(e.meta={...e.meta,...t.meta}),e):isObject(e)&amp;&amp;isObject(e.error)&amp;&amp;"number"==typeof e.error.code&amp;&amp;"string"==typeof e.error.message?new TRPCClientError_38f9a32a_TRPCClientError(e.error.message,{...t,result:e}):e instanceof Error?new TRPCClientError_38f9a32a_TRPCClientError(e.message,{...t,cause:(0,s.sZ)(e)}):new TRPCClientError_38f9a32a_TRPCClientError("Unknown error",{...t,cause:e})}constructor(e,t){let n=t?.cause;super(e,{cause:n}),this.meta=t?.meta,this.cause=n,this.shape=t?.result?.error,this.data=t?.result?.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,TRPCClientError_38f9a32a_TRPCClientError.prototype)}};let isFunction=e=&gt;"function"==typeof e;function getFetch(e){if(e)return e;if("undefined"!=typeof window&amp;&amp;isFunction(window.fetch))return window.fetch;if("undefined"!=typeof globalThis&amp;&amp;isFunction(globalThis.fetch))return globalThis.fetch;throw Error("No fetch implementation found")}function resolveHTTPLinkOptions(e){var t;return{url:e.url.toString().replace(/\/$/,""),fetch:e.fetch,AbortController:(t=e.AbortController)?t:"undefined"!=typeof window&amp;&amp;window.AbortController?window.AbortController:"undefined"!=typeof globalThis&amp;&amp;globalThis.AbortController?globalThis.AbortController:null}}let i={query:"GET",mutation:"POST"};function getInput(e){return"input"in e?e.runtime.transformer.serialize(e.input):function(e){let t={};for(let n=0;n&lt;e.length;n++){let s=e[n];t[n]=s}return t}(e.inputs.map(t=&gt;e.runtime.transformer.serialize(t)))}let getUrl=e=&gt;{let t=e.url+"/"+e.path,n=[];if("inputs"in e&amp;&amp;n.push("batch=1"),"query"===e.type){let t=getInput(e);void 0!==t&amp;&amp;n.push(`input=${encodeURIComponent(JSON.stringify(t))}`)}return n.length&amp;&amp;(t+="?"+n.join("&amp;")),t},getBody=e=&gt;{if("query"===e.type)return;let t=getInput(e);return void 0!==t?JSON.stringify(t):void 0},jsonHttpRequester=e=&gt;httpRequest({...e,contentTypeHeader:"application/json",getUrl,getBody});async function fetchHTTPResponse(e,t){let n=e.getUrl(e),s=e.getBody(e),{type:u}=e,o=await e.headers();/* istanbul ignore if -- @preserve */if("subscription"===u)throw Error("Subscriptions should use wsLink");let a={...e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{},...e.batchModeHeader?{"trpc-batch-mode":e.batchModeHeader}:{},...o};return getFetch(e.fetch)(n,{method:i[u],signal:t?.signal,body:s,headers:a})}function httpRequest(e){let t=e.AbortController?new e.AbortController:null,n={},s=!1,i=new Promise((i,u)=&gt;{fetchHTTPResponse(e,t).then(e=&gt;(n.response=e,s=!0,e.json())).then(e=&gt;{n.responseJSON=e,i({json:e,meta:n})}).catch(e=&gt;{s=!0,u(TRPCClientError_38f9a32a_TRPCClientError.from(e,{meta:n}))})});return{promise:i,cancel:()=&gt;{s||t?.abort()}}}let throwFatalError=()=&gt;{throw Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function dataLoader(e){let t=null,n=null,destroyTimerAndPendingItems=()=&gt;{clearTimeout(n),n=null,t=null};function dispatch(){let n=function(t){let n=[[]],s=0;for(;;){let i=t[s];if(!i)break;let u=n[n.length-1];if(i.aborted){i.reject?.(Error("Aborted")),s++;continue}let o=e.validate(u.concat(i).map(e=&gt;e.key));if(o){u.push(i),s++;continue}if(0===u.length){i.reject?.(Error("Input is too big for a single dispatch")),s++;continue}n.push([])}return n}(t);for(let t of(destroyTimerAndPendingItems(),n)){if(!t.length)continue;let n={items:t,cancel:throwFatalError};for(let e of t)e.batch=n;let unitResolver=(e,t)=&gt;{let s=n.items[e];s.resolve?.(t),s.batch=null,s.reject=null,s.resolve=null},{promise:s,cancel:i}=e.fetch(n.items.map(e=&gt;e.key),unitResolver);n.cancel=i,s.then(e=&gt;{for(let t=0;t&lt;e.length;t++){let n=e[t];unitResolver(t,n)}for(let e of n.items)e.reject?.(Error("Missing result")),e.batch=null}).catch(e=&gt;{for(let t of n.items)t.reject?.(e),t.batch=null})}}return{load:function(e){let s={aborted:!1,key:e,batch:null,resolve:throwFatalError,reject:throwFatalError},i=new Promise((e,n)=&gt;{s.reject=n,s.resolve=e,t||(t=[]),t.push(s)});return n||(n=setTimeout(dispatch)),{promise:i,cancel:()=&gt;{s.aborted=!0,s.batch?.items.every(e=&gt;e.aborted)&amp;&amp;(s.batch.cancel(),s.batch=null)}}}}}function createHTTPBatchLink(e){return function(t){let n=resolveHTTPLinkOptions(t),s=t.maxURLLength??1/0;return i=&gt;{let batchLoader=u=&gt;{let o=e({...n,runtime:i,type:u,opts:t});return{validate:e=&gt;{if(s===1/0)return!0;let t=e.map(e=&gt;e.path).join(","),o=e.map(e=&gt;e.input),a=getUrl({...n,runtime:i,type:u,path:t,inputs:o});return a.length&lt;=s},fetch:o}},u=dataLoader(batchLoader("query")),o=dataLoader(batchLoader("mutation")),a=dataLoader(batchLoader("subscription")),l={query:u,subscription:a,mutation:o};return({op:e})=&gt;observable_ade1bad8_observable(t=&gt;{let n;let s=l[e.type],{promise:u,cancel:o}=s.load(e);return u.then(e=&gt;{n=e;let s=transformResult_ace864b8_transformResult(e.json,i);if(!s.ok){t.error(TRPCClientError_38f9a32a_TRPCClientError.from(s.error,{meta:e.meta}));return}t.next({context:e.meta,result:s.result}),t.complete()}).catch(e=&gt;{t.error(TRPCClientError_38f9a32a_TRPCClientError.from(e,{meta:n?.meta}))}),()=&gt;{o()}})}}}function httpLinkFactory(e){return t=&gt;{let n=resolveHTTPLinkOptions(t);return s=&gt;({op:i})=&gt;observable_ade1bad8_observable(u=&gt;{let o;let{path:a,input:l,type:c}=i,{promise:h,cancel:f}=e.requester({...n,runtime:s,type:c,path:a,input:l,headers:()=&gt;t.headers?"function"==typeof t.headers?t.headers({op:i}):t.headers:{}});return h.then(e=&gt;{o=e.meta;let t=transformResult_ace864b8_transformResult(e.json,s);if(!t.ok){u.error(TRPCClientError_38f9a32a_TRPCClientError.from(t.error,{meta:o}));return}u.next({context:e.meta,result:t.result}),u.complete()}).catch(e=&gt;{u.error(TRPCClientError_38f9a32a_TRPCClientError.from(e,{meta:o}))}),()=&gt;{f()}})}}createHTTPBatchLink(e=&gt;t=&gt;{let n=t.map(e=&gt;e.path).join(","),s=t.map(e=&gt;e.input),{promise:i,cancel:u}=jsonHttpRequester({...e,path:n,inputs:s,headers:()=&gt;e.opts.headers?"function"==typeof e.opts.headers?e.opts.headers({opList:t}):e.opts.headers:{}});return{promise:i.then(e=&gt;{let n=Array.isArray(e.json)?e.json:t.map(()=&gt;e.json),s=n.map(t=&gt;({meta:e.meta,json:t}));return s}),cancel:u}});let u=httpLinkFactory({requester:jsonHttpRequester}),o={css:{query:["72e3ff","3fb0d8"],mutation:["c5a3fc","904dfc"],subscription:["ff49e1","d83fbe"]},ansi:{regular:{query:["\x1b[30;46m","\x1b[97;46m"],mutation:["\x1b[30;45m","\x1b[97;45m"],subscription:["\x1b[30;42m","\x1b[97;42m"]},bold:{query:["\x1b[1;30;46m","\x1b[1;97;46m"],mutation:["\x1b[1;30;45m","\x1b[1;97;45m"],subscription:["\x1b[1;30;42m","\x1b[1;97;42m"]}}},defaultLogger=({c:e=console,colorMode:t="css"})=&gt;n=&gt;{let s=n.input,i="undefined"!=typeof FormData&amp;&amp;s instanceof FormData?Object.fromEntries(s):s,{parts:u,args:a}=function(e){let{direction:t,type:n,path:s,id:i,input:u}=e,a=[],l=[];if("ansi"===e.colorMode){let[u,c]=o.ansi.regular[n],[h,f]=o.ansi.bold[n];return a.push("up"===t?u:c,"up"===t?"&gt;&gt;":"&lt;&lt;",n,"up"===t?h:f,`#${i}`,s,"\x1b[0m"),"up"===t?l.push({input:e.input}):l.push({input:e.input,result:"result"in e.result?e.result.result:e.result,elapsedMs:e.elapsedMs}),{parts:a,args:l}}let[c,h]=o.css[n],f=`
    background-color: #${"up"===t?c:h}; 
    color: ${"up"===t?"black":"white"};
    padding: 2px;
  `;return a.push("%c","up"===t?"&gt;&gt;":"&lt;&lt;",n,`#${i}`,`%c${s}%c`,"%O"),l.push(f,`${f}; font-weight: bold;`,`${f}; font-weight: normal;`),"up"===t?l.push({input:u,context:e.context}):l.push({input:u,result:e.result,elapsedMs:e.elapsedMs,context:e.context}),{parts:a,args:l}}({...n,colorMode:t,input:i}),l="down"===n.direction&amp;&amp;n.result&amp;&amp;(n.result instanceof Error||"error"in n.result.result)?"error":"log";e[l].apply(null,[u.join(" ")].concat(a))};function loggerLink(e={}){let{enabled:t=()=&gt;!0}=e,n=e.colorMode??("undefined"==typeof window?"ansi":"css"),{logger:s=defaultLogger({c:e.console,colorMode:n})}=e;return()=&gt;({op:e,next:n})=&gt;observable_ade1bad8_observable(i=&gt;{var u;t({...e,direction:"up"})&amp;&amp;s({...e,direction:"up"});let o=Date.now();function logResult(n){let i=Date.now()-o;t({...e,direction:"down",result:n})&amp;&amp;s({...e,direction:"down",elapsedMs:i,result:n})}return n(e).pipe((u={next(e){logResult(e)},error(e){logResult(e)}},e=&gt;({subscribe:t=&gt;e.subscribe({next(e){u.next?.(e),t.next?.(e)},error(e){u.error?.(e),t.error?.(e)},complete(){u.complete?.(),t.complete?.()}})}))).subscribe(i)})}let TRPCUntypedClient=class TRPCUntypedClient{$request({type:e,input:t,path:n,context:s={}}){var i;let u=(i={links:this.links,op:{id:++this.requestId,type:e,path:n,input:t,context:s}},observable_ade1bad8_observable(e=&gt;{let t=function execute(e=0,t=i.op){let n=i.links[e];if(!n)throw Error("No more links to execute - did you forget to add an ending link?");let s=n({op:t,next(t){let n=execute(e+1,t);return n}});return s}();return t.subscribe(e)}));return u.pipe(e=&gt;{let t=0,n=null,s=[];return{subscribe:i=&gt;(t++,s.push(i),n||(n=e.subscribe({next(e){for(let t of s)t.next?.(e)},error(e){for(let t of s)t.error?.(e)},complete(){for(let e of s)e.complete?.()}})),{unsubscribe(){t--,function(){if(0===t&amp;&amp;n){let e=n;n=null,e.unsubscribe()}}();let e=s.findIndex(e=&gt;e===i);e&gt;-1&amp;&amp;s.splice(e,1)}})}})}requestAsPromise(e){let t=this.$request(e),{promise:n,abort:s}=function(e){let t;let n=new Promise((n,s)=&gt;{let i=!1;function onDone(){i||(i=!0,s(new ObservableAbortError("This operation was aborted.")),u.unsubscribe())}let u=e.subscribe({next(e){i=!0,n(e),onDone()},error(e){i=!0,s(e),onDone()},complete(){i=!0,onDone()}});t=onDone});return{promise:n,abort:t}}(t),i=new Promise((t,i)=&gt;{e.signal?.addEventListener("abort",s),n.then(e=&gt;{t(e.result.data)}).catch(e=&gt;{i(TRPCClientError_38f9a32a_TRPCClientError.from(e))})});return i}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){let s=this.$request({type:"subscription",path:e,input:t,context:n?.context});return s.subscribe({next(e){"started"===e.result.type?n.onStarted?.():"stopped"===e.result.type?n.onStopped?.():n.onData?.(e.result.data)},error(e){n.onError?.(e)},complete(){n.onComplete?.()}})}constructor(e){this.requestId=0;let t=(()=&gt;{let t=e.transformer;return t?"input"in t?e.transformer:{input:t,output:t}:{input:{serialize:e=&gt;e,deserialize:e=&gt;e},output:{serialize:e=&gt;e,deserialize:e=&gt;e}}})();this.runtime={transformer:{serialize:e=&gt;t.input.serialize(e),deserialize:e=&gt;t.output.deserialize(e)},combinedTransformer:t},this.links=e.links.map(e=&gt;e(this.runtime))}};function createTRPCClient(e){let t=new TRPCUntypedClient(e);return t}let a={query:"query",mutate:"mutation",subscribe:"subscription"},clientCallTypeToProcedureType=e=&gt;a[e];function createTRPCClientProxy(e){return(0,s.yh)(t=&gt;e.hasOwnProperty(t)?e[t]:"__untypedClient"===t?e:(0,s.IX)(({path:n,args:s})=&gt;{let i=[t,...n],u=clientCallTypeToProcedureType(i.pop()),o=i.join(".");return e[u](o,...s)}))}async function parseJSONStream(e){let t=e.parse??JSON.parse;await readLines(e.readableStream,n=&gt;{if(e.signal?.aborted||!n||"}"===n)return;let s=n.indexOf(":"),i=n.substring(2,s-1),u=n.substring(s+1);e.onSingle(Number(i),t(u))},e.textDecoder)}async function readLines(e,t,n){let s="",onChunk=e=&gt;{let i=n.decode(e),u=i.split("\n");if(1===u.length)s+=u[0];else if(u.length&gt;1){t(s+u[0]);for(let e=1;e&lt;u.length-1;e++)t(u[e]);s=u[u.length-1]}};"getReader"in e?await readStandardChunks(e,onChunk):await new Promise(t=&gt;{e.on("data",onChunk),e.on("end",t)}),t(s)}async function readStandardChunks(e,t){let n=e.getReader(),s=await n.read();for(;!s.done;)t(s.value),s=await n.read()}let streamingJsonHttpRequester=(e,t)=&gt;{let n=e.AbortController?new e.AbortController:null,s=fetchHTTPResponse({...e,contentTypeHeader:"application/json",batchModeHeader:"stream",getUrl:getUrl,getBody:getBody},n),i=s.then(async s=&gt;{if(!s.body)throw Error("Received response without body");let i={response:s};return parseJSONStream({readableStream:s.body,onSingle:t,parse:e=&gt;({json:JSON.parse(e),meta:i}),signal:n?.signal,textDecoder:e.textDecoder})});return{cancel:()=&gt;n?.abort(),promise:i}};createHTTPBatchLink(e=&gt;{let t=function(e){if(e)return e;if("undefined"!=typeof window&amp;&amp;window.TextDecoder)return new window.TextDecoder;if("undefined"!=typeof globalThis&amp;&amp;globalThis.TextDecoder)return new globalThis.TextDecoder;throw Error("No TextDecoder implementation found")}(e.opts.textDecoder);return(n,s)=&gt;{let i=n.map(e=&gt;e.path).join(","),u=n.map(e=&gt;e.input),{cancel:o,promise:a}=streamingJsonHttpRequester({...e,textDecoder:t,path:i,inputs:u,headers:()=&gt;e.opts.headers?"function"==typeof e.opts.headers?e.opts.headers({opList:n}):e.opts.headers:{}},(e,t)=&gt;{s(e,t)});return{promise:a.then(()=&gt;[]),cancel:o}}});let dist_getBody=e=&gt;{if("input"in e){if(!(e.input instanceof FormData))throw Error("Input is not FormData");return e.input}};httpLinkFactory({requester:e=&gt;{if("mutation"!==e.type)throw Error("We only handle mutations with formdata");return httpRequest({...e,getUrl:()=&gt;`${e.url}/${e.path}`,getBody:dist_getBody})}})},3304:function(e,t,n){n.d(t,{ec:function(){return createTRPCReact}});var s=n(78097),i=n(37990);function getArrayQueryKey_86134f8b_getArrayQueryKey(e,t){let n=Array.isArray(e)?e:[e],[s,i]=n,u="string"!=typeof s||""===s?[]:s.split(".");return i||t&amp;&amp;"any"!==t?[u,{...void 0!==i&amp;&amp;{input:i},...t&amp;&amp;"any"!==t&amp;&amp;{type:t}}]:u.length?[u]:[]}var u=n(9948),o=n(7350),a=n(65339),l=n(41992),c=n(16277),h=n(77732),f=n(83650);function getQueryKeyInternal(e,t){return e.length?void 0===t?[e]:[e,t]:[]}let d=["client","ssrContext","ssrState","abortOnUnmount"],y=(0,f.createContext)(null);function getClientArgs(e,t){let[n,s]=e;return[n,s,t?.trpc]}function useHookResult(e){let{path:t}=e;return(0,f.useMemo)(()=&gt;({path:t}),[t])}function createTRPCReact(e){let t=function(e){let t=(e?.overrides??e?.unstable_overrides)?.useMutation?.onSuccess??(e=&gt;e.originalFn()),n=e?.context??y,d=e?.reactQueryContext;function useContext(){return f.useContext(n)}function useSSRQueryOptionsIfNeeded(e,t,n){let{queryClient:s,ssrState:i}=useContext();return i&amp;&amp;"mounted"!==i&amp;&amp;s.getQueryCache().find(getArrayQueryKey_86134f8b_getArrayQueryKey(e,t))?.state.status==="error"?{retryOnMount:!1,...n}:n}return{Provider:e=&gt;{let{abortOnUnmount:t=!1,client:s,queryClient:i,ssrContext:u}=e,[o,a]=(0,f.useState)(e.ssrState??!1);return(0,f.useEffect)(()=&gt;{a(e=&gt;!!e&amp;&amp;"mounted")},[]),f.createElement(n.Provider,{value:{abortOnUnmount:t,queryClient:i,client:s,ssrContext:u??null,ssrState:o,fetchQuery:(0,f.useCallback)((e,t)=&gt;i.fetchQuery({...t,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"query"),queryFn:()=&gt;s.query(...getClientArgs(e,t))}),[s,i]),fetchInfiniteQuery:(0,f.useCallback)((e,t)=&gt;i.fetchInfiniteQuery({...t,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"infinite"),queryFn:({pageParam:n})=&gt;{let[i,u]=e,o={...u,cursor:n};return s.query(...getClientArgs([i,o],t))}}),[s,i]),prefetchQuery:(0,f.useCallback)((e,t)=&gt;i.prefetchQuery({...t,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"query"),queryFn:()=&gt;s.query(...getClientArgs(e,t))}),[s,i]),prefetchInfiniteQuery:(0,f.useCallback)((e,t)=&gt;i.prefetchInfiniteQuery({...t,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"infinite"),queryFn:({pageParam:n})=&gt;{let[i,u]=e,o={...u,cursor:n};return s.query(...getClientArgs([i,o],t))}}),[s,i]),ensureQueryData:(0,f.useCallback)((e,t)=&gt;i.ensureQueryData({...t,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"query"),queryFn:()=&gt;s.query(...getClientArgs(e,t))}),[s,i]),invalidateQueries:(0,f.useCallback)((e,t,n)=&gt;i.invalidateQueries({...t,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"any")},n),[i]),resetQueries:(0,f.useCallback)((...e)=&gt;{let[t,n,s]=e;return i.resetQueries({...n,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(t,"any")},s)},[i]),refetchQueries:(0,f.useCallback)((...e)=&gt;{let[t,n,s]=e;return i.refetchQueries({...n,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(t,"any")},s)},[i]),cancelQuery:(0,f.useCallback)(e=&gt;i.cancelQueries({queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"any")}),[i]),setQueryData:(0,f.useCallback)((...e)=&gt;{let[t,...n]=e;return i.setQueryData(getArrayQueryKey_86134f8b_getArrayQueryKey(t,"query"),...n)},[i]),getQueryData:(0,f.useCallback)((...e)=&gt;{let[t,...n]=e;return i.getQueryData(getArrayQueryKey_86134f8b_getArrayQueryKey(t,"query"),...n)},[i]),setInfiniteQueryData:(0,f.useCallback)((...e)=&gt;{let[t,...n]=e;return i.setQueryData(getArrayQueryKey_86134f8b_getArrayQueryKey(t,"infinite"),...n)},[i]),getInfiniteQueryData:(0,f.useCallback)((...e)=&gt;{let[t,...n]=e;return i.getQueryData(getArrayQueryKey_86134f8b_getArrayQueryKey(t,"infinite"),...n)},[i])}},e.children)},createClient:e=&gt;(0,s.BJ)(e),useContext,useUtils:useContext,useQuery:function(t,n){let s=useContext();if(!s)throw Error("Unable to retrieve application context. Did you forget to wrap your App inside `withTRPC` HoC?");let{abortOnUnmount:i,client:o,ssrState:a,queryClient:l,prefetchQuery:c}=s,h=l.getQueryDefaults(getArrayQueryKey_86134f8b_getArrayQueryKey(t,"query"));"undefined"!=typeof window||"prepass"!==a||n?.trpc?.ssr===!1||(n?.enabled??h?.enabled)===!1||l.getQueryCache().find(getArrayQueryKey_86134f8b_getArrayQueryKey(t,"query"))||c(t,n);let f=useSSRQueryOptionsIfNeeded(t,"query",{...h,...n}),y=n?.trpc?.abortOnUnmount??e?.abortOnUnmount??i,p=(0,u.useQuery)({...f,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(t,"query"),queryFn:e=&gt;{let n={...f,trpc:{...f?.trpc,...y?{signal:e.signal}:{}}};return o.query(...getClientArgs(t,n))},context:d});return p.trpc=useHookResult({path:t[0]}),p},useQueries:(e,t)=&gt;{let{ssrState:n,queryClient:s,prefetchQuery:u,client:o}=useContext(),a=(0,i.IX)(e=&gt;{let t=e.path.join("."),[n,s]=e.args,i=getQueryKeyInternal(t,n),u={queryKey:i,queryFn:()=&gt;o.query(t,n,s?.trpc),...s};return u}),l=e(a);if("undefined"==typeof window&amp;&amp;"prepass"===n)for(let e of l)e.trpc?.ssr===!1||s.getQueryCache().find(getArrayQueryKey_86134f8b_getArrayQueryKey(e.queryKey,"query"))||u(e.queryKey,e);return(0,h.useQueries)({queries:l.map(e=&gt;({...e,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e.queryKey,"query")})),context:t})},useMutation:function(e,n){let{client:s}=useContext(),i=(0,o.useQueryClient)({context:d}),u=Array.isArray(e)?e[0]:e,l=i.getMutationDefaults([u.split(".")]),c=(0,a.useMutation)({...n,mutationKey:[u.split(".")],mutationFn:e=&gt;s.mutation(...getClientArgs([u,e],n)),context:d,onSuccess:(...e)=&gt;t({originalFn:()=&gt;n?.onSuccess?.(...e)??l?.onSuccess?.(...e),queryClient:i,meta:n?.meta??l?.meta??{}})});return c.trpc=useHookResult({path:u}),c},useSubscription:/* istanbul ignore next -- @preserve */function(e,t){let n=t?.enabled??!0,s=(0,l.yF)(e),{client:i}=useContext(),u=(0,f.useRef)(t);u.current=t,(0,f.useEffect)(()=&gt;{if(!n)return;let[t,s]=e,o=!1,a=i.subscription(t,s??void 0,{onStarted:()=&gt;{o||u.current.onStarted?.()},onData:e=&gt;{o||u.current.onData(e)},onError:e=&gt;{o||u.current.onError?.(e)}});return()=&gt;{o=!0,a.unsubscribe()}},[s,n])},useDehydratedState:(e,t)=&gt;{let n=(0,f.useMemo)(()=&gt;t?e.runtime.transformer.deserialize(t):t,[t,e]);return n},useInfiniteQuery:function(e,t){let[n,s]=e,{client:i,ssrState:u,prefetchInfiniteQuery:o,queryClient:a,abortOnUnmount:l}=useContext(),h=a.getQueryDefaults(getArrayQueryKey_86134f8b_getArrayQueryKey(e,"infinite"));"undefined"!=typeof window||"prepass"!==u||t?.trpc?.ssr===!1||(t?.enabled??h?.enabled)===!1||a.getQueryCache().find(getArrayQueryKey_86134f8b_getArrayQueryKey(e,"infinite"))||o(e,{...h,...t});let f=useSSRQueryOptionsIfNeeded(e,"infinite",{...h,...t}),y=t?.trpc?.abortOnUnmount??l,p=(0,c.useInfiniteQuery)({...f,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"infinite"),queryFn:e=&gt;{let u={...f,trpc:{...f?.trpc,...y?{signal:e.signal}:{}}},o={...s??{},cursor:e.pageParam??t?.initialCursor};return i.query(...getClientArgs([n,o],u))},context:d});return p.trpc=useHookResult({path:n}),p}}}(e),n=(0,i.yh)(e=&gt;"useContext"===e||"useUtils"===e?()=&gt;{let e=t.useUtils();return(0,f.useMemo)(()=&gt;(0,i.yh)(t=&gt;"client"===t?(0,s.Bm)(e.client):d.includes(t)?e[t]:(0,i.IX)(({path:n,args:s})=&gt;{let i=[t,...n],u=i.pop(),o=i.join("."),{queryKey:a,rest:l,updater:c}=(e=&gt;{if(["setData","setInfiniteData"].includes(e)){let[e,t,...n]=s,i=getQueryKeyInternal(o,e);return{queryKey:i,updater:t,rest:n}}let[t,...n]=s,i=getQueryKeyInternal(o,t);return{queryKey:i,rest:n}})(u);return({fetch:()=&gt;e.fetchQuery(a,...l),fetchInfinite:()=&gt;e.fetchInfiniteQuery(a,...l),prefetch:()=&gt;e.prefetchQuery(a,...l),prefetchInfinite:()=&gt;e.prefetchInfiniteQuery(a,...l),ensureData:()=&gt;e.ensureQueryData(a,...l),invalidate:()=&gt;e.invalidateQueries(a,...l),reset:()=&gt;e.resetQueries(a,...l),refetch:()=&gt;e.refetchQueries(a,...l),cancel:()=&gt;e.cancelQuery(a,...l),setData:()=&gt;{e.setQueryData(a,c,...l)},setInfiniteData:()=&gt;{e.setInfiniteQueryData(a,c,...l)},getData:()=&gt;e.getQueryData(a),getInfiniteData:()=&gt;e.getInfiniteQueryData(a)})[u]()})),[e])}:t.hasOwnProperty(e)?t[e]:(0,i.IX)(n=&gt;{let s=n.args,i=[e,...n.path],u=i.pop(),o=i.join(".");if("useMutation"===u)return t[u](o,...s);let[a,...l]=s,c=getQueryKeyInternal(o,a);if("getQueryKey"===u)return getArrayQueryKey_86134f8b_getArrayQueryKey(c,l[0]??"any");if("_def"===u)return{path:i};if(u.startsWith("useSuspense")){let e=l[0]||{},n=t["useSuspenseQuery"===u?"useQuery":"useInfiniteQuery"](c,{...e,suspense:!0,enabled:!0});return[n.data,n]}return t[u](c,...l)}));return n}},90023:function(e,t,n){function invert(e){let t=Object.create(null);for(let n in e){let s=e[n];t[s]=n}return t}n.d(t,{T:function(){return s},i:function(){return invert}});let s={PARSE_ERROR:-32700,BAD_REQUEST:-32600,INTERNAL_SERVER_ERROR:-32603,NOT_IMPLEMENTED:-32603,UNAUTHORIZED:-32001,FORBIDDEN:-32003,NOT_FOUND:-32004,METHOD_NOT_SUPPORTED:-32005,TIMEOUT:-32008,CONFLICT:-32009,PRECONDITION_FAILED:-32012,PAYLOAD_TOO_LARGE:-32013,UNPROCESSABLE_CONTENT:-32022,TOO_MANY_REQUESTS:-32029,CLIENT_CLOSED_REQUEST:-32099};invert(s)},49309:function(e,t,n){n.d(t,{g:function(){return getCauseFromUnknown}});let UnknownCauseError=class UnknownCauseError extends Error{};function getCauseFromUnknown(e){if(e instanceof Error)return e;let t=typeof e;if("undefined"!==t&amp;&amp;"function"!==t&amp;&amp;null!==e){if("object"!==t)return Error(String(e));if(e&amp;&amp;!Array.isArray(e)&amp;&amp;"object"==typeof e){let t=new UnknownCauseError;for(let n in e)t[n]=e[n];return t}}}},92828:function(e,t,n){n.d(t,{a:function(){return createRecursiveProxy},c:function(){return createFlatProxy},g:function(){return getHTTPStatusCodeFromError}});var s=n(90023);(0,s.i)(s.T);let i={PARSE_ERROR:400,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,FORBIDDEN:403,METHOD_NOT_SUPPORTED:405,TIMEOUT:408,CONFLICT:409,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,UNPROCESSABLE_CONTENT:422,TOO_MANY_REQUESTS:429,CLIENT_CLOSED_REQUEST:499,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501};function getHTTPStatusCodeFromError(e){return i[e.code]??500}let noop=()=&gt;{},createRecursiveProxy=e=&gt;(function createInnerProxy(e,t){let n=new Proxy(noop,{get(n,s){if("string"==typeof s&amp;&amp;"then"!==s)return createInnerProxy(e,[...t,s])},apply(n,s,i){let u="apply"===t[t.length-1];return e({args:u?i.length&gt;=2?i[1]:[]:i,path:u?t.slice(0,-1):t})}});return n})(e,[]),createFlatProxy=e=&gt;new Proxy(noop,{get(t,n){if("string"==typeof n&amp;&amp;"then"!==n)return e(n)}})},37990:function(e,t,n){n.d(t,{yh:function(){return s.c},IX:function(){return s.a},sZ:function(){return i.g}});var s=n(92828);n(90023);var i=n(49309)}}]);</pre></body></html>