!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d8968cd7-a37b-549e-8238-27d1dfa58f83")}catch(e){}}(); import{r as d}from"./emotion-react-jsx-runtime.browser.esm-Dvzk_se7.js";class Q{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const A=typeof window>"u"||"Deno"in window;function X(){}function Y(e,t){return typeof e=="function"?e(t):e}function Z(e){return typeof e=="number"&&e>=0&&e!==1/0}function ee(e,t){return Math.max(e+(t||0)-Date.now(),0)}function te(e,t,n){return p(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function ne(e,t,n){return p(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function re(e,t,n){return p(e)?[{...t,queryKey:e},n]:[e||{},t]}function ie(e,t,n){return p(e)?[{...t,mutationKey:e},n]:[e||{},t]}function se(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:u,queryKey:l,stale:a}=e;if(p(l)){if(r){if(t.queryHash!==_(l,t.options))return!1}else if(!M(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof i<"u"&&i!==t.state.fetchStatus||u&&!u(t))}function oe(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:u}=e;if(p(u)){if(!t.options.mutationKey)return!1;if(n){if(E(t.options.mutationKey)!==E(u))return!1}else if(!M(t.options.mutationKey,u))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function _(e,t){return((t==null?void 0:t.queryKeyHashFn)||E)(e)}function E(e){return JSON.stringify(e,(t,n)=>F(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function M(e,t){return R(e,t)}function R(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!R(e[n],t[n])):!1}function q(e,t){if(e===t)return e;const n=P(e)&&P(t);if(n||F(e)&&F(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),u=i.length,l=n?[]:{};let a=0;for(let f=0;f"u")return!0;const n=t.prototype;return!(!j(n)||!n.hasOwnProperty("isPrototypeOf"))}function j(e){return Object.prototype.toString.call(e)==="[object Object]"}function p(e){return Array.isArray(e)}function D(e){return new Promise(t=>{setTimeout(t,e)})}function K(e){D(0).then(e)}function le(){if(typeof AbortController=="function")return new AbortController}function ce(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?q(e,t):t}class H extends Q{constructor(){super(),this.setup=t=>{if(!A&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const T=new H,L=["online","offline"];class V extends Q{constructor(){super(),this.setup=t=>{if(!A&&window.addEventListener){const n=()=>t();return L.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{L.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const N=new V;function $(e){return Math.min(1e3*2**e,3e4)}function J(e){return(e??"online")==="online"?N.isOnline():!0}class k{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function ae(e){return e instanceof k}function fe(e){let t=!1,n=0,r=!1,i,u,l;const a=new Promise((o,c)=>{u=o,l=c}),f=o=>{r||(w(new k(o)),e.abort==null||e.abort())},y=()=>{t=!0},s=()=>{t=!1},h=()=>!T.isFocused()||e.networkMode!=="always"&&!N.isOnline(),z=o=>{r||(r=!0,e.onSuccess==null||e.onSuccess(o),i==null||i(),u(o))},w=o=>{r||(r=!0,e.onError==null||e.onError(o),i==null||i(),l(o))},O=()=>new Promise(o=>{i=c=>{const v=r||!h();return v&&o(c),v},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let o;try{o=e.fn()}catch(c){o=Promise.reject(c)}Promise.resolve(o).then(z).catch(c=>{var v,S;if(r)return;const b=(v=e.retry)!=null?v:3,C=(S=e.retryDelay)!=null?S:$,B=typeof C=="function"?C(n,c):C,I=b===!0||typeof b=="number"&&n{if(h())return O()}).then(()=>{t?w(c):m()})})};return J(e.networkMode)?m():O().then(m),{promise:a,cancel:f,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:y,continueRetry:s}}function G(){let e=[],t=0,n=s=>{s()},r=s=>{s()};const i=s=>{let h;t++;try{h=s()}finally{t--,t||a()}return h},u=s=>{t?e.push(s):K(()=>{n(s)})},l=s=>(...h)=>{u(()=>{s(...h)})},a=()=>{const s=e;e=[],s.length&&K(()=>{r(()=>{s.forEach(h=>{n(h)})})})};return{batch:i,batchCalls:l,schedule:u,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s}}}const he=G(),x=d.createContext(void 0),U=d.createContext(!1);function g(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=x),window.ReactQueryClientContext):x)}const ye=({context:e}={})=>{const t=d.useContext(g(e,d.useContext(U)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},de=({client:e,children:t,context:n,contextSharing:r=!1})=>{d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=g(n,r);return d.createElement(U.Provider,{value:!n&&r},d.createElement(i.Provider,{value:e},t))};export{de as Q,Q as S,ie as a,ne as b,A as c,fe as d,J as e,X as f,le as g,ae as h,Z as i,_ as j,re as k,oe as l,se as m,he as n,T as o,te as p,N as q,ce as r,ue as s,ee as t,ye as u,Y as v,E as w,M as x}; //# debugId=d8968cd7-a37b-549e-8238-27d1dfa58f83