1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,853660,e=>{"use strict";var t=e.i(271645),r=e.i(953760),i=e.i(174080),n="u">typeof document?t.useLayoutEffect:function(){};function s(e,t){let r,i,n;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(i=r;0!=i--;)if(!s(e[i],t[i]))return!1;return!0}if((r=(n=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=r;0!=i--;)if(!({}).hasOwnProperty.call(t,n[i]))return!1;for(i=r;0!=i--;){let r=n[i];if(("_owner"!==r||!e.$$typeof)&&!s(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function o(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function a(e,t){let r=o(e);return Math.round(t*r)/r}function u(e){let r=t.useRef(e);return n(()=>{r.current=e}),r}var l=e.i(248425),c=e.i(843476),h=Object.defineProperty,d=t.forwardRef(h(function(e,t){let{children:r,width:i=10,height:n=5,...s}=e;return(0,c.jsx)(l.Primitive.svg,{...s,ref:t,width:i,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,c.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0})),f=e.i(820783),p=e.i(30030),y=e.i(30207),m=e.i(934620);function g(e){let[r,i]=t.useState(void 0);return(0,m.useLayoutEffect)(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,n;if(!Array.isArray(t)||!t.length)return;let s=t[0];if("borderBoxSize"in s){let e=s.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,n=t.blockSize}else r=e.offsetWidth,n=e.offsetHeight;i({width:r,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}i(void 0)},[e]),r}(0,Object.defineProperty)(g,"name",{value:"useSize",configurable:!0});var v=Object.defineProperty,b=(e,t)=>v(e,"name",{value:t,configurable:!0}),w="Popper",[S,P]=(0,p.createContextScope)(w),[O,x]=S(w),C=b(e=>{let{__scopePopper:r,children:i}=e,[n,s]=t.useState(null),[o,a]=t.useState(void 0);return(0,c.jsx)(O,{scope:r,anchor:n,onAnchorChange:s,placementState:o,setPlacementState:a,children:i})},"Popper"),A=t.forwardRef(b(function(e,r){let{__scopePopper:i,virtualRef:n,...s}=e,o=x("PopperAnchor",i),a=t.useRef(null),u=o.onAnchorChange,h=t.useCallback(e=>{a.current=e,e&&u(e)},[u]),d=(0,f.useComposedRefs)(r,h),p=t.useRef(null);t.useEffect(()=>{if(!n)return;let e=p.current;p.current=n.current,e!==p.current&&u(p.current)});let y=o.placementState&&k(o.placementState),m=y?.[0],g=y?.[1];return n?null:(0,c.jsx)(l.Primitive.div,{"data-radix-popper-side":m,"data-radix-popper-align":g,...s,ref:d})},"PopperAnchor")),T="PopperContent",[F,j]=S(T),R=t.forwardRef(b(function(e,h){var d,p,v,w,S,P,O;let C,A,j,R,E,q,{__scopePopper:D,side:L="bottom",sideOffset:K=0,align:I="center",alignOffset:$=0,arrowPadding:Q=0,avoidCollisions:H=!0,collisionBoundary:z=[],collisionPadding:G=0,sticky:B="partial",hideWhenDetached:N=!1,updatePositionStrategy:V="optimized",onPlaced:W,...Y}=e,X=x(T,D),[_,Z]=t.useState(null),J=(0,f.useComposedRefs)(h,Z),[ee,et]=t.useState(null),er=g(ee),ei=er?.width??0,en=er?.height??0,es="number"==typeof G?G:{top:0,right:0,bottom:0,left:0,...G},eo=Array.isArray(z)?z:[z],ea=eo.length>0,eu={padding:es,boundary:eo.filter(M),altBoundary:ea},{refs:el,floatingStyles:ec,placement:eh,isPositioned:ed,middlewareData:ef}=function(e){void 0===e&&(e={});let{placement:l="bottom",strategy:c="absolute",middleware:h=[],platform:d,elements:{reference:f,floating:p}={},transform:y=!0,whileElementsMounted:m,open:g}=e,[v,b]=t.useState({x:0,y:0,strategy:c,placement:l,middlewareData:{},isPositioned:!1}),[w,S]=t.useState(h);s(w,h)||S(h);let[P,O]=t.useState(null),[x,C]=t.useState(null),A=t.useCallback(e=>{e!==R.current&&(R.current=e,O(e))},[]),T=t.useCallback(e=>{e!==E.current&&(E.current=e,C(e))},[]),F=f||P,j=p||x,R=t.useRef(null),E=t.useRef(null),q=t.useRef(v),M=null!=m,U=u(m),k=u(d),D=u(g),L=t.useCallback(()=>{if(!R.current||!E.current)return;let e={placement:l,strategy:c,middleware:w};k.current&&(e.platform=k.current),(0,r.computePosition)(R.current,E.current,e).then(e=>{let t={...e,isPositioned:!1!==D.current};K.current&&!s(q.current,t)&&(q.current=t,i.flushSync(()=>{b(t)}))})},[w,l,c,k,D]);n(()=>{!1===g&&q.current.isPositioned&&(q.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[g]);let K=t.useRef(!1);n(()=>(K.current=!0,()=>{K.current=!1}),[]),n(()=>
1{if(F&&(R.current=F),j&&(E.current=j),F&&j){if(U.current)return U.current(F,j,L);L()}},[F,j,L,U,M]);let I=t.useMemo(()=>({reference:R,floating:E,setReference:A,setFloating:T}),[A,T]),$=t.useMemo(()=>({reference:F,floating:j}),[F,j]),Q=t.useMemo(()=>{let e={position:c,left:0,top:0};if(!$.floating)return e;let t=a($.floating,v.x),r=a($.floating,v.y);return y?{...e,transform:"translate("+t+"px, "+r+"px)",...o($.floating)>=1.5&&{willChange:"transform"}}:{position:c,left:t,top:r}},[c,y,$.floating,v.x,v.y]);return t.useMemo(()=>({...v,update:L,refs:I,elements:$,floatingStyles:Q}),[v,L,I,$,Q])}({strategy:"fixed",placement:L+("center"!==I?"-"+I:""),whileElementsMounted:b((...e)=>(0,r.autoUpdate)(...e,{animationFrame:"always"===V}),"whileElementsMounted"),elements:{reference:X.anchor},middleware:[(d={mainAxis:K+en,alignmentAxis:$},{name:(C=(0,r.offset)(d)).name,fn:C.fn,options:[d,void 0]}),H&&(p={mainAxis:!0,crossAxis:!1,limiter:"partial"===B?{fn:(0,r.limitShift)(void 0).fn,options:[void 0,void 0]}:void 0,...eu},{name:(A=(0,r.shift)(p)).name,fn:A.fn,options:[p,void 0]}),H&&(v={...eu},{name:(j=(0,r.flip)(v)).name,fn:j.fn,options:[v,void 0]}),(w={...eu,apply:b(({elements:e,rects:t,availableWidth:r,availableHeight:i})=>{let{width:n,height:s}=t.reference,o=e.floating.style;o.setProperty("--radix-popper-available-width",`${r}px`),o.setProperty("--radix-popper-available-height",`${i}px`),o.setProperty("--radix-popper-anchor-width",`${n}px`),o.setProperty("--radix-popper-anchor-height",`${s}px`)},"apply")},{name:(R=(0,r.size)(w)).name,fn:R.fn,options:[w,void 0]}),ee&&{name:(E={name:"arrow",options:P=S={element:ee,padding:Q},fn(e){let{element:t,padding:i}="function"==typeof P?P(e):P;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?(0,r.arrow)({element:t.current,padding:i}).fn(e):{}:t?(0,r.arrow)({element:t,padding:i}).fn(e):{}}}).name,fn:E.fn,options:[S,void 0]},U({arrowWidth:ei,arrowHeight:en}),N&&(O={strategy:"referenceHidden",...eu,boundary:ea?eu.boundary:void 0},{name:(q=(0,r.hide)(O)).name,fn:q.fn,options:[O,void 0]})]}),ep=X.setPlacementState;(0,m.useLayoutEffect)(()=>(ep(eh),()=>{ep(void 0)}),[eh,ep]);let[ey,em]=k(eh),eg=(0,y.useCallbackRef)(W);(0,m.useLayoutEffect)(()=>{ed&&eg?.()},[ed,eg]);let ev=ef.arrow?.x,eb=ef.arrow?.y,ew=ef.arrow?.centerOffset!==0,[eS,eP]=t.useState();return(0,m.useLayoutEffect)(()=>{_&&eP(window.getComputedStyle(_).zIndex)},[_]),(0,c.jsx)("div",{ref:el.setFloating,"data-radix-popper-content-wrapper":"",style:{...ec,transform:ed?ec.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eS,"--radix-popper-transform-origin":[ef.transformOrigin?.x,ef.transformOrigin?.y].join(" "),...ef.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(F,{scope:D,placedSide:ey,placedAlign:em,onArrowChange:et,arrowX:ev,arrowY:eb,shouldHideArrow:ew,children:(0,c.jsx)(l.Primitive.div,{"data-side":ey,"data-align":em,...Y,ref:J,style:{...Y.style,animation:ed?Y.style?.animation:"none"}})})})},"PopperContent")),E={top:"bottom",right:"left",bottom:"top",left:"right"},q=t.forwardRef(b(function(e,t){let{__scopePopper:r,...i}=e,n=j("PopperArrow",r),s=E[n.placedSide];return(0,c.jsx)("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:(0,c.jsx)(d,{...i,ref:t,style:{...i.style,display:"block"}})})},"PopperArrow"));function M(e){return null!==e}b(M,"isNotNull");var U=b(e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:i,middlewareData:n}=t,s=n.arrow?.centerOffset!==0,o=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,l]=k(r),c={start:"0%",center:"50%",end:"100%"}[l],h=(n.arrow?.x??0)+o/2,d=(n.arrow?.y??0)+a/2,f="",p="";return"bottom"===u?(f=s?c:`${h}px`,p=`${-a}px`):"top"===u?(f=s?c:`${h}px`,p=`${i.floating.height+a}px`):"right"===u?(f=`${-a}px`,p=s?c:`${d}px`):"left"===u&&(f=`${i.floating.width+a}px`,p=s?c:`${d}px`),{data:{x:f,y:p}}}}),"transformOrigin");function k(e){let[t,r="center"]=e.split("-");return[t,r]}b(k,"getSideAndAlignFromPlacement"),e.s(["Anchor",0,A,"Arrow",0,q,"Content",0,R,"Root",0,C,"createPopperScope",0,P],853660)},273911,e=>{"use strict";var t=e.i(619273);e.s(["isServer",0,()=>t.isServer])},175555,915823,e=>{"use strict";var t=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};e.s(["Subscribable",0,t],915823);let r=new class extends t{#e;#t;#r;constructor(){super(),this.#r=e=>{if("u">typeof window&&window.addEventListener){let 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(){let e=this.isFocused();
1this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,r],175555)},540143,e=>{"use strict";let t,r,i,n,s,o,a=e.i(180166).systemSetTimeoutZero,u=(t=[],r=0,i=e=>{e()},n=e=>{e()},s=a,{batch:e=>{let o;r++;try{o=e()}finally{let e;--r||(e=t,t=[],e.length&&s(()=>{n(()=>{e.forEach(e=>{i(e)})})}))}return o},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o=e=>{r?t.push(e):s(()=>{i(e)})},setNotifyFunction:e=>{i=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{s=e}});e.s(["notifyManager",0,u])},814448,e=>{"use strict";var t=e.i(915823);let r=new class extends t.Subscribable{#i=!0;#t;#r;constructor(){super(),this.#r=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#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.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};e.s(["onlineManager",0,r])},286491,936553,88587,e=>{"use strict";var t=e.i(619273),r=e.i(540143),i=e.i(273911),n=e.i(175555),s=e.i(814448);function o(e){return Math.min(1e3*2**e,3e4)}function a(e){return(e??"online")!=="online"||s.onlineManager.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function l(e){let r,l,c,h=!1,d=0,f="pending",p=new Promise((e,t)=>{l=e,c=t});p.catch(t.noop);let y=()=>n.focusManager.isFocused()&&("always"===e.networkMode||s.onlineManager.isOnline())&&e.canRun(),m=()=>a(e.networkMode)&&e.canRun(),g=e=>{"pending"===f&&(r?.(),f="resolved",l(e))},v=e=>{"pending"===f&&(r?.(),f="rejected",c(e))},b=()=>new Promise(t=>{r=e=>{("pending"!==f||y())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,"pending"===f&&e.onContinue?.()}),w=()=>{let r;if("pending"!==f)return;let n=0===d?e.initialPromise:void 0;try{r=n??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(g).catch(r=>{if("pending"!==f)return;let n=e.retry??3*!(0,i.isServer)(),s=e.retryDelay??o,a="function"==typeof s?s(d,r):s,u=!0===n||"number"==typeof n&&d<n||"function"==typeof n&&n(d,r);h||!u?v(r):(d++,e.onFail?.(d,r),(0,t.sleep)(a).then(()=>y()?void 0:b()).then(()=>{h?v(r):w()}))})};return{promise:p,status:()=>f,cancel:t=>{if("pending"===f){let r=new u(t);v(r),e.onCancel?.(r)}},continue:()=>(r?.(),p),cancelRetry:()=>{h=!0},continueRetry:()=>{h=!1},canStart:m,start:()=>(m()?w():b().then(w),p)}}e.s(["CancelledError",0,u,"canFetch",0,a,"createRetryer",0,l],936553);var c=e.i(180166),h=class{#n;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,t.isValidTimeout)(this.gcTime)&&(this.#n=c.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??((0,i.isServer)()?1/0:3e5))}clearGcTimeout(){void 0!==this.#n&&(c.timeoutManager.clearTimeout(this.#n),this.#n=void 0)}};function d(e,{pages:t,pageParams:r}){let i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}function f(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}e.s(["Removable",0,h],88587);var p=class extends h{#s;#o;#a;#u;#l;#c;#h;#d;constructor(e){super(),this.#d=!1,this.#h=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#l=e.client,this.#u=this.#l.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=g(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#s}get promise(){return this.#c?.promise}setOptions(e){if(this.options={...this.#h,...e},e?._type&&(this.#s=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=g(this.options);void 0!==e.data&&(this.setState(m(e.data,e.dataUpdatedAt)),this.#o=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(e,r){let i=(0,t.replaceData)(this.state.data,e,this.options);return this.#f({data:i,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),i}setState(e){this.#f({type:"setState",state:e})}cancel(e){let r=this.#c?.promise;return this.#c?.cancel(e),r?r.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#o}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveQueryValue)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
vendor: 4,744 bytes, line 1
1Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.resolveQueryValue)(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,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#c?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#c?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);-1!==t&&(this.observers.splice(t,1),this.observers.length||(this.#c&&(this.#d||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#c.cancel({revert:!0}):this.#c.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#f({type:"invalidate"})}async fetch(e,r){var i;let n;if("idle"!==this.state.fetchStatus&&this.#c?.status()!=="rejected"){if(void 0!==this.state.data&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#c)return this.#c.continueRetry(),this.#c.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let s=new AbortController,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#d=!0,s.signal)})},a=()=>{let e,i=(0,t.ensureQueryFn)(this.options,r),n=(o(e={client:this.#l,queryKey:this.queryKey,meta:this.meta}),e);return(this.#d=!1,this.options.persister)?this.options.persister(i,n,this):i(n)},c=(o(n={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:a}),n);("infinite"===this.#s?(i=this.options.pages,{onFetch:(e,r)=>{let n=e.options,s=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],a=e.state.data?.pageParams||[],u={pages:[],pageParams:[]},l=0,c=async()=>{let r=!1,c=(0,t.ensureQueryFn)(e.options,e.fetchOptions),h=async(i,n,s)=>{let o;if(r)return Promise.reject(e.signal.reason);if(null==n&&i.pages.length)return Promise.resolve(i);let a=(o={client:e.client,queryKey:e.queryKey,pageParam:n,direction:s?"backward":"forward",meta:e.options.meta},(0,t.addConsumeAwareSignal)(o,()=>e.signal,()=>r=!0),o),u=await c(a),{maxPages:l}=e.options,h=s?t.addToStart:t.addToEnd;return{pages:h(i.pages,u,l),pageParams:h(i.pageParams,n,l)}};if(s&&o.length){let e="backward"===s,t=e?f:d,r={pages:o,pageParams:a};u=await h(r,t(n,r),e)}else{let e=i??o.length;do{let e=0===l?a[0]??n.initialPageParam:d(n,u);if(l>0&&null==e)break;u=await h(u,e),l++}while(l<e)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r):e.fetchFn=c}}):this.options.behavior)?.onFetch(c,this),this.#a=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#f({type:"fetch",meta:c.fetchOptions?.meta});let h=this.#c=l({initialPromise:r?.initialPromise,fn:c.fetchFn,onCancel:e=>{e instanceof u&&e.revert&&this.setState({...this.#a,fetchStatus:"idle"}),s.abort()},onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let e=await h.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#u.config.onSuccess?.(e,this),this.#u.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof u){if(e.silent)return this.#c.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#f({type:"error",error:e}),this.#u.config.onError?.(e,this),this.#u.config.onSettled?.(this.state.data,e,this),e}finally{this.#c===h&&(this.#c=void 0),this.scheduleGc()}}#f(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...y(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...m(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#a=e.manual?r:void 0,r;case"error":let i=e.error;
1return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),r.notifyManager.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:e})})}};function y(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:a(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function m(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function g(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,i=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,p,"fetchState",0,y],286491)},619273,180166,e=>{"use strict";let t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#p=t;#y=!1;setTimeoutProvider(e){this.#p=e}setTimeout(e,t){return this.#p.setTimeout(e,t)}clearTimeout(e){this.#p.clearTimeout(e)}setInterval(e,t){return this.#p.setInterval(e,t)}clearInterval(e){this.#p.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,r],180166);let i="u"<typeof window||"Deno"in globalThis;function n(e,t){return(t?.queryKeyHashFn||s)(e)}function s(e){return JSON.stringify(e,(e,t)=>l(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function o(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let r=0;r<t.length;r++)if(!o(e[r],t[r]))return!1;return!0}for(let r of Object.keys(t))if(!o(e[r],t[r]))return!1;return!0}return!1}let a=Object.prototype.hasOwnProperty;function u(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function l(e){if(!c(e))return!1;let t=Object.getPrototypeOf(e),r=t?.constructor;if(void 0===r)return!0;if("function"!=typeof r)return!1;let i=r.prototype;return!!c(i)&&!!i.hasOwnProperty("isPrototypeOf")&&t===Object.prototype}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}let h=Symbol();e.s(["addConsumeAwareSignal",0,function(e,t,r){let i,n=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e},"addToEnd",0,function(e,t,r=0){let i=[...e,t];return r&&i.length>r?i.slice(1):i},"addToStart",0,function(e,t,r=0){let i=[t,...e];return r&&i.length>r?i.slice(0,-1):i},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==h?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,s,"hashQueryKeyByOptions",0,n,"isServer",0,i,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"matchMutation",0,function(e,t){let{exact:r,status:i,predicate:n,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(s(t.options.mutationKey)!==s(a))return!1}else if(!o(t.options.mutationKey,a))return!1}return(!i||t.state.status===i)&&(!n||!!n(t))},"matchQuery",0,function(e,t){let{type:r="all",exact:i,fetchStatus:s,predicate:a,queryKey:u,stale:l}=e;if(u){if(i){if(t.queryHash!==n(u,t.options))return!1}else if(!o(t.queryKey,u))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof l||t.isStale()===l)&&(!s||s===t.state.fetchStatus)&&(!a||!!a(t))},"noop",0,function(){},"partialMatchKey",0,o,"replaceData",0,function(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r,i=0){if(t===r)return t;if(i>500)return r;let n=u(t)&&u(r);if(!n&&!(l(t)&&l(r)))return r;let s=(n?t:Object.keys(t)).length,o=n?r:Object.keys(r),c=o.length,h=n?Array(c):{},d=0;for(let u=0;u<c;u++){let l=n?u:o[u],c=t[l],f=r[l];if(c===f){h[l]=c,(n?u<s:a.call(t,l))&&d++;continue}if(null===c||null===f||"object"!=typeof c||"object"!=typeof f){h[l]=f;continue}let p=e(c,f,i+1);h[l]=p,p===c&&d++}return s===c&&d===s?t:h}(e,t):t},"resolveQueryValue",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,h,"sleep",0,function(e){return new Promise(t=>{r.setTimeout(t,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}],619273)},912598,e=>{"use strict";var t=e.i(271645),r=e.i(843476);let i=t.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:n})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(i.Provider,{value:e,children:n})),"useQueryClient",0,e=>{let r=t.useContext(i);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.