1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42727,75830,86318,e=>{"use strict";var t=e.i(71645),r=e.i(81140),i=e.i(30030),n=e.i(20783),s=e.i(91918),o=e.i(43476),a=Object.defineProperty,u=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e){let r=e+"CollectionProvider",[a,l]=(0,i.createContextScope)(r),[c,d]=a(r,{collectionRef:{current:null},itemMap:new Map}),h=u(e=>{let{scope:r,children:i}=e,n=t.useRef(null),s=t.useRef(new Map).current;return(0,o.jsx)(c,{scope:r,itemMap:s,collectionRef:n,children:i})},"CollectionProvider");h.displayName=r;let f=e+"CollectionSlot",p=(0,s.createSlot)(f),y=t.forwardRef((e,t)=>{let{scope:r,children:i}=e,s=d(f,r),a=(0,n.useComposedRefs)(t,s.collectionRef);return(0,o.jsx)(p,{ref:a,children:i})});y.displayName=f;let v=e+"CollectionItemSlot",m="data-radix-collection-item",g=(0,s.createSlot)(v),b=t.forwardRef((e,r)=>{let{scope:i,children:s,...a}=e,u=t.useRef(null),l=(0,n.useComposedRefs)(r,u),c=d(v,i);return t.useEffect(()=>(c.itemMap.set(u,{ref:u,...a}),()=>void c.itemMap.delete(u))),(0,o.jsx)(g,{...{[m]:""},ref:l,children:s})});function S(r){let i=d(e+"CollectionConsumer",r);return t.useCallback(()=>{let e=i.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(i.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[i.collectionRef,i.itemMap])}return b.displayName=v,u(S,"useCollection"),[{Provider:h,Slot:y,ItemSlot:b},S,l]}u(l,"createCollection");var c=new WeakMap,d=class e extends Map{static{u(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],c.set(this,!0)}set(e,t){return c.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let i,n=this.has(t),s=this.#e.length,o=p(e),a=o>=0?o:s+o,u=a<0||a>=s?-1:a;if(u===this.size||n&&u===this.size-1||-1===u)return this.set(t,r),this;let l=this.size+ +!n;o<0&&a++;let c=[...this.#e],d=!1;for(let e=a;e<l;e++)if(a===e){let s=c[e];c[e]===t&&(s=c[e+1]),n&&this.delete(t),i=this.get(s),this.set(t,r)}else{d||c[e-1]!==t||(d=!0);let r=c[d?e:e-1],n=i;i=this.get(r),this.delete(r),this.set(r,n)}return this}with(t,r,i){let n=new e(this);return n.insert(t,r,i),n}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let i=this.#e.indexOf(e);return -1===i?this:this.insert(i,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let i=this.#e.indexOf(e);return -1===i?this:this.insert(i+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=h(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=h(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return h(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return i;r++}}findIndex(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return r;r++}return -1}filter(t,r){let i=[],n=0;for(let e of this)Reflect.apply(t,r,[e,n,this])&&i.push(e),n++;return new e(i)}map(t,r){let i=[],n=0;for(let e of this)i.push([e[0],Reflect.apply(t,r,[e,n,this])]),n++;return new e(i)}reduce(...e){let[t,r]=e,i=0,n=r??this.at(0);for(let r of this)n=0===i&&1===e.length?r:Reflect.apply(t,this,[n,r,i,this]),i++;return n}reduceRight(...e){let[t,r]=e,i=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let n=this.at(r);i=r===this.size-1&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),i=this.get(r);t.set(r,i)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let i=new e,n=this.size-1;if(void 0===t)return i;t<0&&(t+=this.size),void 0!==r&&r>0&&(n=r-1);for(let e=t;e<=n;e++){let t=this.keyAt(e),r=this.get(t);i.set(t,r)}return i}every(e,t){let r=0;for(let i of this){if(!Reflect.apply(e,t,[i,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return!0;r++}return!1}};function h(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=f(e,t);return -1===r?void 0:e[r]}function f(e,t){let r=e.length,i=p(t),n=i>=0?i:r+i;return n<0||n>=r?-1:n}function p(e){return e!=e||0===e?0:Math.trunc(e)}function y(e,t){if(e===t)return!0;
1if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||e[i]!==t[i])return!1;return!0}function v(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function m(e,t){return e[1].element&&t[1].element?v(e[1].element,t[1].element)?-1:1:0}function g(e){return new MutationObserver(t=>{for(let r of t)if("childList"===r.type)return void e()})}u(h,"at"),u(f,"toSafeIndex"),u(p,"toSafeInteger"),u(function(e){let r=e+"CollectionProvider",[a,l]=(0,i.createContextScope)(r),[c,h]=a(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new d,setItemMap:u(()=>void 0,"setItemMap")}),f=u(({state:e,...t})=>e?(0,o.jsx)(v,{...t,state:e}):(0,o.jsx)(p,{...t}),"CollectionProvider");f.displayName=r;let p=u(e=>{let t=O();return(0,o.jsx)(v,{...e,state:t})},"CollectionInit");p.displayName=r+"Init";let v=u(e=>{let{scope:r,children:i,state:s}=e,a=t.useRef(null),[u,l]=t.useState(null),d=(0,n.useComposedRefs)(a,l),[h,f]=s;return t.useEffect(()=>{if(!u)return;let e=g(()=>{});return e.observe(u,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[u]),(0,o.jsx)(c,{scope:r,itemMap:h,setItemMap:f,collectionRef:d,collectionRefObject:a,collectionElement:u,children:i})},"CollectionProviderImpl");v.displayName=r+"Impl";let b=e+"CollectionSlot",S=(0,s.createSlot)(b),w=t.forwardRef((e,t)=>{let{scope:r,children:i}=e,s=h(b,r),a=(0,n.useComposedRefs)(t,s.collectionRef);return(0,o.jsx)(S,{ref:a,children:i})});w.displayName=b;let C=e+"CollectionItemSlot",x=(0,s.createSlot)(C),R=t.forwardRef((e,r)=>{let{scope:i,children:s,...a}=e,u=t.useRef(null),[l,c]=t.useState(null),f=(0,n.useComposedRefs)(r,u,c),{setItemMap:p}=h(C,i),v=t.useRef(a);y(v.current,a)||(v.current=a);let g=v.current;return t.useEffect(()=>(p(e=>l?e.has(l)?e.set(l,{...g,element:l}).toSorted(m):(e.set(l,{...g,element:l}),e.toSorted(m)):e),()=>{p(e=>l&&e.has(l)?(e.delete(l),new d(e)):e)}),[l,g,p]),(0,o.jsx)(x,{"data-radix-collection-item":"",ref:f,children:s})});function O(){return t.useState(new d)}function F(t){let{itemMap:r}=h(e+"CollectionConsumer",t);return r}return R.displayName=C,u(O,"useInitCollection"),u(F,"useCollection"),[{Provider:f,Slot:w,ItemSlot:R},{createCollectionScope:l,useCollection:F,useInitCollection:O}]},"createCollection"),u(y,"shallowEqual"),u(v,"isElementPreceding"),u(m,"sortByDocumentPosition"),u(g,"getChildListObserver"),e.s(["createCollection",0,l],75830);var b=e.i(10772),S=e.i(48425),w=e.i(30207),C=e.i(69340),x=Object.defineProperty,R=t.createContext(void 0);function O(e){let r=t.useContext(R);return e||r||"ltr"}x(O,"name",{value:"useDirection",configurable:!0}),e.s(["useDirection",0,O],86318);var F=e.i(34620),T=Object.defineProperty,k=(e,t)=>T(e,"name",{value:t,configurable:!0}),P=!1;function A(){let[e,r]=t.useState(P);return t.useEffect(()=>{P||(P=!0,r(!0))},[]),e}k(A,"useIsHydrated");var j=t[" useSyncExternalStore ".trim().toString()];function E(){return()=>{}}function I(){return j(E,()=>!0,()=>!1)}k(E,"subscribe"),k(I,"useIsHydratedModern");var M="function"==typeof j?I:A,D=Object.defineProperty,q=(e,t)=>D(e,"name",{value:t,configurable:!0}),U="rovingFocusGroup.onEntryFocus",z={bubbles:!1,cancelable:!0},K="RovingFocusGroup",[L,G,N]=l(K),[H,_]=(0,i.createContextScope)(K,[N]),[Q,B]=H(K),$=t.forwardRef(q(function(e,t){return(0,o.jsx)(L.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,o.jsx)(L.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,o.jsx)(Z,{...e,ref:t})})})},"RovingFocusGroup")),Z=t.forwardRef(q(function(e,i){let{__scopeRovingFocusGroup:s,orientation:a,loop:u=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:h,onEntryFocus:f,preventScrollOnEntryFocus:p=!1,...y}=e,v=t.useRef(null),m=(0,n.useComposedRefs)(i,v),g=O(l),[b,x]=(0,C.useControllableState)({prop:c,defaultProp:d??null,onChange:h,caller:K}),[R,F]=t.useState(!1),T=(0,w.useCallbackRef)(f),k=G(s),P=t.useRef(!1),[A,j]=t.useState(0);return t.useEffect(()=>{let e=v.current;if(e)return e.addEventListener(U,T),()=>e.removeEventListener(U,T)},[T]),(0,o.jsx)(Q,{scope:s,orientation:a,dir:g,loop:u,currentTabStopId:b,onItemFocus:t.useCallback(e=>x(e),[x]),onItemShiftTab:t.useCallback(()=>F(!0),[]),onFocusableItemAdd:t.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>j(e=>e-1),[]),children:(0,o.jsx)(S.Primitive.div,{tabIndex:R||0===A?-1:0,"data-orientation":a,...y,ref:m,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!R){let t=new CustomEvent(U,z);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=k().filter(e=>
1e.focusable);Y([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),p)}}P.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>F(!1))})})},"RovingFocusGroupImpl")),V=t.forwardRef(q(function(e,i){let{__scopeRovingFocusGroup:n,focusable:s=!0,active:a=!1,tabStopId:u,children:l,...c}=e,d=(0,b.useId)(),h=u||d,f=B("RovingFocusGroupItem",n),p=f.currentTabStopId===h,y=G(n),{onFocusableItemAdd:v,onFocusableItemRemove:m,currentTabStopId:g}=f,w=M();return(0,F.useLayoutEffect)(()=>{if(w&&s)return v(),()=>m()},[w,s,v,m]),t.useEffect(()=>{if(!w&&s)return v(),()=>m()},[w,s,v,m]),(0,o.jsx)(L.ItemSlot,{scope:n,id:h,focusable:s,active:a,children:(0,o.jsx)(S.Primitive.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:i,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{s?f.onItemFocus(h):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>f.onItemFocus(h)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=X(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let i=r.indexOf(e.currentTarget);r=f.loop?ee(r,i+1):r.slice(i+1)}setTimeout(()=>Y(r))}}),children:"function"==typeof l?l({isCurrentTabStop:p,hasTabStop:null!=g}):l})})},"RovingFocusGroupItem")),W={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function J(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function X(e,t,r){let i=J(e.key,r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return W[i]}function Y(e,t=!1){let r=document.activeElement;for(let i of e)if(i===r||(i.focus({preventScroll:t}),document.activeElement!==r))return}function ee(e,t){return e.map((r,i)=>e[(t+i)%e.length])}q(J,"getDirectionAwareKey"),q(X,"getFocusIntent"),q(Y,"focusFirst"),q(ee,"wrapArray"),e.s(["Item",0,V,"Root",0,$,"createRovingFocusGroupScope",0,_],42727)},73911,e=>{"use strict";let t;var r=e.i(19273),i=(t=()=>r.isServer,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",0,i])},75555,15823,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],15823);var r=new class extends t{#t;#r;#i;constructor(){super(),this.#i=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#r||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#i=e,this.#r?.(),this.#r=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#t?this.#t:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,r],75555)},40143,e=>{"use strict";let t,r,i,n,s,o;var a=e.i(80166).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])},14448,e=>{"use strict";var t=e.i(15823),r=new class extends t.Subscribable{#n=!0;#r;#i;constructor(){super(),this.#i=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.#r||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#i=e,this.#r?.(),this.#r=e(this.setOnline.bind(this))}
1setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#n}};e.s(["onlineManager",0,r])},86491,36553,88587,e=>{"use strict";var t=e.i(19273),r=e.i(40143),i=e.i(75555),n=e.i(14448),s=e.i(93803),o=e.i(73911);function a(e){return Math.min(1e3*2**e,3e4)}function u(e){return(e??"online")!=="online"||n.onlineManager.isOnline()}var l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){let r,c=!1,d=0,h=(0,s.pendingThenable)(),f=()=>i.focusManager.isFocused()&&("always"===e.networkMode||n.onlineManager.isOnline())&&e.canRun(),p=()=>u(e.networkMode)&&e.canRun(),y=e=>{"pending"===h.status&&(r?.(),h.resolve(e))},v=e=>{"pending"===h.status&&(r?.(),h.reject(e))},m=()=>new Promise(t=>{r=e=>{("pending"!==h.status||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,"pending"===h.status&&e.onContinue?.()}),g=()=>{let r;if("pending"!==h.status)return;let i=0===d?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(y).catch(r=>{if("pending"!==h.status)return;let i=e.retry??3*!o.environmentManager.isServer(),n=e.retryDelay??a,s="function"==typeof n?n(d,r):n,u=!0===i||"number"==typeof i&&d<i||"function"==typeof i&&i(d,r);c||!u?v(r):(d++,e.onFail?.(d,r),(0,t.sleep)(s).then(()=>f()?void 0:m()).then(()=>{c?v(r):g()}))})};return{promise:h,status:()=>h.status,cancel:t=>{if("pending"===h.status){let r=new l(t);v(r),e.onCancel?.(r)}},continue:()=>(r?.(),h),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1},canStart:p,start:()=>(p()?g():m().then(g),h)}}e.s(["CancelledError",0,l,"canFetch",0,u,"createRetryer",0,c],36553);var d=e.i(80166),h=class{#s;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,t.isValidTimeout)(this.gcTime)&&(this.#s=d.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(o.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#s&&(d.timeoutManager.clearTimeout(this.#s),this.#s=void 0)}};function f(e,{pages:t,pageParams:r}){let i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}e.s(["Removable",0,h],88587);var p=class extends h{#o;#a;#u;#l;#c;#d;#h;#f;constructor(e){super(),this.#f=!1,this.#h=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#c=e.client,this.#l=this.#c.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=m(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#o}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#h,...e},e?._type&&(this.#o=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=m(this.options);void 0!==e.data&&(this.setState(v(e.data,e.dataUpdatedAt)),this.#a=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#l.remove(this)}setData(e,r){let i=(0,t.replaceData)(this.state.data,e,this.options);return this.#p({data:i,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),i}setState(e){this.#p({type:"setState",state:e})}cancel(e){let r=this.#d?.promise;return this.#d?.cancel(e),r?r.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#a}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveQueryBoolean)(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.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.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,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#f||this.#y()?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#y(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,r){var i;let n;if("idle"!==this.state.fetchStatus&&this.#d?.status()!=="rejected"){if(void 0!==this.state.data&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.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.#f=!0,s.signal)}
1)},a=()=>{let e,i=(0,t.ensureQueryFn)(this.options,r),n=(o(e={client:this.#c,queryKey:this.queryKey,meta:this.meta}),e);return(this.#f=!1,this.options.persister)?this.options.persister(i,n,this):i(n)},u=(o(n={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:a}),n),d="infinite"===this.#o?(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),d=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,d=s?t.addToStart:t.addToEnd;return{pages:d(i.pages,u,l),pageParams:d(i.pageParams,n,l)}};if(s&&o.length){let e="backward"===s,t={pages:o,pageParams:a},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:f)(n,t);u=await d(t,r,e)}else{let e=i??o.length;do{let e=0===l?a[0]??n.initialPageParam:f(n,u);if(l>0&&null==e)break;u=await d(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;d?.onFetch(u,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#p({type:"fetch",meta:u.fetchOptions?.meta}),this.#d=c({initialPromise:r?.initialPromise,fn:u.fetchFn,onCancel:e=>{e instanceof l&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),s.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{let e=await this.#d.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#l.config.onSuccess?.(e,this),this.#l.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof l){if(e.silent)return this.#d.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#l.config.onError?.(e,this),this.#l.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#p(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...y(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...v(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=e.manual?r:void 0,r;case"error":let i=e.error;return{...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.forEach(e=>{e.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:e})})}};function y(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:u(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function v(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function m(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],86491)},93803,80166,19273,12598,e=>{"use strict";var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#v=t;#m=!1;setTimeoutProvider(e){this.#v=e}
1setTimeout(e,t){return this.#v.setTimeout(e,t)}clearTimeout(e){this.#v.clearTimeout(e)}setInterval(e,t){return this.#v.setInterval(e,t)}clearInterval(e){this.#v.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,r],80166);var i="u"<typeof window||"Deno"in globalThis;function n(){}function s(e,t){return(t?.queryKeyHashFn||o)(e)}function o(e){return JSON.stringify(e,(e,t)=>c(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function a(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)){for(let r=0;r<t.length;r++)if(!a(e[r],t[r]))return!1;return!0}for(let r of Object.keys(t))if(!a(e[r],t[r]))return!1;return!0}return!1}var u=Object.prototype.hasOwnProperty;function l(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function c(e){if(!d(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!d(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function d(e){return"[object Object]"===Object.prototype.toString.call(e)}var 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,o,"hashQueryKeyByOptions",0,s,"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:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(o(t.options.mutationKey)!==o(s))return!1}else if(!a(t.options.mutationKey,s))return!1}return(!i||t.state.status===i)&&(!n||!!n(t))},"matchQuery",0,function(e,t){let{type:r="all",exact:i,fetchStatus:n,predicate:o,queryKey:u,stale:l}=e;if(u){if(i){if(t.queryHash!==s(u,t.options))return!1}else if(!a(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)&&(!n||n===t.state.fetchStatus)&&(!o||!!o(t))},"noop",0,n,"partialMatchKey",0,a,"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=l(t)&&l(r);if(!n&&!(c(t)&&c(r)))return r;let s=(n?t:Object.keys(t)).length,o=n?r:Object.keys(r),a=o.length,d=n?Array(a):{},h=0;for(let l=0;l<a;l++){let a=n?l:o[l],c=t[a],f=r[a];if(c===f){d[a]=c,(n?l<s:u.call(t,a))&&h++;continue}if(null===c||null===f||"object"!=typeof c||"object"!=typeof f){d[a]=f;continue}let p=e(c,f,i+1);d[a]=p,p===c&&h++}return s===a&&h===s?t:d}(e,t):t},"resolveQueryBoolean",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",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)}],19273),e.s(["pendingThenable",0,function(){let e,t,r=new Promise((r,i)=>{e=r,t=i});function i(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{i({status:"fulfilled",value:t}),e(t)},r.reject=e=>{i({status:"rejected",reason:e}),t(e)},r},"tryResolveSync",0,function(e){let t;if(e.then(e=>(t=e,e),n)?.catch(n),void 0!==t)return{data:t}}],93803);var f=e.i(71645),p=e.i(43476),y=f.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,p.jsx)(y.Provider,{value:e,children:t})),"useQueryClient",0,e=>{let t=f.useContext(y);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t}],12598)},56420,e=>{"use strict";var t=e.i(71645),r=e.i(96661);let i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var n=e.i(5014);e.s(["default",0,(e,s)=>{let o=(0,t.forwardRef)(({className:o,...a},u)=>(0,t.createElement)(n.default,{ref:u,iconNode:s,className:(0,r.mergeClasses)(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...a}));return o.displayName=i(e),o}],56420)},19455,86011,e=>{"use strict";var t=e.i(43476),r=e.i(932),i=e.i(25913),n=e.i(91918);e.s(["Slot",0,n],86011);var n=n,s=e.i(75157);let o=(0,i.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-
1px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function(e){let i,a,u,l,c,d,h,f=(0,r.c)(16);f[0]!==e?({className:i,variant:u,size:l,asChild:c,...a}=e,f[0]=e,f[1]=i,f[2]=a,f[3]=u,f[4]=l,f[5]=c):(i=f[1],a=f[2],u=f[3],l=f[4],c=f[5]);let p=void 0===u?"default":u,y=void 0===l?"default":l,v=void 0!==c&&c?n.Root:"button";return f[6]!==i||f[7]!==y||f[8]!==p?(d=(0,s.cn)(o({variant:p,size:y,className:i})),f[6]=i,f[7]=y,f[8]=p,f[9]=d):d=f[9],f[10]!==v||f[11]!==a||f[12]!==y||f[13]!==d||f[14]!==p?(h=(0,t.jsx)(v,{"data-slot":"button","data-variant":p,"data-size":y,className:d,...a}),f[10]=v,f[11]=a,f[12]=y,f[13]=d,f[14]=p,f[15]=h):h=f[15],h}],19455)}]);
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.