https://studio--munro-mapper-rrvpn.us-central1.hosted.app/_next/static/chunks/84-15a662579c419429.js
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[84],{4504:function(e,t,s){s.d(t,{Dx:function(){return J},aU:function(){return et},dk:function(){return ee},fC:function(){return $},l_:function(){return Z},x8:function(){return es},zt:function(){return Y}});var i=s(2265),r=s(4887),n=s(8149),a=s(1584),o=s(976),u=s(8324),c=s(2358),l=s(6935),h=s(1383),d=s(5171),f=s(5137),p=s(1715),y=s(1336),v=s(1725),m=s(7437),b="ToastProvider",[g,w,C]=(0,o.B)("Toast"),[E,x]=(0,u.b)("Toast",[C]),[P,T]=E(b),O=e=>{let{__scopeToast:t,label:s="Notification",duration:r=5e3,swipeDirection:n="right",swipeThreshold:a=50,children:o}=e,[u,c]=i.useState(null),[l,h]=i.useState(0),d=i.useRef(!1),f=i.useRef(!1);return s.trim()||console.error("Invalid prop `label` supplied to `".concat(b,"`. Expected non-empty `string`.")),(0,m.jsx)(g.Provider,{scope:t,children:(0,m.jsx)(P,{scope:t,label:s,duration:r,swipeDirection:n,swipeThreshold:a,toastCount:l,viewport:u,onViewportChange:c,onToastAdd:i.useCallback(()=>h(e=>e+1),[]),onToastRemove:i.useCallback(()=>h(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};O.displayName=b;var S="ToastViewport",F=["F8"],q="toast.viewportPause",R="toast.viewportResume",D=i.forwardRef((e,t)=>{let{__scopeToast:s,hotkey:r=F,label:n="Notifications ({hotkey})",...o}=e,u=T(S,s),l=w(s),h=i.useRef(null),f=i.useRef(null),p=i.useRef(null),y=i.useRef(null),v=(0,a.e)(t,y,u.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=u.toastCount>0;i.useEffect(()=>{let e=e=>{var t;0!==r.length&&r.every(t=>e[t]||e.code===t)&&(null===(t=y.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),i.useEffect(()=>{let e=h.current,t=y.current;if(C&&e&&t){let s=()=>{if(!u.isClosePausedRef.current){let e=new CustomEvent(q);t.dispatchEvent(e),u.isClosePausedRef.current=!0}},i=()=>{if(u.isClosePausedRef.current){let e=new CustomEvent(R);t.dispatchEvent(e),u.isClosePausedRef.current=!1}},r=t=>{e.contains(t.relatedTarget)||i()},n=()=>{e.contains(document.activeElement)||i()};return e.addEventListener("focusin",s),e.addEventListener("focusout",r),e.addEventListener("pointermove",s),e.addEventListener("pointerleave",n),window.addEventListener("blur",s),window.addEventListener("focus",i),()=>{e.removeEventListener("focusin",s),e.removeEventListener("focusout",r),e.removeEventListener("pointermove",s),e.removeEventListener("pointerleave",n),window.removeEventListener("blur",s),window.removeEventListener("focus",i)}}},[C,u.isClosePausedRef]);let E=i.useCallback(e=>{let{tabbingDirection:t}=e,s=l().map(e=>{let s=e.ref.current,i=[s,...function(e){let t=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)t.push(s.currentNode);return t}(s)];return"forwards"===t?i:i.reverse()});return("forwards"===t?s.reverse():s).flat()},[l]);return i.useEffect(()=>{let e=y.current;if(e){let t=t=>{let s=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!s){var i,r,n;let s=document.activeElement,a=t.shiftKey;if(t.target===e&&a){null===(i=f.current)||void 0===i||i.focus();return}let o=E({tabbingDirection:a?"backwards":"forwards"}),u=o.findIndex(e=>e===s);z(o.slice(u+1))?t.preventDefault():a?null===(r=f.current)||void 0===r||r.focus():null===(n=p.current)||void 0===n||n.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[l,E]),(0,m.jsxs)(c.I0,{ref:h,role:"region","aria-label":n.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&(0,m.jsx)(A,{ref:f,onFocusFromOutsideViewport:()=>{z(E({tabbingDirection:"forwards"}))}}),(0,m.jsx)(g.Slot,{scope:s,children:(0,m.jsx)(d.WV.ol,{tabIndex:-1,...o,ref:v})}),C&&(0,m.jsx)(A,{ref:p,onFocusFromOutsideViewport:()=>{z(E({tabbingDirection:"backwards"}))}})]})});D.displayName=S;var M="ToastFocusProxy",A=i.forwardRef((e,t)=>{let{__scopeToast:s,onFocusFromOutsideViewport:i,...r}=e,n=T(M,s);return(0,m.jsx)(v.T,{"aria-hidden":!0,tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let s=e.relatedTarget;(null===(t=n.viewport)||void 0===t?void 0:t.contains(s))||i()}})});A.displayName=M;var j="Toast",k=i.forwardRef((e,t)=>
1{let{forceMount:s,open:i,defaultOpen:r,onOpenChange:a,...o}=e,[u=!0,c]=(0,p.T)({prop:i,defaultProp:r,onChange:a});return(0,m.jsx)(h.z,{present:s||u,children:(0,m.jsx)(I,{open:u,...o,ref:t,onClose:()=>c(!1),onPause:(0,f.W)(e.onPause),onResume:(0,f.W)(e.onResume),onSwipeStart:(0,n.M)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,n.M)(e.onSwipeMove,e=>{let{x:t,y:s}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(s,"px"))}),onSwipeCancel:(0,n.M)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,n.M)(e.onSwipeEnd,e=>{let{x:t,y:s}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(s,"px")),c(!1)})})})});k.displayName=j;var[L,Q]=E(j,{onClose(){}}),I=i.forwardRef((e,t)=>{let{__scopeToast:s,type:o="foreground",duration:u,open:l,onClose:h,onEscapeKeyDown:p,onPause:y,onResume:v,onSwipeStart:b,onSwipeMove:w,onSwipeCancel:C,onSwipeEnd:E,...x}=e,P=T(j,s),[O,S]=i.useState(null),F=(0,a.e)(t,e=>S(e)),D=i.useRef(null),M=i.useRef(null),A=u||P.duration,k=i.useRef(0),Q=i.useRef(A),I=i.useRef(0),{onToastAdd:N,onToastRemove:U}=P,H=(0,f.W)(()=>{var e;(null==O?void 0:O.contains(document.activeElement))&&(null===(e=P.viewport)||void 0===e||e.focus()),h()}),G=i.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(I.current),k.current=new Date().getTime(),I.current=window.setTimeout(H,e))},[H]);i.useEffect(()=>{let e=P.viewport;if(e){let t=()=>{G(Q.current),null==v||v()},s=()=>{let e=new Date().getTime()-k.current;Q.current=Q.current-e,window.clearTimeout(I.current),null==y||y()};return e.addEventListener(q,s),e.addEventListener(R,t),()=>{e.removeEventListener(q,s),e.removeEventListener(R,t)}}},[P.viewport,A,y,v,G]),i.useEffect(()=>{l&&!P.isClosePausedRef.current&&G(A)},[l,A,P.isClosePausedRef,G]),i.useEffect(()=>(N(),()=>U()),[N,U]);let W=i.useMemo(()=>O?function e(t){let s=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&s.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let i=t.ariaHidden||t.hidden||"none"===t.style.display,r=""===t.dataset.radixToastAnnounceExclude;if(!i){if(r){let e=t.dataset.radixToastAnnounceAlt;e&&s.push(e)}else s.push(...e(t))}}}),s}(O):null,[O]);return P.viewport?(0,m.jsxs)(m.Fragment,{children:[W&&(0,m.jsx)(K,{__scopeToast:s,role:"status","aria-live":"foreground"===o?"assertive":"polite","aria-atomic":!0,children:W}),(0,m.jsx)(L,{scope:s,onClose:H,children:r.createPortal((0,m.jsx)(g.ItemSlot,{scope:s,children:(0,m.jsx)(c.fC,{asChild:!0,onEscapeKeyDown:(0,n.M)(p,()=>{P.isFocusedToastEscapeKeyDownRef.current||H(),P.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,m.jsx)(d.WV.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":P.swipeDirection,...x,ref:F,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,n.M)(e.onKeyDown,e=>{"Escape"!==e.key||(null==p||p(e.nativeEvent),e.nativeEvent.defaultPrevented||(P.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:(0,n.M)(e.onPointerDown,e=>{0===e.button&&(D.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,n.M)(e.onPointerMove,e=>{if(!D.current)return;let t=e.clientX-D.current.x,s=e.clientY-D.current.y,i=!!M.current,r=["left","right"].includes(P.swipeDirection),n=["left","up"].includes(P.swipeDirection)?Math.min:Math.max,a=r?n(0,t):0,o=r?0:n(0,s),u="touch"===e.pointerType?10:2,c={x:a,y:o},l={originalEvent:e,delta:c};i?(M.current=c,B("toast.swipeMove",w,l,{discrete:!1})):X(c,P.swipeDirection,u)?(M.current=c,B("toast.swipeStart",b,l,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>u||Math.abs(s)>u)&&(D.current=null)}),onPointerUp:(0,n.M)(e.onPointerUp,e=>{let t=M.current,s=e.target;if(s.hasPointerCapture(e.pointerId)&&s.releasePointerCapture(e.pointerId),M.current=null,D.current=null,t){let s=e.currentTarget,i={originalEvent:e,delta:t};X(t,P.swipeDirection,P.swipeThreshold)?B("toast.swipeEnd",E,i,{discrete:!0}):B("toast.swipeCancel",C,i,{discrete:!0}),s.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),P.viewport)})]}):null}),K=e=>{let{__scopeToast:t,children:s,...r}=e,n=T(j,t),[a,o]=i.useState(!1),[u,c]=i.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,f.W)(e);(0,y.b)(()=>{let e=0,s=0;return e=window.requestAnimationFrame(()=>s=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(s)}},[t])}(()=>o(!0)),i.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),u?null:(0,m.jsx)(l.h,{asChild:!0,children:(0,m.jsx)(v.T,{...r,children:a&&(0,m.jsxs)(m.Fragment,{children:[n.label," ",s]})})})},N=i.forwardRef((e,t)=>
1{let{__scopeToast:s,...i}=e;return(0,m.jsx)(d.WV.div,{...i,ref:t})});N.displayName="ToastTitle";var U=i.forwardRef((e,t)=>{let{__scopeToast:s,...i}=e;return(0,m.jsx)(d.WV.div,{...i,ref:t})});U.displayName="ToastDescription";var H="ToastAction",G=i.forwardRef((e,t)=>{let{altText:s,...i}=e;return s.trim()?(0,m.jsx)(V,{altText:s,asChild:!0,children:(0,m.jsx)(_,{...i,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(H,"`. Expected non-empty `string`.")),null)});G.displayName=H;var W="ToastClose",_=i.forwardRef((e,t)=>{let{__scopeToast:s,...i}=e,r=Q(W,s);return(0,m.jsx)(V,{asChild:!0,children:(0,m.jsx)(d.WV.button,{type:"button",...i,ref:t,onClick:(0,n.M)(e.onClick,r.onClose)})})});_.displayName=W;var V=i.forwardRef((e,t)=>{let{__scopeToast:s,altText:i,...r}=e;return(0,m.jsx)(d.WV.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...r,ref:t})});function B(e,t,s,i){let{discrete:r}=i,n=s.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:s});t&&n.addEventListener(e,t,{once:!0}),r?(0,d.jH)(n,a):n.dispatchEvent(a)}var X=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=Math.abs(e.x),r=Math.abs(e.y),n=i>r;return"left"===t||"right"===t?n&&i>s:!n&&r>s};function z(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var Y=O,Z=D,$=k,J=N,ee=U,et=G,es=_},1725:function(e,t,s){s.d(t,{T:function(){return a}});
1var i=s(2265),r=s(5171),n=s(7437),a=i.forwardRef((e,t)=>(0,n.jsx)(r.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden"},2328:function(e,t,s){s.d(t,{S:function(){return k}});var i="undefined"==typeof window||"Deno"in globalThis;function r(){}function n(e,t){return"function"==typeof e?e(t):e}function a(e,t){let{type:s="all",exact:i,fetchStatus:r,predicate:n,queryKey:a,stale:o}=e;if(a){if(i){if(t.queryHash!==u(a,t.options))return!1}else if(!l(t.queryKey,a))return!1}if("all"!==s){let e=t.isActive();if("active"===s&&!e||"inactive"===s&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!r||r===t.state.fetchStatus)&&(!n||!!n(t))}function o(e,t){let{exact:s,status:i,predicate:r,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(s){if(c(t.options.mutationKey)!==c(n))return!1}else if(!l(t.options.mutationKey,n))return!1}return(!i||t.state.status===i)&&(!r||!!r(t))}function u(e,t){return(t?.queryKeyHashFn||c)(e)}function c(e){return JSON.stringify(e,(e,t)=>d(t)?Object.keys(t).sort().reduce((e,s)=>(e[s]=t[s],e),{}):t)}function l(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(s=>!l(e[s],t[s]))}function h(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function d(e){if(!f(e))return!1;let t=e.constructor;if(void 0===t)return!0;let s=t.prototype;return!!(f(s)&&s.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function p(e,t,s=0){let i=[...e,t];return s&&i.length>s?i.slice(1):i}function y(e,t,s=0){let i=[t,...e];return s&&i.length>s?i.slice(0,-1):i}var v=Symbol();function m(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==v?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}var b=function(){let e=[],t=0,s=e=>{e()},i=e=>{e()},r=e=>setTimeout(e,0),n=i=>{t?e.push(i):r(()=>{s(i)})},a=()=>{let t=e;e=[],t.length&&r(()=>{i(()=>{t.forEach(e=>{s(e)})})})};return{batch:e=>{let s;t++;try{s=e()}finally{--t||a()}return s},batchCalls:e=>(...t)=>{n(()=>{e(...t)})},schedule:n,setNotifyFunction:e=>{s=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{r=e}}}(),g=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(){}},w=new class extends g{#e;#t;#s;constructor(){super(),this.#s=e=>{if(!i&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=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();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}},C=new class extends g{#i=!0;#t;#s;constructor(){super(),this.#s=e=>{if(!i&&window.addEventListener){let t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=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}};function E(e){return Math.min(1e3*2**e,3e4)}function x(e){return(e??"online")!=="online"||C.isOnline()}var P=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function T(e){return e instanceof P}function O(e){let t,s=!1,r=0,n=!1,a=function(){let e,t;let s=new Promise((s,i)=>{e=s,t=i});function i(e){Object.assign(s,e),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=t=>{i({status:"fulfilled",value:t}),e(t)},s.reject=e=>{i({status:"rejected",reason:e}),t(e)},s}(),o=()=>w.isFocused()&&("always"===e.networkMode||C.isOnline())&&e.canRun(),u=()=>x(e.networkMode)&&e.canRun(),c=s=>{n||(n=!0,e.onSuccess?.(s),t?.(),a.resolve(s))},l=s=>{n||(n=!0,e.onError?.(s),t?.(),a.reject(s))},h=()=>new Promise(s=>{t=e=>{(n||o())&&s(e)},e.onPause?.()}).then(()=>{t=void 0,n||e.onContinue?.()}),d=()=>{let t;if(n)return;let a=0===r?e.initialPromise:void 0;try{t=a??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(c).catch(t=>{if(n)return;let a=e.retry??(i?0:3),u=e.retryDelay??E,c="function"==typeof u?u(r,t):u,f=!0===a||"number"==typeof a&&r<a||"function"==typeof a&&a(r,t);if(s||!f){l(t);return}r++,e.onFail?.(r,t),new Promise(e=>{setTimeout(e,c)}).then(()=>o()?void 0:h()).then(()=>{s?l(t):d()})})};return{promise:a,cancel:t=>{n||(l(new P(t)),e.abort?.())},continue:()=>
1(t?.(),a),cancelRetry:()=>{s=!0},continueRetry:()=>{s=!1},canStart:u,start:()=>(u()?d():h().then(d),a)}}var S=class{#r;destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&(this.#r=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i?1/0:3e5))}clearGcTimeout(){this.#r&&(clearTimeout(this.#r),this.#r=void 0)}},F=class extends S{#n;#a;#o;#u;#c;#l;#h;constructor(e){super(),this.#h=!1,this.#l=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#u=e.client,this.#o=this.#u.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#n=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,s=void 0!==t,i=s?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#n,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#c?.promise}setOptions(e){this.options={...this.#l,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(e,t){var s,i;let r=(s=this.state.data,"function"==typeof(i=this.options).structuralSharing?i.structuralSharing(s,e):!1!==i.structuralSharing?function e(t,s){if(t===s)return t;let i=h(t)&&h(s);if(i||d(t)&&d(s)){let r=i?t:Object.keys(t),n=r.length,a=i?s:Object.keys(s),o=a.length,u=i?[]:{},c=0;for(let n=0;n<o;n++){let o=i?n:a[n];(!i&&r.includes(o)||i)&&void 0===t[o]&&void 0===s[o]?(u[o]=void 0,c++):(u[o]=e(t[o],s[o]),u[o]===t[o]&&void 0!==t[o]&&c++)}return n===o&&c===n?t:u}return s}(s,e):e);return this.#d({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#d({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#c?.promise;return this.#c?.cancel(e),t?t.then(r).catch(r):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#n)}isActive(){return this.observers.some(e=>{var t;return!1!==("function"==typeof(t=e.options.enabled)?t(this):t)})}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===v||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!Math.max(this.state.dataUpdatedAt+(e||0)-Date.now(),0)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#c?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#c?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.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.#c&&(this.#h?this.#c.cancel({revert:!0}):this.#c.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.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,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,s.signal)})},r={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:()=>{let e=m(this.options,t),s={client:this.#u,queryKey:this.queryKey,meta:this.meta};return(i(s),this.#h=!1,this.options.persister)?this.options.persister(e,s,this):e(s)}};i(r),this.options.behavior?.onFetch(r,this),this.#a=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==r.fetchOptions?.meta)&&this.#d({type:"fetch",meta:r.fetchOptions?.meta});let n=e=>{T(e)&&e.silent||this.#d({type:"error",error:e}),T(e)||(this.#o.config.onError?.(e,this),this.#o.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#c=O({initialPromise:t?.initialPromise,fn:r.fetchFn,abort:s.abort.bind(s),onSuccess:e=>{if(void 0===e){n(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){n(e);return}this.#o.config.onSuccess?.(e,this),this.#o.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:n,onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:r.options.retry,retryDelay:r.options.retryDelay,networkMode:r.options.networkMode,canRun:()=>!0}),this.#c.start()}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":var s;return{...t,...(s=t.data,{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:x(this.options.networkMode)?"fetching":"paused",...void 0===s&&{error:null,status:"pending"}}),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if(T(i)&&i.revert&&this.#a)return{...this.#a,fetchStatus:"idle"};
1return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),b.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}},q=class extends g{constructor(e={}){super(),this.config=e,this.#f=new Map}#f;build(e,t,s){let i=t.queryKey,r=t.queryHash??u(i,t),n=this.get(r);return n||(n=new F({client:e,queryKey:i,queryHash:r,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(i)}),this.add(n)),n}add(e){this.#f.has(e.queryHash)||(this.#f.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#f.get(e.queryHash);t&&(e.destroy(),t===e&&this.#f.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){b.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#f.get(e)}getAll(){return[...this.#f.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>a(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>a(e,t)):t}notify(e){b.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){b.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){b.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},R=class extends S{#p;#y;#c;constructor(e){super(),this.mutationId=e.mutationId,this.#y=e.mutationCache,this.#p=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#p.includes(e)||(this.#p.push(e),this.clearGcTimeout(),this.#y.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#p=this.#p.filter(t=>t!==e),this.scheduleGc(),this.#y.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#p.length||("pending"===this.state.status?this.scheduleGc():this.#y.remove(this))}continue(){return this.#c?.continue()??this.execute(this.state.variables)}async execute(e){this.#c=O({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#y.canRun(this)});let t="pending"===this.state.status,s=!this.#c.canStart();try{if(!t){this.#d({type:"pending",variables:e,isPaused:s}),await this.#y.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:s})}let i=await this.#c.start();return await this.#y.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#y.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#d({type:"success",data:i}),i}catch(t){try{throw await this.#y.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#y.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#d({type:"error",error:t})}}finally{this.#y.runNext(this)}}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPau
1sed:!1,status:"error"}}})(this.state),b.batch(()=>{this.#p.forEach(t=>{t.onMutationUpdate(e)}),this.#y.notify({mutation:this,type:"updated",action:e})})}},D=class extends g{constructor(e={}){super(),this.config=e,this.#v=new Set,this.#m=new Map,this.#b=0}#v;#m;#b;build(e,t,s){let i=new R({mutationCache:this,mutationId:++this.#b,options:e.defaultMutationOptions(t),state:s});return this.add(i),i}add(e){this.#v.add(e);let t=M(e);if("string"==typeof t){let s=this.#m.get(t);s?s.push(e):this.#m.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#v.delete(e)){let t=M(e);if("string"==typeof t){let s=this.#m.get(t);if(s){if(s.length>1){let t=s.indexOf(e);-1!==t&&s.splice(t,1)}else s[0]===e&&this.#m.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=M(e);if("string"!=typeof t)return!0;{let s=this.#m.get(t),i=s?.find(e=>"pending"===e.state.status);return!i||i===e}}runNext(e){let t=M(e);if("string"!=typeof t)return Promise.resolve();{let s=this.#m.get(t)?.find(t=>t!==e&&t.state.isPaused);return s?.continue()??Promise.resolve()}}clear(){b.batch(()=>{this.#v.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#v.clear(),this.#m.clear()})}getAll(){return Array.from(this.#v)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>o(t,e))}findAll(e={}){return this.getAll().filter(t=>o(e,t))}notify(e){b.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>
1e.state.isPaused);return b.batch(()=>Promise.all(e.map(e=>e.continue().catch(r))))}};function M(e){return e.options.scope?.id}function A(e){return{onFetch:(t,s)=>{let i=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,n=t.state.data?.pages||[],a=t.state.data?.pageParams||[],o={pages:[],pageParams:[]},u=0,c=async()=>{let s=!1,c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?s=!0:t.signal.addEventListener("abort",()=>{s=!0}),t.signal)})},l=m(t.options,t.fetchOptions),h=async(e,i,r)=>{if(s)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let n={client:t.client,queryKey:t.queryKey,pageParam:i,direction:r?"backward":"forward",meta:t.options.meta};c(n);let a=await l(n),{maxPages:o}=t.options,u=r?y:p;return{pages:u(e.pages,a,o),pageParams:u(e.pageParams,i,o)}};if(r&&n.length){let e="backward"===r,t={pages:n,pageParams:a},s=(e?function(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}:j)(i,t);o=await h(t,s,e)}else{let t=e??n.length;do{let e=0===u?a[0]??i.initialPageParam:j(i,o);if(u>0&&null==e)break;o=await h(o,e),u++}while(u<t)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=c}}}function j(e,{pages:t,pageParams:s}){let i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,s[i],s):void 0}var k=class{#g;#y;#l;#w;#C;#E;#x;#P;constructor(e={}){this.#g=e.queryCache||new q,this.#y=e.mutationCache||new D,this.#l=e.defaultOptions||{},this.#w=new Map,this.#C=new Map,this.#E=0}mount(){this.#E++,1===this.#E&&(this.#x=w.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#g.onFocus())}),this.#P=C.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#g.onOnline())}))}unmount(){this.#E--,0===this.#E&&(this.#x?.(),this.#x=void 0,this.#P?.(),this.#P=void 0)}isFetching(e){return this.#g.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#y.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#g.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),s=this.#g.build(this,t),i=s.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(n(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#g.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,s){let i=this.defaultQueryOptions({queryKey:e}),r=this.#g.get(i.queryHash),n=r?.state.data,a="function"==typeof t?t(n):t;if(void 0!==a)return this.#g.build(this,i).setData(a,{...s,manual:!0})}setQueriesData(e,t,s){return b.batch(()=>this.#g.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,s)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#g.get(t.queryHash)?.state}removeQueries(e){let t=this.#g;b.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let s=this.#g;return b.batch(()=>(s.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let s={revert:!0,...t};return Promise.all(b.batch(()=>this.#g.findAll(e).map(e=>e.cancel(s)))).then(r).catch(r)}invalidateQueries(e,t={}){return b.batch(()=>(this.#g.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let s={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(b.batch(()=>this.#g.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,s);return s.throwOnError||(t=t.catch(r)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let s=this.#g.build(this,t);return s.isStaleByTime(n(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r).catch(r)}fetchInfiniteQuery(e){return e.behavior=A(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r).catch(r)}ensureInfiniteQueryData(e){return e.behavior=A(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return C.isOnline()?this.#y.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#g}getMutationCache(){return this.#y}getDefaultOptions(){return this.#l}setDefaultOptions(e){this.#l=e}setQueryDefaults(e,t){this.#w.set(c(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#w.values()],s={};return t.forEach(t=>{l(e,t.queryKey)&&Object.assign(s,t.defaultOptions)}),s}setMutationDefaults(e,t){this.#C.set(c(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#C.values()],s={};return t.forEach(t=>{l(e,t.mutationKey)&&Object.assign(s,t.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#l.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=u(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===v&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#l.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#g.clear(),this.#y.clear()}}},3191:function(e,t,s){s.d(t,{aH:function(){return a}});
1var i=s(2265),r=s(7437),n=i.createContext(void 0),a=e=>{let{client:t,children:s}=e;return i.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,r.jsx)(n.Provider,{value:t,children:s})}},4732:function(e,t,s){s.d(t,{Z:function(){return i}});let i=(0,s(6497).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]);
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.